1 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
4 Fix "save breakpoints" for "catch" command.
5 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
8 2014-10-12 Miroslav Franc <mfranc@redhat.com>
10 Fix "save breakpoints" for "disable $bpnum" command.
11 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
13 2014-10-10 Pedro Alves <palves@redhat.com>
15 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
16 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
17 (HFILES_NO_SRCDIR): Remove solib-irix.h.
18 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
20 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
21 * configure.ac: Remove references to IRIX.
22 * configure.host: Add *-*-irix* to the obsolete hosts section.
23 Remove all other references to irix.
24 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
27 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
29 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
30 isn't valid, release the tdesc arch data and return NULL.
32 2014-10-10 Pedro Alves <palves@redhat.com>
34 * linux-tdep.c: Include observer.h.
35 (linux_inferior_data): New global.
36 (struct linux_info): New structure.
37 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
38 (get_linux_inferior_data): New functions.
39 (linux_vsyscall_range): Rename to ...
40 (linux_vsyscall_range_raw): ... this.
41 (linux_vsyscall_range): New function; handles caching.
42 (_initialize_linux_tdep): Register linux_inferior_data. Install
43 inferior_exit and inferior_appeared observers.
45 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
46 Pedro Alves <palves@redhat.com>
49 * solib-svr4.c (svr4_read_so_list): Rename to ...
50 (svr4_current_sos_1): ... this and change the function comment.
51 (svr4_current_sos): New function.
53 2014-10-10 Pedro Alves <palves@redhat.com>
55 * arch-utils.c (default_vsyscall_range): New function.
56 * arch-utils.h (default_vsyscall_range): New declaration.
57 * gdbarch.sh (vsyscall_range): New hook.
58 * gdbarch.h, gdbarch.c: Regenerate.
59 * linux-tdep.c (linux_vsyscall_range): New function.
60 (linux_init_abi): Install linux_vsyscall_range as
61 vsyscall_range gdbarch hook.
62 * memrange.c (address_in_mem_range): New function.
63 * memrange.h (address_in_mem_range): New declaration.
64 * symfile-mem.c (find_vdso_size): Delete function.
65 (add_vsyscall_page): Use gdbarch_vsyscall_range.
67 2014-10-10 Pedro Alves <palves@redhat.com>
69 * infrun.c (normal_stop): Fix typo in comment.
71 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
74 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
75 typo when using logical AND to determine instruction type.
77 2014-10-09 Yao Qi <yao@codesourcery.com>
79 * infrun.c (handle_signal_stop): Remove local variable
82 2014-10-08 Stan Shebs <stan@codesourcery.com>
84 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
86 2014-10-08 Gary Benson <gbenson@redhat.com>
88 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
90 2014-10-08 Gary Benson <gbenson@redhat.com>
92 * common/common-defs.h: Include common-exceptions.h.
93 * exceptions.h: Do not include common-exceptions.h.
95 2014-10-08 Gary Benson <gbenson@redhat.com>
97 * common/common-defs.h: Include cleanups.h.
98 * common/common-exceptions.c: Do not include cleanups.h.
101 2014-10-08 Gary Benson <gbenson@redhat.com>
103 * ada-lang.c: Do not include exceptions.h.
104 * ada-valprint.c: Likewise.
105 * amd64-tdep.c: Likewise.
106 * auto-load.c: Likewise.
108 * break-catch-throw.c: Likewise.
109 * breakpoint.c: Likewise.
110 * btrace.c: Likewise.
111 * c-lang.c: Likewise.
112 * cli/cli-cmds.c: Likewise.
113 * cli/cli-interp.c: Likewise.
114 * cli/cli-script.c: Likewise.
115 * completer.c: Likewise.
116 * corefile.c: Likewise.
117 * corelow.c: Likewise.
118 * cp-abi.c: Likewise.
119 * cp-support.c: Likewise.
120 * cp-valprint.c: Likewise.
121 * darwin-nat.c: Likewise.
122 * dwarf2-frame-tailcall.c: Likewise.
123 * dwarf2-frame.c: Likewise.
124 * dwarf2loc.c: Likewise.
125 * dwarf2read.c: Likewise.
127 * event-loop.c: Likewise.
128 * event-top.c: Likewise.
129 * f-valprint.c: Likewise.
130 * frame-unwind.c: Likewise.
132 * gdbtypes.c: Likewise.
133 * gnu-v2-abi.c: Likewise.
134 * gnu-v3-abi.c: Likewise.
135 * guile/scm-auto-load.c: Likewise.
136 * guile/scm-breakpoint.c: Likewise.
137 * guile/scm-cmd.c: Likewise.
138 * guile/scm-frame.c: Likewise.
139 * guile/scm-lazy-string.c: Likewise.
140 * guile/scm-param.c: Likewise.
141 * guile/scm-symbol.c: Likewise.
142 * guile/scm-type.c: Likewise.
143 * hppa-hpux-tdep.c: Likewise.
144 * i386-tdep.c: Likewise.
145 * inf-loop.c: Likewise.
146 * infcall.c: Likewise.
147 * infcmd.c: Likewise.
148 * infrun.c: Likewise.
149 * interps.c: Likewise.
150 * interps.h: Likewise.
152 * linespec.c: Likewise.
153 * linux-nat.c: Likewise.
154 * linux-thread-db.c: Likewise.
155 * m32r-rom.c: Likewise.
157 * memory-map.c: Likewise.
158 * mi/mi-cmd-break.c: Likewise.
159 * mi/mi-cmd-stack.c: Likewise.
160 * mi/mi-interp.c: Likewise.
161 * mi/mi-main.c: Likewise.
162 * monitor.c: Likewise.
163 * nto-procfs.c: Likewise.
164 * objc-lang.c: Likewise.
165 * p-valprint.c: Likewise.
167 * ppc-linux-tdep.c: Likewise.
168 * printcmd.c: Likewise.
170 * python/py-auto-load.c: Likewise.
171 * python/py-breakpoint.c: Likewise.
172 * python/py-cmd.c: Likewise.
173 * python/py-finishbreakpoint.c: Likewise.
174 * python/py-frame.c: Likewise.
175 * python/py-framefilter.c: Likewise.
176 * python/py-function.c: Likewise.
177 * python/py-gdb-readline.c: Likewise.
178 * python/py-inferior.c: Likewise.
179 * python/py-infthread.c: Likewise.
180 * python/py-lazy-string.c: Likewise.
181 * python/py-linetable.c: Likewise.
182 * python/py-param.c: Likewise.
183 * python/py-prettyprint.c: Likewise.
184 * python/py-symbol.c: Likewise.
185 * python/py-type.c: Likewise.
186 * python/py-value.c: Likewise.
187 * python/python-internal.h: Likewise.
188 * python/python.c: Likewise.
189 * record-btrace.c: Likewise.
190 * record-full.c: Likewise.
191 * regcache.c: Likewise.
192 * remote-fileio.c: Likewise.
193 * remote-mips.c: Likewise.
194 * remote.c: Likewise.
195 * rs6000-aix-tdep.c: Likewise.
196 * rs6000-nat.c: Likewise.
198 * solib-darwin.c: Likewise.
199 * solib-dsbt.c: Likewise.
200 * solib-frv.c: Likewise.
201 * solib-ia64-hpux.c: Likewise.
202 * solib-spu.c: Likewise.
203 * solib-svr4.c: Likewise.
205 * spu-tdep.c: Likewise.
207 * stap-probe.c: Likewise.
208 * symfile-mem.c: Likewise.
209 * symmisc.c: Likewise.
210 * target.c: Likewise.
211 * thread.c: Likewise.
213 * tracepoint.c: Likewise.
214 * tui/tui-interp.c: Likewise.
215 * typeprint.c: Likewise.
217 * valarith.c: Likewise.
218 * valops.c: Likewise.
219 * valprint.c: Likewise.
221 * varobj.c: Likewise.
222 * windows-nat.c: Likewise.
223 * xml-support.c: Likewise.
225 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
227 * mips-tdep.c (add_offset_16): Rewrite to implement what the
229 (extended_mips16_next_pc): Update accordingly.
231 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
233 * mips-tdep.c (mips16_instruction_is_compact_branch): New
235 (micromips_instruction_is_compact_branch): Likewise.
236 (mips16_scan_prologue): Terminate scanning upon seeing a branch
237 or a compact jump, reaching a jump delay slot, or seeing a
238 second non-prologue instruction.
239 (micromips_scan_prologue): Also terminate scanning upon seeing a
240 compact branch or jump, or reaching a branch or jump delay slot.
241 (mips32_scan_prologue): Terminate scanning upon reaching a branch
242 or jump delay slot, or seeing a second non-prologue instruction.
243 (mips32_instruction_has_delay_slot): Retain instruction
244 examination code only, update arguments accordingly and move
245 instruction fetch pieces to...
246 (mips32_insn_at_pc_has_delay_slot): ... this new function.
247 (micromips_instruction_has_delay_slot): Likewise and to...
248 (micromips_insn_at_pc_has_delay_slot): ... this new function.
249 (mips16_instruction_has_delay_slot): Likewise and to...
250 (mips16_insn_at_pc_has_delay_slot): ... this new function.
251 (mips_single_step_through_delay): Update accordingly.
252 (mips_adjust_breakpoint_address): Likewise.
254 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
256 * mips-tdep.c (micromips_instruction_has_delay_slot): When
257 !mustbe32 also return 1 for 32-bit instructions.
258 (mips16_instruction_has_delay_slot): Likewise. Add an
261 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
263 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
266 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
268 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
270 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
271 for the breakpoint's address. Don't preinitialize `placed_size'.
272 (insert_bp_location): Set `reqstd_address' rather than
274 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
275 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
277 (bkpt_remove_location): Likewise.
278 (deprecated_insert_raw_breakpoint): Likewise.
279 (deprecated_remove_raw_breakpoint): Likewise.
280 (find_single_step_breakpoint): Likewise.
281 * mem-break.c (default_memory_insert_breakpoint): Use
282 `reqstd_address' for the breakpoint's address. Don't set
283 `placed_address' or `placed_size' if breakpoint contents couldn't
284 have been determined.
285 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
286 the breakpoint's address.
287 (remote_insert_hw_breakpoint): Likewise. Don't set
288 `placed_address' or `placed_size' if breakpoint couldn't have been
290 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
291 `reqstd_address' for the breakpoint's address.
292 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
293 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
294 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
295 * microblaze-linux-tdep.c
296 (microblaze_linux_memory_remove_breakpoint): Likewise.
297 * monitor.c (monitor_insert_breakpoint): Likewise.
298 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
299 (procfs_insert_hw_breakpoint): Likewise.
300 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
301 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
302 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
303 * remote-mips.c (mips_insert_breakpoint): Likewise.
304 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
306 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
308 * valops.c (value_assign): Check for bit field assignments
309 before calling architecture-specific register value
310 conversion functions.
312 2014-10-03 Pierre Muller <muller@sourceware.org>
314 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
316 2014-10-02 Pedro Alves <palves@redhat.com>
318 * breakpoint.c (breakpoints_should_be_inserted_now): Use
319 threads_are_executing.
320 * breakpoint.h (breakpoints_should_be_inserted_now): Add
322 * gdbthread.h (threads_are_executing): Declare.
323 (handle_signal_stop) <random signals>: Don't print about the
324 signal here if stopping.
325 (end_stepping_range): Don't notify observers here.
326 (normal_stop): Update the thread list. If stopped by a random
327 signal or a stepping range ended, notify observers.
328 * thread.c (threads_executing): New global.
329 (init_thread_list): Clear 'threads_executing'.
330 (set_executing): Set or clear 'threads_executing'.
331 (threads_are_executing): New function.
332 (update_threads_executing): New function.
333 (update_thread_list): Use it.
335 2014-10-02 Pedro Alves <palves@redhat.com>
338 * breakpoint.c (update_breakpoints_after_exec): Don't create
339 overlay, longjmp, std terminate nor exception breakpoints here.
341 2014-10-02 Pedro Alves <palves@redhat.com>
343 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
345 * inferior.c (find_inferior_for_program_space): Give preference to
346 the current inferior.
347 * inferior.h (find_inferior_for_program_space): Update comment.
348 * progspace.c (switch_to_program_space_and_thread): Prefer the
349 current inferior if it's bound to the program space requested. If
350 the inferior found doesn't have a PID yet, don't bother looking up
352 * progspace.h (switch_to_program_space_and_thread): Adjust
354 * thread.c (any_thread_of_process, any_live_thread_of_process):
355 Give preference to the current thread.
357 2014-10-01 Pedro Alves <palves@redhat.com>
359 * breakpoint.c (insert_bp_location): Error out if inserting a
360 software breakpoint at a read-only address.
361 * target.c (memory_xfer_check_region): New function, factored out
363 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
365 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
366 against the memory region attributes.
368 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
370 * NEWS: Announce new exit-code field in -list-thread-groups
372 * inferior.c (exit_inferior_1): Don't clear exit code.
373 (inferior_appeared): Clear exit code.
374 * mi/mi-main.c (print_one_inferior): Add printing of the exit
377 2014-10-01 Pedro Alves <palves@redhat.com>
379 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
380 GENERATED" along with emacs/vi read-only markers.
381 * regformats/aarch64.dat: Regenerate.
382 * regformats/arm-with-iwmmxt.dat: Regenerate.
383 * regformats/arm-with-neon.dat: Regenerate.
384 * regformats/arm-with-vfpv2.dat: Regenerate.
385 * regformats/arm-with-vfpv3.dat: Regenerate.
386 * regformats/i386/amd64-avx-linux.dat: Regenerate.
387 * regformats/i386/amd64-avx.dat: Regenerate.
388 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
389 * regformats/i386/amd64-avx512.dat: Regenerate.
390 * regformats/i386/amd64-linux.dat: Regenerate.
391 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
392 * regformats/i386/amd64-mpx.dat: Regenerate.
393 * regformats/i386/amd64.dat: Regenerate.
394 * regformats/i386/i386-avx-linux.dat: Regenerate.
395 * regformats/i386/i386-avx.dat: Regenerate.
396 * regformats/i386/i386-avx512-linux.dat: Regenerate.
397 * regformats/i386/i386-avx512.dat: Regenerate.
398 * regformats/i386/i386-linux.dat: Regenerate.
399 * regformats/i386/i386-mmx-linux.dat: Regenerate.
400 * regformats/i386/i386-mmx.dat: Regenerate.
401 * regformats/i386/i386-mpx-linux.dat: Regenerate.
402 * regformats/i386/i386-mpx.dat: Regenerate.
403 * regformats/i386/i386.dat: Regenerate.
404 * regformats/i386/x32-avx-linux.dat: Regenerate.
405 * regformats/i386/x32-avx.dat: Regenerate.
406 * regformats/i386/x32-avx512-linux.dat: Regenerate.
407 * regformats/i386/x32-avx512.dat: Regenerate.
408 * regformats/i386/x32-linux.dat: Regenerate.
409 * regformats/i386/x32.dat: Regenerate.
410 * regformats/microblaze-with-stack-protect.dat: Regenerate.
411 * regformats/mips-dsp-linux.dat: Regenerate.
412 * regformats/mips-linux.dat: Regenerate.
413 * regformats/mips64-dsp-linux.dat: Regenerate.
414 * regformats/mips64-linux.dat: Regenerate.
415 * regformats/nios2-linux.dat: Regenerate.
416 * regformats/rs6000/powerpc-32.dat: Regenerate.
417 * regformats/rs6000/powerpc-32l.dat: Regenerate.
418 * regformats/rs6000/powerpc-64l.dat: Regenerate.
419 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
420 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
421 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
422 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
423 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
424 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
425 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
426 * regformats/s390-linux32.dat: Regenerate.
427 * regformats/s390-linux32v1.dat: Regenerate.
428 * regformats/s390-linux32v2.dat: Regenerate.
429 * regformats/s390-linux64.dat: Regenerate.
430 * regformats/s390-linux64v1.dat: Regenerate.
431 * regformats/s390-linux64v2.dat: Regenerate.
432 * regformats/s390-te-linux64.dat: Regenerate.
433 * regformats/s390x-linux64.dat: Regenerate.
434 * regformats/s390x-linux64v1.dat: Regenerate.
435 * regformats/s390x-linux64v2.dat: Regenerate.
436 * regformats/s390x-te-linux64.dat: Regenerate.
437 * regformats/tic6x-c62x-linux.dat: Regenerate.
438 * regformats/tic6x-c62x.dat: Regenerate.
439 * regformats/tic6x-c64x-linux.dat: Regenerate.
440 * regformats/tic6x-c64x.dat: Regenerate.
441 * regformats/tic6x-c64xp-linux.dat: Regenerate.
442 * regformats/tic6x-c64xp.dat: Regenerate.
444 2014-10-01 Pedro Alves <palves@redhat.com>
446 * features/Makefile: Update comments.
447 (XMLTOC): List all xml files we build C files from.
448 (clean-cfiles): New rule.
450 2014-10-01 Pedro Alves <palves@redhat.com>
452 * features/i386/amd64-avx512-linux.c: Regenerate.
453 * features/i386/amd64-avx512.c: Regenerate.
454 * features/i386/x32-avx512-linux.c: Regenerate.
455 * features/i386/x32-avx512.c: Regenerate.
457 2014-10-01 Pedro Alves <palves@redhat.com>
459 * features/Makefile (WHICH): Remove arm-with-m,
460 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
462 2014-10-01 Pedro Alves <palves@redhat.com>
464 * features/Makefile (clean): New rule.
466 2014-10-01 Pedro Alves <palves@redhat.com>
468 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
469 (zmm14h): Add missing end quotes.
471 2014-10-01 Pedro Alves <palves@redhat.com>
473 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
474 * features/aarch64.c: Regenerate.
476 2014-09-30 Don Breazeal <donb@codesourcery.com>
478 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
479 code so as to work with follow_fork_inferior.
480 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
481 (inf_ttrace_create_inferior): Remove reference to
482 inf_ttrace_vfork_ppid.
483 (inf_ttrace_attach): Ditto.
484 (inf_ttrace_detach): Ditto.
485 (inf_ttrace_kill): Use current_inferior instead of
486 inf_ttrace_vfork_ppid.
487 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
488 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
489 inferior away from the parent.
490 * infrun.c (follow_fork): Call follow_fork_inferior instead of
492 (follow_fork_inferior): New function.
493 (follow_inferior_reset_breakpoints): Make function static.
494 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
495 * linux-nat.c (linux_child_follow_fork): Move target-independent
496 code to infrun.c:follow_fork_inferior.
498 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
500 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
501 * gdbarch.c: Regenerate.
502 * gdbarch.h: Likewise.
503 * corelow.c (sniff_core_bfd): Drop presence check for deleted
504 gdbarch method 'regset_from_core_section'.
505 (get_core_register_section): Remove handling for the case that
506 regset == NULL and regset_from_core_section is defined.
507 (get_core_registers): Drop check for deleted method.
508 * procfs.c (procfs_do_thread_registers): Adjust comment.
510 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
512 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
513 (linux_nat_make_corefile_notes): Remove.
514 (linux_target_install_ops): Do not set target method
515 'make_corefile_notes'.
516 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
518 (linux_corefile_thread_callback): Instead of args->collect, call
519 linux_collect_thread_registers.
520 (linux_make_corefile_notes): Remove 'collect' parameter. Return
521 NULL unless there is a regset iterator.
522 (linux_make_corefile_notes_1): Remove.
523 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
524 by linux_make_corefile_notes.
525 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
527 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
529 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
530 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
532 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
534 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
536 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
537 (xtensa_iterate_over_regset_sections): New.
538 (xtensa_gdbarch_init): Adjust gdbarch initialization.
540 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
542 * vax-tdep.c (vax_regset_from_core_section): Remove.
543 (vax_iterate_over_regset_sections): New.
544 (vax_gdbarch_init): Adjust gdbarch initialization.
546 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
548 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
549 (tilegx_regset_from_core_section): Remove.
550 (tilegx_iterate_over_regset_sections): New.
551 (tilegx_linux_init_abi): Adjust gdbarch initialization.
553 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
555 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
556 (sparc_iterate_over_regset_sections): New.
557 (sparc32_gdbarch_init): Adjust gdbarch initialization.
558 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
560 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
561 (sparc64fbsd_init_abi): Call fbsd_init_abi.
562 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
563 target method 'make_corefile_notes'.
565 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
567 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
568 'sizeof_gregset' and 'sizeof_fpregset'.
569 * sh-tdep.c (sh_regset_from_core_section): Remove.
570 (sh_iterate_over_regset_sections): New.
571 (sh_gdbarch_init): Adjust gdbarch initialization.
572 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
574 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
577 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
579 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
580 (score7_linux_iterate_over_regset_sections): New.
581 (score_gdbarch_init): Adjust gdbarch initialization.
583 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
585 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
587 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
588 method 'make_corefile_notes'.
589 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
590 (ppcfbsd_regset_from_core_section): Remove.
591 (ppcfbsd_iterate_over_regset_sections): New.
592 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
594 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
595 (ppcnbsd_iterate_over_regset_sections): New.
596 (ppcnbsd_init_abi): Adjust.
597 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
598 (ppcobsd_iterate_over_regset_sections): New.
599 (ppcobsd_init_abi): Adjust.
600 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
601 (rs6000_aix_iterate_over_regset_sections): New.
602 (rs6000_aix_init_osabi): Adjust.
604 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
606 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
607 (nios2_regset_from_core_section): Remove.
608 (nios2_iterate_over_regset_sections): New.
609 (nios2_linux_init_abi): Adjust gdbarch initialization.
611 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
613 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
614 (am33_iterate_over_regset_sections): New.
615 (am33_linux_init_osabi): Adjust gdbarch initialization.
617 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
619 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
620 (mips_linux_iterate_over_regset_sections): New.
621 (mips_linux_init_abi): Adjust gdbarch initialization.
622 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
623 (mips64obsd_iterate_over_regset_sections): New.
624 (mips64obsd_init_abi): Adjust.
625 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
626 (mipsnbsd_iterate_over_regset_sections): New.
627 (mipsnbsd_init_abi): Adjust.
629 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
631 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
632 (m88k_iterate_over_regset_sections): New.
633 (m88k_gdbarch_init): Adjust gdbarch initialization.
635 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
637 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
638 (ia64_linux_iterate_over_regset_sections): New.
639 (ia64_linux_init_abi): Adjust gdbarch initialization.
641 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
643 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
644 (m68kbsd_iterate_over_regset_sections): New.
645 (m68kbsd_init_abi): Adjust gdbarch initialization.
646 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
647 (m68k_linux_iterate_over_regset_sections): New.
648 (m68k_linux_init_abi): Adjust gdbarch initialization.
650 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
652 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
653 (m32r_linux_regset_from_core_section): Remove.
654 (m32r_linux_iterate_over_regset_sections): New.
655 (m32r_linux_init_abi): Adjust gdbarch initialization.
657 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
659 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
660 (amd64obsd_iterate_over_regset_sections): New.
661 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
662 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
664 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
665 regset_from_core_section initialization.
666 * i386-tdep.c (i386_regset_from_core_section): Remove.
667 (i386_iterate_over_regset_sections): New.
668 (i386_gdbarch_init): Adjust gdbarch initialization.
669 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
670 (i386_iterate_over_regset_sections): New prototype.
671 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
673 (i386obsd_aout_iterate_over_regset_sections): New.
674 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
675 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
677 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
678 (amd64fbsd_init_abi): Call fbsd_init_abi.
679 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
680 (i386fbsd4_init_abi): Call fbsd_init_abi.
681 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
682 target method 'make_corefile_notes'.
683 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
685 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
687 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
688 (hppa_hpux_iterate_over_regset_sections): New.
689 (hppa_hpux_init_abi): Adjust gdbarch initialization.
690 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
691 (hppa_linux_iterate_over_regset_sections): New.
692 (hppa_linux_init_abi): Adjust.
693 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
694 (hppanbsd_iterate_over_regset_sections): New.
695 (hppanbsd_init_abi): Adjust.
696 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
697 (hppaobsd_iterate_over_regset_sections): New.
698 (hppaobsd_init_abi): Adjust.
700 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
702 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
703 (frv_linux_iterate_over_regset_sections): New.
704 (frv_linux_init_abi): Adjust gdbarch initialization.
706 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
708 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
709 (armbsd_iterate_over_regset_sections): New prototype.
710 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
711 (armbsd_iterate_over_regset_sections): New.
712 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
715 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
717 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
718 (alpha_linux_iterate_over_regset_sections): New.
719 (alpha_linux_init_abi): Adjust gdbarch initialization.
720 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
722 (alphanbsd_iterate_over_regset_sections): New prototype.
724 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
726 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
728 (aarch64_linux_iterate_over_regset_sections): New.
729 (aarch64_linux_init_abi): Adjust gdbarch initialization.
731 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
733 * fbsd-tdep.c: New file.
734 * fbsd-tdep.h: New file.
735 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
736 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
737 (ALLDEPFILES): Add fbsd-tdep.c.
739 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
741 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
743 * gdbarch.h: Regenerate.
744 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
746 (get_core_register_section): Add parameter 'regset' and use it, if
747 set. Add parameter 'min_size' and verify the bfd section size
749 (get_core_registers_cb): Add parameter 'regset' and pass it to
750 get_core_register section. For the "standard" register sections
751 ".reg" and ".reg2", set an appropriate default for human_name.
752 (get_core_registers): Don't abort when the gdbarch has an iterator
753 but no regset_from_core_section. Add NULL/0 for parameters
754 'regset'/'min_size' in calls to get_core_register_section.
755 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
756 'regset' and use it instead of calling the
757 regset_from_core_section gdbarch method.
758 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
759 * i386-tdep.c (i386_supply_xstateregset)
760 (i386_collect_xstateregset, i386_xstateregset): Moved to
762 (i386_regset_from_core_section): Drop handling for .reg-xfp and
764 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
765 core file support only if the regset iterator hasn't been set.
766 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
767 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
768 Moved from i386-tdep.c and renamed to *_linux*.
769 (i386_linux_iterate_over_regset_sections): Add regset parameter to
770 each callback invocation. Allow any .reg-xstate size when reading
772 * amd64-tdep.c (amd64_supply_xstateregset)
773 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
775 (amd64_regset_from_core_section): Remove.
776 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
777 install an amd64-specific regset_from_core_section gdbarch method.
778 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
779 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
780 Moved from amd64-tdep.c and renamed to *_linux*.
781 (amd64_linux_iterate_over_regset_sections): Add regset parameter
782 to each callback invocation. Allow any .reg-xstate size when
783 reading from a core file.
784 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
785 (arm_linux_iterate_over_regset_sections): Add regset parameter to
786 each callback invocation.
787 (arm_linux_init_abi): No longer set the regset_from_core_section
789 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
790 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
791 each callback invocation.
792 (ppc_linux_init_abi): No longer set the regset_from_core_section
794 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
795 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
796 (s390_regset_from_core_section): Remove.
797 (s390_iterate_over_regset_sections): Add regset parameter to each
799 (s390_gdbarch_init): No longer set the regset_from_core_section
800 gdbarch method. Drop initialization of deleted tdep fields.
802 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
804 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
805 (amd64_linux_iterate_over_regset_sections): New.
806 (amd64_linux_init_abi_common): Don't install the regset section
807 list, but the new iterator in gdbarch.
808 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
809 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
810 (arm_linux_iterate_over_regset_sections): ...here. New function.
811 (arm_linux_init_abi): Set iterator instead of section list.
812 * corelow.c (get_core_registers_cb): New function, logic moved
814 (get_core_registers): ...loop body here. Use new iterator method
815 instead of walking through the regset section list.
816 * gdbarch.sh: Remove 'core_regset_sections'. New method
817 'iterate_over_regset_sections'. New typedef
818 'iterate_over_regset_sections_cb'.
819 * gdbarch.c: Regenerate.
820 * gdbarch.h: Likewise.
821 * i386-linux-tdep.c (i386_linux_regset_sections)
822 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
824 (i386_linux_iterate_over_regset_sections): New.
825 (i386_linux_init_abi): Don't choose a regset section list, but
826 install new iterator in gdbarch.
827 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
828 (linux_collect_regset_section_cb): New function, logic moved
830 (linux_collect_thread_registers): ...loop body here. Use iterator
831 method instead of walking through list.
832 (linux_make_corefile_notes_1): Check for presence of iterator
833 method instead of regset section list.
834 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
835 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
836 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
837 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
838 (ppc_linux_iterate_over_regset_sections): ...here. New function.
839 (ppc_linux_init_abi): Don't choose from above regset section
840 lists, but install new iterator in gdbarch.
841 * regset.h (struct core_regset_section): Remove.
842 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
843 have_linux_v1, have_linux_v2, and have_tdb.
844 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
845 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
846 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
847 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
848 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
849 (s390_iterate_over_regset_sections): ...here. New function. Use
851 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
852 regset section lists, but install new iterator.
854 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
856 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
858 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
860 * progspace.c (print_program_space): Don't prune program spaces
861 before printing them.
863 2014-09-25 Pedro Alves <palves@redhat.com>
865 * infrun.c (user_visible_resume_ptid): Don't check
866 singlestep_breakpoints_inserted_p.
868 2014-09-25 Pedro Alves <palves@redhat.com>
870 * breakpoint.c (should_be_inserted): Add debug output.
872 2014-09-25 Pedro Alves <palves@redhat.com>
874 * infrun.c (stepping_past_instruction_at)
875 (clear_exit_convenience_vars): Point at infrun.h instead of
877 (handle_signal_stop): Fix typo.
879 2014-09-24 Yao Qi <yao@codesourcery.com>
881 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
884 2014-09-22 Gary Benson <gbenson@redhat.com>
886 * target.c (target_stop): Updated comment.
888 2014-09-22 Gary Benson <gbenson@redhat.com>
890 * target/target.h (target_stop_ptid): Renamed as...
891 (target_stop_and_wait): New function. Updated comment.
893 (target_continue_ptid): Renamed as...
894 (target_continue_no_signal): New function. Updated comment.
897 2014-09-22 Pedro Alves <palves@redhat.com>
899 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
901 * breakpoint.c (enum ugll_insert_mode): New enum.
902 (always_inserted_mode): Now a plain boolean.
903 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
904 (breakpoints_always_inserted_mode): Delete.
905 (breakpoints_should_be_inserted_now): New function.
906 (insert_breakpoints): Pass UGLL_INSERT to
907 update_global_location_list instead of calling
908 insert_breakpoint_locations manually.
909 (create_solib_event_breakpoint_1): New, factored out from ...
910 (create_solib_event_breakpoint): ... this.
911 (create_and_insert_solib_event_breakpoint): Use
912 create_solib_event_breakpoint_1 instead of calling
913 insert_breakpoint_locations manually.
914 (update_global_location_list): Change parameter type from boolean
915 to enum ugll_insert_mode. All callers adjusted. Adjust to use
916 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
917 (update_global_location_list_nothrow): Change parameter type from
918 boolean to enum ugll_insert_mode.
919 (_initialize_breakpoint): "breakpoint always-inserted" option is
920 now a boolean command. Update help text.
921 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
922 (breakpoints_should_be_inserted_now): New declaration.
923 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
924 Remove breakpoints_always_inserted_mode check.
925 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
926 * remote.c (remote_start_remote): Likewise.
928 2014-09-22 Pedro Alves <palves@redhat.com>
930 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
931 (insert_breakpoints): Don't call insert_breakpoint_locations here.
932 Instead, pass UGLL_INSERT to update_global_location_list.
933 (update_global_location_list): Change parameter type from boolean
934 to enum ugll_insert_mode. All callers adjusted. Adjust to use
935 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
936 (create_solib_event_breakpoint_1): New, factored out from ...
937 (create_solib_event_breakpoint): ... this.
938 (create_and_insert_solib_event_breakpoint): Use
939 create_solib_event_breakpoint_1 instead of calling
940 insert_breakpoint_locations manually.
941 (update_global_location_list): Handle UGLL_INSERT.
943 2014-09-22 Pedro Alves <palves@redhat.com>
945 * breakpoint.c (enum ugll_insert_mode): New enum.
946 (update_global_location_list)
947 (update_global_location_list_nothrow): Change parameter type from
948 boolean to enum ugll_insert_mode. All callers adjusted.
950 2014-09-19 Joel Brobecker <brobecker@adacore.com>
952 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
953 SystemTap support in GDB.
955 2014-09-19 Don Breazeal <donb@codesourcery.com>
957 * linux-nat.c (linux_handle_extended_wait): Call
958 linux_ptrace_get_extended_event.
959 (wait_lwp): Call linux_is_extended_waitstatus.
960 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
961 and linux_is_extended_waitstatus.
962 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
963 linux_ptrace_get_extended_event.
964 (linux_ptrace_get_extended_event): New function.
965 (linux_is_extended_waitstatus): New function.
966 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
967 (linux_is_extended_waitstatus): New declarations.
969 2014-09-19 Yao Qi <yao@codesourcery.com>
971 * dwarf2read.c (dwarf_decode_lines): Update declaration.
972 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
973 comments. Callers update.
974 (dwarf_decode_lines): Likewise.
975 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
976 comments. Skip the line table if 'lowpc' is greater than
977 'address'. Don't check
978 dwarf2_per_objfile->has_section_at_zero.
980 2014-09-18 Doug Evans <dje@google.com>
982 * NEWS: Mention new "producer" attribute of gdb.Symtab.
983 * python/py-symtab.c (stpy_get_producer): New function.
984 (symtab_object_getset): Add "producer" attribute.
986 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
989 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
990 (do_captured_read_memory_integer): Remove.
991 (safe_read_memory_integer): Use target_read_memory directly instead
992 of catching errors in do_captured_read_memory_integer.
994 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
996 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
999 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1001 * objc-lang.c (find_implementation_from_class): Remove dead code.
1003 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1006 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1007 "fprintf_unfiltered (gdb_stdlog...)".
1009 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1011 PR breakpoints/12526
1012 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1014 * breakpoint.c (watch_command_1): Use these fields to retain
1015 bitfield information.
1016 (extract_bitfield_from_watchpoint_value): New function.
1017 (watchpoint_check): Use it.
1018 (update_watchpoint): Use it. Optimize the address and length of a
1019 HW watchpoint pointing to a bitfield.
1020 * value.h (unpack_value_bitfield): New prototype.
1021 * value.c (unpack_value_bitfield): Make extern.
1023 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1025 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1027 * gnu-nat.c (inf_threads): New function.
1028 * gnu-nat.h (inf_threads_ftype): New typedef.
1029 (inf_threads): New declaration.
1030 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1031 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1032 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1033 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1034 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1035 (i386_gnu_dr_get_control): New functions.
1036 (reg_addr): New structure.
1037 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1038 i386 debugging register hooks.
1039 * NEWS: Mention this.
1041 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1043 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1044 vector data transfer instructions.
1045 (arm_record_coproc_data_proc): Updated.
1047 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1049 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1050 arm_record_exreg_ld_st_insn.
1051 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1054 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1056 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1057 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1058 processing instructions.
1060 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1062 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1063 for advance SIMD struct ld/st insn.
1064 (thumb2_record_decode_insn_handler): Replace stub handler with
1065 thumb2_record_asimd_struct_ld_st.
1067 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1069 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1070 for asimd, vfp and coprocessor insns.
1071 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1072 and coprocessor insns.
1073 (thumb2_record_coproc_insn): New function.
1074 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1076 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1079 2014-09-13 Doug Evans <xdje42@gmail.com>
1081 * NEWS: Mention new "queue-signal" command.
1082 * infcmd.c (queue_signal_command): New function.
1083 (_initialize_infcmd): Add new queue-signal command.
1085 2014-09-13 Doug Evans <xdje42@gmail.com>
1087 * linux-nat.c (wait_lwp): Add debugging printf.
1088 (linux_nat_wait_1): Ditto.
1090 2014-09-12 Pedro Alves <palves@redhat.com>
1092 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1093 (create_and_insert_solib_event_breakpoint): New functions.
1094 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1095 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1096 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1097 (remove_dbx_link_breakpoint): Delete function.
1098 (insert_dbx_link_bpt_in_file): Use
1099 create_and_insert_solib_event_breakpoint instead of
1100 deprecated_insert_raw_breakpoint.
1101 (procfs_wait): Don't check whether we hit __dbx_link here.
1102 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1104 * solib-irix.c (base_breakpoint): Delete global.
1105 (disable_break): Delete function.
1106 (enable_break): Use create_solib_event_breakpoint
1107 instead of deprecated_insert_raw_breakpoint.
1108 (irix_solib_handle_event): New function.
1109 (irix_solib_create_inferior_hook): Don't run the target or disable
1110 the mapping-complete breakpoint here.
1111 (_initialize_irix_solib): Install irix_solib_handle_event as
1112 so_ops->handle_event hook.
1114 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1115 Ulrich Weigand <uweigand@de.ibm.com>
1118 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1119 instead of read_memory_unsigned_integer.
1121 2014-09-12 Gary Benson <gbenson@redhat.com>
1123 * nat/linux-waitpid.c: Include common-defs.h.
1124 [GDBSERVER]: Add FIXME comment.
1125 [!GDBSERVER]: Don't include defs.h or signal.h.
1126 (linux_debug) [!GDBSERVER]: Remove empty block.
1128 2014-09-12 Gary Benson <gbenson@redhat.com>
1130 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1131 Don't include defs.h or server.h.
1133 2014-09-12 Gary Benson <gbenson@redhat.com>
1135 * nat/linux-btrace.c: Include common-defs.h.
1136 Don't include defs.h, server.h or gdbthread.h.
1137 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1139 2014-09-12 Gary Benson <gbenson@redhat.com>
1141 * common/agent.c: Include common-defs.h.
1142 Don't include defs.h or server.h.
1143 * common/buffer.c: Likewise.
1144 * common/common-debug.c: Likewise.
1145 * common/common-utils.c: Likewise.
1146 * common/errors.c: Likewise.
1147 * common/filestuff.c: Likewise.
1148 * common/format.c: Likewise.
1149 * common/gdb_vecs.c: Likewise.
1150 * common/print-utils.c: Likewise.
1151 * common/ptid.c: Likewise.
1152 * common/rsp-low.c: Likewise.
1153 * common/signals.c: Likewise.
1154 * common/vec.c: Likewise.
1155 * common/xml-utils.c: Likewise.
1156 * nat/linux-osdata.c: Likewise.
1157 * nat/linux-procfs.c: Likewise.
1158 * nat/linux-ptrace.c: Likewise.
1159 * nat/mips-linux-watch.c: Likewise.
1160 * target/waitstatus.c: Likewise.
1162 2014-09-12 Tom Tromey <tromey@redhat.com>
1163 Gary Benson <gbenson@redhat.com>
1165 * common/common-regcache.h: New file.
1166 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1167 * regcache.h: Include common-regcache.h.
1168 (regcache_read_pc): Don't declare.
1169 * regcache.c (get_thread_regcache_for_ptid): New function.
1170 * nat/linux-btrace.c: Don't include regcache.h.
1171 Include common-regcache.h.
1172 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1174 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1176 * regcache.h (struct regset): Declare.
1178 2014-09-11 Pedro Alves <palves@redhat.com>
1181 * main.c: Include "infrun.h".
1182 (catch_command_errors, catch_command_errors_const): Wait for the
1183 foreground command to complete.
1184 * top.c (maybe_wait_sync_command_done): New function, factored out
1186 (maybe_wait_sync_command_done): ... here.
1187 * top.h (maybe_wait_sync_command_done): New declaration.
1189 2014-09-11 Tom Tromey <tromey@redhat.com>
1190 Gary Benson <gbenson@redhat.com>
1192 * common/symbol.h: New file.
1193 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1194 * minsyms.c (find_minimal_symbol_address): New function.
1195 * common/agent.c: Include common/symbol.h.
1196 [!GDBSERVER]: Don't include objfiles.h.
1197 (agent_look_up_symbols): Use find_minimal_symbol_address.
1199 2014-09-11 Gary Benson <gbenson@redhat.com>
1201 * target/target.h (target_stop_ptid, target_continue_ptid):
1203 * target.c (target_stop_ptid, target_continue_ptid): New
1205 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1206 (agent_run_command): Always use target_stop_ptid and
1207 target_continue_ptid.
1209 2014-09-11 Tom Tromey <tromey@redhat.com>
1210 Gary Benson <gbenson@redhat.com>
1212 * target/target.h: New file.
1213 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1214 * target.h: Include target/target.h.
1215 (target_read_memory, target_write_memory): Don't declare.
1216 * target.c (target_read_uint32): New function.
1217 * common/agent.c: Include target/target.h.
1218 [!GDBSERVER]: Don't include target.h.
1219 (helper_thread_id): Type changed to uint32_t.
1220 (agent_get_helper_thread_id): Use target_read_uint32.
1221 (agent_run_command): Always use target_read_memory and
1222 target_write_memory.
1223 (agent_capability): Type changed to uint32_t.
1224 (agent_capability_check): Use target_read_uint32.
1226 2014-09-11 Gary Benson <gbenson@redhat.com>
1228 * common/common-debug.h (show_debug_regs): Declare.
1229 * common/common-debug.c (show_debug_regs): Define.
1230 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1231 all uses with show_debug_regs. Replace all uses that considered
1232 debug_hw_points as a multi-value integer with straight boolean
1234 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1235 with show_debug_regs.
1236 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1237 all uses with show_debug_regs.
1238 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1239 uses with show_debug_regs.
1241 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1243 * findvar.c (address_from_register): Handle targets requiring
1244 a special conversion routine even for plain pointer types.
1246 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1248 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1249 (store_register): Do not call exec_one_dummy_insn.
1251 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1253 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1254 dereference it first. Use value_enclosing_type instead of
1256 (ada_array_length): Likewise.
1258 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1260 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1261 Adjust function implementation and documentation accordingly.
1262 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1263 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1264 Update call to ada_value_ptr_subscript.
1266 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1268 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1269 instead of VAL's type.
1271 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1273 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1275 2014-09-09 Doug Evans <xdje42@gmail.com>
1278 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1279 last parameter to pkg-config, not first.
1280 * configure.ac: Pass --with-guile provided pkg-config path to
1281 GDB_GUILE_PROGRAM_NAMES.
1282 * configure: Regenerate.
1284 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1286 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1289 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1291 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1292 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1293 the list of sections determining GDB_OSABI_IRIX.
1295 2014-09-09 James Hogan <james.hogan@imgtec.com>
1297 * MAINTAINERS (Write After Approval): Add "James Hogan".
1299 2014-09-09 James Hogan <james.hogan@imgtec.com>
1301 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1303 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1305 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1307 2014-09-08 Doug Evans <xdje42@gmail.com>
1310 * guile.c: #include <signal.h>.
1311 (_initialize_guile): Block SIGCHLD while initializing Guile.
1313 Replaces the following, which is reverted.
1315 2014-07-26 Doug Evans <xdje42@gmail.com>
1318 * configure.ac: Add check for header gc/gc.h.
1319 Add check for function setenv.
1320 * configure: Regenerate.
1321 * config.in: Regenerate.
1322 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1324 2014-09-08 Doug Evans <xdje42@gmail.com>
1326 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1327 with named constant. Fix style of pointer comparison.
1328 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1330 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1333 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1334 decide whether we display the command on "show user".
1335 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1336 printing command name.
1337 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1338 * cli/cli-decode.c (cli_user_command_p): Create helper function
1339 to verify whether cmd_list_element is a user-defined command.
1341 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1344 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1345 Fix goto out of TRY_CATCH.
1347 2014-09-06 Doug Evans <xdje42@gmail.com>
1348 Tom Tromey <tromey@redhat.com>
1351 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1352 $_any_caller_matches.
1353 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1354 * python/lib/gdb/function/caller_is.py: New file.
1356 2014-09-06 Doug Evans <xdje42@gmail.com>
1358 * infcmd.c (program_info): Fix typo.
1360 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1363 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1364 'number'. New variable 'has_digit'. Rewrite code to deal with
1365 subexpressions on SDT probes.
1367 2014-09-04 Pedro Alves <palves@redhat.com>
1369 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1370 the input is only one character long.
1372 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1375 * f-valprint.c (f_val_print): Specify the correct print option to
1376 use when printing integer values.
1378 2014-09-04 Gary Benson <gbenson@redhat.com>
1380 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1381 Remove code to cope with LWPs wrapped as PIDs.
1382 Add assertions to ensure no wrapped LWPs are passed.
1384 2014-09-04 Pedro Alves <palves@redhat.com>
1386 * value.c (value_ranges_copy_adjusted): New function, factored out
1388 (value_contents_copy_raw): ... here.
1389 (unpack_value_bits_as_long_1): Rename back to ...
1390 (unpack_bits_as_long): ... this. Remove 'original_value' and
1391 'result' parameters. Change return type to LONGEST.
1392 (unpack_value_bits_as_long): Delete.
1393 (unpack_value_field_as_long_1): Delete.
1394 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1395 (unpack_value_bitfield): New function.
1396 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1397 (value_fetch_lazy): Use unpack_value_bitfield.
1398 * value.h (unpack_value_bits_as_long): Delete declaration.
1400 2014-09-03 Sasha Smundak <asmundak@google.com>
1402 * python/py-frame.c (frapy_read_register): New function.
1404 2014-09-03 James Hogan <james.hogan@imgtec.com>
1406 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1407 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1409 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1412 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1414 (add_cmd): Set "completer_handle_brkchars" to NULL.
1415 * cli/cli-decode.h (struct cmd_list_element)
1416 <completer_handle_brkchars>: New field.
1417 * command.h (completer_ftype_void): New typedef.
1418 (set_cmd_completer_handle_brkchars): New prototype.
1419 * completer.c (set_gdb_completion_word_break_characters): New
1421 (complete_line_internal): Call "completer_handle_brkchars"
1422 callback from command.
1423 * completer.h: Include "command.h".
1424 (set_gdb_completion_word_break_characters): New prototype.
1425 * python/py-cmd.c (cmdpy_completer_helper): New function.
1426 (cmdpy_completer_handle_brkchars): New function.
1427 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1428 (cmdpy_init): Set completer_handle_brkchars to
1429 cmdpy_completer_handle_brkchars.
1431 2014-09-03 Gary Benson <gbenson@redhat.com>
1433 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1434 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1435 Loop conditions changed to equivalent form.
1436 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1437 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1438 ALL_DEBUG_ADDRESS_REGISTERS.
1440 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1442 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1445 2014-09-02 Doug Evans <dje@google.com>
1447 * typeprint.c (find_global_typedef): Fix comment.
1449 2014-09-02 Gary Benson <gbenson@redhat.com>
1451 * i386-nat.h: Renamed as...
1452 * x86-nat.h: New file. All type, function and variable name
1453 prefixes changed from "i386_" to "x86_". All references updated.
1454 * i386-nat.c: Renamed as...
1455 * x86-nat.c: New file. All type, function and variable name
1456 prefixes changed from "i386_" to "x86_". All references updated.
1457 * common/i386-xstate.h: Renamed as...
1458 * common/x86-xstate.h: New file. All type, function and variable
1459 name prefixes changed from "i386_" to "x86_". All references
1461 * nat/i386-cpuid.h: Renamed as...
1462 * nat/x86-cpuid.h: New file. All type, function and variable name
1463 prefixes changed from "i386_" to "x86_". All references updated.
1464 * nat/i386-gcc-cpuid.h: Renamed as...
1465 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1466 name prefixes changed from "i386_" to "x86_". All references
1468 * nat/i386-dregs.h: Renamed as...
1469 * nat/x86-dregs.h: New file. All type, function and variable name
1470 prefixes changed from "i386_" to "x86_". All references updated.
1471 * nat/i386-dregs.c: Renamed as...
1472 * nat/x86-dregs.c: New file. All type, function and variable name
1473 prefixes changed from "i386_" to "x86_". All references updated.
1475 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1477 * varobj.c (_initialize_varobj): Move to the end of file.
1479 2014-08-29 Gary Benson <gbenson@redhat.com>
1481 * common/common-exceptions.h: New file.
1482 * common/common-exceptions.c: Likewise.
1483 * Makefile.in (SFILES): Add common/common-exceptions.c.
1484 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1485 (COMMON_OBS): Add common-exceptions.o.
1486 (common-exceptions.o): New rule.
1487 * exceptions.h (common-exceptions.h): Include.
1488 (gdb_setjmp.h): Do not include.
1489 (return_reason): Moved to common-exceptions.h.
1490 (enum return_reason): Likewise.
1491 (RETURN_MASK): Likewise.
1492 (typedef return_mask): Likewise.
1493 (enum errors): Likewise.
1494 (struct gdb_exception): Likewise.
1495 (exceptions_state_mc_init): Likewise.
1496 (exceptions_state_mc_action_iter): Likewise.
1497 (exceptions_state_mc_action_iter_1): Likewise.
1498 (TRY_CATCH): Likewise.
1499 (throw_exception): Likewise.
1500 (throw_verror): Likewise.
1501 (throw_vquit): Likewise.
1502 (throw_error): Likewise.
1503 (throw_quit): Likewise.
1504 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1505 (enum catcher_action): Likewise.
1506 (struct catcher): Likewise.
1507 (current_catcher): Likewise.
1508 (catcher_list_size): Likewise.
1509 (exceptions_state_mc_init): Likewise.
1510 (catcher_pop): Likewise.
1511 (exceptions_state_mc): Likewise.
1512 (exceptions_state_mc_action_iter): Likewise.
1513 (exceptions_state_mc_action_iter_1): Likewise.
1514 (throw_exception): Likewise.
1515 (exception_messages): Likewise.
1516 (exception_messages_size): Likewise.
1517 (throw_it): Likewise.
1518 (throw_verror): Likewise.
1519 (throw_vquit): Likewise.
1520 (throw_error): Likewise.
1521 (throw_quit): Likewise.
1522 (prepare_to_throw_exception): New function.
1524 2014-08-29 Gary Benson <gbenson@redhat.com>
1526 * common/gdb_setjmp.h: New file.
1527 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1528 * configure.ac: Move sigsetjmp check...
1529 * common/common.m4: ...here.
1530 * configure: Regenerate.
1531 * cp-support.c (SIGJMP_BUF): Delete.
1532 (SIGSETJMP): Likewise.
1533 (SIGLONGJMP): Likewise.
1534 * exceptions.h (gdb_setjmp.h): Include.
1535 (setjmp.h): Do not include.
1536 (EXCEPTIONS_SIGJMP_BUF): Delete.
1537 (EXCEPTIONS_SIGSETJMP): Likewise.
1538 (EXCEPTIONS_SIGLONGJMP): Likewise.
1539 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1541 * exceptions.c: Likewise.
1543 2014-08-29 Gary Benson <gbenson@redhat.com>
1545 * cleanups.h: Moved to...
1546 * common/cleanups.h: New file.
1547 * cleanups.c: Moved to...
1548 * common/cleanups.c: New file. Include common-defs.h and
1549 cleanups.h. Do not include defs.h.
1550 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1551 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1552 (cleanups.o): New rule.
1554 2014-08-29 Gary Benson <gbenson@redhat.com>
1556 * common/errors.h (internal_warning): New declaration.
1557 (internal_vwarning): Likewise.
1558 * common/errors.c (internal_warning): New function.
1559 * utils.h (internal_warning): Don't declare.
1560 (internal_vwarning): Likewise.
1561 * utils.c (internal_warning): Removed.
1563 2014-08-29 Gary Benson <gbenson@redhat.com>
1565 * main.c (captured_main): Use warning during startup.
1566 Prefix startup warning messages with command name.
1568 2014-08-29 Gary Benson <gbenson@redhat.com>
1570 * main.c (captured_main): Handle usage errors with error.
1572 2014-08-29 Gary Benson <gbenson@redhat.com>
1574 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1575 exit pair with a call to error. Wrap the message with _().
1577 2014-08-29 Gary Benson <gbenson@redhat.com>
1579 * main.c (captured_main): Replace a fprintf/exit
1580 pair with a call to error. Wrap the message with _().
1582 2014-08-29 Gary Benson <gbenson@redhat.com>
1584 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1585 pairs with calls to error. Wrap the message with _().
1587 2014-08-29 Gary Benson <gbenson@redhat.com>
1589 * utils.c (vwarning): Protect calls to target_terminal_ours
1592 2014-08-29 Gary Benson <gbenson@redhat.com>
1594 * exceptions.c (print_flush): Protect calls to
1595 target_terminal_ours and wrap_here.
1597 2014-08-29 Gary Benson <gbenson@redhat.com>
1599 * utils.h (filtered_printing_initialized): New declaration.
1600 * utils.c (abort_with_message): New function.
1601 (internal_vproblem): Use abort_with_message for first level
1602 recursive internal problems, and if gdb_stderr is not set up.
1603 Protect calls to target_terminal_ours, begin_line and query.
1605 2014-08-28 Doug Evans <dje@google.com>
1607 * symtab.c (in_prologue): Move definition to better spot.
1608 (skip_prologue_using_sal): Ditto.
1610 2014-08-28 Doug Evans <dje@google.com>
1612 * symtab.c (find_function_start_sal): Move definition to better spot.
1614 2014-08-28 Yao Qi <yao@codesourcery.com>
1616 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1617 found_stack_adjust in forward scan. Remove condition check
1618 on found_stack_adjust which is always true. Indent the code.
1620 2014-08-28 Yao Qi <yao@codesourcery.com>
1622 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1623 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1624 (dwarf_decode_lines): Remove argument
1625 want_line_info. Remove condition check on want_line_info.
1628 2014-08-27 Doug Evans <dje@google.com>
1630 * dwarf2read.c (dwarf_record_line): Fix typo.
1632 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1634 * target.h (struct target_ops::to_terminal_save_ours): Remove
1636 (target_terminal_save_ours): Remove macro.
1637 * target-delegates.c: Regenerate.
1638 * inf-child.c (inf_child_target): Don't set the nonexistent
1639 field to_terminal_save_ours.
1640 * inferior.h (child_terminal_save_ours): Remove declaration.
1641 * terminal.h (gdb_save_tty_state): New declaration.
1642 * inflow.c (child_terminal_save_ours): Rename to ...
1643 (gdb_save_tty_state): ... this.
1644 * tui/tui.c: Include terminal.h.
1645 (tui_enable): Use gdb_save_tty_state instead of
1646 target_terminal_save_ours.
1647 (tui_disable): Likewise.
1649 2014-08-25 Doug Evans <dje@google.com>
1651 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1652 Pass NULL instead of 0 for context pointer.
1654 2014-08-25 Yao Qi <yao@codesourcery.com>
1656 * dwarf2read.c: Fix grammatical error.
1658 2014-08-24 Yao Qi <yao@codesourcery.com>
1660 * dwarf2read.c (scan_partial_symbols): Update comments.
1661 Rename argument 'need_pc' with 'set_addrmap'.
1662 (add_partial_namespace): Rename argument 'need_pc' with
1664 (add_partial_module): Likewise.
1665 (add_partial_subprogram): Likewise. Update comments.
1666 (dwarf2_name): Fix typo.
1668 2014-08-22 Doug Evans <dje@google.com>
1671 * dwarf2read.c (dwarf_record_line_p): New function.
1672 (dwarf_decode_lines_1): Ignore subsequent line number entries
1673 for the same line if any entry had a non-zero discriminator.
1675 2014-08-22 Doug Evans <dje@google.com>
1677 * buildsym.h (record_line_ftype): New typedef.
1678 (record_line): Use it.
1679 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1680 (dwarf_decode_lines_1): Call them.
1682 2014-08-22 Yao Qi <yao@codesourcery.com>
1684 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1685 (ctf_end): Remove code.
1687 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1689 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1690 (linux_make_corefile_notes): call update_thread_list, protected against
1693 2014-08-21 Pedro Alves <palves@redhat.com>
1695 * infcmd.c (attach_command): Remove comment.
1697 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1699 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1700 unsigned LONGEST to ULONGEST.
1702 2014-08-20 Pedro Alves <palves@redhat.com>
1704 * Makefile.in (check-read1): New rule.
1706 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1708 * value.c (value_from_contents_and_address): Strip resolved_type's
1709 typedef layers before checking its TYPE_DATA_LOCATION.
1711 2014-08-20 Pedro Alves <palves@redhat.com>
1713 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1715 2014-08-20 Yao Qi <yao@codesourcery.com>
1717 * amd64-tdep.c (amd64_classify): Add a blank line after the
1718 example. Move "*/" to a new line.
1719 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1720 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1721 * dwarf2read.c (psymtab_include_file_name): Likewise.
1723 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1724 Pedro Alves <palves@redhat.com>
1728 * ada-lang.c (coerce_unspec_val_to_type): Use
1729 value_contents_copy_raw.
1730 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1731 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1732 * cp-valprint.c (cp_print_value_fields): Let the common printing
1733 code handle optimized out values.
1734 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1735 * d-valprint.c (dynamic_array_type): Use
1736 value_bits_any_optimized_out.
1737 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1738 check_any_valid fields.
1739 (check_pieced_value_bits): Delete and inline ...
1740 (check_pieced_synthetic_pointer): ... here.
1741 (check_pieced_value_validity): Delete.
1742 (check_pieced_value_invalid): Delete.
1743 (pieced_value_funcs): Remove check_validity and check_any_valid
1745 (read_pieced_value): Use mark_value_bits_optimized_out.
1746 (write_pieced_value): Switch to use
1747 mark_value_bytes_optimized_out.
1748 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1749 of assuming the whole value is optimized out.
1750 * findvar.c (read_frame_register_value): Remove special handling
1751 of optimized out registers.
1752 (value_from_register): Use mark_value_bytes_optimized_out.
1753 * frame-unwind.c (frame_unwind_got_optimized): Use
1754 mark_value_bytes_optimized_out.
1755 * jv-valprint.c (java_value_print): Adjust.
1756 (java_print_value_fields): Let the common printing code handle
1757 optimized out values.
1758 * mips-tdep.c (mips_print_register): Remove special handling of
1759 optimized out registers.
1760 * opencl-lang.c (lval_func_check_validity): Delete.
1761 (lval_func_check_any_valid): Delete.
1762 (opencl_value_funcs): Remove check_validity and check_any_valid
1764 * p-valprint.c (pascal_object_print_value_fields): Let the common
1765 printing code handle optimized out values.
1766 * stack.c (read_frame_arg): Remove special handling of optimized
1767 out values. Fetch both VAL and ENTRYVAL before comparing
1768 contents. Adjust to value_available_contents_eq rename.
1769 * valprint.c (valprint_check_validity)
1770 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1771 (val_print_array_elements): Adjust.
1772 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1773 (value_bits_any_optimized_out): New function.
1774 (value_entirely_covered_by_range_vector): New function, factored
1775 out from value_entirely_unavailable.
1776 (value_entirely_unavailable): Reimplement.
1777 (value_entirely_optimized_out): New function.
1778 (insert_into_bit_range_vector): New function, factored out from
1779 mark_value_bits_unavailable.
1780 (mark_value_bits_unavailable): Reimplement.
1781 (struct ranges_and_idx): New struct.
1782 (find_first_range_overlap_and_match): New function, factored out
1783 from value_available_contents_bits_eq.
1784 (value_available_contents_bits_eq): Rename to ...
1785 (value_contents_bits_eq): ... this. Check both unavailable
1786 contents and optimized out contents.
1787 (value_available_contents_eq): Rename to ...
1788 (value_contents_eq): ... this.
1789 (allocate_value_lazy): Remove reference to the old optimized_out
1791 (allocate_optimized_out_value): Use
1792 mark_value_bytes_optimized_out.
1793 (require_not_optimized_out): Adjust to check whether the
1794 optimized_out vec is empty.
1795 (ranges_copy_adjusted): New function, factored out from
1796 value_contents_copy_raw.
1797 (value_contents_copy_raw): Also copy the optimized out ranges.
1798 Assert the destination ranges aren't optimized out.
1799 (value_contents_copy): Update comment, remove call to
1800 require_not_optimized_out.
1801 (value_contents_equal): Adjust to check whether the optimized_out
1803 (set_value_optimized_out, value_optimized_out_const): Delete.
1804 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1806 (value_entirely_optimized_out, value_bits_valid): Delete.
1807 (value_copy): Take a VEC copy of the 'optimized_out' field.
1808 (value_primitive_field): Remove special handling of optimized out.
1809 (value_fetch_lazy): Assert that lazy values have no unavailable
1810 regions. Use value_bits_any_optimized_out. Remove some special
1811 handling for optimized out values.
1812 * value.h: Add intro comment about <optimized out> and
1814 (struct lval_funcs): Remove check_validity and check_any_valid
1816 (set_value_optimized_out, value_optimized_out_const): Remove.
1817 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1819 (value_bits_any_optimized_out): New declaration.
1820 (value_bits_valid): Delete declaration.
1821 (value_available_contents_eq): Rename to ...
1822 (value_contents_eq): ... this, and extend comments.
1824 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1826 Fix -fsanitize=address on unreadable inferior strings.
1827 * valprint.c (val_print_string): Fix access before BUFFER.
1829 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1831 * target.c (target_struct_size): Remove.
1832 (target_struct_allocsize): Remove.
1833 (DEFAULT_ALLOCSIZE): Remove.
1834 (target_ops_p): New typedef.
1835 (DEF_VEC_P (target_ops_p)): New vector type.
1836 (target_structs): Change type to VEC (target_ops_p).
1837 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1838 (find_default_run_target): Rewrite for loop following changes to
1841 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1843 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1844 Adjust code accordingly. Adjust function description comment.
1846 2014-08-19 Yao Qi <yao@codesourcery.com>
1848 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1851 2014-08-19 Alan Modra <amodra@gmail.com>
1853 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1854 * config.in: Regenerate.
1855 * configure: Regenerate.
1857 2014-08-19 Tom Tromey <tromey@redhat.com>
1858 Gary Benson <gbenson@redhat.com>
1860 * common/common-debug.h: New file.
1861 * common/common-debug.c: Likewise.
1862 * debug.c: Likewise.
1863 * Makefile.in (SFILES): Add common/common-debug.c.
1864 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1865 (COMMON_OBS): Add common-debug.o and debug.o.
1866 (common-debug.o): New rule.
1867 * common/common-defs.h: Include common-debug.h.
1868 * common/agent.c (debug_agent_printf): New function.
1869 (DEBUG_AGENT): Redefine.
1870 * nat/i386-dregs.c (debug_printf): Undefine.
1872 2014-08-19 Gary Benson <gbenson@redhat.com>
1874 * common/common-defs.h: Include print-utils.h.
1875 * utils.h: Do not include print-utils.h.
1877 2014-08-19 Tom Tromey <tromey@redhat.com>
1878 Gary Benson <gbenson@redhat.com>
1880 * common/common-types.h: New file.
1881 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1882 * common/common-defs.h: Include common-types.h.
1883 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1886 2014-08-19 Tom Tromey <tromey@redhat.com>
1887 Gary Benson <gbenson@redhat.com>
1889 * common/errors.h: New file.
1890 * common/errors.c: Likewise.
1891 * Makefile.in (SFILES): Add common/errors.c.
1892 (HFILES_NO_SRCDIR): Add common/errors.h.
1893 (COMMON_OBS): Add errors.o.
1894 (errors.o): New rule.
1895 * common/common-defs.h: Include errors.h.
1896 * utils.h (perror_with_name, error, verror, warning, vwarning):
1898 * common/common-utils.h: (malloc_failure, internal_error):
1901 2014-08-19 Gary Benson <gbenson@redhat.com>
1903 * utils.c (internal_vproblem): Always print the message.
1905 2014-08-18 Doug Evans <dje@google.com>
1907 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1909 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1911 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1912 Return 0 if TYPE is dynamic.
1913 (print_range): Add handling of dynamic ranges.
1915 2014-08-18 Keven Boell <keven.boell@intel.com>
1916 Joel Brobecker <brobecker@adacore.com>
1918 * gdbtypes.h (struct main_type): Add field "data_location".
1919 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1920 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1921 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1922 a dynamic data location.
1923 (resolve_dynamic_type): Add DW_AT_data_location handling.
1924 (copy_recursive, copy_type): Copy the data_location information
1926 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1927 * value.c (value_from_contents_and_address): Add
1928 DW_AT_data_location handling.
1930 2014-08-18 Keven Boell <keven.boell@intel.com>
1931 Joel Brobecker <brobecker@adacore.com>
1933 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1934 field "get_object_address".
1935 * dwarf2expr.c (execute_stack_op): Add handling for
1936 DW_OP_push_object_address.
1937 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1938 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1939 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1940 (dwarf_expr_get_obj_addr): New function.
1941 (dwarf_expr_ctx_funcs): Add get_object_address field.
1942 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1943 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1944 (dwarf2_evaluate_property): Add parameter "address". Use it.
1945 (needs_get_obj_addr): New function.
1946 (needs_frame_ctx_funcs): Add get_object_address field.
1947 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1948 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1949 (resolve_dynamic_array): Likewise.
1951 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1953 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1954 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1955 fixed value for records and unions for which some GNAT encodings
1958 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1960 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1961 rewrite to avoid "else if" and "else" constructs. Should be
1962 a no-op in practice.
1964 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1966 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1969 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1972 * eval.c: Update all calls to find_overload_match.
1973 * valarith.c: Likewise.
1974 (value_user_defined_cpp_op, value_user_defined_op): New
1975 argument NOSIDE. Update all callers.
1976 * valops.c (find_overload_match): New argument NOSIDE.
1977 * value.h (find_overload_match): Update signature.
1979 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1981 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1982 'items' methods instead of 'iteritems' method on dictionaries.
1984 2014-08-15 Doug Evans <dje@google.com>
1986 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1989 2014-08-15 Doug Evans <dje@google.com>
1991 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1993 2014-08-15 Doug Evans <dje@google.com>
1995 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1997 2014-08-15 Doug Evans <dje@google.com>
1999 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2002 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2004 * dcache.h: Include target.h, to avoid compile time warnings.
2006 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2008 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2009 frame_info" partial declaration.
2010 * gdbarch.h: Regenerate.
2012 2014-08-15 Yao Qi <yao@codesourcery.com>
2014 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2015 Add parameter 'decode_for_pst_p'. Callers update.
2017 2014-08-13 Yao Qi <yao@codesourcery.com>
2020 * configure.ac: Use local variable 'pos'.
2021 * configure: Regenerated.
2023 2014-08-11 Doug Evans <dje@google.com>
2025 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2026 message, it is redundant with "Reading symbols from ..." message.
2028 2014-08-10 Doug Evans <xdje42@gmail.com>
2030 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2032 2014-08-09 Yao Qi <yao@codesourcery.com>
2035 * remote.c (remote_xfer_partial): Remove dead code.
2037 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2039 * ia64-linux-tdep.c: Include "regset.h".
2040 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2041 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2042 (ia64_linux_supply_fpregset): New function.
2043 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2044 (ia64_linux_regset_from_core_section): New function.
2045 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2048 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2050 * m68klinux-tdep.c: Include "regset.h".
2051 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2052 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2053 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2054 (m68k_linux_regset_from_core_section): New function.
2055 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2058 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2060 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2061 function. Move logic to...
2062 (tilegx_linux_regmap): ... this new register map.
2063 (tilegx_linux_regset): Refer to register map, replace supply
2064 method by regcache_supply_regset, and add collect method.
2065 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2066 TILEGX_FIRST_EASY_REGNUM.
2068 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2070 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2071 that calls regcache_supply_regset and handles the EPC register
2072 separately. Move main logic to...
2073 (score7_linux_gregmap): ... this new register map.
2074 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2075 (score7_linux_gregset): Refer to register map. Add collect method.
2076 (score7_linux_regset_from_core_section): Replace
2077 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2078 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2079 (struct regset): Delete unused forward declaraction.
2080 (struct pt_regs): Delete structure definition.
2081 (elf_gregset_t): Delete typedef.
2083 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2085 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2086 (nios2_core_regset): Add collect method.
2088 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2090 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2091 platform-independent and don't write to read-only input buffer.
2092 (m32r_linux_collect_gregset): New function.
2093 (m32r_linux_gregset): Add collect method.
2095 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2097 * hppa-linux-tdep.c (greg_map): Rename to...
2098 (hppa_linux_gregmap): ... this. Also convert to
2099 regcache_map_entry format.
2100 (hppa_linux_supply_regset): Delete function.
2101 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2102 (hppa_linux_fpregmap): ... this new register map.
2103 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2104 register map, replace supply method by regcache_supply_regset, and
2105 add collect method regcache_collect_regset.
2107 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2109 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2110 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2111 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2112 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2113 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2114 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2115 (frv_linux_supply_gregset): Replace main logic by call to
2116 regcache_supply_regset, but keep clearing gr32-gr63.
2117 (frv_linux_supply_fpregset): Delete function.
2118 (frv_linux_gregset): Refer to appropriate register map and add
2119 regcache_collect_regset as the collect method.
2120 (frv_linux_fpregset): Likewise. Also exchange the supply method
2121 by regcache_supply_regset.
2123 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2125 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2126 by call to alpha_supply_int_regs.
2127 (alpha_linux_collect_gregset): New function.
2128 (alpha_linux_supply_fpregset): Replace logic by call to
2129 alpha_supply_fp_regs.
2130 (alpha_linux_collect_fpregset): New function.
2131 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2133 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2135 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2136 by call to regcache_collect_regset.
2137 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2138 instead of aarch64_linux_supply_gregset/_fpregset.
2139 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2140 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2141 header file instead.
2142 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2143 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2144 functions. Move logic to ...
2145 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2147 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2148 refer to new register maps, replace *_regset_from_core by
2149 regcache_supply_regset, and also use regcache_collect_regset.
2150 * aarch64-linux-tdep.h: Include "regset.h".
2151 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2153 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2154 macros, moved from C source file.
2155 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2156 variable declarations.
2158 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2160 * s390-linux-nat.c: Include "regset.h".
2161 (regmap_gregset): Delete macro.
2162 (s390_64_regmap_gregset): New register map for
2163 regcache_supply/_collect_regset.
2164 (s390_64_gregset): New regset.
2165 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2166 (regmap_fpregset): Delete macro.
2167 (s390_native_supply, s390_native_collect): Delete functions.
2168 (supply_gregset, fill_gregset): Replace s390-specific regmap
2169 handling by a call to regcache_supply/_collect_regset.
2170 (supply_fpregset, fill_fpregset): Call regcache_supply/
2171 _collect_regset instead of s390_native_supply/_collect.
2172 (fetch_regset, store_regset): Likewise. Also change the last
2173 parameter to a regset instead of a regmap.
2174 (s390_linux_fetch_inferior_registers)
2175 (390_linux_store_inferior_registers): Adjust last parameter in
2176 calls to fetch_regset and store_regset.
2177 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2178 (s390_gregmap): ... this. Also make static const and convert to
2179 regcache_map_entry format.
2180 (s390x_regmap_gregset): Delete.
2181 (s390_regmap_fpregset): Rename to...
2182 (s390_fpregmap): ... this. Make static const and convert to
2183 regcache_map_entry format.
2184 (s390_regmap_upper, s390_regmap_last_break)
2185 (s390x_regmap_last_break, s390_regmap_system_call)
2186 (s390_regmap_tdb): Likewise.
2187 (s390_supply_regset, s390_collect_regset): Remove functions.
2188 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2190 (s390_gregset, s390_fpregset, s390_upper_regset)
2191 (s390_last_break_regset, s390x_last_break_regset)
2192 (s390_system_call_regset, s390_tdb_regset): Make global and
2193 replace s390_supply/_collect_regset by regcache_supply/
2195 (s390x_gregset): Delete.
2196 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2197 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2198 (s390_regmap_fpregset, s390_regmap_last_break)
2199 (s390x_regmap_last_break, s390_regmap_system_call)
2200 (s390_regmap_tdb): Delete global variable declarations.
2201 (s390_gregset, s390_fpregset, s390_last_break_regset)
2202 (s390x_last_break_regset, s390_system_call_regset)
2203 (s390_tdb_regset): New global variable declarations.
2205 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2207 * regcache.c: Include "regset.h".
2208 (regcache_transfer_regset): New local function.
2209 (regcache_supply_regset, regcache_collect_regset): New functions.
2210 * regcache.h (struct regcache_map_entry): New structure.
2211 (REGCACHE_MAP_SKIP): New enum value.
2212 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2214 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2216 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2217 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2218 (ppc_linux_collect_gregset ): Likewise.
2219 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2220 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2221 (ppc_collect_vrregset): Likewise.
2222 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2225 2014-08-07 Yao Qi <yao@codesourcery.com>
2227 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2228 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2229 * remote.c (remote_read_bytes): Likewise.
2231 2014-08-07 Yao Qi <yao@codesourcery.com>
2233 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2235 2014-08-07 Yao Qi <yao@codesourcery.com>
2238 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2239 TARGET_XFER_OK instead of 0.
2241 2014-08-07 Gary Benson <gbenson@redhat.com>
2243 * common/common-defs.h: Include errno.h.
2244 * defs.h: Do not include errno.h.
2245 * ada-typeprint.c: Likewise.
2246 * c-typeprint.c: Likewise.
2247 * core-regset.c: Likewise.
2248 * corefile.c: Likewise.
2249 * corelow.c: Likewise.
2250 * event-loop.c: Likewise.
2251 * f-typeprint.c: Likewise.
2252 * gnu-nat.c: Likewise.
2253 * go32-nat.c: Likewise.
2254 * i386gnu-nat.c: Likewise.
2255 * m2-typeprint.c: Likewise.
2256 * nat/linux-btrace.c: Likewise.
2257 * p-typeprint.c: Likewise.
2258 * procfs.c: Likewise.
2259 * remote-sim.c: Likewise.
2260 * rs6000-nat.c: Likewise.
2261 * target.c: Likewise.
2262 * typeprint.c: Likewise.
2263 * ui-file.c: Likewise.
2264 * valops.c: Likewise.
2265 * valprint.c: Likewise.
2267 2014-08-07 Gary Benson <gbenson@redhat.com>
2269 * common/common-defs.h: Include string.h.
2270 * aarch64-tdep.c: Do not include string.h.
2271 * ada-exp.y: Likewise.
2272 * ada-lang.c: Likewise.
2273 * ada-lex.l: Likewise.
2274 * ada-typeprint.c: Likewise.
2275 * ada-valprint.c: Likewise.
2276 * aix-thread.c: Likewise.
2277 * alpha-linux-tdep.c: Likewise.
2278 * alpha-mdebug-tdep.c: Likewise.
2279 * alpha-nat.c: Likewise.
2280 * alpha-osf1-tdep.c: Likewise.
2281 * alpha-tdep.c: Likewise.
2282 * alphanbsd-tdep.c: Likewise.
2283 * amd64-dicos-tdep.c: Likewise.
2284 * amd64-linux-tdep.c: Likewise.
2285 * amd64-nat.c: Likewise.
2286 * amd64-sol2-tdep.c: Likewise.
2287 * amd64fbsd-tdep.c: Likewise.
2288 * amd64obsd-tdep.c: Likewise.
2289 * arch-utils.c: Likewise.
2290 * arm-linux-nat.c: Likewise.
2291 * arm-linux-tdep.c: Likewise.
2292 * arm-tdep.c: Likewise.
2293 * arm-wince-tdep.c: Likewise.
2294 * armbsd-tdep.c: Likewise.
2295 * armnbsd-nat.c: Likewise.
2296 * armnbsd-tdep.c: Likewise.
2297 * armobsd-tdep.c: Likewise.
2298 * avr-tdep.c: Likewise.
2299 * ax-gdb.c: Likewise.
2300 * ax-general.c: Likewise.
2301 * bcache.c: Likewise.
2302 * bfin-tdep.c: Likewise.
2303 * breakpoint.c: Likewise.
2304 * build-id.c: Likewise.
2305 * buildsym.c: Likewise.
2306 * c-exp.y: Likewise.
2307 * c-lang.c: Likewise.
2308 * c-typeprint.c: Likewise.
2309 * c-valprint.c: Likewise.
2310 * charset.c: Likewise.
2311 * cli-out.c: Likewise.
2312 * cli/cli-cmds.c: Likewise.
2313 * cli/cli-decode.c: Likewise.
2314 * cli/cli-dump.c: Likewise.
2315 * cli/cli-interp.c: Likewise.
2316 * cli/cli-logging.c: Likewise.
2317 * cli/cli-script.c: Likewise.
2318 * cli/cli-setshow.c: Likewise.
2319 * cli/cli-utils.c: Likewise.
2320 * coffread.c: Likewise.
2321 * common/agent.c: Likewise.
2322 * common/buffer.c: Likewise.
2323 * common/buffer.h: Likewise.
2324 * common/common-utils.c: Likewise.
2325 * common/filestuff.c: Likewise.
2326 * common/filestuff.c: Likewise.
2327 * common/format.c: Likewise.
2328 * common/print-utils.c: Likewise.
2329 * common/rsp-low.c: Likewise.
2330 * common/signals.c: Likewise.
2331 * common/vec.h: Likewise.
2332 * common/xml-utils.c: Likewise.
2333 * core-regset.c: Likewise.
2334 * corefile.c: Likewise.
2335 * corelow.c: Likewise.
2336 * cp-abi.c: Likewise.
2337 * cp-name-parser.y: Likewise.
2338 * cp-support.c: Likewise.
2339 * cp-valprint.c: Likewise.
2340 * cris-tdep.c: Likewise.
2341 * d-exp.y: Likewise.
2342 * darwin-nat.c: Likewise.
2343 * dbxread.c: Likewise.
2344 * dcache.c: Likewise.
2345 * demangle.c: Likewise.
2346 * dicos-tdep.c: Likewise.
2347 * disasm.c: Likewise.
2348 * doublest.c: Likewise.
2349 * dsrec.c: Likewise.
2350 * dummy-frame.c: Likewise.
2351 * dwarf2-frame.c: Likewise.
2352 * dwarf2loc.c: Likewise.
2353 * dwarf2read.c: Likewise.
2354 * elfread.c: Likewise.
2355 * environ.c: Likewise.
2357 * event-loop.c: Likewise.
2358 * exceptions.c: Likewise.
2360 * expprint.c: Likewise.
2361 * f-exp.y: Likewise.
2362 * f-lang.c: Likewise.
2363 * f-typeprint.c: Likewise.
2364 * f-valprint.c: Likewise.
2365 * fbsd-nat.c: Likewise.
2366 * findcmd.c: Likewise.
2367 * findvar.c: Likewise.
2368 * fork-child.c: Likewise.
2369 * frame.c: Likewise.
2370 * frv-linux-tdep.c: Likewise.
2371 * frv-tdep.c: Likewise.
2373 * gdb_bfd.c: Likewise.
2374 * gdbarch.c: Likewise.
2375 * gdbarch.sh: Likewise.
2376 * gdbtypes.c: Likewise.
2377 * gnu-nat.c: Likewise.
2378 * gnu-v2-abi.c: Likewise.
2379 * gnu-v3-abi.c: Likewise.
2380 * go-exp.y: Likewise.
2381 * go-lang.c: Likewise.
2382 * go32-nat.c: Likewise.
2383 * guile/guile.c: Likewise.
2384 * guile/scm-auto-load.c: Likewise.
2385 * hppa-hpux-tdep.c: Likewise.
2386 * hppa-linux-nat.c: Likewise.
2387 * hppanbsd-tdep.c: Likewise.
2388 * hppaobsd-tdep.c: Likewise.
2389 * i386-cygwin-tdep.c: Likewise.
2390 * i386-dicos-tdep.c: Likewise.
2391 * i386-linux-tdep.c: Likewise.
2392 * i386-nto-tdep.c: Likewise.
2393 * i386-sol2-tdep.c: Likewise.
2394 * i386-tdep.c: Likewise.
2395 * i386bsd-tdep.c: Likewise.
2396 * i386gnu-nat.c: Likewise.
2397 * i386nbsd-tdep.c: Likewise.
2398 * i386obsd-tdep.c: Likewise.
2399 * i387-tdep.c: Likewise.
2400 * ia64-libunwind-tdep.c: Likewise.
2401 * ia64-linux-nat.c: Likewise.
2402 * inf-child.c: Likewise.
2403 * inf-ptrace.c: Likewise.
2404 * inf-ttrace.c: Likewise.
2405 * infcall.c: Likewise.
2406 * infcmd.c: Likewise.
2407 * inflow.c: Likewise.
2408 * infrun.c: Likewise.
2409 * interps.c: Likewise.
2410 * iq2000-tdep.c: Likewise.
2411 * irix5-nat.c: Likewise.
2412 * jv-exp.y: Likewise.
2413 * jv-lang.c: Likewise.
2414 * jv-typeprint.c: Likewise.
2415 * jv-valprint.c: Likewise.
2416 * language.c: Likewise.
2417 * linux-fork.c: Likewise.
2418 * linux-nat.c: Likewise.
2419 * lm32-tdep.c: Likewise.
2420 * m2-exp.y: Likewise.
2421 * m2-typeprint.c: Likewise.
2422 * m32c-tdep.c: Likewise.
2423 * m32r-linux-nat.c: Likewise.
2424 * m32r-linux-tdep.c: Likewise.
2425 * m32r-rom.c: Likewise.
2426 * m32r-tdep.c: Likewise.
2427 * m68hc11-tdep.c: Likewise.
2428 * m68k-tdep.c: Likewise.
2429 * m68kbsd-tdep.c: Likewise.
2430 * m68klinux-nat.c: Likewise.
2431 * m68klinux-tdep.c: Likewise.
2432 * m88k-tdep.c: Likewise.
2433 * machoread.c: Likewise.
2434 * macrocmd.c: Likewise.
2436 * mdebugread.c: Likewise.
2437 * mem-break.c: Likewise.
2438 * memattr.c: Likewise.
2439 * memory-map.c: Likewise.
2440 * mep-tdep.c: Likewise.
2441 * mi/mi-cmd-break.c: Likewise.
2442 * mi/mi-cmd-disas.c: Likewise.
2443 * mi/mi-cmd-env.c: Likewise.
2444 * mi/mi-cmd-stack.c: Likewise.
2445 * mi/mi-cmd-var.c: Likewise.
2446 * mi/mi-cmds.c: Likewise.
2447 * mi/mi-console.c: Likewise.
2448 * mi/mi-getopt.c: Likewise.
2449 * mi/mi-interp.c: Likewise.
2450 * mi/mi-main.c: Likewise.
2451 * mi/mi-parse.c: Likewise.
2452 * microblaze-rom.c: Likewise.
2453 * microblaze-tdep.c: Likewise.
2454 * mingw-hdep.c: Likewise.
2455 * minidebug.c: Likewise.
2456 * minsyms.c: Likewise.
2457 * mips-irix-tdep.c: Likewise.
2458 * mips-linux-tdep.c: Likewise.
2459 * mips-tdep.c: Likewise.
2460 * mips64obsd-tdep.c: Likewise.
2461 * mipsnbsd-tdep.c: Likewise.
2462 * mipsread.c: Likewise.
2463 * mn10300-linux-tdep.c: Likewise.
2464 * mn10300-tdep.c: Likewise.
2465 * monitor.c: Likewise.
2466 * moxie-tdep.c: Likewise.
2467 * mt-tdep.c: Likewise.
2468 * nat/linux-btrace.c: Likewise.
2469 * nat/linux-osdata.c: Likewise.
2470 * nat/linux-procfs.c: Likewise.
2471 * nat/linux-ptrace.c: Likewise.
2472 * nat/linux-waitpid.c: Likewise.
2473 * nbsd-tdep.c: Likewise.
2474 * nios2-linux-tdep.c: Likewise.
2475 * nto-procfs.c: Likewise.
2476 * nto-tdep.c: Likewise.
2477 * objc-lang.c: Likewise.
2478 * objfiles.c: Likewise.
2479 * opencl-lang.c: Likewise.
2480 * osabi.c: Likewise.
2481 * osdata.c: Likewise.
2482 * p-exp.y: Likewise.
2483 * p-lang.c: Likewise.
2484 * p-typeprint.c: Likewise.
2485 * parse.c: Likewise.
2486 * posix-hdep.c: Likewise.
2487 * ppc-linux-nat.c: Likewise.
2488 * ppc-sysv-tdep.c: Likewise.
2489 * ppcfbsd-tdep.c: Likewise.
2490 * ppcnbsd-tdep.c: Likewise.
2491 * ppcobsd-tdep.c: Likewise.
2492 * printcmd.c: Likewise.
2493 * procfs.c: Likewise.
2494 * prologue-value.c: Likewise.
2495 * python/py-auto-load.c: Likewise.
2496 * python/py-gdb-readline.c: Likewise.
2497 * ravenscar-thread.c: Likewise.
2498 * regcache.c: Likewise.
2499 * registry.c: Likewise.
2500 * remote-fileio.c: Likewise.
2501 * remote-m32r-sdi.c: Likewise.
2502 * remote-mips.c: Likewise.
2503 * remote-notif.c: Likewise.
2504 * remote-sim.c: Likewise.
2505 * remote.c: Likewise.
2506 * reverse.c: Likewise.
2507 * rs6000-aix-tdep.c: Likewise.
2508 * ser-base.c: Likewise.
2509 * ser-go32.c: Likewise.
2510 * ser-mingw.c: Likewise.
2511 * ser-pipe.c: Likewise.
2512 * ser-tcp.c: Likewise.
2513 * ser-unix.c: Likewise.
2514 * serial.c: Likewise.
2515 * sh-tdep.c: Likewise.
2516 * sh64-tdep.c: Likewise.
2517 * shnbsd-tdep.c: Likewise.
2519 * sol-thread.c: Likewise.
2520 * solib-dsbt.c: Likewise.
2521 * solib-frv.c: Likewise.
2522 * solib-osf.c: Likewise.
2523 * solib-som.c: Likewise.
2524 * solib-spu.c: Likewise.
2525 * solib-target.c: Likewise.
2526 * solib.c: Likewise.
2527 * somread.c: Likewise.
2528 * source.c: Likewise.
2529 * sparc-nat.c: Likewise.
2530 * sparc-sol2-tdep.c: Likewise.
2531 * sparc-tdep.c: Likewise.
2532 * sparc64-tdep.c: Likewise.
2533 * sparc64fbsd-tdep.c: Likewise.
2534 * sparc64nbsd-tdep.c: Likewise.
2535 * sparcnbsd-tdep.c: Likewise.
2536 * spu-linux-nat.c: Likewise.
2537 * spu-multiarch.c: Likewise.
2538 * spu-tdep.c: Likewise.
2539 * stabsread.c: Likewise.
2540 * stack.c: Likewise.
2541 * std-regs.c: Likewise.
2542 * symfile.c: Likewise.
2543 * symmisc.c: Likewise.
2544 * symtab.c: Likewise.
2545 * target.c: Likewise.
2546 * thread.c: Likewise.
2547 * tilegx-linux-nat.c: Likewise.
2548 * tilegx-tdep.c: Likewise.
2550 * tracepoint.c: Likewise.
2551 * tui/tui-command.c: Likewise.
2552 * tui/tui-data.c: Likewise.
2553 * tui/tui-disasm.c: Likewise.
2554 * tui/tui-file.c: Likewise.
2555 * tui/tui-layout.c: Likewise.
2556 * tui/tui-out.c: Likewise.
2557 * tui/tui-regs.c: Likewise.
2558 * tui/tui-source.c: Likewise.
2559 * tui/tui-stack.c: Likewise.
2560 * tui/tui-win.c: Likewise.
2561 * tui/tui-windata.c: Likewise.
2562 * tui/tui-winsource.c: Likewise.
2563 * typeprint.c: Likewise.
2564 * ui-file.c: Likewise.
2565 * ui-out.c: Likewise.
2566 * user-regs.c: Likewise.
2567 * utils.c: Likewise.
2568 * v850-tdep.c: Likewise.
2569 * valarith.c: Likewise.
2570 * valops.c: Likewise.
2571 * valprint.c: Likewise.
2572 * value.c: Likewise.
2573 * varobj.c: Likewise.
2574 * vax-tdep.c: Likewise.
2575 * vaxnbsd-tdep.c: Likewise.
2576 * vaxobsd-tdep.c: Likewise.
2577 * windows-nat.c: Likewise.
2578 * xcoffread.c: Likewise.
2579 * xml-support.c: Likewise.
2580 * xstormy16-tdep.c: Likewise.
2581 * xtensa-linux-nat.c: Likewise.
2583 2014-08-07 Gary Benson <gbenson@redhat.com>
2585 * common/common-defs.h: Include gdb_assert.h.
2586 * aarch64-tdep.c: Do not include gdb_assert.h.
2587 * addrmap.c: Likewise.
2588 * aix-thread.c: Likewise.
2589 * alpha-linux-tdep.c: Likewise.
2590 * alpha-mdebug-tdep.c: Likewise.
2591 * alphanbsd-tdep.c: Likewise.
2592 * amd64-nat.c: Likewise.
2593 * amd64-tdep.c: Likewise.
2594 * amd64bsd-nat.c: Likewise.
2595 * amd64fbsd-nat.c: Likewise.
2596 * amd64fbsd-tdep.c: Likewise.
2597 * amd64nbsd-nat.c: Likewise.
2598 * amd64nbsd-tdep.c: Likewise.
2599 * amd64obsd-nat.c: Likewise.
2600 * amd64obsd-tdep.c: Likewise.
2601 * arch-utils.c: Likewise.
2602 * arm-tdep.c: Likewise.
2603 * armbsd-tdep.c: Likewise.
2605 * bcache.c: Likewise.
2606 * bfin-tdep.c: Likewise.
2607 * blockframe.c: Likewise.
2608 * breakpoint.c: Likewise.
2609 * bsd-kvm.c: Likewise.
2610 * bsd-uthread.c: Likewise.
2611 * buildsym.c: Likewise.
2612 * c-exp.y: Likewise.
2613 * c-lang.c: Likewise.
2614 * charset.c: Likewise.
2615 * cleanups.c: Likewise.
2616 * cli-out.c: Likewise.
2617 * cli/cli-decode.c: Likewise.
2618 * cli/cli-dump.c: Likewise.
2619 * cli/cli-logging.c: Likewise.
2620 * cli/cli-script.c: Likewise.
2621 * cli/cli-utils.c: Likewise.
2622 * coffread.c: Likewise.
2623 * common/common-utils.c: Likewise.
2624 * common/queue.h: Likewise.
2625 * common/signals.c: Likewise.
2626 * common/vec.h: Likewise.
2627 * complaints.c: Likewise.
2628 * completer.c: Likewise.
2629 * corelow.c: Likewise.
2630 * cp-abi.c: Likewise.
2631 * cp-name-parser.y: Likewise.
2632 * cp-namespace.c: Likewise.
2633 * cp-support.c: Likewise.
2634 * cris-tdep.c: Likewise.
2635 * dbxread.c: Likewise.
2636 * dictionary.c: Likewise.
2637 * doublest.c: Likewise.
2638 * dsrec.c: Likewise.
2639 * dummy-frame.c: Likewise.
2640 * dwarf2-frame-tailcall.c: Likewise.
2641 * dwarf2-frame.c: Likewise.
2642 * dwarf2expr.c: Likewise.
2643 * dwarf2loc.c: Likewise.
2644 * dwarf2read.c: Likewise.
2646 * event-loop.c: Likewise.
2647 * exceptions.c: Likewise.
2648 * expprint.c: Likewise.
2649 * f-valprint.c: Likewise.
2650 * fbsd-nat.c: Likewise.
2651 * findvar.c: Likewise.
2652 * frame-unwind.c: Likewise.
2653 * frame.c: Likewise.
2654 * frv-tdep.c: Likewise.
2655 * gcore.c: Likewise.
2656 * gdb-dlfcn.c: Likewise.
2657 * gdb_bfd.c: Likewise.
2658 * gdbarch.c: Likewise.
2659 * gdbarch.sh: Likewise.
2660 * gdbtypes.c: Likewise.
2661 * gnu-nat.c: Likewise.
2662 * gnu-v3-abi.c: Likewise.
2663 * go-lang.c: Likewise.
2664 * guile/scm-exception.c: Likewise.
2665 * guile/scm-gsmob.c: Likewise.
2666 * guile/scm-lazy-string.c: Likewise.
2667 * guile/scm-math.c: Likewise.
2668 * guile/scm-pretty-print.c: Likewise.
2669 * guile/scm-safe-call.c: Likewise.
2670 * guile/scm-utils.c: Likewise.
2671 * guile/scm-value.c: Likewise.
2672 * h8300-tdep.c: Likewise.
2673 * hppa-hpux-nat.c: Likewise.
2674 * hppa-tdep.c: Likewise.
2675 * hppanbsd-tdep.c: Likewise.
2676 * hppaobsd-tdep.c: Likewise.
2677 * i386-darwin-nat.c: Likewise.
2678 * i386-darwin-tdep.c: Likewise.
2679 * i386-nto-tdep.c: Likewise.
2680 * i386-tdep.c: Likewise.
2681 * i386bsd-nat.c: Likewise.
2682 * i386fbsd-tdep.c: Likewise.
2683 * i386gnu-nat.c: Likewise.
2684 * i386nbsd-tdep.c: Likewise.
2685 * i386obsd-tdep.c: Likewise.
2686 * i387-tdep.c: Likewise.
2687 * ia64-libunwind-tdep.c: Likewise.
2688 * ia64-tdep.c: Likewise.
2689 * inf-ptrace.c: Likewise.
2690 * inf-ttrace.c: Likewise.
2691 * infcall.c: Likewise.
2692 * infcmd.c: Likewise.
2693 * infrun.c: Likewise.
2694 * inline-frame.c: Likewise.
2695 * interps.c: Likewise.
2696 * jv-lang.c: Likewise.
2697 * jv-typeprint.c: Likewise.
2698 * linux-fork.c: Likewise.
2699 * linux-nat.c: Likewise.
2700 * linux-thread-db.c: Likewise.
2701 * m32c-tdep.c: Likewise.
2702 * m32r-linux-nat.c: Likewise.
2703 * m32r-tdep.c: Likewise.
2704 * m68k-tdep.c: Likewise.
2705 * m68kbsd-nat.c: Likewise.
2706 * m68kbsd-tdep.c: Likewise.
2707 * m88k-tdep.c: Likewise.
2708 * machoread.c: Likewise.
2709 * macroexp.c: Likewise.
2710 * macrotab.c: Likewise.
2711 * maint.c: Likewise.
2712 * mdebugread.c: Likewise.
2713 * memory-map.c: Likewise.
2714 * mep-tdep.c: Likewise.
2715 * mi/mi-common.c: Likewise.
2716 * microblaze-tdep.c: Likewise.
2717 * mingw-hdep.c: Likewise.
2718 * mips-linux-nat.c: Likewise.
2719 * mips-linux-tdep.c: Likewise.
2720 * mips-tdep.c: Likewise.
2721 * mips64obsd-tdep.c: Likewise.
2722 * mipsnbsd-tdep.c: Likewise.
2723 * mn10300-linux-tdep.c: Likewise.
2724 * mn10300-tdep.c: Likewise.
2725 * moxie-tdep.c: Likewise.
2726 * mt-tdep.c: Likewise.
2727 * nat/linux-btrace.c: Likewise.
2728 * nat/linux-osdata.c: Likewise.
2729 * nat/linux-ptrace.c: Likewise.
2730 * nat/mips-linux-watch.c: Likewise.
2731 * nios2-linux-tdep.c: Likewise.
2732 * nios2-tdep.c: Likewise.
2733 * objc-lang.c: Likewise.
2734 * objfiles.c: Likewise.
2735 * obsd-nat.c: Likewise.
2736 * opencl-lang.c: Likewise.
2737 * osabi.c: Likewise.
2738 * parse.c: Likewise.
2739 * ppc-linux-nat.c: Likewise.
2740 * ppc-sysv-tdep.c: Likewise.
2741 * ppcfbsd-nat.c: Likewise.
2742 * ppcfbsd-tdep.c: Likewise.
2743 * ppcnbsd-nat.c: Likewise.
2744 * ppcnbsd-tdep.c: Likewise.
2745 * ppcobsd-nat.c: Likewise.
2746 * ppcobsd-tdep.c: Likewise.
2747 * printcmd.c: Likewise.
2748 * procfs.c: Likewise.
2749 * prologue-value.c: Likewise.
2750 * psymtab.c: Likewise.
2751 * python/py-lazy-string.c: Likewise.
2752 * python/py-value.c: Likewise.
2753 * regcache.c: Likewise.
2754 * reggroups.c: Likewise.
2755 * registry.c: Likewise.
2756 * remote-sim.c: Likewise.
2757 * remote.c: Likewise.
2758 * rs6000-aix-tdep.c: Likewise.
2759 * rs6000-tdep.c: Likewise.
2760 * s390-linux-tdep.c: Likewise.
2761 * score-tdep.c: Likewise.
2762 * ser-base.c: Likewise.
2763 * ser-mingw.c: Likewise.
2764 * sh-tdep.c: Likewise.
2765 * sh64-tdep.c: Likewise.
2766 * solib-darwin.c: Likewise.
2767 * solib-spu.c: Likewise.
2768 * solib-svr4.c: Likewise.
2769 * source.c: Likewise.
2770 * sparc-nat.c: Likewise.
2771 * sparc-sol2-tdep.c: Likewise.
2772 * sparc-tdep.c: Likewise.
2773 * sparc64-sol2-tdep.c: Likewise.
2774 * sparc64-tdep.c: Likewise.
2775 * sparc64fbsd-tdep.c: Likewise.
2776 * sparc64nbsd-tdep.c: Likewise.
2777 * sparc64obsd-tdep.c: Likewise.
2778 * sparcnbsd-tdep.c: Likewise.
2779 * sparcobsd-tdep.c: Likewise.
2780 * spu-multiarch.c: Likewise.
2781 * spu-tdep.c: Likewise.
2782 * stabsread.c: Likewise.
2783 * stack.c: Likewise.
2784 * symfile.c: Likewise.
2785 * symtab.c: Likewise.
2786 * target-descriptions.c: Likewise.
2787 * target-memory.c: Likewise.
2788 * target.c: Likewise.
2789 * tic6x-linux-tdep.c: Likewise.
2790 * tic6x-tdep.c: Likewise.
2791 * tilegx-linux-nat.c: Likewise.
2792 * tilegx-tdep.c: Likewise.
2794 * tramp-frame.c: Likewise.
2795 * tui/tui-out.c: Likewise.
2796 * tui/tui-winsource.c: Likewise.
2797 * ui-out.c: Likewise.
2798 * user-regs.c: Likewise.
2799 * utils.c: Likewise.
2800 * v850-tdep.c: Likewise.
2801 * valops.c: Likewise.
2802 * value.c: Likewise.
2803 * varobj.c: Likewise.
2804 * vax-nat.c: Likewise.
2805 * xml-syscall.c: Likewise.
2806 * xml-tdesc.c: Likewise.
2807 * xstormy16-tdep.c: Likewise.
2808 * xtensa-linux-nat.c: Likewise.
2809 * xtensa-tdep.c: Likewise.
2811 2014-08-07 Gary Benson <gbenson@redhat.com>
2813 * common/common-defs.h: Include common-utils.h.
2814 * defs.h: Do not include common-utils.h.
2815 * common/gdb_assert.h: Likewise.
2816 * darwin-nat.h: Likewise.
2817 * nat/linux-btrace.c: Likewise.
2818 * target/waitstatus.h: Likewise.
2820 2014-08-07 Gary Benson <gbenson@redhat.com>
2822 * common/common-defs.h: Include ptid.h.
2823 * defs.h: Do not include ptid.h.
2824 * inferior.h: Likewise.
2825 * infrun.h: Likewise.
2826 * nat/linux-btrace.h: Likewise.
2827 * nat/linux-osdata.h: Likewise.
2828 * target/waitstatus.h: Likewise.
2830 2014-08-07 Gary Benson <gbenson@redhat.com>
2832 * common/common-defs.h: Include gdb_locale.h.
2833 * defs.h: Do not include gdb_locale.h.
2835 2014-08-07 Gary Benson <gbenson@redhat.com>
2837 * common/common-defs.h: Include gdb/signals.h.
2838 * defs.h: Do not include gdb/signals.h.
2840 2014-08-07 Gary Benson <gbenson@redhat.com>
2842 * common/common-defs.h: Include pathmax.h.
2843 * defs.h: Do not include pathmax.h.
2845 2014-08-07 Gary Benson <gbenson@redhat.com>
2847 * common/common-defs.h: Include libiberty.h.
2848 * defs.h: Do not include libiberty.h.
2849 * common/queue.h: Likewise.
2850 * cp-name-parser.y: Likewise.
2851 * mi/mi-cmd-catch.c: Likewise.
2852 * python/python.c: Likewise.
2854 2014-08-07 Gary Benson <gbenson@redhat.com>
2856 * common/common-defs.h: Include ansidecl.h.
2857 * defs.h: Do not include ansidecl.h.
2858 * common/buffer.h: Likewise.
2859 * common/common-utils.h: Likewise.
2861 2014-08-07 Gary Benson <gbenson@redhat.com>
2863 * common/common-defs.h: Include stddef.h.
2864 * defs.h: Do not include stddef.h.
2865 * common/common-utils.h: Likewise.
2866 * amd64fbsd-nat.c: Likewise.
2867 * bcache.c: Likewise.
2868 * charset.c: Likewise.
2869 * common/buffer.h: Likewise.
2870 * common/vec.h: Likewise.
2871 * i386bsd-nat.c: Likewise.
2872 * nat/linux-btrace.h: Likewise.
2873 * ppcfbsd-nat.c: Likewise.
2874 * ppcnbsd-tdep.h: Likewise.
2875 * ppcobsd-nat.c: Likewise.
2876 * ppcobsd-tdep.h: Likewise.
2877 * python/py-gdb-readline.c: Likewise.
2879 2014-08-07 Gary Benson <gbenson@redhat.com>
2881 * common/common-defs.h: Include stdarg.h.
2882 * defs.h: Do not include stdarg.h.
2883 * ada-lang.c: Likewise.
2884 * common/common-utils.h: Likewise.
2885 * guile/scm-string.c: Likewise.
2886 * guile/scm-utils.c: Likewise.
2887 * m32c-tdep.c: Likewise.
2889 2014-08-07 Gary Benson <gbenson@redhat.com>
2891 * common/common-defs.h: Include stdlib.h.
2892 * defs.h: Do not include stdlib.h.
2893 * addrmap.c: Likewise.
2894 * bcache.c: Likewise.
2895 * common/buffer.c: Likewise.
2896 * common/common-utils.c: Likewise.
2897 * cp-name-parser.y: Likewise.
2898 * go32-nat.c: Likewise.
2899 * mn10300-linux-tdep.c: Likewise.
2900 * nat/linux-osdata.c: Likewise.
2901 * tui/tui.c: Likewise.
2902 * windows-nat.c: Likewise.
2904 2014-08-07 Gary Benson <gbenson@redhat.com>
2906 * common/common-defs.h: Include stdio.h.
2907 * defs.h: Do not include stdio.h.
2908 * ada-lang.c: Likewise.
2909 * common/buffer.c: Likewise.
2910 * common/common-utils.c: Likewise.
2911 * cp-name-parser.y: Likewise.
2912 * gnu-nat.c: Likewise.
2913 * go32-nat.c: Likewise.
2914 * i386gnu-nat.c: Likewise.
2915 * proc-api.c: Likewise.
2916 * proc-events.c: Likewise.
2917 * proc-flags.c: Likewise.
2918 * proc-why.c: Likewise.
2919 * python/python-internal.h: Likewise.
2920 * target-memory.c: Likewise.
2921 * tui/tui-io.c: Likewise.
2922 * tui/tui.c: Likewise.
2924 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2926 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2927 (scan_dyntag_auxv): Same.
2929 2014-08-06 Yao Qi <yao@codesourcery.com>
2931 * amd64-linux-nat.c: Remove duplicated include
2933 * i386-linux-nat.c: Likewise.
2935 2014-08-06 Yao Qi <yao@codesourcery.com>
2937 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2938 operand" with "Special opcode" in comments.
2940 2014-08-05 Gary Benson <gbenson@redhat.com>
2942 * interps.c (initialize_interps): Remove prototype.
2943 (interpreter_initialized): Remove static global.
2944 (interp_add): Do not call initialize_interps.
2945 (initialize_interps): Remove function.
2947 2014-08-05 Gary Benson <gbenson@redhat.com>
2949 * utils.c (vwarning): Remove spurious va_end.
2951 2014-08-05 Alan Modra <amodra@gmail.com>
2953 * charset.c (convert_between_encodings): Cast result of obstack_base.
2954 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2955 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2956 (read_unwind_info): Use size_t for some locals.
2957 * jit.c (finalize_symtab): Likewise.
2958 * utils.c (hashtab_obstack_allocate): Likewise.
2959 * symmisc.c (print_objfile_statistics): Update format strings.
2961 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2963 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2964 (Changes in GDB 7.8): ... here.
2966 2014-08-04 Tom Tromey <tromey@redhat.com>
2968 * target.c (set_targetdebug): New function.
2969 (initialize_targets): Pass set_targetdebug when creating "set
2972 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2974 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2975 if detecting a variable-sized field that is not the last field.
2976 Fix struct type length computation.
2978 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2980 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2983 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2985 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2986 Remove "+ 8" offset in computation of CHAIN_VMA.
2988 2014-07-31 Doug Evans <dje@google.com>
2990 * inflow.c (child_terminal_inferior): Add comment.
2991 (child_terminal_ours_for_output): Add comment.
2992 (child_terminal_ours): Add comment.
2993 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2994 (linux_nat_terminal_ours): Add comment.
2996 2014-07-31 Gary Benson <gbenson@redhat.com>
2998 * common/btrace-common.h: Do not include defs.h or server.h.
2999 * nat/mips-linux-watch.h: Likewise.
3000 * gdb-dlfcn.h: Do not include defs.h.
3001 * tracefile.h: Likewise.
3003 2014-07-30 Roland McGrath <mcgrathr@google.com>
3005 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3007 2014-07-30 Tom Tromey <tromey@redhat.com>
3009 * bsd-kvm.c (bsd_kvm_open): Constify.
3010 * corelow.c (core_open): Constify.
3011 * ctf.c (ctf_open): Constify.
3012 * dbug-rom.c (dbug_open): Constify.
3013 * exec.c (exec_open): Constify.
3014 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3015 * microblaze-rom.c (picobug_open): Constify.
3016 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3018 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3019 * record-btrace.c (record_btrace_open): Constify.
3020 * record-full.c (record_full_core_open_1, record_full_open_1)
3021 (record_full_open): Constify.
3022 * remote-m32r-sdi.c (m32r_open): Constify.
3023 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3024 (rockhopper_open, lsi_open): Constify.
3025 * remote-sim.c (gdbsim_open): Constify.
3026 * remote.c (remote_open, extended_remote_open, remote_open_1):
3028 * target.h (struct target_ops) <to_open>: Make "arg" const.
3029 * tracefile-tfile.c (tfile_open): Constify.
3031 2014-07-30 Tom Tromey <tromey@redhat.com>
3033 * breakpoint.c (map_breakpoint_numbers): Update.
3034 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3035 (get_number_const): New function.
3036 (get_number): Rewrite using get_number_const.
3037 (init_number_or_range): Make "string" const.
3038 (number_is_in_list): Make "list" const.
3039 * cli/cli-utils.h (get_number_const): Declare.
3040 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3041 (init_number_or_range, number_is_in_list): Update.
3042 * printcmd.c (map_display_numbers): Update.
3043 * value.c (value_from_history_ref): Constify.
3044 * value.h (value_from_history_ref): Update.
3046 2014-07-30 Tom Tromey <tromey@redhat.com>
3048 * corefile.c (hook_type, call_extra_exec_file_hooks)
3049 (specify_exec_file_hook): Constify.
3050 * exec.c (exec_file_attach): Make "filename" const.
3051 * gdbcore.h (deprecated_exec_file_display_hook)
3052 (specify_exec_file_hook, exec_file_attach): Constify.
3053 * main.c (captured_main): Use catch_command_errors_const.
3055 2014-07-30 Tom Tromey <tromey@redhat.com>
3057 * target.c (open_target): New function.
3058 (add_target_with_completer, add_deprecated_target_alias): Use
3059 set_cmd_sfunc, set_cmd_context.
3060 (debug_to_open): Remove.
3061 (setup_target_debug): Update.
3063 2014-07-30 Yao Qi <yao@codesourcery.com>
3065 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3067 * parse.c (exp_iterate): Update comments.
3069 2014-07-30 Gary Benson <gbenson@redhat.com>
3071 * common/common-defs.h: New file.
3072 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3073 * defs.h: Include common-defs.h.
3074 Do not include config.h or build-gnulib/config.h.
3076 2014-07-30 Gary Benson <gbenson@redhat.com>
3078 * common/common-utils.h: Do not include config.h.
3079 * nat/linux-btrace.h: Likewise.
3081 2014-07-30 Gary Benson <gbenson@redhat.com>
3083 * btrace.c: Include defs.h.
3084 * common/ptid.c: Include defs.h or server.h as appropriate.
3085 * nat/mips-linux-watch.c: Likewise.
3087 2014-07-29 Tom Tromey <tromey@redhat.com>
3089 * target.c (target_is_pushed): Simplify.
3091 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3095 2014-07-29 Yao Qi <yao@codesourcery.com>
3098 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3100 2014-07-28 Doug Evans <xdje42@gmail.com>
3103 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3104 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3107 2014-07-28 Will Newton <will.newton@linaro.org>
3109 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3110 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3111 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3112 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3113 (THUMB2_EABI_SYSCALL): Likewise.
3114 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3116 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3117 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3119 2014-07-27 Doug Evans <xdje42@gmail.com>
3121 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3123 2014-07-27 Doug Evans <xdje42@gmail.com>
3125 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3127 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3128 Doug Evans <xdje42@gmail.com>
3131 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3132 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3133 * configure.ac: Try to use guild to compile an scm file, if it fails
3134 then disable guile support.
3135 * configure: Regenerate.
3136 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3138 (GUILE_COMPILED_FILES): New variable.
3139 (GUILE_FILES) Update.
3140 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3141 (stamp-guile): Compile scm files.
3142 * guile/guile.c (boot_guile_support): New function.
3143 (standard_throw_args_p): New function.
3144 (print_standard_throw_error, print_throw_error): New functions.
3145 (handle_boot_error): New function.
3146 (initialize_scheme_side): Rewrite to call boot_guile_support.
3147 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3148 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3150 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3151 Doug Evans <xdje42@gmail.com>
3154 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3155 * guile/lib/gdb/support.scm: New file.
3156 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3157 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3159 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3161 (%assert-type): Ditto, and renamed to assert-type.
3162 (%exception-print-style): Delete.
3164 2014-07-26 Doug Evans <xdje42@gmail.com>
3167 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3168 * configure: Regenerate.
3169 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3171 (PYTHON_FILES): New variable.
3172 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3173 (GUILE_FILES): New variable.
3174 (stamp-python, install-python, uninstall-python): Handle empty
3176 (stamp-guile, install-guile, uninstall-guile): Ditto.
3178 2014-07-26 Doug Evans <xdje42@gmail.com>
3181 * guile/lib/gdb.scm (pretty-printers): Export.
3182 (set-pretty-printers!): Export.
3183 * guile/lib/gdb/printing.scm (gdb module): Update.
3184 (prepend-pretty-printer!, append-pretty-printer!): Update.
3185 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3186 (pretty_printer_list_var): Delete.
3187 (pretty_printer_list): New static global.
3188 (gdbscm_pretty_printers): New function.
3189 (gdbscm_set_pretty_printers_x): New function.
3190 (ppscm_find_pretty_printer_from_gdb): Update.
3191 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3192 (gdbscm_initialize_pretty_printers): Update.
3194 2014-07-26 Doug Evans <xdje42@gmail.com>
3197 * configure.ac: Add check for header gc/gc.h.
3198 Add check for function setenv.
3199 * configure: Regenerate.
3200 * config.in: Regenerate.
3201 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3203 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3205 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3206 variation in gdbarch matching.
3208 2014-07-25 Tom Tromey <tromey@redhat.com>
3210 * exec.c (using_exec_ops): Remove.
3211 (exec_close_1): Update. Remove extraneous block, reindent.
3212 (add_target_sections): Use target_is_pushed.
3214 2014-07-25 Pedro Alves <palves@redhat.com>
3216 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3217 * monitor.c (monitor_create_inferior): Likewise.
3218 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3219 * remote-sim.c (gdbsim_create_inferior): Likewise.
3220 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3221 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3222 * windows-nat.c (do_initial_windows_stuff): Likewise.
3224 2014-07-25 Pedro Alves <palves@redhat.com>
3226 * NEWS: Mention signal passing and "signal" command changes.
3227 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3229 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3231 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3232 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3233 (jump_command): Adjust clear_proceed_status call.
3234 (signal_command): Warn if other thread that are resumed have
3235 signals that will be delivered. Adjust clear_proceed_status call.
3236 (until_next_command, finish_command)
3237 (proceed_after_attach_callback, attach_command_post_wait)
3238 (attach_command): Adjust clear_proceed_status call.
3239 * infrun.c (proceed_after_vfork_done): Likewise.
3240 (proceed_after_attach_callback): Adjust comment.
3241 (clear_proceed_status_thread): Clear stop_signal if not in pass
3243 (clear_proceed_status_callback): Delete.
3244 (clear_proceed_status): New 'step' parameter. Only clear the
3245 proceed status of threads the command being prepared is about to
3247 (proceed): If passed in an explicit signal, override stop_signal
3248 with it. Don't pass the last stop signal to the thread we're
3250 (init_wait_for_inferior): Adjust clear_proceed_status call.
3251 (switch_back_to_stepped_thread): Clear the signal if it should not
3253 * infrun.h (clear_proceed_status): New 'step' parameter.
3254 (user_visible_resume_ptid): Add comment.
3255 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3256 signal is in pass state.
3257 * remote.c (append_pending_thread_resumptions): Likewise.
3258 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3260 2014-07-25 Tom Tromey <tromey@redhat.com>
3262 * target.h (target_stopped_data_address)
3263 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3266 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3268 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3270 (avr_pointer_to_address): Likewise.
3272 2014-07-24 Tom Tromey <tromey@redhat.com>
3274 * monitor.c (compile_pattern): Update.
3275 * target.h (struct target_ops) <to_shortname, to_longname,
3278 2014-07-24 Tom Tromey <tromey@redhat.com>
3280 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3281 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3282 (add_info_alias, add_com): Make "doc" const.
3283 (print_doc_line): Make "str" const.
3284 (delete_cmd): Update.
3285 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3286 (print_doc_line): Update.
3287 * cli/cli-script.c (document_command): Update.
3288 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3289 (add_com, add_info, add_info_alias): Update.
3290 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3291 * python/py-cmd.c (cmdpy_destroyer): Update.
3293 2014-07-24 Tom Tromey <tromey@redhat.com>
3295 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3296 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3297 (help_cmd_list): Constify.
3298 (lookup_cmd): Update.
3299 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3301 (help_cmd_list, apropos_cmd): Update.
3302 * cli/cli-script.c (show_user): Update.
3303 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3304 * cli/cli-setshow.h (cmd_show_list): Update.
3305 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3306 (cmd_show_list): Update.
3307 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3308 * python/py-cmd.c (cmdpy_destroyer): Update.
3310 2014-07-24 Tom Tromey <tromey@redhat.com>
3312 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3313 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3315 * command.h (deprecate_cmd): Update.
3316 * maint.c (maintenance_do_deprecate): Add casts.
3318 2014-07-24 Tom Tromey <tromey@redhat.com>
3320 * cli/cli-decode.c (help_cmd): Make parameter "const".
3321 * cli/cli-decode.h (help_cmd): Update.
3323 2014-07-24 Tom Tromey <tromey@redhat.com>
3325 * stack.c (up_silently_base, down_silently_base): Make argument
3328 2014-07-24 Tom Tromey <tromey@redhat.com>
3330 * solib.c (solib_add): Make "pattern" const.
3331 * solib.h (solib_add): Update.
3333 2014-07-24 Tom Tromey <tromey@redhat.com>
3335 * remote.c (remote_serial_open, print_packet, putpkt)
3336 (putpkt_binary): Constify.
3337 * remote.h (putpkt): Update.
3339 2014-07-24 Tom Tromey <tromey@redhat.com>
3341 * monitor.c (monitor_open): Make "args" const.
3342 * monitor.h (monitor_open): Update.
3344 2014-07-24 Tom Tromey <tromey@redhat.com>
3346 * maint.c (match_bfd_flags): Make "string" const.
3347 (print_bfd_section_info): Remove casts.
3348 (print_objfile_section_info): Make "string" const.
3350 2014-07-24 Tom Tromey <tromey@redhat.com>
3352 * inf-child.c (inf_child_open_target): Make "arg" const.
3353 * inf-child.h (inf_child_open_target): Update.
3355 2014-07-24 Tom Tromey <tromey@redhat.com>
3357 * environ.c (unset_in_environ): Make "var" const.
3358 * environ.h (unset_in_environ): Update.
3360 2014-07-24 Tom Tromey <tromey@redhat.com>
3362 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3364 (scan_filename_with_cleanup): Likewise.
3365 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3366 Make arguments const.
3367 (restore_command): Update.
3369 2014-07-24 Pedro Alves <palves@redhat.com>
3371 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3373 2014-07-24 Tom Tromey <tromey@redhat.com>
3374 Gary Benson <gbenson@redhat.com>
3376 * nat/linux-ptrace.c (additional_flags): New global.
3377 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3378 additional_flags; don't check GDBSERVER.
3379 (linux_ptrace_set_additional_flags): New function.
3380 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3382 * linux-nat.c (_initialize_linux_nat): Call
3383 linux_ptrace_set_additional_flags.
3385 2014-07-24 Tom Tromey <tromey@redhat.com>
3387 * make-target-delegates (munge_type, write_debugmethod): New
3389 (debug_names): New global.
3390 ($TARGET_DEBUG_PRINTER): New global.
3391 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3393 Write debug methods. Generate init_debug_target.
3394 * target-debug.h: New file.
3395 * target-delegates.c: Rebuild.
3396 * target.c: Include target-debug.h.
3397 (debug_target): Hoist definition.
3398 (target_kill, target_get_section_table, target_memory_map)
3399 (target_flash_erase, target_flash_done, target_detach)
3400 (target_disconnect, target_wait, target_resume)
3401 (target_pass_signals, target_program_signals, target_follow_fork)
3402 (target_mourn_inferior, target_search_memory)
3403 (target_thread_address_space, target_close)
3404 (target_find_new_threads, target_core_of_thread)
3405 (target_verify_memory, target_insert_mask_watchpoint)
3406 (target_remove_mask_watchpoint): Remove targetdebug code.
3407 (debug_to_post_attach, debug_to_prepare_to_store)
3408 (debug_to_files_info, debug_to_insert_breakpoint)
3409 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3410 (debug_to_region_ok_for_hw_watchpoint)
3411 (debug_to_can_accel_watchpoint_condition)
3412 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3413 (debug_to_watchpoint_addr_within_range)
3414 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3415 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3416 (debug_to_terminal_init, debug_to_terminal_inferior)
3417 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3418 (debug_to_terminal_save_ours, debug_to_terminal_info)
3419 (debug_to_load, debug_to_post_startup_inferior)
3420 (debug_to_insert_fork_catchpoint)
3421 (debug_to_remove_fork_catchpoint)
3422 (debug_to_insert_vfork_catchpoint)
3423 (debug_to_remove_vfork_catchpoint)
3424 (debug_to_insert_exec_catchpoint)
3425 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3426 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3427 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3428 (setup_target_debug): Call init_debug_target.
3429 * target.h (TARGET_DEBUG_PRINTER): New macro.
3430 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3431 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3433 2014-07-24 Gary Benson <gbenson@redhat.com>
3435 * exceptions.h (throw_vfatal): Renamed to...
3436 (throw_vquit): New declaration.
3437 (throw_quit): Likewise.
3438 * exceptions.c (throw_vfatal): Renamed to...
3439 (throw_vquit): New function.
3440 (throw_quit): Likewise.
3441 (throw_error): Call throw_verror rather than throw_it.
3442 * utils.h (vfatal): Removed.
3444 * utils.c (vfatal): Removed.
3446 (internal_verror): Replaced call to fatal with call to throw_quit.
3447 (quit): Replaced calls to fatal with calls to throw_quit.
3449 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3451 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3454 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3456 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3457 less than zero in conditional expression.
3459 2014-07-23 Tom Tromey <tromey@redhat.com>
3461 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3462 ($INTRO_PART): Don't match whitespace.
3463 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3465 ($METHOD): Add $METHOD_TRAILER.
3467 (scan_target_h): New sub.
3468 Change main loop not to collect state.
3469 * target-delegates.c: Rebuild.
3471 2014-07-23 Gary Benson <gbenson@redhat.com>
3473 * cp-support.c (gdb_demangle): Fix build on systems without
3476 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3478 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3479 for reference entry value target data value.
3481 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3483 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3484 value_available_contents_eq.
3486 2014-07-22 Pedro Alves <palves@redhat.com>
3488 * value.c (allocate_optimized_out_value): Don't mark value as
3491 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3493 * MAINTAINERS (Write After Approval): Update my email address.
3495 2014-07-20 Doug Evans <dje@google.com>
3498 * remote.c (putpkt_binary): Add text to error message.
3500 2014-07-20 Yao Qi <yao@codesourcery.com>
3502 * eval.c: Remove "Chill" from comments.
3503 * gdbtypes.h: Likewise.
3504 * symtab.h: Likewise.
3506 2014-07-20 Yao Qi <yao@codesourcery.com>
3508 * std-operator.def: Update comments to TERNOP_SLICE.
3510 2014-07-20 Yao Qi <yao@codesourcery.com>
3512 * std-operator.def: Remove BINOP_RANGE.
3513 * breakpoint.c (watchpoint_exp_is_const): Update.
3514 * expprint.c (dump_subexp_body_standard): Likewise.
3515 * eval.c (init_array_element): Remove dead code.
3516 (evaluate_subexp_standard): Likewise.
3518 2014-07-20 Yao Qi <yao@codesourcery.com>
3520 * std-operator.def: Remove BINOP_IN.
3521 * breakpoint.c (watchpoint_exp_is_const): Update.
3522 * eval.c (evaluate_subexp_standard): Likewise.
3523 * expprint.c (dump_subexp_body_standard): Likewise.
3525 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3527 * microblaze-tdep.c (microblaze_register_names): Add
3528 the rshr and rslr register names.
3529 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3530 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3531 Use of tdesc_numbered_register. Use of
3532 microblaze_register_g_packet_guesses. Use of
3533 tdesc_use_registers. Use of set_gdbarch_register_type.
3534 (microblaze_register_g_packet_guesses): New.
3535 * microblaze-tdep.h (microblaze_reg_num): Add
3536 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3537 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3538 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3539 * features/microblaze-core.xml: New file.
3540 * features/microblaze-stack-protect.xml: New file.
3541 * features/microblaze-with-stack-protect.c: New file.
3542 * features/microblaze-with-stack-protect.xml: New file.
3543 * features/microblaze.xml: New file.
3544 * features/microblaze.c: New file.
3545 * features/Makefile (microblaze-with-stack-protect): Add
3546 microblaze-with-stack-protect microblaze and microblaze-expedite.
3547 * regformats/microblaze-with-stack-protect.dat: New file.
3548 * regformats/microblaze.dat: New file.
3549 * doc/gdb.texinfo (MicroBlaze Features): Added.
3551 2014-07-18 Tom Tromey <tromey@redhat.com>
3553 * exec.c (exec_ops): Now static.
3554 * exec.h (exec_ops): Don't declare.
3556 2014-07-18 Tom Tromey <tromey@redhat.com>
3558 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3559 to find_target_beneath.
3560 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3561 find_target_beneath.
3562 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3564 2014-07-18 Tom Tromey <tromey@redhat.com>
3567 * utils.c (quit): Use target_supports_terminal_ours.
3568 * target.h (target_supports_terminal_ours): Declare.
3569 * target.c (target_supports_delete_record): Don't check
3570 to_delete_record against NULL.
3571 (target_supports_terminal_ours): New function.
3573 2014-07-18 Tom Tromey <tromey@redhat.com>
3576 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3577 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3578 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3579 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3580 * windows-nat.c (windows_xfer_partial): Always delegate.
3581 * record-btrace.c (record_btrace_xfer_partial): Simplify
3583 (record_btrace_fetch_registers, record_btrace_store_registers)
3584 (record_btrace_prepare_to_store, record_btrace_resume)
3585 (record_btrace_wait, record_btrace_find_new_threads)
3586 (record_btrace_thread_alive): Likewise.
3587 * procfs.c (procfs_xfer_partial): Always delegate.
3588 * corelow.c (core_xfer_partial): Always delegate.
3589 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3591 2014-07-18 Tom Tromey <tromey@redhat.com>
3593 * exec.c (exec_make_note_section): Move earlier.
3595 2014-07-17 Doug Evans <dje@google.com>
3598 * maint.c (count_symtabs_and_blocks): Handle NULL
3599 current_program_space.
3600 (report_command_stats): Check global enabled flag in addition to
3601 recorded enabled flag.
3602 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3604 2014-07-16 Pedro Alves <palves@redhat.com>
3606 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3608 2014-07-16 Tom Tromey <tromey@redhat.com>
3610 * target.h (struct target_ops) <to_delete_record>: Reformat
3613 2014-07-16 Tom Tromey <tromey@redhat.com>
3615 * target-delegates.c: Rebuild.
3617 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3619 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3620 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3621 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3622 (avr_pointer_to_address): Likewise.
3623 (avr_address_class_type_flags): New function.
3624 (avr_address_class_type_flags_to_name): Likewise.
3625 (avr_address_class_name_to_type_flags): Likewise.
3626 (avr_gdbarch_init): Set address_class_type_flags,
3627 address_class_type_flags_to_name and
3628 address_class_name_to_type_flags.
3630 2014-07-15 Pedro Alves <palves@redhat.com>
3632 * linux-nat.c (kill_callback): Save errno and work with saved
3635 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3637 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3639 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3641 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3642 breakpoint support correctly.
3644 2014-07-14 Pedro Alves <palves@redhat.com>
3646 * utils.c (prompt_for_continue): Call target_terminal_ours.
3648 2014-07-14 Pedro Alves <palves@redhat.com>
3650 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3651 catch_errors. Don't re-enable stdin or notify observers where,
3653 (fetch_inferior_event_wrapper): Delete.
3655 2014-07-14 Pedro Alves <palves@redhat.com>
3658 * top.c: Include "inf-loop.h".
3659 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3661 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3663 (gdb_readline_wrapper): Store whether the target is async, and
3666 2014-07-14 Pedro Alves <palves@redhat.com>
3669 * top.c (gdb_readline_wrapper_line): Tweak comment.
3670 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3671 the input handler callback.
3673 2014-07-14 Pedro Alves <palves@redhat.com>
3676 * main.c: Include event-top.h.
3677 (handle_command_errors): New function.
3678 (catch_command_errors, catch_command_errors_const): Use it.
3680 2014-07-14 Pedro Alves <palves@redhat.com>
3682 * exceptions.c (catch_command_errors, catch_command_errors_const):
3684 * exceptions.h (catch_command_errors_ftype)
3685 (catch_command_errors_const_ftype): Moved to main.c.
3686 (catch_command_errors, catch_command_errors_const): Delete
3688 * main.c (catch_command_errors_ftype)
3689 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3690 (catch_command_errors, catch_command_errors_const)): Moved here
3691 from exceptions.c and make static.
3693 2014-07-14 Pedro Alves <palves@redhat.com>
3695 * exceptions.c (print_any_exception): Delete.
3696 (catch_exceptions_with_msg): Use exception_print instead of
3697 print_any_exception.
3698 (catch_errors): Use exception_fprintf instead of
3699 print_any_exception.
3700 (catch_command_errors, catch_command_errors_const): Use
3701 exception_print instead of print_any_exception.
3703 2014-07-14 Pedro Alves <palves@redhat.com>
3705 * infcall.c (run_inferior_call): Set 'sync_execution' while
3706 running the inferior call.
3708 2014-07-14 Pedro Alves <palves@redhat.com>
3710 * value.c (value_contents_equal): Delete function.
3711 * value.h (value_contents_equal): Delete declaration.
3713 2014-07-14 Tom Tromey <tromey@redhat.com>
3716 * gdbtypes.c (is_dynamic_type_internal): New function, from
3718 (is_dynamic_type): Rewrite.
3719 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3720 (resolve_dynamic_struct): Likewise.
3721 (resolve_dynamic_type_internal): New function, from
3722 resolve_dynamic_type.
3723 (resolve_dynamic_type): Rewrite.
3725 2014-07-14 Tom Tromey <tromey@redhat.com>
3727 * target.c (target_require_runnable): Also check record_stratum.
3730 2014-07-11 Yao Qi <yao@codesourcery.com>
3732 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3733 thumb_instruction_restores_sp return true.
3735 2014-07-11 Yao Qi <yao@codesourcery.com>
3737 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3738 (thumb_in_function_epilogue_p): Call
3739 thumb_instruction_restores_sp.
3741 2014-07-11 Yao Qi <yao@codesourcery.com>
3743 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3745 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3747 2014-07-11 Gary Benson <gbenson@redhat.com>
3749 * amd64-linux-nat.c (gdbcore.h): Remove include.
3750 (regset.h): Likewise.
3751 (nat/linux-btrace.h): Likewise.
3752 (btrace.h): Likewise.
3753 (gdb_assert.h): Likewise.
3754 (string.h): Likewise.
3755 (sys/uio.h): Likewise.
3756 (sys/debugreg.h): Likewise.
3757 (sys/syscall.h): Likewise.
3758 (sys/procfs.h): Likewise.
3759 (sys/user.h): Likewise.
3760 (asm/ptrace.h): Likewise.
3761 (i386-nat.h): Likewise.
3762 * i386-linux-nat.c (i386-nat.h): Likewise.
3763 (regset.h): Likewise.
3764 (target.h): Likewise.
3765 (linux-nat.h): Likewise.
3766 (nat/linux-btrace.h): Likewise.
3767 (btrace.h): Likewise.
3768 (gdb_assert.h): Likewise.
3769 (string.h): Likewise.
3770 (sys/uio.h): Likewise.
3771 (sys/user.h): Likewise.
3772 (sys/procfs.h): Likewise.
3773 (sys/reg.h): Likewise.
3774 (sys/debugreg.h): Likewise.
3775 (ORIG_EAX): Remove definition.
3777 2014-07-11 Gary Benson <gbenson@redhat.com>
3779 * i386-linux-nat.h: New file.
3780 * x86-linux-nat.h: Likewise.
3781 * x86-linux-nat.c: Likewise.
3782 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3783 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3784 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3785 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3786 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3787 (PTRACE_SETREGSET): Likewise.
3788 (arch_lwp_info): Now in x86-linux-nat.c.
3789 (have_ptrace_getregset): Now in x86-linux-nat.h.
3790 (x86_linux_dr_get): Now in x86-linux-nat.c.
3791 (x86_linux_dr_set): Likewise.
3792 (x86_linux_dr_get_addr): Likewise.
3793 (x86_linux_dr_get_control): Likewise.
3794 (x86_linux_dr_get_status): Likewise.
3795 (update_debug_registers_callback): Likewise.
3796 (x86_linux_dr_set_control): Likewise.
3797 (x86_linux_dr_set_addr): Likewise.
3798 (x86_linux_prepare_to_resume): Likewise.
3799 (x86_linux_new_thread): Likewise.
3800 (x86_linux_new_fork): Likewise.
3801 (x86_linux_get_thread_area): Likewise.
3802 (super_post_startup_inferior): Likewise.
3803 (x86_linux_child_post_startup_inferior): Likewise.
3804 (AMD64_LINUX_USER64_CS): Likewise.
3805 (AMD64_LINUX_X32_DS): Likewise.
3806 (x86_linux_read_description): Likewise.
3807 (x86_linux_enable_btrace): Likewise.
3808 (x86_linux_disable_btrace): Likewise.
3809 (x86_linux_teardown_btrace): Likewise.
3810 (x86_linux_read_btrace): Likewise.
3811 (x86_linux_create_target): Likewise.
3812 (x86_linux_add_target): Likewise.
3813 * i386-linux-nat.c (x86-linux-nat.h): New include.
3814 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3815 (PTRACE_SETREGSET): Likewise.
3816 (arch_lwp_info): Now in x86-linux-nat.c.
3817 (have_ptrace_getregset): Now in x86-linux-nat.h.
3818 (x86_linux_dr_get): Now in x86-linux-nat.c.
3819 (x86_linux_dr_set): Likewise.
3820 (x86_linux_dr_get_addr): Likewise.
3821 (x86_linux_dr_get_control): Likewise.
3822 (x86_linux_dr_get_status): Likewise.
3823 (update_debug_registers_callback): Likewise.
3824 (x86_linux_dr_set_control): Likewise.
3825 (x86_linux_dr_set_addr): Likewise.
3826 (x86_linux_prepare_to_resume): Likewise.
3827 (x86_linux_new_thread): Likewise.
3828 (x86_linux_new_fork): Likewise.
3829 (x86_linux_get_thread_area): Likewise.
3830 (super_post_startup_inferior): Likewise.
3831 (x86_linux_child_post_startup_inferior): Likewise.
3832 (AMD64_LINUX_USER64_CS): Likewise.
3833 (AMD64_LINUX_X32_DS): Likewise.
3834 (x86_linux_read_description): Likewise.
3835 (x86_linux_enable_btrace): Likewise.
3836 (x86_linux_disable_btrace): Likewise.
3837 (x86_linux_teardown_btrace): Likewise.
3838 (x86_linux_read_btrace): Likewise.
3839 (x86_linux_create_target): Likewise.
3840 (x86_linux_add_target): Likewise.
3842 2014-07-11 Gary Benson <gbenson@redhat.com>
3844 * amd64-linux-nat.c: Comment and whitespace changes.
3845 * i386-linux-nat.c: Comment and whitespace changes.
3847 2014-07-11 Gary Benson <gbenson@redhat.com>
3849 * amd64-linux-nat.c (x86_linux_create_target): New function.
3850 (x86_linux_add_target): Likewise.
3851 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3852 * i386-linux-nat.c (x86_linux_create_target): New function.
3853 (x86_linux_add_target): Likewise.
3854 (_initialize_i386_linux_nat): Delegate to the above new functions.
3856 2014-07-11 Gary Benson <gbenson@redhat.com>
3858 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3859 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3860 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3861 (ps_get_thread_area): Delegate to the above.
3863 2014-07-11 Gary Benson <gbenson@redhat.com>
3865 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3866 x86_linux_read_description. All uses updated. amd64-specific
3867 code conditionalized. Conditionalized i386-specific code added.
3868 Redundant cast removed.
3869 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3870 x86_linux_read_description. All uses updated. i386-specific
3871 code conditionalized. Conditionalized amd64-specific code added.
3872 One sizeof replaced with the actual type it is describing.
3874 2014-07-11 Gary Benson <gbenson@redhat.com>
3876 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3877 x86_linux_dr_get. All uses updated.
3878 (amd64_linux_dr_set): Renamed to
3879 x86_linux_dr_set. All uses updated.
3880 (amd64_linux_dr_get_addr): Renamed to
3881 x86_linux_dr_get_addr. All uses updated.
3882 (amd64_linux_dr_get_control): Renamed to
3883 x86_linux_dr_get_control. All uses updated.
3884 (amd64_linux_dr_get_status): Renamed to
3885 x86_linux_dr_get_status. All uses updated.
3886 (amd64_linux_dr_set_control): Renamed to
3887 x86_linux_dr_set_control. All uses updated.
3888 (amd64_linux_dr_set_addr): Renamed to
3889 x86_linux_dr_set_addr. All uses updated.
3890 (amd64_linux_prepare_to_resume): Renamed to
3891 x86_linux_prepare_to_resume. All uses updated.
3892 (amd64_linux_new_thread): Renamed to
3893 x86_linux_new_thread. All uses updated.
3894 (amd64_linux_new_fork): Renamed to
3895 x86_linux_new_fork. All uses updated.
3896 (amd64_linux_child_post_startup_inferior): Renamed to
3897 x86_linux_child_post_startup_inferior. All uses updated.
3898 (amd64_linux_enable_btrace): Renamed to
3899 x86_linux_enable_btrace. All uses updated.
3900 (amd64_linux_disable_btrace): Renamed to
3901 x86_linux_disable_btrace. All uses updated.
3902 (amd64_linux_teardown_btrace): Renamed to
3903 x86_linux_teardown_btrace. All uses updated.
3904 (amd64_linux_read_btrace): Renamed to
3905 x86_linux_read_btrace. All uses updated.
3906 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3907 x86_linux_dr_get. All uses updated.
3908 (i386_linux_dr_set): Renamed to
3909 x86_linux_dr_set. All uses updated.
3910 (i386_linux_dr_get_addr): Renamed to
3911 x86_linux_dr_get_addr. All uses updated.
3912 (i386_linux_dr_get_control): Renamed to
3913 x86_linux_dr_get_control. All uses updated.
3914 (i386_linux_dr_get_status): Renamed to
3915 x86_linux_dr_get_status. All uses updated.
3916 (i386_linux_dr_set_control): Renamed to
3917 x86_linux_dr_set_control. All uses updated.
3918 (i386_linux_dr_set_addr): Renamed to
3919 x86_linux_dr_set_addr. All uses updated.
3920 (i386_linux_prepare_to_resume): Renamed to
3921 x86_linux_prepare_to_resume. All uses updated.
3922 (i386_linux_new_thread): Renamed to
3923 x86_linux_new_thread. All uses updated.
3924 (i386_linux_new_fork): Renamed to
3925 x86_linux_new_fork. All uses updated.
3926 (i386_linux_child_post_startup_inferior): Renamed to
3927 x86_linux_child_post_startup_inferior. All uses updated.
3928 (i386_linux_enable_btrace): Renamed to
3929 x86_linux_enable_btrace. All uses updated.
3930 (i386_linux_disable_btrace): Renamed to
3931 x86_linux_disable_btrace. All uses updated.
3932 (i386_linux_teardown_btrace): Renamed to
3933 x86_linux_teardown_btrace. All uses updated.
3934 (i386_linux_read_btrace): Renamed to
3935 x86_linux_read_btrace. All uses updated.
3937 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3939 * remote.c (extended_remote_post_attach): New function.
3940 (init_extended_remote_ops): Install it as to_post_attach method.
3942 2014-07-09 Pedro Alves <palves@redhat.com>
3944 * infcmd.c (attach_command_post_wait): Don't call
3945 target_terminal_inferior here.
3946 (attach_command): Call it here instead.
3948 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3950 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3952 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3953 from varobj.c, with additional checks.
3954 (c_varobj_ops): Fill in is_path_expr_parent field.
3955 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3956 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3958 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3960 (varobj_default_is_path_expr_parent): New function.
3961 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3962 (varobj_default_is_path_expr_parent): Declare new function.
3964 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3966 * infcmd.c (finish_backward): Turn internal error into normal error.
3968 2014-07-07 Pedro Alves <palves@redhat.com>
3971 * remote.c (async_handle_remote_sigint)
3972 (async_handle_remote_sigint_twice): Call
3973 gdb_call_async_signal_handler instead of
3974 mark_async_signal_handler.
3976 2014-07-07 Tom Tromey <tromey@redhat.com>
3978 * target-delegates.c: Rebuild.
3979 * target.c (target_info_record): Remove.
3980 * record.c (info_record_command): Unconditionally call
3982 * target.h (struct target_ops) <to_info_record>: Use
3983 TARGET_DEFAULT_IGNORE.
3984 (target_info_record): Remove.
3986 2014-07-07 Tom Tromey <tromey@redhat.com>
3988 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3989 TARGET_DEFAULT_NORETURN.
3990 * target.c (generic_tls_error): New function.
3991 (target_translate_tls_address): Don't search target stack.
3992 * target-delegates.c: Rebuild.
3993 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3995 * linux-thread-db.c (thread_db_get_thread_local_address):
3996 Unconditionally call beneath target.
3998 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4000 * cli/cli-logging.c (pop_output_files): Assign targerr to
4003 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4005 * MAINTAINERS (Write After Approval): Update my email address.
4007 2014-07-02 Gary Benson <gbenson@redhat.com>
4009 * proc-service.c (ps_xfer_memory): Update comment.
4010 (ps_pstop): Remove unused function.
4011 (ps_pcontinue): Likewise.
4012 (ps_lstop): Likewise.
4013 (ps_lcontinue): Likewise.
4014 (ps_lgetxregsize): Likewise.
4015 (ps_lgetxregs): Likewise.
4016 (ps_lsetxregs): Likewise.
4017 (ps_plog): Likewise.
4018 (ps_ptread): Likewise.
4019 (ps_ptwrite): Likewise.
4021 2014-07-01 Mark Wielaard <mjw@redhat.com>
4023 * dwarf2read.c (add_array_cv_type): New function.
4024 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4025 (read_tag_volatile_type): Likewise.
4027 2014-07-01 Tom Tromey <tromey@redhat.com>
4029 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4030 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4031 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4032 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4033 * command.h (cmd_cfunc_ftype): Move earlier.
4034 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4035 (add_com, add_info): Use cmd_cfunc_ftype.
4037 2014-06-30 Tom Tromey <tromey@redhat.com>
4039 * symtab.c (operator_chars): Make parameters and return type
4041 (file_matches): Make "files" const.
4042 (struct search_symbols_data) <files>: Now const.
4043 (search_symbols): Make "regexp" and "files" parameters const.
4045 (symtab_symbol_info): Remove cast.
4046 (rbreak_command): Update.
4047 * symtab.h (search_symbols): Update.
4049 2014-06-27 Yao Qi <yao@codesourcery.com>
4051 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4052 Change parameter type to 'struct thread_info *'. Caller
4054 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4056 * dummy-frame.c (struct dummy_frame_id): New.
4057 (dummy_frame_id_eq): New function.
4058 (struct dummy_frame) <id>: Change its type to 'struct
4060 (dummy_frame_push): Add parameter ptid and save it in
4062 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4064 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4066 (lookup_dummy_frame): Change parameter type to 'struct
4067 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4068 instead of frame_id_eq.
4069 (dummy_frame_pop): Add parameter ptid. Callers updated.
4070 Update comments. Compose dummy_frame_id and pass it to
4072 (dummy_frame_discard): Add parameter ptid.
4073 (dummy_frame_sniffer): Compose dummy_frame_id and call
4074 dummy_frame_id_eq instead of frame_id_eq.
4075 (fprint_dummy_frames): Print ptid.
4076 * dummy-frame.h: Remove comments.
4077 (dummy_frame_push): Add ptid in declaration.
4078 (dummy_frame_pop, dummy_frame_discard): Likewise.
4080 2014-06-26 Tom Tromey <tromey@redhat.com>
4082 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4083 * command.h (error_no_arg): Update.
4085 2014-06-26 Tom Tromey <tromey@redhat.com>
4087 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4088 (do_show_command): Make "arg" const.
4089 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4091 2014-06-26 Tom Tromey <tromey@redhat.com>
4093 * record-full.c (record_full_get_bookmark): Make "args" const.
4094 (record_full_goto_bookmark): Make "raw_bookmark" const.
4095 * record.c (record_goto): New function.
4096 (cmd_record_goto): Use it. Now static.
4097 * record.h (record_goto): Declare.
4098 (cmd_record_goto): Remove declaration.
4099 * target-delegates.c: Rebuild.
4100 * target.h (struct target_ops) <to_get_bookmark,
4101 to_goto_bookmark>: Make parameter const.
4103 2014-06-26 Tom Tromey <tromey@redhat.com>
4105 * defs.h (generic_load): Update.
4106 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4107 * monitor.c (monitor_load): Make "args" const.
4108 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4109 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4111 (mips_load): Make "file" const.
4112 * remote-sim.c (gdbsim_load): Make "args" const.
4113 * remote.c (remote_load): Make "name" const.
4114 * symfile.c (generic_load): Make "args" const.
4115 * target-delegates.c: Rebuild.
4116 * target.c (target_load): Make "arg" const.
4117 (debug_to_load): Make "args" const.
4118 * target.h (struct target_ops) <to_load>: Make parameter const.
4119 (target_load): Update.
4121 2014-06-26 Tom Tromey <tromey@redhat.com>
4124 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4125 (dwarf2_physname, read_partial_die)
4126 (guess_partial_die_structure_name, fixup_partial_die)
4127 (guess_full_die_structure_name, anonymous_struct_prefix)
4128 (dwarf2_name): Use per-BFD obstack.
4130 2014-06-26 Yao Qi <yao@codesourcery.com>
4132 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4133 dummyframe and this_id into inner block below.
4135 2014-06-26 Yao Qi <yao@codesourcery.com>
4137 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4138 with "signal_pass[0]" in the initialization of signal_pass.
4140 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4142 * record-btrace.c (record_btrace_generating_corefile)
4143 (record_btrace_prepare_to_generate_core)
4144 (record_btrace_done_generating_core): New.
4145 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4146 (record_btrace_store_registers, record_btrace_prepare_to_store):
4147 Forward request when generating a core file.
4148 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4149 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4150 to_done_generating_core.
4152 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4154 * target.h (target_ops) <to_prepare_to_generate_core>
4155 <to_done_generating_core>: New.
4156 (target_prepare_to_generate_core, target_done_generating_core): New.
4157 * target.c (target_prepare_to_generate_core)
4158 (target_done_generating_core): New.
4159 * target-delegates.c: Regenerate.
4160 * gcore.c: (write_gcore_file): Rename to ...
4161 (write_gcore_file_1): ...this.
4162 (write_gcore_file): Call target_prepare_to_generate_core
4163 and target_done_generating_core.
4165 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4167 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4168 * gcore.c (write_gcore_file): Free memory returned from
4169 make_corefile_notes.
4170 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4171 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4173 2014-06-24 Yao Qi <yao@codesourcery.com>
4175 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4176 (arm_linux_init_abi): Set skip_trampoline_code with
4177 gdbarch_skip_trampoline_code instead of
4178 find_solib_trampoline_target.
4180 2014-06-24 Yao Qi <yao@codesourcery.com>
4182 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4183 arm_skip_bx_reg returns non-zero.
4185 2014-06-24 Yao Qi <yao@codesourcery.com>
4187 * arm-tdep.c (arm_skip_bx_reg): New function.
4188 (arm_skip_stub): Call arm_skip_bx_reg.
4190 2014-06-23 Don Breazeal <donb@codesourcery.com>
4192 * MAINTAINERS: Add myself as write-after-approval maintainer.
4194 2014-06-23 Pedro Alves <palves@redhat.com>
4196 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4197 DR_CONTROL before setting DR0..DR3.
4198 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4199 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4200 bits of DR_CONTROL related to the debug register slot being
4201 disabled. If all slots are vacant, clear local slowdown as well,
4202 and assert DR_CONTROL is 0.
4204 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4206 * python/lib/gdb/command/xmethods.py
4207 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4208 current progspace only if the string "progspace" matches LOCUS_RE.
4210 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4212 Fix --with-system-readline with readline-6.3 patch 5.
4213 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4214 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4217 2014-06-20 Tom Tromey <tromey@redhat.com>
4219 * dwarf2read.c (dw2_get_real_path): Use correct type in
4221 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4223 2014-06-20 Gary Benson <gbenson@redhat.com>
4225 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4226 * common/glibc_thread_db.h: Likewise.
4227 * common/i386-cpuid.h: Likewise.
4228 * common/i386-gcc-cpuid.h: Likewise.
4229 * common/linux-btrace.h: Likewise.
4230 * common/linux-osdata.h: Likewise.
4231 * common/linux-procfs.h: Likewise.
4232 * common/linux-ptrace.h: Likewise.
4233 * common/mips-linux-watch.h: Likewise.
4234 * common/linux-btrace.c: Moved to nat.
4235 * common/linux-osdata.c: Likewise.
4236 * common/linux-procfs.c: Likewise.
4237 * common/linux-ptrace.c: Likewise.
4238 * common/mips-linux-watch.c: Likewise.
4239 * nat/gdb_thread_db.h: Moved from common.
4240 * nat/glibc_thread_db.h: Likewise.
4241 * nat/i386-cpuid.h: Likewise.
4242 * nat/i386-gcc-cpuid.h: Likewise.
4243 * nat/linux-btrace.c: Likewise.
4244 * nat/linux-btrace.h: Likewise.
4245 * nat/linux-osdata.c: Likewise.
4246 * nat/linux-osdata.h: Likewise.
4247 * nat/linux-procfs.c: Likewise.
4248 * nat/linux-procfs.h: Likewise.
4249 * nat/linux-ptrace.c: Likewise.
4250 * nat/linux-ptrace.h: Likewise.
4251 * nat/mips-linux-watch.c: Likewise.
4252 * nat/mips-linux-watch.h: Likewise.
4253 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4254 (object file files): Reordered.
4255 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4256 of glibc_thread_db.h.
4258 2014-06-20 Gary Benson <gbenson@redhat.com>
4260 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4261 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4262 (i386_dr_low): Likewise.
4263 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4264 (i386_dr_low_set_addr): Likewise.
4265 (i386_dr_low_get_addr): Likewise.
4266 (i386_dr_low_can_set_control): Likewise.
4267 (i386_dr_low_set_control): Likewise.
4268 (i386_dr_low_get_control): Likewise.
4269 (i386_dr_low_get_status): Likewise.
4270 (i386_get_debug_register_length): Likewise.
4271 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4272 (i386_dr_low): Likewise.
4273 * nat/i386-dregs.c (i386-low.h): Remove include.
4274 (i386-nat.h): Likewise.
4275 (nat/i386-dregs.h): New include.
4276 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4277 (i386_dr_low_set_addr): Likewise.
4278 (i386_dr_low_get_addr): Likewise.
4279 (i386_dr_low_can_set_control): Likewise.
4280 (i386_dr_low_set_control): Likewise.
4281 (i386_dr_low_get_control): Likewise.
4282 (i386_dr_low_get_status): Likewise.
4283 (i386_get_debug_register_length): Likewise.
4284 (debug_hw_points): Likewise.
4286 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4288 * Makefile.in (SFILES): Add d-exp.y.
4289 (YYFILES): Add d-exp.c.
4290 (YYOBJ): Add d-exp.o.
4291 (local-maintainer-clean): Delete d-exp.c.
4292 * d-exp.y: New file.
4293 * d-lang.h (d_parse): New declaration.
4294 (d_error): New declaration.
4295 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4296 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4297 PREC_ORDER operators.
4298 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4300 2014-06-19 Yao Qi <yao@codesourcery.com>
4302 * gdbthread.h (any_running): Remove the declaration.
4303 * thread.c (any_running): Remove.
4305 2014-06-19 Yao Qi <yao@codesourcery.com>
4307 * gdbthread.h (struct thread_info) <state>: Change its type to
4308 'enum thread_state'. Update comments.
4310 2014-06-19 Pedro Alves <palves@redhat.com>
4312 * gdbthread.h (ALL_THREADS): Delete.
4313 (ALL_NON_EXITED_THREADS): New macro.
4314 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4315 instead of ALL_THREADS.
4316 * infrun.c (find_thread_needs_step_over)
4317 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4318 instead of ALL_THREADS.
4319 * record-btrace.c (record_btrace_open)
4320 (record_btrace_stop_recording, record_btrace_close)
4321 (record_btrace_is_replaying, record_btrace_resume)
4322 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4323 * remote.c (append_pending_thread_resumptions): Likewise.
4324 * thread.c (thread_apply_all_command): Likewise.
4326 2014-06-19 Gary Benson <gbenson@redhat.com>
4328 * i386-nat.c (i386_stopped_by_watchpoint):
4329 Use i386_dr_stopped_by_watchpoint.
4330 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4331 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4333 2014-06-19 Gary Benson <gbenson@redhat.com>
4335 * nat/i386-dregs.c: New file.
4336 * Makefile.in (i386-dregs.o): New rule.
4337 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4338 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4339 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4340 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4341 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4342 * config/i386/go32.mh (NATDEPFILES): Likewise.
4343 * config/i386/linux.mh (NATDEPFILES): Likewise.
4344 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4345 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4346 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4347 * i386-nat.h (debug_hw_points): New declaration.
4348 * i386-nat.c (breakpoint.h): Remove include.
4349 (command.h): Likewise.
4350 (target.h): Likewise.
4351 (gdb_assert.h): Likewise.
4352 (debug_hw_points): Made nonstatic.
4353 (debug_printf): Now in i386-dregs.c.
4354 (TARGET_HAS_DR_LEN_8): Likewise.
4355 (DR_CONTROL_SHIFT): Likewise.
4356 (DR_CONTROL_SIZE): Likewise.
4357 (DR_RW_EXECUTE): Likewise.
4358 (DR_RW_WRITE): Likewise.
4359 (DR_RW_READ): Likewise.
4360 (DR_RW_IORW): Likewise.
4361 (DR_LEN_1): Likewise.
4362 (DR_LEN_2): Likewise.
4363 (DR_LEN_4): Likewise.
4364 (DR_LEN_8): Likewise.
4365 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4366 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4367 (DR_ENABLE_SIZE): Likewise.
4368 (DR_LOCAL_SLOWDOWN): Likewise.
4369 (DR_GLOBAL_SLOWDOWN): Likewise.
4370 (DR_CONTROL_RESERVED): Likewise.
4371 (I386_DR_CONTROL_MASK): Likewise.
4372 (I386_DR_VACANT): Likewise.
4373 (I386_DR_LOCAL_ENABLE): Likewise.
4374 (I386_DR_GLOBAL_ENABLE): Likewise.
4375 (I386_DR_DISABLE): Likewise.
4376 (I386_DR_SET_RW_LEN): Likewise.
4377 (I386_DR_GET_RW_LEN): Likewise.
4378 (I386_DR_WATCH_HIT): Likewise.
4379 (i386_wp_op_t): Likewise.
4380 (i386_show_dr): Likewise.
4381 (i386_length_and_rw_bits): Likewise.
4382 (i386_insert_aligned_watchpoint): Likewise.
4383 (i386_remove_aligned_watchpoint): Likewise.
4384 (i386_handle_nonaligned_watchpoint): Likewise.
4385 (i386_update_inferior_debug_regs): Likewise.
4386 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4387 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4388 (i386_region_ok_for_watchpoint):
4389 Use i386_dr_region_ok_for_watchpoint.
4390 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4392 2014-06-19 Gary Benson <gbenson@redhat.com>
4394 * i386-nat.c (i386_insert_hw_breakpoint): Use
4395 i386_insert_watchpoint.
4396 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4398 2014-06-19 Gary Benson <gbenson@redhat.com>
4400 * i386-nat.c (i386_dr_show): Renamed to
4401 i386_show_dr and made static. All uses updated.
4402 (i386_dr_length_and_rw_bits): Renamed to
4403 i386_length_and_rw_bits and made static.
4405 (i386_dr_insert_aligned_watchpoint): Renamed to
4406 i386_insert_aligned_watchpoint and made static.
4408 (i386_dr_remove_aligned_watchpoint): Renamed to
4409 i386_remove_aligned_watchpoint and made static.
4411 (i386_dr_update_inferior_debug_regs): Renamed to
4412 i386_update_inferior_debug_regs and made static.
4414 * nat/i386-dregs.h (i386_dr_show): Removed.
4415 (i386_dr_length_and_rw_bits): Likewise.
4416 (i386_dr_insert_aligned_watchpoint): Likewise.
4417 (i386_dr_remove_aligned_watchpoint): Likewise.
4418 (i386_dr_update_inferior_debug_regs): Likewise.
4420 2014-06-19 Gary Benson <gbenson@redhat.com>
4422 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4423 * configure: Regenerate.
4424 * config.in: Likewise.
4425 * main.c (signal.h): New include.
4426 (setup_alternate_signal_stack): New function.
4427 (captured_main): Call the above.
4428 * cp-support.c (signal.h): New include.
4429 (catch_demangler_crashes): New flag.
4430 (SIGJMP_BUF): New define.
4431 (SIGSETJMP): Likewise.
4432 (SIGLONGJMP): Likewise.
4433 (gdb_demangle_jmp_buf): New static global.
4434 (gdb_demangle_attempt_core_dump): Likewise.
4435 (gdb_demangle_signal_handler): New function.
4436 (gdb_demangle): If catch_demangler_crashes is set, install the
4437 above signal handler before calling bfd_demangle, and restore
4438 the original signal handler afterwards. Display the offending
4439 symbol and call demangler_warning the first time a segmentation
4441 (_initialize_cp_support): New maint set/show command.
4443 2014-06-19 Gary Benson <gbenson@redhat.com>
4445 * utils.h (resource_limit_kind): New enum.
4446 (can_dump_core): New declaration.
4447 (warn_cant_dump_core): Likewise.
4448 (dump_core): Likewise.
4449 * utils.c (dump_core): Made nonstatic. Added new
4450 parameter "limit_kind".
4451 (can_dump_core): Made nonstatic. Moved printing code to...
4452 (warn_cant_dump_core): New function.
4453 (can_dump_core_warn): Likewise.
4454 (internal_vproblem): Replace calls to can_dump_core with
4455 calls to can_dump_core_warn. Supply new argument to each.
4457 2014-06-19 Gary Benson <gbenson@redhat.com>
4459 * utils.h (demangler_vwarning): New declaration.
4460 (demangler_warning): Likewise.
4461 * utils.c (struct internal_problem)
4462 <user_settable_should_quit>: New field.
4463 <user_settable_should_dump_core>: Likewise
4464 (internal_error_problem): Add values for above new fields.
4465 (internal_warning_problem): Likewise.
4466 (demangler_warning_problem): New static global.
4467 (demangler_vwarning): New function.
4468 (demangler_warning): Likewise.
4469 (add_internal_problem_command): Selectively add commands.
4470 (_initialize_utils): New internal problem command.
4471 * maint.c (maintenance_demangler_warning): New function.
4472 (_initialize_maint_cmds): New command.
4474 2014-06-18 Tom Tromey <tromey@redhat.com>
4476 * f-valprint.c (info_common_command_for_block): Update.
4477 * symtab.h (struct general_symbol_info) <common_block>: Now
4480 2014-06-18 Tom Tromey <tromey@redhat.com>
4482 * symtab.h (struct symtab) <blockvector>: Now const.
4483 * ada-lang.c (ada_add_global_exceptions): Update.
4484 * buildsym.c (augment_type_symtab): Update.
4485 * dwarf2read.c (dw2_lookup_symbol): Update.
4486 * jit.c (finalize_symtab): Update.
4487 * jv-lang.c (add_class_symtab_symbol): Update.
4488 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4490 * objfiles.c (objfile_relocate1): Update.
4491 * psymtab.c (lookup_symbol_aux_psymtabs)
4492 (maintenance_check_psymtabs): Update.
4493 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4495 * spu-tdep.c (spu_catch_start): Update.
4496 * symmisc.c (dump_symtab_1): Update.
4497 * symtab.c (lookup_global_symbol_from_objfile)
4498 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4499 (basic_lookup_transparent_type_quick)
4500 (basic_lookup_transparent_type, find_pc_sect_symtab)
4501 (find_pc_sect_line, search_symbols): Update.
4502 * block.c (find_block_in_blockvector): Make "bl" const.
4503 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4505 (blockvector_contains_pc): Make "bv" const.
4506 (block_for_pc_sect): Update.
4507 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4508 (blockvector_contains_pc): Update.
4509 * breakpoint.c (resolve_sal_pc): Update.
4510 * inline-frame.c (block_starting_point_at): Update.
4512 2014-06-18 Tom Tromey <tromey@redhat.com>
4514 * completer.c (complete_line): Make "line_buffer" const.
4515 * completer.h (complete_line): Update.
4517 2014-06-18 Tom Tromey <tromey@redhat.com>
4519 * symtab.c (add_macro_name): Remove unneeded cast.
4521 2014-06-18 Tom Tromey <tromey@redhat.com>
4523 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4524 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4526 2014-06-18 Tom Tromey <tromey@redhat.com>
4528 * probe.c (info_probes_for_ops): Make "arg" const.
4529 * probe.h (info_probes_for_ops): Update.
4531 2014-06-18 Tom Tromey <tromey@redhat.com>
4533 * varobj.c (varobj_create): Update.
4534 * valops.c (value_of_this): Update.
4535 * tracepoint.c (add_local_symbols, scope_info): Update.
4536 * symtab.h (struct general_symbol_info) <block>: Now const.
4537 * symtab.c (skip_prologue_sal)
4538 (default_make_symbol_completion_list_break_on)
4539 (skip_prologue_using_sal): Update.
4540 * stack.h (iterate_over_block_locals)
4541 (iterate_over_block_local_vars): Update.
4542 * stack.c (print_frame_args): Update.
4543 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4545 (get_selected_block): Make return type const.
4546 * python/py-frame.c (frapy_block): Update.
4547 * python/py-block.c (gdbpy_block_for_pc): Update.
4548 * p-exp.y (%union) <bval>: Now const.
4549 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4550 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4551 * m2-exp.y (%union) <bval>: Now const.
4552 * linespec.c (get_current_search_block): Make return type const.
4553 (create_sals_line_offset, find_label_symbols): Update.
4554 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4556 (block_starting_point_at): Make "block" const.
4557 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4558 (check_exception_resume): Update.
4559 * guile/scm-frame.c (gdbscm_frame_block): Update.
4560 * guile/scm-block.c (gdbscm_lookup_block): Update.
4561 * frame.h (get_frame_block): Update.
4562 (get_selected_block): Make return type const.
4563 * frame.c (frame_id_inner): Update.
4564 * f-valprint.c (info_common_command_for_block)
4565 (info_common_command): Update.
4566 * dwarf2loc.c (dwarf2_find_location_expression)
4567 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4568 (locexpr_describe_location_piece): Update.
4569 * c-exp.y (%union) <bval>: Now const.
4570 * breakpoint.c (resolve_sal_pc): Update.
4571 * blockframe.c (get_frame_block):Make return type const.
4572 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4573 (block_innermost_frame): Update.
4574 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4575 (block_for_pc, block_for_pc_sect): Update.
4576 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4578 (block_for_pc_sect, block_for_pc): Make return type const.
4579 * ax-gdb.c (gen_expr): Update.
4580 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4581 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4582 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4583 (ada_read_var_value): Update.
4584 * ada-exp.y (struct name_info) <block>: Now const.
4586 (block_lookup): Constify.
4588 2014-06-18 Gary Benson <gbenson@redhat.com>
4590 * nat/i386-dregs.h: New file.
4591 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4592 * i386-nat.h (i386-dregs.h): New include.
4593 (DR_FIRSTADDR): Now in i386-dregs.h.
4594 (DR_LASTADDR): Likewise.
4595 (DR_NADDR): Likewise.
4596 (DR_STATUS): Likewise.
4597 (DR_CONTROL): Likewise.
4598 (i386_debug_reg_state): Likewise.
4599 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4601 2014-06-18 Don Breazeal <donb@codesourcery.com>
4603 * breakpoint.c (set_longjmp_breakpoint): Call
4604 momentary_breakpoint_from_master with additional argument.
4605 (set_longjmp_breakpoint_for_call_dummy): Call
4606 momentary_breakpoint_from_master with additional argument.
4607 (set_std_terminate_breakpoint): Call
4608 momentary_breakpoint_from_master with additional argument.
4609 (momentary_breakpoint_from_master): Add argument to function
4610 definition and use it to initialize structure member flag.
4611 (clone_momentary_breakpoint): Call
4612 momentary_breakpoint_from_master with additional argument.
4613 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4614 member flags set in momentary_breakpoint_from_master.
4616 2014-06-18 Gary Benson <gbenson@redhat.com>
4618 * i386-nat.c (i386_show_dr): Renamed to
4619 i386_dr_show and made nonstatic. All uses updated.
4620 (i386_length_and_rw_bits): Renamed to
4621 i386_dr_length_and_rw_bits and made nonstatic.
4623 (i386_insert_aligned_watchpoint): Renamed to
4624 i386_dr_insert_aligned_watchpoint and made nonstatic.
4626 (i386_remove_aligned_watchpoint): Renamed to
4627 i386_dr_remove_aligned_watchpoint and made nonstatic.
4629 (i386_update_inferior_debug_regs): Renamed to
4630 i386_dr_update_inferior_debug_regs and made nonstatic.
4633 2014-06-18 Gary Benson <gbenson@redhat.com>
4635 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4636 (i386_dr_low_can_set_control): Likewise.
4637 (i386_dr_low_set_addr): Likewise.
4638 (i386_dr_low_set_control): Likewise.
4639 (i386_dr_low_get_addr): Likewise.
4640 (i386_dr_low_get_status): Likewise.
4641 (i386_dr_low_get_control): Likewise.
4642 (i386_insert_aligned_watchpoint): Use new macros.
4643 (i386_update_inferior_debug_regs): Likewise.
4644 (i386_stopped_data_address): Likewise.
4646 2014-06-18 Gary Benson <gbenson@redhat.com>
4648 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4649 New parameter. All uses updated.
4651 2014-06-18 Gary Benson <gbenson@redhat.com>
4653 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4656 2014-06-18 Gary Benson <gbenson@redhat.com>
4658 * i386-nat.c (debug_printf): New macro.
4659 (i386_get_debug_register_length): Likewise.
4660 (TARGET_HAS_DR_LEN_8): Use above macro.
4661 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4662 and printf_unfiltered. Use phex to format values.
4664 2014-06-18 Gary Benson <gbenson@redhat.com>
4666 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4669 2014-06-18 Gary Benson <gbenson@redhat.com>
4671 * i386-nat.c: Comment changes.
4673 2014-06-18 Gary Benson <gbenson@redhat.com>
4675 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4677 2014-06-18 Gary Benson <gbenson@redhat.com>
4679 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4680 (i386_insert_aligned_watchpoint): Likewise.
4681 (i386_remove_aligned_watchpoint): Likewise.
4682 (i386_handle_nonaligned_watchpoint): Likewise.
4684 2014-06-18 Gary Benson <gbenson@redhat.com>
4686 * i386-nat.c: Whitespace changes.
4688 2014-06-17 Samuel Bronson <naesten@gmail.com>
4690 * MAINTAINERS: Update Roland McGrath's email address.
4691 Thanks to Sergio Durigan Junior for pointing out that he left
4692 Red Hat a while ago, and giving me a current address.
4694 2014-06-17 Tom Tromey <tromey@redhat.com>
4696 * utils.h (savestring): Remove declaration.
4698 2014-06-17 Tom Tromey <tromey@redhat.com>
4700 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4702 2014-06-16 Keith Seitz <keiths@redhat.com>
4705 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4706 to update the varobj if inferior_ptid is null_ptid.
4708 2014-06-16 Tom Tromey <tromey@redhat.com>
4710 * target.h (struct target_ops) <to_info_proc>: Make parameter
4712 (target_info_proc): Update.
4713 * target.c (target_info_proc): Make "args" const.
4714 * procfs.c (procfs_info_proc): Update.
4715 * linux-tdep.c (linux_info_proc): Update.
4716 (linux_core_info_proc_mappings): Make "args" const.
4717 (linux_core_info_proc): Update.
4718 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4719 * gdbarch.c: Rebuild.
4720 * gdbarch.h: Rebuild.
4721 * corelow.c (core_info_proc): Update.
4723 2014-06-16 Tom Tromey <tromey@redhat.com>
4725 * target.h (struct target_ops) <to_disconnect>: Make parameter
4727 (target_disconnect): Update.
4728 * target.c (target_disconnect): Make "args" const.
4729 * target-delegates.c: Rebuild.
4730 * remote.c (remote_disconnect): Update.
4731 * record.h (record_disconnect): Update.
4732 * record.c (record_disconnect): Update.
4733 * inf-child.c (inf_child_disconnect): Update.
4735 2014-06-16 Tom Tromey <tromey@redhat.com>
4737 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4738 * target.c (debug_to_rcmd, default_rcmd): Update.
4739 * target-delegates.c: Rebuild.
4740 * remote.c (remote_rcmd): Update.
4741 * monitor.c (monitor_rcmd): Update.
4743 2014-06-16 Pedro Alves <palves@redhat.com>
4745 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4746 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4747 have OBJF_SHARED set.
4748 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4749 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4750 instead of OBJF_USERLOADED.
4751 * objfiles.h (OBJF_SHARED): Update comment.
4752 (userloaded_objfile_contains_address_p): Rename to ...
4753 (shared_objfile_contains_address_p): ... this, and update
4755 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4757 (remove_symbol_file_command): Skip objfiles that don't have
4760 2014-06-16 Tom Tromey <tromey@redhat.com>
4762 * minsyms.h (prim_record_minimal_symbol)
4763 (prim_record_minimal_symbol_and_info): Update comments.
4765 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4767 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4768 or --without-guile, according to how GDB was built.
4770 2014-06-13 Tom Tromey <tromey@redhat.com>
4772 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4774 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4776 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4778 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4779 help_list.Pass all_commands, not -1, to help_list.
4780 * cli/cli-dump.c (dump_command, append_command)
4781 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4782 (binary_dump_command, binary_append_command): Pass all_commands,
4783 not -1, to help_list.
4784 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4786 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4788 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4790 * top.c (set_history): Pass all_commands, not -1, to help_list.
4791 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4792 all_commands, not -1, to help_list.
4793 * symfile.c (overlay_command): Pass all_commands, not -1, to
4795 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4797 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4799 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4801 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4802 not -1, to help_list.
4803 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4804 not -1, to help_list.
4805 * maint.c (maintenance_command, maintenance_info_command)
4806 (maintenance_print_command, maintenance_set_cmd): Pass
4807 all_commands, not -1, to help_list.
4808 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4810 * language.c (set_check): Pass all_commands, not -1, to help_list.
4811 * infcmd.c (unset_command): Pass all_commands, not -1, to
4813 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4815 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4817 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4819 * breakpoint.c (save_command): Pass all_commands, not -1, to
4821 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4822 all_commands, not -1, to help_list.
4824 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4826 * regcache.c (struct register_to_invalidate): New structure.
4827 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4829 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4831 2014-06-12 Yao Qi <yao@codesourcery.com>
4833 * varobj.c (varobj_get_num_children): Call
4834 varobj_is_dynamic_p.
4835 (varobj_list_children): Likewise.
4836 (varobj_update): Likewise. Update comments.
4838 2014-06-12 Yao Qi <yao@codesourcery.com>
4840 * varobj.c (varobj_pretty_printed_p): Rename to ...
4841 (varobj_is_dynamic_p): ... this. New function.
4842 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4843 (varobj_is_dynamic_p): Declare.
4844 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4845 (mi_print_value_p, varobj_update_one): Likewise.
4847 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4848 Yao Qi <yao@codesourcery.com>
4850 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4851 (varobj_get_iterator): Wrap up code for pretty-printer by
4852 "#if HAVE_PYTHON" and "#endif".
4853 (update_dynamic_varobj_children): Likewise.
4855 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4856 Yao Qi <yao@codesourcery.com>
4858 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4859 gdb_python_initialized is false. Move some code from varobj.c.
4860 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4861 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4862 (struct varobj_item): Moved to varobj-iter.h".
4863 (varobj_clear_saved_item): New function.
4864 (update_dynamic_varobj_children): Move python-related code to
4866 (free_variable): Call varobj_clear_saved_item and
4869 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4870 Yao Qi <yao@codesourcery.com>
4872 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4873 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4874 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4875 (py-varobj.o): New rule.
4876 * python/py-varobj.c: New file.
4877 * python/python-internal.h (py_varobj_get_iterator): Declare.
4878 * varobj-iter.h: New file.
4879 * varobj.c: Include "varobj-iter.h"
4880 (struct varobj) <child_iter>: Change its type from "PyObject *"
4881 to "struct varobj_iter *".
4882 <saved_item>: Likewise.
4883 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4884 [HAVE_PYTHON] (varobj_get_iterator): New function.
4885 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4886 python-specific code to python/py-varobj.c.
4887 (install_visualizer): Call varobj_iter_delete instead of
4889 * varobj.h (varobj_ensure_python_env): Declare.
4891 2014-06-12 Yao Qi <yao@codesourcery.com>
4893 * varobj.c (struct varobj_item): New structure.
4894 (create_child_with_value): Update declaration.
4895 (varobj_add_child): Replace arguments 'name' and 'value' with
4896 'item'. All callers updated.
4897 (install_dynamic_child): Likewise.
4898 (update_dynamic_varobj_children): Likewise.
4899 (varobj_add_child): Likewise.
4900 (create_child_with_value): Likewise.
4902 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4904 * NEWS: Create a new section for the next release branch.
4905 Rename the section of the current branch, now that it has
4908 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4910 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4911 * version.in: Bump version to 7.8.50.DATE-cvs.
4913 2014-06-11 Pedro Alves <palves@redhat.com>
4916 * ser-mingw.c (net_windows_socket_check_pending): New function.
4917 (net_windows_select_thread): Ignore spurious wakeups. Use
4918 net_windows_socket_check_pending.
4919 (net_windows_wait_handle): Check for pending events with
4920 ioctlsocket, through net_windows_socket_check_pending, instead of
4921 checking the socket's event.
4923 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4925 * python/python-internal.h (gdb_PyObject_GetAttrString)
4926 (gdb_PyObject_HasAttrString): New inline function definitions.
4927 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4928 char * of the second argument to PyObject_GetAttrString.
4930 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4932 * serial.c (serial_write): Fix index of character to be printed
4933 in call to serial_logchar when serial debug traces are enabled.
4935 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4937 * gdbtypes (resolve_dynamic_range): Add function description.
4939 2014-06-09 Pedro Alves <palves@redhat.com>
4941 * linux-nat.c (linux_child_follow_fork): Initialize status with
4942 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4943 inner block. Only pass the signal to PTRACE_DETACH if in pass
4946 2014-06-09 Gary Benson <gbenson@redhat.com>
4948 * common/signals.c (gdb_signal_from_host): Reorder to separate
4949 the always-available ANSI-standard signals from the signals that
4951 (do_gdb_signal_to_host): Likewise.
4952 * proc-events.c (signal_table): Likewise.
4954 2014-06-08 Hui Zhu <hui@codesourcery.com>
4956 * common/linux-ptrace.c (linux_disable_event_reporting): New
4958 * common/linux-ptrace.h (linux_disable_event_reporting): New
4960 * linux-nat.c (linux_child_follow_fork): Do a single step before
4963 2014-06-07 Keith Seitz <keiths@redhat.com>
4967 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4968 from symbol_matches_domain in symtab.c. All local callers
4969 of symbol_matches_domain updated.
4970 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4971 search STRUCT_DOMAIN.
4972 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4973 independently. standard_lookup will do that automatically.
4974 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4975 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4976 (cp_lookup_symbol_in_namespace): Likewise.
4977 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4978 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4979 may return a STRUCT_DOMAIN match.
4980 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4981 * cp-support.c: Include language.h.
4982 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4984 * psymtab.c (match_partial_symbol): Compare the requested
4985 domain with the symbol's domain directly.
4986 (lookup_partial_symbol): Likewise.
4987 * symtab.c (lookup_symbol_in_language): Explain when/why
4988 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4989 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4990 appropriate languages.
4991 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4992 and moved to ada-lang.c
4993 (lookup_block_symbol): Explain that this function only returns
4994 symbol matching the requested DOMAIN.
4995 Compare the requested domain with the symbol's domain directly.
4996 (iterate_over_symbols): Compare the requested domain with the
4997 symbol's domain directly.
4998 * symtab.h (symbol_matches_domain): Remove.
5000 2014-06-06 Doug Evans <xdje42@gmail.com>
5002 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5003 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5004 (gdbscm_guile_version_is_at_least): Declare.
5005 (gdbscm_scm_string_to_int): Declare.
5006 * guile/guile.c (gdbscm_guile_major_version): New global.
5007 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5008 (guile_datadir): New static global.
5009 (gdbscm_guile_data_directory): New function.
5010 (initialize_scheme_side): Update.
5011 (misc_guile_functions): Add guile-data-directory.
5012 (initialize_gdb_module): Fetch guile version number.
5013 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5014 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5015 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5016 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5018 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5019 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5020 * guile/scm-value.c (gdbscm_value_to_string): Only call
5021 scm_port_conversion_strategy if Guile version >= 2.0.6.
5023 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5025 * main.c (print_gdb_help): Add -q and --silent.
5027 2014-06-06 Gary Benson <gbenson@redhat.com>
5029 * common/signals.c: Remove preprocessor conditionals for
5030 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5031 SIGSEGV and SIGTERM.
5032 * proc-events.c: Likewise.
5034 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5036 * symfile.c (symfile_free_objfile): Remove restriction to
5038 * symfile-mem.c (symbol_file_add_from_memory): Call
5039 add_target_sections_of_objfile.
5041 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5043 * guile/scm-value.c (gdbscm_history_append_x): Use
5044 'vlscm_get_value_smob_arg_unsafe' instead of
5045 'vlscm_scm_to_value'.
5047 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5050 * utils.c (printchar): Don't escape at all if quoter is NUL.
5051 Update function documentation to clarify effect of parameter
5053 * remote.c (escape_buffer): Pass '\\' as the quoter to
5054 fputstrn_unfiltered.
5055 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5056 generate the output.
5057 (mi_solib_unloaded): Same.
5059 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5061 * development.sh: Delete.
5062 * Makefile.in (config.status): Adjust dependency on development.sh.
5063 * configure.ac: Adjust development.sh source call.
5064 * configure: Regenerate.
5066 2014-06-04 Doug Evans <xdje42@gmail.com>
5068 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5069 is_scheme_bkpt, spec.
5070 (bpscm_make_breakpoint_smob): Initialize new members.
5071 (gdbscm_create_breakpoint_x): Split into two ...
5072 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5073 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5074 (scheme_function breakpoint_functions): Update.
5075 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5076 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5077 register-breakpoint!.
5079 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5082 * mem-break.c (z_type_supported): Return zero if
5083 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5085 2014-06-04 Tom Tromey <tromey@redhat.com>
5087 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5088 value_from_contents_and_address_unresolved.
5089 (ada_template_to_fixed_record_type_1): Likewise.
5090 (ada_which_variant_applies): Likewise.
5091 * value.h (value_from_contents_and_address_unresolved): Declare.
5092 * value.c (value_from_contents_and_address_unresolved): New
5094 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5095 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5096 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5098 2014-06-04 Tom Tromey <tromey@redhat.com>
5100 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5102 2014-06-04 Tom Tromey <tromey@redhat.com>
5104 * procfs.c (procfs_attach): Make "args" const.
5105 * windows-nat.c (windows_attach): Make "args" const.
5106 * nto-procfs.c (procfs_attach): Make "args" const.
5107 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5108 * go32-nat.c (go32_attach): Make "args" const.
5109 * gnu-nat.c (gnu_attach): Make "args" const.
5110 * darwin-nat.c (darwin_attach): Make "args" const.
5111 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5112 * linux-nat.c (linux_nat_attach): Make "args" const.
5113 * remote.c (extended_remote_attach_1, extended_remote_attach):
5115 * target.h (struct target_ops) <to_attach>: Make "args" const.
5116 (find_default_attach): Likewise.
5117 * utils.c (parse_pid_to_attach): Make "args" const.
5118 * utils.h (parse_pid_to_attach): Update.
5120 2014-06-04 Tom Tromey <tromey@redhat.com>
5122 * target-delegates.c: Rebuild.
5123 * target.c (default_thread_address_space): New function.
5124 (target_thread_address_space): Simplify.
5125 * target.h (struct target_ops) <to_thread_address_space>: Add
5126 TARGET_DEFAULT_FUNC.
5128 2014-06-04 Doug Evans <xdje42@gmail.com>
5130 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5132 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5134 * record-btrace.c: Include event-loop.h and inf-loop.h.
5135 (record_btrace_resume_exec_dir)
5136 (record_btrace_async_inferior_event_handler)
5137 (record_btrace_handle_async_inferior_event): New.
5138 (record_btrace_open): Create async event handler.
5139 (record_btrace_close): Delete async event handler.
5140 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5141 Mark async event handler.
5142 (record_btrace_execution_direction): New.
5143 (init_record_btrace_ops): Initialize to_execution_direction.
5145 2014-06-03 Doug Evans <xdje42@gmail.com>
5147 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5148 (gdbscm_make_parameter): Ditto.
5150 2014-06-03 Doug Evans <dje@google.com>
5152 * exec.c (exec_close_1): Call clear_section_table instead of
5153 resize_section_table.
5154 (clear_section_table): New function.
5155 (resize_section_table): Make static. Rename arg num_added to
5157 * exec.h (clear_section_table): Declare.
5158 (resize_section_table): Delete.
5159 * progspace.c (release_program_space): Call clear_section_table
5160 instead of resize_section_table.
5162 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5164 * NEWS (Python Scripting): Add entry about the new xmethods
5167 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5169 * python/py-xmethods.c: New file.
5170 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5171 (objfpy_dealloc): XDECREF on the new xmethods field.
5172 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5174 (objfpy_get_xmethods): New function.
5175 (objfile_getset): New entry 'xmethods'.
5176 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5177 (pspy_dealloc): XDECREF on the new xmethods field.
5178 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5180 (pspy_get_xmethods): New function.
5181 (pspace_getset): New entry 'xmethods'.
5182 * python/python-internal.h: Add declarations for new functions.
5183 * python/python.c (_initialize_python): Invoke
5184 gdbpy_initialize_xmethods.
5185 * python/lib/gdb/__init__.py (xmethods): New
5187 * python/lib/gdb/xmethod.py: New file.
5188 * python/lib/gdb/command/xmethods.py: New file.
5190 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5192 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5193 best match method returned by find_overload_match is an xmethod.
5194 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5195 the best matching operator returned by find_overload_match is an
5197 * valops.c: #include "extension.h".
5198 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5199 Return void. The list of matching source methods is returned in
5200 "fn_list" and a vector of matching debug method workers is
5201 returned in "xm_worker_vec". Update all callers.
5202 (value_find_oload_method_list): Likewise.
5203 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5204 non-NULL, then the index of the best matching method in this
5205 vector is returned. Update all callers.
5206 (find_overload_match): Include xmethods while performing overload
5209 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5211 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5212 * extension-priv.h (struct extension_language_ops): Add the
5214 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5215 get_matching_xmethod_workers, get_xmethod_argtypes,
5216 invoke_xmethod, free_xmethod_worker,
5217 free_xmethod_worker_vec): New functions.
5218 * extension.h: #include "common/vec.h".
5219 New function declarations.
5220 (struct xmethod_worker): New struct.
5221 (VEC (xmethod_worker_ptr)): New vector type.
5222 (xmethod_worker_ptr): New typedef.
5223 (xmethod_worker_vec): Likewise.
5224 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5226 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5227 (struct builtin_type): New field "xmethod".
5228 * valarith.c (value_ptradd): Assert that the value argument is not
5230 * valops.c (value_must_coerce_to_target): Return 0 for
5231 lval_xcallable values.
5232 * value.c (struct value): New field XM_WORKER in the field
5234 (value_address, value_raw_address): Return 0 for lval_xcallable
5236 (set_value_address): Assert that the value is not an
5238 (value_free): Free the associated xmethod worker when freeing
5239 lval_xcallable values.
5240 (set_value_component_location): Assert that the WHOLE value is not
5242 (value_of_xmethod, call_xmethod): New functions.
5243 * value.h: Declare "struct xmethod_worker".
5244 Declare new functions value_of_xmethod, call_xmethod.
5246 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5247 Pedro Alves <palves@redhat.com>
5249 PR breakpoints/17000
5250 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5251 New function, extracted from software_breakpoint_inserted_here_p.
5252 (software_breakpoint_inserted_here_p): Replace factored out code
5253 by call to find_non_raw_software_breakpoint_inserted_here.
5254 (bp_target_info_copy_insertion_state): New function.
5255 (bkpt_insert_location): Handle the case of a single-step
5256 breakpoint already inserted at the same address.
5257 (bkpt_remove_location): Handle the case of a single-step
5258 breakpoint still inserted at the same address.
5259 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5260 breakpoint already inserted at the same address.
5261 (deprecated_remove_raw_breakpoint): Handle the case of a
5262 non-raw breakpoint still inserted at the same address.
5263 (find_single_step_breakpoint): New function, extracted from
5264 single_step_breakpoint_inserted_here_p.
5265 (find_single_step_breakpoint): New function,
5266 factored out from single_step_breakpoint_inserted_here_p.
5267 (single_step_breakpoint_inserted_here_p): Reimplement.
5269 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5271 Pushed by Joel Brobecker <brobecker@adacore.com>
5272 * source.c (show_substitute_path_command): Fix display of matching
5275 2014-06-03 Gary Benson <gbenson@redhat.com>
5277 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5279 2014-06-02 Doug Evans <xdje42@gmail.com>
5281 Add parameter support for Guile.
5282 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5283 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5284 (scm-param.o): New rule.
5285 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5286 (gdbscm_misc_error): Declare.
5287 (gdbscm_canonicalize_command_name): Declare.
5288 (gdbscm_scm_to_host_string): Declare.
5289 (gdbscm_scm_from_host_string): Declare.
5290 (gdbscm_initialize_parameters): Declare.
5291 * guile/guile.c (initialize_gdb_module): Call
5292 gdbscm_initialize_parameters.
5293 * guile/lib/gdb.scm: Export parameter symbols.
5294 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5295 cmdscm_canonicalize_name and made public. All callers updated.
5296 * guile/scm-exception.c (gdbscm_misc_error): New function.
5297 * guile/scm-param.c: New file.
5298 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5299 (gdbscm_scm_to_host_string): New function.
5300 (gdbscm_scm_from_host_string): New function.
5301 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5303 2014-06-02 Doug Evans <xdje42@gmail.com>
5305 Add command support for Guile.
5306 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5307 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5308 (scm-cmd.o): New rule.
5309 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5310 (gdbscm_user_error_p): Declare.
5311 (gdbscm_parse_command_name): Declare.
5312 (gdbscm_valid_command_class_p): Declare.
5313 (gdbscm_initialize_commands): Declare.
5314 * guile/guile.c (initialize_gdb_module): Call
5315 gdbscm_initialize_commands.
5316 * guile/lib/gdb.scm: Export command symbols.
5317 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5318 (throw-user-error): New function.
5319 * guile/scm-cmd.c: New file.
5320 * guile/scm-exception.c (user_error_symbol): New static global.
5321 (gdbscm_user_error_p): New function.
5322 (gdbscm_initialize_exceptions): Set user_error_symbol.
5323 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5325 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5327 * top.c (command_loop): Handle comments here...
5328 (command_line_input): ... not here.
5330 2014-06-02 Doug Evans <xdje42@gmail.com>
5332 Add progspace support for Guile.
5333 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5334 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5335 (scm-progspace.o): New rule.
5336 * guile/guile-internal.h (pspace_smob): New typedef.
5337 (psscm_pspace_smob_pretty_printers): Declare.
5338 (psscm_pspace_smob_from_pspace): Declare.
5339 (psscm_scm_from_pspace): Declare.
5340 * guile/guile.c (initialize_gdb_module): Call
5341 gdbscm_initialize_pspaces.
5342 * guile/lib/gdb.scm: Export progspace symbols.
5343 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5345 (append-pretty-printer!): Ditto.
5346 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5348 * guile/scm-progspace.c: New file.
5350 2014-06-03 Alan Modra <amodra@gmail.com>
5352 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5353 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5355 2014-06-02 Doug Evans <dje@google.com>
5357 Add support for skeletonless type units.
5358 * dwarf2read.c (struct dwarf2_per_objfile): New member
5359 n_allocated_type_units.
5360 (struct dwarf2_per_objfile) <tu_stats>: New member
5361 nr_all_type_units_reallocs.
5362 (create_signatured_type_table_from_index): Initialize
5363 n_allocated_type_units
5364 (create_all_type_units): Ditto.
5365 (add_type_unit): Move up in file. New arg slot.
5366 All callers updated. Increase space for all_type_units more
5368 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5369 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5370 (lookup_dwp_signatured_type): Ditto.
5371 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5372 All callers updated.
5373 (build_type_psymtabs_1): Leave type_unit_groups as
5374 NULL if no TUs present.
5375 (print_tu_stats): New function.
5376 (process_skeletonless_type_unit): New function.
5377 (process_dwo_file_for_skeletonless_type_units): New
5379 (process_skeletonless_type_units): New function.
5380 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5381 Call print tu_stats if debugging enabled.
5383 2014-06-02 Pedro Alves <palves@redhat.com>
5385 * breakpoint.c (build_target_command_list): Don't build a command
5386 list if we have any duplicate location that isn't a dprintf.
5388 2014-06-02 Pedro Alves <palves@redhat.com>
5390 * breakpoint.c (dprintf_breakpoint_hit): New function.
5391 (initialize_breakpoint_ops): Install it as dprintf's
5392 breakpoint_hit method.
5394 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5396 * source.c (substitute_path_rule_matches): Simplify using
5397 filename_ncmp instead of FILENAME_CMP.
5399 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5401 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5403 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5405 * configure.ac: When Guile is available, check for the
5406 availability of 'scm_new_smob'.
5407 * configure, config.h.in: Regenerate.
5408 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5411 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5413 * frame.c (struct frame_info): Add stop_string field.
5414 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5415 (get_prev_frame_always): Old content moved into
5416 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5417 TRY_CATCH, handle MEMORY_ERROR exceptions.
5418 (frame_stop_reason_string): New function definition.
5419 * frame.h (unwind_stop_reason_to_string): Extend comment to
5420 mention frame_stop_reason_string.
5421 (frame_stop_reason_string): New function declaration.
5422 * stack.c (frame_info): Switch to frame_stop_reason_string.
5423 (backtrace_command_1): Switch to frame_stop_reason_string.
5424 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5425 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5426 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5428 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5430 * frame.c (frame_stop_reason_string): Rename to ...
5431 (unwind_stop_reason_to_string): this.
5432 * frame.h (frame_stop_reason_string): Rename to ...
5433 (unwind_stop_reason_to_string): this.
5434 * stack.c (frame_info): Update call to frame_stop_reason_string.
5435 (backtrace_command_1): Likewise.
5436 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5437 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5439 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5441 * frame.c (remove_prev_frame): New function.
5442 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5445 2014-05-29 Pedro Alves <palves@redhat.com>
5447 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5448 and make it const. When a single-step decays to a continue,
5449 clear 'step', not 'hw_step'. Pass whether the caller wanted
5450 to step to user_visible_resume_ptid, not what we ask the
5453 2014-05-29 Pedro Alves <palves@redhat.com>
5455 * infrun.c (process_event_stop_test, handle_step_into_function)
5456 (handle_step_into_function_backward): Adjust.
5457 Don't set the even thread's stop_step and call stop_waiting before
5458 calling end_stepping_range. Instead do that ...
5459 (end_stepping_range): ... here. Take an ecs pointer parameter.
5461 2014-05-29 Pedro Alves <palves@redhat.com>
5463 * infrun.c (stop_stepping): Rename to ...
5464 (stop_waiting): ... this.
5465 (proceed): Update comment.
5466 (process_event_stop_test, handle_inferior_event)
5467 (handle_signal_stop, handle_step_into_function)
5468 (handle_step_into_function_backward): Update.
5470 2014-05-29 Pedro Alves <palves@redhat.com>
5472 * infcall.c (run_inferior_call): Don't check whether the current
5473 thread is running after the proceed call.
5475 2014-05-29 Pedro Alves <palves@redhat.com>
5476 Tom Tromey <tromey@redhat.com>
5478 * NEWS: Mention "maint set target-async", "set mi-async", and that
5479 background execution commands are now always available.
5480 * target.h (target_async_permitted): Update comment.
5481 * target.c (target_async_permitted, target_async_permitted_1):
5483 (set_target_async_command): Rename to ...
5484 (maint_set_target_async_command): ... this.
5485 (show_target_async_command): Rename to ...
5486 (maint_show_target_async_command): ... this.
5487 (_initialize_target): Adjust.
5488 * infcmd.c (prepare_execution_command): Make extern.
5489 * inferior.h (prepare_execution_command): Declare.
5490 * infrun.c (set_observer_mode): Leave target async alone.
5491 * mi/mi-interp.c (mi_interpreter_init): Install
5492 mi_on_sync_execution_done as sync_execution_done observer.
5493 (mi_on_sync_execution_done): New function.
5494 (mi_execute_command_input_handler): Don't print the prompt if we
5495 just started a synchronous command with an async target.
5496 (mi_on_resume): Check sync_execution before printing prompt.
5497 * mi/mi-main.h (mi_async_p): Declare.
5498 * mi/mi-main.c: Include gdbcmd.h.
5499 (mi_async_p): New function.
5500 (mi_async, mi_async_1): New globals.
5501 (set_mi_async_command, show_mi_async_command, mi_async): New
5503 (exec_continue): Call prepare_execution_command.
5504 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5505 (mi_execute_async_cli_command): Use mi_async_p.
5506 (_initialize_mi_main): Install "set mi-async". Make
5507 "target-async" a deprecated alias.
5509 2014-05-29 Pedro Alves <palves@redhat.com>
5511 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5512 (_initialize_cli_interp): Adjust.
5513 * event-loop.c: Include "observer.h".
5514 (start_event_loop): Notify 'command_error' observers instead of
5515 calling display_gdb_prompt. Remove FIXME comment.
5516 * event-top.c (display_gdb_prompt): Remove call into the
5518 * inf-loop.c: Include "observer.h".
5519 (inferior_event_handler): Notify 'command_error' observers instead
5520 of calling display_gdb_prompt.
5521 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5522 observers instead of calling display_gdb_prompt.
5523 * interps.c (interp_set): Don't call display_gdb_prompt.
5524 (current_interp_display_prompt_p): Delete.
5525 * interps.h (interp_prompt_p): Delete declaration.
5526 (interp_prompt_p_ftype): Delete.
5527 (struct interp_procs) <prompt_proc_p>: Delete field.
5528 (current_interp_display_prompt_p): Delete declaration.
5529 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5530 (_initialize_mi_interp): Adjust.
5531 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5532 'command_error' observers.
5533 (tui_on_sync_execution_done, tui_on_command_error): New
5535 (tui_display_prompt_p): Delete.
5536 (_initialize_tui_interp): Adjust.
5538 2014-05-29 Pedro Alves <palves@redhat.com>
5541 * cli/cli-interp.c: Include infrun.h and observer.h.
5542 (cli_uiout, cli_interp): New globals.
5543 (cli_on_signal_received, cli_on_end_stepping_range)
5544 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5546 (cli_interpreter_init): Install them as 'end_stepping_range',
5547 'signal_received' 'signal_exited', 'exited' and 'no_history'
5549 (_initialize_cli_interp): Remove cli_interp local.
5550 * infrun.c (handle_inferior_event): Call the several stop reason
5551 observers instead of printing the stop reason directly.
5552 (end_stepping_range): New function.
5553 (print_end_stepping_range_reason, print_signal_exited_reason)
5554 (print_exited_reason, print_signal_received_reason)
5555 (print_no_history_reason): Make static, and add an uiout
5556 parameter. Print to that instead of to CURRENT_UIOUT.
5557 * infrun.h (print_end_stepping_range_reason)
5558 (print_signal_exited_reason, print_exited_reason)
5559 (print_signal_received_reason print_no_history_reason): New
5561 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5563 <cli_uiout>: New field.
5564 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5565 uiout for CLI output. Install 'signal_received',
5566 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5568 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5569 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5570 (mi_on_no_history): New functions.
5571 (ui_out_free_cleanup): Delete function.
5572 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5573 instead use the one already stored in the MI interpreter data.
5574 (mi_ui_out): Adjust.
5575 * tui/tui-interp.c: Include infrun.h and observer.h.
5576 (tui_interp): New global.
5577 (tui_on_signal_received, tui_on_end_stepping_range)
5578 (tui_on_signal_exited, tui_on_exited)
5579 (tui_on_no_history): New functions.
5580 (tui_init): Install them as 'end_stepping_range',
5581 'signal_received' 'signal_exited', 'exited' and 'no_history'
5583 (_initialize_tui_interp): Delete tui_interp local.
5585 2014-05-29 Pedro Alves <palves@redhat.com>
5588 * linux-nat.c (linux_nat_resume_callback): Rename the second
5589 parameter to 'except'. Skip LP if it points to EXCEPT.
5590 (linux_nat_resume): Don't mark the event lwp as not stopped
5591 before resuming sibling lwps. Instead ask
5592 linux_nat_resume_callback to skip the event lwp. Mark it as not
5593 stopped after actually resuming it.
5594 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5596 (wait_lwp): Mark the lwp as stopped here.
5597 (stop_wait_callback): Mark the lwp as not stopped right after
5598 resuming it. Don't mark lwps as stopped here.
5599 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5600 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5602 2014-05-29 Pedro Alves <palves@redhat.com>
5605 * infrun.c (resume): Determine how much to resume depending on
5606 whether the caller wanted a step, not whether we can hardware step
5607 the target. Mark all threads that we intend to run as running,
5608 unless we're calling an inferior function.
5609 (normal_stop): If the thread is running an infcall, don't finish
5611 * target.c (target_resume): Don't mark threads as running here.
5613 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5615 * serial.c (_initialize_serial): Remove support for
5616 the "set remotebaud" and "show remotebaud" commands.
5617 * NEWS: Add entry documenting the removal of that command.
5619 2014-05-28 Yao Qi <yao@codesourcery.com>
5621 * charset.c: Fix typo in comments.
5623 2014-05-27 Gary Benson <gbenson@redhat.com>
5625 * utils.c (internal_vproblem): Prompt for a bug report.
5627 2014-05-26 Andy Wingo <wingo@igalia.com>
5629 * guile/scm-arch.c (arscm_mark_arch_smob):
5630 * guile/scm-block.c (bkscm_mark_block_smob)
5631 (bkscm_mark_block_syms_progress_smob):
5632 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5633 * guile/scm-exception.c (exscm_mark_exception_smob):
5634 * guile/scm-frame.c (frscm_mark_frame_smob):
5635 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5636 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5637 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5638 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5639 (ppscm_mark_pretty_printer_worker_smob):
5640 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5641 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5642 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5643 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5645 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5648 2014-05-26 Andy Wingo <wingo@igalia.com>
5649 Doug Evans <xdje42@gmail.com>
5651 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5652 empty_base_class. All uses updated.
5653 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5654 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5656 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5657 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5658 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5659 (gdbscm_gsmob_has_property_p, add_property_name)
5660 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5661 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5662 (gdb-object-has-property?, gdb-object-properties): Remove.
5663 (gdb-object-kind): Renamed from gsmob-kind.
5665 2014-05-26 Andy Wingo <wingo@igalia.com>
5667 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5668 * configure: Regenerate.
5670 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5672 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5674 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5676 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5677 (replay_memory_access_read_only, replay_memory_access_read_write)
5678 (replay_memory_access_types, replay_memory_access)
5679 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5680 (cmd_set_record_btrace, cmd_show_record_btrace)
5681 (cmd_show_replay_memory_access): New.
5682 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5683 (record_btrace_remove_breakpoint): Replace
5684 record_btrace_allow_memory_access with replay_memory_access.
5685 (_initialize_record_btrace): Add commands.
5686 * NEWS: Announce it.
5688 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5690 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5692 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5694 * MAINTAINERS (Write After Approval): Move self back from
5697 2014-05-22 Pedro Alves <palves@redhat.com>
5699 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5700 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5701 (disable_randomization, enum exec_direction_kind)
5702 (execution_direction, stop_registers, start_remote)
5703 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5704 (wait_for_inferior, normal_stop, get_last_target_status)
5705 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5706 (insert_step_resume_breakpoint_at_sal)
5707 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5708 (set_step_info, print_stop_event, signal_stop_state)
5709 (signal_print_state, signal_pass_state, signal_stop_update)
5710 (signal_print_update, signal_pass_update)
5711 (update_signals_program_target, clear_exit_convenience_vars)
5712 (displaced_step_dump_bytes, update_observer_mode)
5713 (signal_catch_update, gdb_signal_from_command): Move
5715 * infrun.h: ... to this new file.
5716 * amd64-tdep.c: Include infrun.h.
5717 * annotate.c: Include infrun.h.
5718 * arch-utils.c: Include infrun.h.
5719 * arm-linux-tdep.c: Include infrun.h.
5720 * arm-tdep.c: Include infrun.h.
5721 * break-catch-sig.c: Include infrun.h.
5722 * breakpoint.c: Include infrun.h.
5723 * common/agent.c: Include infrun.h instead of inferior.h.
5724 * corelow.c: Include infrun.h.
5725 * event-top.c: Include infrun.h.
5726 * go32-nat.c: Include infrun.h.
5727 * i386-tdep.c: Include infrun.h.
5728 * inf-loop.c: Include infrun.h.
5729 * infcall.c: Include infrun.h.
5730 * infcmd.c: Include infrun.h.
5731 * infrun.c: Include infrun.h.
5732 * linux-fork.c: Include infrun.h.
5733 * linux-nat.c: Include infrun.h.
5734 * linux-thread-db.c: Include infrun.h.
5735 * monitor.c: Include infrun.h.
5736 * nto-tdep.c: Include infrun.h.
5737 * procfs.c: Include infrun.h.
5738 * record-btrace.c: Include infrun.h.
5739 * record-full.c: Include infrun.h.
5740 * remote-m32r-sdi.c: Include infrun.h.
5741 * remote-mips.c: Include infrun.h.
5742 * remote-notif.c: Include infrun.h.
5743 * remote-sim.c: Include infrun.h.
5744 * remote.c: Include infrun.h.
5745 * reverse.c: Include infrun.h.
5746 * rs6000-tdep.c: Include infrun.h.
5747 * s390-linux-tdep.c: Include infrun.h.
5748 * solib-irix.c: Include infrun.h.
5749 * solib-osf.c: Include infrun.h.
5750 * solib-svr4.c: Include infrun.h.
5751 * target.c: Include infrun.h.
5752 * top.c: Include infrun.h.
5753 * windows-nat.c: Include infrun.h.
5754 * mi/mi-interp.c: Include infrun.h.
5755 * mi/mi-main.c: Include infrun.h.
5756 * python/py-threadevent.c: Include infrun.h.
5758 2014-05-22 Pedro Alves <palves@redhat.com>
5760 * infrun.c (handle_inferior_event): Store the exit code for
5761 --return-child-result here, instead of ...
5762 (print_exited_reason): ... here.
5764 2014-05-21 Pedro Alves <palves@redhat.com>
5767 * gdbthread.h (struct thread_control_state): New field
5769 * infrun.c (follow_fork): Copy the new thread control field to the
5771 (clear_proceed_status_thread): Clear the new thread control field.
5772 (proceed): Set the new thread control field.
5773 * interps.h (command_interp): Declare.
5774 * interps.c (command_interpreter): New global.
5775 (command_interp): New function.
5776 (interp_exec): Set `command_interpreter' while here.
5777 * cli-out.c (cli_uiout_dtor): New function.
5778 (cli_ui_out_impl): Install it.
5779 * mi/mi-interp.c: Include cli-out.h.
5780 (mi_cmd_interpreter_exec): Add comment.
5781 (restore_current_uiout_cleanup): New function.
5782 (ui_out_free_cleanup): New function.
5783 (mi_on_normal_stop): If finishing an execution command started by
5784 a CLI command, or any kind of breakpoint-like event triggered,
5785 print the stop event to the output (CLI) stream.
5786 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5788 2014-05-21 Pedro Alves <palves@redhat.com>
5790 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5791 current source line having changed.
5792 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5793 * infrun.c (normal_stop): Adjust call to
5794 set_current_sal_from_frame.
5795 * source.c (clear_lines_listed_range): New function.
5796 (set_current_source_symtab_and_line, identify_source_line): Clear
5797 the lines listed range.
5798 (line_info): Handle the first "info line" after the current source
5799 line having changed.
5800 * stack.c (print_stack_frame): Remove center handling.
5801 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5804 2014-05-21 Pedro Alves <palves@redhat.com>
5806 * inf-child.c (inf_child_mourn_inferior): New function.
5807 * inf-child.h (inf_child_mourn_inferior): New declaration.
5808 * darwin-nat.c (darwin_mourn_inferior): Use
5809 inf_child_mourn_inferior.
5810 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5811 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5812 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5813 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5814 * windows-nat.c (windows_mourn_inferior): Likewise.
5816 2014-05-21 Doug Evans <xdje42@gmail.com>
5818 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5820 2014-05-21 Doug Evans <xdje42@gmail.com>
5822 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5823 (gdbscm_out_of_range_error): Ditto.
5824 (gdbscm_memory_error): Ditto.
5825 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5826 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5827 (gdbscm_out_of_range_error): Update.
5828 (gdbscm_memory_error): Update.
5829 (gdbscm_scm_to_target_string_unsafe): Delete.
5831 2014-05-21 Pedro Alves <palves@redhat.com>
5833 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5835 (inf_child_open_target): New function.
5836 (inf_child_open): Use inf_child_open_target to push the target
5837 instead of erroring out.
5838 (inf_child_disconnect, inf_child_close)
5839 (inf_child_maybe_unpush_target): New functions.
5840 (inf_child_target): Install inf_child_disconnect and
5841 inf_child_close. Store a pointer to the returned object.
5842 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5844 * target.c (auto_connect_native_target): New global.
5845 (show_default_run_target): New function.
5846 (find_default_run_target): Return NULL if automatically connecting
5847 to the native target is disabled.
5848 (_initialize_target): Install set/show auto-connect-native-target.
5849 * NEWS: Mention "set auto-connect-native-target", and "target
5851 * linux-nat.c (super_close): New global.
5852 (linux_nat_close): Call super_close.
5853 (linux_nat_add_target): Store a pointer to the base class's
5855 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5856 inf_child_maybe_unpush.
5857 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5859 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5860 the inferior. Use inf_child_maybe_unpush_target.
5861 (inf_ttrace_attach): Don't push the target if it is already
5863 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5864 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5865 after mourning the inferior. Use inf_child_maybe_unpush_target.
5866 (darwin_attach_pid): Don't push the target if it is already
5868 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5869 mourning the inferior. Use inf_child_maybe_unpush_target.
5870 (gnu_detach): Use inf_child_maybe_unpush_target.
5871 * go32-nat.c (go32_create_inferior): Don't push the target if it
5873 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5874 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5875 (procfs_open): Rename to ...
5876 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5877 comments. Can target_preopen before changing node. Call
5878 inf_child_open_target to push the target explicitly.
5879 (procfs_attach): Don't push the target if it is already pushed.
5880 (procfs_detach): Use inf_child_maybe_unpush_target.
5881 (procfs_create_inferior): Don't push the target if it is already
5883 (nto_native_ops): New global.
5884 (procfs_open): Reimplement.
5885 (procfs_native_open): New function.
5886 (init_procfs_targets): Install procfs_native_open as to_open of
5887 "target native". Store a pointer to the "native" target in
5889 * procfs.c (procfs_attach): Don't push the target if it is already
5891 (procfs_detach): Use inf_child_maybe_unpush_target.
5892 (procfs_mourn_inferior): Only unpush the target after mourning the
5893 inferior. Use inf_child_maybe_unpush_target.
5894 (procfs_init_inferior): Don't push the target if it is already
5896 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5897 if it is already pushed.
5899 2014-05-21 Pedro Alves <palves@redhat.com>
5901 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5902 and "procfs" targets are now called "native" instead.
5904 2014-05-21 Pedro Alves <palves@redhat.com>
5906 * go32-nat.c (go32_open): Delete.
5907 (go32_target): Don't override the to_open method.
5909 2014-05-21 Pedro Alves <palves@redhat.com>
5911 * nto-procfs.c (procfs_can_run): New function.
5912 (nto_procfs_ops): New global.
5913 (init_procfs_targets): New, based on procfs_target. Install
5914 "target native" in addition to "target procfs".
5915 (_initialize_procfs): Call init_procfs_targets instead of adding
5918 2014-05-21 Pedro Alves <palves@redhat.com>
5920 * windows-nat.c (windows_target): Don't override to_shortname,
5921 to_longname or to_doc.
5923 2014-05-21 Pedro Alves <palves@redhat.com>
5925 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5928 2014-05-21 Pedro Alves <palves@redhat.com>
5930 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5931 to_shortname, to_longname or to_doc.
5933 2014-05-21 Pedro Alves <palves@redhat.com>
5935 * go32-nat.c (go32_target): Don't override to_shortname,
5936 to_longname or to_doc.
5938 2014-05-21 Pedro Alves <palves@redhat.com>
5940 * inf-child.c (inf_child_open): Remove mention of "child".
5941 (inf_child_target): Rename target to "native" instead of "child".
5943 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5945 * Makefile.in (SFILES): Delete "regset.c".
5946 (COMMON_OBS): Delete "regset.o".
5948 * regset.h (regset_alloc): Delete prototype.
5950 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5952 * sparc-linux-tdep.c (sparc32_linux_gregset)
5953 (sparc32_linux_fpregset): New static regset structures.
5954 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5955 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5957 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5958 (sparc64_linux_fpregset): New static regset structures.
5959 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5960 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5961 New static regset structures.
5962 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5963 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5964 New static regset structures.
5965 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5966 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5967 New static regset structures.
5968 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5969 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5970 New static regset structures.
5971 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5973 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5975 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5976 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5977 register maps ("regmaps") from "*regset" to "*regmap". Do this
5978 for all regmap types and variables.
5979 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5980 (sparc32_linux_supply_core_gregset)
5981 (sparc32_linux_collect_core_gregset)
5982 (sparc32_linux_supply_core_fpregset)
5983 (sparc32_linux_collect_core_fpregset): Likewise.
5984 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5985 (sparc_gregmap, sparc_fpregmap): ... these.
5986 (sparc_supply_gregset, sparc_collect_gregset)
5987 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5988 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5989 (_initialize_sparc_nat): Rename regmaps.
5990 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5991 (sparc_gregmap, sparc_fpregmap): ... these.
5992 (sparc_supply_gregset, sparc_collect_gregset)
5993 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5994 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5996 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5997 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5999 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6001 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6002 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6003 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6005 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6006 (sparc32_bsd_fpregset): Rename to...
6007 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6008 (sparc32_bsd_fpregmap): ... these.
6009 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6010 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6011 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6012 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6013 (struct sparc_gregmap, struct sparc_fpregmap)
6014 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6015 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6016 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6017 (sparc32_supply_regset, sparc32_collect_gregset)
6018 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6020 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6021 (sparc64_linux_ptrace_gregmap): ... this.
6022 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6023 (_initialize_sparc64_linux_nat): Rename regmaps.
6024 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6025 (sparc64_linux_core_gregmap): ... this.
6026 (sparc64_linux_supply_core_gregset)
6027 (sparc64_linux_collect_core_gregset)
6028 (sparc64_linux_supply_core_fpregset)
6029 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6030 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6031 (sparc64_sol2_fpregset): Rename to...
6032 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6033 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6034 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6036 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6037 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6038 (sparc64_bsd_fpregset): Rename to...
6039 (struct sparc_gregmap, sparc64_sol2_gregmap)
6040 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6041 (sparc64_bsd_fpregmap): ... these.
6042 (sparc64_supply_gregset, sparc64_collect_gregset)
6043 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6045 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6046 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6047 (sparc64fbsd_gregmap): ... this.
6048 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6049 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6051 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6052 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6053 (sparc64nbsd_collect_fpregset): Likewise.
6054 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6055 (sparc64nbsd_gregmap): ... this.
6056 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6058 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6059 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6060 (sparc64obsd_gregmap): ... this.
6061 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6063 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6064 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6065 (sparc32nbsd_gregmap): ... this.
6066 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6069 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6071 * score-tdep.c (score7_linux_gregset): New static regset
6073 (score7_linux_regset_from_core_section): Remove dynamic regset
6075 (score_gdbarch_init): Drop allocation of tdep structure.
6076 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6078 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6080 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6082 (am33_regset_from_core_section): Remove dynamic regset
6085 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6087 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6088 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6090 (mips_linux_regset_from_core_section): Remove dynamic regset
6092 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6093 'gregset64', 'fpregset', and 'fpregset64'.
6094 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6095 deleted tdep fields.
6097 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6099 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6101 (amd64_regset_from_core_section): Remove dynamic regset
6103 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6105 (amd64obsd_regset_from_core_section): Remove dynamic regset
6107 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6109 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6110 x86-common regset supply function.
6111 * i386-tdep.c (i386_collect_gregset): Make static.
6112 (i386_gregset): New global regset structure.
6113 (i386_fpregset, i386_xstateregset): New static regset structures.
6114 (i386_regset_from_core_section): Remove dynamic regset
6116 (i386_gdbarch_init): Remove initialization of tdep fields
6117 'gregset', 'fpregset', and 'xstateregset'.
6118 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6119 'fpregset', and 'xstateregset'.
6120 (i386_collect_gregset): Remove prototype.
6121 (i386_gregset): New declaration.
6122 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6124 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6127 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6129 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6130 (arm_linux_vfpregset): New static regset structures.
6131 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6133 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6134 and 'vfpregset' fields.
6136 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6138 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6139 (aarch64_linux_fpregset): New static regset structures.
6140 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6141 of regset structures.
6142 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6145 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6147 * regset.h (struct regset): Remove gdbarch field.
6148 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6149 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6150 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6152 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6153 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6154 (ppc32_linux_vsxregset): Likewise.
6155 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6156 via the regcache instead of the regset.
6157 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6158 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6159 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6160 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6163 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6165 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6166 Constify structures.
6167 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6168 (alphanbsd_aout_gregset): Likewise.
6169 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6170 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6172 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6173 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6175 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6176 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6177 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6178 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6179 * m88k-tdep.c (m88k_gregset): Likewise.
6180 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6181 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6182 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6183 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6184 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6185 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6186 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6187 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6188 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6190 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6191 * sh-tdep.h (sh_corefile_gregset): Likewise.
6192 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6193 * vax-tdep.c (vax_gregset): Likewise.
6195 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6197 Fix TLS access for -static -pthread.
6198 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6199 (try_thread_db_load_1): Initialize it.
6200 (thread_db_get_thread_local_address): Call it if LM is zero.
6201 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6202 * target.h (struct target_ops) (to_get_thread_local_address): Add
6203 load_module_addr comment.
6205 2014-05-21 Pedro Alves <palves@redhat.com>
6207 * dcache.c (dcache_read_memory_partial): If reading the cache line
6208 fails, fallback to reading just the memory the caller wanted.
6210 2014-05-20 Doug Evans <dje@google.com>
6212 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6213 instead of get_current_arch.
6215 2014-05-20 Pedro Alves <palves@redhat.com>
6217 * NEWS: Mention that compare-sections now works with all targets.
6219 * remote.c (PACKET_qCRC): New enum value.
6220 (remote_verify_memory): Don't send qCRC if the target has no
6221 execution. Use packet_support/packet_ok. If the target doesn't
6222 support the qCRC packet, fallback to a deep memory copy.
6223 (compare_sections_command): Say "target image" instead of "remote
6225 (_initialize_remote): Add PACKET_qCRC to the list of config
6226 packets that have no associated command. Extend comment.
6227 * target.c (simple_verify_memory, default_verify_memory): New
6229 * target.h (struct target_ops) <to_verify_memory>: Default to
6230 default_verify_memory.
6231 (simple_verify_memory): New declaration.
6232 * target-delegates.c: Regenerate.
6234 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6236 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6238 2014-05-20 Hui Zhu <hui@codesourcery.com>
6239 Yao Qi <yao@codesourcery.com>
6242 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6243 and change address of sp and pc.
6245 2014-05-19 Tom Tromey <tromey@redhat.com>
6247 * gdbtypes.c (rank_function): Use XNEWVEC.
6248 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6250 2014-05-19 Doug Evans <dje@google.com>
6252 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6253 build_type_unit_groups and moved closer to only caller. Remove
6254 arguments. All references updated. Remove outdated .gdb_index
6256 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6257 build_type_psymtabs_1.
6259 2014-05-19 Doug Evans <dje@google.com>
6261 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6262 n_type_unit_groups, all_type_unit_groups. All uses removed.
6263 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6264 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6265 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6266 (add_type_unit_group_to_table): Delete.
6268 2014-05-19 Doug Evans <dje@google.com>
6270 * eval.c (evaluate_subexp_standard): Add some comments.
6272 2014-05-17 Doug Evans <xdje42@gmail.com>
6274 * progspace.c (remove_program_space): Delete, unused.
6275 * progspace.h (remove_program_space): Ditto.
6277 2014-05-17 Doug Evans <xdje42@gmail.com>
6279 * inferior.c (prune_inferiors): Fix comment.
6280 (remove_inferior_command): Call prune_program_spaces.
6282 2014-05-16 Doug Evans <dje@google.com>
6284 New command line option -D.
6286 * main.c (set_gdb_data_directory): New function.
6287 (captured_main): Recognize -D. Flag error for --data-directory "".
6288 Call set_gdb_data_directory.
6289 (print_gdb_help): Print --data-directory, -D.
6290 * main.h (set_gdb_data_directory): Declare.
6291 * top.c (staged_gdb_datadir): New static global.
6292 (set_gdb_datadir): Call set_gdb_data_directory
6293 (show_gdb_datadir): New function.
6294 (init_main): Update init of data-directory parameter.
6296 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6298 Import the "dirfd" gnulib module.
6299 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6300 * gnulib/aclocal.m4: Update.
6301 * gnulib/config.in: Update.
6302 * gnulib/configure: Update.
6303 * gnulib/import/Makefile.am: Update.
6304 * gnulib/import/Makefile.in: Update.
6305 * gnulib/import/dirfd.c: New.
6306 * gnulib/import/m4/dirfd.m4: New.
6307 * gnulib/import/m4/gnulib-cache.m4: Update.
6308 * gnulib/import/m4/gnulib-comp.m4: Update.
6310 2014-05-16 Pierre Muller <muller@sourceware.org>
6311 Yao Qi <yao@codesourcery.com>
6313 * valprint.c (print_wchar): Move the code on checking whether
6314 W is a printable wide char to the default branch of switch
6315 statement below. Call wchar_printable instead of gdb_iswprint.
6317 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6319 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6320 ldr.w and ldrd instructions.
6322 2014-05-15 Doug Evans <dje@google.com>
6324 * dwarf2read.c (read_structure_type): Delete outdated comments.
6326 2014-05-14 Tom Tromey <tromey@redhat.com>
6328 * macrocmd.c (print_macro_definition): Reindent.
6330 2014-05-13 Doug Evans <xdje42@gmail.com>
6332 * python/py-cmd.c (cmdpy_completer): Add comment.
6333 (completers): Make const.
6335 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6337 * infrun.c (resume): Remove should_resume (unused). Move up
6338 declaration of resume_ptid.
6340 2014-05-13 Tom Tromey <tromey@redhat.com>
6342 * language.h (unop_type_check): Remove.
6343 (binop_type_check): Don't declare.
6345 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6347 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6348 call to regcache_raw_collect.
6350 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6352 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6353 mi_console->quote as the quoting character.
6355 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6357 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6359 2014-04-29 Tom Tromey <tromey@redhat.com>
6361 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6362 "show debug varobj".
6364 2014-05-07 Kyle McMartin <kyle@redhat.com>
6366 Pushed by Joel Brobecker <brobecker@adacore.com>.
6367 * aarch64-tdep.c (aarch64_software_single_step): New function.
6368 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6369 with aarch64_software_single_step.
6371 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6375 2014-05-05 Keith Seitz <keiths@redhat.com>
6377 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6378 variable or history value is successfully parsed.
6380 2014-05-05 Yao Qi <yao@codesourcery.com>
6381 Pedro Alves <palves@redhat.com>
6383 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6384 address of blocks that intersects the requested range. Trim
6385 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6387 * ctf.c (ctf_xfer_partial): Likewise.
6389 2014-05-05 Yao Qi <yao@codesourcery.com>
6391 * printcmd.c (display_command): Remove the check to
6392 target_has_execution.
6394 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6396 * ppcobsd-nat.c: Include "obsd-nat.h".
6397 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6399 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6401 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6403 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6404 and 16-bit signed and unsigned arguments. Update comment.
6405 (stap_parse_probe_arguments): Extend code to handle such
6406 arguments. Use warning instead of complaint to notify about
6407 unrecognized bitness.
6409 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6411 PR breakpoints/16889
6412 * stap-probe.c (stap_parse_probe_arguments): Simplify
6413 check for non-prefixed probes (i.e., probes whose
6414 arguments do not start with "N@"). Always set the
6415 argument type to a sane value.
6417 2014-05-01 David Taylor <dtaylor@emc.com>
6419 * remote.c (compare_sections_command): Add -r option to compare
6420 all loadable read-only sections.
6422 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6424 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6425 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6427 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6428 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6429 Remove unused CORE_ADDR argument. Update all callers.
6431 2014-04-29 Pedro Alves <palves@redhat.com>
6433 * remote.c (struct packet_config) <detect>: Extend comment.
6434 (add_packet_config_cmd): Don't set the config's detect or support
6436 (init_all_packet_configs): Also initialize the config's 'detect'
6438 (reset_all_packet_configs_support): New function.
6439 (remote_open_1): Call reset_all_packet_configs_support instead of
6440 init_all_packet_configs.
6441 (_initialize_remote): Initialize all packet configs. Assert that
6442 all packets have an associated command, except a few known
6445 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6447 * dwarf2read.c (read_subrange_type): Handle dynamic
6448 DW_AT_lower_bound attributes.
6450 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6452 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6453 dynamic bounds before computing its upper bound.
6454 (ada_discrete_type_low_bound): Same as above with the lower bound.
6456 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6458 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6459 range types. Adjust the array handling implementation to
6460 take advantage of this change.
6461 (resolve_dynamic_range): New function, mostly extracted from
6462 resolve_dynamic_bounds.
6463 (resolve_dynamic_array): New function, mostly extracted from
6464 resolve_dynamic_bounds.
6465 (resolve_dynamic_bounds): Delete.
6466 (resolve_dynamic_type): Reimplement. Add handling of
6467 TYPE_CODE_RANGE types.
6469 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6471 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6472 handling of parallel ___XA types.
6474 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6476 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6477 unnecessary second call to static_unwrap_type.
6479 2014-04-27 Hui Zhu <hui@codesourcery.com>
6481 * stack.c (print_frame_info): Call do_gdb_disassembly with
6482 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6484 2014-04-26 Doug Evans <xdje42@gmail.com>
6486 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6488 2014-04-25 Pedro Alves <palves@redhat.com>
6491 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6492 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6493 and newline from built string.
6494 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6495 (linux_ptrace_attach_fail_reason): ... this.
6496 * linux-nat.c (linux_nat_attach): Adjust to use
6497 linux_ptrace_attach_fail_reason.
6499 2014-04-25 Pedro Alves <palves@redhat.com>
6501 * remote.c (struct remote_state): Remove multi_process_aware,
6502 non_stop_aware, cond_tracepoints, cond_breakpoints,
6503 breakpoint_commands, fast_tracepoints, static_tracepoints,
6504 install_in_trace, disconnected_tracing,
6505 enable_disable_tracepoints, string_tracing, and
6506 augmented_libraries_svr4_read fields.
6507 (remote_multi_process_p): Move further below in the file.
6508 (struct packet_config): Add comments.
6509 (update_packet_config): Delete function.
6510 (show_packet_config_cmd): Use packet_config_support.
6511 (add_packet_config_cmd): Use NULL as set callback.
6512 (packet_ok): "set remote foo-packet"-style commands no longer
6513 change config->supported -- adjust.
6514 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6515 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6516 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6517 (PACKET_QNonStop, PACKET_multiprocess_feature)
6518 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6519 (PACKET_DisconnectedTracing_feature)
6520 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6521 (set_remote_protocol_packet_cmd): Delete function.
6522 (packet_config_support, packet_support): New functions.
6523 (set_remote_protocol_Z_packet_cmd): Don't call
6524 update_packet_config.
6525 (remote_query_attached, remote_pass_signals)
6526 (remote_program_signals, remote_threads_info)
6527 (remote_threads_extra_info, remote_start_remote): Use
6529 (remote_start_remote): Use packet_config_support and
6531 (init_all_packet_configs): Set all packets to unknown support,
6532 instead of calling update_packet_config.
6533 (remote_check_symbols): Use packet_support.
6534 (remote_supported_packet): Unconditionally set the packet config's
6536 (remote_multi_process_feature, remote_non_stop_feature)
6537 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6538 (remote_breakpoint_commands_feature)
6539 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6540 (remote_install_in_trace_feature)
6541 (remote_disconnected_tracing_feature)
6542 (remote_enable_disable_tracepoint_feature)
6543 (remote_string_tracing_feature)
6544 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6545 (remote_protocol_features): Adjust to use remote_supported_packet
6546 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6547 "ConditionalTracepoints", "ConditionalBreakpoints",
6548 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6549 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6550 "EnableDisableTracepoints", and "tracenz".
6551 (remote_query_supported): Use packet_support.
6552 (remote_open_1): Adjust.
6553 (extended_remote_attach_1): Use packet_support. Switch on the
6554 result of packet_ok instead of checking whether the packet ended
6556 (remote_vcont_resume): Use packet_support.
6557 (remote_resume, remote_stop_ns, fetch_register_using_p)
6558 (remote_prepare_to_store, store_register_using_P)
6559 (check_binary_download, remote_write_bytes): Use packet_support.
6560 (remote_vkill): Use packet_support. Switch on the result of
6561 packet_ok instead of checking whether the packet ended up
6563 (extended_remote_supports_disable_randomization): Use
6565 (extended_remote_run): Switch on the result of packet_ok instead
6566 of checking whether the packet ended up disabled.
6567 (remote_insert_breakpoint, remote_remove_breakpoint)
6568 (remote_insert_watchpoint, remote_remove_watchpoint)
6569 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6571 (remote_search_memory): Use packet_config_support.
6572 (remote_get_thread_local_address, remote_get_tib_address)
6573 (remote_hostio_send_command, remote_can_execute_reverse): Use
6575 (remote_supports_cond_tracepoints)
6576 (remote_supports_cond_breakpoints)
6577 (remote_supports_fast_tracepoints)
6578 (remote_supports_static_tracepoints)
6579 (remote_supports_install_in_trace)
6580 (remote_supports_enable_disable_tracepoint)
6581 (remote_supports_string_tracing)
6582 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6583 the packet config says the feature is enabled or disabled.
6584 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6585 (remote_get_trace_status): Use packet_support.
6586 (remote_set_disconnected_tracing): Adjust to check whether the
6587 feature is enabled with packet_support.
6588 (remote_set_trace_buffer_size, remote_use_agent)
6589 (remote_can_use_agent, remote_supports_btrace): Use
6591 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6592 Use packet_config_support.
6593 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6594 the packet config says the feature is enabled or disabled.
6595 (set_range_stepping): Use packet_support.
6597 2014-04-25 Tom Tromey <tromey@redhat.com>
6599 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6602 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6604 * NEWS: Mention support for C99 variable length arrays.
6606 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6608 * ada-lang.c (standard_exc): Expand introductory comment.
6610 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6611 Walfred Tedeschi <walfred.tedeschi@intel.com>
6613 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6615 (amd64_linux_read_description): Add code to handle AVX512 xstate
6616 mask and return respective tdesc.
6617 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6618 and features/i386/x32-avx512-linux.c.
6619 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6620 (amd64_linux_core_read_description): Add code to handle AVX512
6621 xstate mask and return respective tdesc.
6622 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6623 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6625 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6626 (tdesc_amd64_avx512_linux): New prototype.
6627 (tdesc_x32_avx512_linux): Likewise.
6628 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6629 features/i386/x32-avx512.c.
6630 (amd64_ymm_avx512_names): New register names for pseudo
6632 (amd64_ymmh_avx512_names): New register names for raw registers
6634 (amd64_k_names): New register names for K registers.
6635 (amd64_zmmh_names): New register names for ZMM raw registers.
6636 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6637 (amd64_xmm_avx512_names): New register names for XMM16-31
6639 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6641 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6642 if feature is present.
6643 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6644 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6645 (AMD64_NUM_REGS): Adjust to new number of registers.
6646 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6647 registers supplied via XSTATE by AVX512 registers.
6648 (i386_linux_read_description): Add case for AVX512.
6649 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6650 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6651 (i386_linux_core_read_description): Add case for AVX512.
6652 (i386_linux_init_abi): Install supported register note section
6654 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6656 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6657 registers to be number of zmm7h + 1.
6658 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6659 * i386-tdep.c: Include features/i386/i386-avx512.c.
6660 (i386_zmm_names): Add ZMM pseudo register names array.
6661 (i386_zmmh_names): Add ZMM raw register names array.
6662 (i386_k_names): Add K raw register names array.
6663 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6664 registers. AVX512 has 16 more ZMM registers than there are YMM
6666 (i386_zmmh_regnum_p): Add function to look up register number of
6668 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6669 (i386_k_regnum_p): Likewise for K raw registers.
6670 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6671 registers added by AVX512.
6672 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6673 registers added by AVX512.
6674 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6676 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6677 (i386_pseudo_register_name): Add ZMM pseudo registers.
6678 (i386_zmm_type): Construct and return vector registers type for ZMM
6680 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6681 ZMM0-31 pseudo registers and K registers.
6682 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6683 and YMM16-31 registers from register cache.
6684 (i386_pseudo_register_write): Add code to write K, ZMM and
6686 (i386_register_reggroup_p): Add code to include/exclude AVX512
6687 registers in/from respective register groups.
6688 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6689 registers if feature is present in xcr0.
6690 (i386_gdbarch_init): Add code to initialize AVX512 feature
6691 variables in tdep structure, wire in pseudo registers and call
6692 initialize_tdesc_i386_avx512.
6693 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6695 (i386_regnum): Add AVX512 registers.
6696 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6697 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6698 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6699 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6701 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6702 (i386_ymm_avx512_regnum_p): Likewise.
6703 (i386_k_regnum_p): Likewise.
6704 (i386_zmm_regnum_p): Likewise.
6705 (i386_zmmh_regnum_p): Likewise.
6706 * i387-tdep.c : Update year in copyright notice.
6707 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6709 (XSAVE_YMM_AVX512_ADDR): New macro.
6710 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6712 (XSAVE_XMM_AVX512_ADDR): New macro.
6713 (xsave_avx512_k_offset): New table for K register offsets in
6715 (XSAVE_AVX512_K_ADDR): New macro.
6716 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6718 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6719 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6721 (i387_collect_xsave): Add code to collect AVX512 registers from
6723 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6724 of XMM16-31 registers.
6725 (I387_NUM_K_REGS): New define for number of K registers.
6726 (I387_K0_REGNUM): New define for K0 register number.
6727 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6728 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6729 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6731 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6732 (I387_XMM16_REGNUM): New define for XMM16 register number.
6733 (I387_YMM0_REGNUM): New define for YMM0 register number.
6734 (I387_KEND_REGNUM): New define for last K register number.
6735 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6736 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6738 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6740 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6742 * features/Makefile: Add AVX512 related files.
6743 * features/i386/32bit-avx512.xml: New file.
6744 * features/i386/64bit-avx512.xml: Likewise.
6745 * features/i386/amd64-avx512-linux.c: Likewise.
6746 * features/i386/amd64-avx512-linux.xml: Likewise.
6747 * features/i386/amd64-avx512.c: Likewise.
6748 * features/i386/amd64-avx512.xml: Likewise.
6749 * features/i386/i386-avx512-linux.c: Likewise.
6750 * features/i386/i386-avx512-linux.xml: Likewise.
6751 * features/i386/i386-avx512.c: Likewise.
6752 * features/i386/i386-avx512.xml: Likewise.
6753 * features/i386/x32-avx512-linux.c: Likewise.
6754 * features/i386/x32-avx512-linux.xml: Likewise.
6755 * features/i386/x32-avx512.c: Likewise.
6756 * features/i386/x32-avx512.xml: Likewise.
6757 * regformats/i386/amd64-avx512-linux.dat: New file.
6758 * regformats/i386/amd64-avx512.dat: Likewise.
6759 * regformats/i386/i386-avx512-linux.dat: Likewise.
6760 * regformats/i386/i386-avx512.dat: Likewise.
6761 * regformats/i386/x32-avx512-linux.dat: Likewise.
6762 * regformats/i386/x32-avx512.dat: Likewise.
6763 * NEWS: Add note about new support for AVX512.
6766 2014-04-23 Pedro Alves <palves@redhat.com>
6768 * breakpoint.c (insert_bp_location): Tolerate errors if the
6769 breakpoint is set in a user-loaded objfile.
6770 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6771 location is marked shlib_disabled. If the breakpoint is set in a
6772 user-loaded objfile is a GDB-side memory breakpoint, validate it
6773 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6774 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6776 * mem-break.c (memory_validate_breakpoint): New function.
6777 * objfiles.c (userloaded_objfile_contains_address_p): New
6779 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6780 * target.h (memory_validate_breakpoint): New declaration.
6782 2014-04-23 Pedro Alves <palves@redhat.com>
6784 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6785 the breakpoint is set in a shared library, only suppress
6786 errors for software breakpoints, not hardware breakpoints.
6788 2014-04-22 Pedro Alves <palves@redhat.com>
6790 * infrun.c (schedlock_applies): New function, factored out from
6791 find_thread_needs_step_over.
6792 (find_thread_needs_step_over): Use it.
6793 (switch_back_to_stepped_thread): Always clear trap_expected if the
6794 step over is finished. Return early if scheduler locking applies.
6795 Look for the stepping thread and a potential step-over thread with
6797 (currently_stepping_or_nexting_callback): Delete.
6799 2014-04-22 Nick Clifton <nickc@redhat.com>
6801 * NEWS: Mention that ARM sim now supports tracing.
6803 2014-04-22 Yao Qi <yao@codesourcery.com>
6805 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6807 * tracefile.c (tracefile_fetch_registers): ... it. New
6809 * tracefile.h (tracefile_fetch_registers): Declare.
6810 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6811 tracefile_fetch_registers.
6813 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6816 * windows-nat.c (thread_rec): Don't display a warning when
6817 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6818 fails for any reason, set th->suspended to -1, so that we don't
6819 try to resume such a thread. Also, don't return NULL in these
6820 cases, to avoid completely ruin the session due to "PC register is
6821 not available" error.
6822 (do_windows_fetch_inferior_registers): Check errors in
6823 GetThreadContext call.
6824 (windows_continue): Accept an additional argument KILLED; if not
6825 zero, ignore errors in the SetThreadContext call, since the
6826 inferior was killed and is shutting down.
6827 (windows_resume, get_windows_debug_event)
6828 (windows_create_inferior, windows_mourn_inferior)
6829 (windows_kill_inferior): All callers of windows_continue changed
6830 to adjust to its new calling sequence.
6832 2014-04-19 Yao Qi <yao@codesourcery.com>
6834 * ctf.c (ctf_open): Call post_create_inferior.
6836 2014-04-19 Yao Qi <yao@codesourcery.com>
6838 * ctf.c (handle_id): New static variable.
6839 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6840 value. Get the declaration of event "register" and get length
6841 of field "contents".
6843 2014-04-19 Yao Qi <yao@codesourcery.com>
6845 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6847 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6849 * valops.c (oload_method_static): Remove unnecessary argument
6850 METHOD. Update all callers.
6852 2014-04-18 Pedro alves <palves@redhat.com>
6853 Tom Tromey <tromey@redhat.com>
6856 * frame.c (get_prev_frame_1): Rename to ...
6857 (get_prev_frame_always): ... this, and make extern. Adjust.
6858 (skip_artificial_frames): Use get_prev_frame_always.
6859 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6860 (get_frame_unwind_stop_reason): Adjust to rename.
6861 * frame.h (get_prev_frame_always): Declare.
6862 * inline-frame.c: Include frame.h.
6863 (inline_frame_this_id): Use get_prev_frame_always.
6865 2014-04-18 Tristan Gingold <gingold@adacore.com>
6867 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6868 code by using bfd_mach_o_get_base_address.
6870 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6872 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6873 (spu_ax_pseudo_register_collect): New function.
6874 (spu_ax_pseudo_register_push_stack): Likewise.
6875 (spu_dwarf_reg_to_regnum): Likewise.
6876 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6878 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6880 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6881 Replace FRAME argument with FRAME_ID.
6882 * gdbarch.c, gdbarch.h: Regenerate.
6883 * findvar.c (default_value_from_register): Add GDBARCH argument;
6884 replace FRAME by FRAME_ID. No longer call get_frame_id.
6885 (value_from_register): Update call to gdbarch_value_from_register.
6886 * value.h (default_value_from_register): Update prototype.
6887 * s390-linux-tdep.c (s390_value_from_register): Update interface
6888 and call to default_value_from_register.
6889 * spu-tdep.c (spu_value_from_register): Likewise.
6891 * findvar.c (address_from_register): Remove TYPE argument.
6892 Do not call value_from_register; use gdbarch_value_from_register
6893 with null_frame_id instead.
6894 * value.h (address_from_register): Update prototype.
6895 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6896 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6897 address_from_register interface change.
6899 2014-04-17 Yao Qi <yao@codesourcery.com>
6901 * gdbtypes.h: Update comments to link to types and macros'
6904 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6906 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6908 2014-04-16 Keith Seitz <keiths@redhat.com>
6911 * dwarf2read.c (skip_one_die): Check that all relative-offset
6912 sibling DIEs fall within range of the current reader's buffer.
6913 (read_partial_die): Likewise.
6915 2014-04-16 Keith Seitz <keiths@redhat.com>
6918 * cp-namespace.c (lookup_symbol_file): If the type name of
6919 `this' is NULL, return immediately.
6921 2014-04-14 Keith Seitz <keiths@redhat.com>
6924 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6925 from symbol_matches_domain in symtab.c. All local callers
6926 of symbol_matches_domain updated.
6927 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6928 search STRUCT_DOMAIN.
6929 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6930 independently. standard_lookup will do that automatically.
6931 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6932 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6933 (cp_lookup_symbol_in_namespace): Likewise.
6934 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6935 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6936 may return a STRUCT_DOMAIN match.
6937 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6938 * cp-support.c: Include language.h.
6939 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6941 * psymtab.c (match_partial_symbol): Compare the requested
6942 domain with the symbol's domain directly.
6943 (lookup_partial_symbol): Likewise.
6944 * symtab.c (lookup_symbol_in_language): Explain when/why
6945 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6946 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6947 appropriate languages.
6948 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6949 and moved to ada-lang.c
6950 (lookup_block_symbol): Explain that this function only returns
6951 symbol matching the requested DOMAIN.
6952 Compare the requested domain with the symbol's domain directly.
6953 (iterate_over_symbols): Compare the requested domain with the
6954 symbol's domain directly.
6955 * symtab.h (symbol_matches_domain): Remove.
6957 2014-04-14 Tom Tromey <tromey@redhat.com>
6960 * c-exp.y (type_aggregate_p): New function.
6961 (qualified_name, classify_inner_name): Use it.
6962 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6963 and TYPE_TARGET_TYPE of an enum type.
6964 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6966 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6967 handle TYPE_DECLARED_CLASS.
6968 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6970 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6971 * valops.c (enum_constant_from_type): New function.
6972 (value_aggregate_elt): Use it.
6973 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6976 2014-04-14 Tom Tromey <tromey@redhat.com>
6978 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6979 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6981 * value.h (value_aggregate_elt): Update.
6983 2014-04-14 Tom Tromey <tromey@redhat.com>
6985 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6987 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6989 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6990 (evaluate_subexp_standard): Pass noside argument.
6991 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6992 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6993 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6994 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6995 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6997 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6999 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7000 points to a constant blob.
7002 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7004 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7005 property and store it as the high bound and flag the range accordingly.
7006 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7007 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7008 * gdbtypes.h (enum range_flags): New enum.
7009 (struct range_bounds): Add flags member.
7011 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7013 * c-typeprint.c (c_type_print_varspec_suffix): Added
7014 check for not yet resolved high bound. If unresolved, print
7015 "variable length" string to the console instead of random
7018 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7020 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7022 (ada_template_to_fixed_record_type_1): Likewise.
7023 (ada_to_fixed_type_1): Likewise.
7024 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7025 (cp_print_value): Likewise.
7026 * d-valprint.c (dynamic_array_type): Likewise.
7027 * findvar.c (address_of_variable): Likewise.
7028 * jv-valprint.c (java_value_print): Likewise.
7029 * valops.c (value_ind): Likewise.
7030 * value.c (coerce_ref): Likewise.
7032 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7034 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7035 value and retrieve the dynamic type size.
7037 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7039 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7040 passed to sizeof is dynamic evaluate the argument to compute the length.
7042 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7043 Joel Brobecker <brobecker@adacore.com>
7045 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7046 (dwarf2_evaluate_property): New function.
7047 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7048 * dwarf2read.c (attr_to_dynamic_prop): New function.
7049 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7051 * gdbtypes.c: Include dwarf2loc.h.
7052 (is_dynamic_type): New function.
7053 (resolve_dynamic_type): New function.
7054 (resolve_dynamic_bounds): New function.
7055 (get_type_length): New function.
7056 (check_typedef): Use get_type_length to compute type length.
7057 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7058 (TYPE_LOW_BOUND_KIND): New macro.
7059 (is_dynamic_type): New function prototype.
7060 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7061 to resolve dynamic properties of the type. Update comment.
7062 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7064 2014-04-14 Richard Henderson <rth@redhat.com>
7066 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7068 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7069 Doug Evans <xdje42@gmail.com>
7071 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7072 dereference TYPE_CODE_REF values.
7074 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7076 Revert the following changes due to regressions:
7078 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7079 (dwarf2_evaluate_property): New function.
7080 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7081 * dwarf2read.c (attr_to_dynamic_prop): New function.
7082 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7084 * gdbtypes.c: Include dwarf2loc.h.
7085 (is_dynamic_type): New function.
7086 (resolve_dynamic_type): New function.
7087 (resolve_dynamic_bounds): New function.
7088 (get_type_length): New function.
7089 (check_typedef): Use get_type_length to compute type length.
7090 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7091 (TYPE_LOW_BOUND_KIND): New macro.
7092 (is_dynamic_type): New function prototype.
7093 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7094 to resolve dynamic properties of the type. Update comment.
7095 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7097 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7098 passed to sizeof is dynamic evaluate the argument to compute the length.
7100 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7101 value and retrieve the dynamic type size.
7103 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7104 (ada_template_to_fixed_record_type_1): Likewise.
7105 (ada_to_fixed_type_1): Likewise.
7106 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7107 (cp_print_value): Likewise.
7108 * d-valprint.c (dynamic_array_type): Likewise.
7109 * eval.c (evaluate_subexp_with_coercion): Likewise.
7110 * findvar.c (address_of_variable): Likewise.
7111 * jv-valprint.c (java_value_print): Likewise.
7112 * valops.c (value_ind): Likewise.
7113 * value.c (coerce_ref): Likewise.
7115 * c-typeprint.c (c_type_print_varspec_suffix): Added
7116 check for not yet resolved high bound. If unresolved, print
7117 "variable length" string to the console instead of random
7120 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7121 property and store it as the high bound and flag the range accordingly.
7122 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7123 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7124 * gdbtypes.h (enum range_flags): New enum.
7125 (struct range_bounds): Add flags member.
7127 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7128 points to a constant blob.
7130 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7131 (evaluate_subexp_standard): Pass noside argument.
7132 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7133 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7134 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7135 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7136 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7138 2014-04-11 Keith Seitz <keiths@redhat.com>
7141 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7142 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7145 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7147 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7148 (evaluate_subexp_standard): Pass noside argument.
7149 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7150 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7151 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7152 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7153 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7155 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7157 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7158 points to a constant blob.
7160 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7162 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7163 property and store it as the high bound and flag the range accordingly.
7164 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7165 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7166 * gdbtypes.h (enum range_flags): New enum.
7167 (struct range_bounds): Add flags member.
7169 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7171 * c-typeprint.c (c_type_print_varspec_suffix): Added
7172 check for not yet resolved high bound. If unresolved, print
7173 "variable length" string to the console instead of random
7176 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7178 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7179 (ada_template_to_fixed_record_type_1): Likewise.
7180 (ada_to_fixed_type_1): Likewise.
7181 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7182 (cp_print_value): Likewise.
7183 * d-valprint.c (dynamic_array_type): Likewise.
7184 * eval.c (evaluate_subexp_with_coercion): Likewise.
7185 * findvar.c (address_of_variable): Likewise.
7186 * jv-valprint.c (java_value_print): Likewise.
7187 * valops.c (value_ind): Likewise.
7188 * value.c (coerce_ref): Likewise.
7190 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7192 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7193 value and retrieve the dynamic type size.
7195 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7197 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7198 passed to sizeof is dynamic evaluate the argument to compute the length.
7200 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7202 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7203 (dwarf2_evaluate_property): New function.
7204 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7205 * dwarf2read.c (attr_to_dynamic_prop): New function.
7206 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7208 * gdbtypes.c: Include dwarf2loc.h.
7209 (is_dynamic_type): New function.
7210 (resolve_dynamic_type): New function.
7211 (resolve_dynamic_bounds): New function.
7212 (get_type_length): New function.
7213 (check_typedef): Use get_type_length to compute type length.
7214 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7215 (TYPE_LOW_BOUND_KIND): New macro.
7216 (is_dynamic_type): New function prototype.
7217 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7218 to resolve dynamic properties of the type. Update comment.
7219 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7221 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7223 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7224 declaring high/low bounds and change uses accordingly. Call
7225 create_range_type instead of create_static_range_type.
7226 * gdbtypes.c (create_range_type): New function.
7227 (create_range_type): Convert bounds into struct bound_prop and pass
7228 them to create_range_type.
7229 * gdbtypes.h (struct bound_prop): New struct.
7230 (create_range_type): New function prototype.
7231 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7232 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7233 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7235 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7237 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7239 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7240 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7241 * ada-lang.c: All uses of create_range_type updated.
7242 * coffread.c: All uses of create_range_type updated.
7243 * dwarf2read.c: All uses of create_range_type updated.
7244 * f-exp.y: All uses of create_range_type updated.
7245 * m2-valprint.c: All uses of create_range_type updated.
7246 * mdebugread.c: All uses of create_range_type updated.
7247 * stabsread.c: All uses of create_range_type updated.
7248 * valops.c: All uses of create_range_type updated.
7249 * valprint.c: All uses of create_range_type updated.
7251 2014-04-10 Pedro Alves <palves@redhat.com>
7253 * breakpoint.c (single_step_breakpoints)
7254 (single_step_gdbarch): Move up in the file.
7255 (one_breakpoint_xfer_memory): New function, factored out from ...
7256 (breakpoint_xfer_memory): ... here. Also process single-step
7259 2014-04-09 Tristan Gingold <gingold@adacore.com>
7261 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7263 (darwin_decode_exception_message): Free port only after use.
7265 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7267 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7268 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7269 when setting the size of call_length.
7271 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7273 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7274 dereference TYPE_CODE_REF values.
7276 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7278 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7279 end of warning message.
7281 2014-04-03 Doug Evans <dje@google.com>
7283 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7284 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7286 2014-04-02 Alan Modra <amodra@gmail.com>
7288 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7289 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7290 (struct symbol_file_add_from_memory_args): Add size field.
7291 (find_vdso_size): New function.
7292 (add_vsyscall_page): Attempt to find vdso size.
7294 2014-04-01 Doug Evans <dje@google.com>
7296 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7298 2014-04-01 Tristan Gingold <gingold@adacore.com>
7300 * darwin-nat.c (darwin_encode_reply): Add prototype.
7301 (darwin_decode_exception_message): Reply to unknown inferiors.
7302 (darwin_decode_message): Handle message by id. Ignore message
7303 to unknown inferior.
7304 (darwin_wait): Discard unknown messages, add debug trace.
7306 2014-03-31 Doug Evans <dje@google.com>
7308 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7311 2014-03-31 Doug Evans <dje@google.com>
7313 New option "set print symbol-loading".
7315 * solib.c (solib_read_symbols): Only print symbol loading messages
7317 (solib_add): If symbol loading is in "brief" mode, notify user
7318 symbols are being loaded.
7319 (reload_shared_libraries_1): Ditto.
7320 * symfile.c (print_symbol_loading_off): New static global.
7321 (print_symbol_loading_brief): New static global.
7322 (print_symbol_loading_full): New static global.
7323 (print_symbol_loading_enums): New static global.
7324 (print_symbol_loading): New static global.
7325 (print_symbol_loading_p): New function.
7326 (symbol_file_add_with_addrs): Only print symbol loading messages
7328 (_initialize_symfile): Register "print symbol-loading" set/show
7330 * symfile.h (print_symbol_loading_p): Declare.
7332 2014-03-30 Doug Evans <xdje42@gmail.com>
7334 * infrun.c (set_last_target_status): New function.
7335 (handle_inferior_event): Call it.
7337 2014-03-30 Doug Evans <xdje42@gmail.com>
7339 * inferior.h (enum stop_kind): Improve comment.
7341 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7343 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7344 a reference, strip the reference layer before calling
7345 the lang_ops value_has_mutated callback.
7347 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7349 Remove some globals from our parser.
7350 * language.c (unk_lang_parser): Add "struct parser_state"
7352 * language.h (struct language_defn) <la_parser>: Likewise.
7353 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7354 (initialize_expout): Add "struct parser_state" argument.
7355 Rewrite function to use the parser state.
7356 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7357 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7358 write_exp_elt_longcst, write_exp_elt_dblcst,
7359 write_exp_elt_decfloatcst, write_exp_elt_type,
7360 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7361 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7362 write_dollar_variable): Likewise.
7363 (parse_exp_in_context_1): Use parser state.
7364 (insert_type_address_space): Add "struct parser_state" argument.
7366 (increase_expout_size): New function.
7367 * parser-defs.h: Forward declare "struct language_defn" and
7368 "struct parser_state".
7369 (expout, expout_size, expout_ptr): Remove extern declarations.
7370 (parse_gdbarch, parse_language): Rewrite macro declarations to
7371 accept the parser state.
7372 (struct parser_state): New struct.
7373 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7374 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7375 write_exp_elt_decfloatcst, write_exp_elt_type,
7376 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7377 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7378 write_exp_msymbol, write_dollar_variable,
7379 mark_struct_expression, insert_type_address_space): Add "struct
7380 parser_state" argument.
7381 (increase_expout_size): New function.
7382 * utils.c (do_clear_parser_state): New function.
7383 (make_cleanup_clear_parser_state): Likewise.
7384 * utils.h (make_cleanup_clear_parser_state): New function
7386 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7387 Update calls to write_exp* in order to pass the parser state.
7388 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7389 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7390 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7391 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7392 * stap-probe.c (stap_parse_register_operand): Likewise.
7393 (stap_parse_single_operand): Likewise.
7394 (stap_parse_argument_1): Likewise.
7395 (stap_parse_argument): Use parser state.
7396 * stap-probe.h: Include "parser-defs.h".
7397 (struct stap_parse_info) <pstate>: New field.
7398 * c-exp.y (parse_type): Rewrite to use parser state.
7399 (yyparse): Redefine to c_parse_internal.
7400 (pstate): New global variable.
7401 (parse_number): Add "struct parser_state" argument.
7402 (write_destructor_name): Likewise.
7403 (type_exp): Update calls to write_exp* and similars in order to
7405 (exp1, exp, variable, qualified_name, space_identifier,
7406 typename, typebase): Likewise.
7407 (write_destructor_name, parse_number, lex_one_token,
7408 classify_name, classify_inner_name, c_parse): Add "struct
7409 parser_state" argument. Update function to use parser state.
7410 * c-lang.h: Forward declare "struct parser_state".
7411 (c_parse): Add "struct parser_state" argument.
7412 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7413 (yyparse): Redefine macro to ada_parse_internal.
7414 (pstate): New variable.
7415 (write_int, write_object_renaming, write_var_or_type,
7416 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7417 type_int, type_long, type_long_long, type_float, type_double,
7418 type_long_double, type_char, type_boolean, type_system_address):
7419 Add "struct parser_state" argument.
7420 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7421 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7422 var_or_type, aggregate, aggregate_component_list,
7423 positional_list, others, component_group,
7424 component_associations): Update calls to write_exp* and similar
7425 functions in order to use parser state.
7426 (ada_parse, write_var_from_sym, write_int,
7427 write_exp_op_with_string, write_object_renaming,
7428 find_primitive_type, write_selectors, write_ambiguous_var,
7429 write_var_or_type, write_name_assoc, type_int, type_long,
7430 type_long_long, type_float, type_double, type_long_double,
7431 type_char, type_boolean, type_system_address): Add "struct
7432 parser_state" argument. Adjust function to use parser state.
7433 * ada-lang.c (parse): Likewise.
7434 * ada-lang.h: Forward declare "struct parser_state".
7435 (ada_parse): Add "struct parser_state" argument.
7436 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7437 calls to both functions.
7438 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7440 (yyparse): Redefine macro to f_parse_internal.
7441 (pstate): New variable.
7442 (parse_number): Add "struct parser_state" argument.
7443 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7444 and similars in order to use parser state.
7445 (parse_number): Adjust code to use parser state.
7447 (f_parse): New function.
7448 * f-lang.h: Forward declare "struct parser_state".
7449 (f_parse): Add "struct parser_state" argument.
7450 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7452 (yyparse): Redefine macro for java_parse_internal.
7453 (pstate): New variable.
7454 (push_expression_name, push_expression_name, insert_exp): Add
7455 "struct parser_state" argument.
7456 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7457 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7458 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7459 PostIncrementExpression, PostDecrementExpression,
7460 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7461 UnaryExpressionNotPlusMinus, CastExpression,
7462 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7463 RelationalExpression, EqualityExpression, AndExpression,
7464 ExclusiveOrExpression, InclusiveOrExpression,
7465 ConditionalAndExpression, ConditionalOrExpression,
7466 ConditionalExpression, Assignment, LeftHandSide): Update
7467 calls to write_exp* and similars in order to use parser state.
7468 (parse_number): Ajust code to use parser state.
7470 (java_parse): New function.
7471 (push_variable): Add "struct parser_state" argument. Adjust
7472 code to user parser state.
7473 (push_fieldnames, push_qualified_expression_name,
7474 push_expression_name, insert_exp): Likewise.
7475 * jv-lang.h: Forward declare "struct parser_state".
7476 (java_parse): Add "struct parser_state" argument.
7477 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7479 (yyparse): Redefine macro to m2_parse_internal.
7480 (pstate): New variable.
7481 (type_exp, exp, fblock, variable, type): Update calls to
7482 write_exp* and similars to use parser state.
7484 (m2_parse): New function.
7485 * m2-lang.h: Forward declare "struct parser_state".
7486 (m2_parse): Add "struct parser_state" argument.
7487 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7488 * objc-lang.h: Forward declare "struct parser_state".
7489 (end_msglist): Add "struct parser_state" argument.
7490 * p-exp.y (parse_type): Rewrite macro to use parser state.
7491 (yyparse): Redefine macro to pascal_parse_internal.
7492 (pstate): New variable.
7493 (parse_number): Add "struct parser_state" argument.
7494 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7495 write_exp* and similars in order to use parser state.
7496 (parse_number, yylex): Adjust code to use parser state.
7497 (pascal_parse): New function.
7498 * p-lang.h: Forward declare "struct parser_state".
7499 (pascal_parse): Add "struct parser_state" argument.
7500 * go-exp.y (parse_type): Rewrite macro to use parser state.
7501 (yyparse): Redefine macro to go_parse_internal.
7502 (pstate): New variable.
7503 (parse_number): Add "struct parser_state" argument.
7504 (type_exp, exp1, exp, variable, type): Update calls to
7505 write_exp* and similars in order to use parser state.
7506 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7507 to use parser state.
7508 (go_parse): Likewise.
7509 * go-lang.h: Forward declare "struct parser_state".
7510 (go_parse): Add "struct parser_state" argument.
7512 2014-03-27 Doug Evans <dje@google.com>
7514 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7516 2014-03-27 Doug Evans <dje@google.com>
7518 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7519 Remove argument abbrev_section. All callers updated.
7521 2014-03-27 Doug Evans <dje@google.com>
7523 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7524 addr_base, ranges_base.
7526 2014-03-26 Keith Seitz <keiths@redhat.com>
7528 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7529 types, not VAR_DOMAIN.
7531 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7533 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7535 * features/nios2-linux.c: Regenerated.
7536 * features/nios2.c: Regenerated.
7538 2014-03-25 Pedro Alves <palves@redhat.com>
7540 * cli/cli-script.c (script_from_file): Force the interpreter to
7543 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7545 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7546 small stack allocation.
7548 2014-03-24 Tristan Gingold <gingold@adacore.com>
7550 * darwin-nat.c (exc_server): Remove unused prototype.
7551 (darwin_dump_message): Correctly display data on x86_64.
7552 (darwin_encode_reply): Fix style.
7553 Add comments and fix indentation.
7555 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7557 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7559 2014-03-22 Doug Evans <xdje42@gmail.com>
7561 * infcmd.c: Whitespace fixes.
7562 (interrupt_command): Merge two function comments into one.
7564 2014-03-22 Doug Evans <xdje42@gmail.com>
7566 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7569 2014-03-22 Yao Qi <yao@codesourcery.com>
7571 * remote.c (target_read_live_memory): Remove.
7572 (memory_xfer_live_readonly_partial): Rename it to
7573 remote_xfer_live_readonly_partial. Remove argument 'object'.
7574 All callers updated. Call remote_read_bytes_1
7575 instead of target_read_live_memory.
7576 * tracepoint.c (set_traceframe_number): Remove.
7577 (make_cleanup_restore_traceframe_number): Likewise .
7578 * tracepoint.h (set_traceframe_number): Remove declaration.
7579 (make_cleanup_restore_traceframe_number): Likewise.
7581 2014-03-22 Yao Qi <yao@codesourcery.com>
7583 * remote.c (remote_read_bytes): Move code on reading from the
7585 (remote_read_bytes_1): ... here. New function.
7587 2014-03-22 Yao Qi <yao@codesourcery.com>
7589 * ctf.c (ctf_xfer_partial): Check the return value of
7590 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7591 return TARGET_XFER_UNAVAILABLE.
7592 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7593 * target.c (target_read_live_memory): Move it to remote.c.
7594 (memory_xfer_live_readonly_partial): Likewise.
7595 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7596 * remote.c (target_read_live_memory): Moved from target.c.
7597 (memory_xfer_live_readonly_partial): Likewise.
7598 (remote_read_bytes): Factored out from
7599 memory_xfer_partial_1.
7601 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7603 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7606 2014-03-21 Pedro Alves <palves@redhat.com>
7608 * infrun.c (normal_stop): Extend comment.
7610 2014-03-21 Hui Zhu <hui@codesourcery.com>
7611 Pedro Alves <palves@redhat.com>
7613 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7615 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7616 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7617 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7619 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7621 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7622 `z' formatted output modifier.
7624 2014-03-20 Tom Tromey <tromey@redhat.com>
7625 Sergio Durigan Junior <sergiodj@redhat.com>
7627 * probe.c (parse_probes): Turn assert into an ordinary error.
7628 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7629 exceptions when parsing probes. Rearrange the code for clarity.
7631 2014-03-20 Tom Tromey <tromey@redhat.com>
7634 * top.c (execute_command): Only dispatch events if the command
7637 2014-03-20 Tom Tromey <tromey@redhat.com>
7640 * infcall.c: Include event-top.h.
7641 (run_inferior_call): Call async_disable_stdin if needed.
7643 2014-03-20 Pedro Alves <palves@redhat.com>
7645 * infrun.c (prepare_to_proceed): Delete.
7646 (thread_still_needs_step_over): New function.
7647 (find_thread_needs_step_over): New function.
7648 (proceed): If the current thread needs a step-over, set its
7649 steping_over_breakpoint flag. Adjust to use
7650 find_thread_needs_step_over instead of prepare_to_proceed.
7651 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7652 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7654 (switch_back_to_stepped_thread): Step over breakpoints of all
7655 threads not the stepping thread, before switching back to the
7658 2014-03-20 Pedro Alves <palves@redhat.com>
7660 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7662 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7663 * infrun.c (saved_singlestep_ptid)
7664 (stepping_past_singlestep_breakpoint): Delete.
7665 (resume): Remove stepping_past_singlestep_breakpoint handling.
7666 (proceed): Store the prev_pc of the stepping thread too.
7667 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7669 (enum infwait_states): Delete infwait_thread_hop_state.
7670 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7672 (handle_inferior_event): Adjust.
7673 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7674 handling and the thread-hop code. Before removing single-step
7675 breakpoints, check whether the thread hit a single-step breakpoint
7676 of another thread. If it did, the trap is not a random signal.
7677 (switch_back_to_stepped_thread): If the event thread hit a
7678 single-step breakpoint, unblock it before switching to the
7679 stepping thread. Handle the case of the stepped thread having
7681 (keep_going): Handle the case of the current thread moving past a
7682 single-step breakpoint.
7684 2014-03-20 Pedro Alves <palves@redhat.com>
7687 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7688 are being stepped over.
7689 (breakpoint_address_match): Make extern.
7690 * breakpoint.h (breakpoint_address_match): New declaration.
7691 * inferior.h (stepping_past_instruction_at): New declaration.
7692 * infrun.c (struct step_over_info): New type.
7693 (step_over_info): New global.
7694 (set_step_over_info, clear_step_over_info)
7695 (stepping_past_instruction_at): New functions.
7696 (handle_inferior_event): Clear the step-over info when
7697 trap_expected is cleared.
7698 (resume): Remove now stale comment.
7699 (clear_proceed_status): Clear step-over info.
7700 (proceed): Adjust step-over handling to set or clear the step-over
7701 info instead of removing all breakpoints.
7702 (handle_signal_stop): When setting up a thread-hop, don't remove
7704 (stop_stepping): Clear step-over info.
7705 (keep_going): Adjust step-over handling to set or clear step-over
7706 info and then always inserting breakpoints, instead of removing
7707 all breakpoints when stepping over one.
7709 2014-03-20 Pedro Alves <palves@redhat.com>
7711 * infrun.c (previous_inferior_ptid): Adjust comment.
7712 (deferred_step_ptid): Delete.
7713 (infrun_thread_ptid_changed, prepare_to_proceed)
7714 (init_wait_for_inferior): Adjust.
7715 (handle_signal_stop): Delete deferred_step_ptid handling.
7717 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7720 * defs.h (sync_quit_force_run): New declaration.
7721 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7722 * event-top.c (async_sigterm_handler): New declaration.
7723 (async_sigterm_token): New variable.
7724 (async_init_signals): Create also async_sigterm_token.
7725 (async_sigterm_handler): New function.
7726 (sync_quit_force_run): New variable.
7727 (handle_sigterm): Replace quit_force call by other calls.
7728 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7730 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7732 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7733 offset into SPE pseudo registers.
7735 2014-03-18 Pedro Alves <palves@redhat.com>
7738 * inferior.h (print_stop_event): Declare.
7739 * infrun.c (print_stop_event): New, factored out from ...
7740 (normal_stop): ... this.
7741 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7742 of bpstat_print/print_stack_frame.
7744 2014-03-17 Tom Tromey <tromey@redhat.com>
7746 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7748 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7750 * ada-lang.c (decode_constrained_packed_array): Perform a
7751 minimal coercion for reference with coerce_ref instead of
7754 2014-03-17 Tristan Gingold <gingold@adacore.com>
7756 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7757 (darwin_solib_create_inferior_hook): Emit a warning if version
7760 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7762 * python/py-value.c (get_field_flag): Cast flag_name argument to
7763 PyObject_GetAttrString to support Python 2.4.
7765 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7767 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7768 (Global Maintainers): Remove Jan Kratochvil.
7770 2014-03-14 Pedro Alves <palves@redhat.com>
7772 * inferior.h (terminal_ours_for_output): Rename to ...
7773 (child_terminal_ours_for_output): ... this.
7774 (terminal_save_ours): Rename to ...
7775 (child_terminal_save_ours): ... this.
7776 (terminal_ours): Rename to ...
7777 (child_terminal_ours): ... this.
7778 (terminal_inferior): Rename to ...
7779 (child_terminal_inferior): ... this.
7780 (terminal_init_inferior): Rename to ...
7781 (child_terminal_init_inferior): ... this.
7782 (terminal_init_inferior_with_pgrp): Rename to ...
7783 (child_terminal_init_inferior_with_pgrp): ... this.
7784 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7785 (child_terminal_init_with_pgrp): ... this.
7786 (terminal_save_ours): Rename to ...
7787 (child_terminal_save_ours): ... this.
7788 (terminal_init_inferior): Rename to ...
7789 (child_terminal_init): ... this. Adjust.
7790 (terminal_inferior): Rename to ...
7791 (child_terminal_inferior): ... this.
7792 (terminal_ours_for_output): Rename to ...
7793 (child_terminal_ours_for_output): ... this. Adjust.
7794 (terminal_ours): Rename to ...
7795 (child_terminal_ours): ... this.
7796 (terminal_ours_1): Rename to ...
7797 (child_terminal_ours_1): ... this. Adjust.
7798 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7799 * windows-nat.c (do_initial_windows_stuff): Adjust.
7800 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7801 (gnu_terminal_init): ... this. Adjust.
7802 (gnu_target): Adjust.
7803 * inf-child.c (inf_child_target): Adjust.
7805 2014-03-13 Doug Evans <xdje42@gmail.com>
7808 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7811 2014-03-13 Doug Evans <xdje42@gmail.com>
7813 * value.c (record_latest_value): Call release_value_or_incref
7814 instead of release_value.
7816 2014-03-13 Pedro Alves <palves@redhat.com>
7818 * procfs.c (procfs_target): Don't override to_shortname,
7819 to_longname or to_doc.
7821 2014-03-13 Pedro Alves <palves@redhat.com>
7823 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7824 Unix in user visible strings.
7826 2014-03-12 Stan Shebs <stan@codesourcery.com>
7828 * gdbtypes.h: Annotate comments for Doxygen, add a page
7829 block comment with some general info.
7831 2014-03-12 Pedro Alves <palves@redhat.com>
7833 * infcmd.c (prepare_execution_command): New function, factored out
7834 from several execution commands.
7835 (run_command_1, continue_command, step_1, jump_command)
7836 (signal_command, until_command, advance_command, finish_command)
7837 (attach_command): Use prepare_execution_command.
7839 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7841 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7844 (struct arm_linux_thread_points): Removed.
7845 (struct arm_linux_process_info): New.
7846 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7847 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7848 (arm_linux_find_breakpoints_by_tid): Removed.
7849 (struct arch_lwp_info): New.
7850 (arm_linux_find_process_pid): New functions.
7851 (arm_linux_add_process): New functions.
7852 (arm_linux_process_info_get): New functions.
7853 (arm_linux_forget_process): New function.
7854 (arm_linux_get_debug_reg_state): New function.
7855 (struct update_registers_data): New.
7856 (update_registers_callback): New function.
7857 (arm_linux_insert_hw_breakpoint1): Updated.
7858 (arm_linux_remove_hw_breakpoint1): Updated.
7859 (arm_linux_insert_hw_breakpoint): Updated.
7860 (arm_linux_remove_hw_breakpoint): Updated.
7861 (arm_linux_insert_watchpoint): Updated.
7862 (arm_linux_remove_watchpoint): Updated.
7863 (arm_linux_new_thread): Updated.
7864 (arm_linux_prepare_to_resume): New function.
7865 (arm_linux_new_fork): New function.
7866 (_initialize_arm_linux_nat): Updated.
7868 2014-03-12 Pedro Alves <palves@redhat.com>
7870 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7872 2014-03-12 Tom Tromey <tromey@redhat.com>
7874 * inf-child.c (return_zero): New function.
7875 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7876 * aix-thread.c (aix_thread_inferior_created): New function.
7877 (aix_thread_attach): Remove.
7878 (init_aix_thread_ops): Don't set to_attach.
7879 (_initialize_aix_thread): Register inferior_created observer.
7880 * corelow.c (init_core_ops): Don't set to_attach or
7882 * exec.c (init_exec_ops): Don't set to_attach or
7884 * infcmd.c (run_command_1): Use find_run_target. Make direct
7886 (attach_command): Use find_attach_target. Make direct target
7888 * record-btrace.c (init_record_btrace_ops): Don't set
7890 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7892 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7893 set to_create_inferior.
7894 * target.c (complete_target_initialization): Add assertion.
7895 (target_create_inferior): Remove.
7896 (find_default_attach, find_default_create_inferior): Remove.
7897 (find_attach_target, find_run_target): New functions.
7898 (find_default_is_async_p, find_default_can_async_p)
7899 (target_supports_non_stop, target_attach): Remove.
7900 (init_dummy_target): Don't set to_create_inferior or
7901 to_supports_non_stop.
7902 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7903 TARGET_DEFAULT_FUNC.
7904 <to_create_inferior>: Add comment.
7905 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7906 TARGET_DEFAULT_RETURN.
7907 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7908 (find_attach_target, find_run_target): Declare.
7909 (target_create_inferior): Remove.
7910 (target_has_execution_1): Update comment.
7911 (target_supports_non_stop): Remove.
7912 * target-delegates.c: Rebuild.
7914 2014-03-12 Pedro Alves <palves@redhat.com>
7916 * inf-child.h: Update comment to not mention Unix.
7918 2014-03-12 Pedro Alves <palves@redhat.com>
7920 * inf-child.c: Update top comment to not mention Unix. Add
7921 generic comment describing how this target is meant to be used.
7922 (inf_child_post_attach, inf_child_post_startup_inferior)
7923 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7926 2014-03-12 Pedro Alves <palves@redhat.com>
7928 * nto-procfs.c: Include inf-child.h.
7929 (procfs_ops): Delete global.
7930 (procfs_can_run): Delete method.
7931 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7932 target pointer instead of referencing procfs_ops.
7933 (procfs_prepare_to_store): Delete.
7934 (init_procfs_ops): Delete function.
7935 (procfs_target): New function, based on init_procfs_ops, but
7936 inherit inf_child_target.
7937 (_initialize_procfs): Use procfs_target.
7939 2014-03-12 Pedro Alves <palves@redhat.com>
7941 * windows-nat.c: Include inf-child.h.
7942 (windows_ops): Delete global.
7943 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7945 (init_windows_ops): Delete function.
7946 (windows_target): New function, based on init_windows_ops, but
7947 inherit inf_child_target.
7948 (_initialize_windows_nat): Use windows_target. Install x86
7949 specific target methods here.
7951 2014-03-10 Doug Evans <xdje42@gmail.com>
7953 * guile/guile.c (call_initialize_gdb_module): New function.
7954 (initialize_guile): Replace call to scm_init_guile with call to
7957 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7959 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7960 in call to TYPE_CODE macro.
7962 2014-03-10 Jerome Guitton <guitton@adacore.com>
7964 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7965 Resolve tagged types to full view.
7967 2014-03-10 Hui Zhu <hui@codesourcery.com>
7969 * target.h (target_insert_breakpoint): Remove "hardware" from its
7972 2014-03-07 Doug Evans <dje@google.com>
7974 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7976 2014-03-07 Doug Evans <dje@google.com>
7978 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7979 Remove unused local comp_dir_attr. Assert exactly one of
7980 stub_comp_unit_die, stub_comp_dir is non-NULL.
7982 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7984 * target.h (complete_target_initialization, add_target):
7987 2014-03-07 Pedro Alves <palves@redhat.com>
7989 * go32-nat.c: Include inf-child.h.
7990 (go32_ops): Delete global.
7991 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7993 (go32_create_inferior): Push the passed in target pointer instead
7994 of referencing go32_ops.
7995 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7996 (go32_target): New function, based on init_go32_ops, but inherit
7998 (_initialize_go32_nat): Use go32_target. Move parts of
8001 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8003 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8004 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8005 SYMBOL_VALUE_ADDRESS.
8006 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8008 2014-03-06 Yao Qi <yao@codesourcery.com>
8010 * breakpoint.c (get_tracepoint_by_number): Remove argument
8011 optional_p. All callers updated. Adjust comments. Update
8013 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8015 2014-03-06 Yao Qi <yao@codesourcery.com>
8017 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8018 early if get_number returns zero. Use 'p' instead of 'args'.
8020 2014-03-06 Yao Qi <yao@codesourcery.com>
8022 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8025 2014-03-06 Yao Qi <yao@codesourcery.com>
8027 PR breakpoints/16508
8028 * tracepoint.c (check_trace_running): New function.
8029 (trace_find_command): Move code to check_trace_running and
8030 call check_trace_running.
8031 (trace_find_pc_command): Likewise.
8032 (trace_find_tracepoint_command): Likewise.
8033 (trace_find_line_command): Likewise.
8034 (trace_find_range_command): Likewise.
8035 * tracepoint.h (check_trace_running): Likewise.
8036 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8038 2014-03-06 Yao Qi <yao@codesourcery.com>
8040 * target.h (struct target_ops) <to_traceframe_info>: Use
8041 TARGET_DEFAULT_NORETURN (tcomplain ()).
8042 * target-delegates.c: Regenerated.
8044 2014-03-05 Pedro Alves <palves@redhat.com>
8047 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8048 void. Update comment.
8049 (dcache_xfer_memory): Delete.
8050 (dcache_read_memory_partial): New, based on the read bits of
8052 (dcache_update): Add status parameter. Use ULONGEST for len, and
8053 adjust. Discard cache lines if the reason for the update was
8055 * dcache.h (dcache_xfer_memory): Delete declaration.
8056 (dcache_read_memory_partial): New declaration.
8057 (dcache_update): Update prototype.
8058 * target.c (raw_memory_xfer_partial): Update the dcache here.
8059 (memory_xfer_partial_1): Don't handle dcache writes here.
8061 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8063 * remote-sim.c (gdbsim_load): Add const to prog.
8065 2014-03-03 Tom Tromey <tromey@redhat.com>
8067 * elfread.c (probe_key): Change to bfd_data.
8068 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8069 now per-BFD, not per-objfile.
8070 * stap-probe.c (stap_probe_destroy): Update comment.
8071 (handle_stap_probe): Allocate on the per-BFD obstack.
8073 2014-03-03 Tom Tromey <tromey@redhat.com>
8075 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8076 * breakpoint.c (create_longjmp_master_breakpoint): Use
8078 (add_location_to_breakpoint, bkpt_probe_insert_location)
8079 (bkpt_probe_remove_location): Update.
8080 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8081 * elfread.c (elf_symfile_relocate_probe): Remove.
8082 (elf_probe_fns): Update.
8083 (insert_exception_resume_breakpoint): Change type of "probe"
8084 parameter to bound_probe.
8085 (check_exception_resume): Update.
8086 * objfiles.c (objfile_relocate1): Don't relocate probes.
8087 * probe.c (bound_probe_s): New typedef.
8088 (parse_probes): Use get_probe_address. Set sal's objfile.
8089 (find_probe_by_pc): Return a bound_probe.
8090 (collect_probes): Return a VEC(bound_probe_s).
8091 (compare_probes): Update.
8092 (gen_ui_out_table_header_info): Change type of "probes"
8094 (info_probes_for_ops): Update.
8095 (get_probe_address): New function.
8096 (probe_safe_evaluate_at_pc): Update.
8097 * probe.h (struct probe_ops) <get_probe_address>: New field.
8098 <set_semaphore, clear_semaphore>: Add objfile parameter.
8099 (struct probe) <objfile>: Remove field.
8101 <address>: Update comment.
8102 (struct bound_probe): New.
8103 (find_probe_by_pc): Return a bound_probe.
8104 (get_probe_address): Declare.
8105 * solib-svr4.c (struct probe_and_action) <address>: New field.
8106 (hash_probe_and_action, equal_probe_and_action): Update.
8107 (register_solib_event_probe): Add address parameter.
8108 (solib_event_probe_at): Update.
8109 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8111 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8112 (stap_get_probe_address): New function.
8113 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8114 (compile_probe_arg): Update.
8115 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8117 (handle_stap_probe): Don't relocate the probe.
8118 (stap_relocate): Remove.
8119 (stap_gen_info_probes_table_values): Update.
8120 (stap_probe_ops): Remove stap_relocate.
8121 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8122 (debug_sym_probe_fns): Update.
8123 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8124 * symtab.c (init_sal): Use memset.
8125 * symtab.h (struct symtab_and_line) <objfile>: New field.
8126 * tracepoint.c (start_tracing, stop_tracing): Update.
8128 2014-03-03 Tom Tromey <tromey@redhat.com>
8130 * probe.h (parse_probes, find_probe_by_pc)
8131 (find_probes_in_objfile): Fix comments.
8133 2014-03-02 Doug Evans <xdje42@gmail.com>
8135 * infrun.c (handle_signal_stop): Replace test for
8136 TARGET_WAITKIND_STOPPED with an assert.
8138 2014-03-02 Doug Evans <xdje42@gmail.com>
8140 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8142 2014-03-02 Doug Evans <xdje42@gmail.com>
8144 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8146 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8148 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8150 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8152 * i386obsd-nat.c: Include "obsd-nat.h".
8153 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8155 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8157 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8159 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8161 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8163 * mips64obsd-nat.c: Include "obsd-nath".
8164 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8166 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8168 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8170 * amd64obsd-nat.c: Include "obsd-nat,h.
8171 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8173 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8175 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8177 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8178 (find_overload_match): Update call to find_oload_champ.
8179 (find_oload_champ_namespace_loop): Likewise
8181 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8183 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8185 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8186 * config/sparc/obsd64.mh: New file.
8187 * sparc64obsd-nat.c: New file.
8189 * obsd-nat.h: New file.
8190 * obsd-nat.c: New file.
8191 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8192 (ALLDEPFILES): Add obsd-nat.c.
8194 2014-02-28 Tom Tromey <tromey@redhat.com>
8196 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8197 * cli-out.h (cli_ui_out_impl): Now const.
8198 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8199 * ui-out.c (struct ui_out) <impl>: Now const.
8200 (default_ui_out_impl): Now const.
8201 (ui_out_new): Make 'impl' parameter const.
8202 * ui-out.h (ui_out_new): Update.
8204 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8206 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8208 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8210 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8212 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8214 Additional PR 8882 fix.
8215 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8217 2014-02-27 Pedro Alves <palves@redhat.com>
8219 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8222 2014-02-27 Pedro Alves <palves@redhat.com>
8225 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8226 * nat/linux-waitpid.c: Include string.h.
8227 (status_to_str): Moved here and made extern.
8228 * nat/linux-waitpid.h (status_to_str): New declaration.
8230 2014-02-27 Hui Zhu <hui@codesourcery.com>
8233 * infrun.c (ptid_match): Move ...
8234 * common/ptid.c (ptid_match): ... here.
8235 * inferior.h (ptid_match): Move ...
8236 * common/ptid.h (ptid_match): ... here.
8238 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8240 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8241 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8244 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8246 * obsd-tdep.c (obsd_auxv_parse): New function.
8247 (obsd_init_abi): Set auxv_parse.
8249 * gdbarch.sh (auxv_parse): New.
8250 * gdbarch.h: Regenerated.
8251 * gdbarch.c: Regenerated.
8252 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8254 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8256 * guile/scm-value.c (gdbscm_history_append_x): New function.
8257 (value_functions): Add it.
8259 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8261 * dwarf2read.c (attr_value_as_address): New function.
8262 (dwarf2_find_base_address, read_call_site_scope): Use
8263 attr_value_as_address in place of DW_ADDR.
8264 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8265 the low and high addresses. Slight rework of the handling
8266 of the high pc being a constant form, and limit it to
8267 DWARF verson 4 or higher.
8268 (dwarf2_record_block_ranges): Likewise.
8269 (read_partial_die): Likewise.
8270 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8272 2014-02-26 Tom Tromey <tromey@redhat.com>
8274 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8276 2014-02-26 Tom Tromey <tromey@redhat.com>
8278 * elfread.c (elf_read_minimal_symbols): Return early if
8279 minimal symbols have already been read. Add "ei" parameter.
8280 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8281 * minsyms.c (prim_record_minimal_symbol_full): Update.
8282 * objfiles.h (struct objstats) <n_minsyms>: Move...
8283 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8284 * symmisc.c (print_objfile_statistics): Update.
8286 2014-02-26 Tom Tromey <tromey@redhat.com>
8288 * elfread.c (elf_read_minimal_symbols): New function, from
8290 (elf_symfile_read): Call it.
8292 2014-02-26 Tom Tromey <tromey@redhat.com>
8294 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8295 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8296 (lookup_minimal_symbol_solib_trampoline)
8297 (lookup_minimal_symbol_by_pc_section_1)
8298 (lookup_minimal_symbol_and_objfile): Update.
8299 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8300 Don't allocate a minimal symbol if minsyms have already been read.
8301 (build_minimal_symbol_hash_tables): Update.
8302 (install_minimal_symbols): Do nothing if minsyms already read.
8303 Use the per-BFD obstack.
8304 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8305 * objfiles.c (allocate_objfile): Call
8306 terminate_minimal_symbol_table later.
8307 (have_minimal_symbols): Update.
8308 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8309 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8310 Move from struct objfile.
8311 <minsyms_read>: New field.
8312 (struct objfile) <msymbols, minimal_symbol_count,
8313 msymbol_hash, msymbol_demangled_hash>: Move.
8314 (ALL_OBJFILE_MSYMBOLS): Update.
8315 * symfile.c (read_symbols): Set minsyms_read.
8316 (reread_symbols): Update.
8317 * symmisc.c (dump_objfile, dump_msymbols): Update.
8319 2014-02-26 Tom Tromey <tromey@redhat.com>
8321 * minsyms.c (msymbols_sort): Remove.
8322 * minsyms.h (msymbols_sort): Remove.
8323 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8324 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8325 * elfread.c (elf_symtab_read): Don't add section offsets.
8326 * xcoffread.c (record_minimal_symbol): Don't add section offset
8327 to minimal symbol address.
8328 * somread.c (text_offset, data_offset): Remove.
8329 (som_symtab_read): Don't add section offsets to minimal symbol
8331 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8332 Don't add section offsets to minimal symbols.
8333 * coffread.c (coff_symtab_read): Don't add section offsets
8334 to minimal symbol addresses.
8335 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8336 to minimal symbol addresses.
8337 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8338 section offset to minimal symbol addresses.
8339 * mdebugread.c (parse_partial_symbols): Don't add section
8340 offset to minimal symbol addresses.
8341 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8342 offset to minimal symbol addresses.
8344 2014-02-26 Tom Tromey <tromey@redhat.com>
8346 * ada-lang.c (ada_main_name): Update.
8347 (ada_add_standard_exceptions): Update.
8348 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8349 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8350 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8351 * auxv.c (ld_so_xfer_auxv): Update.
8352 * avr-tdep.c (avr_scan_prologue): Update.
8353 * ax-gdb.c (gen_var_ref): Update.
8354 * blockframe.c (get_pc_function_start)
8355 (find_pc_partial_function_gnu_ifunc): Update.
8356 * breakpoint.c (create_overlay_event_breakpoint)
8357 (create_longjmp_master_breakpoint)
8358 (create_std_terminate_master_breakpoint)
8359 (create_exception_master_breakpoint): Update.
8360 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8361 * c-valprint.c (c_val_print): Update.
8362 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8363 * common/agent.c (agent_look_up_symbols): Update.
8364 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8365 * dwarf2loc.c (call_site_to_target_addr): Update.
8366 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8367 * elfread.c (elf_gnu_ifunc_record_cache)
8368 (elf_gnu_ifunc_resolve_by_got): Update.
8369 * findvar.c (default_read_var_value): Update.
8370 * frame.c (inside_main_func): Update.
8371 * frv-tdep.c (frv_frame_this_id): Update.
8372 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8373 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8375 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8376 (hppa_hpux_find_dummy_bpaddr): Update.
8377 * hppa-tdep.c (hppa_symbol_address): Update.
8378 * infcmd.c (until_next_command): Update.
8379 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8381 * linespec.c (minsym_found, add_minsym): Update.
8382 * linux-nat.c (get_signo): Update.
8383 * linux-thread-db.c (inferior_has_bug): Update.
8384 * m32c-tdep.c (m32c_return_value)
8385 (m32c_m16c_address_to_pointer): Update.
8386 * m32r-tdep.c (m32r_frame_this_id): Update.
8387 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8388 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8389 * maint.c (maintenance_translate_address): Update.
8390 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8391 (frob_address): New function.
8392 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8393 frob_address. Rename parameter to "pc_in".
8394 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8396 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8398 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8399 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8400 * objc-lang.c (find_objc_msgsend): Update.
8401 * objfiles.c (objfile_relocate1): Update.
8402 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8403 * p-valprint.c (pascal_val_print): Update.
8404 * parse.c (write_exp_msymbol): Update.
8405 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8406 (ppc_elfv2_skip_entrypoint): Update.
8407 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8408 * printcmd.c (build_address_symbolic, msym_info)
8409 (address_info): Update.
8410 * proc-service.c (ps_pglobal_lookup): Update.
8411 * psymtab.c (find_pc_sect_psymtab_closer)
8412 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8413 Change msymbol parameter to bound_minimal_symbol.
8414 * ravenscar-thread.c (get_running_thread_id): Update.
8415 * remote.c (remote_check_symbols): Update.
8416 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8418 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8419 * solib-dsbt.c (lm_base): Update.
8420 * solib-frv.c (lm_base, main_got): Update.
8421 * solib-irix.c (locate_base): Update.
8422 * solib-som.c (som_solib_create_inferior_hook)
8423 (link_map_start): Update.
8424 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8425 * solib-svr4.c (elf_locate_base, enable_break): Update.
8426 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8427 (flush_ea_cache): Update.
8428 * stabsread.c (define_symbol, scan_file_globals): Update.
8429 * stack.c (find_frame_funname): Update.
8430 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8431 (debug_qf_find_pc_sect_symtab): Update.
8432 * symfile.c (simple_read_overlay_table)
8433 (simple_overlay_update): Update.
8434 * symfile.h (struct quick_symbol_functions)
8435 <find_pc_sect_symtab>: Change type of msymbol to
8436 bound_minimal_symbol.
8437 * symmisc.c (dump_msymbols): Update.
8438 * symtab.c (find_pc_sect_symtab_via_partial)
8439 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8440 (search_symbols, print_msymbol_info): Update.
8441 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8442 (MSYMBOL_VALUE_ADDRESS): Redefine.
8443 (BMSYMBOL_VALUE_ADDRESS): New macro.
8444 * tracepoint.c (scope_info): Update.
8445 * tui/tui-disasm.c (tui_find_disassembly_address)
8446 (tui_get_begin_asm_address): Update.
8447 * valops.c (find_function_in_inferior): Update.
8448 * value.c (value_static_field, value_fn_field): Update.
8450 2014-02-26 Tom Tromey <tromey@redhat.com>
8452 * ada-lang.c (ada_update_initial_language): Update.
8453 (ada_main_name, ada_has_this_exception_support): Update.
8454 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8455 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8456 * arm-tdep.c (arm_skip_stub): Update.
8457 * auxv.c (ld_so_xfer_auxv): Update.
8458 * avr-tdep.c (avr_scan_prologue): Update.
8459 * ax-gdb.c (gen_var_ref): Update.
8460 * breakpoint.c (struct breakpoint_objfile_data)
8461 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8462 type to bound_minimal_symbol.
8463 (create_overlay_event_breakpoint)
8464 (create_longjmp_master_breakpoint)
8465 (create_std_terminate_master_breakpoint)
8466 (create_exception_master_breakpoint): Update.
8467 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8468 * c-exp.y (classify_name): Update.
8469 * coffread.c (coff_symfile_read): Update.
8470 * common/agent.c (agent_look_up_symbols): Update.
8471 * d-lang.c (d_main_name): Update.
8472 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8473 * dec-thread.c (enable_dec_thread): Update.
8474 * dwarf2loc.c (call_site_to_target_addr): Update.
8475 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8476 * eval.c (evaluate_subexp_standard): Update.
8477 * findvar.c (struct minsym_lookup_data) <result>: Change type
8478 to bound_minimal_symbol.
8480 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8481 * frame.c (inside_main_func): Update.
8482 * frv-tdep.c (frv_frame_this_id): Update.
8483 * gcore.c (call_target_sbrk): Update.
8484 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8485 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8487 * go-lang.c (go_main_name): Update.
8488 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8489 (hppa_hpux_find_import_stub_for_addr): Update.
8490 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8491 Update. Change return type.
8492 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8494 * jit.c (jit_breakpoint_re_set_internal): Update.
8495 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8497 * linux-nat.c (get_signo): Update.
8498 * linux-thread-db.c (inferior_has_bug): Update
8499 * m32c-tdep.c (m32c_return_value)
8500 (m32c_m16c_address_to_pointer): Update.
8501 * m32r-tdep.c (m32r_frame_this_id): Update.
8502 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8503 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8504 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8505 lookup_minimal_symbol. Change return type.
8506 (lookup_minimal_symbol): Remove.
8507 (lookup_bound_minimal_symbol): Update.
8508 (lookup_minimal_symbol_text): Change return type.
8509 (lookup_minimal_symbol_solib_trampoline): Change return type.
8510 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8511 (lookup_minimal_symbol_solib_trampoline): Change return type.
8512 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8513 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8514 (value_nsstring, find_imps): Update.
8515 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8516 * p-lang.c (pascal_main_name): Update.
8517 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8518 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8519 * proc-service.c (ps_pglobal_lookup): Update.
8520 * ravenscar-thread.c (get_running_thread_msymbol): Change
8522 (has_ravenscar_runtime, get_running_thread_id): Update.
8523 * remote.c (remote_check_symbols): Update.
8524 * sol-thread.c (ps_pglobal_lookup): Update.
8525 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8526 * solib-dsbt.c (lm_base): Update.
8527 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8529 * solib-irix.c (locate_base): Update.
8530 * solib-som.c (som_solib_create_inferior_hook)
8531 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8533 * solib-spu.c (spu_enable_break): Update.
8534 * solib-svr4.c (elf_locate_base, enable_break): Update.
8535 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8536 (flush_ea_cache): Update.
8537 * stabsread.c (define_symbol): Update.
8538 * symfile.c (simple_read_overlay_table): Update.
8539 * symtab.c (find_pc_sect_line): Update.
8540 * tracepoint.c (scope_info): Update.
8541 * tui-disasm.c (tui_get_begin_asm_address): Update.
8542 * value.c (value_static_field): Update.
8544 2014-02-26 Tom Tromey <tromey@redhat.com>
8546 * minsyms.c (prim_record_minimal_symbol_full): Use
8547 SET_MSYMBOL_VALUE_ADDRESS.
8548 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8549 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8550 SET_MSYMBOL_VALUE_ADDRESS.
8551 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8552 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8554 2014-02-26 Tom Tromey <tromey@redhat.com>
8556 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8557 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8558 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8559 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8560 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8561 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8562 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8563 * ada-lang.c (ada_main_name): Update.
8564 (ada_lookup_simple_minsym): Update.
8565 (ada_make_symbol_completion_list): Update.
8566 (ada_add_standard_exceptions): Update.
8567 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8568 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8569 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8570 * arm-tdep.c (skip_prologue_function): Update.
8571 (arm_skip_stack_protector, arm_skip_stub): Update.
8572 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8573 (arm_wince_skip_main_prologue): Update.
8574 * auxv.c (ld_so_xfer_auxv): Update.
8575 * avr-tdep.c (avr_scan_prologue): Update.
8576 * ax-gdb.c (gen_var_ref): Update.
8577 * block.c (call_site_for_pc): Update.
8578 * blockframe.c (get_pc_function_start): Update.
8579 (find_pc_partial_function_gnu_ifunc): Update.
8580 * breakpoint.c (create_overlay_event_breakpoint): Update.
8581 (create_longjmp_master_breakpoint): Update.
8582 (create_std_terminate_master_breakpoint): Update.
8583 (create_exception_master_breakpoint): Update.
8584 (resolve_sal_pc): Update.
8585 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8586 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8588 * c-valprint.c (c_val_print): Update.
8589 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8590 * coffread.c (coff_symfile_read): Update.
8591 * common/agent.c (agent_look_up_symbols): Update.
8592 * dbxread.c (find_stab_function_addr): Update.
8593 (end_psymtab): Update.
8594 * dwarf2loc.c (call_site_to_target_addr): Update.
8595 (func_verify_no_selftailcall): Update.
8596 (tailcall_dump): Update.
8597 (call_site_find_chain_1): Update.
8598 (dwarf_expr_reg_to_entry_parameter): Update.
8599 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8600 (elf_gnu_ifunc_resolve_by_got): Update.
8601 * f-valprint.c (info_common_command): Update.
8602 * findvar.c (read_var_value): Update.
8603 * frame.c (get_prev_frame_1): Update.
8604 (inside_main_func): Update.
8605 * frv-tdep.c (frv_skip_main_prologue): Update.
8606 (frv_frame_this_id): Update.
8607 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8608 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8609 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8610 (gnuv3_skip_trampoline): Update.
8611 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8612 (hppa64_hpux_in_solib_call_trampoline): Update.
8613 (hppa_hpux_skip_trampoline_code): Update.
8614 (hppa64_hpux_search_dummy_call_sequence): Update.
8615 (hppa_hpux_find_import_stub_for_addr): Update.
8616 (hppa_hpux_find_dummy_bpaddr): Update.
8617 * hppa-tdep.c (hppa_symbol_address)
8618 (hppa_lookup_stub_minimal_symbol): Update.
8619 * i386-tdep.c (i386_skip_main_prologue): Update.
8620 (i386_pe_skip_trampoline_code): Update.
8621 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8622 * infcall.c (get_function_name): Update.
8623 * infcmd.c (until_next_command): Update.
8624 * jit.c (jit_breakpoint_re_set_internal): Update.
8625 (jit_inferior_init): Update.
8626 * linespec.c (minsym_found): Update.
8627 (add_minsym): Update.
8628 * linux-fork.c (info_checkpoints_command): Update.
8629 * linux-nat.c (get_signo): Update.
8630 * linux-thread-db.c (inferior_has_bug): Update.
8631 * m32c-tdep.c (m32c_return_value): Update.
8632 (m32c_m16c_address_to_pointer): Update.
8633 (m32c_m16c_pointer_to_address): Update.
8634 * m32r-tdep.c (m32r_frame_this_id): Update.
8635 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8636 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8637 * maint.c (maintenance_translate_address): Update.
8638 * minsyms.c (add_minsym_to_hash_table): Update.
8639 (add_minsym_to_demangled_hash_table): Update.
8640 (msymbol_objfile): Update.
8641 (lookup_minimal_symbol): Update.
8642 (iterate_over_minimal_symbols): Update.
8643 (lookup_minimal_symbol_text): Update.
8644 (lookup_minimal_symbol_by_pc_name): Update.
8645 (lookup_minimal_symbol_solib_trampoline): Update.
8646 (lookup_minimal_symbol_by_pc_section_1): Update.
8647 (lookup_minimal_symbol_and_objfile): Update.
8648 (prim_record_minimal_symbol_full): Update.
8649 (compare_minimal_symbols): Update.
8650 (compact_minimal_symbols): Update.
8651 (build_minimal_symbol_hash_tables): Update.
8652 (install_minimal_symbols): Update.
8653 (terminate_minimal_symbol_table): Update.
8654 (find_solib_trampoline_target): Update.
8655 (minimal_symbol_upper_bound): Update.
8656 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8657 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8658 (mips_skip_pic_trampoline_code): Update.
8659 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8660 * objc-lang.c (selectors_info): Update.
8661 (classes_info): Update.
8662 (find_methods): Update.
8663 (find_imps): Update.
8664 (find_objc_msgsend): Update.
8665 * objfiles.c (objfile_relocate1): Update.
8666 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8667 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8668 * p-valprint.c (pascal_val_print): Update.
8669 * parse.c (write_exp_msymbol): Update.
8670 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8671 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8672 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8673 * printcmd.c (build_address_symbolic): Update.
8675 (address_info): Update.
8676 * proc-service.c (ps_pglobal_lookup): Update.
8677 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8678 (find_pc_sect_psymtab): Update.
8679 * python/py-framefilter.c (py_print_frame): Update.
8680 * ravenscar-thread.c (get_running_thread_id): Update.
8681 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8683 * remote.c (remote_check_symbols): Update.
8684 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8685 (rs6000_skip_trampoline_code): Update.
8686 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8687 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8688 * solib-dsbt.c (lm_base): Update.
8689 * solib-frv.c (lm_base): Update.
8691 * solib-irix.c (locate_base): Update.
8692 * solib-som.c (som_solib_create_inferior_hook): Update.
8693 (som_solib_desire_dynamic_linker_symbols): Update.
8694 (link_map_start): Update.
8695 * solib-spu.c (spu_enable_break): Update.
8696 (ocl_enable_break): Update.
8697 * solib-svr4.c (elf_locate_base): Update.
8698 (enable_break): Update.
8699 * spu-tdep.c (spu_get_overlay_table): Update.
8700 (spu_catch_start): Update.
8701 (flush_ea_cache): Update.
8702 * stabsread.c (define_symbol): Update.
8703 (scan_file_globals): Update.
8704 * stack.c (find_frame_funname): Update.
8705 (frame_info): Update.
8706 * symfile.c (simple_read_overlay_table): Update.
8707 (simple_overlay_update): Update.
8708 * symmisc.c (dump_msymbols): Update.
8709 * symtab.c (fixup_section): Update.
8710 (find_pc_sect_line): Update.
8711 (skip_prologue_sal): Update.
8712 (search_symbols): Update.
8713 (print_msymbol_info): Update.
8714 (rbreak_command): Update.
8715 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8716 (completion_list_objc_symbol): Update.
8717 (default_make_symbol_completion_list_break_on): Update.
8718 * tracepoint.c (scope_info): Update.
8719 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8720 (tui_get_begin_asm_address): Update.
8721 * valops.c (find_function_in_inferior): Update.
8722 * value.c (value_static_field): Update.
8723 (value_fn_field): Update.
8725 2014-02-26 Tom Tromey <tromey@redhat.com>
8727 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8728 bound minimal symbols. Move code that knows about minsym
8730 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8732 * minsyms.h (minimal_symbol_upper_bound): Declare.
8733 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8734 minimal_symbol_upper_bound.
8736 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8738 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8739 Use the type's name if its basic type does not have a tag.
8741 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8743 * dwarf2read.c (read_subrange_type): Add comment.
8745 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8747 * dwarf2read.c (update_enumeration_type_from_children): New
8748 function, mostly extracted from process_structure_scope.
8749 (read_enumeration_type): Call update_enumeration_type_from_children.
8750 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8751 and flag_flag_enum fields.
8753 2014-02-26 Pedro Alves <palves@redhat.com>
8755 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8756 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8757 to_xfer_partial method.
8759 2014-02-26 Pedro Alves <palves@redhat.com>
8761 * target.c (complete_target_initialization): Don't install
8762 default_xfer_partial as to_xfer_partial hook.
8764 (update_current_target): Don't INHERIT nor de_fault
8765 deprecated_xfer_memory. Delete de_fault macro.
8766 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8767 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8768 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8771 2014-02-26 Pedro Alves <palves@redhat.com>
8773 * go32-nat.c (my_write_child): New function.
8774 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8775 (go32_xfer_partial): New function.
8776 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8777 Instead install a to_xfer_partial hook.
8779 2014-02-26 Pedro Alves <palves@redhat.com>
8781 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8782 to_xfer_partial helper. Rewrite.
8783 (procfs_xfer_partial): New function.
8784 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8785 Install a to_xfer_partial hook.
8787 2014-02-26 Pedro Alves <palves@redhat.com>
8789 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8790 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8791 (m32r_xfer_partial): New function.
8792 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8793 Install a to_xfer_partial hook.
8795 2014-02-26 Pedro Alves <palves@redhat.com>
8797 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8799 (mips_xfer_partial): New function.
8800 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8801 hook. Install a to_xfer_partial hook.
8803 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8805 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8806 * gdbtypes.c (create_array_type_with_stride): New function,
8807 renaming create_array_type, but with an added parameter
8808 called "bit_stride".
8809 (create_array_type): Re-implement using
8810 create_array_type_with_stride.
8811 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8812 and DW_AT_bit_stride attributes.
8814 2014-02-26 Pedro Alves <palves@redhat.com>
8816 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8817 task-specific breakpoints.
8819 2014-02-25 Pedro Alves <palves@redhat.com>
8821 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8822 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8824 2014-02-25 Stan Shebs <stan@codesourcery.com>
8826 * defs.h: Annotate comments for Doxygen.
8828 2014-02-25 Tom Tromey <tromey@redhat.com>
8830 * target.h (target_ignore): Don't declare.
8831 * target.c (target_ignore): Remove.
8833 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8836 * auto-load.c (auto_load_objfile_script_1): Change filename to
8839 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8841 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8842 documentation. Adjust prototype to match the target_ops
8843 to_xfer_partial method. Adjust implementation accordingly.
8845 2014-02-25 Hui Zhu <hui@codesourcery.com>
8847 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8850 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8852 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8853 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8854 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8855 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8856 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8857 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8858 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8859 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8861 (rl78_register_type): Use a data pointer type for SP and
8862 new pseudo registers mentioned above. Use a 16 bit integer
8863 type for all other register pairs.
8864 (rl78_register_name, rl78_g10_register_name): Update for
8865 new pseudo registers.
8866 (rl78_pseudo_register_read): Likewise.
8867 (rl78_pseudo_register_write): Likewise.
8868 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8869 to the newly added pseudo registers.
8871 2014-02-24 Doug Evans <dje@google.com>
8873 * value.c (record_latest_value): Fix comment.
8874 * printcmd.c (print_command_1): Remove code to handle -1 return from
8875 record_latest_value.
8877 2014-02-24 Pedro Alves <palves@redhat.com>
8879 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8880 deprecated_xfer_memory hook.
8881 (procfs_xfer_partial): Call procfs_xfer_memory instead
8882 of the deprecated_xfer_memory target hook.
8883 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8886 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8888 * windows-nat.c (windows_xfer_shared_libraries): Return
8889 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8890 requested object is TARGET_OBJECT_LIBRARIES.
8892 2014-02-24 Yao Qi <yao@codesourcery.com>
8894 * target.h (enum target_xfer_status)
8895 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8896 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8898 * corefile.c (memory_error_message): User updated.
8899 * exec.c (section_table_read_available_memory): Likewise.
8900 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8901 * target.c (target_xfer_status_to_string): Likewise.
8902 (raw_memory_xfer_partial): Likewise.
8903 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8904 * valops.c (read_value_memory): Likewise.
8905 * exec.h: Update comments.
8907 2014-02-24 Yao Qi <yao@codesourcery.com>
8909 * target.c (target_xfer_status_to_string): Rename argument err
8911 * target.h (target_xfer_status_to_string): Update declaration.
8912 Replace target_xfer_error_to_string with
8913 target_xfer_status_to_string in comment.
8915 2014-02-24 Yao Qi <yao@codesourcery.com>
8917 * mips-linux-nat.c (super_close): Update its type.
8918 (mips_linux_close): Pass 'self' to super_close.
8920 2014-02-24 Yao Qi <yao@codesourcery.com>
8922 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8923 * corefile.c (read_memory): Adjusted.
8924 * target.c (target_write_with_progress): Adjusted.
8926 2014-02-23 Yao Qi <yao@codesourcery.com>
8930 2013-10-25 Yao Qi <yao@codesourcery.com>
8932 * remote.c (remote_traceframe_info): Return early if
8933 traceframe is not selected.
8935 2013-07-19 Yao Qi <yao@codesourcery.com>
8937 * target.c (update_current_target): Change the default action
8938 of 'to_traceframe_info' from tcomplain to return_zero.
8939 * target.h (struct target_ops) <to_traceframe_info>: Add more
8942 2014-02-23 Yao Qi <yao@codesourcery.com>
8944 * valops.c (read_value_memory): Rewrite it. Call
8945 target_xfer_partial in a loop.
8946 * exec.h (section_table_available_memory): Remove declaration.
8947 Move comments to ...
8948 * exec.c (section_table_available_memory): ... here. Make it
8951 2014-02-23 Yao Qi <yao@codesourcery.com>
8953 * exec.c (section_table_read_available_memory): New function.
8954 * exec.h (section_table_read_available_memory): Declare.
8955 * ctf.c (ctf_xfer_partial): Call
8956 section_table_read_available_memory.
8957 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8959 2014-02-23 Yao Qi <yao@codesourcery.com>
8961 * ctf.c (ctf_xfer_partial): Move code to ...
8962 * exec.c (exec_read_partial_read_only): ... it. New function.
8963 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8964 * tracefile.c: Include "exec.h".
8965 * exec.h (exec_read_partial_read_only): Declare.
8967 2014-02-23 Yao Qi <yao@codesourcery.com>
8969 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8970 (tfile_has_memory): Remove.
8971 (init_tfile_ops): Don't set fields to_has_all_memory and
8972 to_has_memory of tfile_ops.
8973 * tracefile.c (tracefile_has_all_memory): New function.
8974 (tracefile_has_memory): New function.
8975 (init_tracefile_ops): Initialize fields to_has_all_memory and
8976 to_has_memory of 'ops'.
8978 2014-02-23 Yao Qi <yao@codesourcery.com>
8980 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8981 (ctf_thread_alive, ctf_get_trace_status): Remove.
8982 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8984 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8985 (tfile_has_stack, tfile_has_registers): Remove.
8986 (tfile_thread_alive): Remove.
8987 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8989 * tracefile.c (tracefile_has_stack): New function.
8990 (tracefile_has_registers): New function.
8991 (tracefile_thread_alive): New function.
8992 (tracefile_get_trace_status): New function.
8993 (init_tracefile_ops): New function.
8994 * tracefile.h (init_tracefile_ops): Declare.
8996 2014-02-23 Yao Qi <yao@codesourcery.com>
8998 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8999 (O_LARGEFILE): Likewise.
9000 (tfile_ops): Likewise.
9001 (TRACE_HEADER_SIZE): Likewise.
9002 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9003 (cur_data_size): Likewise.
9004 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9005 (tfile_close, tfile_files_info): Likewise.
9006 (tfile_get_trace_status): Likewise.
9007 (tfile_get_tracepoint_status): Likewise.
9008 (tfile_get_traceframe_address): Likewise.
9009 (tfile_trace_find, match_blocktype): Likewise.
9010 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9011 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9012 (tfile_get_trace_state_variable_value): Likewise.
9013 (tfile_has_all_memory, tfile_has_memory): Likewise.
9014 (tfile_has_stack, tfile_has_registers): Likewise.
9015 (tfile_thread_alive, build_traceframe_info): Likewise.
9016 (tfile_traceframe_info, init_tfile_ops): Likewise.
9017 (_initialize_tracepoint): Don't call init_tfile_ops
9018 and add_target_with_completer.
9019 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9020 exec.h, completer.h and filenames.h.
9021 (_initialize_tracefile_tfile): New function.
9023 2014-02-23 Yao Qi <yao@codesourcery.com>
9025 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9027 (HFILES_NO_SRCDIR): Add tracefile.h.
9028 * ctf.c: Include "tracefile.h".
9029 * tracefile.h: New file.
9030 * tracefile.c: New file
9031 * tracefile-tfile.c: New file.
9032 * tracepoint.c: Include "tracefile.h".
9033 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9034 (stop_reason_names): Add const.
9035 (trace_file_writer_xfree): Move it to tracefile.c.
9036 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9037 (trace_save_ctf): Likewise.
9038 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9039 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9040 (tfile_write_header, tfile_write_regblock_type): Likewise.
9041 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9042 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9043 (tfile_write_raw_data, tfile_end): Likewise.
9044 (tfile_trace_file_writer_new): Likewise.
9045 (free_uploaded_tp): Make it extern.
9046 (free_uploaded_tsv): Make it extern.
9047 (_initialize_tracepoint): Move code to register command 'tsave'
9049 * tracepoint.h (stop_reason_names): Declare.
9050 (struct trace_frame_write_ops): Move it to tracefile.h.
9051 (struct trace_file_write_ops): Likewise.
9052 (struct trace_file_writer): Likewise.
9053 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9055 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9058 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9060 (get_cores_used_by_process): New parameter num_cores, use it.
9061 (linux_xfer_osdata_processes): Pass num_cores to it.
9062 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9065 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9067 * target.c (memory_xfer_partial): Fix length arg in call to
9068 breakpoint_xfer_memory.
9070 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9073 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9074 number comes after the + or - signs. Adjust length of register
9075 name to be extracted.
9077 2014-02-20 Tom Tromey <tromey@redhat.com>
9079 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9080 (ada_varobj_ops): Mark "extern".
9082 2014-02-20 Tom Tromey <tromey@redhat.com>
9084 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9086 2014-02-20 Doug Evans <xdje42@gmail.com>
9088 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9089 All callers updated.
9090 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9091 All callers updated.
9092 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9093 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9095 2014-02-20 lin zuojian <manjian2006@gmail.com>
9096 Joel Brobecker <brobecker@adacore.com>
9097 Doug Evans <xdje42@gmail.com>
9100 * dwarf2read.c (struct die_info): New member in_process.
9101 (reset_die_in_process): New function.
9102 (process_die): Set it at the start, reset when returning.
9103 (inherit_abstract_dies): Only call process_die if origin_child_die
9104 not already being processed.
9106 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9108 * windows-nat.c (handle_unload_dll): Add function documentation.
9109 (do_initial_windows_stuff): Add comment explaining why we wait
9110 until after inferior initialization has finished before
9111 processing all DLLs.
9113 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9115 * windows-nat.c (get_module_name): Delete.
9116 (windows_get_exec_module_filename): New function, mostly
9117 inspired from get_module_name.
9118 (windows_pid_to_exec_file): Replace call to get_module_name
9119 by call to windows_get_exec_module_filename.
9121 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9123 * windows-nat.c (handle_load_dll): Rewrite this function's
9124 introductory comment. Remove code using get_module_name
9125 to get the DLL's name.
9127 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9129 * windows-nat.c (get_windows_debug_event): Ignore
9130 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9131 if windows_initialization_done == 0.
9132 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9133 Adjust implementation to always load all DLLs.
9134 (do_initial_windows_stuff): Replace call to
9135 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9137 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9139 * windows-nat.c (_initialize_windows_nat): Deprecate the
9140 "dll-symbols" command. Turn the "add-shared-symbol-files"
9141 and "assf" aliases into commands, and deprecate them as well.
9142 * NEWS: Add entry explaining that "dll-symbols" and its two
9143 aliases are now deprecated.
9145 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9147 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9148 new-line in debug string. Remove trailing spaces.
9150 2014-02-19 Stan Shebs <stan@codesourcery.com>
9152 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9154 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9156 * NEWS: Add entry for the new feature
9157 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9160 2014-02-19 Stan Shebs <stan@codesourcery.com>
9162 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9164 2014-02-19 Pedro Alves <palves@redhat.com>
9166 * common/ptid.h (struct ptid): Mention that process_stratum
9167 targets should prefer ptid.lwp.
9169 2014-02-19 Pedro Alves <palves@redhat.com>
9171 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9172 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9173 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9174 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9175 store remote thread ids rather than ptid.tid.
9176 (_initialize_remote): Adjust.
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9180 * target.c (target_get_unwinder): Rewrite.
9181 (target_get_tailcall_unwinder): Rewrite.
9182 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9183 (record_btrace_to_get_tailcall_unwinder): New function.
9184 (init_record_btrace_ops): Update.
9185 * target.h (struct target_ops) <to_get_unwinder,
9186 to_get_tailcall_unwinder>: Now function pointers. Use
9187 TARGET_DEFAULT_RETURN.
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9191 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9193 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9199 * target-delegates.c: Rebuild.
9200 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9201 TARGET_DEFAULT_FUNC.
9202 * target.c (default_target_decr_pc_after_break): Rename from
9203 forward_target_decr_pc_after_break. Simplify.
9204 (target_decr_pc_after_break): Rely on delegation.
9206 2014-02-19 Tom Tromey <tromey@redhat.com>
9208 * target.c (update_current_target): Do not INHERIT to_doc or
9209 to_magic. Do not de_fault to_open or to_close.
9211 2014-02-19 Tom Tromey <tromey@redhat.com>
9213 * gcore.h (objfile_find_memory_regions): Declare.
9214 * gcore.c (objfile_find_memory_regions): No longer static. Add
9216 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9217 * exec.c: Include gcore.h.
9218 (exec_set_find_memory_regions): Remove.
9219 (exec_find_memory_regions): Remove.
9220 (exec_do_find_memory_regions): Remove.
9221 (init_exec_ops): Update.
9222 * defs.h (exec_set_find_memory_regions): Remove.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * target-delegates.c: Rebuild.
9227 * target.h (struct target_ops) <to_extra_thread_info,
9228 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9229 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9230 not 0, in TARGET_DEFAULT_RETURN.
9232 2014-02-19 Tom Tromey <tromey@redhat.com>
9234 * target.c (complete_target_initialization): Remove casts. Use
9235 return_zero_has_execution.
9236 (return_zero): Add "ignore" argument.
9237 (return_zero_has_execution): New function.
9238 (init_dummy_target): Remove casts. Use
9239 return_zero_has_execution.
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9243 * target.c (update_current_target): Update comments. Do not
9246 2014-02-19 Tom Tromey <tromey@redhat.com>
9248 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9250 * corelow.c (core_read_description): Delegate when needed.
9251 * remote.c (remote_read_description): Delegate when needed.
9252 * target-delegates.c: Rebuild.
9253 * target.c (target_read_description): Rewrite.
9254 * target.h (struct target_ops) <to_read_description>: Update
9255 comment. Use TARGET_DEFAULT_RETURN.
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9259 * target-delegates.c: Rebuild.
9260 * target.c (update_current_target): Don't inherit or default
9262 (find_default_run_target): Check against delegate_can_run.
9263 * target.h (struct target_ops) <to_can_run>: Use
9264 TARGET_DEFAULT_RETURN.
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9268 * target-delegates.c: Rebuild.
9269 * target.c (target_disconnect): Unconditionally delegate.
9270 * target.h (struct target_ops) <to_disconnect>: Use
9271 TARGET_DEFAULT_NORETURN.
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * record.c (record_stop): Unconditionally delegate.
9276 * target-delegates.c: Rebuild.
9277 * target.c (target_stop_recording): Unconditionally delegate.
9278 * target.h (struct target_ops) <to_stop_recording>: Use
9279 TARGET_DEFAULT_IGNORE.
9281 2014-02-19 Tom Tromey <tromey@redhat.com>
9283 * target-delegates.c: Rebuild.
9284 * target.c (target_enable_btrace): Unconditionally delegate.
9285 * target.h (struct target_ops) <to_enable_btrace>: Use
9286 TARGET_DEFAULT_NORETURN.
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9290 * target-delegates.c: Rebuild.
9291 * target.c (target_read_btrace): Unconditionally delegate.
9292 * target.h (struct target_ops) <to_read_btrace>: Use
9293 TARGET_DEFAULT_NORETURN.
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * target-delegates.c: Rebuild.
9298 * target.c (target_teardown_btrace): Unconditionally delegate.
9299 * target.h (struct target_ops) <to_teardown_btrace>: Use
9300 TARGET_DEFAULT_NORETURN.
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * target-delegates.c: Rebuild.
9305 * target.c (target_disable_btrace): Unconditionally delegate.
9306 * target.h (struct target_ops) <to_disable_btrace>: Use
9307 TARGET_DEFAULT_NORETURN.
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9311 * target-delegates.c: Rebuild.
9312 * target.c (default_search_memory): New function.
9313 (simple_search_memory): Update comment.
9314 (target_search_memory): Unconditionally delegate.
9315 * target.h (struct target_ops) <to_search_memory>: Use
9316 TARGET_DEFAULT_FUNC.
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9320 * auxv.c (default_auxv_parse): No longer static.
9321 (target_auxv_parse): Unconditionally delegate.
9322 * auxv.h (default_auxv_parse): Declare.
9323 * target-delegates.c: Rebuild.
9324 * target.c: Include auxv.h.
9325 * target.h (struct target_ops) <to_auxv_parse>: Use
9326 TARGET_DEFAULT_FUNC.
9328 2014-02-19 Tom Tromey <tromey@redhat.com>
9330 * target-delegates.c: Rebuild.
9331 * target.c (target_memory_map): Unconditionally delegate.
9332 * target.h (struct target_ops) <to_memory_map>: Use
9333 TARGET_DEFAULT_RETURN.
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9337 * target-delegates.c: Rebuild.
9338 * target.c (target_thread_alive): Unconditionally delegate.
9339 * target.h (struct target_ops) <to_thread_alive>: Use
9340 TARGET_DEFAULT_RETURN.
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9344 * target-delegates.c: Rebuild.
9345 * target.c (target_save_record): Unconditionally delegate.
9346 * target.h (struct target_ops) <to_save_record>: Use
9347 TARGET_DEFAULT_NORETURN.
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9351 * target-delegates.c: Rebuild.
9352 * target.c (target_delete_record): Unconditionally delegate.
9353 * target.h (struct target_ops) <to_delete_record>: Use
9354 TARGET_DEFAULT_NORETURN.
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9358 * target-delegates.c: Rebuild.
9359 * target.c (target_record_is_replaying): Unconditionally
9361 * target.h (struct target_ops) <to_record_is_replaying>: Use
9362 TARGET_DEFAULT_RETURN.
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9366 * target-delegates.c: Rebuild.
9367 * target.c (target_goto_record_begin): Unconditionally delegate.
9368 * target.h (struct target_ops) <to_goto_record_begin>: Use
9369 TARGET_DEFAULT_NORETURN.
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9373 * target-delegates.c: Rebuild.
9374 * target.c (target_goto_record_end): Unconditionally delegate.
9375 * target.h (struct target_ops) <to_goto_record_end>: Use
9376 TARGET_DEFAULT_NORETURN.
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target-delegates.c: Rebuild.
9381 * target.c (target_goto_record): Unconditionally delegate.
9382 * target.h (struct target_ops) <to_goto_record>: Use
9383 TARGET_DEFAULT_NORETURN.
9385 2014-02-19 Tom Tromey <tromey@redhat.com>
9387 * target-delegates.c: Rebuild.
9388 * target.c (target_insn_history): Unconditionally delegate.
9389 * target.h (struct target_ops) <to_insn_history>: Use
9390 TARGET_DEFAULT_NORETURN.
9392 2014-02-19 Tom Tromey <tromey@redhat.com>
9394 * target-delegates.c: Rebuild.
9395 * target.c (target_insn_history_from): Unconditionally delegate.
9396 * target.h (struct target_ops) <to_insn_history_from>: Use
9397 TARGET_DEFAULT_NORETURN.
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9401 * target-delegates.c: Rebuild.
9402 * target.c (target_insn_history_range): Unconditionally delegate.
9403 * target.h (struct target_ops) <to_insn_history_range>: Use
9404 TARGET_DEFAULT_NORETURN.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target-delegates.c: Rebuild.
9409 * target.c (target_call_history): Unconditionally delegate.
9410 * target.h (struct target_ops) <to_call_history>: Use
9411 TARGET_DEFAULT_NORETURN.
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9415 * target-delegates.c: Rebuild.
9416 * target.c (target_call_history_from): Unconditionally delegate.
9417 * target.h (struct target_ops) <to_call_history_from>: Use
9418 TARGET_DEFAULT_NORETURN.
9420 2014-02-19 Tom Tromey <tromey@redhat.com>
9422 * target-delegates.c: Rebuild.
9423 * target.c (target_call_history_range): Unconditionally delegate.
9424 * target.h (struct target_ops) <to_call_history_range>: Use
9425 TARGET_DEFAULT_NORETURN.
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target-delegates.c: Rebuild.
9430 * target.c (target_verify_memory): Unconditionally delegate.
9431 * target.h (struct target_ops) <to_verify_memory>: Use
9432 TARGET_DEFAULT_NORETURN.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target-delegates.c: Rebuild.
9437 * target.c (target_core_of_thread): Unconditionally delegate.
9438 * target.h (struct target_ops) <to_core_of_thread>: Use
9439 TARGET_DEFAULT_RETURN.
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * target-delegates.c: Rebuild.
9444 * target.c (target_flash_done): Unconditionally delegate.
9445 * target.h (struct target_ops) <to_flash_done>: Use
9446 TARGET_DEFAULT_NORETURN.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * target-delegates.c: Rebuild.
9451 * target.c (target_flash_erase): Unconditionally delegate.
9452 * target.h (struct target_ops) <to_flash_erase>: Use
9453 TARGET_DEFAULT_NORETURN.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * target-delegates.c: Rebuild.
9458 * target.c (target_get_section_table): Unconditionally delegate.
9459 * target.h (struct target_ops) <to_get_section_table>: Use
9460 TARGET_DEFAULT_RETURN.
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target-delegates.c: Rebuild.
9465 * target.c (target_pid_to_str): Unconditionally delegate.
9466 (init_dummy_target): Don't initialize to_pid_to_str.
9467 (default_pid_to_str): Rename from dummy_pid_to_str.
9468 * target.h (struct target_ops) <to_pid_to_str>: Use
9469 TARGET_DEFAULT_FUNC.
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target-delegates.c: Rebuild.
9474 * target.c (target_find_new_threads): Unconditionally delegate.
9475 * target.h (struct target_ops) <to_find_new_threads>: Use
9476 TARGET_DEFAULT_RETURN.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * target-delegates.c: Rebuild.
9481 * target.c (target_program_signals): Unconditionally delegate.
9482 * target.h (struct target_ops) <to_program_signals>: Use
9483 TARGET_DEFAULT_IGNORE.
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9487 * target-delegates.c: Rebuild.
9488 * target.c (target_pass_signals): Unconditionally delegate.
9489 * target.h (struct target_ops) <to_pass_signals>: Use
9490 TARGET_DEFAULT_IGNORE.
9492 2014-02-19 Tom Tromey <tromey@redhat.com>
9494 * target-delegates.c: Rebuild.
9495 * target.c (default_mourn_inferior): New function.
9496 (target_mourn_inferior): Unconditionally delegate.
9497 * target.h (struct target_ops) <to_mourn_inferior>: Use
9498 TARGET_DEFAULT_FUNC.
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9502 * target-delegates.c: Rebuild.
9503 * target.c (default_follow_fork): New function.
9504 (target_follow_fork): Unconditionally delegate.
9505 * target.h (struct target_ops) <to_follow_fork>: Use
9506 TARGET_DEFAULT_FUNC.
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target-delegates.c: Rebuild.
9511 * target.c (target_kill): Unconditionally delegate.
9512 * target.h (struct target_ops) <to_kill>: Use
9513 TARGET_DEFAULT_NORETURN.
9515 2014-02-19 Tom Tromey <tromey@redhat.com>
9517 * target-delegates.c: Rebuild.
9518 * target.c (target_masked_watch_num_registers): Unconditionally
9520 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9521 Use TARGET_DEFAULT_RETURN.
9523 2014-02-19 Tom Tromey <tromey@redhat.com>
9525 * target-delegates.c: Rebuild.
9526 * target.c (target_remove_mask_watchpoint): Unconditionally
9528 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9529 TARGET_DEFAULT_RETURN.
9531 2014-02-19 Tom Tromey <tromey@redhat.com>
9533 * target-delegates.c: Rebuild.
9534 * target.c (target_insert_mask_watchpoint): Unconditionally
9536 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9537 TARGET_DEFAULT_RETURN.
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * target-delegates.c: Rebuild.
9542 * target.c (target_ranged_break_num_registers): Unconditionally
9544 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9545 Use TARGET_DEFAULT_RETURN.
9547 2014-02-19 Tom Tromey <tromey@redhat.com>
9549 * target-delegates.c: Rebuild.
9550 * target.c (target_fetch_registers): Unconditionally delegate.
9551 * target.h (struct target_ops) <to_fetch_registers>: Use
9552 TARGET_DEFAULT_NORETURN.
9554 2014-02-19 Tom Tromey <tromey@redhat.com>
9556 * target-delegates.c: Rebuild.
9557 * target.c (update_current_target): Don't inherit or default
9559 * target.h (struct target_ops) <to_stop>: Use
9560 TARGET_DEFAULT_IGNORE.
9562 2014-02-19 Tom Tromey <tromey@redhat.com>
9564 * target-delegates.c: Rebuild.
9565 * target.c (update_current_target): Don't inherit or default
9566 to_can_run_breakpoint_commands.
9567 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9568 Use TARGET_DEFAULT_RETURN.
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9572 * target-delegates.c: Rebuild.
9573 * target.c (update_current_target): Don't inherit or default
9574 to_supports_evaluation_of_breakpoint_conditions.
9575 * target.h (struct target_ops)
9576 <to_supports_evaluation_of_breakpoint_conditions>: Use
9577 TARGET_DEFAULT_RETURN.
9579 2014-02-19 Tom Tromey <tromey@redhat.com>
9581 * target-delegates.c: Rebuild.
9582 * target.c (update_current_target): Don't inherit or default
9583 to_augmented_libraries_svr4_read.
9584 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9585 Use TARGET_DEFAULT_RETURN.
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9589 * target-delegates.c: Rebuild.
9590 * target.c (update_current_target): Don't inherit or default
9592 * target.h (struct target_ops) <to_can_use_agent>: Use
9593 TARGET_DEFAULT_RETURN.
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9597 * target-delegates.c: Rebuild.
9598 * target.c (update_current_target): Don't inherit or default
9600 * target.h (struct target_ops) <to_use_agent>: Use
9601 TARGET_DEFAULT_NORETURN.
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9605 * target-delegates.c: Rebuild.
9606 * target.c (update_current_target): Don't inherit or default
9608 (return_null): Remove.
9609 * target.h (struct target_ops) <to_traceframe_info>: Use
9610 TARGET_DEFAULT_RETURN.
9612 2014-02-19 Tom Tromey <tromey@redhat.com>
9614 * target-delegates.c: Rebuild.
9615 * target.c (update_current_target): Don't inherit or default
9616 to_static_tracepoint_markers_by_strid.
9617 * target.h (struct target_ops)
9618 <to_static_tracepoint_markers_by_strid>: Use
9619 TARGET_DEFAULT_NORETURN.
9621 2014-02-19 Tom Tromey <tromey@redhat.com>
9623 * target-delegates.c: Rebuild.
9624 * target.c (update_current_target): Don't inherit or default
9625 to_static_tracepoint_marker_at.
9626 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9627 Use TARGET_DEFAULT_RETURN.
9629 2014-02-19 Tom Tromey <tromey@redhat.com>
9631 * target-delegates.c: Rebuild.
9632 * target.c (update_current_target): Don't inherit or default
9634 * target.h (struct target_ops) <to_set_permissions>: Use
9635 TARGET_DEFAULT_IGNORE.
9637 2014-02-19 Tom Tromey <tromey@redhat.com>
9639 * target-delegates.c: Rebuild.
9640 * target.c (update_current_target): Don't inherit or default
9642 * target.h (struct target_ops) <to_get_tib_address>: Use
9643 TARGET_DEFAULT_NORETURN.
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9647 * target-delegates.c: Rebuild.
9648 * target.c (update_current_target): Don't inherit or default
9650 * target.h (struct target_ops) <to_set_trace_notes>: Use
9651 TARGET_DEFAULT_RETURN.
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9655 * target-delegates.c: Rebuild.
9656 * target.c (update_current_target): Don't initialize
9657 to_set_trace_buffer_size.
9658 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9659 TARGET_DEFAULT_IGNORE.
9661 2014-02-19 Tom Tromey <tromey@redhat.com>
9663 * target-delegates.c: Rebuild.
9664 * target.c (update_current_target): Don't inherit or default
9665 to_set_circular_trace_buffer.
9666 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9667 TARGET_DEFAULT_IGNORE.
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9671 * target-delegates.c: Rebuild.
9672 * target.c (update_current_target): Don't inherit or default
9673 to_set_disconnected_tracing.
9674 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9675 TARGET_DEFAULT_IGNORE.
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9679 * target-delegates.c: Rebuild.
9680 * target.c (update_current_target): Don't inherit or default
9681 to_get_min_fast_tracepoint_insn_len.
9682 (return_minus_one): Remove.
9683 * target.h (struct target_ops)
9684 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9688 * target-delegates.c: Rebuild.
9689 * target.c (update_current_target): Don't inherit or default
9690 to_get_raw_trace_data.
9691 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9692 TARGET_DEFAULT_NORETURN.
9694 2014-02-19 Tom Tromey <tromey@redhat.com>
9696 * target-delegates.c: Rebuild.
9697 * target.c (update_current_target): Don't inherit or default
9698 to_upload_trace_state_variables.
9699 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9700 Use TARGET_DEFAULT_RETURN.
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9704 * target-delegates.c: Rebuild.
9705 * target.c (update_current_target): Don't inherit or default
9706 to_upload_tracepoints.
9707 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9708 TARGET_DEFAULT_RETURN.
9710 2014-02-19 Tom Tromey <tromey@redhat.com>
9712 * target-delegates.c: Rebuild.
9713 * target.c (update_current_target): Don't inherit or default
9715 * target.h (struct target_ops) <to_save_trace_data>: Use
9716 TARGET_DEFAULT_NORETURN.
9718 2014-02-19 Tom Tromey <tromey@redhat.com>
9720 * target-delegates.c: Rebuild.
9721 * target.c (update_current_target): Don't inherit or default
9722 to_get_trace_state_variable_value.
9723 * target.h (struct target_ops)
9724 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9726 2014-02-19 Tom Tromey <tromey@redhat.com>
9728 * target-delegates.c: Rebuild.
9729 * target.c (update_current_target): Don't inherit or default
9731 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9733 2014-02-19 Tom Tromey <tromey@redhat.com>
9735 * target-delegates.c: Rebuild.
9736 * target.c (update_current_target): Don't inherit or default
9738 * target.h (struct target_ops) <to_trace_stop>: Use
9739 TARGET_DEFAULT_NORETURN.
9741 2014-02-19 Tom Tromey <tromey@redhat.com>
9743 * target-delegates.c: Rebuild.
9744 * target.c (update_current_target): Don't inherit or default
9745 to_get_tracepoint_status.
9746 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9747 TARGET_DEFAULT_NORETURN.
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9751 * target-delegates.c: Rebuild.
9752 * target.c (update_current_target): Don't inherit or default
9753 to_get_trace_status.
9754 * target.h (struct target_ops) <to_get_trace_status>: Use
9755 TARGET_DEFAULT_RETURN.
9757 2014-02-19 Tom Tromey <tromey@redhat.com>
9759 * target-delegates.c: Rebuild.
9760 * target.c (update_current_target): Don't inherit or default
9762 * target.h (struct target_ops) <to_trace_start>: Use
9763 TARGET_DEFAULT_NORETURN.
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9767 * target-delegates.c: Rebuild.
9768 * target.c (update_current_target): Don't inherit or default
9769 to_trace_set_readonly_regions.
9770 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9771 Use TARGET_DEFAULT_NORETURN.
9773 2014-02-19 Tom Tromey <tromey@redhat.com>
9775 * target-delegates.c: Rebuild.
9776 * target.c (update_current_target): Don't inherit or default
9777 to_disable_tracepoint.
9778 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9779 TARGET_DEFAULT_NORETURN.
9781 2014-02-19 Tom Tromey <tromey@redhat.com>
9783 * target-delegates.c: Rebuild.
9784 * target.c (update_current_target): Don't inherit or default
9785 to_enable_tracepoint.
9786 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9787 TARGET_DEFAULT_NORETURN.
9789 2014-02-19 Tom Tromey <tromey@redhat.com>
9791 * target-delegates.c: Rebuild.
9792 * target.c (update_current_target): Don't inherit or default
9793 to_download_trace_state_variable.
9794 * target.h (struct target_ops) <to_download_trace_state_variable>:
9795 Use TARGET_DEFAULT_NORETURN.
9797 2014-02-19 Tom Tromey <tromey@redhat.com>
9799 * target-delegates.c: Rebuild.
9800 * target.c (update_current_target): Don't inherit or default
9801 to_can_download_tracepoint.
9802 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9803 TARGET_DEFAULT_RETURN.
9805 2014-02-19 Tom Tromey <tromey@redhat.com>
9807 * target-delegates.c: Rebuild.
9808 * target.c (update_current_target): Don't inherit or default
9809 to_download_tracepoint.
9810 * target.h (struct target_ops) <to_download_tracepoint>: Use
9811 TARGET_DEFAULT_NORETURN.
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9815 * target-delegates.c: Rebuild.
9816 * target.c (update_current_target): Don't inherit or default
9818 * target.h (struct target_ops) <to_trace_init>: Use
9819 TARGET_DEFAULT_RETURN.
9821 2014-02-19 Tom Tromey <tromey@redhat.com>
9823 * target-delegates.c: Rebuild.
9824 * target.c (update_current_target): Don't inherit or default
9825 to_supports_string_tracing.
9826 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9827 TARGET_DEFAULT_RETURN.
9829 2014-02-19 Tom Tromey <tromey@redhat.com>
9831 * target-delegates.c: Rebuild.
9832 * target.c (update_current_target): Don't inherit or default
9833 to_supports_enable_disable_tracepoint.
9834 * target.h (struct target_ops)
9835 <to_supports_enable_disable_tracepoint>: Use
9836 TARGET_DEFAULT_RETURN.
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9840 * target-delegates.c: Rebuild.
9841 * target.c (update_current_target): Don't inherit or default
9842 to_supports_multi_process.
9843 * target.h (struct target_ops) <to_supports_multi_process>: Use
9844 TARGET_DEFAULT_RETURN.
9846 2014-02-19 Tom Tromey <tromey@redhat.com>
9848 * target-delegates.c: Rebuild.
9849 * target.c (update_current_target): Don't inherit or default
9850 to_get_ada_task_ptid.
9851 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9852 TARGET_DEFAULT_FUNC.
9854 2014-02-19 Tom Tromey <tromey@redhat.com>
9856 * target-delegates.c: Rebuild.
9857 * target.c (update_current_target): Don't inherit or default
9858 to_thread_architecture.
9859 * target.h (struct target_ops) <to_thread_architecture>: Use
9860 TARGET_DEFAULT_FUNC.
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9864 * target-delegates.c: Rebuild.
9865 * target.c (update_current_target): Don't inherit or default
9866 to_execution_direction.
9867 * target.h (struct target_ops) <to_execution_direction>: Use
9868 TARGET_DEFAULT_FUNC.
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target-delegates.c: Rebuild.
9873 * target.c (update_current_target): Don't inherit or default
9874 to_can_execute_reverse.
9875 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9876 TARGET_DEFAULT_RETURN.
9877 (target_can_execute_reverse): Unconditionally delegate.
9879 2014-02-19 Tom Tromey <tromey@redhat.com>
9881 * target-delegates.c: Rebuild.
9882 * target.c (update_current_target): Don't inherit or default
9884 (dummy_goto_bookmark): Remove.
9885 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9886 * target.h (struct target_ops) <to_goto_bookmark>: Use
9887 TARGET_DEFAULT_NORETURN.
9889 2014-02-19 Tom Tromey <tromey@redhat.com>
9891 * target-delegates.c: Rebuild.
9892 * target.c (update_current_target): Don't inherit or default
9894 (dummy_get_bookmark): Remove.
9895 (init_dummy_target): Don't inherit or default to_get_bookmark.
9896 * target.h (struct target_ops) <to_get_bookmark>: Use
9897 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
9904 (init_dummy_target): Don't initialize to_make_corefile_notes.
9905 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9906 TARGET_DEFAULT_FUNC.
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * target-delegates.c: Rebuild.
9911 * target.c (update_current_target): Don't inherit or default
9912 to_find_memory_regions.
9913 (init_dummy_target): Don't initialize to_find_memory_regions.
9914 * target.h (struct target_ops) <to_find_memory_regions>: Use
9915 TARGET_DEFAULT_FUNC.
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9919 * target-delegates.c: Rebuild.
9920 * target.c (update_current_target): Don't inherit or default
9922 * target.h (struct target_ops) <to_log_command>: Use
9923 TARGET_DEFAULT_IGNORE.
9924 (target_log_command): Unconditionally delegate.
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9928 * target-delegates.c: Rebuild.
9929 * target.c (update_current_target): Don't inherit or default
9930 to_pid_to_exec_file.
9931 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9932 TARGET_DEFAULT_RETURN.
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9936 * target-delegates.c: Rebuild.
9937 * target.c (update_current_target): Don't inherit or default
9939 (target_thread_name): Unconditionally delegate.
9940 * target.h (struct target_ops) <to_thread_name>: Use
9941 TARGET_DEFAULT_RETURN.
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9945 * target-delegates.c: Rebuild.
9946 * target.c (update_current_target): Don't inherit or default
9947 to_extra_thread_info.
9948 * target.h (struct target_ops) <to_extra_thread_info>: Use
9949 TARGET_DEFAULT_RETURN.
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9953 * target-delegates.c: Rebuild.
9954 * target.c (update_current_target): Don't inherit or default
9956 * target.h (struct target_ops) <to_has_exited>: Use
9957 TARGET_DEFAULT_RETURN..
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9961 * target-delegates.c: Rebuild.
9962 * target.c (update_current_target): Don't inherit or default
9963 to_set_syscall_catchpoint.
9964 (return_one): Remove.
9965 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9966 TARGET_DEFAULT_RETURN.
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * target-delegates.c: Rebuild.
9971 * target.c (update_current_target): Don't inherit or default
9972 to_insert_exec_catchpoint.
9973 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9974 TARGET_DEFAULT_RETURN.
9976 2014-01-08 Tom Tromey <tromey@redhat.com>
9978 * target-delegates.c: Rebuild.
9979 * target.c (update_current_target): Don't inherit or default
9980 to_insert_exec_catchpoint.
9981 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9982 TARGET_DEFAULT_RETURN.
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9986 * target-delegates.c: Rebuild.
9987 * target.c (update_current_target): Don't inherit or default
9988 to_remove_vfork_catchpoint.
9989 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9990 TARGET_DEFAULT_RETURN.
9992 2014-02-19 Tom Tromey <tromey@redhat.com>
9994 * target-delegates.c: Rebuild.
9995 * target.c (update_current_target): Don't inherit or default
9996 to_insert_vfork_catchpoint.
9997 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9998 TARGET_DEFAULT_RETURN.
10000 2014-02-19 Tom Tromey <tromey@redhat.com>
10002 * target-delegates.c: Rebuild.
10003 * target.c (update_current_target): Don't inherit or default
10004 to_remove_fork_catchpoint.
10005 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10006 TARGET_DEFAULT_RETURN.
10008 2014-02-19 Tom Tromey <tromey@redhat.com>
10010 * target-delegates.c: Rebuild.
10011 * target.c (update_current_target): Don't inherit or default
10012 to_insert_fork_catchpoint.
10013 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10014 TARGET_DEFAULT_RETURN.
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target-delegates.c: Rebuild.
10019 * target.c (update_current_target): Don't inherit or default
10020 to_post_startup_inferior.
10021 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10022 TARGET_DEFAULT_IGNORE.
10024 2014-02-19 Tom Tromey <tromey@redhat.com>
10026 * target-delegates.c: Rebuild.
10027 * target.c (update_current_target): Don't inherit or default
10029 * target.h (struct target_ops) <to_load>: Use
10030 TARGET_DEFAULT_NORETURN.
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10034 * target-delegates.c: Rebuild.
10035 * target.c (update_current_target): Don't inherit or default
10037 * target.h (struct target_ops) <to_terminal_info>: Use
10038 TARGET_DEFAULT_FUNC.
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10042 * target-delegates.c: Rebuild.
10043 * target.c (update_current_target): Don't inherit or default
10044 to_terminal_save_ours.
10045 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10046 TARGET_DEFAULT_IGNORE.
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10050 * target-delegates.c: Rebuild.
10051 * target.c (update_current_target): Don't inherit or default
10053 * target.h (struct target_ops) <to_terminal_ours>: Use
10054 TARGET_DEFAULT_IGNORE.
10056 2014-02-19 Tom Tromey <tromey@redhat.com>
10058 * target-delegates.c: Rebuild.
10059 * target.c (update_current_target): Don't inherit or default
10060 to_terminal_ours_for_output.
10061 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10062 TARGET_DEFAULT_IGNORE.
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * target-delegates.c: Rebuild.
10067 * target.c (update_current_target): Don't inherit or default
10068 to_terminal_inferior.
10069 * target.h (struct target_ops) <to_terminal_inferior>: Use
10070 TARGET_DEFAULT_IGNORE.
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10074 * target-delegates.c: Rebuild.
10075 * target.c (update_current_target): Don't inherit or default
10077 * target.h (struct target_ops) <to_terminal_init>: Use
10078 TARGET_DEFAULT_IGNORE.
10080 2014-02-19 Tom Tromey <tromey@redhat.com>
10082 * target-delegates.c: Rebuild.
10083 * target.c (update_current_target): Don't inherit or default
10084 to_can_accel_watchpoint_condition.
10085 * target.h (struct target_ops)
10086 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10090 * target-delegates.c: Rebuild.
10091 * target.c (update_current_target): Don't inherit or default
10092 to_region_ok_for_hw_watchpoint.
10093 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10094 Use TARGET_DEFAULT_FUNC.
10096 2014-02-19 Tom Tromey <tromey@redhat.com>
10098 * target-delegates.c: Rebuild.
10099 * target.c (update_current_target): Don't inherit or default
10100 to_watchpoint_addr_within_range.
10101 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10102 Use TARGET_DEFAULT_FUNC.
10104 2014-02-19 Tom Tromey <tromey@redhat.com>
10106 * target-delegates.c: Rebuild.
10107 * target.c (update_current_target): Don't inherit or default
10108 to_remove_watchpoint.
10109 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10110 TARGET_DEFAULT_NORETURN.
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10114 * target-delegates.c: Rebuild.
10115 * target.c (update_current_target): Don't inherit or default
10116 to_insert_watchpoint.
10117 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10118 TARGET_DEFAULT_RETURN.
10120 2014-02-19 Tom Tromey <tromey@redhat.com>
10122 * target-delegates.c: Rebuild.
10123 * target.c (update_current_target): Don't inherit or default
10124 to_remove_hw_breakpoint.
10125 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10126 TARGET_DEFAULT_RETURN.
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10130 * target-delegates.c: Rebuild.
10131 * target.c (update_current_target): Don't inherit or default
10132 to_insert_hw_breakpoint.
10133 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10134 TARGET_DEFAULT_RETURN.
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10138 * target-delegates.c: Rebuild.
10139 * target.c (update_current_target): Don't inherit or default
10140 to_can_use_hw_breakpoint.
10141 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10142 TARGET_DEFAULT_RETURN.
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10146 * target-delegates.c: Rebuild.
10147 * target.c (update_current_target): Don't inherit or default
10149 * target.h (struct target_ops) <to_files_info>: Use
10150 TARGET_DEFAULT_IGNORE.
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10154 * target-delegates.c: Rebuild.
10155 * target.c (update_current_target): Don't inherit or default
10157 * target.h (struct target_ops) <to_store>: Use
10158 TARGET_DEFAULT_NORETURN.
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10162 * target-delegates.c: Rebuild.
10163 * target.c (update_current_target): Don't inherit or default
10165 * target.h (struct target_ops) <to_post_attach>: Use
10166 TARGET_DEFAULT_IGNORE.
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10170 * target-delegates.c: Rebuild.
10171 * target.c (update_current_target): Don't inherit or default
10173 (default_rcmd): New function.
10174 (do_monitor_command): Unconditionally delegate.
10175 * target.h (struct target_ops) <to_rmcd>: Use
10176 TARGET_DEFAULT_FUNC.
10178 2014-02-19 Tom Tromey <tromey@redhat.com>
10180 * target-delegates.c: Rebuild.
10181 * target.c (init_dummy_target): Don't initialize to_attach.
10182 (target_attach): Unconditionally delegate.
10183 * target.h (struct target_ops) <to_attach>: Use
10184 TARGET_DEFAULT_FUNC.
10186 2014-02-19 Tom Tromey <tromey@redhat.com>
10188 * target-delegates.c: Rebuild.
10189 * target.c (target_detach): Unconditionally delegate.
10190 (init_dummy_target): Don't initialize to_detach.
10191 * target.h (struct target_ops) <to_detach>: Use
10192 TARGET_DEFAULT_IGNORE.
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10198 (target_augmented_libraries_svr4_read): Add argument.
10199 * target.c (update_current_target): Update.
10200 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10205 * target.h (struct target_ops) <to_call_history_range>: Add
10207 * target.c (target_call_history_range): Add argument.
10208 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10210 (record_btrace_call_history_from): Update.
10212 2014-02-19 Tom Tromey <tromey@redhat.com>
10214 * target.h (struct target_ops) <to_call_history_from>: Add
10216 * target.c (target_call_history_from): Add argument.
10217 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10220 2014-02-19 Tom Tromey <tromey@redhat.com>
10222 * target.h (struct target_ops) <to_call_history>: Add argument.
10223 * target.c (target_call_history): Add argument.
10224 * record-btrace.c (record_btrace_call_history): Add 'self'
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10229 * target.h (struct target_ops) <to_insn_history_range>: Add
10231 * target.c (target_insn_history_range): Add argument.
10232 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10234 (record_btrace_insn_history_from): Update.
10236 2014-02-19 Tom Tromey <tromey@redhat.com>
10238 * target.h (struct target_ops) <to_insn_history_from>: Add
10240 * target.c (target_insn_history_from): Add argument.
10241 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10244 2014-02-19 Tom Tromey <tromey@redhat.com>
10246 * target.h (struct target_ops) <to_insn_history>: Add argument.
10247 * target.c (target_insn_history): Add argument.
10248 * record-btrace.c (record_btrace_insn_history): Add 'self'
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10253 * target.h (struct target_ops) <to_goto_record>: Add argument.
10254 * target.c (target_goto_record): Add argument.
10255 * record-full.c (record_full_goto): Add 'self' argument.
10256 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10258 2014-02-19 Tom Tromey <tromey@redhat.com>
10260 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10261 * target.c (target_goto_record_end): Add argument.
10262 * record-full.c (record_full_goto_end): Add 'self' argument.
10263 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target.h (struct target_ops) <to_goto_record_begin>: Add
10269 * target.c (target_goto_record_begin): Add argument.
10270 * record-full.c (record_full_goto_begin): Add 'self' argument.
10271 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10276 * target.h (struct target_ops) <to_record_is_replaying>: Add
10278 * target.c (target_record_is_replaying): Add argument.
10279 * record-full.c (record_full_is_replaying): Add 'self' argument.
10280 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10282 (record_btrace_xfer_partial, record_btrace_store_registers)
10283 (record_btrace_prepare_to_store, record_btrace_resume)
10284 (record_btrace_wait, record_btrace_decr_pc_after_break)
10285 (record_btrace_find_new_threads, record_btrace_thread_alive):
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10290 * target.h (struct target_ops) <to_delete_record>: Add argument.
10291 * target.c (target_delete_record): Add argument.
10292 * record-full.c (record_full_delete): Add 'self' argument.
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10296 * target.h (struct target_ops) <to_save_record>: Add argument.
10297 * target.c (target_save_record): Add argument.
10298 * record-full.c (record_full_save): Add 'self' argument.
10299 (record_full_save): Add 'self' argument.
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10303 * target.h (struct target_ops) <to_info_record>: Add argument.
10304 * target.c (target_info_record): Add argument.
10305 * record.c (info_record_command): Add argument.
10306 * record-full.c (record_full_info): Add 'self' argument.
10307 * record-btrace.c (record_btrace_info): Add 'self' argument.
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10311 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10312 * target.c (target_stop_recording): Add argument.
10313 * record.c (record_stop): Add argument.
10314 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10319 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10320 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10321 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10323 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10324 (_initialize_amd64_linux_nat): Use it.
10325 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10326 (_initialize_i386_linux_nat): Use it.
10328 2014-02-19 Tom Tromey <tromey@redhat.com>
10330 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10331 * target.c (target_teardown_btrace): Add argument.
10332 * remote.c (remote_teardown_btrace): Add 'self' argument.
10333 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10335 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10338 2014-02-19 Tom Tromey <tromey@redhat.com>
10340 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10341 * target.c (target_disable_btrace): Add argument.
10342 * remote.c (remote_disable_btrace): Add 'self' argument.
10343 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10345 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10350 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10351 * target.c (target_enable_btrace): Add argument.
10352 * remote.c (remote_enable_btrace): Add 'self' argument.
10353 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10355 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10360 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10361 (target_can_use_agent): Add argument.
10362 * target.c (update_current_target): Update.
10363 * remote.c (remote_can_use_agent): Add 'self' argument.
10364 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10366 2014-02-19 Tom Tromey <tromey@redhat.com>
10368 * target.h (struct target_ops) <to_use_agent>: Add argument.
10369 (target_use_agent): Add argument.
10370 * target.c (update_current_target): Update.
10371 * remote.c (remote_use_agent): Add 'self' argument.
10372 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10376 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10377 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10378 (target_traceframe_info): Add argument.
10379 * target.c (update_current_target): Update.
10380 * remote.c (remote_traceframe_info): Add 'self' argument.
10381 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target.h (target_static_tracepoint_markers_by_strid): Add
10387 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10389 * target.c (update_current_target): Update.
10390 * remote.c (struct target_ops)
10391 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10392 * linux-nat.c (struct target_ops)
10393 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10399 (target_static_tracepoint_marker_at): Add argument.
10400 * target.c (update_current_target): Update.
10401 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10404 2014-02-19 Tom Tromey <tromey@redhat.com>
10406 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10407 (target_set_permissions): Add argument.
10408 * target.c (update_current_target): Update.
10409 * remote.c (remote_set_permissions): Add 'self' argument.
10410 (remote_start_remote): Update.
10412 2014-02-19 Tom Tromey <tromey@redhat.com>
10414 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10415 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10416 (target_get_tib_address): Add argument.
10417 * target.c (update_current_target): Update.
10418 * remote.c (remote_get_tib_address): Add 'self' argument.
10420 2014-02-19 Tom Tromey <tromey@redhat.com>
10422 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10423 (target_set_trace_notes): Add argument.
10424 * target.c (update_current_target): Update.
10425 * remote.c (remote_set_trace_notes): Add 'self' argument.
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10429 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10431 (target_set_trace_buffer_size): Add argument.
10432 * target.c (update_current_target): Update.
10433 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10437 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10439 (target_set_circular_trace_buffer): Add argument.
10440 * target.c (update_current_target): Update.
10441 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10446 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10448 (target_set_disconnected_tracing): Add argument.
10449 * target.c (update_current_target): Update.
10450 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10454 * target.h (struct target_ops)
10455 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10456 (target_get_min_fast_tracepoint_insn_len): Add argument.
10457 * target.c (update_current_target): Update.
10458 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10461 2014-02-19 Tom Tromey <tromey@redhat.com>
10463 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10465 (target_get_raw_trace_data): Add argument.
10466 * target.c (update_current_target): Update.
10467 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10473 (target_upload_trace_state_variables): Add argument.
10474 * target.c (update_current_target): Update.
10475 * remote.c (remote_upload_trace_state_variables): Add 'self'
10477 (remote_start_remote): Update.
10479 2014-02-19 Tom Tromey <tromey@redhat.com>
10481 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10483 (target_upload_tracepoints): Add argument.
10484 * target.c (update_current_target): Update.
10485 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10486 (remote_start_remote): Update.
10488 2014-02-19 Tom Tromey <tromey@redhat.com>
10490 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10491 (target_save_trace_data): Add argument.
10492 * target.c (update_current_target): Update.
10493 * remote.c (remote_save_trace_data): Add 'self' argument.
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10497 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10499 * target.h (struct target_ops)
10500 <to_get_trace_state_variable_value>: Add argument.
10501 (target_get_trace_state_variable_value): Add argument.
10502 * target.c (update_current_target): Update.
10503 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10505 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10509 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10510 * target.h (struct target_ops) <to_trace_find>: Add argument.
10511 (target_trace_find): Add argument.
10512 * target.c (update_current_target): Update.
10513 * remote.c (remote_trace_find): Add 'self' argument.
10514 * ctf.c (ctf_trace_find): Add 'self' argument.
10516 2014-02-19 Tom Tromey <tromey@redhat.com>
10518 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10519 (target_trace_stop): Add argument.
10520 * target.c (update_current_target): Update.
10521 * remote.c (remote_trace_stop): Add 'self' argument.
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10525 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10526 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10528 (target_get_tracepoint_status): Add argument.
10529 * target.c (update_current_target): Update.
10530 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10532 2014-02-19 Tom Tromey <tromey@redhat.com>
10534 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10535 * target.h (struct target_ops) <to_get_trace_status>: Add
10537 (target_get_trace_status): Add argument.
10538 * target.c (update_current_target): Update.
10539 * remote.c (remote_get_trace_status): Add 'self' argument.
10540 (remote_start_remote, remote_can_download_tracepoint): Update.
10541 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target.h (struct target_ops) <to_trace_start>: Add argument.
10546 (target_trace_start): Add argument.
10547 * target.c (update_current_target): Update.
10548 * remote.c (remote_trace_start): Add 'self' argument.
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10552 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10554 (target_trace_set_readonly_regions): Add argument.
10555 * target.c (update_current_target): Update.
10556 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10559 2014-02-19 Tom Tromey <tromey@redhat.com>
10561 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10563 (target_disable_tracepoint): Add argument.
10564 * target.c (update_current_target): Update.
10565 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10567 2014-02-19 Tom Tromey <tromey@redhat.com>
10569 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10571 (target_enable_tracepoint): Add argument.
10572 * target.c (update_current_target): Update.
10573 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10575 2014-02-19 Tom Tromey <tromey@redhat.com>
10577 * target.h (struct target_ops) <to_download_trace_state_variable>:
10579 (target_download_trace_state_variable): Add argument.
10580 * target.c (update_current_target): Update.
10581 * remote.c (remote_download_trace_state_variable): Add 'self'
10584 2014-02-19 Tom Tromey <tromey@redhat.com>
10586 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10588 (target_can_download_tracepoint): Add argument.
10589 * target.c (update_current_target): Update.
10590 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10594 * target.h (struct target_ops) <to_download_tracepoint>: Add
10596 (target_download_tracepoint): Add argument.
10597 * target.c (update_current_target): Update.
10598 * remote.c (remote_download_tracepoint): Add 'self' argument.
10600 2014-02-19 Tom Tromey <tromey@redhat.com>
10602 * target.h (struct target_ops) <to_trace_init>: Add argument.
10603 (target_trace_init): Add argument.
10604 * target.c (update_current_target): Update.
10605 * remote.c (remote_trace_init): Add 'self' argument.
10607 2014-02-19 Tom Tromey <tromey@redhat.com>
10609 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10610 * target.c (target_fileio_readlink): Add argument.
10611 * remote.c (remote_hostio_readlink): Add 'self' argument.
10612 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10616 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10617 * target.c (target_fileio_unlink): Add argument.
10618 * remote.c (remote_hostio_unlink): Add 'self' argument.
10619 (remote_file_delete): Update.
10620 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10625 * target.c (target_fileio_close): Add argument.
10626 * remote.c (remote_hostio_close): Add 'self' argument.
10627 (remote_hostio_close_cleanup): Update.
10628 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10630 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10634 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10635 * target.c (target_fileio_pread): Add argument.
10636 * remote.c (remote_hostio_pread): Add 'self' argument.
10637 (remote_bfd_iovec_pread, remote_file_get): Update.
10638 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10642 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10643 * target.c (target_fileio_pwrite): Add argument.
10644 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10645 (remote_file_put): Update.
10646 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10648 2014-02-19 Tom Tromey <tromey@redhat.com>
10650 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10651 * target.c (target_fileio_open): Add argument.
10652 * remote.c (remote_hostio_open): Add 'self' argument.
10653 (remote_bfd_iovec_open): Add 'self' argument.
10654 (remote_file_put): Add 'self' argument.
10655 (remote_file_get): Add 'self' argument.
10656 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10658 2014-02-19 Tom Tromey <tromey@redhat.com>
10660 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10662 (target_can_run_breakpoint_commands): Add argument.
10663 * target.c (update_current_target): Update.
10664 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10666 (remote_insert_breakpoint): Add 'self' argument.
10667 (remote_insert_hw_breakpoint): Add 'self' argument.
10668 (remote_can_run_breakpoint_commands): Add 'self' argument.
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10672 * target.h (struct target_ops)
10673 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10674 (target_supports_evaluation_of_breakpoint_conditions): Add
10676 * target.c (update_current_target): Update.
10677 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10679 (remote_insert_breakpoint): Add 'self' argument.
10680 (remote_insert_hw_breakpoint): Add 'self' argument.
10681 (remote_supports_cond_breakpoints): Add 'self' argument.
10683 2014-02-19 Tom Tromey <tromey@redhat.com>
10685 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10687 (target_supports_string_tracing): Add argument.
10688 * target.c (update_current_target): Update.
10689 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10691 2014-02-19 Tom Tromey <tromey@redhat.com>
10693 * target.h (struct target_ops)
10694 <to_supports_disable_randomization>: Add argument.
10695 * target.c (find_default_supports_disable_randomization): Add
10697 (target_supports_disable_randomization): Add argument.
10698 (find_default_supports_disable_randomization): Add 'self'
10700 * remote.c (extended_remote_supports_disable_randomization): Add
10702 (remote_supports_disable_randomization): Add 'self' argument.
10703 (extended_remote_create_inferior): Update.
10704 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10707 2014-02-19 Tom Tromey <tromey@redhat.com>
10709 * target.h (struct target_ops)
10710 <to_supports_enable_disable_tracepoint>: Add argument.
10711 (target_supports_enable_disable_tracepoint): Add argument.
10712 * target.c (update_current_target): Update.
10713 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10716 2014-02-19 Tom Tromey <tromey@redhat.com>
10718 * target.h (struct target_ops) <to_supports_multi_process>: Add
10720 (target_supports_multi_process): Add argument.
10721 * target.c (update_current_target): Update.
10722 * remote.c (remote_supports_multi_process): Add 'self' argument.
10723 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10725 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10730 * target.h (struct target_ops) <to_execution_direction>: Add
10732 (target_execution_direction): Add argument.
10733 * target.c (default_execution_direction): Add 'self' argument.
10734 * record-full.c (record_full_execution_direction): Add 'self'
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10739 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10741 (target_can_execute_reverse): Add argument.
10742 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10743 * record-full.c (record_full_can_execute_reverse): Add 'self'
10745 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10750 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10751 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10753 (target_get_ada_task_ptid): Add argument.
10754 * target.c (update_current_target): Update.
10755 (default_get_ada_task_ptid): Add 'self' argument.
10756 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10757 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10758 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10760 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10762 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10764 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10766 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10767 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10770 2014-02-19 Tom Tromey <tromey@redhat.com>
10772 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10773 (target_goto_bookmark): Add argument.
10774 * target.c (dummy_goto_bookmark): Add 'self' argument.
10775 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10779 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10780 (target_get_bookmark): Add argument.
10781 * target.c (dummy_get_bookmark): Add 'self' argument.
10782 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10784 2014-02-19 Tom Tromey <tromey@redhat.com>
10786 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10788 (target_make_corefile_notes): Add argument.
10789 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10790 * procfs.c (procfs_make_note_section): Add 'self' argument.
10791 (procfs_make_note_section): Add 'self' argument.
10792 (procfs_make_note_section): Add 'self' argument.
10793 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10795 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10796 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10797 * exec.c (exec_make_note_section): Add 'self' argument.
10798 (exec_make_note_section): Add 'self' argument.
10800 2014-02-19 Tom Tromey <tromey@redhat.com>
10802 * target.h (struct target_ops) <to_find_memory_regions>: Add
10804 (target_find_memory_regions): Add argument.
10805 * target.c (dummy_find_memory_regions): Add 'self' argument.
10806 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10807 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10808 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10809 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10810 * exec. (exec_do_find_memory_regions): New global.
10811 (exec_set_find_memory_regions): Rewrite.
10812 (exec_find_memory_regions): New function.
10813 (init_exec_ops): Use exec_find_memory_regions.
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10817 * target.h (struct target_ops) <to_supports_non_stop>: Add
10819 * target.c (find_default_supports_non_stop): Add argument.
10820 (target_supports_non_stop): Add argument.
10821 (find_default_supports_non_stop): Add 'self' argument.
10822 * remote.c (remote_supports_non_stop): Add 'self' argument.
10823 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10825 2014-02-19 Tom Tromey <tromey@redhat.com>
10827 * target.h (struct target_ops) <to_log_command>: Add argument.
10828 (target_log_command): Add argument.
10829 * serial.h (serial_log_command): Add 'self' argument.
10830 * serial.c (serial_log_command): Add 'self' argument.
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10834 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10835 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10837 (target_pid_to_exec_file): Add argument.
10838 * target.c (debug_to_pid_to_exec_file): Add argument.
10839 (update_current_target): Update.
10840 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10841 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10842 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10843 (linux_handle_extended_wait): Update.
10844 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10845 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10846 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10847 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10851 * target.h (struct target_ops) <to_rcmd>: Add argument.
10852 (target_rcmd): Add argument.
10853 * target.c (debug_to_rcmd): Add argument.
10854 (update_current_target, do_monitor_command): Update.
10855 * remote.c (remote_rcmd): Add 'self' argument.
10856 * monitor.c (monitor_rcmd): Add 'self' argument.
10858 2014-02-19 Tom Tromey <tromey@redhat.com>
10860 * windows-nat.c (windows_stop): Add 'self' argument.
10861 * target.h (struct target_ops) <to_stop>: Add argument.
10862 * target.c (target_stop): Add argument.
10863 (debug_to_stop): Add argument.
10864 (update_current_target): Update.
10865 * remote.c (remote_stop): Add 'self' argument.
10866 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10867 (gdbsim_cntrl_c): Update.
10868 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10869 * procfs.c (procfs_stop): Add 'self' argument.
10870 * nto-procfs.c (procfs_stop): Add 'self' argument.
10871 * monitor.c (monitor_stop): Add 'self' argument.
10872 (monitor_open): Update.
10873 * linux-nat.c (linux_nat_stop): Add argument.
10874 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10875 * gnu-nat.c (gnu_stop): Add 'self' argument.
10876 * darwin-nat.c (darwin_stop): Add 'self' argument.
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10880 * target.h (struct target_ops) <to_thread_name>: Add argument.
10881 * target.c (target_thread_name): Add argument.
10882 (update_current_target): Update.
10883 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10887 * target.h (struct target_ops) <to_extra_thread_info>: Add
10889 (target_extra_thread_info): Add argument.
10890 * target.c (update_current_target): Update.
10891 * remote.c (remote_threads_extra_info): Add 'self' argument.
10892 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10894 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10895 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10896 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10898 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10900 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10902 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target.h (struct target_ops) <to_program_signals>: Add argument.
10908 * target.c (target_program_signals): Add argument.
10909 * remote.c (remote_program_signals): Add 'self' argument.
10911 2014-02-19 Tom Tromey <tromey@redhat.com>
10913 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10914 * target.c (target_pass_signals): Add argument.
10915 * remote.c (remote_pass_signals): Add 'self' argument.
10916 (remote_start_remote): Update.
10917 * procfs.c (procfs_pass_signals): Add 'self' argument.
10918 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10919 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10920 (linux_nat_create_inferior, linux_nat_attach): Update.
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10924 * windows-nat.c (windows_can_run): Add 'self' argument.
10925 * target.h (struct target_ops) <to_can_run>: Add argument.
10926 (target_can_run): Add argument.
10927 * target.c (debug_to_can_run): Add argument.
10928 (update_current_target): Update.
10929 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10930 * inf-child.c (inf_child_can_run): Add 'self' argument.
10931 * go32-nat.c (go32_can_run): Add 'self' argument.
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10935 * target.h (struct target_ops) <to_has_exited>: Add argument.
10936 (target_has_exited): Add argument.
10937 * target.c (debug_to_has_exited): Add argument.
10938 (update_current_target): Update.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10944 (target_set_syscall_catchpoint): Add argument.
10945 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10947 * target.c (update_current_target): Update.
10949 2014-02-19 Tom Tromey <tromey@redhat.com>
10951 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10953 (target_remove_exec_catchpoint): Add argument.
10954 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10955 (update_current_target): Update.
10956 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10959 2014-02-19 Tom Tromey <tromey@redhat.com>
10961 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10963 (target_insert_exec_catchpoint): Add argument.
10964 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10965 (update_current_target): Update.
10966 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10969 2014-02-19 Tom Tromey <tromey@redhat.com>
10971 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10973 (target_remove_vfork_catchpoint): Add argument.
10974 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10975 (update_current_target): Update.
10976 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10981 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10983 (target_insert_vfork_catchpoint): Add argument.
10984 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10985 (update_current_target): Update.
10986 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10991 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10993 (target_remove_fork_catchpoint): Add argument.
10994 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10995 (update_current_target): Update.
10996 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10999 2014-02-19 Tom Tromey <tromey@redhat.com>
11001 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11003 (target_insert_fork_catchpoint): Add argument.
11004 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11005 (update_current_target): Update.
11006 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11009 2014-02-19 Tom Tromey <tromey@redhat.com>
11011 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11013 (target_post_startup_inferior): Add argument.
11014 * target.c (debug_to_post_startup_inferior): Add argument.
11015 (update_current_target): Update.
11016 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11018 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11020 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11022 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11024 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11026 (super_post_startup_inferior): Likewise.
11027 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11029 (super_post_startup_inferior): Likewise.
11030 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11031 Add 'self' argument.
11032 (super_post_startup_inferior): Likewise.
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target.h (struct target_ops) <to_load>: Add argument.
11037 * target.c (target_load): Add argument.
11038 (debug_to_load): Add argument.
11039 (update_current_target): Update.
11040 * remote.c (remote_load): Add 'self' argument.
11041 * remote-sim.c (gdbsim_load): Add 'self' argument.
11042 * remote-mips.c (mips_load): Add 'self' argument.
11043 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11044 * monitor.c (monitor_load): Add 'self' argument.
11045 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11049 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11050 (target_terminal_info): Add argument.
11051 * target.c (debug_to_terminal_info): Add argument.
11052 (default_terminal_info): Likewise.
11053 * inflow.c (child_terminal_info): Add 'self' argument.
11054 * inferior.h (child_terminal_info): Add 'self' argument.
11055 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11059 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11061 (target_terminal_save_ours): Add argument.
11062 * target.c (debug_to_terminal_save_ours): Add argument.
11063 (update_current_target): Update.
11064 * inflow.c (terminal_save_ours): Add 'self' argument.
11065 * inferior.h (terminal_save_ours): Add 'self' argument.
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11069 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11070 (target_terminal_ours): Add argument.
11071 * target.c (debug_to_terminal_ours): Add argument.
11072 (update_current_target): Update.
11073 * remote.c (remote_terminal_ours): Add 'self' argument.
11074 (remote_close): Update.
11075 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11076 * inflow.c (terminal_ours): Add 'self' argument.
11077 * inferior.h (terminal_ours): Add 'self' argument.
11078 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11080 2014-02-19 Pedro Alves <palves@redhat.com>
11081 Tom Tromey <tromey@redhat.com>
11083 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11085 (target_terminal_ours_for_output): Add argument.
11086 * target.c (debug_to_terminal_ours_for_output): Add argument.
11087 (update_current_target): Update.
11088 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11089 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11090 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11092 2014-02-19 Tom Tromey <tromey@redhat.com>
11094 * target.h (struct target_ops) <to_terminal_inferior>: Add
11096 * target.c (target_terminal_inferior): Add argument.
11097 (update_current_target): Update.
11098 * remote.c (remote_terminal_inferior): Add 'self' argument.
11099 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11100 * inflow.c (terminal_inferior): Add 'self' argument.
11101 * inferior.h (terminal_inferior): Add 'self' argument.
11102 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11103 (go32_terminal_inferior): Add 'self' argument.
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11107 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11108 (target_terminal_init): Add argument.
11109 * target.c (debug_to_terminal_init): Add argument.
11110 (update_current_target): Update.
11111 * inflow.c (terminal_init_inferior): Add 'self' argument.
11112 * inferior.h (terminal_init_inferior): Add 'self' argument.
11113 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11114 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11116 2014-02-19 Tom Tromey <tromey@redhat.com>
11118 * target.h (struct target_ops)
11119 <to_can_accel_watchpoint_condition>: Add argument.
11120 (target_can_accel_watchpoint_condition): Add argument.
11121 * target.c (debug_to_can_accel_watchpoint_condition): Add
11123 (update_current_target): Update.
11124 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11131 (target_region_ok_for_hw_watchpoint): Add argument.
11132 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11133 (default_region_ok_for_hw_watchpoint): Add argument.
11134 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11135 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11137 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11139 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11141 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11143 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11145 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11147 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11148 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11150 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11151 Add 'self' argument.
11153 2014-02-19 Tom Tromey <tromey@redhat.com>
11155 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11157 (target_insert_watchpoint): Add argument.
11158 * target.c (debug_to_insert_watchpoint): Add argument.
11159 (update_current_target): Update.
11160 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11161 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11162 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11163 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11164 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11165 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11167 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11168 (procfs_insert_hw_watchpoint): Add 'self' argument.
11169 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11171 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11173 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11175 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11176 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11178 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11185 (target_remove_watchpoint): Add argument.
11186 * target.c (debug_to_remove_watchpoint): Add argument.
11187 (update_current_target): Update.
11188 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11189 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11190 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11191 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11192 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11193 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11195 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11196 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11198 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11200 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11202 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11203 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11205 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11212 (target_remove_hw_breakpoint): Add argument.
11213 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11214 (update_current_target): Update.
11215 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11216 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11218 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11219 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11221 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11224 2014-02-19 Tom Tromey <tromey@redhat.com>
11226 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11228 (target_insert_hw_breakpoint): Add argument.
11229 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11230 (update_current_target): Update.
11231 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11232 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11234 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11235 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11236 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11238 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11245 (target_can_use_hardware_watchpoint): Add argument.
11246 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11247 (update_current_target): Update.
11248 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11250 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11252 * remote.c (remote_check_watch_resources): Add 'self' argument.
11253 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11254 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11256 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11257 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11259 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11261 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11263 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11265 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11267 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11269 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11270 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11272 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * target.h (struct target_ops) <to_post_attach>: Add argument.
11278 (target_post_attach): Add argument.
11279 * target.c (debug_to_post_attach): Add argument.
11280 (update_current_target): Update.
11281 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11282 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11283 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11284 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11285 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11287 2014-02-19 Tom Tromey <tromey@redhat.com>
11289 * windows-nat.c (windows_close): Add 'self' argument.
11290 * tracepoint.c (tfile_close): Add 'self' argument.
11291 * target.h (struct target_ops) <to_close>: Add argument.
11292 * target.c (target_close): Add argument.
11293 (update_current_target): Update.
11294 * remote.c (remote_close): Add 'self' argument.
11295 * remote-sim.c (gdbsim_close): Add 'self' argument.
11296 * remote-mips.c (mips_close): Add 'self' argument.
11297 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11298 * record-full.c (record_full_close): Add 'self' argument.
11299 * record-btrace.c (record_btrace_close): Add 'self' argument.
11300 * monitor.h (monitor_close): Add 'self' argument.
11301 * monitor.c (monitor_close): Add 'self' argument.
11302 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11303 * linux-nat.c (linux_nat_close): Add argument.
11304 * go32-nat.c (go32_close): Add 'self' argument.
11305 * exec.c (exec_close_1): Add 'self' argument.
11306 * ctf.c (ctf_close): Add 'self' argument.
11307 * corelow.c (core_close): Add 'self' argument.
11308 (core_close_cleanup): Update.
11309 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11310 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * remote.c (remote_load): New function.
11315 (init_remote_ops): Use it.
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11321 * common/linux-btrace.h (linux_supports_btrace): Update.
11322 * remote.c (remote_supports_btrace): Add "self" argument.
11323 * target-delegates.c: Rebuild.
11324 * target.c (target_supports_btrace): Remove.
11325 * target.h (struct target_ops) <to_supports_btrace>: Add
11326 target_ops argument.
11327 (target_supports_btrace): New define.
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11331 * record-full.c (record_full_beneath_to_resume_ops)
11332 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11333 (record_full_beneath_to_wait)
11334 (record_full_beneath_to_store_registers_ops)
11335 (record_full_beneath_to_store_registers)
11336 (record_full_beneath_to_xfer_partial_ops)
11337 (record_full_beneath_to_xfer_partial)
11338 (record_full_beneath_to_insert_breakpoint_ops)
11339 (record_full_beneath_to_insert_breakpoint)
11340 (record_full_beneath_to_remove_breakpoint_ops)
11341 (record_full_beneath_to_remove_breakpoint)
11342 (record_full_beneath_to_stopped_by_watchpoint)
11343 (record_full_beneath_to_stopped_data_address)
11344 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11345 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11346 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11347 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11348 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11349 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11350 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11351 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11352 (record_full_resume, record_full_wait_1)
11353 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11354 (record_full_store_registers, record_full_xfer_partial)
11355 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11356 (record_full_async, record_full_core_xfer_partial): Use target
11358 * target-delegates.c: Rebuild.
11359 * target.c (current_xfer_partial): Remove.
11360 (update_current_target): Do not INHERIT or de_fault
11361 to_insert_breakpoint, to_remove_breakpoint,
11362 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11363 to_is_async_p, to_async. Do not set to_xfer_partial field.
11364 (default_xfer_partial): Simplify.
11365 (current_xfer_partial): Remove.
11366 (target_wait, target_resume): Simplify.
11367 (find_default_can_async_p, find_default_is_async_p): Update.
11368 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11369 to_xfer_partial, to_stopped_by_watchpoint,
11370 to_stopped_data_address.
11371 (target_store_registers): Simplify.
11372 (forward_target_remove_breakpoint)
11373 (forward_target_insert_breakpoint): Remove.
11374 (target_remove_breakpoint, target_insert_breakpoint)
11375 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11376 * target.h (struct target_ops) <to_resume, to_wait,
11377 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11378 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11379 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11381 (forward_target_remove_breakpoint)
11382 (forward_target_insert_breakpoint): Remove.
11383 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11385 (record_btrace_insert_breakpoint): Delegate directly.
11387 2014-02-19 Tom Tromey <tromey@redhat.com>
11390 * target-delegates.c: New file.
11391 * target.c: Include target-delegates.c.
11392 (init_dummy_target): Call install_dummy_methods.
11393 (complete_target_initialization): Call install_delegators.
11394 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11395 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11396 * make-target-delegates: New file.
11398 2014-02-19 Tom Tromey <tromey@redhat.com>
11400 * record.c (find_record_target): Use find_target_at.
11401 * target.c (find_target_at): New function.
11402 * target.h (find_target_at): Declare.
11404 2014-02-19 Tom Tromey <tromey@redhat.com>
11406 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11407 Add 'ops' argument.
11408 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11410 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11411 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11413 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11415 * linux-nat.c (save_sigtrap): Update.
11416 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11417 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11418 (linux_nat_close): Update.
11419 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11421 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11423 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11424 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11425 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11426 (tmp_to_async): Add 'ops' argument.
11427 (record_full_stopped_by_watchpoint, record_full_async)
11428 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11430 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11431 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11432 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11433 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11434 (remote_is_async_p, remote_async): Add 'ops' argument.
11435 (remote_stopped_data_address): Update.
11436 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11437 * target.c (update_current_target)
11438 (find_default_can_async_p, find_default_is_async_p): Update.
11439 (init_dummy_target): Update.
11440 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11441 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11442 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11443 (target_can_async_p, target_is_async_p, target_async)
11444 (target_stopped_by_watchpoint): Update.
11446 2014-02-19 Yao Qi <yao@codesourcery.com>
11449 * gdbarch.sh: Remove startup_gdbarch.
11450 * gdbarch.c: Regenerated.
11451 * gdbarch.h: Likewise.
11453 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11455 * rl78-tdep.c (rl78_g10_register_name): New function.
11456 (rl78_return_value): Add g10 support.
11457 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11460 2014-02-17 Doug Evans <xdje42@gmail.com>
11462 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11463 (SUBDIR_GUILE_SRCS): Ditto.
11464 (scm-gsmob.o): Ditto.
11466 2014-02-17 Yao Qi <yao@codesourcery.com>
11468 * gnu-nat.c (ILL_RPC): Declare defined function.
11470 2014-02-17 Yao Qi <yao@codesourcery.com>
11472 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11473 mach_msg_type_number_t.
11474 (gnu_write_inferior): Likewise.
11476 2014-02-17 Yao Qi <yao@codesourcery.com>
11478 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11480 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11481 (inf_validate_procs, inf_signal): Likewise.
11482 (S_exception_raise_request): Likewise.
11483 (do_mach_notify_dead_name): Likewise.
11484 (steal_exc_port): Likewise.
11485 (gnu_read_inferior): Change 'copy_count''s type to
11486 mach_msg_type_number_t.
11487 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11490 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11492 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11493 flag. Adjust all users; in particular...
11494 (gnu_wait): ..., don't decrement its value in here...
11495 (gnu_create_inferior): ..., and instead set the flag in here,
11496 around the startup_inferior call, and call that one with
11497 START_INFERIOR_TRAPS_EXPECTED.
11499 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11500 (ILL_RPC): ... new macro.
11501 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11502 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11503 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11504 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11505 functions with ILL_RPC macro.
11506 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11507 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11508 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11509 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11510 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11511 (S_proc_getlogin_reply, S_proc_getsid_reply)
11512 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11513 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11514 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11515 (S_proc_getnports_reply, S_proc_is_important_reply)
11516 (S_proc_get_code_reply): New stub functions, generated with
11519 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11520 collected the type check structures.
11522 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11524 2014-02-14 Doug Evans <dje@google.com>
11526 * target.c (target_write_partial): Fix result type.
11528 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11530 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11531 the proper offsets to access fpregset_t.
11533 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11535 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11536 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11537 * h8300-tdep.c (setmachinelist): Remove global.
11538 * hppa-tdep.c (hppa_sigtramp): Remove global.
11539 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11540 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11541 * ravenscar-thread.c (update_target_observer): Remove global.
11542 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11544 2014-02-12 Tom Tromey <tromey@redhat.com>
11546 * common/rsp-low.c: Update comments.
11547 * common/rsp-low.h: Update comments.
11549 2014-02-12 Tom Tromey <tromey@redhat.com>
11551 * common/rsp-low.c (convert_ascii_to_int): Remove.
11552 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11554 2014-02-12 Tom Tromey <tromey@redhat.com>
11556 * common/rsp-low.h (unhexify): Don't declare.
11557 * common/rsp-low.c (unhexify): Remove.
11559 2014-02-12 Tom Tromey <tromey@redhat.com>
11561 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11562 * common/rsp-low.c (convert_int_to_ascii): Remove.
11564 2014-02-12 Tom Tromey <tromey@redhat.com>
11566 * common/rsp-low.h (hexify): Don't declare.
11567 * common/rsp-low.c (hexify): Remove.
11569 2014-02-12 Tom Tromey <tromey@redhat.com>
11571 * common/rsp-low.c (hexify): Never take strlen of argument.
11573 2014-02-12 Tom Tromey <tromey@redhat.com>
11575 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11576 * remote.c (extended_remote_run, remote_rcmd)
11577 (remote_download_trace_state_variable, remote_save_trace_data)
11578 (remote_set_trace_notes): Update.
11579 * tracepoint.c (encode_source_string, tfile_write_status)
11580 (tfile_write_uploaded_tsv): Update.
11582 2014-02-12 Tom Tromey <tromey@redhat.com>
11584 * tracepoint.c: Include rsp-low.h.
11585 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11586 * remote.c: Include rsp-low.h.
11587 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11588 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11589 (remote_unescape_input): Move to common/rsp-low.c.
11590 * common/rsp-low.h: New file.
11591 * common/rsp-low.c: New file.
11592 * Makefile.in (SFILES): Add common/rsp-low.c.
11593 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11594 (COMMON_OBS): Add rsp-low.o.
11595 (rsp-low.o): New target.
11597 2014-02-12 Tom Tromey <tromey@redhat.com>
11599 * utils.h: Include print-utils.h.
11600 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11601 (int_string, core_addr_to_string, core_addr_to_string_nz)
11602 (hex_string, hex_string_custom): Don't declare.
11603 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11604 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11605 (hex_string_custom, int_string, core_addr_to_string)
11606 (core_addr_to_string_nz, host_address_to_string): Move to
11607 common/print-utils.c.
11608 * common/print-utils.h: New file.
11609 * common/print-utils.c: New file
11610 * Makefile.in (SFILES): Add common/print-utils.c.
11611 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11612 (COMMON_OBS): Add print-utils.o.
11613 (print-utils.o): New target.
11615 2014-02-12 Tom Tromey <tromey@redhat.com>
11617 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11619 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11621 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11623 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11625 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11626 if a PT_IO ptrace request returns sucessfully but indicates that 0
11627 bytes were transferred.
11629 2014-02-12 Pedro Alves <palves@redhat.com>
11630 Kevin Buettner <kevinb@redhat.com>
11632 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11633 TYPE_INSTANCE_FLAG_CODE_SPACE.
11635 2014-02-12 Pedro Alves <palves@redhat.com>
11637 * h8300-tdep.c (pseudo_from_raw_register)
11638 (raw_from_pseudo_register): New functions.
11639 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11642 2014-02-12 Pedro Alves <palves@redhat.com>
11644 * h8300-tdep.c (h8300_register_sim_regno): New function.
11645 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11646 gdbarch_register_sim_regno hook.
11648 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11650 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11652 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11654 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11656 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11658 * obsd-tdep.h (obsd_init_abi): New prototype.
11659 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11660 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11661 (obsd_init_abi): New functions.
11662 * i386obsd-tdep.c: Include "obsd-tdep.h".
11663 (i386obsd_init_abi): Call obsd_init_abi.
11664 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11665 (amd64obsd_init_abi): Call obsd_init_abi.
11666 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11667 obsd-tdep.c to gdb_target_obs.
11669 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11671 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11672 double float arguments to 16-byte in the argument slots.
11674 2014-02-11 Doug Evans <xdje42@gmail.com>
11676 * configure.ac: Don't crash if pkg-config is not found and guile
11677 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11679 * configure: Regenerate.
11681 2014-02-11 Yao Qi <yao@codesourcery.com>
11683 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11684 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11685 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11686 * gnu-nat.c (gnu_xfer_memory): Likewise.
11687 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11688 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11689 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11690 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11692 2014-02-11 Yao Qi <yao@codesourcery.com>
11694 * target.h (enum target_xfer_error): Rename to ...
11695 (enum target_xfer_status): ... it. New. All users updated.
11696 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11698 (TARGET_XFER_STATUS_ERROR_P): New macro.
11699 (target_xfer_error_to_string): Remove declaration.
11700 (target_xfer_status_to_string): Declare.
11701 (target_xfer_partial_ftype): Adjust it.
11702 (struct target_ops) <to_xfer_partial>: Return
11703 target_xfer_status. Add argument xfered_len. Update
11705 * target.c (target_xfer_error_to_string): Rename to ...
11706 (target_xfer_status_to_string): ... it. New. All callers
11708 (target_read_live_memory): Likewise. Call target_xfer_partial
11709 instead of target_read.
11710 (memory_xfer_live_readonly_partial): Return
11711 target_xfer_status. Add argument xfered_len.
11712 (raw_memory_xfer_partial): Likewise.
11713 (memory_xfer_partial_1): Likewise.
11714 (memory_xfer_partial): Likewise.
11715 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11716 properly. Update debug message.
11717 (default_xfer_partial, current_xfer_partial): Likewise.
11718 (target_write_partial): Likewise.
11719 (target_read_partial): Likewise. All callers updated.
11720 (read_whatever_is_readable): Likewise.
11721 (target_write_with_progress): Likewise.
11722 (target_read_alloc_1): Likewise.
11724 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11725 * auxv.c (procfs_xfer_auxv): Likewise.
11726 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11727 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11728 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11729 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11730 * corefile.c (read_memory): Adjust.
11731 * corelow.c (core_xfer_partial): Likewise.
11732 * ctf.c (ctf_xfer_partial): Likewise.
11733 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11735 (darwin_xfer_partial): Likewise.
11736 * exec.c (section_table_xfer_memory_partial): Likewise. All
11738 (exec_xfer_partial): Likewise.
11739 * exec.h (section_table_xfer_memory_partial): Update
11741 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11743 (gnu_xfer_partial): Likewise.
11744 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11745 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11746 (ia64_hpux_xfer_solib_got): Likewise.
11747 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11748 type of 'partial_len' to ULONGEST.
11749 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11750 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11751 (linux_nat_xfer_partial): Likewise.
11752 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11753 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11754 * monitor.c (monitor_xfer_memory): Likewise.
11755 (monitor_xfer_partial): Likewise.
11756 * procfs.c (procfs_xfer_partial): Likewise.
11757 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11758 * record-full.c (record_full_xfer_partial): Likewise.
11759 (record_full_core_xfer_partial): Likewise.
11760 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11761 (gdbsim_xfer_partial): Likewise.
11762 * remote.c (remote_write_bytes_aux): Likewise. All callers
11764 (remote_write_bytes, remote_read_bytes): Likewise. All
11766 (remote_flash_erase): Likewise. All callers updated.
11767 (remote_write_qxfer): Likewise. All callers updated.
11768 (remote_read_qxfer): Likewise. All callers updated.
11769 (remote_xfer_partial): Likewise.
11770 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11771 (rs6000_xfer_shared_libraries): Likewise.
11772 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11773 (sol_thread_xfer_partial): Likewise.
11774 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11775 (sparc_xfer_partial): Likewise.
11776 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11778 (spu_xfer_partial): Likewise.
11779 * spu-multiarch.c (spu_xfer_partial): Likewise.
11780 * tracepoint.c (tfile_xfer_partial): Likewise.
11781 * windows-nat.c (windows_xfer_memory): Likewise.
11782 (windows_xfer_shared_libraries): Likewise.
11783 (windows_xfer_partial): Likewise.
11784 * valprint.c: Replace 'target_xfer_error' with
11785 'target_xfer_status' in comments.
11787 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11789 Checked in by Joel Brobecker <brobecker@adacore.com>.
11790 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11792 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11794 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11795 function parameters.
11797 2014-02-10 Will Newton <will.newton@linaro.org>
11799 * elfread.c (elf_rel_plt_read): Look for a .got section if
11800 looking up .got.plt fails.
11801 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11802 on address passed to elf_gnu_ifunc_record_cache.
11803 (elf_gnu_ifunc_resolve_addr): Likewise.
11804 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11806 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11808 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11809 (X_RETTURN): New macro.
11810 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11812 * sparc64-tdep.c (sparc64_init_abi): Hook
11813 sparc_in_function_epilogue_p.
11815 2014-02-10 Gary Benson <gbenson@redhat.com>
11817 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11818 Rename name_matcher to symbol_matcher.
11820 2014-02-10 Gary Benson <gbenson@redhat.com>
11822 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11823 Use expand_symtabs_file_matcher_ftype and
11824 expand_symtabs_symbol_matcher_ftype.
11826 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11828 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11829 (struct ada_symbol_cache): New.
11830 (ada_free_symbol_cache): Forward declare.
11831 (struct ada_pspace_data): New.
11832 (ada_pspace_data_handle): New static global.
11833 (get_ada_pspace_data, ada_pspace_data_cleanup)
11834 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11835 (cache_space, cache): Delete, now folded inside struct
11837 (ada_get_symbol_cache): New function.
11838 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11840 (_initialize_ada_language): Remove initialization of cache_space.
11841 Move call to observer_attach_inferior_exit up, grouping it
11842 with the other observer registrations inside this function.
11843 Rename command to be more general. Add call to
11844 register_program_space_data_with_cleanup.
11846 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11848 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11849 ada_new_objfile_observer.
11850 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11851 (_initialize_tasks): Update uses of ada_new_objfile_observer
11852 and ada_tasks_normal_stop_observer.
11854 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11856 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11857 returned by the 'Length attribute to integer.
11859 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11861 * ada-lang.c (_initialize_ada_language): Initialize
11862 cache_space obstack.
11864 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11866 * ada-lang.c (HASH_SIZE): New macro.
11867 (struct cache_entry): New type.
11868 (cache_space, cache): New static globals.
11869 (ada_clear_symbol_cache, find_entry): New functions.
11870 (lookup_cached_symbol, cache_symbol): Implement.
11871 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11872 (_initialize_ada_language): Attach ada_new_objfile_observer
11873 and ada_free_objfile_observer.
11875 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11877 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11878 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11879 struct block * parameter.
11880 (ada_lookup_symbol_list_worker): Constify local variable "block".
11881 Remove cast which is no longer necessary.
11883 2014-02-10 Doug Evans <xdje42@gmail.com>
11885 Add Guile as an extension language.
11886 * NEWS: Mention Guile scripting.
11887 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11888 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11889 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11890 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11891 (CLIBS): Add GUILE_LIBS.
11892 (install-guile): New rule.
11893 (guile.o): New rule.
11894 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11895 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11896 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11897 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11898 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11899 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11900 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11901 * configure.ac: New option --with-guile.
11902 * configure: Regenerate.
11903 * config.in: Regenerate.
11904 * auto-load.c: Remove #include "python/python.h". Add #include
11905 "gdb/section-scripts.h".
11906 (source_section_scripts): Handle Guile scripts.
11907 (_initialize_auto_load): Add name of Guile objfile script to
11908 scripts-directory help text.
11909 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11910 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11911 (struct breakpoint): New member scm_bp_object.
11912 * defs.h (enum command_control_type): New value guile_control.
11913 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11915 (show_user): Update comment.
11916 (_initialize_cli_cmds): Update help text for "show user". Update help
11917 text for max-user-call-depth.
11918 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11920 (multi_line_command_p): Add guile_control.
11921 (print_command_lines): Handle guile_control.
11922 (execute_control_command, recurse_read_control_structure): Ditto.
11923 (process_next_line): Recognize "guile" commands.
11924 * disasm.c (gdb_disassemble_info): Make non-static.
11925 * disasm.h: #include "dis-asm.h".
11926 (struct gdbarch): Add forward decl.
11927 (gdb_disassemble_info): Declare.
11928 * extension.c: #include "guile/guile.h".
11929 (extension_languages): Add guile.
11930 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11931 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11932 * gdbtypes.c (get_unsigned_type_max): New function.
11933 (get_signed_type_minmax): New function.
11934 * gdbtypes.h (get_unsigned_type_max): Declare.
11935 (get_signed_type_minmax): Declare.
11936 * guile/README: New file.
11937 * guile/guile-internal.h: New file.
11938 * guile/guile.c: New file.
11939 * guile/guile.h: New file.
11940 * guile/scm-arch.c: New file.
11941 * guile/scm-auto-load.c: New file.
11942 * guile/scm-block.c: New file.
11943 * guile/scm-breakpoint.c: New file.
11944 * guile/scm-disasm.c: New file.
11945 * guile/scm-exception.c: New file.
11946 * guile/scm-frame.c: New file.
11947 * guile/scm-gsmob.c: New file.
11948 * guile/scm-iterator.c: New file.
11949 * guile/scm-lazy-string.c: New file.
11950 * guile/scm-math.c: New file.
11951 * guile/scm-objfile.c: New file.
11952 * guile/scm-ports.c: New file.
11953 * guile/scm-pretty-print.c: New file.
11954 * guile/scm-safe-call.c: New file.
11955 * guile/scm-string.c: New file.
11956 * guile/scm-symbol.c: New file.
11957 * guile/scm-symtab.c: New file.
11958 * guile/scm-type.c: New file.
11959 * guile/scm-utils.c: New file.
11960 * guile/scm-value.c: New file.
11961 * guile/lib/gdb.scm: New file.
11962 * guile/lib/gdb/boot.scm: New file.
11963 * guile/lib/gdb/experimental.scm: New file.
11964 * guile/lib/gdb/init.scm: New file.
11965 * guile/lib/gdb/iterator.scm: New file.
11966 * guile/lib/gdb/printing.scm: New file.
11967 * guile/lib/gdb/types.scm: New file.
11968 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11969 (VPATH): Add $(GUILE_SRCDIR).
11970 (GUILE_DIR): New variable.
11971 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11972 (all): Add stamp-guile dependency.
11973 (stamp-guile): New rule.
11974 (clean-guile, install-guile, uninstall-guile): New rules.
11975 (install-only): Add install-guile dependency.
11976 (uninstall): Add uninstall-guile dependency.
11977 (clean): Add clean-guile dependency.
11979 2014-02-09 Doug Evans <xdje42@gmail.com>
11981 Revert this patch (which I approved, mea culpa).
11983 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11985 * Makefile.in (all-lib): Remove.
11986 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11988 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11990 Fix Python stack corruption.
11991 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11994 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11996 * Makefile.in (all-lib): Remove.
11997 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11999 2014-02-07 Doug Evans <dje@google.com>
12001 * extension-priv.h (extension_language_script_ops): Add comment.
12002 (extension_language_ops): Add comment.
12003 (active_ext_lang_state): Fix typo in comment.
12005 2014-02-07 Pedro Alves <palves@redhat.com>
12007 PR breakpoints/16292
12008 * infrun.c (handle_signal_stop) <signal arrives while stepping
12009 over a breakpoint>: Switch back to the stepping thread.
12011 2014-02-07 Yao Qi <yao@codesourcery.com>
12013 * target.c (target_xfer_partial): Return zero if LEN is zero.
12015 2014-02-07 Yao Qi <yao@codesourcery.com>
12017 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12018 (ld_so_xfer_auxv): Likewise.
12019 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12020 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12021 * corelow.c (core_xfer_partial): Likewise.
12022 * ctf.c (ctf_xfer_partial): Likewise.
12023 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12024 (darwin_xfer_partial): Likewise.
12025 * exec.c (exec_xfer_partial): Likewise.
12026 * gnu-nat.c (gnu_xfer_partial): Likewise.
12027 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12028 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12029 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12030 * linux-nat.c (linux_xfer_siginfo): Likewise.
12031 (linux_proc_xfer_spu): Likewise.
12032 * procfs.c (procfs_xfer_partial): Likewise.
12033 * record-full.c (record_full_xfer_partial): Likewise.
12034 (record_full_core_xfer_partial): Likewise.
12035 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12036 * remote.c (remote_write_qxfer): Likewise.
12037 (remote_write_qxfer, remote_read_qxfer): Likewise.
12038 (remote_xfer_partial): Likewise.
12039 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12040 (rs6000_xfer_shared_libraries): Likewise.
12041 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12042 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12043 (spu_xfer_partial): Likewise.
12044 * target.c (memory_xfer_partial_1): Likewise.
12045 * tracepoint.c (tfile_xfer_partial): Likewise.
12046 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12047 (windows_xfer_partial): Likewise.
12049 2014-02-07 Yao Qi <yao@codesourcery.com>
12051 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12053 (core_xfer_shared_libraries_aix): Likewise.
12054 * gdbarch.c, gdbarch.h: Regenerated.
12055 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12056 ULONGEST. Change 'len_avail' type to ULONGEST.
12057 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12058 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12060 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12062 2014-02-07 Yao Qi <yao@codesourcery.com>
12064 * corefile.c (memory_error): Get 'exception' from ERR and pass
12065 'exception' to throw_error.
12067 2014-02-06 Doug Evans <xdje42@gmail.com>
12069 * configure.ac (libpython checking): Remove all but python.o from
12070 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12071 * configure: Regenerate.
12073 * Makefile.in (SFILES): Add extension.c.
12074 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12075 (COMMON_OBS): Add extension.o.
12076 * extension.h: New file.
12077 * extension-priv.h: New file.
12078 * extension.c: New file.
12080 * python/python-internal.h: #include "extension.h".
12081 (gdbpy_auto_load_enabled): Declare.
12082 (gdbpy_apply_val_pretty_printer): Declare.
12083 (gdbpy_apply_frame_filter): Declare.
12084 (gdbpy_preserve_values): Declare.
12085 (gdbpy_breakpoint_cond_says_stop): Declare.
12086 (gdbpy_breakpoint_has_cond): Declare.
12087 (void source_python_script_for_objfile): Delete.
12088 * python/python.c: #include "extension-priv.h".
12089 Delete inclusion of "observer.h".
12090 (extension_language_python): Moved here and renamed from
12091 script_language_python in py-auto-load.c.
12092 Redefined to be of type extension_language_defn.
12093 (python_extension_script_ops): New global.
12094 (python_extension_ops): New global.
12095 (struct python_env): New member previous_active.
12096 (restore_python_env): Call restore_active_ext_lang.
12097 (ensure_python_env): Call set_active_ext_lang.
12098 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12100 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12102 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12104 (gdbpy_eval_from_control_command): Renamed from
12105 eval_python_from_control_command, made static. New arg extlang.
12106 (gdbpy_source_script) Renamed from source_python_script, made static.
12108 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12109 result to int. New arg extlang.
12110 (gdbpy_source_objfile_script): Renamed from
12111 source_python_script_for_objfile, made static. New arg extlang.
12112 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12113 static. New args extlang, extlang_printers. Change result type to
12115 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12116 static. New arg extlang. Rename arg printers to extlang_printers
12117 and change type to ext_lang_type_printers *.
12118 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12119 static. Replace argument arg with extlang, extlang_printers.
12120 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12121 (!HAVE_PYTHON, source_python_script): Delete.
12122 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12123 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12124 (!HAVE_PYTHON, start_type_printers): Delete.
12125 (!HAVE_PYTHON, apply_type_printers): Delete.
12126 (!HAVE_PYTHON, free_type_printers): Delete.
12127 (_initialize_python): Delete call to observer_attach_before_prompt.
12128 (finalize_python): Set/restore active extension language.
12129 (gdbpy_finish_initialization) Renamed from
12130 finish_python_initialization, made static. New arg extlang.
12131 (gdbpy_initialized): New function.
12132 * python/python.h: #include "extension.h". Delete #include
12133 "value.h", "mi/mi-cmds.h".
12134 (extension_language_python): Declare.
12135 (GDBPY_AUTO_FILE_NAME): Delete.
12136 (enum py_bt_status): Moved to extension.h and renamed to
12137 ext_lang_bt_status.
12138 (enum frame_filter_flags): Moved to extension.h.
12139 (enum py_frame_args): Moved to extension.h and renamed to
12140 ext_lang_frame_args.
12141 (finish_python_initialization): Delete.
12142 (eval_python_from_control_command): Delete.
12143 (source_python_script): Delete.
12144 (apply_val_pretty_printer): Delete.
12145 (apply_frame_filter): Delete.
12146 (preserve_python_values): Delete.
12147 (gdbpy_script_language_defn): Delete.
12148 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12149 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12151 * auto-load.c: #include "extension.h".
12152 (GDB_AUTO_FILE_NAME): Delete.
12153 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12154 (script_language_gdb): Delete, moved to extension.c and renamed to
12155 extension_language_gdb.
12156 (source_gdb_script_for_objfile): Delete.
12157 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12158 (loaded_script): Change type of language member to
12159 struct extension_language_defn *.
12160 (init_loaded_scripts_info): Initialize
12161 unsupported_script_warning_printed.
12162 (maybe_add_script): Make static. Change type of language arg to
12163 struct extension_language_defn *.
12164 (clear_section_scripts): Reset unsupported_script_warning_printed.
12165 (auto_load_objfile_script_1): Rewrite to use extension language API.
12166 (auto_load_objfile_script): Make public. Remove support-compiled-in
12167 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12168 (source_section_scripts): Rewrite to use extension language API.
12169 (load_auto_scripts_for_objfile): Rewrite to use
12170 auto_load_scripts_for_objfile.
12171 (collect_matching_scripts_data): Change type of language member to
12172 struct extension_language_defn *.
12173 (auto_load_info_scripts): Change type of language arg to
12174 struct extension_language_defn *.
12175 (unsupported_script_warning_print): New function.
12176 (script_not_found_warning_print): Make static.
12177 (_initialize_auto_load): Rewrite construction of scripts-directory
12179 * auto-load.h (struct objfile): Add forward decl.
12180 (struct script_language): Delete.
12181 (struct auto_load_pspace_info): Add forward decl.
12182 (struct extension_language_defn): Add forward decl.
12183 (maybe_add_script): Delete.
12184 (auto_load_objfile_script): Declare.
12185 (script_not_found_warning_print): Delete.
12186 (auto_load_info_scripts): Update prototype.
12187 (auto_load_gdb_scripts_enabled): Declare.
12188 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12189 auto_load_python_scripts_enabled and made public.
12190 (script_language_python): Delete, moved to python.c.
12191 (gdbpy_script_language_defn): Delete.
12192 (info_auto_load_python_scripts): Update to use
12193 extension_language_python.
12195 * breakpoint.c (condition_command): Replace call to
12196 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12197 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12198 with call to breakpoint_ext_lang_cond_says_stop.
12199 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12200 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12201 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12202 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12204 (local_setattro): Print name of extension language with existing
12207 * valprint.c (val_print, value_print): Update to call
12208 apply_ext_lang_val_pretty_printer.
12209 * cp-valprint.c (cp_print_value): Update call to
12210 apply_ext_lang_val_pretty_printer.
12211 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12212 (gdbpy_apply_val_pretty_printer): Renamed from
12213 apply_val_pretty_printer. New arg extlang.
12214 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12216 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12217 extension language API.
12218 * cli/cli-script.c (execute_control_command): Update to call
12219 eval_ext_lang_from_control_command.
12221 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12222 enum ext_lang_bt_status values. Update call to
12223 apply_ext_lang_frame_filter.
12224 (mi_cmd_stack_list_locals): Ditto.
12225 (mi_cmd_stack_list_args): Ditto.
12226 (mi_cmd_stack_list_variables): Ditto.
12227 * mi/mi-main.c: Delete #include "python/python-internal.h".
12228 Add #include "extension.h".
12229 (mi_cmd_list_features): Replace reference to python internal variable
12230 gdb_python_initialized with call to ext_lang_initialized_p.
12232 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12233 Update to use enum ext_lang_frame_args. Update to call
12234 apply_ext_lang_frame_filter.
12235 * python/py-framefilter.c (extract_sym): Update to use enum
12236 ext_lang_bt_status.
12237 (extract_value, py_print_type, py_print_value): Ditto.
12238 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12239 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12240 (py_print_frame): Ditto.
12241 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12242 New arg extlang. Update to use enum ext_lang_bt_status.
12244 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12245 finish_python_initialization. Replace with call to
12246 finish_ext_lang_initialization.
12248 * typeprint.c (do_free_global_table): Update to call
12249 free_ext_lang_type_printers.
12250 (create_global_typedef_table): Update to call
12251 start_ext_lang_type_printers.
12252 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12253 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12254 (type_print_options): Change type of global_printers from "void *"
12255 to "struct ext_lang_type_printers *".
12257 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12258 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12259 (gdbpy_preserve_values): Renamed from preserve_python_values.
12261 (!HAVE_PYTHON, preserve_python_values): Delete.
12263 * utils.c (quit_flag): Delete, moved to extension.c.
12264 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12267 * eval.c: Delete #include "python/python.h".
12268 * main.c: Delete #include "python/python.h".
12270 * defs.h: Update comment.
12272 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12276 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12278 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12281 2014-02-05 Yao Qi <yao@codesourcery.com>
12283 * remote.c (remote_pass_signals): Remove local 'buf' and use
12285 (remote_program_signals): Likewise.
12287 2014-02-05 Yao Qi <yao@codesourcery.com>
12289 * ctf.c: Include "inferior.h" and "gdbthread.h".
12290 (CTF_PID): A new macro.
12291 (ctf_open): Call inferior_appeared and add_thread_silent.
12292 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12293 (ctf_thread_alive): New function.
12294 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12296 2014-02-05 Yao Qi <yao@codesourcery.com>
12300 2013-05-24 Yao Qi <yao@codesourcery.com>
12302 * tracepoint.c (TFILE_PID): Remove.
12303 (tfile_open): Don't add thread and inferior.
12304 (tfile_close): Don't set 'inferior_ptid'. Don't call
12305 exit_inferior_silent.
12306 (tfile_thread_alive): Remove.
12307 (init_tfile_ops): Don't set field 'to_thread_alive' of
12310 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12312 * remote.c (remote_start_remote): Call remote_check_symbols even
12313 if only symbol-file (not file) has been given.
12315 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12317 * gdbarch.sh (skip_entrypoint): New callback.
12318 * gdbarch.c, gdbarch.h: Regenerate.
12319 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12320 * infrun.c (fill_in_stop_func): Likewise.
12321 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12322 (ppc_elfv2_elf_make_msymbol_special): New function.
12323 (ppc_elfv2_skip_entrypoint): Likewise.
12324 (ppc_linux_init_abi): Install them for ELFv2.
12326 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12328 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12329 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12330 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12331 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12332 structures returned in GPRs.
12334 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12336 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12337 offset to the stack parameter list for the ELFv2 ABI.
12339 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12341 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12342 set_gdbarch_convert_from_func_ptr_addr and
12343 set_gdbarch_elf_make_msymbol_special for ELFv1.
12344 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12345 function descriptors on ELFv1.
12346 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12347 set up r12 at function entry.
12349 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12351 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12352 (struct gdbarch_tdep): New member elf_abi.
12354 * rs6000-tdep.c: Include "elf/ppc64.h".
12355 (rs6000_gdbarch_init): Detect ELF ABI version.
12357 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12359 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12360 within a register pair holding a DFP 128-bit value on little-endian.
12361 (ppc64_sysv_abi_return_value_base): Likewise.
12362 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12363 (dfp_pseudo_register_write): Likewise.
12365 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12367 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12368 offset on little-endian when passing _Decimal32.
12369 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12371 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12373 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12374 of the overlapped FP register within the VSX register on little-
12376 (efpr_pseudo_register_write): Likewise.
12378 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12380 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12381 offset on little-endian when passing small structures.
12383 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12385 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12386 (struct ppc64_sysv_argpos): New data structure.
12387 (ppc64_sysv_abi_push_float): Remove.
12388 (ppc64_sysv_abi_push_val): New function.
12389 (ppc64_sysv_abi_push_integer): Likewise.
12390 (ppc64_sysv_abi_push_freg): Likewise.
12391 (ppc64_sysv_abi_push_vreg): Likewise.
12392 (ppc64_sysv_abi_push_param): Likewise.
12393 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12394 (ppc64_sysv_abi_return_value_base): New function.
12395 (ppc64_sysv_abi_return_value): Refactor to use it.
12397 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12399 * NEWS: Document new target powerpc64le-*-linux*.
12401 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12403 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12404 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12406 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12407 register set used in ELF core dumps. Add floating-point register set.
12409 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12411 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12412 dwarf2_to_gdb[] table using symbolic constants. Adjust
12413 penultimate entry from number representing the PC register
12414 to symbolic constant representing the MDR register. Add
12415 constant for the PC register to the end of the table.
12417 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12419 * bsd-kvm.c: Include <sys/param.h>
12421 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12423 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12425 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12427 * ada-lang.h (clear_ada_sym_cache): Delete.
12429 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12431 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12433 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12435 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12436 the sigreturn register save area only if the syscall is
12439 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12441 * valops.c (value_slice): Minor reformatting.
12443 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12445 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12447 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12449 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12450 New static globals.
12451 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12452 (ada_ignore_descriptive_types_p): New static global.
12453 (find_parallel_type_by_descriptive_type): Return immediately
12454 if ada_ignore_descriptive_types_p is set.
12455 (_initialize_ada_language): Register new commands "maintenance
12456 set ada", "maintenance show ada", "maintenance set ada
12457 ignore-descriptive-types" and "maintenance show ada
12458 ignore-descriptive-types".
12459 * NEWS: Add entry for new "maint ada set/show
12460 ignore-descriptive-types" commands.
12462 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12464 * record-btrace.c (record_btrace_close): Call btrace_teardown
12467 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12469 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12472 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12474 * ada-typeprint (type_is_full_subrange_of_target_type):
12476 (print_range): Add parameter bounds_prefered_p. If not set,
12477 try printing range types using the name of their base type.
12478 (print_range_type): Add parameter bounds_prefered_p.
12479 Use it in call to print_range.
12480 (print_array_type, ada_print_type): Update calls to print_range
12481 and print_range_type.
12483 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12485 * ada-typeprint.c (print_array_type, print_choices, print_range)
12486 (print_range_bound, print_dynamic_range_bound, print_range_type):
12487 Remove declaration.
12489 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12491 * ada-typeprint.c (print_range): Add missing empty line
12492 after local declaration.
12494 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12496 * ada-valprint.c (print_optional_low_bound): Get index_type's
12497 target type for as long as it is a TYPE_CODE_RANGE.
12499 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12501 * procfs.c (procfs_make_note_section): Remove assertion and
12502 associated comment.
12504 2014-01-24 Yao Qi <yao@codesourcery.com>
12506 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12507 * corelow.c (get_core_siginfo): Likewise.
12509 2014-01-24 Yao Qi <yao@codesourcery.com>
12511 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12512 ULONGEST. Don't check 'len' is negative.
12513 (remote_write_bytes): Change type of 'len' to ULONGEST.
12515 2014-01-23 Tom Tromey <tromey@redhat.com>
12518 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12519 Handle exception from frame.block.
12520 (FrameVars.fetch_frame_locals): Likewise.
12522 2014-01-23 Tom Tromey <tromey@redhat.com>
12525 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12526 on a NULL pointer. Move "goto error" to correct place.
12528 2014-01-23 Tom Tromey <tromey@redhat.com>
12531 * python/py-framefilter.c (apply_frame_filter): Call
12532 ensure_python_env after computing gdbarch.
12534 2014-01-23 Yao Qi <yao@codesourcery.com>
12536 * target.c (raw_memory_xfer_partial): Change argument type
12537 from void * to gdb_byte *.
12538 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12540 2014-01-22 Doug Evans <dje@google.com>
12542 New gdbserver option --debug-format=timestamp.
12543 * NEWS: Mention it.
12545 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12547 * syscalls/s390x-linux.xml: New file.
12548 * syscalls/s390-linux.xml: New file.
12549 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12550 (XML_SYSCALL_FILENAME_S390X): Likewise.
12551 (op_svc): New enum value for SVC opcode.
12552 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12553 (s390_linux_get_syscall_number): New function.
12554 (s390_gdbarch_init): Register '*get_syscall_number' and the
12555 syscall xml file name.
12556 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12557 "s390-linux.xml" and "s390x-linux.xml".
12558 * NEWS: Announce new feature.
12560 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12562 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12564 2014-01-22 Pedro Alves <palves@redhat.com>
12566 * xtensa-config.c: Include defs.h.
12568 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12570 * common/common-utils.h: Add "ARI:" comment beside __func__
12573 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12575 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12576 documentation a bit.
12578 2014-01-21 Roland McGrath <mcgrathr@google.com>
12580 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12581 * configure: Regenerate.
12582 * aclocal.m4: Regenerate.
12583 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12584 New substituted variables.
12585 (install-strip): New target.
12586 (INSTALL_SCRIPT): New substituted variable.
12587 (FLAGS_TO_PASS): Add it.
12588 (install-only): Use $(INSTALL_SCRIPT) rather than
12589 $(INSTALL_PROGRAM) for gcore.
12591 2014-01-20 Tom Tromey <tromey@redhat.com>
12593 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12596 2014-01-20 Tom Tromey <tromey@redhat.com>
12598 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12599 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12600 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12601 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12602 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12603 (struct cmd_list_element) <flags>: Remove.
12604 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12605 doc_allocated>: New fields.
12606 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12608 * maint.c (maintenance_do_deprecate): Update.
12609 * top.c (execute_command): Update.
12611 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12613 * xtensa-linux-nat.c: Include asm/ptrace.h.
12615 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12617 * Makefile.in (SFILES): Add d-support.c.
12618 (COMMON_OBS): Add d-support.o.
12619 * d-lang.h (d_parse_symbol): Add comment, now defined in
12621 * d-lang.c (parse_call_convention)
12622 (parse_attributes, parse_function_types)
12623 (parse_function_args, parse_type, parse_identifier)
12624 (call_convention_p, d_parse_symbol): Move functions to ...
12625 * d-support.c: ... New file.
12627 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12629 * d-lang.h (d_parse_symbol): Add declaration.
12630 * d-lang.c (extract_identifiers)
12631 (extract_type_info): Remove functions.
12632 (parse_call_convention, parse_attributes)
12633 (parse_function_types, parse_function_args)
12634 (parse_type, parse_identifier, call_convention_p)
12635 (d_parse_symbol): New functions.
12636 (d_demangle): Use d_parse_symbol to demangle D symbols.
12638 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12640 * d-lang.h (struct builtin_d_type): New data type.
12641 (builtin_d_type): Add declaration.
12642 * d-lang.c (d_language_arch_info, build_d_types)
12643 (builtin_d_type): New functions.
12644 (enum d_primitive_types): New data type.
12645 (d_language_defn): Change c_language_arch_info to
12646 d_language_arch_info.
12647 (d_type_data): New static variable.
12648 (_initialize_d_language): Initialize d_type_data.
12650 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12652 * d-lang.h (d_main_name): Add declaration.
12653 * d-lang.c (d_main_name): New function.
12654 * symtab.c (find_main_name): Add call to d_main_name.
12656 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12658 * d-lang.c (d_language_defn): Change macro_expansion_c to
12659 macro_expansion_no.
12661 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12663 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12665 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12667 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12668 gdb_exception" declaration.
12669 * remote.c (getpkt_or_notif_sane): Likewise.
12671 2014-01-17 Doug Evans <dje@google.com>
12673 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12674 function, contents of dirnames_to_char_ptr_vec_append moved here.
12675 (delim_string_to_char_ptr_vec): New function.
12676 (dirnames_to_char_ptr_vec_append): Rewrite.
12677 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12679 2014-01-17 Doug Evans <dje@google.com>
12681 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12683 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12684 #include "common-utils.h".
12685 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12686 * common/vec.h (VEC_ASSERT_PASS): Update.
12687 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12688 (MACH_CHECK_ERROR): Update.
12690 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12692 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12694 * gdbarch.h: Regenerate.
12696 2014-01-16 Tom Tromey <tromey@redhat.com>
12698 * value.c (struct value) <regnum>: Move earlier.
12700 2014-01-16 Tom Tromey <tromey@redhat.com>
12702 * remote.c (extended_remote_create_inferior): Rename from
12703 extended_remote_create_inferior_1. Add "ops" argument. Remove
12704 old implementation.
12706 2014-01-16 Pedro Alves <palves@redhat.com>
12708 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12709 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12712 2014-01-16 Doug Evans <dje@google.com>
12714 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12716 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12718 * btrace.h (btrace_thread_flag): New.
12719 (struct btrace_thread_info) <flags>: New.
12720 * record-btrace.c (record_btrace_resume_thread)
12721 (record_btrace_find_thread_to_move, btrace_step_no_history)
12722 (btrace_step_stopped, record_btrace_start_replaying)
12723 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12724 (record_btrace_find_resume_thread): New.
12725 (record_btrace_resume, record_btrace_wait): Extend.
12726 (record_btrace_can_execute_reverse): New.
12727 (record_btrace_open): Fail in non-stop mode.
12728 (record_btrace_set_replay): Split into this, ...
12729 (record_btrace_stop_replaying): ... this, ...
12730 (record_btrace_clear_histories): ... and this.
12731 (init_record_btrace_ops): Init to_can_execute_reverse.
12732 * NEWS: Announce it.
12734 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12736 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12737 (forward_target_decr_pc_after_break)
12738 (target_decr_pc_after_break): New.
12739 * target.c (forward_target_decr_pc_after_break)
12740 (target_decr_pc_after_break): New.
12741 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12742 instead of gdbarch_decr_pc_after_break.
12743 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12744 instead of gdbarch_decr_pc_after_break.
12745 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12746 instead of gdbarch_decr_pc_after_break.
12747 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12748 instead of gdbarch_decr_pc_after_break.
12749 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12750 instead of gdbarch_decr_pc_after_break.
12751 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12752 instead of gdbarch_decr_pc_after_break.
12754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12756 * btrace.c: Include regcache.h.
12757 (btrace_add_pc): New.
12758 (btrace_enable): Call btrace_add_pc.
12759 (btrace_is_empty): New.
12760 * btrace.h (btrace_is_empty): New.
12761 * record-btrace.c (require_btrace, record_btrace_info): Call
12764 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12766 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12767 Support delta reads.
12768 (linux_disable_btrace): Change return type.
12769 * common/linux-btrace.h (linux_read_btrace): Change parameters
12770 and return type to allow error reporting. Update users.
12771 (linux_disable_btrace): Change return type. Update users.
12772 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12774 (btrace_error): New.
12775 (btrace_block) <begin>: Comment on BEGIN == 0.
12776 * btrace.c (btrace_compute_ftrace): Start from the end of
12778 (btrace_stitch_trace, btrace_clear_history): New.
12779 (btrace_fetch): Read delta trace, return if replaying.
12780 (btrace_clear): Move clear history code to btrace_clear_history.
12781 (parse_xml_btrace): Throw an error if parsing failed.
12782 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12783 and return type to allow error reporting.
12784 (target_read_btrace): Change parameters and return type to allow
12786 * target.c (target_read_btrace): Update.
12787 * remote.c (remote_read_btrace): Support delta reads. Pass
12789 * NEWS: Announce it.
12791 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12793 * record.h (record_btrace_frame_unwind)
12794 (record_btrace_tailcall_frame_unwind): New declarations.
12795 * dwarf2-frame: Include record.h
12796 (dwarf2_frame_cfa): Throw an error for btrace frames.
12797 * record-btrace.c: Include hashtab.h.
12798 (btrace_get_bfun_name): New.
12799 (btrace_call_history): Call btrace_get_bfun_name.
12800 (struct btrace_frame_cache): New.
12802 (bfcache_hash, bfcache_eq, bfcache_new): New.
12803 (btrace_get_frame_function): New.
12804 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12805 (record_btrace_frame_this_id): Compute own id.
12806 (record_btrace_frame_prev_register): Provide PC, throw_error
12807 for all other registers.
12808 (record_btrace_frame_sniffer): Detect btrace frames.
12809 (record_btrace_tailcall_frame_sniffer): New.
12810 (record_btrace_frame_dealloc_cache): New.
12811 (record_btrace_frame_unwind): Add new functions.
12812 (record_btrace_tailcall_frame_unwind): New.
12813 (_initialize_record_btrace): Allocate cache.
12814 * btrace.c (btrace_clear): Call reinit_frame_cache.
12815 * NEWS: Announce it.
12817 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12819 * record-btrace.c (record_btrace_set_replay)
12820 (record_btrace_goto_begin, record_btrace_goto_end)
12821 (record_btrace_goto): New.
12822 (init_record_btrace_ops): Initialize them.
12823 * NEWS: Announce it.
12825 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12827 * record-btrace.c (record_btrace_find_new_threads)
12828 (record_btrace_thread_alive): New.
12829 (init_record_btrace_ops): Initialize to_find_new_threads and
12832 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12834 * record-btrace.c (record_btrace_resume): New.
12835 (record_btrace_wait): New.
12836 (init_record_btrace_ops): Initialize to_wait and to_resume.
12838 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12840 * record-btrace.c (record_btrace_xfer_partial)
12841 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12842 (record_btrace_allow_memory_access): New.
12843 (init_record_btrace_ops): Initialize new methods.
12844 * target.c (raw_memory_xfer_partial): Bail out if target reports
12845 that this memory is not available.
12847 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12849 * target.h (target_ops) <to_insert_breakpoint>
12850 <to_remove_breakpoint>: Add target_ops parameter.
12851 (forward_target_insert_breakpoint): New.
12852 (forward_target_remove_breakpoint): New.
12853 (memory_remove_breakpoint, memory_insert_breakpoint):
12854 Add target_ops parameter.
12855 * target.c (target_insert_breakpoint): Split into this and ...
12856 (forward_target_insert_breakpoint): ... this.
12857 (target_remove_breakpoint): Split into this and ...
12858 (forward_target_remove_breakpoint): ... this.
12859 (debug_to_insert_breakpoint): Add target_ops parameter.
12860 Call forward_target_insert_breakpoint.
12861 (debug_to_remove_breakpoint): Add target_ops parameter.
12862 Call forward_target_remove_breakpoint.
12863 (update_current_target): Do not inherit or default to_insert_breakpoint
12864 and to_remove_breakpoint.
12865 * corelow.c (ignore): Add target_ops parameter.
12866 * exec.c (ignore): Add target_ops parameter.
12867 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12868 Add target_ops parameter.
12869 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12870 Add target_ops parameter.
12871 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12872 Add target_ops parameter.
12873 * record-full.c (record_full_beneath_to_insert_breakpoint)
12874 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12875 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12876 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12877 (record_full_core_remove_breakpoint): Add target_ops parameter.
12879 (record_full_beneath_to_insert_breakpoint_ops)
12880 (record_full_beneath_to_remove_breakpoint_ops)
12881 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12882 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12883 tmp_to_remove_breakpoint_ops,
12884 record_full_beneath_to_insert_breakpoint_ops, and
12885 record_full_beneath_to_remove_breakpoint_ops.
12886 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12887 (m32r_remove_breakpoint): Add target_ops parameter.
12888 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12889 Add target_ops parameter.
12890 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12891 Add target_ops parameter.
12893 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12894 Markus Metzger <markus.t.metzger@intel.com>
12896 * record-btrace.c: Include frame-unwind.h.
12897 (record_btrace_frame_unwind_stop_reason)
12898 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12899 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12901 (init_record_btrace_ops): Install it.
12903 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12905 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12908 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12910 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12913 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12915 * frame-unwind.c: Include target.h.
12916 (frame_unwind_try_unwinder): New function with code from ...
12917 (frame_unwind_find_by_frame): ... here. New variable
12918 unwinder_from_target, call also target_get_unwinder)
12919 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12920 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12921 * target.h (struct target_ops): New fields to_get_unwinder and
12922 to_get_tailcall_unwinder.
12923 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12925 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12927 * record-btrace.c (record_btrace_fetch_registers)
12928 (record_btrace_store_registers)
12929 (record_btrace_to_prepare_to_store): New.
12930 (init_record_btrace_ops): Add the above.
12932 2014-01-16 Tom Tromey <tromey@redhat.com>
12934 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12935 * target.h (struct target_ops) <to_prepare_to_store>: Add
12937 (target_prepare_to_store): Add argument.
12938 * target.c (debug_to_prepare_to_store): Add argument.
12939 (update_current_target): Update.
12940 * remote.c (remote_prepare_to_store): Add 'self' argument.
12941 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12942 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12943 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12944 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12946 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12947 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12948 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12949 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12950 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12952 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12954 * btrace.h (replay) <replay>: New.
12955 (btrace_is_replaying): New.
12956 * btrace.c (btrace_clear): Free replay iterator.
12957 (btrace_is_replaying): New.
12958 * record-btrace.c (record_btrace_is_replaying): New.
12959 (record_btrace_info): Print insn number if replaying.
12960 (record_btrace_insn_history): Start at replay position.
12961 (record_btrace_call_history): Start at replay position.
12962 (init_record_btrace_ops): Init to_record_is_replaying.
12964 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12966 * record-btrace.c (record_btrace_insn_history_range): Include
12968 (record_btrace_insn_history_from): Adjust range.
12969 (record_btrace_call_history_range): Include
12971 (record_btrace_call_history_from): Adjust range.
12972 * NEWS: Announce changes.
12974 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12976 * record.h (enum record_print_flag)
12977 <record_print_indent_calls>: New.
12978 * record.c (get_call_history_modifiers): Recognize /c modifier.
12979 (_initialize_record): Document /c modifier.
12980 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12981 Reorder fields. Optionally indent the function name. Update
12983 * NEWS: Announce changes.
12985 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12987 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12991 * btrace.c (ftrace_new_function): Start counting at one.
12992 * record-btrace.c (record_btrace_info): Adjust number of calls
12994 * NEWS: Announce it.
12996 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12998 * record-btrace.c (btrace_call_history_insn_range): Print
12999 insn range as [begin, end].
13001 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13003 * btrace.h (struct btrace_func_link): New.
13004 (enum btrace_function_flag): New.
13005 (struct btrace_inst): Rename to ...
13006 (struct btrace_insn): ...this. Update all users.
13007 (struct btrace_func) <ibegin, iend>: Remove.
13008 (struct btrace_func_link): New.
13009 (struct btrace_func): Rename to ...
13010 (struct btrace_function): ...this. Update all users.
13011 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13012 (number, level, flags>: New.
13013 (struct btrace_insn_iterator): Rename to ...
13014 (struct btrace_insn_history): ...this.
13016 (struct btrace_insn_iterator, btrace_call_iterator): New.
13017 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13018 (struct btrace_target_info) <begin, end, level>
13019 <insn_history, call_history>: New.
13020 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13021 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13022 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13023 (btrace_call_number, btrace_call_begin, btrace_call_end)
13024 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13025 (btrace_find_function_by_number, btrace_set_insn_history)
13026 (btrace_set_call_history): New.
13027 * btrace.c (btrace_init_insn_iterator)
13028 (btrace_init_func_iterator, compute_itrace): Remove.
13029 (ftrace_print_function_name, ftrace_print_filename)
13030 (ftrace_skip_file): Change
13031 parameter to const.
13032 (ftrace_init_func): Remove.
13033 (ftrace_debug): Use new btrace_function fields.
13034 (ftrace_function_switched): Also consider gaining and
13035 losing symbol information).
13036 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13037 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13038 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13040 (ftrace_new_function): Move. Remove debug print.
13041 (ftrace_update_lines, ftrace_update_insns): New.
13042 (ftrace_update_function): Check for call, ret, and jump.
13043 (compute_ftrace): Renamed to ...
13044 (btrace_compute_ftrace): ...this. Rewritten to compute call
13046 (btrace_fetch, btrace_clear): Updated.
13047 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13048 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13049 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13050 (btrace_call_number, btrace_call_begin, btrace_call_end)
13051 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13052 (btrace_find_function_by_number, btrace_set_insn_history)
13053 (btrace_set_call_history): New.
13054 * record-btrace.c (require_btrace): Use new btrace thread
13056 (record_btrace_info, btrace_insn_history)
13057 (record_btrace_insn_history, record_btrace_insn_history_range):
13058 Use new btrace thread info fields and new iterator.
13059 (btrace_func_history_src_line): Rename to ...
13060 (btrace_call_history_src_line): ...this. Use new btrace
13061 thread info fields.
13062 (btrace_func_history): Rename to ...
13063 (btrace_call_history): ...this. Use new btrace thread info
13064 fields and new iterator.
13065 (record_btrace_call_history, record_btrace_call_history_range):
13066 Use new btrace thread info fields and new iterator.
13068 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13070 * frame.h (frame_id_build_unavailable_stack_special): New.
13071 * frame.c (frame_id_build_unavailable_stack_special): New.
13073 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13075 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13076 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13077 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13079 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13080 (i386_insn_is_jump, i386_jmp_p): New.
13081 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13082 insn_is_jump to gdbarch.
13083 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13084 * gdbarch.h: Regenerated.
13085 * gdbarch.c: Regenerated.
13086 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13087 (default_insn_is_jump): New.
13088 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13089 (default_insn_is_jump): New.
13091 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13093 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13095 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13096 (btrace_read_type) <btrace_read_new>: Change to ...
13097 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13099 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13101 * common/linux-btrace.c (linux_read_btrace): Free trace from
13102 previous iteration.
13104 2014-01-15 Doug Evans <dje@google.com>
13106 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13109 2014-01-15 Tom Tromey <tromey@redhat.com>
13111 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13112 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13113 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13114 (set_objfile_main_name): New function.
13115 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13116 language_of_main>: New fields.
13117 (set_objfile_main_name): Declare.
13118 * symtab.c (find_main_name): Loop over objfiles to find the main
13120 (set_main_name): Now static.
13121 (get_main_info): Add comment.
13122 * symtab.h (set_main_name): Don't declare.
13124 2014-01-15 Tom Tromey <tromey@redhat.com>
13126 * symtab.c (main_progspace_key): New global.
13127 (struct main_info): New.
13128 (name_of_main, language_of_main): Remove.
13129 (get_main_info, main_info_cleanup): New function.
13130 (set_main_name, main_name, main_language): Use get_main_info.
13131 (_initialize_symtab): Initialize main_progspace_key.
13133 2014-01-15 Tom Tromey <tromey@redhat.com>
13135 * dbxread.c (process_one_symbol): Update.
13136 * dwarf2read.c (read_partial_die): Update.
13137 * symfile.c (set_initial_language): Call main_language.
13138 * symtab.c (language_of_main): Now static.
13139 (set_main_name): Add 'lang' parameter.
13140 (find_main_name): Update.
13141 (main_language): New function.
13142 (symtab_observer_executable_changed): Update.
13143 * symtab.h (set_main_name): Update.
13144 (language_of_main): Remove.
13145 (main_language): Declare.
13147 2014-01-15 Tom Tromey <tromey@redhat.com>
13149 * symfile.c (init_entry_point_info): Use new "initialized" field.
13151 * objfiles.h (struct entry_point) <initialized>: New field.
13152 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13153 (struct objfile) <ei>: ...here. Remove.
13154 * objfiles.c (entry_point_address_query): Update.
13156 2014-01-15 Tom Tromey <tromey@redhat.com>
13158 * objfiles.c (entry_point_address_query): Relocate entry point
13160 (objfile_relocate1): Do not relocate entry point address.
13161 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13162 <the_bfd_section_index>: New field.
13163 * symfile.c (init_entry_point_info): Find the entry point's
13166 2014-01-15 Tom Tromey <tromey@redhat.com>
13168 * solib-frv.c (enable_break): Use entry_point_address_query.
13170 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13172 * NEWS: Add note on improved process record-replay on
13173 arm*-linux* targets.
13175 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13177 * arm-tdep.c (enum arm_record_result): New enum.
13178 (arm_record_unsupported_insn): New function.
13179 (arm_record_coproc_data_proc): Removed.
13180 (thumb2_record_ld_st_multiple): New function.
13181 (thumb2_record_ld_st_dual_ex_tbb): New function.
13182 (thumb2_record_data_proc_sreg_mimm): New function.
13183 (thumb2_record_ps_dest_generic): New function.
13184 (thumb2_record_branch_misc_cntrl): New function.
13185 (thumb2_record_str_single_data): New function.
13186 (thumb2_record_ld_mem_hints): New function.
13187 (thumb2_record_ld_word): New function.
13188 (thumb2_record_lmul_lmla_div): New function.
13189 (thumb2_record_decode_insn_handler): New function.
13190 (decode_insn): Add thumb32 instruction handlers.
13192 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13194 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13195 (struct arm_linux_record_tdep): Declare.
13196 (arm_canonicalize_syscall): New function.
13197 (arm_all_but_pc_registers_record): New function.
13198 (arm_linux_syscall_record): New function.
13199 (arm_linux_init_abi): Add syscall recording constructs.
13200 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13201 decoding. (arm_record_coproc_data_proc): Update arm syscall
13203 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13204 <arm_syscall_record>: New field.
13205 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13208 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13210 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13211 register for push instruction recording.
13213 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13215 * arm-tdep.c (thumb_record_misc): Update to correct logical
13216 error while recording ldm, ldmia and pop instructions.
13218 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13220 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13222 2014-01-15 Pedro Alves <palves@redhat.com>
13224 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13225 (go32_resume, go32_fetch_registers, store_register)
13226 (go32_store_registers, go32_prepare_to_store)
13227 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13228 (go32_create_inferior, go32_can_run, go32_terminal_init)
13229 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13232 2014-01-15 Tom Tromey <tromey@redhat.com>
13234 * target.h (async_callback_ftype): New typedef.
13235 (struct target_ops) <to_async>: Use it.
13237 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13239 * python/py-value.c (get_field_type): Remove unnecessary curly
13240 braces for single-statement if block.
13242 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13244 * python/py-type.c (convert_field): Add missing empty line
13245 after declarations.
13247 2014-01-14 Doug Evans <dje@google.com>
13249 * symfile.h (expand_symtabs_matching): Renamed from
13250 expand_partial_symbol_names. Update prototype.
13251 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13252 * symfile.c (expand_symtabs_matching): Renamed from
13253 expand_partial_symbol_names. New args file_matcher, kind.
13254 Rename arg fun to symbol_matcher.
13255 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13256 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13257 ada_expand_partial_symbol_name.
13258 (ada_make_symbol_completion_list): Update to call
13259 expand_symtabs_matching.
13260 (ada_add_global_exceptions): Call expand_symtabs_matching.
13261 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13262 call map_symbol_filenames.
13263 * symtab.c (sources_info): Update to call map_symbol_filenames.
13264 (search_symbols): Call expand_symtabs_matching.
13265 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13266 (default_make_symbol_completion_list_break_on): Update to call
13267 expand_symtabs_matching.
13268 (make_source_files_completion_list): Update to call
13269 map_symbol_filenames.
13271 2014-01-14 Doug Evans <dje@google.com>
13273 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13274 (expand_symtabs_symbol_matcher_ftype): New typedef.
13275 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13276 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13277 * symfile.c (expand_partial_symbol_names): Update to use
13278 expand_symtabs_symbol_matcher_ftype.
13279 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13280 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13281 Arg name_matcher renamed to symbol_matcher.
13282 * psymtab.c (recursively_search_psymtabs): Update to use
13283 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13285 (expand_symtabs_matching_via_partial): Update to use
13286 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13287 Arg name_matcher renamed to symbol_matcher.
13289 2014-01-14 Doug Evans <dje@google.com>
13291 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13292 (map_partial_symbol_filenames): Ditto.
13293 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13294 (map_partial_symbol_filenames): Ditto.
13295 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13296 (map_partial_symbol_filenames): Ditto.
13297 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13298 (map_partial_symbol_filenames): Ditto.
13299 * symtab.c: Delete #include "psymtab.h".
13301 2014-01-14 Pedro Alves <palves@redhat.com>
13302 Tom Tromey <tromey@redhat.com>
13304 * infrun.c (use_displaced_stepping): Use find_record_target
13305 instead of RECORD_IS_USED.
13306 (adjust_pc_after_break): Use record_full_is_used instead of
13308 * record-btrace.c (record_btrace_open): Call record_preopen
13309 instead of checking RECORD_IS_USED.
13310 * record-full.c (record_full_shortname)
13311 (record_full_core_shortname): New globals.
13312 (record_full_is_used): New function.
13313 (find_full_open): Call record_preopen instead of checking
13315 (init_record_full_ops): Set the target's shortname to
13316 record_full_shortname.
13317 (init_record_full_core_ops): Set the target's shortname to
13318 record_full_core_shortname.
13319 * record-full.h (record_full_is_used): Declare.
13320 * record.c (find_record_target): Make extern.
13321 (record_preopen): New function.
13322 * record.h (RECORD_IS_USED): Delete macro.
13323 (find_record_target, record_preopen): Declare functions.
13325 2014-01-14 Yao Qi <yao@codesourcery.com>
13327 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13328 'len''s type to ULONGEST.
13329 (core_xfer_shared_libraries_aix): Likewise.
13330 * gdbarch.c, gdbarch.h: Regenerated.
13331 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13332 Change type of 'len' to ULONGEST.
13333 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13334 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13336 2014-01-14 Yao Qi <yao@codesourcery.com>
13338 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13339 type of 'len' to ULONGEST.
13340 (linux_xfer_osdata_processgroups): Likewise.
13341 (linux_xfer_osdata_threads): Likewise.
13342 (linux_xfer_osdata_fds): Likewise.
13343 (linux_xfer_osdata_isockets): Likewise.
13344 (linux_xfer_osdata_shm): Likewise.
13345 (linux_xfer_osdata_sem): Likewise.
13346 (linux_xfer_osdata_msg): Likewise.
13347 (linux_common_xfer_osdata): Likewise.
13348 (struct osdata_type) <getter>: Likewise.
13349 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13352 2014-01-14 Yao Qi <yao@codesourcery.com>
13354 * target.h (target_xfer_partial_ftype): Update.
13355 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13357 * aix-thread.c (aix_thread_xfer_partial): Change type of
13358 argument 'len' to ULONGEST.
13359 * auxv.c (procfs_xfer_auxv): Likewise.
13360 (ld_so_xfer_auxv): Likewise.
13361 (memory_xfer_auxv): Likewise.
13362 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13363 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13364 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13365 * corelow.c (core_xfer_partial): Likewise.
13366 * ctf.c (ctf_xfer_partial): Likewise.
13367 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13369 (darwin_read_dyld_info): Likewise.
13370 (darwin_xfer_partial): Likewise.
13371 * exec.c (section_table_xfer_memory_partial): Likewise.
13372 (exec_xfer_partial): Likewise.
13373 * exec.h (section_table_xfer_memory_partial): Update
13375 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13376 instead of plongest.
13377 (gnu_xfer_partial): Likewise.
13378 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13379 (ia64_hpux_xfer_solib_got): Likewise.
13380 (ia64_hpux_xfer_partial): Likewise.
13381 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13382 * inf-ptrace.c (inf_ptrace_xfer_partial):
13383 * inf-ttrace.c (inf_ttrace_xfer_partial):
13384 * linux-nat.c (linux_xfer_siginfo): Likewise.
13385 (linux_nat_xfer_partial): Likewise.
13386 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13387 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13388 * monitor.c (monitor_xfer_memory): Likewise.
13389 (monitor_xfer_partial): Likewise.
13390 * procfs.c (procfs_xfer_partial): Likewise.
13391 * record-full.c (record_full_xfer_partial): Likewise.
13392 (record_full_core_xfer_partial): Likewise.
13393 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13394 instead of plongest.
13395 (gdbsim_xfer_partial): Likewise.
13396 * remote.c (remote_xfer_partial): Likewise.
13397 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13398 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13400 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13401 (rs6000_xfer_shared_libraries): Likewise.
13402 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13403 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13404 (sparc_xfer_partial): Likewise.
13405 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13406 (spu_xfer_partial): Likewise.
13407 * spu-multiarch.c (spu_xfer_partial): Likewise.
13408 * target.c (target_read_live_memory): Likewise.
13409 (memory_xfer_live_readonly_partial): Likewise.
13410 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13411 (target_xfer_partial, default_xfer_partial): Likewise.
13412 (current_xfer_partial): Likewise.
13413 * tracepoint.c (tfile_xfer_partial): Likewise.
13414 * windows-nat.c (windows_xfer_memory): Likewise. Call
13415 pulongest instead of plongest.
13416 (windows_xfer_partial): Likewise.
13417 (windows_xfer_shared_libraries): Likewise.
13419 2014-01-14 Yao Qi <yao@codesourcery.com>
13421 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13422 target_xfer_partial_ftype.
13424 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13428 * valops.c (value_struct_elt_bitpos): New function
13429 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13430 object to 'None' if the field name is an empty string ("").
13431 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13432 attribute to look for a field when 'name' is 'None'.
13433 (get_field_type): New function
13435 2014-01-13 Doug Evans <dje@google.com>
13438 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13439 (try_open_dwop_file): Ditto.
13440 * gdb_bfd.c: #include "vec.h".
13441 (bfdp): New typedef.
13442 (struct gdb_bfd_data): New member included_bfds.
13443 (gdb_bfd_unref): Unref all included bfds.
13444 (gdb_bfd_record_inclusion): New function.
13445 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13447 2014-01-13 Tom Tromey <tromey@redhat.com>
13449 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13451 2014-01-13 Tom Tromey <tromey@redhat.com>
13453 * defs.h (use_windows): Remove.
13454 * gdb.c (main): Update.
13455 * main.c (captured_main, gdb_main): Update.
13456 * main.h (struct captured_main_args) <use_windows>: Remove.
13457 * top.c (use_windows): Remove.
13459 2014-01-13 Tom Tromey <tromey@redhat.com>
13461 * defs.h (deprecated_flush_hook): Remove.
13463 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13466 * linux-thread-db.c (try_thread_db_load): Add parameter
13467 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13468 (try_thread_db_load_from_pdir_1): Move it there from here.
13469 (try_thread_db_load_from_sdir): Update caller.
13470 (try_thread_db_load_from_dir): Move it there from here.
13472 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13474 * regformats/regdat.sh: Always rewrite the register file.
13476 2014-01-13 Pedro Alves <palves@redhat.com>
13478 * Makefile.in (CHECK_HEADERS): New variable.
13479 (check-headers:): New rule.
13481 2014-01-13 Tom Tromey <tromey@redhat.com>
13483 * cli/cli-setshow.c (do_set_command): Update.
13484 * defs.h (deprecated_set_hook): Remove.
13485 * top.c (deprecated_set_hook): Remove.
13487 2014-01-13 Pedro Alves <palves@redhat.com>
13489 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13490 the tracepoint if the PC is a pseudo-register.
13492 2014-01-13 Tom Tromey <tromey@redhat.com>
13494 * defs.h (XCALLOC): Remove.
13495 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13496 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13497 * dwarf2loc.c (allocate_piece_closure): Likewise.
13498 * elfread.c (elf_symfile_segments): Likewise.
13499 (elf_symfile_segments): Likewise.
13500 * gdbtypes.c (copy_type_recursive): Likewise.
13501 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13502 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13503 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13505 * mt-tdep.c (mt_gdbarch_init): Likewise.
13506 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13508 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13509 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13510 * registry.c (registry_alloc_data): Likewise.
13511 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13512 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13513 * serial.c (serial_fdopen_ops): Likewise.
13514 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13516 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13517 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13520 2014-01-13 Tom Tromey <tromey@redhat.com>
13522 * defs.h (XMALLOC): Remove.
13523 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13524 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13525 * cli-out.c (struct ui_out *): Likewise.
13526 * cli/cli-dump.c (add_dump_command): Likewise.
13527 (add_dump_command): Likewise.
13528 * complaints.c (get_complaints): Likewise.
13529 (find_complaint): Likewise.
13530 * dwarf2-frame.c (execute_cfa_program): Likewise.
13531 * dwarf2read.c (abbrev_table_read_table): Likewise.
13532 * gdbarch.sh: Likewise.
13533 * gdbarch.c: Rebuild.
13534 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13535 * interps.c (interp_new): Likewise.
13536 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13537 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13538 * mi/mi-console.c (mi_console_file_new): Likewise.
13539 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13540 * mi/mi-out.c (mi_out_new): Likewise.
13541 * mi/mi-parse.c (mi_parse): Likewise.
13542 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13543 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13544 * observer.c (xalloc_observer_list_node): Likewise.
13545 * regcache.c (regcache_xmalloc_1): Likewise.
13546 * reggroups.c (reggroup_new): Likewise.
13547 (_initialize_reggroup): Likewise.
13548 * registry.c (register_data_with_cleanup): Likewise.
13549 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13550 * ser-base.c (serial_ttystate): Likewise.
13551 * ser-mingw.c (make_pipe_state): Likewise.
13552 * ser-pipe.c (pipe_open): Likewise.
13553 * serial.c (serial_open): Likewise.
13554 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13555 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13556 (tui_alloc_win_info): Likewise.
13557 (tui_add_content_elements): Likewise.
13558 * tui/tui-file.c (tui_file_new): Likewise.
13559 * tui/tui-out.c (tui_out_new): Likewise.
13560 * ui-file.c (mem_file_new): Likewise.
13561 * ui-out.c (push_level): Likewise.
13562 (make_cleanup_ui_out_end): Likewise.
13563 (append_header_to_list): Likewise.
13564 (ui_out_new): Likewise.
13565 * user-regs.c (user_reg_add_builtin): Likewise.
13567 2014-01-13 Tom Tromey <tromey@redhat.com>
13569 * defs.h (XZALLOC): Remove.
13570 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13571 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13572 (get_ada_tasks_inferior_data): Likewise.
13573 * auto-load.c (get_auto_load_pspace_data): Likewise.
13574 * auxv.c (get_auxv_inferior_data): Likewise.
13575 * bfd-target.c (target_bfd_reopen): Likewise.
13576 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13577 (deprecated_insert_raw_breakpoint): Likewise.
13578 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13579 * corelow.c (core_open): Likewise.
13580 * darwin-nat.c (darwin_check_new_threads): Likewise.
13581 (darwin_attach_pid): Likewise.
13582 * dummy-frame.c (dummy_frame_push): Likewise.
13583 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13584 * dwarf2loc.c (allocate_piece_closure): Likewise.
13585 * elfread.c (elf_symfile_segments): Likewise.
13586 * eval.c (ptrmath_type_p): Likewise.
13587 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13588 * gdbtypes.c (alloc_type_arch): Likewise.
13589 (alloc_type_instance): Likewise.
13590 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13591 * inf-child.c (inf_child_can_use_agent): Likewise.
13592 * inflow.c (get_inflow_inferior_data): Likewise.
13593 * infrun.c (save_infcall_suspend_state): Likewise.
13594 * jit.c (jit_reader_load): Likewise.
13595 (get_jit_objfile_data): Likewise.
13596 (get_jit_program_space_data): Likewise.
13597 (jit_object_open_impl): Likewise.
13598 (jit_symtab_open_impl): Likewise.
13599 (jit_block_open_impl): Likewise.
13600 (jit_frame_sniffer): Likewise.
13601 * linux-fork.c (add_fork): Likewise.
13602 * maint.c (make_command_stats_cleanup): Likewise.
13603 * objfiles.c (get_objfile_pspace_data): Likewise.
13604 * opencl-lang.c (struct lval_closure): Likewise.
13605 * osdata.c (osdata_start_osdata): Likewise.
13606 * progspace.c (new_address_space): Likewise.
13607 (add_program_space): Likewise.
13608 * remote-sim.c (get_sim_inferior_data): Likewise.
13609 * sh-tdep.c (sh_gdbarch_init): Likewise.
13610 * skip.c (Ignore): Likewise.
13611 (skip_delete_command): Likewise.
13612 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13613 (library_list_start_library): Likewise.
13614 (solib_aix_current_sos): Likewise.
13615 * solib-darwin.c (get_darwin_info): Likewise.
13616 (darwin_current_sos): Likewise.
13617 * solib-dsbt.c (get_dsbt_info): Likewise.
13618 * solib-ia64-hpux.c (new_so_list): Likewise.
13619 (ia64_hpux_get_solib_linkage_addr): Likewise.
13620 * solib-spu.c (append_ocl_sos): Likewise.
13621 (spu_current_sos): Likewise.
13622 * solib-svr4.c (get_svr4_info): Likewise.
13623 (svr4_keep_data_in_core): Likewise.
13624 (library_list_start_library): Likewise.
13625 (svr4_default_sos): Likewise.
13626 (svr4_read_so_list): Likewise.
13627 * solib-target.c (library_list_start_library): Likewise.
13628 (solib_target_current_sos): Likewise.
13629 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13630 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13631 * symfile.c (default_symfile_segments): Likewise.
13632 * target-descriptions.c (tdesc_data_init): Likewise.
13633 (tdesc_create_reg): Likewise.
13634 (struct tdesc_type *): Likewise.
13635 (tdesc_create_vector): Likewise.
13636 (tdesc_set_struct_size): Likewise.
13637 (struct tdesc_type *): Likewise.
13638 (tdesc_free_feature): Likewise.
13639 (tdesc_create_feature): Likewise.
13640 * windows-nat.c (windows_add_thread): Likewise.
13641 (windows_make_so): Likewise.
13642 * xml-support.c (gdb_xml_body_text): Likewise.
13643 (gdb_xml_create_parser_and_cleanup): Likewise.
13644 (xml_process_xincludes): Likewise.
13645 * xml-syscall.c (allocate_syscalls_info): Likewise.
13646 (syscall_create_syscall_desc): Likewise.
13648 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13650 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13651 function, with code from i386_stap_parse_special_token.
13652 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13653 (i386_stap_parse_special_token): Move code to the two functions
13654 above; simplify it.
13656 2014-01-09 Pedro Alves <palves@redhat.com>
13657 Hui Zhu <hui@codesourcery.com>
13660 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13661 bp_err_string. Don't mark the location shlib_disabled if the
13662 error thrown wasn't a generic or memory error. Catch errors
13663 thrown while inserting breakpoints in overlayed code. Output
13664 error message of software breakpoints.
13665 * remote.c (remote_insert_breakpoint): If this breakpoint has
13666 target-side commands but this stub doesn't support Z0 packets,
13667 throw NOT_SUPPORTED_ERROR error.
13668 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13669 * target.h (target_insert_breakpoint): Extend comment.
13670 (target_insert_hw_breakpoint): Add comment.
13672 2014-01-08 Pedro Alves <palves@redhat.com>
13674 * remote.c (remote_add_thread): Add threads silently if starting
13676 (remote_notice_new_inferior): If in all-stop, and starting up,
13677 don't call notice_new_inferior.
13678 (get_current_thread): New function, factored out from ...
13679 (add_current_inferior_and_thread): ... this. Adjust.
13680 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13681 found any thread, then select the remote's current thread as GDB's
13682 current thread too.
13684 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13686 * NEWS: Create a new section for the next release branch.
13687 Rename the section of the current branch, now that it has
13690 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13692 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13693 * version.in: Bump version to 7.7.50.DATE-cvs.
13695 2014-01-08 Yao Qi <yao@codesourcery.com>
13697 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13698 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13699 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13701 2014-01-08 Yao Qi <yao@codesourcery.com>
13703 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13704 return value of bfd_get_filename to symbol_file_add_from_bfd.
13706 2014-01-08 Pierre Muller <muller@sourceware.org>
13709 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13710 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13711 to prim_record_mininal_symbol_and_info.
13712 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13713 in call to prim_record_minimal_symbol_and_info.
13714 (read_pe_exported_syms): Set index field of section_data.
13716 2014-01-07 Andrew Pinski <apinski@cavium.com>
13718 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13719 * features/aarch64.c: Regenerate.
13721 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13723 * target.c (return_null): Define.
13724 (update_current_target): Use it instead of return_zero for
13725 functions that return a pointer.
13727 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13729 * source.c (add_path): Fix check for duplicated paths in the previously
13732 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13734 * ada-lang.c: Remove duplicated include statements.
13735 * alphabsd-nat.c: Ditto.
13736 * amd64-darwin-tdep.c: Ditto.
13737 * amd64fbsd-nat.c: Ditto.
13738 * auto-load.c: Ditto.
13740 * breakpoint.c: Ditto.
13741 * dbxread.c: Ditto.
13742 * fork-child.c: Ditto.
13743 * gdb_usleep.c: Ditto.
13744 * i386-darwin-tdep.c: Ditto.
13745 * i386fbsd-nat.c: Ditto.
13747 * inferior.c: Ditto.
13748 * jv-lang.c: Ditto.
13749 * linux-nat.c: Ditto.
13750 * linux-tdep.c: Ditto.
13751 * m68kbsd-nat.c: Ditto.
13752 * m68klinux-nat.c: Ditto.
13753 * microblaze-tdep.c: Ditto.
13754 * mips-linux-tdep.c: Ditto.
13755 * mn10300-tdep.c: Ditto.
13756 * nto-tdep.c: Ditto.
13757 * opencl-lang.c: Ditto.
13759 * printcmd.c: Ditto.
13760 * regcache.c: Ditto.
13761 * remote-m32r-sdi.c: Ditto.
13763 * symfile.c: Ditto.
13765 * tilegx-linux-nat.c: Ditto.
13766 * tilegx-tdep.c: Ditto.
13767 * tracepoint.c: Ditto.
13769 * vaxbsd-nat.c: Ditto.
13770 * windows-nat.c: Ditto.
13771 * xtensa-tdep.c: Ditto.
13773 2014-01-07 Yao Qi <yao@codesourcery.com>
13775 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13777 2014-01-07 Yao Qi <yao@codesourcery.com>
13778 Joel Brobecker <brobecker@adacore.com>
13780 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13781 (pdc_write_regs): Likewise.
13782 (fetch_regs_kernel_thread): Likewise.
13783 (store_regs_kernel_thread): Likewise.
13785 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13787 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13788 tagged type objects to their actual type.
13790 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13792 * ada-valprint.c (print_field_values): Add "language" parameter.
13793 Update calls to print_field_values and print_variant_part.
13794 Pass new parameter "language" in call to val_print instead
13795 of "current_language". Replace call to ada_val_print by call
13797 (print_variant_part): Add "language" parameter.
13798 (ada_val_print_struct_union): Update call to print_field_values.
13800 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13802 * ada-valprint.c (ui_memcpy): Delete.
13803 (ada_print_floating): Update documentation. Add empty line
13804 between between function documentation and implementation.
13805 Delete variable "buffer". Use ui_file_xstrdup in place of
13806 ui_file_put. Minor adjustments following this change.
13808 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13810 * ada-valprint.c (ada_val_print_string): New function,
13811 extracted from ada_val_print_array.
13812 (ada_val_print_array): Replace extracted code by call
13813 to ada_val_print_string followed by a return. Move
13814 "else" branch to the function's top block.
13816 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13818 * ada-valprint.c (ada_val_print_array): Move implementation
13819 down. Rename parameter "offset" and "val" into "offset_aligned"
13820 and "original_value" respectively. Add parameter "offset".
13822 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13824 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13825 re-organizing the code. Change the "???" message printed
13826 when target type is a TYPE_CODE_UNDEF into
13827 "<ref to undefined type>".
13829 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13831 * ada-valprint.c (print_record): Delete, implementation inlined...
13832 (ada_val_print_struct_union): ... here. Remove call to
13833 ada_check_typedef in inlined implementation.
13835 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13837 * ada-valprint.c (ada_val_print_gnat_array): New function,
13838 extracted from ada_val_print_1;
13839 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13840 (ada_val_print_flt, ada_val_print_struct_union)
13841 (ada_val_print_ref): Likewise.
13842 (ada_val_print_1): Delete variables i and elttype.
13843 Replace extracted-out code by call to corresponding
13846 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13848 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13850 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13852 * ada-valprint.c (ada_val_print_1): Replace calls to
13853 ada_val_print_1 by calls to val_print.
13855 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13857 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13858 Update calls to self accordingly. Replace calls to c_val_print
13859 by calls to val_print.
13861 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13863 * ada-valprint.c (print_record): Delete declaration.
13864 (adjust_type_signedness, ada_val_print_1): Likewise.
13865 (ada_val_print): Move function implementation down.
13866 (print_variant_part, print_field_values, print_record):
13867 Move function implementation up.
13869 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13871 * python/py-type.c (typy_get_name): New function.
13872 (type_object_getset): Add entry for attribute "name".
13873 * NEWS: Add entry mentioning this new attribute.
13875 2014-01-07 Yao Qi <yao@codesourcery.com>
13877 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13880 2014-01-07 Yao Qi <yao@codesourcery.com>
13882 * gnu-nat.c (info_port_rights): Add qualifier const to
13885 2014-01-07 Yao Qi <yao@codesourcery.com>
13887 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13889 2014-01-07 Yao Qi <yao@codesourcery.com>
13891 * gnu-nat.c (make_inf) Update declaration.
13892 (make_inf): Make it static.
13893 (inf_set_traced): Likewise.
13894 (inf_port_to_thread, inf_task_died_status): Likewise.
13896 2014-01-07 Yao Qi <yao@codesourcery.com>
13898 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13900 2014-01-07 Yao Qi <yao@codesourcery.com>
13902 * gnu-nat.c (_initialize_gnu_nat): Declare.
13904 2014-01-07 Yao Qi <yao@codesourcery.com>
13906 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13908 (struct gdbarch_info) <byte_order>: Change type to
13910 <byte_order_for_code>: Likewise.
13911 * gdbarch.c, gdbarch.h: Regenerated.
13913 2014-01-06 Sasha Smundak <asmundak@google.com>
13915 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13917 2014-01-06 Tom Tromey <tromey@redhat.com>
13919 * doublest.c (convert_doublest_to_floatformat): Use const, not
13921 * somread.c (som_symtab_read): Likewise.
13923 2014-01-07 Hui Zhu <hui@codesourcery.com>
13925 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13926 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13927 (gdb_bfd_fopen): Ditto.
13928 (gdb_bfd_openr): Ditto.
13929 (gdb_bfd_openw): Ditto.
13930 (gdb_bfd_openr_iovec): Ditto.
13931 (gdb_bfd_fdopenr): Ditto.
13932 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13933 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13935 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13937 * symfile-mem.c (symbol_file_add_from_memory): Removed
13938 gdb_bfd_stash_filename.
13940 2014-01-03 Doug Evans <dje@google.com>
13942 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13945 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13947 Update year range in copyright notice of all files.
13949 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13951 * top.c (print_gdb_version): Set copyright year to 2014.
13953 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13955 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13957 For older changes see ChangeLog-2013.
13963 version-control: never