1 2014-10-13 Doug Evans <dje@google.com>
3 * python/py-objfile.c (objfpy_initialize): New function.
4 (objfpy_new, objfile_to_objfile_object): Call it.
5 * python/py-progspace.c (pspy_initialize): New function.
6 (pspy_new, pspace_to_pspace_object): Call it.
8 2014-10-13 Miroslav Franc <mfranc@redhat.com>
9 Jan Kratochvil <jan.kratochvil@redhat.com>
11 Fix "save breakpoints" for "catch" command.
12 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
15 2014-10-12 Miroslav Franc <mfranc@redhat.com>
17 Fix "save breakpoints" for "disable $bpnum" command.
18 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
20 2014-10-10 Pedro Alves <palves@redhat.com>
22 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
23 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
24 (HFILES_NO_SRCDIR): Remove solib-irix.h.
25 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
27 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
28 * configure.ac: Remove references to IRIX.
29 * configure.host: Add *-*-irix* to the obsolete hosts section.
30 Remove all other references to irix.
31 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
34 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
36 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
37 isn't valid, release the tdesc arch data and return NULL.
39 2014-10-10 Pedro Alves <palves@redhat.com>
41 * linux-tdep.c: Include observer.h.
42 (linux_inferior_data): New global.
43 (struct linux_info): New structure.
44 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
45 (get_linux_inferior_data): New functions.
46 (linux_vsyscall_range): Rename to ...
47 (linux_vsyscall_range_raw): ... this.
48 (linux_vsyscall_range): New function; handles caching.
49 (_initialize_linux_tdep): Register linux_inferior_data. Install
50 inferior_exit and inferior_appeared observers.
52 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
53 Pedro Alves <palves@redhat.com>
56 * solib-svr4.c (svr4_read_so_list): Rename to ...
57 (svr4_current_sos_1): ... this and change the function comment.
58 (svr4_current_sos): New function.
60 2014-10-10 Pedro Alves <palves@redhat.com>
62 * arch-utils.c (default_vsyscall_range): New function.
63 * arch-utils.h (default_vsyscall_range): New declaration.
64 * gdbarch.sh (vsyscall_range): New hook.
65 * gdbarch.h, gdbarch.c: Regenerate.
66 * linux-tdep.c (linux_vsyscall_range): New function.
67 (linux_init_abi): Install linux_vsyscall_range as
68 vsyscall_range gdbarch hook.
69 * memrange.c (address_in_mem_range): New function.
70 * memrange.h (address_in_mem_range): New declaration.
71 * symfile-mem.c (find_vdso_size): Delete function.
72 (add_vsyscall_page): Use gdbarch_vsyscall_range.
74 2014-10-10 Pedro Alves <palves@redhat.com>
76 * infrun.c (normal_stop): Fix typo in comment.
78 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
81 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
82 typo when using logical AND to determine instruction type.
84 2014-10-09 Yao Qi <yao@codesourcery.com>
86 * infrun.c (handle_signal_stop): Remove local variable
89 2014-10-08 Stan Shebs <stan@codesourcery.com>
91 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
93 2014-10-08 Gary Benson <gbenson@redhat.com>
95 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
97 2014-10-08 Gary Benson <gbenson@redhat.com>
99 * common/common-defs.h: Include common-exceptions.h.
100 * exceptions.h: Do not include common-exceptions.h.
102 2014-10-08 Gary Benson <gbenson@redhat.com>
104 * common/common-defs.h: Include cleanups.h.
105 * common/common-exceptions.c: Do not include cleanups.h.
108 2014-10-08 Gary Benson <gbenson@redhat.com>
110 * ada-lang.c: Do not include exceptions.h.
111 * ada-valprint.c: Likewise.
112 * amd64-tdep.c: Likewise.
113 * auto-load.c: Likewise.
115 * break-catch-throw.c: Likewise.
116 * breakpoint.c: Likewise.
117 * btrace.c: Likewise.
118 * c-lang.c: Likewise.
119 * cli/cli-cmds.c: Likewise.
120 * cli/cli-interp.c: Likewise.
121 * cli/cli-script.c: Likewise.
122 * completer.c: Likewise.
123 * corefile.c: Likewise.
124 * corelow.c: Likewise.
125 * cp-abi.c: Likewise.
126 * cp-support.c: Likewise.
127 * cp-valprint.c: Likewise.
128 * darwin-nat.c: Likewise.
129 * dwarf2-frame-tailcall.c: Likewise.
130 * dwarf2-frame.c: Likewise.
131 * dwarf2loc.c: Likewise.
132 * dwarf2read.c: Likewise.
134 * event-loop.c: Likewise.
135 * event-top.c: Likewise.
136 * f-valprint.c: Likewise.
137 * frame-unwind.c: Likewise.
139 * gdbtypes.c: Likewise.
140 * gnu-v2-abi.c: Likewise.
141 * gnu-v3-abi.c: Likewise.
142 * guile/scm-auto-load.c: Likewise.
143 * guile/scm-breakpoint.c: Likewise.
144 * guile/scm-cmd.c: Likewise.
145 * guile/scm-frame.c: Likewise.
146 * guile/scm-lazy-string.c: Likewise.
147 * guile/scm-param.c: Likewise.
148 * guile/scm-symbol.c: Likewise.
149 * guile/scm-type.c: Likewise.
150 * hppa-hpux-tdep.c: Likewise.
151 * i386-tdep.c: Likewise.
152 * inf-loop.c: Likewise.
153 * infcall.c: Likewise.
154 * infcmd.c: Likewise.
155 * infrun.c: Likewise.
156 * interps.c: Likewise.
157 * interps.h: Likewise.
159 * linespec.c: Likewise.
160 * linux-nat.c: Likewise.
161 * linux-thread-db.c: Likewise.
162 * m32r-rom.c: Likewise.
164 * memory-map.c: Likewise.
165 * mi/mi-cmd-break.c: Likewise.
166 * mi/mi-cmd-stack.c: Likewise.
167 * mi/mi-interp.c: Likewise.
168 * mi/mi-main.c: Likewise.
169 * monitor.c: Likewise.
170 * nto-procfs.c: Likewise.
171 * objc-lang.c: Likewise.
172 * p-valprint.c: Likewise.
174 * ppc-linux-tdep.c: Likewise.
175 * printcmd.c: Likewise.
177 * python/py-auto-load.c: Likewise.
178 * python/py-breakpoint.c: Likewise.
179 * python/py-cmd.c: Likewise.
180 * python/py-finishbreakpoint.c: Likewise.
181 * python/py-frame.c: Likewise.
182 * python/py-framefilter.c: Likewise.
183 * python/py-function.c: Likewise.
184 * python/py-gdb-readline.c: Likewise.
185 * python/py-inferior.c: Likewise.
186 * python/py-infthread.c: Likewise.
187 * python/py-lazy-string.c: Likewise.
188 * python/py-linetable.c: Likewise.
189 * python/py-param.c: Likewise.
190 * python/py-prettyprint.c: Likewise.
191 * python/py-symbol.c: Likewise.
192 * python/py-type.c: Likewise.
193 * python/py-value.c: Likewise.
194 * python/python-internal.h: Likewise.
195 * python/python.c: Likewise.
196 * record-btrace.c: Likewise.
197 * record-full.c: Likewise.
198 * regcache.c: Likewise.
199 * remote-fileio.c: Likewise.
200 * remote-mips.c: Likewise.
201 * remote.c: Likewise.
202 * rs6000-aix-tdep.c: Likewise.
203 * rs6000-nat.c: Likewise.
205 * solib-darwin.c: Likewise.
206 * solib-dsbt.c: Likewise.
207 * solib-frv.c: Likewise.
208 * solib-ia64-hpux.c: Likewise.
209 * solib-spu.c: Likewise.
210 * solib-svr4.c: Likewise.
212 * spu-tdep.c: Likewise.
214 * stap-probe.c: Likewise.
215 * symfile-mem.c: Likewise.
216 * symmisc.c: Likewise.
217 * target.c: Likewise.
218 * thread.c: Likewise.
220 * tracepoint.c: Likewise.
221 * tui/tui-interp.c: Likewise.
222 * typeprint.c: Likewise.
224 * valarith.c: Likewise.
225 * valops.c: Likewise.
226 * valprint.c: Likewise.
228 * varobj.c: Likewise.
229 * windows-nat.c: Likewise.
230 * xml-support.c: Likewise.
232 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
234 * mips-tdep.c (add_offset_16): Rewrite to implement what the
236 (extended_mips16_next_pc): Update accordingly.
238 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
240 * mips-tdep.c (mips16_instruction_is_compact_branch): New
242 (micromips_instruction_is_compact_branch): Likewise.
243 (mips16_scan_prologue): Terminate scanning upon seeing a branch
244 or a compact jump, reaching a jump delay slot, or seeing a
245 second non-prologue instruction.
246 (micromips_scan_prologue): Also terminate scanning upon seeing a
247 compact branch or jump, or reaching a branch or jump delay slot.
248 (mips32_scan_prologue): Terminate scanning upon reaching a branch
249 or jump delay slot, or seeing a second non-prologue instruction.
250 (mips32_instruction_has_delay_slot): Retain instruction
251 examination code only, update arguments accordingly and move
252 instruction fetch pieces to...
253 (mips32_insn_at_pc_has_delay_slot): ... this new function.
254 (micromips_instruction_has_delay_slot): Likewise and to...
255 (micromips_insn_at_pc_has_delay_slot): ... this new function.
256 (mips16_instruction_has_delay_slot): Likewise and to...
257 (mips16_insn_at_pc_has_delay_slot): ... this new function.
258 (mips_single_step_through_delay): Update accordingly.
259 (mips_adjust_breakpoint_address): Likewise.
261 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
263 * mips-tdep.c (micromips_instruction_has_delay_slot): When
264 !mustbe32 also return 1 for 32-bit instructions.
265 (mips16_instruction_has_delay_slot): Likewise. Add an
268 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
270 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
273 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
275 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
277 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
278 for the breakpoint's address. Don't preinitialize `placed_size'.
279 (insert_bp_location): Set `reqstd_address' rather than
281 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
282 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
284 (bkpt_remove_location): Likewise.
285 (deprecated_insert_raw_breakpoint): Likewise.
286 (deprecated_remove_raw_breakpoint): Likewise.
287 (find_single_step_breakpoint): Likewise.
288 * mem-break.c (default_memory_insert_breakpoint): Use
289 `reqstd_address' for the breakpoint's address. Don't set
290 `placed_address' or `placed_size' if breakpoint contents couldn't
291 have been determined.
292 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
293 the breakpoint's address.
294 (remote_insert_hw_breakpoint): Likewise. Don't set
295 `placed_address' or `placed_size' if breakpoint couldn't have been
297 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
298 `reqstd_address' for the breakpoint's address.
299 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
300 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
301 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
302 * microblaze-linux-tdep.c
303 (microblaze_linux_memory_remove_breakpoint): Likewise.
304 * monitor.c (monitor_insert_breakpoint): Likewise.
305 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
306 (procfs_insert_hw_breakpoint): Likewise.
307 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
308 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
309 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
310 * remote-mips.c (mips_insert_breakpoint): Likewise.
311 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
313 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
315 * valops.c (value_assign): Check for bit field assignments
316 before calling architecture-specific register value
317 conversion functions.
319 2014-10-03 Pierre Muller <muller@sourceware.org>
321 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
323 2014-10-02 Pedro Alves <palves@redhat.com>
325 * breakpoint.c (breakpoints_should_be_inserted_now): Use
326 threads_are_executing.
327 * breakpoint.h (breakpoints_should_be_inserted_now): Add
329 * gdbthread.h (threads_are_executing): Declare.
330 (handle_signal_stop) <random signals>: Don't print about the
331 signal here if stopping.
332 (end_stepping_range): Don't notify observers here.
333 (normal_stop): Update the thread list. If stopped by a random
334 signal or a stepping range ended, notify observers.
335 * thread.c (threads_executing): New global.
336 (init_thread_list): Clear 'threads_executing'.
337 (set_executing): Set or clear 'threads_executing'.
338 (threads_are_executing): New function.
339 (update_threads_executing): New function.
340 (update_thread_list): Use it.
342 2014-10-02 Pedro Alves <palves@redhat.com>
345 * breakpoint.c (update_breakpoints_after_exec): Don't create
346 overlay, longjmp, std terminate nor exception breakpoints here.
348 2014-10-02 Pedro Alves <palves@redhat.com>
350 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
352 * inferior.c (find_inferior_for_program_space): Give preference to
353 the current inferior.
354 * inferior.h (find_inferior_for_program_space): Update comment.
355 * progspace.c (switch_to_program_space_and_thread): Prefer the
356 current inferior if it's bound to the program space requested. If
357 the inferior found doesn't have a PID yet, don't bother looking up
359 * progspace.h (switch_to_program_space_and_thread): Adjust
361 * thread.c (any_thread_of_process, any_live_thread_of_process):
362 Give preference to the current thread.
364 2014-10-01 Pedro Alves <palves@redhat.com>
366 * breakpoint.c (insert_bp_location): Error out if inserting a
367 software breakpoint at a read-only address.
368 * target.c (memory_xfer_check_region): New function, factored out
370 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
372 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
373 against the memory region attributes.
375 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
377 * NEWS: Announce new exit-code field in -list-thread-groups
379 * inferior.c (exit_inferior_1): Don't clear exit code.
380 (inferior_appeared): Clear exit code.
381 * mi/mi-main.c (print_one_inferior): Add printing of the exit
384 2014-10-01 Pedro Alves <palves@redhat.com>
386 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
387 GENERATED" along with emacs/vi read-only markers.
388 * regformats/aarch64.dat: Regenerate.
389 * regformats/arm-with-iwmmxt.dat: Regenerate.
390 * regformats/arm-with-neon.dat: Regenerate.
391 * regformats/arm-with-vfpv2.dat: Regenerate.
392 * regformats/arm-with-vfpv3.dat: Regenerate.
393 * regformats/i386/amd64-avx-linux.dat: Regenerate.
394 * regformats/i386/amd64-avx.dat: Regenerate.
395 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
396 * regformats/i386/amd64-avx512.dat: Regenerate.
397 * regformats/i386/amd64-linux.dat: Regenerate.
398 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
399 * regformats/i386/amd64-mpx.dat: Regenerate.
400 * regformats/i386/amd64.dat: Regenerate.
401 * regformats/i386/i386-avx-linux.dat: Regenerate.
402 * regformats/i386/i386-avx.dat: Regenerate.
403 * regformats/i386/i386-avx512-linux.dat: Regenerate.
404 * regformats/i386/i386-avx512.dat: Regenerate.
405 * regformats/i386/i386-linux.dat: Regenerate.
406 * regformats/i386/i386-mmx-linux.dat: Regenerate.
407 * regformats/i386/i386-mmx.dat: Regenerate.
408 * regformats/i386/i386-mpx-linux.dat: Regenerate.
409 * regformats/i386/i386-mpx.dat: Regenerate.
410 * regformats/i386/i386.dat: Regenerate.
411 * regformats/i386/x32-avx-linux.dat: Regenerate.
412 * regformats/i386/x32-avx.dat: Regenerate.
413 * regformats/i386/x32-avx512-linux.dat: Regenerate.
414 * regformats/i386/x32-avx512.dat: Regenerate.
415 * regformats/i386/x32-linux.dat: Regenerate.
416 * regformats/i386/x32.dat: Regenerate.
417 * regformats/microblaze-with-stack-protect.dat: Regenerate.
418 * regformats/mips-dsp-linux.dat: Regenerate.
419 * regformats/mips-linux.dat: Regenerate.
420 * regformats/mips64-dsp-linux.dat: Regenerate.
421 * regformats/mips64-linux.dat: Regenerate.
422 * regformats/nios2-linux.dat: Regenerate.
423 * regformats/rs6000/powerpc-32.dat: Regenerate.
424 * regformats/rs6000/powerpc-32l.dat: Regenerate.
425 * regformats/rs6000/powerpc-64l.dat: Regenerate.
426 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
427 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
428 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
429 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
430 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
431 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
432 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
433 * regformats/s390-linux32.dat: Regenerate.
434 * regformats/s390-linux32v1.dat: Regenerate.
435 * regformats/s390-linux32v2.dat: Regenerate.
436 * regformats/s390-linux64.dat: Regenerate.
437 * regformats/s390-linux64v1.dat: Regenerate.
438 * regformats/s390-linux64v2.dat: Regenerate.
439 * regformats/s390-te-linux64.dat: Regenerate.
440 * regformats/s390x-linux64.dat: Regenerate.
441 * regformats/s390x-linux64v1.dat: Regenerate.
442 * regformats/s390x-linux64v2.dat: Regenerate.
443 * regformats/s390x-te-linux64.dat: Regenerate.
444 * regformats/tic6x-c62x-linux.dat: Regenerate.
445 * regformats/tic6x-c62x.dat: Regenerate.
446 * regformats/tic6x-c64x-linux.dat: Regenerate.
447 * regformats/tic6x-c64x.dat: Regenerate.
448 * regformats/tic6x-c64xp-linux.dat: Regenerate.
449 * regformats/tic6x-c64xp.dat: Regenerate.
451 2014-10-01 Pedro Alves <palves@redhat.com>
453 * features/Makefile: Update comments.
454 (XMLTOC): List all xml files we build C files from.
455 (clean-cfiles): New rule.
457 2014-10-01 Pedro Alves <palves@redhat.com>
459 * features/i386/amd64-avx512-linux.c: Regenerate.
460 * features/i386/amd64-avx512.c: Regenerate.
461 * features/i386/x32-avx512-linux.c: Regenerate.
462 * features/i386/x32-avx512.c: Regenerate.
464 2014-10-01 Pedro Alves <palves@redhat.com>
466 * features/Makefile (WHICH): Remove arm-with-m,
467 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
469 2014-10-01 Pedro Alves <palves@redhat.com>
471 * features/Makefile (clean): New rule.
473 2014-10-01 Pedro Alves <palves@redhat.com>
475 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
476 (zmm14h): Add missing end quotes.
478 2014-10-01 Pedro Alves <palves@redhat.com>
480 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
481 * features/aarch64.c: Regenerate.
483 2014-09-30 Don Breazeal <donb@codesourcery.com>
485 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
486 code so as to work with follow_fork_inferior.
487 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
488 (inf_ttrace_create_inferior): Remove reference to
489 inf_ttrace_vfork_ppid.
490 (inf_ttrace_attach): Ditto.
491 (inf_ttrace_detach): Ditto.
492 (inf_ttrace_kill): Use current_inferior instead of
493 inf_ttrace_vfork_ppid.
494 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
495 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
496 inferior away from the parent.
497 * infrun.c (follow_fork): Call follow_fork_inferior instead of
499 (follow_fork_inferior): New function.
500 (follow_inferior_reset_breakpoints): Make function static.
501 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
502 * linux-nat.c (linux_child_follow_fork): Move target-independent
503 code to infrun.c:follow_fork_inferior.
505 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
507 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
508 * gdbarch.c: Regenerate.
509 * gdbarch.h: Likewise.
510 * corelow.c (sniff_core_bfd): Drop presence check for deleted
511 gdbarch method 'regset_from_core_section'.
512 (get_core_register_section): Remove handling for the case that
513 regset == NULL and regset_from_core_section is defined.
514 (get_core_registers): Drop check for deleted method.
515 * procfs.c (procfs_do_thread_registers): Adjust comment.
517 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
519 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
520 (linux_nat_make_corefile_notes): Remove.
521 (linux_target_install_ops): Do not set target method
522 'make_corefile_notes'.
523 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
525 (linux_corefile_thread_callback): Instead of args->collect, call
526 linux_collect_thread_registers.
527 (linux_make_corefile_notes): Remove 'collect' parameter. Return
528 NULL unless there is a regset iterator.
529 (linux_make_corefile_notes_1): Remove.
530 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
531 by linux_make_corefile_notes.
532 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
534 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
536 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
537 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
539 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
543 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
544 (xtensa_iterate_over_regset_sections): New.
545 (xtensa_gdbarch_init): Adjust gdbarch initialization.
547 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
549 * vax-tdep.c (vax_regset_from_core_section): Remove.
550 (vax_iterate_over_regset_sections): New.
551 (vax_gdbarch_init): Adjust gdbarch initialization.
553 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
555 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
556 (tilegx_regset_from_core_section): Remove.
557 (tilegx_iterate_over_regset_sections): New.
558 (tilegx_linux_init_abi): Adjust gdbarch initialization.
560 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
562 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
563 (sparc_iterate_over_regset_sections): New.
564 (sparc32_gdbarch_init): Adjust gdbarch initialization.
565 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
567 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
568 (sparc64fbsd_init_abi): Call fbsd_init_abi.
569 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
570 target method 'make_corefile_notes'.
572 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
574 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
575 'sizeof_gregset' and 'sizeof_fpregset'.
576 * sh-tdep.c (sh_regset_from_core_section): Remove.
577 (sh_iterate_over_regset_sections): New.
578 (sh_gdbarch_init): Adjust gdbarch initialization.
579 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
581 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
584 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
586 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
587 (score7_linux_iterate_over_regset_sections): New.
588 (score_gdbarch_init): Adjust gdbarch initialization.
590 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
592 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
594 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
595 method 'make_corefile_notes'.
596 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
597 (ppcfbsd_regset_from_core_section): Remove.
598 (ppcfbsd_iterate_over_regset_sections): New.
599 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
601 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
602 (ppcnbsd_iterate_over_regset_sections): New.
603 (ppcnbsd_init_abi): Adjust.
604 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
605 (ppcobsd_iterate_over_regset_sections): New.
606 (ppcobsd_init_abi): Adjust.
607 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
608 (rs6000_aix_iterate_over_regset_sections): New.
609 (rs6000_aix_init_osabi): Adjust.
611 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
613 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
614 (nios2_regset_from_core_section): Remove.
615 (nios2_iterate_over_regset_sections): New.
616 (nios2_linux_init_abi): Adjust gdbarch initialization.
618 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
620 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
621 (am33_iterate_over_regset_sections): New.
622 (am33_linux_init_osabi): Adjust gdbarch initialization.
624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
626 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
627 (mips_linux_iterate_over_regset_sections): New.
628 (mips_linux_init_abi): Adjust gdbarch initialization.
629 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
630 (mips64obsd_iterate_over_regset_sections): New.
631 (mips64obsd_init_abi): Adjust.
632 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
633 (mipsnbsd_iterate_over_regset_sections): New.
634 (mipsnbsd_init_abi): Adjust.
636 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
638 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
639 (m88k_iterate_over_regset_sections): New.
640 (m88k_gdbarch_init): Adjust gdbarch initialization.
642 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
644 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
645 (ia64_linux_iterate_over_regset_sections): New.
646 (ia64_linux_init_abi): Adjust gdbarch initialization.
648 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
650 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
651 (m68kbsd_iterate_over_regset_sections): New.
652 (m68kbsd_init_abi): Adjust gdbarch initialization.
653 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
654 (m68k_linux_iterate_over_regset_sections): New.
655 (m68k_linux_init_abi): Adjust gdbarch initialization.
657 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
659 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
660 (m32r_linux_regset_from_core_section): Remove.
661 (m32r_linux_iterate_over_regset_sections): New.
662 (m32r_linux_init_abi): Adjust gdbarch initialization.
664 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
666 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
667 (amd64obsd_iterate_over_regset_sections): New.
668 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
669 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
671 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
672 regset_from_core_section initialization.
673 * i386-tdep.c (i386_regset_from_core_section): Remove.
674 (i386_iterate_over_regset_sections): New.
675 (i386_gdbarch_init): Adjust gdbarch initialization.
676 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
677 (i386_iterate_over_regset_sections): New prototype.
678 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
680 (i386obsd_aout_iterate_over_regset_sections): New.
681 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
682 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
684 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
685 (amd64fbsd_init_abi): Call fbsd_init_abi.
686 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
687 (i386fbsd4_init_abi): Call fbsd_init_abi.
688 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
689 target method 'make_corefile_notes'.
690 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
692 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
694 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
695 (hppa_hpux_iterate_over_regset_sections): New.
696 (hppa_hpux_init_abi): Adjust gdbarch initialization.
697 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
698 (hppa_linux_iterate_over_regset_sections): New.
699 (hppa_linux_init_abi): Adjust.
700 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
701 (hppanbsd_iterate_over_regset_sections): New.
702 (hppanbsd_init_abi): Adjust.
703 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
704 (hppaobsd_iterate_over_regset_sections): New.
705 (hppaobsd_init_abi): Adjust.
707 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
709 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
710 (frv_linux_iterate_over_regset_sections): New.
711 (frv_linux_init_abi): Adjust gdbarch initialization.
713 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
715 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
716 (armbsd_iterate_over_regset_sections): New prototype.
717 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
718 (armbsd_iterate_over_regset_sections): New.
719 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
722 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
724 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
725 (alpha_linux_iterate_over_regset_sections): New.
726 (alpha_linux_init_abi): Adjust gdbarch initialization.
727 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
729 (alphanbsd_iterate_over_regset_sections): New prototype.
731 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
733 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
735 (aarch64_linux_iterate_over_regset_sections): New.
736 (aarch64_linux_init_abi): Adjust gdbarch initialization.
738 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
740 * fbsd-tdep.c: New file.
741 * fbsd-tdep.h: New file.
742 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
743 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
744 (ALLDEPFILES): Add fbsd-tdep.c.
746 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
748 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
750 * gdbarch.h: Regenerate.
751 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
753 (get_core_register_section): Add parameter 'regset' and use it, if
754 set. Add parameter 'min_size' and verify the bfd section size
756 (get_core_registers_cb): Add parameter 'regset' and pass it to
757 get_core_register section. For the "standard" register sections
758 ".reg" and ".reg2", set an appropriate default for human_name.
759 (get_core_registers): Don't abort when the gdbarch has an iterator
760 but no regset_from_core_section. Add NULL/0 for parameters
761 'regset'/'min_size' in calls to get_core_register_section.
762 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
763 'regset' and use it instead of calling the
764 regset_from_core_section gdbarch method.
765 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
766 * i386-tdep.c (i386_supply_xstateregset)
767 (i386_collect_xstateregset, i386_xstateregset): Moved to
769 (i386_regset_from_core_section): Drop handling for .reg-xfp and
771 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
772 core file support only if the regset iterator hasn't been set.
773 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
774 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
775 Moved from i386-tdep.c and renamed to *_linux*.
776 (i386_linux_iterate_over_regset_sections): Add regset parameter to
777 each callback invocation. Allow any .reg-xstate size when reading
779 * amd64-tdep.c (amd64_supply_xstateregset)
780 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
782 (amd64_regset_from_core_section): Remove.
783 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
784 install an amd64-specific regset_from_core_section gdbarch method.
785 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
786 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
787 Moved from amd64-tdep.c and renamed to *_linux*.
788 (amd64_linux_iterate_over_regset_sections): Add regset parameter
789 to each callback invocation. Allow any .reg-xstate size when
790 reading from a core file.
791 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
792 (arm_linux_iterate_over_regset_sections): Add regset parameter to
793 each callback invocation.
794 (arm_linux_init_abi): No longer set the regset_from_core_section
796 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
797 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
798 each callback invocation.
799 (ppc_linux_init_abi): No longer set the regset_from_core_section
801 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
802 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
803 (s390_regset_from_core_section): Remove.
804 (s390_iterate_over_regset_sections): Add regset parameter to each
806 (s390_gdbarch_init): No longer set the regset_from_core_section
807 gdbarch method. Drop initialization of deleted tdep fields.
809 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
811 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
812 (amd64_linux_iterate_over_regset_sections): New.
813 (amd64_linux_init_abi_common): Don't install the regset section
814 list, but the new iterator in gdbarch.
815 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
816 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
817 (arm_linux_iterate_over_regset_sections): ...here. New function.
818 (arm_linux_init_abi): Set iterator instead of section list.
819 * corelow.c (get_core_registers_cb): New function, logic moved
821 (get_core_registers): ...loop body here. Use new iterator method
822 instead of walking through the regset section list.
823 * gdbarch.sh: Remove 'core_regset_sections'. New method
824 'iterate_over_regset_sections'. New typedef
825 'iterate_over_regset_sections_cb'.
826 * gdbarch.c: Regenerate.
827 * gdbarch.h: Likewise.
828 * i386-linux-tdep.c (i386_linux_regset_sections)
829 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
831 (i386_linux_iterate_over_regset_sections): New.
832 (i386_linux_init_abi): Don't choose a regset section list, but
833 install new iterator in gdbarch.
834 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
835 (linux_collect_regset_section_cb): New function, logic moved
837 (linux_collect_thread_registers): ...loop body here. Use iterator
838 method instead of walking through list.
839 (linux_make_corefile_notes_1): Check for presence of iterator
840 method instead of regset section list.
841 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
842 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
843 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
844 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
845 (ppc_linux_iterate_over_regset_sections): ...here. New function.
846 (ppc_linux_init_abi): Don't choose from above regset section
847 lists, but install new iterator in gdbarch.
848 * regset.h (struct core_regset_section): Remove.
849 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
850 have_linux_v1, have_linux_v2, and have_tdb.
851 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
852 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
853 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
854 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
855 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
856 (s390_iterate_over_regset_sections): ...here. New function. Use
858 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
859 regset section lists, but install new iterator.
861 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
863 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
865 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
867 * progspace.c (print_program_space): Don't prune program spaces
868 before printing them.
870 2014-09-25 Pedro Alves <palves@redhat.com>
872 * infrun.c (user_visible_resume_ptid): Don't check
873 singlestep_breakpoints_inserted_p.
875 2014-09-25 Pedro Alves <palves@redhat.com>
877 * breakpoint.c (should_be_inserted): Add debug output.
879 2014-09-25 Pedro Alves <palves@redhat.com>
881 * infrun.c (stepping_past_instruction_at)
882 (clear_exit_convenience_vars): Point at infrun.h instead of
884 (handle_signal_stop): Fix typo.
886 2014-09-24 Yao Qi <yao@codesourcery.com>
888 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
891 2014-09-22 Gary Benson <gbenson@redhat.com>
893 * target.c (target_stop): Updated comment.
895 2014-09-22 Gary Benson <gbenson@redhat.com>
897 * target/target.h (target_stop_ptid): Renamed as...
898 (target_stop_and_wait): New function. Updated comment.
900 (target_continue_ptid): Renamed as...
901 (target_continue_no_signal): New function. Updated comment.
904 2014-09-22 Pedro Alves <palves@redhat.com>
906 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
908 * breakpoint.c (enum ugll_insert_mode): New enum.
909 (always_inserted_mode): Now a plain boolean.
910 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
911 (breakpoints_always_inserted_mode): Delete.
912 (breakpoints_should_be_inserted_now): New function.
913 (insert_breakpoints): Pass UGLL_INSERT to
914 update_global_location_list instead of calling
915 insert_breakpoint_locations manually.
916 (create_solib_event_breakpoint_1): New, factored out from ...
917 (create_solib_event_breakpoint): ... this.
918 (create_and_insert_solib_event_breakpoint): Use
919 create_solib_event_breakpoint_1 instead of calling
920 insert_breakpoint_locations manually.
921 (update_global_location_list): Change parameter type from boolean
922 to enum ugll_insert_mode. All callers adjusted. Adjust to use
923 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
924 (update_global_location_list_nothrow): Change parameter type from
925 boolean to enum ugll_insert_mode.
926 (_initialize_breakpoint): "breakpoint always-inserted" option is
927 now a boolean command. Update help text.
928 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
929 (breakpoints_should_be_inserted_now): New declaration.
930 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
931 Remove breakpoints_always_inserted_mode check.
932 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
933 * remote.c (remote_start_remote): Likewise.
935 2014-09-22 Pedro Alves <palves@redhat.com>
937 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
938 (insert_breakpoints): Don't call insert_breakpoint_locations here.
939 Instead, pass UGLL_INSERT to update_global_location_list.
940 (update_global_location_list): Change parameter type from boolean
941 to enum ugll_insert_mode. All callers adjusted. Adjust to use
942 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
943 (create_solib_event_breakpoint_1): New, factored out from ...
944 (create_solib_event_breakpoint): ... this.
945 (create_and_insert_solib_event_breakpoint): Use
946 create_solib_event_breakpoint_1 instead of calling
947 insert_breakpoint_locations manually.
948 (update_global_location_list): Handle UGLL_INSERT.
950 2014-09-22 Pedro Alves <palves@redhat.com>
952 * breakpoint.c (enum ugll_insert_mode): New enum.
953 (update_global_location_list)
954 (update_global_location_list_nothrow): Change parameter type from
955 boolean to enum ugll_insert_mode. All callers adjusted.
957 2014-09-19 Joel Brobecker <brobecker@adacore.com>
959 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
960 SystemTap support in GDB.
962 2014-09-19 Don Breazeal <donb@codesourcery.com>
964 * linux-nat.c (linux_handle_extended_wait): Call
965 linux_ptrace_get_extended_event.
966 (wait_lwp): Call linux_is_extended_waitstatus.
967 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
968 and linux_is_extended_waitstatus.
969 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
970 linux_ptrace_get_extended_event.
971 (linux_ptrace_get_extended_event): New function.
972 (linux_is_extended_waitstatus): New function.
973 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
974 (linux_is_extended_waitstatus): New declarations.
976 2014-09-19 Yao Qi <yao@codesourcery.com>
978 * dwarf2read.c (dwarf_decode_lines): Update declaration.
979 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
980 comments. Callers update.
981 (dwarf_decode_lines): Likewise.
982 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
983 comments. Skip the line table if 'lowpc' is greater than
984 'address'. Don't check
985 dwarf2_per_objfile->has_section_at_zero.
987 2014-09-18 Doug Evans <dje@google.com>
989 * NEWS: Mention new "producer" attribute of gdb.Symtab.
990 * python/py-symtab.c (stpy_get_producer): New function.
991 (symtab_object_getset): Add "producer" attribute.
993 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
996 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
997 (do_captured_read_memory_integer): Remove.
998 (safe_read_memory_integer): Use target_read_memory directly instead
999 of catching errors in do_captured_read_memory_integer.
1001 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1003 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1006 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1008 * objc-lang.c (find_implementation_from_class): Remove dead code.
1010 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1013 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1014 "fprintf_unfiltered (gdb_stdlog...)".
1016 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1018 PR breakpoints/12526
1019 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1021 * breakpoint.c (watch_command_1): Use these fields to retain
1022 bitfield information.
1023 (extract_bitfield_from_watchpoint_value): New function.
1024 (watchpoint_check): Use it.
1025 (update_watchpoint): Use it. Optimize the address and length of a
1026 HW watchpoint pointing to a bitfield.
1027 * value.h (unpack_value_bitfield): New prototype.
1028 * value.c (unpack_value_bitfield): Make extern.
1030 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1032 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1034 * gnu-nat.c (inf_threads): New function.
1035 * gnu-nat.h (inf_threads_ftype): New typedef.
1036 (inf_threads): New declaration.
1037 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1038 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1039 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1040 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1041 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1042 (i386_gnu_dr_get_control): New functions.
1043 (reg_addr): New structure.
1044 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1045 i386 debugging register hooks.
1046 * NEWS: Mention this.
1048 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1050 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1051 vector data transfer instructions.
1052 (arm_record_coproc_data_proc): Updated.
1054 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1056 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1057 arm_record_exreg_ld_st_insn.
1058 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1061 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1063 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1064 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1065 processing instructions.
1067 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1069 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1070 for advance SIMD struct ld/st insn.
1071 (thumb2_record_decode_insn_handler): Replace stub handler with
1072 thumb2_record_asimd_struct_ld_st.
1074 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1076 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1077 for asimd, vfp and coprocessor insns.
1078 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1079 and coprocessor insns.
1080 (thumb2_record_coproc_insn): New function.
1081 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1083 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1086 2014-09-13 Doug Evans <xdje42@gmail.com>
1088 * NEWS: Mention new "queue-signal" command.
1089 * infcmd.c (queue_signal_command): New function.
1090 (_initialize_infcmd): Add new queue-signal command.
1092 2014-09-13 Doug Evans <xdje42@gmail.com>
1094 * linux-nat.c (wait_lwp): Add debugging printf.
1095 (linux_nat_wait_1): Ditto.
1097 2014-09-12 Pedro Alves <palves@redhat.com>
1099 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1100 (create_and_insert_solib_event_breakpoint): New functions.
1101 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1102 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1103 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1104 (remove_dbx_link_breakpoint): Delete function.
1105 (insert_dbx_link_bpt_in_file): Use
1106 create_and_insert_solib_event_breakpoint instead of
1107 deprecated_insert_raw_breakpoint.
1108 (procfs_wait): Don't check whether we hit __dbx_link here.
1109 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1111 * solib-irix.c (base_breakpoint): Delete global.
1112 (disable_break): Delete function.
1113 (enable_break): Use create_solib_event_breakpoint
1114 instead of deprecated_insert_raw_breakpoint.
1115 (irix_solib_handle_event): New function.
1116 (irix_solib_create_inferior_hook): Don't run the target or disable
1117 the mapping-complete breakpoint here.
1118 (_initialize_irix_solib): Install irix_solib_handle_event as
1119 so_ops->handle_event hook.
1121 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1122 Ulrich Weigand <uweigand@de.ibm.com>
1125 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1126 instead of read_memory_unsigned_integer.
1128 2014-09-12 Gary Benson <gbenson@redhat.com>
1130 * nat/linux-waitpid.c: Include common-defs.h.
1131 [GDBSERVER]: Add FIXME comment.
1132 [!GDBSERVER]: Don't include defs.h or signal.h.
1133 (linux_debug) [!GDBSERVER]: Remove empty block.
1135 2014-09-12 Gary Benson <gbenson@redhat.com>
1137 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1138 Don't include defs.h or server.h.
1140 2014-09-12 Gary Benson <gbenson@redhat.com>
1142 * nat/linux-btrace.c: Include common-defs.h.
1143 Don't include defs.h, server.h or gdbthread.h.
1144 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1146 2014-09-12 Gary Benson <gbenson@redhat.com>
1148 * common/agent.c: Include common-defs.h.
1149 Don't include defs.h or server.h.
1150 * common/buffer.c: Likewise.
1151 * common/common-debug.c: Likewise.
1152 * common/common-utils.c: Likewise.
1153 * common/errors.c: Likewise.
1154 * common/filestuff.c: Likewise.
1155 * common/format.c: Likewise.
1156 * common/gdb_vecs.c: Likewise.
1157 * common/print-utils.c: Likewise.
1158 * common/ptid.c: Likewise.
1159 * common/rsp-low.c: Likewise.
1160 * common/signals.c: Likewise.
1161 * common/vec.c: Likewise.
1162 * common/xml-utils.c: Likewise.
1163 * nat/linux-osdata.c: Likewise.
1164 * nat/linux-procfs.c: Likewise.
1165 * nat/linux-ptrace.c: Likewise.
1166 * nat/mips-linux-watch.c: Likewise.
1167 * target/waitstatus.c: Likewise.
1169 2014-09-12 Tom Tromey <tromey@redhat.com>
1170 Gary Benson <gbenson@redhat.com>
1172 * common/common-regcache.h: New file.
1173 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1174 * regcache.h: Include common-regcache.h.
1175 (regcache_read_pc): Don't declare.
1176 * regcache.c (get_thread_regcache_for_ptid): New function.
1177 * nat/linux-btrace.c: Don't include regcache.h.
1178 Include common-regcache.h.
1179 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1181 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1183 * regcache.h (struct regset): Declare.
1185 2014-09-11 Pedro Alves <palves@redhat.com>
1188 * main.c: Include "infrun.h".
1189 (catch_command_errors, catch_command_errors_const): Wait for the
1190 foreground command to complete.
1191 * top.c (maybe_wait_sync_command_done): New function, factored out
1193 (maybe_wait_sync_command_done): ... here.
1194 * top.h (maybe_wait_sync_command_done): New declaration.
1196 2014-09-11 Tom Tromey <tromey@redhat.com>
1197 Gary Benson <gbenson@redhat.com>
1199 * common/symbol.h: New file.
1200 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1201 * minsyms.c (find_minimal_symbol_address): New function.
1202 * common/agent.c: Include common/symbol.h.
1203 [!GDBSERVER]: Don't include objfiles.h.
1204 (agent_look_up_symbols): Use find_minimal_symbol_address.
1206 2014-09-11 Gary Benson <gbenson@redhat.com>
1208 * target/target.h (target_stop_ptid, target_continue_ptid):
1210 * target.c (target_stop_ptid, target_continue_ptid): New
1212 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1213 (agent_run_command): Always use target_stop_ptid and
1214 target_continue_ptid.
1216 2014-09-11 Tom Tromey <tromey@redhat.com>
1217 Gary Benson <gbenson@redhat.com>
1219 * target/target.h: New file.
1220 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1221 * target.h: Include target/target.h.
1222 (target_read_memory, target_write_memory): Don't declare.
1223 * target.c (target_read_uint32): New function.
1224 * common/agent.c: Include target/target.h.
1225 [!GDBSERVER]: Don't include target.h.
1226 (helper_thread_id): Type changed to uint32_t.
1227 (agent_get_helper_thread_id): Use target_read_uint32.
1228 (agent_run_command): Always use target_read_memory and
1229 target_write_memory.
1230 (agent_capability): Type changed to uint32_t.
1231 (agent_capability_check): Use target_read_uint32.
1233 2014-09-11 Gary Benson <gbenson@redhat.com>
1235 * common/common-debug.h (show_debug_regs): Declare.
1236 * common/common-debug.c (show_debug_regs): Define.
1237 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1238 all uses with show_debug_regs. Replace all uses that considered
1239 debug_hw_points as a multi-value integer with straight boolean
1241 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1242 with show_debug_regs.
1243 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1244 all uses with show_debug_regs.
1245 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1246 uses with show_debug_regs.
1248 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1250 * findvar.c (address_from_register): Handle targets requiring
1251 a special conversion routine even for plain pointer types.
1253 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1255 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1256 (store_register): Do not call exec_one_dummy_insn.
1258 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1260 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1261 dereference it first. Use value_enclosing_type instead of
1263 (ada_array_length): Likewise.
1265 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1267 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1268 Adjust function implementation and documentation accordingly.
1269 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1270 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1271 Update call to ada_value_ptr_subscript.
1273 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1275 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1276 instead of VAL's type.
1278 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1280 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1282 2014-09-09 Doug Evans <xdje42@gmail.com>
1285 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1286 last parameter to pkg-config, not first.
1287 * configure.ac: Pass --with-guile provided pkg-config path to
1288 GDB_GUILE_PROGRAM_NAMES.
1289 * configure: Regenerate.
1291 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1293 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1296 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1298 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1299 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1300 the list of sections determining GDB_OSABI_IRIX.
1302 2014-09-09 James Hogan <james.hogan@imgtec.com>
1304 * MAINTAINERS (Write After Approval): Add "James Hogan".
1306 2014-09-09 James Hogan <james.hogan@imgtec.com>
1308 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1310 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1312 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1314 2014-09-08 Doug Evans <xdje42@gmail.com>
1317 * guile.c: #include <signal.h>.
1318 (_initialize_guile): Block SIGCHLD while initializing Guile.
1320 Replaces the following, which is reverted.
1322 2014-07-26 Doug Evans <xdje42@gmail.com>
1325 * configure.ac: Add check for header gc/gc.h.
1326 Add check for function setenv.
1327 * configure: Regenerate.
1328 * config.in: Regenerate.
1329 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1331 2014-09-08 Doug Evans <xdje42@gmail.com>
1333 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1334 with named constant. Fix style of pointer comparison.
1335 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1337 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1340 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1341 decide whether we display the command on "show user".
1342 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1343 printing command name.
1344 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1345 * cli/cli-decode.c (cli_user_command_p): Create helper function
1346 to verify whether cmd_list_element is a user-defined command.
1348 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1351 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1352 Fix goto out of TRY_CATCH.
1354 2014-09-06 Doug Evans <xdje42@gmail.com>
1355 Tom Tromey <tromey@redhat.com>
1358 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1359 $_any_caller_matches.
1360 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1361 * python/lib/gdb/function/caller_is.py: New file.
1363 2014-09-06 Doug Evans <xdje42@gmail.com>
1365 * infcmd.c (program_info): Fix typo.
1367 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1370 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1371 'number'. New variable 'has_digit'. Rewrite code to deal with
1372 subexpressions on SDT probes.
1374 2014-09-04 Pedro Alves <palves@redhat.com>
1376 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1377 the input is only one character long.
1379 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1382 * f-valprint.c (f_val_print): Specify the correct print option to
1383 use when printing integer values.
1385 2014-09-04 Gary Benson <gbenson@redhat.com>
1387 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1388 Remove code to cope with LWPs wrapped as PIDs.
1389 Add assertions to ensure no wrapped LWPs are passed.
1391 2014-09-04 Pedro Alves <palves@redhat.com>
1393 * value.c (value_ranges_copy_adjusted): New function, factored out
1395 (value_contents_copy_raw): ... here.
1396 (unpack_value_bits_as_long_1): Rename back to ...
1397 (unpack_bits_as_long): ... this. Remove 'original_value' and
1398 'result' parameters. Change return type to LONGEST.
1399 (unpack_value_bits_as_long): Delete.
1400 (unpack_value_field_as_long_1): Delete.
1401 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1402 (unpack_value_bitfield): New function.
1403 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1404 (value_fetch_lazy): Use unpack_value_bitfield.
1405 * value.h (unpack_value_bits_as_long): Delete declaration.
1407 2014-09-03 Sasha Smundak <asmundak@google.com>
1409 * python/py-frame.c (frapy_read_register): New function.
1411 2014-09-03 James Hogan <james.hogan@imgtec.com>
1413 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1414 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1416 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1419 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1421 (add_cmd): Set "completer_handle_brkchars" to NULL.
1422 * cli/cli-decode.h (struct cmd_list_element)
1423 <completer_handle_brkchars>: New field.
1424 * command.h (completer_ftype_void): New typedef.
1425 (set_cmd_completer_handle_brkchars): New prototype.
1426 * completer.c (set_gdb_completion_word_break_characters): New
1428 (complete_line_internal): Call "completer_handle_brkchars"
1429 callback from command.
1430 * completer.h: Include "command.h".
1431 (set_gdb_completion_word_break_characters): New prototype.
1432 * python/py-cmd.c (cmdpy_completer_helper): New function.
1433 (cmdpy_completer_handle_brkchars): New function.
1434 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1435 (cmdpy_init): Set completer_handle_brkchars to
1436 cmdpy_completer_handle_brkchars.
1438 2014-09-03 Gary Benson <gbenson@redhat.com>
1440 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1441 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1442 Loop conditions changed to equivalent form.
1443 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1444 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1445 ALL_DEBUG_ADDRESS_REGISTERS.
1447 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1449 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1452 2014-09-02 Doug Evans <dje@google.com>
1454 * typeprint.c (find_global_typedef): Fix comment.
1456 2014-09-02 Gary Benson <gbenson@redhat.com>
1458 * i386-nat.h: Renamed as...
1459 * x86-nat.h: New file. All type, function and variable name
1460 prefixes changed from "i386_" to "x86_". All references updated.
1461 * i386-nat.c: Renamed as...
1462 * x86-nat.c: New file. All type, function and variable name
1463 prefixes changed from "i386_" to "x86_". All references updated.
1464 * common/i386-xstate.h: Renamed as...
1465 * common/x86-xstate.h: New file. All type, function and variable
1466 name prefixes changed from "i386_" to "x86_". All references
1468 * nat/i386-cpuid.h: Renamed as...
1469 * nat/x86-cpuid.h: New file. All type, function and variable name
1470 prefixes changed from "i386_" to "x86_". All references updated.
1471 * nat/i386-gcc-cpuid.h: Renamed as...
1472 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1473 name prefixes changed from "i386_" to "x86_". All references
1475 * nat/i386-dregs.h: Renamed as...
1476 * nat/x86-dregs.h: New file. All type, function and variable name
1477 prefixes changed from "i386_" to "x86_". All references updated.
1478 * nat/i386-dregs.c: Renamed as...
1479 * nat/x86-dregs.c: New file. All type, function and variable name
1480 prefixes changed from "i386_" to "x86_". All references updated.
1482 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1484 * varobj.c (_initialize_varobj): Move to the end of file.
1486 2014-08-29 Gary Benson <gbenson@redhat.com>
1488 * common/common-exceptions.h: New file.
1489 * common/common-exceptions.c: Likewise.
1490 * Makefile.in (SFILES): Add common/common-exceptions.c.
1491 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1492 (COMMON_OBS): Add common-exceptions.o.
1493 (common-exceptions.o): New rule.
1494 * exceptions.h (common-exceptions.h): Include.
1495 (gdb_setjmp.h): Do not include.
1496 (return_reason): Moved to common-exceptions.h.
1497 (enum return_reason): Likewise.
1498 (RETURN_MASK): Likewise.
1499 (typedef return_mask): Likewise.
1500 (enum errors): Likewise.
1501 (struct gdb_exception): Likewise.
1502 (exceptions_state_mc_init): Likewise.
1503 (exceptions_state_mc_action_iter): Likewise.
1504 (exceptions_state_mc_action_iter_1): Likewise.
1505 (TRY_CATCH): Likewise.
1506 (throw_exception): Likewise.
1507 (throw_verror): Likewise.
1508 (throw_vquit): Likewise.
1509 (throw_error): Likewise.
1510 (throw_quit): Likewise.
1511 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1512 (enum catcher_action): Likewise.
1513 (struct catcher): Likewise.
1514 (current_catcher): Likewise.
1515 (catcher_list_size): Likewise.
1516 (exceptions_state_mc_init): Likewise.
1517 (catcher_pop): Likewise.
1518 (exceptions_state_mc): Likewise.
1519 (exceptions_state_mc_action_iter): Likewise.
1520 (exceptions_state_mc_action_iter_1): Likewise.
1521 (throw_exception): Likewise.
1522 (exception_messages): Likewise.
1523 (exception_messages_size): Likewise.
1524 (throw_it): Likewise.
1525 (throw_verror): Likewise.
1526 (throw_vquit): Likewise.
1527 (throw_error): Likewise.
1528 (throw_quit): Likewise.
1529 (prepare_to_throw_exception): New function.
1531 2014-08-29 Gary Benson <gbenson@redhat.com>
1533 * common/gdb_setjmp.h: New file.
1534 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1535 * configure.ac: Move sigsetjmp check...
1536 * common/common.m4: ...here.
1537 * configure: Regenerate.
1538 * cp-support.c (SIGJMP_BUF): Delete.
1539 (SIGSETJMP): Likewise.
1540 (SIGLONGJMP): Likewise.
1541 * exceptions.h (gdb_setjmp.h): Include.
1542 (setjmp.h): Do not include.
1543 (EXCEPTIONS_SIGJMP_BUF): Delete.
1544 (EXCEPTIONS_SIGSETJMP): Likewise.
1545 (EXCEPTIONS_SIGLONGJMP): Likewise.
1546 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1548 * exceptions.c: Likewise.
1550 2014-08-29 Gary Benson <gbenson@redhat.com>
1552 * cleanups.h: Moved to...
1553 * common/cleanups.h: New file.
1554 * cleanups.c: Moved to...
1555 * common/cleanups.c: New file. Include common-defs.h and
1556 cleanups.h. Do not include defs.h.
1557 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1558 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1559 (cleanups.o): New rule.
1561 2014-08-29 Gary Benson <gbenson@redhat.com>
1563 * common/errors.h (internal_warning): New declaration.
1564 (internal_vwarning): Likewise.
1565 * common/errors.c (internal_warning): New function.
1566 * utils.h (internal_warning): Don't declare.
1567 (internal_vwarning): Likewise.
1568 * utils.c (internal_warning): Removed.
1570 2014-08-29 Gary Benson <gbenson@redhat.com>
1572 * main.c (captured_main): Use warning during startup.
1573 Prefix startup warning messages with command name.
1575 2014-08-29 Gary Benson <gbenson@redhat.com>
1577 * main.c (captured_main): Handle usage errors with error.
1579 2014-08-29 Gary Benson <gbenson@redhat.com>
1581 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1582 exit pair with a call to error. Wrap the message with _().
1584 2014-08-29 Gary Benson <gbenson@redhat.com>
1586 * main.c (captured_main): Replace a fprintf/exit
1587 pair with a call to error. Wrap the message with _().
1589 2014-08-29 Gary Benson <gbenson@redhat.com>
1591 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1592 pairs with calls to error. Wrap the message with _().
1594 2014-08-29 Gary Benson <gbenson@redhat.com>
1596 * utils.c (vwarning): Protect calls to target_terminal_ours
1599 2014-08-29 Gary Benson <gbenson@redhat.com>
1601 * exceptions.c (print_flush): Protect calls to
1602 target_terminal_ours and wrap_here.
1604 2014-08-29 Gary Benson <gbenson@redhat.com>
1606 * utils.h (filtered_printing_initialized): New declaration.
1607 * utils.c (abort_with_message): New function.
1608 (internal_vproblem): Use abort_with_message for first level
1609 recursive internal problems, and if gdb_stderr is not set up.
1610 Protect calls to target_terminal_ours, begin_line and query.
1612 2014-08-28 Doug Evans <dje@google.com>
1614 * symtab.c (in_prologue): Move definition to better spot.
1615 (skip_prologue_using_sal): Ditto.
1617 2014-08-28 Doug Evans <dje@google.com>
1619 * symtab.c (find_function_start_sal): Move definition to better spot.
1621 2014-08-28 Yao Qi <yao@codesourcery.com>
1623 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1624 found_stack_adjust in forward scan. Remove condition check
1625 on found_stack_adjust which is always true. Indent the code.
1627 2014-08-28 Yao Qi <yao@codesourcery.com>
1629 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1630 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1631 (dwarf_decode_lines): Remove argument
1632 want_line_info. Remove condition check on want_line_info.
1635 2014-08-27 Doug Evans <dje@google.com>
1637 * dwarf2read.c (dwarf_record_line): Fix typo.
1639 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1641 * target.h (struct target_ops::to_terminal_save_ours): Remove
1643 (target_terminal_save_ours): Remove macro.
1644 * target-delegates.c: Regenerate.
1645 * inf-child.c (inf_child_target): Don't set the nonexistent
1646 field to_terminal_save_ours.
1647 * inferior.h (child_terminal_save_ours): Remove declaration.
1648 * terminal.h (gdb_save_tty_state): New declaration.
1649 * inflow.c (child_terminal_save_ours): Rename to ...
1650 (gdb_save_tty_state): ... this.
1651 * tui/tui.c: Include terminal.h.
1652 (tui_enable): Use gdb_save_tty_state instead of
1653 target_terminal_save_ours.
1654 (tui_disable): Likewise.
1656 2014-08-25 Doug Evans <dje@google.com>
1658 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1659 Pass NULL instead of 0 for context pointer.
1661 2014-08-25 Yao Qi <yao@codesourcery.com>
1663 * dwarf2read.c: Fix grammatical error.
1665 2014-08-24 Yao Qi <yao@codesourcery.com>
1667 * dwarf2read.c (scan_partial_symbols): Update comments.
1668 Rename argument 'need_pc' with 'set_addrmap'.
1669 (add_partial_namespace): Rename argument 'need_pc' with
1671 (add_partial_module): Likewise.
1672 (add_partial_subprogram): Likewise. Update comments.
1673 (dwarf2_name): Fix typo.
1675 2014-08-22 Doug Evans <dje@google.com>
1678 * dwarf2read.c (dwarf_record_line_p): New function.
1679 (dwarf_decode_lines_1): Ignore subsequent line number entries
1680 for the same line if any entry had a non-zero discriminator.
1682 2014-08-22 Doug Evans <dje@google.com>
1684 * buildsym.h (record_line_ftype): New typedef.
1685 (record_line): Use it.
1686 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1687 (dwarf_decode_lines_1): Call them.
1689 2014-08-22 Yao Qi <yao@codesourcery.com>
1691 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1692 (ctf_end): Remove code.
1694 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1696 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1697 (linux_make_corefile_notes): call update_thread_list, protected against
1700 2014-08-21 Pedro Alves <palves@redhat.com>
1702 * infcmd.c (attach_command): Remove comment.
1704 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1706 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1707 unsigned LONGEST to ULONGEST.
1709 2014-08-20 Pedro Alves <palves@redhat.com>
1711 * Makefile.in (check-read1): New rule.
1713 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1715 * value.c (value_from_contents_and_address): Strip resolved_type's
1716 typedef layers before checking its TYPE_DATA_LOCATION.
1718 2014-08-20 Pedro Alves <palves@redhat.com>
1720 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1722 2014-08-20 Yao Qi <yao@codesourcery.com>
1724 * amd64-tdep.c (amd64_classify): Add a blank line after the
1725 example. Move "*/" to a new line.
1726 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1727 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1728 * dwarf2read.c (psymtab_include_file_name): Likewise.
1730 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1731 Pedro Alves <palves@redhat.com>
1735 * ada-lang.c (coerce_unspec_val_to_type): Use
1736 value_contents_copy_raw.
1737 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1738 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1739 * cp-valprint.c (cp_print_value_fields): Let the common printing
1740 code handle optimized out values.
1741 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1742 * d-valprint.c (dynamic_array_type): Use
1743 value_bits_any_optimized_out.
1744 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1745 check_any_valid fields.
1746 (check_pieced_value_bits): Delete and inline ...
1747 (check_pieced_synthetic_pointer): ... here.
1748 (check_pieced_value_validity): Delete.
1749 (check_pieced_value_invalid): Delete.
1750 (pieced_value_funcs): Remove check_validity and check_any_valid
1752 (read_pieced_value): Use mark_value_bits_optimized_out.
1753 (write_pieced_value): Switch to use
1754 mark_value_bytes_optimized_out.
1755 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1756 of assuming the whole value is optimized out.
1757 * findvar.c (read_frame_register_value): Remove special handling
1758 of optimized out registers.
1759 (value_from_register): Use mark_value_bytes_optimized_out.
1760 * frame-unwind.c (frame_unwind_got_optimized): Use
1761 mark_value_bytes_optimized_out.
1762 * jv-valprint.c (java_value_print): Adjust.
1763 (java_print_value_fields): Let the common printing code handle
1764 optimized out values.
1765 * mips-tdep.c (mips_print_register): Remove special handling of
1766 optimized out registers.
1767 * opencl-lang.c (lval_func_check_validity): Delete.
1768 (lval_func_check_any_valid): Delete.
1769 (opencl_value_funcs): Remove check_validity and check_any_valid
1771 * p-valprint.c (pascal_object_print_value_fields): Let the common
1772 printing code handle optimized out values.
1773 * stack.c (read_frame_arg): Remove special handling of optimized
1774 out values. Fetch both VAL and ENTRYVAL before comparing
1775 contents. Adjust to value_available_contents_eq rename.
1776 * valprint.c (valprint_check_validity)
1777 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1778 (val_print_array_elements): Adjust.
1779 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1780 (value_bits_any_optimized_out): New function.
1781 (value_entirely_covered_by_range_vector): New function, factored
1782 out from value_entirely_unavailable.
1783 (value_entirely_unavailable): Reimplement.
1784 (value_entirely_optimized_out): New function.
1785 (insert_into_bit_range_vector): New function, factored out from
1786 mark_value_bits_unavailable.
1787 (mark_value_bits_unavailable): Reimplement.
1788 (struct ranges_and_idx): New struct.
1789 (find_first_range_overlap_and_match): New function, factored out
1790 from value_available_contents_bits_eq.
1791 (value_available_contents_bits_eq): Rename to ...
1792 (value_contents_bits_eq): ... this. Check both unavailable
1793 contents and optimized out contents.
1794 (value_available_contents_eq): Rename to ...
1795 (value_contents_eq): ... this.
1796 (allocate_value_lazy): Remove reference to the old optimized_out
1798 (allocate_optimized_out_value): Use
1799 mark_value_bytes_optimized_out.
1800 (require_not_optimized_out): Adjust to check whether the
1801 optimized_out vec is empty.
1802 (ranges_copy_adjusted): New function, factored out from
1803 value_contents_copy_raw.
1804 (value_contents_copy_raw): Also copy the optimized out ranges.
1805 Assert the destination ranges aren't optimized out.
1806 (value_contents_copy): Update comment, remove call to
1807 require_not_optimized_out.
1808 (value_contents_equal): Adjust to check whether the optimized_out
1810 (set_value_optimized_out, value_optimized_out_const): Delete.
1811 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1813 (value_entirely_optimized_out, value_bits_valid): Delete.
1814 (value_copy): Take a VEC copy of the 'optimized_out' field.
1815 (value_primitive_field): Remove special handling of optimized out.
1816 (value_fetch_lazy): Assert that lazy values have no unavailable
1817 regions. Use value_bits_any_optimized_out. Remove some special
1818 handling for optimized out values.
1819 * value.h: Add intro comment about <optimized out> and
1821 (struct lval_funcs): Remove check_validity and check_any_valid
1823 (set_value_optimized_out, value_optimized_out_const): Remove.
1824 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1826 (value_bits_any_optimized_out): New declaration.
1827 (value_bits_valid): Delete declaration.
1828 (value_available_contents_eq): Rename to ...
1829 (value_contents_eq): ... this, and extend comments.
1831 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1833 Fix -fsanitize=address on unreadable inferior strings.
1834 * valprint.c (val_print_string): Fix access before BUFFER.
1836 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1838 * target.c (target_struct_size): Remove.
1839 (target_struct_allocsize): Remove.
1840 (DEFAULT_ALLOCSIZE): Remove.
1841 (target_ops_p): New typedef.
1842 (DEF_VEC_P (target_ops_p)): New vector type.
1843 (target_structs): Change type to VEC (target_ops_p).
1844 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1845 (find_default_run_target): Rewrite for loop following changes to
1848 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1850 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1851 Adjust code accordingly. Adjust function description comment.
1853 2014-08-19 Yao Qi <yao@codesourcery.com>
1855 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1858 2014-08-19 Alan Modra <amodra@gmail.com>
1860 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1861 * config.in: Regenerate.
1862 * configure: Regenerate.
1864 2014-08-19 Tom Tromey <tromey@redhat.com>
1865 Gary Benson <gbenson@redhat.com>
1867 * common/common-debug.h: New file.
1868 * common/common-debug.c: Likewise.
1869 * debug.c: Likewise.
1870 * Makefile.in (SFILES): Add common/common-debug.c.
1871 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1872 (COMMON_OBS): Add common-debug.o and debug.o.
1873 (common-debug.o): New rule.
1874 * common/common-defs.h: Include common-debug.h.
1875 * common/agent.c (debug_agent_printf): New function.
1876 (DEBUG_AGENT): Redefine.
1877 * nat/i386-dregs.c (debug_printf): Undefine.
1879 2014-08-19 Gary Benson <gbenson@redhat.com>
1881 * common/common-defs.h: Include print-utils.h.
1882 * utils.h: Do not include print-utils.h.
1884 2014-08-19 Tom Tromey <tromey@redhat.com>
1885 Gary Benson <gbenson@redhat.com>
1887 * common/common-types.h: New file.
1888 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1889 * common/common-defs.h: Include common-types.h.
1890 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1893 2014-08-19 Tom Tromey <tromey@redhat.com>
1894 Gary Benson <gbenson@redhat.com>
1896 * common/errors.h: New file.
1897 * common/errors.c: Likewise.
1898 * Makefile.in (SFILES): Add common/errors.c.
1899 (HFILES_NO_SRCDIR): Add common/errors.h.
1900 (COMMON_OBS): Add errors.o.
1901 (errors.o): New rule.
1902 * common/common-defs.h: Include errors.h.
1903 * utils.h (perror_with_name, error, verror, warning, vwarning):
1905 * common/common-utils.h: (malloc_failure, internal_error):
1908 2014-08-19 Gary Benson <gbenson@redhat.com>
1910 * utils.c (internal_vproblem): Always print the message.
1912 2014-08-18 Doug Evans <dje@google.com>
1914 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1916 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1918 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1919 Return 0 if TYPE is dynamic.
1920 (print_range): Add handling of dynamic ranges.
1922 2014-08-18 Keven Boell <keven.boell@intel.com>
1923 Joel Brobecker <brobecker@adacore.com>
1925 * gdbtypes.h (struct main_type): Add field "data_location".
1926 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1927 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1928 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1929 a dynamic data location.
1930 (resolve_dynamic_type): Add DW_AT_data_location handling.
1931 (copy_recursive, copy_type): Copy the data_location information
1933 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1934 * value.c (value_from_contents_and_address): Add
1935 DW_AT_data_location handling.
1937 2014-08-18 Keven Boell <keven.boell@intel.com>
1938 Joel Brobecker <brobecker@adacore.com>
1940 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1941 field "get_object_address".
1942 * dwarf2expr.c (execute_stack_op): Add handling for
1943 DW_OP_push_object_address.
1944 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1945 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1946 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1947 (dwarf_expr_get_obj_addr): New function.
1948 (dwarf_expr_ctx_funcs): Add get_object_address field.
1949 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1950 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1951 (dwarf2_evaluate_property): Add parameter "address". Use it.
1952 (needs_get_obj_addr): New function.
1953 (needs_frame_ctx_funcs): Add get_object_address field.
1954 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1955 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1956 (resolve_dynamic_array): Likewise.
1958 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1960 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1961 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1962 fixed value for records and unions for which some GNAT encodings
1965 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1967 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1968 rewrite to avoid "else if" and "else" constructs. Should be
1969 a no-op in practice.
1971 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1973 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1976 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1979 * eval.c: Update all calls to find_overload_match.
1980 * valarith.c: Likewise.
1981 (value_user_defined_cpp_op, value_user_defined_op): New
1982 argument NOSIDE. Update all callers.
1983 * valops.c (find_overload_match): New argument NOSIDE.
1984 * value.h (find_overload_match): Update signature.
1986 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1988 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1989 'items' methods instead of 'iteritems' method on dictionaries.
1991 2014-08-15 Doug Evans <dje@google.com>
1993 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1996 2014-08-15 Doug Evans <dje@google.com>
1998 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2000 2014-08-15 Doug Evans <dje@google.com>
2002 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2004 2014-08-15 Doug Evans <dje@google.com>
2006 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2009 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2011 * dcache.h: Include target.h, to avoid compile time warnings.
2013 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2015 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2016 frame_info" partial declaration.
2017 * gdbarch.h: Regenerate.
2019 2014-08-15 Yao Qi <yao@codesourcery.com>
2021 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2022 Add parameter 'decode_for_pst_p'. Callers update.
2024 2014-08-13 Yao Qi <yao@codesourcery.com>
2027 * configure.ac: Use local variable 'pos'.
2028 * configure: Regenerated.
2030 2014-08-11 Doug Evans <dje@google.com>
2032 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2033 message, it is redundant with "Reading symbols from ..." message.
2035 2014-08-10 Doug Evans <xdje42@gmail.com>
2037 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2039 2014-08-09 Yao Qi <yao@codesourcery.com>
2042 * remote.c (remote_xfer_partial): Remove dead code.
2044 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2046 * ia64-linux-tdep.c: Include "regset.h".
2047 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2048 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2049 (ia64_linux_supply_fpregset): New function.
2050 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2051 (ia64_linux_regset_from_core_section): New function.
2052 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2055 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2057 * m68klinux-tdep.c: Include "regset.h".
2058 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2059 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2060 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2061 (m68k_linux_regset_from_core_section): New function.
2062 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2065 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2067 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2068 function. Move logic to...
2069 (tilegx_linux_regmap): ... this new register map.
2070 (tilegx_linux_regset): Refer to register map, replace supply
2071 method by regcache_supply_regset, and add collect method.
2072 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2073 TILEGX_FIRST_EASY_REGNUM.
2075 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2077 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2078 that calls regcache_supply_regset and handles the EPC register
2079 separately. Move main logic to...
2080 (score7_linux_gregmap): ... this new register map.
2081 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2082 (score7_linux_gregset): Refer to register map. Add collect method.
2083 (score7_linux_regset_from_core_section): Replace
2084 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2085 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2086 (struct regset): Delete unused forward declaraction.
2087 (struct pt_regs): Delete structure definition.
2088 (elf_gregset_t): Delete typedef.
2090 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2092 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2093 (nios2_core_regset): Add collect method.
2095 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2097 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2098 platform-independent and don't write to read-only input buffer.
2099 (m32r_linux_collect_gregset): New function.
2100 (m32r_linux_gregset): Add collect method.
2102 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2104 * hppa-linux-tdep.c (greg_map): Rename to...
2105 (hppa_linux_gregmap): ... this. Also convert to
2106 regcache_map_entry format.
2107 (hppa_linux_supply_regset): Delete function.
2108 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2109 (hppa_linux_fpregmap): ... this new register map.
2110 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2111 register map, replace supply method by regcache_supply_regset, and
2112 add collect method regcache_collect_regset.
2114 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2116 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2117 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2118 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2119 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2120 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2121 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2122 (frv_linux_supply_gregset): Replace main logic by call to
2123 regcache_supply_regset, but keep clearing gr32-gr63.
2124 (frv_linux_supply_fpregset): Delete function.
2125 (frv_linux_gregset): Refer to appropriate register map and add
2126 regcache_collect_regset as the collect method.
2127 (frv_linux_fpregset): Likewise. Also exchange the supply method
2128 by regcache_supply_regset.
2130 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2132 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2133 by call to alpha_supply_int_regs.
2134 (alpha_linux_collect_gregset): New function.
2135 (alpha_linux_supply_fpregset): Replace logic by call to
2136 alpha_supply_fp_regs.
2137 (alpha_linux_collect_fpregset): New function.
2138 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2140 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2142 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2143 by call to regcache_collect_regset.
2144 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2145 instead of aarch64_linux_supply_gregset/_fpregset.
2146 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2147 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2148 header file instead.
2149 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2150 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2151 functions. Move logic to ...
2152 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2154 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2155 refer to new register maps, replace *_regset_from_core by
2156 regcache_supply_regset, and also use regcache_collect_regset.
2157 * aarch64-linux-tdep.h: Include "regset.h".
2158 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2160 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2161 macros, moved from C source file.
2162 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2163 variable declarations.
2165 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2167 * s390-linux-nat.c: Include "regset.h".
2168 (regmap_gregset): Delete macro.
2169 (s390_64_regmap_gregset): New register map for
2170 regcache_supply/_collect_regset.
2171 (s390_64_gregset): New regset.
2172 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2173 (regmap_fpregset): Delete macro.
2174 (s390_native_supply, s390_native_collect): Delete functions.
2175 (supply_gregset, fill_gregset): Replace s390-specific regmap
2176 handling by a call to regcache_supply/_collect_regset.
2177 (supply_fpregset, fill_fpregset): Call regcache_supply/
2178 _collect_regset instead of s390_native_supply/_collect.
2179 (fetch_regset, store_regset): Likewise. Also change the last
2180 parameter to a regset instead of a regmap.
2181 (s390_linux_fetch_inferior_registers)
2182 (390_linux_store_inferior_registers): Adjust last parameter in
2183 calls to fetch_regset and store_regset.
2184 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2185 (s390_gregmap): ... this. Also make static const and convert to
2186 regcache_map_entry format.
2187 (s390x_regmap_gregset): Delete.
2188 (s390_regmap_fpregset): Rename to...
2189 (s390_fpregmap): ... this. Make static const and convert to
2190 regcache_map_entry format.
2191 (s390_regmap_upper, s390_regmap_last_break)
2192 (s390x_regmap_last_break, s390_regmap_system_call)
2193 (s390_regmap_tdb): Likewise.
2194 (s390_supply_regset, s390_collect_regset): Remove functions.
2195 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2197 (s390_gregset, s390_fpregset, s390_upper_regset)
2198 (s390_last_break_regset, s390x_last_break_regset)
2199 (s390_system_call_regset, s390_tdb_regset): Make global and
2200 replace s390_supply/_collect_regset by regcache_supply/
2202 (s390x_gregset): Delete.
2203 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2204 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2205 (s390_regmap_fpregset, s390_regmap_last_break)
2206 (s390x_regmap_last_break, s390_regmap_system_call)
2207 (s390_regmap_tdb): Delete global variable declarations.
2208 (s390_gregset, s390_fpregset, s390_last_break_regset)
2209 (s390x_last_break_regset, s390_system_call_regset)
2210 (s390_tdb_regset): New global variable declarations.
2212 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2214 * regcache.c: Include "regset.h".
2215 (regcache_transfer_regset): New local function.
2216 (regcache_supply_regset, regcache_collect_regset): New functions.
2217 * regcache.h (struct regcache_map_entry): New structure.
2218 (REGCACHE_MAP_SKIP): New enum value.
2219 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2221 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2223 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2224 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2225 (ppc_linux_collect_gregset ): Likewise.
2226 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2227 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2228 (ppc_collect_vrregset): Likewise.
2229 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2232 2014-08-07 Yao Qi <yao@codesourcery.com>
2234 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2235 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2236 * remote.c (remote_read_bytes): Likewise.
2238 2014-08-07 Yao Qi <yao@codesourcery.com>
2240 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2242 2014-08-07 Yao Qi <yao@codesourcery.com>
2245 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2246 TARGET_XFER_OK instead of 0.
2248 2014-08-07 Gary Benson <gbenson@redhat.com>
2250 * common/common-defs.h: Include errno.h.
2251 * defs.h: Do not include errno.h.
2252 * ada-typeprint.c: Likewise.
2253 * c-typeprint.c: Likewise.
2254 * core-regset.c: Likewise.
2255 * corefile.c: Likewise.
2256 * corelow.c: Likewise.
2257 * event-loop.c: Likewise.
2258 * f-typeprint.c: Likewise.
2259 * gnu-nat.c: Likewise.
2260 * go32-nat.c: Likewise.
2261 * i386gnu-nat.c: Likewise.
2262 * m2-typeprint.c: Likewise.
2263 * nat/linux-btrace.c: Likewise.
2264 * p-typeprint.c: Likewise.
2265 * procfs.c: Likewise.
2266 * remote-sim.c: Likewise.
2267 * rs6000-nat.c: Likewise.
2268 * target.c: Likewise.
2269 * typeprint.c: Likewise.
2270 * ui-file.c: Likewise.
2271 * valops.c: Likewise.
2272 * valprint.c: Likewise.
2274 2014-08-07 Gary Benson <gbenson@redhat.com>
2276 * common/common-defs.h: Include string.h.
2277 * aarch64-tdep.c: Do not include string.h.
2278 * ada-exp.y: Likewise.
2279 * ada-lang.c: Likewise.
2280 * ada-lex.l: Likewise.
2281 * ada-typeprint.c: Likewise.
2282 * ada-valprint.c: Likewise.
2283 * aix-thread.c: Likewise.
2284 * alpha-linux-tdep.c: Likewise.
2285 * alpha-mdebug-tdep.c: Likewise.
2286 * alpha-nat.c: Likewise.
2287 * alpha-osf1-tdep.c: Likewise.
2288 * alpha-tdep.c: Likewise.
2289 * alphanbsd-tdep.c: Likewise.
2290 * amd64-dicos-tdep.c: Likewise.
2291 * amd64-linux-tdep.c: Likewise.
2292 * amd64-nat.c: Likewise.
2293 * amd64-sol2-tdep.c: Likewise.
2294 * amd64fbsd-tdep.c: Likewise.
2295 * amd64obsd-tdep.c: Likewise.
2296 * arch-utils.c: Likewise.
2297 * arm-linux-nat.c: Likewise.
2298 * arm-linux-tdep.c: Likewise.
2299 * arm-tdep.c: Likewise.
2300 * arm-wince-tdep.c: Likewise.
2301 * armbsd-tdep.c: Likewise.
2302 * armnbsd-nat.c: Likewise.
2303 * armnbsd-tdep.c: Likewise.
2304 * armobsd-tdep.c: Likewise.
2305 * avr-tdep.c: Likewise.
2306 * ax-gdb.c: Likewise.
2307 * ax-general.c: Likewise.
2308 * bcache.c: Likewise.
2309 * bfin-tdep.c: Likewise.
2310 * breakpoint.c: Likewise.
2311 * build-id.c: Likewise.
2312 * buildsym.c: Likewise.
2313 * c-exp.y: Likewise.
2314 * c-lang.c: Likewise.
2315 * c-typeprint.c: Likewise.
2316 * c-valprint.c: Likewise.
2317 * charset.c: Likewise.
2318 * cli-out.c: Likewise.
2319 * cli/cli-cmds.c: Likewise.
2320 * cli/cli-decode.c: Likewise.
2321 * cli/cli-dump.c: Likewise.
2322 * cli/cli-interp.c: Likewise.
2323 * cli/cli-logging.c: Likewise.
2324 * cli/cli-script.c: Likewise.
2325 * cli/cli-setshow.c: Likewise.
2326 * cli/cli-utils.c: Likewise.
2327 * coffread.c: Likewise.
2328 * common/agent.c: Likewise.
2329 * common/buffer.c: Likewise.
2330 * common/buffer.h: Likewise.
2331 * common/common-utils.c: Likewise.
2332 * common/filestuff.c: Likewise.
2333 * common/filestuff.c: Likewise.
2334 * common/format.c: Likewise.
2335 * common/print-utils.c: Likewise.
2336 * common/rsp-low.c: Likewise.
2337 * common/signals.c: Likewise.
2338 * common/vec.h: Likewise.
2339 * common/xml-utils.c: Likewise.
2340 * core-regset.c: Likewise.
2341 * corefile.c: Likewise.
2342 * corelow.c: Likewise.
2343 * cp-abi.c: Likewise.
2344 * cp-name-parser.y: Likewise.
2345 * cp-support.c: Likewise.
2346 * cp-valprint.c: Likewise.
2347 * cris-tdep.c: Likewise.
2348 * d-exp.y: Likewise.
2349 * darwin-nat.c: Likewise.
2350 * dbxread.c: Likewise.
2351 * dcache.c: Likewise.
2352 * demangle.c: Likewise.
2353 * dicos-tdep.c: Likewise.
2354 * disasm.c: Likewise.
2355 * doublest.c: Likewise.
2356 * dsrec.c: Likewise.
2357 * dummy-frame.c: Likewise.
2358 * dwarf2-frame.c: Likewise.
2359 * dwarf2loc.c: Likewise.
2360 * dwarf2read.c: Likewise.
2361 * elfread.c: Likewise.
2362 * environ.c: Likewise.
2364 * event-loop.c: Likewise.
2365 * exceptions.c: Likewise.
2367 * expprint.c: Likewise.
2368 * f-exp.y: Likewise.
2369 * f-lang.c: Likewise.
2370 * f-typeprint.c: Likewise.
2371 * f-valprint.c: Likewise.
2372 * fbsd-nat.c: Likewise.
2373 * findcmd.c: Likewise.
2374 * findvar.c: Likewise.
2375 * fork-child.c: Likewise.
2376 * frame.c: Likewise.
2377 * frv-linux-tdep.c: Likewise.
2378 * frv-tdep.c: Likewise.
2380 * gdb_bfd.c: Likewise.
2381 * gdbarch.c: Likewise.
2382 * gdbarch.sh: Likewise.
2383 * gdbtypes.c: Likewise.
2384 * gnu-nat.c: Likewise.
2385 * gnu-v2-abi.c: Likewise.
2386 * gnu-v3-abi.c: Likewise.
2387 * go-exp.y: Likewise.
2388 * go-lang.c: Likewise.
2389 * go32-nat.c: Likewise.
2390 * guile/guile.c: Likewise.
2391 * guile/scm-auto-load.c: Likewise.
2392 * hppa-hpux-tdep.c: Likewise.
2393 * hppa-linux-nat.c: Likewise.
2394 * hppanbsd-tdep.c: Likewise.
2395 * hppaobsd-tdep.c: Likewise.
2396 * i386-cygwin-tdep.c: Likewise.
2397 * i386-dicos-tdep.c: Likewise.
2398 * i386-linux-tdep.c: Likewise.
2399 * i386-nto-tdep.c: Likewise.
2400 * i386-sol2-tdep.c: Likewise.
2401 * i386-tdep.c: Likewise.
2402 * i386bsd-tdep.c: Likewise.
2403 * i386gnu-nat.c: Likewise.
2404 * i386nbsd-tdep.c: Likewise.
2405 * i386obsd-tdep.c: Likewise.
2406 * i387-tdep.c: Likewise.
2407 * ia64-libunwind-tdep.c: Likewise.
2408 * ia64-linux-nat.c: Likewise.
2409 * inf-child.c: Likewise.
2410 * inf-ptrace.c: Likewise.
2411 * inf-ttrace.c: Likewise.
2412 * infcall.c: Likewise.
2413 * infcmd.c: Likewise.
2414 * inflow.c: Likewise.
2415 * infrun.c: Likewise.
2416 * interps.c: Likewise.
2417 * iq2000-tdep.c: Likewise.
2418 * irix5-nat.c: Likewise.
2419 * jv-exp.y: Likewise.
2420 * jv-lang.c: Likewise.
2421 * jv-typeprint.c: Likewise.
2422 * jv-valprint.c: Likewise.
2423 * language.c: Likewise.
2424 * linux-fork.c: Likewise.
2425 * linux-nat.c: Likewise.
2426 * lm32-tdep.c: Likewise.
2427 * m2-exp.y: Likewise.
2428 * m2-typeprint.c: Likewise.
2429 * m32c-tdep.c: Likewise.
2430 * m32r-linux-nat.c: Likewise.
2431 * m32r-linux-tdep.c: Likewise.
2432 * m32r-rom.c: Likewise.
2433 * m32r-tdep.c: Likewise.
2434 * m68hc11-tdep.c: Likewise.
2435 * m68k-tdep.c: Likewise.
2436 * m68kbsd-tdep.c: Likewise.
2437 * m68klinux-nat.c: Likewise.
2438 * m68klinux-tdep.c: Likewise.
2439 * m88k-tdep.c: Likewise.
2440 * machoread.c: Likewise.
2441 * macrocmd.c: Likewise.
2443 * mdebugread.c: Likewise.
2444 * mem-break.c: Likewise.
2445 * memattr.c: Likewise.
2446 * memory-map.c: Likewise.
2447 * mep-tdep.c: Likewise.
2448 * mi/mi-cmd-break.c: Likewise.
2449 * mi/mi-cmd-disas.c: Likewise.
2450 * mi/mi-cmd-env.c: Likewise.
2451 * mi/mi-cmd-stack.c: Likewise.
2452 * mi/mi-cmd-var.c: Likewise.
2453 * mi/mi-cmds.c: Likewise.
2454 * mi/mi-console.c: Likewise.
2455 * mi/mi-getopt.c: Likewise.
2456 * mi/mi-interp.c: Likewise.
2457 * mi/mi-main.c: Likewise.
2458 * mi/mi-parse.c: Likewise.
2459 * microblaze-rom.c: Likewise.
2460 * microblaze-tdep.c: Likewise.
2461 * mingw-hdep.c: Likewise.
2462 * minidebug.c: Likewise.
2463 * minsyms.c: Likewise.
2464 * mips-irix-tdep.c: Likewise.
2465 * mips-linux-tdep.c: Likewise.
2466 * mips-tdep.c: Likewise.
2467 * mips64obsd-tdep.c: Likewise.
2468 * mipsnbsd-tdep.c: Likewise.
2469 * mipsread.c: Likewise.
2470 * mn10300-linux-tdep.c: Likewise.
2471 * mn10300-tdep.c: Likewise.
2472 * monitor.c: Likewise.
2473 * moxie-tdep.c: Likewise.
2474 * mt-tdep.c: Likewise.
2475 * nat/linux-btrace.c: Likewise.
2476 * nat/linux-osdata.c: Likewise.
2477 * nat/linux-procfs.c: Likewise.
2478 * nat/linux-ptrace.c: Likewise.
2479 * nat/linux-waitpid.c: Likewise.
2480 * nbsd-tdep.c: Likewise.
2481 * nios2-linux-tdep.c: Likewise.
2482 * nto-procfs.c: Likewise.
2483 * nto-tdep.c: Likewise.
2484 * objc-lang.c: Likewise.
2485 * objfiles.c: Likewise.
2486 * opencl-lang.c: Likewise.
2487 * osabi.c: Likewise.
2488 * osdata.c: Likewise.
2489 * p-exp.y: Likewise.
2490 * p-lang.c: Likewise.
2491 * p-typeprint.c: Likewise.
2492 * parse.c: Likewise.
2493 * posix-hdep.c: Likewise.
2494 * ppc-linux-nat.c: Likewise.
2495 * ppc-sysv-tdep.c: Likewise.
2496 * ppcfbsd-tdep.c: Likewise.
2497 * ppcnbsd-tdep.c: Likewise.
2498 * ppcobsd-tdep.c: Likewise.
2499 * printcmd.c: Likewise.
2500 * procfs.c: Likewise.
2501 * prologue-value.c: Likewise.
2502 * python/py-auto-load.c: Likewise.
2503 * python/py-gdb-readline.c: Likewise.
2504 * ravenscar-thread.c: Likewise.
2505 * regcache.c: Likewise.
2506 * registry.c: Likewise.
2507 * remote-fileio.c: Likewise.
2508 * remote-m32r-sdi.c: Likewise.
2509 * remote-mips.c: Likewise.
2510 * remote-notif.c: Likewise.
2511 * remote-sim.c: Likewise.
2512 * remote.c: Likewise.
2513 * reverse.c: Likewise.
2514 * rs6000-aix-tdep.c: Likewise.
2515 * ser-base.c: Likewise.
2516 * ser-go32.c: Likewise.
2517 * ser-mingw.c: Likewise.
2518 * ser-pipe.c: Likewise.
2519 * ser-tcp.c: Likewise.
2520 * ser-unix.c: Likewise.
2521 * serial.c: Likewise.
2522 * sh-tdep.c: Likewise.
2523 * sh64-tdep.c: Likewise.
2524 * shnbsd-tdep.c: Likewise.
2526 * sol-thread.c: Likewise.
2527 * solib-dsbt.c: Likewise.
2528 * solib-frv.c: Likewise.
2529 * solib-osf.c: Likewise.
2530 * solib-som.c: Likewise.
2531 * solib-spu.c: Likewise.
2532 * solib-target.c: Likewise.
2533 * solib.c: Likewise.
2534 * somread.c: Likewise.
2535 * source.c: Likewise.
2536 * sparc-nat.c: Likewise.
2537 * sparc-sol2-tdep.c: Likewise.
2538 * sparc-tdep.c: Likewise.
2539 * sparc64-tdep.c: Likewise.
2540 * sparc64fbsd-tdep.c: Likewise.
2541 * sparc64nbsd-tdep.c: Likewise.
2542 * sparcnbsd-tdep.c: Likewise.
2543 * spu-linux-nat.c: Likewise.
2544 * spu-multiarch.c: Likewise.
2545 * spu-tdep.c: Likewise.
2546 * stabsread.c: Likewise.
2547 * stack.c: Likewise.
2548 * std-regs.c: Likewise.
2549 * symfile.c: Likewise.
2550 * symmisc.c: Likewise.
2551 * symtab.c: Likewise.
2552 * target.c: Likewise.
2553 * thread.c: Likewise.
2554 * tilegx-linux-nat.c: Likewise.
2555 * tilegx-tdep.c: Likewise.
2557 * tracepoint.c: Likewise.
2558 * tui/tui-command.c: Likewise.
2559 * tui/tui-data.c: Likewise.
2560 * tui/tui-disasm.c: Likewise.
2561 * tui/tui-file.c: Likewise.
2562 * tui/tui-layout.c: Likewise.
2563 * tui/tui-out.c: Likewise.
2564 * tui/tui-regs.c: Likewise.
2565 * tui/tui-source.c: Likewise.
2566 * tui/tui-stack.c: Likewise.
2567 * tui/tui-win.c: Likewise.
2568 * tui/tui-windata.c: Likewise.
2569 * tui/tui-winsource.c: Likewise.
2570 * typeprint.c: Likewise.
2571 * ui-file.c: Likewise.
2572 * ui-out.c: Likewise.
2573 * user-regs.c: Likewise.
2574 * utils.c: Likewise.
2575 * v850-tdep.c: Likewise.
2576 * valarith.c: Likewise.
2577 * valops.c: Likewise.
2578 * valprint.c: Likewise.
2579 * value.c: Likewise.
2580 * varobj.c: Likewise.
2581 * vax-tdep.c: Likewise.
2582 * vaxnbsd-tdep.c: Likewise.
2583 * vaxobsd-tdep.c: Likewise.
2584 * windows-nat.c: Likewise.
2585 * xcoffread.c: Likewise.
2586 * xml-support.c: Likewise.
2587 * xstormy16-tdep.c: Likewise.
2588 * xtensa-linux-nat.c: Likewise.
2590 2014-08-07 Gary Benson <gbenson@redhat.com>
2592 * common/common-defs.h: Include gdb_assert.h.
2593 * aarch64-tdep.c: Do not include gdb_assert.h.
2594 * addrmap.c: Likewise.
2595 * aix-thread.c: Likewise.
2596 * alpha-linux-tdep.c: Likewise.
2597 * alpha-mdebug-tdep.c: Likewise.
2598 * alphanbsd-tdep.c: Likewise.
2599 * amd64-nat.c: Likewise.
2600 * amd64-tdep.c: Likewise.
2601 * amd64bsd-nat.c: Likewise.
2602 * amd64fbsd-nat.c: Likewise.
2603 * amd64fbsd-tdep.c: Likewise.
2604 * amd64nbsd-nat.c: Likewise.
2605 * amd64nbsd-tdep.c: Likewise.
2606 * amd64obsd-nat.c: Likewise.
2607 * amd64obsd-tdep.c: Likewise.
2608 * arch-utils.c: Likewise.
2609 * arm-tdep.c: Likewise.
2610 * armbsd-tdep.c: Likewise.
2612 * bcache.c: Likewise.
2613 * bfin-tdep.c: Likewise.
2614 * blockframe.c: Likewise.
2615 * breakpoint.c: Likewise.
2616 * bsd-kvm.c: Likewise.
2617 * bsd-uthread.c: Likewise.
2618 * buildsym.c: Likewise.
2619 * c-exp.y: Likewise.
2620 * c-lang.c: Likewise.
2621 * charset.c: Likewise.
2622 * cleanups.c: Likewise.
2623 * cli-out.c: Likewise.
2624 * cli/cli-decode.c: Likewise.
2625 * cli/cli-dump.c: Likewise.
2626 * cli/cli-logging.c: Likewise.
2627 * cli/cli-script.c: Likewise.
2628 * cli/cli-utils.c: Likewise.
2629 * coffread.c: Likewise.
2630 * common/common-utils.c: Likewise.
2631 * common/queue.h: Likewise.
2632 * common/signals.c: Likewise.
2633 * common/vec.h: Likewise.
2634 * complaints.c: Likewise.
2635 * completer.c: Likewise.
2636 * corelow.c: Likewise.
2637 * cp-abi.c: Likewise.
2638 * cp-name-parser.y: Likewise.
2639 * cp-namespace.c: Likewise.
2640 * cp-support.c: Likewise.
2641 * cris-tdep.c: Likewise.
2642 * dbxread.c: Likewise.
2643 * dictionary.c: Likewise.
2644 * doublest.c: Likewise.
2645 * dsrec.c: Likewise.
2646 * dummy-frame.c: Likewise.
2647 * dwarf2-frame-tailcall.c: Likewise.
2648 * dwarf2-frame.c: Likewise.
2649 * dwarf2expr.c: Likewise.
2650 * dwarf2loc.c: Likewise.
2651 * dwarf2read.c: Likewise.
2653 * event-loop.c: Likewise.
2654 * exceptions.c: Likewise.
2655 * expprint.c: Likewise.
2656 * f-valprint.c: Likewise.
2657 * fbsd-nat.c: Likewise.
2658 * findvar.c: Likewise.
2659 * frame-unwind.c: Likewise.
2660 * frame.c: Likewise.
2661 * frv-tdep.c: Likewise.
2662 * gcore.c: Likewise.
2663 * gdb-dlfcn.c: Likewise.
2664 * gdb_bfd.c: Likewise.
2665 * gdbarch.c: Likewise.
2666 * gdbarch.sh: Likewise.
2667 * gdbtypes.c: Likewise.
2668 * gnu-nat.c: Likewise.
2669 * gnu-v3-abi.c: Likewise.
2670 * go-lang.c: Likewise.
2671 * guile/scm-exception.c: Likewise.
2672 * guile/scm-gsmob.c: Likewise.
2673 * guile/scm-lazy-string.c: Likewise.
2674 * guile/scm-math.c: Likewise.
2675 * guile/scm-pretty-print.c: Likewise.
2676 * guile/scm-safe-call.c: Likewise.
2677 * guile/scm-utils.c: Likewise.
2678 * guile/scm-value.c: Likewise.
2679 * h8300-tdep.c: Likewise.
2680 * hppa-hpux-nat.c: Likewise.
2681 * hppa-tdep.c: Likewise.
2682 * hppanbsd-tdep.c: Likewise.
2683 * hppaobsd-tdep.c: Likewise.
2684 * i386-darwin-nat.c: Likewise.
2685 * i386-darwin-tdep.c: Likewise.
2686 * i386-nto-tdep.c: Likewise.
2687 * i386-tdep.c: Likewise.
2688 * i386bsd-nat.c: Likewise.
2689 * i386fbsd-tdep.c: Likewise.
2690 * i386gnu-nat.c: Likewise.
2691 * i386nbsd-tdep.c: Likewise.
2692 * i386obsd-tdep.c: Likewise.
2693 * i387-tdep.c: Likewise.
2694 * ia64-libunwind-tdep.c: Likewise.
2695 * ia64-tdep.c: Likewise.
2696 * inf-ptrace.c: Likewise.
2697 * inf-ttrace.c: Likewise.
2698 * infcall.c: Likewise.
2699 * infcmd.c: Likewise.
2700 * infrun.c: Likewise.
2701 * inline-frame.c: Likewise.
2702 * interps.c: Likewise.
2703 * jv-lang.c: Likewise.
2704 * jv-typeprint.c: Likewise.
2705 * linux-fork.c: Likewise.
2706 * linux-nat.c: Likewise.
2707 * linux-thread-db.c: Likewise.
2708 * m32c-tdep.c: Likewise.
2709 * m32r-linux-nat.c: Likewise.
2710 * m32r-tdep.c: Likewise.
2711 * m68k-tdep.c: Likewise.
2712 * m68kbsd-nat.c: Likewise.
2713 * m68kbsd-tdep.c: Likewise.
2714 * m88k-tdep.c: Likewise.
2715 * machoread.c: Likewise.
2716 * macroexp.c: Likewise.
2717 * macrotab.c: Likewise.
2718 * maint.c: Likewise.
2719 * mdebugread.c: Likewise.
2720 * memory-map.c: Likewise.
2721 * mep-tdep.c: Likewise.
2722 * mi/mi-common.c: Likewise.
2723 * microblaze-tdep.c: Likewise.
2724 * mingw-hdep.c: Likewise.
2725 * mips-linux-nat.c: Likewise.
2726 * mips-linux-tdep.c: Likewise.
2727 * mips-tdep.c: Likewise.
2728 * mips64obsd-tdep.c: Likewise.
2729 * mipsnbsd-tdep.c: Likewise.
2730 * mn10300-linux-tdep.c: Likewise.
2731 * mn10300-tdep.c: Likewise.
2732 * moxie-tdep.c: Likewise.
2733 * mt-tdep.c: Likewise.
2734 * nat/linux-btrace.c: Likewise.
2735 * nat/linux-osdata.c: Likewise.
2736 * nat/linux-ptrace.c: Likewise.
2737 * nat/mips-linux-watch.c: Likewise.
2738 * nios2-linux-tdep.c: Likewise.
2739 * nios2-tdep.c: Likewise.
2740 * objc-lang.c: Likewise.
2741 * objfiles.c: Likewise.
2742 * obsd-nat.c: Likewise.
2743 * opencl-lang.c: Likewise.
2744 * osabi.c: Likewise.
2745 * parse.c: Likewise.
2746 * ppc-linux-nat.c: Likewise.
2747 * ppc-sysv-tdep.c: Likewise.
2748 * ppcfbsd-nat.c: Likewise.
2749 * ppcfbsd-tdep.c: Likewise.
2750 * ppcnbsd-nat.c: Likewise.
2751 * ppcnbsd-tdep.c: Likewise.
2752 * ppcobsd-nat.c: Likewise.
2753 * ppcobsd-tdep.c: Likewise.
2754 * printcmd.c: Likewise.
2755 * procfs.c: Likewise.
2756 * prologue-value.c: Likewise.
2757 * psymtab.c: Likewise.
2758 * python/py-lazy-string.c: Likewise.
2759 * python/py-value.c: Likewise.
2760 * regcache.c: Likewise.
2761 * reggroups.c: Likewise.
2762 * registry.c: Likewise.
2763 * remote-sim.c: Likewise.
2764 * remote.c: Likewise.
2765 * rs6000-aix-tdep.c: Likewise.
2766 * rs6000-tdep.c: Likewise.
2767 * s390-linux-tdep.c: Likewise.
2768 * score-tdep.c: Likewise.
2769 * ser-base.c: Likewise.
2770 * ser-mingw.c: Likewise.
2771 * sh-tdep.c: Likewise.
2772 * sh64-tdep.c: Likewise.
2773 * solib-darwin.c: Likewise.
2774 * solib-spu.c: Likewise.
2775 * solib-svr4.c: Likewise.
2776 * source.c: Likewise.
2777 * sparc-nat.c: Likewise.
2778 * sparc-sol2-tdep.c: Likewise.
2779 * sparc-tdep.c: Likewise.
2780 * sparc64-sol2-tdep.c: Likewise.
2781 * sparc64-tdep.c: Likewise.
2782 * sparc64fbsd-tdep.c: Likewise.
2783 * sparc64nbsd-tdep.c: Likewise.
2784 * sparc64obsd-tdep.c: Likewise.
2785 * sparcnbsd-tdep.c: Likewise.
2786 * sparcobsd-tdep.c: Likewise.
2787 * spu-multiarch.c: Likewise.
2788 * spu-tdep.c: Likewise.
2789 * stabsread.c: Likewise.
2790 * stack.c: Likewise.
2791 * symfile.c: Likewise.
2792 * symtab.c: Likewise.
2793 * target-descriptions.c: Likewise.
2794 * target-memory.c: Likewise.
2795 * target.c: Likewise.
2796 * tic6x-linux-tdep.c: Likewise.
2797 * tic6x-tdep.c: Likewise.
2798 * tilegx-linux-nat.c: Likewise.
2799 * tilegx-tdep.c: Likewise.
2801 * tramp-frame.c: Likewise.
2802 * tui/tui-out.c: Likewise.
2803 * tui/tui-winsource.c: Likewise.
2804 * ui-out.c: Likewise.
2805 * user-regs.c: Likewise.
2806 * utils.c: Likewise.
2807 * v850-tdep.c: Likewise.
2808 * valops.c: Likewise.
2809 * value.c: Likewise.
2810 * varobj.c: Likewise.
2811 * vax-nat.c: Likewise.
2812 * xml-syscall.c: Likewise.
2813 * xml-tdesc.c: Likewise.
2814 * xstormy16-tdep.c: Likewise.
2815 * xtensa-linux-nat.c: Likewise.
2816 * xtensa-tdep.c: Likewise.
2818 2014-08-07 Gary Benson <gbenson@redhat.com>
2820 * common/common-defs.h: Include common-utils.h.
2821 * defs.h: Do not include common-utils.h.
2822 * common/gdb_assert.h: Likewise.
2823 * darwin-nat.h: Likewise.
2824 * nat/linux-btrace.c: Likewise.
2825 * target/waitstatus.h: Likewise.
2827 2014-08-07 Gary Benson <gbenson@redhat.com>
2829 * common/common-defs.h: Include ptid.h.
2830 * defs.h: Do not include ptid.h.
2831 * inferior.h: Likewise.
2832 * infrun.h: Likewise.
2833 * nat/linux-btrace.h: Likewise.
2834 * nat/linux-osdata.h: Likewise.
2835 * target/waitstatus.h: Likewise.
2837 2014-08-07 Gary Benson <gbenson@redhat.com>
2839 * common/common-defs.h: Include gdb_locale.h.
2840 * defs.h: Do not include gdb_locale.h.
2842 2014-08-07 Gary Benson <gbenson@redhat.com>
2844 * common/common-defs.h: Include gdb/signals.h.
2845 * defs.h: Do not include gdb/signals.h.
2847 2014-08-07 Gary Benson <gbenson@redhat.com>
2849 * common/common-defs.h: Include pathmax.h.
2850 * defs.h: Do not include pathmax.h.
2852 2014-08-07 Gary Benson <gbenson@redhat.com>
2854 * common/common-defs.h: Include libiberty.h.
2855 * defs.h: Do not include libiberty.h.
2856 * common/queue.h: Likewise.
2857 * cp-name-parser.y: Likewise.
2858 * mi/mi-cmd-catch.c: Likewise.
2859 * python/python.c: Likewise.
2861 2014-08-07 Gary Benson <gbenson@redhat.com>
2863 * common/common-defs.h: Include ansidecl.h.
2864 * defs.h: Do not include ansidecl.h.
2865 * common/buffer.h: Likewise.
2866 * common/common-utils.h: Likewise.
2868 2014-08-07 Gary Benson <gbenson@redhat.com>
2870 * common/common-defs.h: Include stddef.h.
2871 * defs.h: Do not include stddef.h.
2872 * common/common-utils.h: Likewise.
2873 * amd64fbsd-nat.c: Likewise.
2874 * bcache.c: Likewise.
2875 * charset.c: Likewise.
2876 * common/buffer.h: Likewise.
2877 * common/vec.h: Likewise.
2878 * i386bsd-nat.c: Likewise.
2879 * nat/linux-btrace.h: Likewise.
2880 * ppcfbsd-nat.c: Likewise.
2881 * ppcnbsd-tdep.h: Likewise.
2882 * ppcobsd-nat.c: Likewise.
2883 * ppcobsd-tdep.h: Likewise.
2884 * python/py-gdb-readline.c: Likewise.
2886 2014-08-07 Gary Benson <gbenson@redhat.com>
2888 * common/common-defs.h: Include stdarg.h.
2889 * defs.h: Do not include stdarg.h.
2890 * ada-lang.c: Likewise.
2891 * common/common-utils.h: Likewise.
2892 * guile/scm-string.c: Likewise.
2893 * guile/scm-utils.c: Likewise.
2894 * m32c-tdep.c: Likewise.
2896 2014-08-07 Gary Benson <gbenson@redhat.com>
2898 * common/common-defs.h: Include stdlib.h.
2899 * defs.h: Do not include stdlib.h.
2900 * addrmap.c: Likewise.
2901 * bcache.c: Likewise.
2902 * common/buffer.c: Likewise.
2903 * common/common-utils.c: Likewise.
2904 * cp-name-parser.y: Likewise.
2905 * go32-nat.c: Likewise.
2906 * mn10300-linux-tdep.c: Likewise.
2907 * nat/linux-osdata.c: Likewise.
2908 * tui/tui.c: Likewise.
2909 * windows-nat.c: Likewise.
2911 2014-08-07 Gary Benson <gbenson@redhat.com>
2913 * common/common-defs.h: Include stdio.h.
2914 * defs.h: Do not include stdio.h.
2915 * ada-lang.c: Likewise.
2916 * common/buffer.c: Likewise.
2917 * common/common-utils.c: Likewise.
2918 * cp-name-parser.y: Likewise.
2919 * gnu-nat.c: Likewise.
2920 * go32-nat.c: Likewise.
2921 * i386gnu-nat.c: Likewise.
2922 * proc-api.c: Likewise.
2923 * proc-events.c: Likewise.
2924 * proc-flags.c: Likewise.
2925 * proc-why.c: Likewise.
2926 * python/python-internal.h: Likewise.
2927 * target-memory.c: Likewise.
2928 * tui/tui-io.c: Likewise.
2929 * tui/tui.c: Likewise.
2931 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2933 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2934 (scan_dyntag_auxv): Same.
2936 2014-08-06 Yao Qi <yao@codesourcery.com>
2938 * amd64-linux-nat.c: Remove duplicated include
2940 * i386-linux-nat.c: Likewise.
2942 2014-08-06 Yao Qi <yao@codesourcery.com>
2944 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2945 operand" with "Special opcode" in comments.
2947 2014-08-05 Gary Benson <gbenson@redhat.com>
2949 * interps.c (initialize_interps): Remove prototype.
2950 (interpreter_initialized): Remove static global.
2951 (interp_add): Do not call initialize_interps.
2952 (initialize_interps): Remove function.
2954 2014-08-05 Gary Benson <gbenson@redhat.com>
2956 * utils.c (vwarning): Remove spurious va_end.
2958 2014-08-05 Alan Modra <amodra@gmail.com>
2960 * charset.c (convert_between_encodings): Cast result of obstack_base.
2961 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2962 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2963 (read_unwind_info): Use size_t for some locals.
2964 * jit.c (finalize_symtab): Likewise.
2965 * utils.c (hashtab_obstack_allocate): Likewise.
2966 * symmisc.c (print_objfile_statistics): Update format strings.
2968 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2970 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2971 (Changes in GDB 7.8): ... here.
2973 2014-08-04 Tom Tromey <tromey@redhat.com>
2975 * target.c (set_targetdebug): New function.
2976 (initialize_targets): Pass set_targetdebug when creating "set
2979 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2981 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2982 if detecting a variable-sized field that is not the last field.
2983 Fix struct type length computation.
2985 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2987 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2990 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2992 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2993 Remove "+ 8" offset in computation of CHAIN_VMA.
2995 2014-07-31 Doug Evans <dje@google.com>
2997 * inflow.c (child_terminal_inferior): Add comment.
2998 (child_terminal_ours_for_output): Add comment.
2999 (child_terminal_ours): Add comment.
3000 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3001 (linux_nat_terminal_ours): Add comment.
3003 2014-07-31 Gary Benson <gbenson@redhat.com>
3005 * common/btrace-common.h: Do not include defs.h or server.h.
3006 * nat/mips-linux-watch.h: Likewise.
3007 * gdb-dlfcn.h: Do not include defs.h.
3008 * tracefile.h: Likewise.
3010 2014-07-30 Roland McGrath <mcgrathr@google.com>
3012 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3014 2014-07-30 Tom Tromey <tromey@redhat.com>
3016 * bsd-kvm.c (bsd_kvm_open): Constify.
3017 * corelow.c (core_open): Constify.
3018 * ctf.c (ctf_open): Constify.
3019 * dbug-rom.c (dbug_open): Constify.
3020 * exec.c (exec_open): Constify.
3021 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3022 * microblaze-rom.c (picobug_open): Constify.
3023 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3025 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3026 * record-btrace.c (record_btrace_open): Constify.
3027 * record-full.c (record_full_core_open_1, record_full_open_1)
3028 (record_full_open): Constify.
3029 * remote-m32r-sdi.c (m32r_open): Constify.
3030 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3031 (rockhopper_open, lsi_open): Constify.
3032 * remote-sim.c (gdbsim_open): Constify.
3033 * remote.c (remote_open, extended_remote_open, remote_open_1):
3035 * target.h (struct target_ops) <to_open>: Make "arg" const.
3036 * tracefile-tfile.c (tfile_open): Constify.
3038 2014-07-30 Tom Tromey <tromey@redhat.com>
3040 * breakpoint.c (map_breakpoint_numbers): Update.
3041 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3042 (get_number_const): New function.
3043 (get_number): Rewrite using get_number_const.
3044 (init_number_or_range): Make "string" const.
3045 (number_is_in_list): Make "list" const.
3046 * cli/cli-utils.h (get_number_const): Declare.
3047 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3048 (init_number_or_range, number_is_in_list): Update.
3049 * printcmd.c (map_display_numbers): Update.
3050 * value.c (value_from_history_ref): Constify.
3051 * value.h (value_from_history_ref): Update.
3053 2014-07-30 Tom Tromey <tromey@redhat.com>
3055 * corefile.c (hook_type, call_extra_exec_file_hooks)
3056 (specify_exec_file_hook): Constify.
3057 * exec.c (exec_file_attach): Make "filename" const.
3058 * gdbcore.h (deprecated_exec_file_display_hook)
3059 (specify_exec_file_hook, exec_file_attach): Constify.
3060 * main.c (captured_main): Use catch_command_errors_const.
3062 2014-07-30 Tom Tromey <tromey@redhat.com>
3064 * target.c (open_target): New function.
3065 (add_target_with_completer, add_deprecated_target_alias): Use
3066 set_cmd_sfunc, set_cmd_context.
3067 (debug_to_open): Remove.
3068 (setup_target_debug): Update.
3070 2014-07-30 Yao Qi <yao@codesourcery.com>
3072 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3074 * parse.c (exp_iterate): Update comments.
3076 2014-07-30 Gary Benson <gbenson@redhat.com>
3078 * common/common-defs.h: New file.
3079 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3080 * defs.h: Include common-defs.h.
3081 Do not include config.h or build-gnulib/config.h.
3083 2014-07-30 Gary Benson <gbenson@redhat.com>
3085 * common/common-utils.h: Do not include config.h.
3086 * nat/linux-btrace.h: Likewise.
3088 2014-07-30 Gary Benson <gbenson@redhat.com>
3090 * btrace.c: Include defs.h.
3091 * common/ptid.c: Include defs.h or server.h as appropriate.
3092 * nat/mips-linux-watch.c: Likewise.
3094 2014-07-29 Tom Tromey <tromey@redhat.com>
3096 * target.c (target_is_pushed): Simplify.
3098 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3102 2014-07-29 Yao Qi <yao@codesourcery.com>
3105 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3107 2014-07-28 Doug Evans <xdje42@gmail.com>
3110 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3111 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3114 2014-07-28 Will Newton <will.newton@linaro.org>
3116 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3117 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3118 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3119 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3120 (THUMB2_EABI_SYSCALL): Likewise.
3121 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3123 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3124 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3126 2014-07-27 Doug Evans <xdje42@gmail.com>
3128 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3130 2014-07-27 Doug Evans <xdje42@gmail.com>
3132 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3134 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3135 Doug Evans <xdje42@gmail.com>
3138 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3139 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3140 * configure.ac: Try to use guild to compile an scm file, if it fails
3141 then disable guile support.
3142 * configure: Regenerate.
3143 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3145 (GUILE_COMPILED_FILES): New variable.
3146 (GUILE_FILES) Update.
3147 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3148 (stamp-guile): Compile scm files.
3149 * guile/guile.c (boot_guile_support): New function.
3150 (standard_throw_args_p): New function.
3151 (print_standard_throw_error, print_throw_error): New functions.
3152 (handle_boot_error): New function.
3153 (initialize_scheme_side): Rewrite to call boot_guile_support.
3154 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3155 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3157 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3158 Doug Evans <xdje42@gmail.com>
3161 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3162 * guile/lib/gdb/support.scm: New file.
3163 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3164 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3166 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3168 (%assert-type): Ditto, and renamed to assert-type.
3169 (%exception-print-style): Delete.
3171 2014-07-26 Doug Evans <xdje42@gmail.com>
3174 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3175 * configure: Regenerate.
3176 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3178 (PYTHON_FILES): New variable.
3179 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3180 (GUILE_FILES): New variable.
3181 (stamp-python, install-python, uninstall-python): Handle empty
3183 (stamp-guile, install-guile, uninstall-guile): Ditto.
3185 2014-07-26 Doug Evans <xdje42@gmail.com>
3188 * guile/lib/gdb.scm (pretty-printers): Export.
3189 (set-pretty-printers!): Export.
3190 * guile/lib/gdb/printing.scm (gdb module): Update.
3191 (prepend-pretty-printer!, append-pretty-printer!): Update.
3192 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3193 (pretty_printer_list_var): Delete.
3194 (pretty_printer_list): New static global.
3195 (gdbscm_pretty_printers): New function.
3196 (gdbscm_set_pretty_printers_x): New function.
3197 (ppscm_find_pretty_printer_from_gdb): Update.
3198 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3199 (gdbscm_initialize_pretty_printers): Update.
3201 2014-07-26 Doug Evans <xdje42@gmail.com>
3204 * configure.ac: Add check for header gc/gc.h.
3205 Add check for function setenv.
3206 * configure: Regenerate.
3207 * config.in: Regenerate.
3208 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3210 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3212 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3213 variation in gdbarch matching.
3215 2014-07-25 Tom Tromey <tromey@redhat.com>
3217 * exec.c (using_exec_ops): Remove.
3218 (exec_close_1): Update. Remove extraneous block, reindent.
3219 (add_target_sections): Use target_is_pushed.
3221 2014-07-25 Pedro Alves <palves@redhat.com>
3223 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3224 * monitor.c (monitor_create_inferior): Likewise.
3225 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3226 * remote-sim.c (gdbsim_create_inferior): Likewise.
3227 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3228 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3229 * windows-nat.c (do_initial_windows_stuff): Likewise.
3231 2014-07-25 Pedro Alves <palves@redhat.com>
3233 * NEWS: Mention signal passing and "signal" command changes.
3234 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3236 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3238 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3239 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3240 (jump_command): Adjust clear_proceed_status call.
3241 (signal_command): Warn if other thread that are resumed have
3242 signals that will be delivered. Adjust clear_proceed_status call.
3243 (until_next_command, finish_command)
3244 (proceed_after_attach_callback, attach_command_post_wait)
3245 (attach_command): Adjust clear_proceed_status call.
3246 * infrun.c (proceed_after_vfork_done): Likewise.
3247 (proceed_after_attach_callback): Adjust comment.
3248 (clear_proceed_status_thread): Clear stop_signal if not in pass
3250 (clear_proceed_status_callback): Delete.
3251 (clear_proceed_status): New 'step' parameter. Only clear the
3252 proceed status of threads the command being prepared is about to
3254 (proceed): If passed in an explicit signal, override stop_signal
3255 with it. Don't pass the last stop signal to the thread we're
3257 (init_wait_for_inferior): Adjust clear_proceed_status call.
3258 (switch_back_to_stepped_thread): Clear the signal if it should not
3260 * infrun.h (clear_proceed_status): New 'step' parameter.
3261 (user_visible_resume_ptid): Add comment.
3262 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3263 signal is in pass state.
3264 * remote.c (append_pending_thread_resumptions): Likewise.
3265 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3267 2014-07-25 Tom Tromey <tromey@redhat.com>
3269 * target.h (target_stopped_data_address)
3270 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3273 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3275 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3277 (avr_pointer_to_address): Likewise.
3279 2014-07-24 Tom Tromey <tromey@redhat.com>
3281 * monitor.c (compile_pattern): Update.
3282 * target.h (struct target_ops) <to_shortname, to_longname,
3285 2014-07-24 Tom Tromey <tromey@redhat.com>
3287 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3288 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3289 (add_info_alias, add_com): Make "doc" const.
3290 (print_doc_line): Make "str" const.
3291 (delete_cmd): Update.
3292 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3293 (print_doc_line): Update.
3294 * cli/cli-script.c (document_command): Update.
3295 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3296 (add_com, add_info, add_info_alias): Update.
3297 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3298 * python/py-cmd.c (cmdpy_destroyer): Update.
3300 2014-07-24 Tom Tromey <tromey@redhat.com>
3302 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3303 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3304 (help_cmd_list): Constify.
3305 (lookup_cmd): Update.
3306 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3308 (help_cmd_list, apropos_cmd): Update.
3309 * cli/cli-script.c (show_user): Update.
3310 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3311 * cli/cli-setshow.h (cmd_show_list): Update.
3312 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3313 (cmd_show_list): Update.
3314 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3315 * python/py-cmd.c (cmdpy_destroyer): Update.
3317 2014-07-24 Tom Tromey <tromey@redhat.com>
3319 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3320 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3322 * command.h (deprecate_cmd): Update.
3323 * maint.c (maintenance_do_deprecate): Add casts.
3325 2014-07-24 Tom Tromey <tromey@redhat.com>
3327 * cli/cli-decode.c (help_cmd): Make parameter "const".
3328 * cli/cli-decode.h (help_cmd): Update.
3330 2014-07-24 Tom Tromey <tromey@redhat.com>
3332 * stack.c (up_silently_base, down_silently_base): Make argument
3335 2014-07-24 Tom Tromey <tromey@redhat.com>
3337 * solib.c (solib_add): Make "pattern" const.
3338 * solib.h (solib_add): Update.
3340 2014-07-24 Tom Tromey <tromey@redhat.com>
3342 * remote.c (remote_serial_open, print_packet, putpkt)
3343 (putpkt_binary): Constify.
3344 * remote.h (putpkt): Update.
3346 2014-07-24 Tom Tromey <tromey@redhat.com>
3348 * monitor.c (monitor_open): Make "args" const.
3349 * monitor.h (monitor_open): Update.
3351 2014-07-24 Tom Tromey <tromey@redhat.com>
3353 * maint.c (match_bfd_flags): Make "string" const.
3354 (print_bfd_section_info): Remove casts.
3355 (print_objfile_section_info): Make "string" const.
3357 2014-07-24 Tom Tromey <tromey@redhat.com>
3359 * inf-child.c (inf_child_open_target): Make "arg" const.
3360 * inf-child.h (inf_child_open_target): Update.
3362 2014-07-24 Tom Tromey <tromey@redhat.com>
3364 * environ.c (unset_in_environ): Make "var" const.
3365 * environ.h (unset_in_environ): Update.
3367 2014-07-24 Tom Tromey <tromey@redhat.com>
3369 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3371 (scan_filename_with_cleanup): Likewise.
3372 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3373 Make arguments const.
3374 (restore_command): Update.
3376 2014-07-24 Pedro Alves <palves@redhat.com>
3378 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3380 2014-07-24 Tom Tromey <tromey@redhat.com>
3381 Gary Benson <gbenson@redhat.com>
3383 * nat/linux-ptrace.c (additional_flags): New global.
3384 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3385 additional_flags; don't check GDBSERVER.
3386 (linux_ptrace_set_additional_flags): New function.
3387 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3389 * linux-nat.c (_initialize_linux_nat): Call
3390 linux_ptrace_set_additional_flags.
3392 2014-07-24 Tom Tromey <tromey@redhat.com>
3394 * make-target-delegates (munge_type, write_debugmethod): New
3396 (debug_names): New global.
3397 ($TARGET_DEBUG_PRINTER): New global.
3398 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3400 Write debug methods. Generate init_debug_target.
3401 * target-debug.h: New file.
3402 * target-delegates.c: Rebuild.
3403 * target.c: Include target-debug.h.
3404 (debug_target): Hoist definition.
3405 (target_kill, target_get_section_table, target_memory_map)
3406 (target_flash_erase, target_flash_done, target_detach)
3407 (target_disconnect, target_wait, target_resume)
3408 (target_pass_signals, target_program_signals, target_follow_fork)
3409 (target_mourn_inferior, target_search_memory)
3410 (target_thread_address_space, target_close)
3411 (target_find_new_threads, target_core_of_thread)
3412 (target_verify_memory, target_insert_mask_watchpoint)
3413 (target_remove_mask_watchpoint): Remove targetdebug code.
3414 (debug_to_post_attach, debug_to_prepare_to_store)
3415 (debug_to_files_info, debug_to_insert_breakpoint)
3416 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3417 (debug_to_region_ok_for_hw_watchpoint)
3418 (debug_to_can_accel_watchpoint_condition)
3419 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3420 (debug_to_watchpoint_addr_within_range)
3421 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3422 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3423 (debug_to_terminal_init, debug_to_terminal_inferior)
3424 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3425 (debug_to_terminal_save_ours, debug_to_terminal_info)
3426 (debug_to_load, debug_to_post_startup_inferior)
3427 (debug_to_insert_fork_catchpoint)
3428 (debug_to_remove_fork_catchpoint)
3429 (debug_to_insert_vfork_catchpoint)
3430 (debug_to_remove_vfork_catchpoint)
3431 (debug_to_insert_exec_catchpoint)
3432 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3433 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3434 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3435 (setup_target_debug): Call init_debug_target.
3436 * target.h (TARGET_DEBUG_PRINTER): New macro.
3437 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3438 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3440 2014-07-24 Gary Benson <gbenson@redhat.com>
3442 * exceptions.h (throw_vfatal): Renamed to...
3443 (throw_vquit): New declaration.
3444 (throw_quit): Likewise.
3445 * exceptions.c (throw_vfatal): Renamed to...
3446 (throw_vquit): New function.
3447 (throw_quit): Likewise.
3448 (throw_error): Call throw_verror rather than throw_it.
3449 * utils.h (vfatal): Removed.
3451 * utils.c (vfatal): Removed.
3453 (internal_verror): Replaced call to fatal with call to throw_quit.
3454 (quit): Replaced calls to fatal with calls to throw_quit.
3456 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3458 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3461 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3463 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3464 less than zero in conditional expression.
3466 2014-07-23 Tom Tromey <tromey@redhat.com>
3468 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3469 ($INTRO_PART): Don't match whitespace.
3470 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3472 ($METHOD): Add $METHOD_TRAILER.
3474 (scan_target_h): New sub.
3475 Change main loop not to collect state.
3476 * target-delegates.c: Rebuild.
3478 2014-07-23 Gary Benson <gbenson@redhat.com>
3480 * cp-support.c (gdb_demangle): Fix build on systems without
3483 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3485 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3486 for reference entry value target data value.
3488 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3490 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3491 value_available_contents_eq.
3493 2014-07-22 Pedro Alves <palves@redhat.com>
3495 * value.c (allocate_optimized_out_value): Don't mark value as
3498 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3500 * MAINTAINERS (Write After Approval): Update my email address.
3502 2014-07-20 Doug Evans <dje@google.com>
3505 * remote.c (putpkt_binary): Add text to error message.
3507 2014-07-20 Yao Qi <yao@codesourcery.com>
3509 * eval.c: Remove "Chill" from comments.
3510 * gdbtypes.h: Likewise.
3511 * symtab.h: Likewise.
3513 2014-07-20 Yao Qi <yao@codesourcery.com>
3515 * std-operator.def: Update comments to TERNOP_SLICE.
3517 2014-07-20 Yao Qi <yao@codesourcery.com>
3519 * std-operator.def: Remove BINOP_RANGE.
3520 * breakpoint.c (watchpoint_exp_is_const): Update.
3521 * expprint.c (dump_subexp_body_standard): Likewise.
3522 * eval.c (init_array_element): Remove dead code.
3523 (evaluate_subexp_standard): Likewise.
3525 2014-07-20 Yao Qi <yao@codesourcery.com>
3527 * std-operator.def: Remove BINOP_IN.
3528 * breakpoint.c (watchpoint_exp_is_const): Update.
3529 * eval.c (evaluate_subexp_standard): Likewise.
3530 * expprint.c (dump_subexp_body_standard): Likewise.
3532 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3534 * microblaze-tdep.c (microblaze_register_names): Add
3535 the rshr and rslr register names.
3536 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3537 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3538 Use of tdesc_numbered_register. Use of
3539 microblaze_register_g_packet_guesses. Use of
3540 tdesc_use_registers. Use of set_gdbarch_register_type.
3541 (microblaze_register_g_packet_guesses): New.
3542 * microblaze-tdep.h (microblaze_reg_num): Add
3543 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3544 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3545 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3546 * features/microblaze-core.xml: New file.
3547 * features/microblaze-stack-protect.xml: New file.
3548 * features/microblaze-with-stack-protect.c: New file.
3549 * features/microblaze-with-stack-protect.xml: New file.
3550 * features/microblaze.xml: New file.
3551 * features/microblaze.c: New file.
3552 * features/Makefile (microblaze-with-stack-protect): Add
3553 microblaze-with-stack-protect microblaze and microblaze-expedite.
3554 * regformats/microblaze-with-stack-protect.dat: New file.
3555 * regformats/microblaze.dat: New file.
3556 * doc/gdb.texinfo (MicroBlaze Features): Added.
3558 2014-07-18 Tom Tromey <tromey@redhat.com>
3560 * exec.c (exec_ops): Now static.
3561 * exec.h (exec_ops): Don't declare.
3563 2014-07-18 Tom Tromey <tromey@redhat.com>
3565 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3566 to find_target_beneath.
3567 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3568 find_target_beneath.
3569 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3571 2014-07-18 Tom Tromey <tromey@redhat.com>
3574 * utils.c (quit): Use target_supports_terminal_ours.
3575 * target.h (target_supports_terminal_ours): Declare.
3576 * target.c (target_supports_delete_record): Don't check
3577 to_delete_record against NULL.
3578 (target_supports_terminal_ours): New function.
3580 2014-07-18 Tom Tromey <tromey@redhat.com>
3583 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3584 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3585 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3586 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3587 * windows-nat.c (windows_xfer_partial): Always delegate.
3588 * record-btrace.c (record_btrace_xfer_partial): Simplify
3590 (record_btrace_fetch_registers, record_btrace_store_registers)
3591 (record_btrace_prepare_to_store, record_btrace_resume)
3592 (record_btrace_wait, record_btrace_find_new_threads)
3593 (record_btrace_thread_alive): Likewise.
3594 * procfs.c (procfs_xfer_partial): Always delegate.
3595 * corelow.c (core_xfer_partial): Always delegate.
3596 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3598 2014-07-18 Tom Tromey <tromey@redhat.com>
3600 * exec.c (exec_make_note_section): Move earlier.
3602 2014-07-17 Doug Evans <dje@google.com>
3605 * maint.c (count_symtabs_and_blocks): Handle NULL
3606 current_program_space.
3607 (report_command_stats): Check global enabled flag in addition to
3608 recorded enabled flag.
3609 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3611 2014-07-16 Pedro Alves <palves@redhat.com>
3613 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3615 2014-07-16 Tom Tromey <tromey@redhat.com>
3617 * target.h (struct target_ops) <to_delete_record>: Reformat
3620 2014-07-16 Tom Tromey <tromey@redhat.com>
3622 * target-delegates.c: Rebuild.
3624 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3626 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3627 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3628 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3629 (avr_pointer_to_address): Likewise.
3630 (avr_address_class_type_flags): New function.
3631 (avr_address_class_type_flags_to_name): Likewise.
3632 (avr_address_class_name_to_type_flags): Likewise.
3633 (avr_gdbarch_init): Set address_class_type_flags,
3634 address_class_type_flags_to_name and
3635 address_class_name_to_type_flags.
3637 2014-07-15 Pedro Alves <palves@redhat.com>
3639 * linux-nat.c (kill_callback): Save errno and work with saved
3642 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3644 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3646 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3648 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3649 breakpoint support correctly.
3651 2014-07-14 Pedro Alves <palves@redhat.com>
3653 * utils.c (prompt_for_continue): Call target_terminal_ours.
3655 2014-07-14 Pedro Alves <palves@redhat.com>
3657 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3658 catch_errors. Don't re-enable stdin or notify observers where,
3660 (fetch_inferior_event_wrapper): Delete.
3662 2014-07-14 Pedro Alves <palves@redhat.com>
3665 * top.c: Include "inf-loop.h".
3666 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3668 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3670 (gdb_readline_wrapper): Store whether the target is async, and
3673 2014-07-14 Pedro Alves <palves@redhat.com>
3676 * top.c (gdb_readline_wrapper_line): Tweak comment.
3677 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3678 the input handler callback.
3680 2014-07-14 Pedro Alves <palves@redhat.com>
3683 * main.c: Include event-top.h.
3684 (handle_command_errors): New function.
3685 (catch_command_errors, catch_command_errors_const): Use it.
3687 2014-07-14 Pedro Alves <palves@redhat.com>
3689 * exceptions.c (catch_command_errors, catch_command_errors_const):
3691 * exceptions.h (catch_command_errors_ftype)
3692 (catch_command_errors_const_ftype): Moved to main.c.
3693 (catch_command_errors, catch_command_errors_const): Delete
3695 * main.c (catch_command_errors_ftype)
3696 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3697 (catch_command_errors, catch_command_errors_const)): Moved here
3698 from exceptions.c and make static.
3700 2014-07-14 Pedro Alves <palves@redhat.com>
3702 * exceptions.c (print_any_exception): Delete.
3703 (catch_exceptions_with_msg): Use exception_print instead of
3704 print_any_exception.
3705 (catch_errors): Use exception_fprintf instead of
3706 print_any_exception.
3707 (catch_command_errors, catch_command_errors_const): Use
3708 exception_print instead of print_any_exception.
3710 2014-07-14 Pedro Alves <palves@redhat.com>
3712 * infcall.c (run_inferior_call): Set 'sync_execution' while
3713 running the inferior call.
3715 2014-07-14 Pedro Alves <palves@redhat.com>
3717 * value.c (value_contents_equal): Delete function.
3718 * value.h (value_contents_equal): Delete declaration.
3720 2014-07-14 Tom Tromey <tromey@redhat.com>
3723 * gdbtypes.c (is_dynamic_type_internal): New function, from
3725 (is_dynamic_type): Rewrite.
3726 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3727 (resolve_dynamic_struct): Likewise.
3728 (resolve_dynamic_type_internal): New function, from
3729 resolve_dynamic_type.
3730 (resolve_dynamic_type): Rewrite.
3732 2014-07-14 Tom Tromey <tromey@redhat.com>
3734 * target.c (target_require_runnable): Also check record_stratum.
3737 2014-07-11 Yao Qi <yao@codesourcery.com>
3739 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3740 thumb_instruction_restores_sp return true.
3742 2014-07-11 Yao Qi <yao@codesourcery.com>
3744 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3745 (thumb_in_function_epilogue_p): Call
3746 thumb_instruction_restores_sp.
3748 2014-07-11 Yao Qi <yao@codesourcery.com>
3750 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3752 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3754 2014-07-11 Gary Benson <gbenson@redhat.com>
3756 * amd64-linux-nat.c (gdbcore.h): Remove include.
3757 (regset.h): Likewise.
3758 (nat/linux-btrace.h): Likewise.
3759 (btrace.h): Likewise.
3760 (gdb_assert.h): Likewise.
3761 (string.h): Likewise.
3762 (sys/uio.h): Likewise.
3763 (sys/debugreg.h): Likewise.
3764 (sys/syscall.h): Likewise.
3765 (sys/procfs.h): Likewise.
3766 (sys/user.h): Likewise.
3767 (asm/ptrace.h): Likewise.
3768 (i386-nat.h): Likewise.
3769 * i386-linux-nat.c (i386-nat.h): Likewise.
3770 (regset.h): Likewise.
3771 (target.h): Likewise.
3772 (linux-nat.h): Likewise.
3773 (nat/linux-btrace.h): Likewise.
3774 (btrace.h): Likewise.
3775 (gdb_assert.h): Likewise.
3776 (string.h): Likewise.
3777 (sys/uio.h): Likewise.
3778 (sys/user.h): Likewise.
3779 (sys/procfs.h): Likewise.
3780 (sys/reg.h): Likewise.
3781 (sys/debugreg.h): Likewise.
3782 (ORIG_EAX): Remove definition.
3784 2014-07-11 Gary Benson <gbenson@redhat.com>
3786 * i386-linux-nat.h: New file.
3787 * x86-linux-nat.h: Likewise.
3788 * x86-linux-nat.c: Likewise.
3789 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3790 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3791 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3792 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3793 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3794 (PTRACE_SETREGSET): Likewise.
3795 (arch_lwp_info): Now in x86-linux-nat.c.
3796 (have_ptrace_getregset): Now in x86-linux-nat.h.
3797 (x86_linux_dr_get): Now in x86-linux-nat.c.
3798 (x86_linux_dr_set): Likewise.
3799 (x86_linux_dr_get_addr): Likewise.
3800 (x86_linux_dr_get_control): Likewise.
3801 (x86_linux_dr_get_status): Likewise.
3802 (update_debug_registers_callback): Likewise.
3803 (x86_linux_dr_set_control): Likewise.
3804 (x86_linux_dr_set_addr): Likewise.
3805 (x86_linux_prepare_to_resume): Likewise.
3806 (x86_linux_new_thread): Likewise.
3807 (x86_linux_new_fork): Likewise.
3808 (x86_linux_get_thread_area): Likewise.
3809 (super_post_startup_inferior): Likewise.
3810 (x86_linux_child_post_startup_inferior): Likewise.
3811 (AMD64_LINUX_USER64_CS): Likewise.
3812 (AMD64_LINUX_X32_DS): Likewise.
3813 (x86_linux_read_description): Likewise.
3814 (x86_linux_enable_btrace): Likewise.
3815 (x86_linux_disable_btrace): Likewise.
3816 (x86_linux_teardown_btrace): Likewise.
3817 (x86_linux_read_btrace): Likewise.
3818 (x86_linux_create_target): Likewise.
3819 (x86_linux_add_target): Likewise.
3820 * i386-linux-nat.c (x86-linux-nat.h): New include.
3821 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3822 (PTRACE_SETREGSET): Likewise.
3823 (arch_lwp_info): Now in x86-linux-nat.c.
3824 (have_ptrace_getregset): Now in x86-linux-nat.h.
3825 (x86_linux_dr_get): Now in x86-linux-nat.c.
3826 (x86_linux_dr_set): Likewise.
3827 (x86_linux_dr_get_addr): Likewise.
3828 (x86_linux_dr_get_control): Likewise.
3829 (x86_linux_dr_get_status): Likewise.
3830 (update_debug_registers_callback): Likewise.
3831 (x86_linux_dr_set_control): Likewise.
3832 (x86_linux_dr_set_addr): Likewise.
3833 (x86_linux_prepare_to_resume): Likewise.
3834 (x86_linux_new_thread): Likewise.
3835 (x86_linux_new_fork): Likewise.
3836 (x86_linux_get_thread_area): Likewise.
3837 (super_post_startup_inferior): Likewise.
3838 (x86_linux_child_post_startup_inferior): Likewise.
3839 (AMD64_LINUX_USER64_CS): Likewise.
3840 (AMD64_LINUX_X32_DS): Likewise.
3841 (x86_linux_read_description): Likewise.
3842 (x86_linux_enable_btrace): Likewise.
3843 (x86_linux_disable_btrace): Likewise.
3844 (x86_linux_teardown_btrace): Likewise.
3845 (x86_linux_read_btrace): Likewise.
3846 (x86_linux_create_target): Likewise.
3847 (x86_linux_add_target): Likewise.
3849 2014-07-11 Gary Benson <gbenson@redhat.com>
3851 * amd64-linux-nat.c: Comment and whitespace changes.
3852 * i386-linux-nat.c: Comment and whitespace changes.
3854 2014-07-11 Gary Benson <gbenson@redhat.com>
3856 * amd64-linux-nat.c (x86_linux_create_target): New function.
3857 (x86_linux_add_target): Likewise.
3858 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3859 * i386-linux-nat.c (x86_linux_create_target): New function.
3860 (x86_linux_add_target): Likewise.
3861 (_initialize_i386_linux_nat): Delegate to the above new functions.
3863 2014-07-11 Gary Benson <gbenson@redhat.com>
3865 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3866 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3867 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3868 (ps_get_thread_area): Delegate to the above.
3870 2014-07-11 Gary Benson <gbenson@redhat.com>
3872 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3873 x86_linux_read_description. All uses updated. amd64-specific
3874 code conditionalized. Conditionalized i386-specific code added.
3875 Redundant cast removed.
3876 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3877 x86_linux_read_description. All uses updated. i386-specific
3878 code conditionalized. Conditionalized amd64-specific code added.
3879 One sizeof replaced with the actual type it is describing.
3881 2014-07-11 Gary Benson <gbenson@redhat.com>
3883 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3884 x86_linux_dr_get. All uses updated.
3885 (amd64_linux_dr_set): Renamed to
3886 x86_linux_dr_set. All uses updated.
3887 (amd64_linux_dr_get_addr): Renamed to
3888 x86_linux_dr_get_addr. All uses updated.
3889 (amd64_linux_dr_get_control): Renamed to
3890 x86_linux_dr_get_control. All uses updated.
3891 (amd64_linux_dr_get_status): Renamed to
3892 x86_linux_dr_get_status. All uses updated.
3893 (amd64_linux_dr_set_control): Renamed to
3894 x86_linux_dr_set_control. All uses updated.
3895 (amd64_linux_dr_set_addr): Renamed to
3896 x86_linux_dr_set_addr. All uses updated.
3897 (amd64_linux_prepare_to_resume): Renamed to
3898 x86_linux_prepare_to_resume. All uses updated.
3899 (amd64_linux_new_thread): Renamed to
3900 x86_linux_new_thread. All uses updated.
3901 (amd64_linux_new_fork): Renamed to
3902 x86_linux_new_fork. All uses updated.
3903 (amd64_linux_child_post_startup_inferior): Renamed to
3904 x86_linux_child_post_startup_inferior. All uses updated.
3905 (amd64_linux_enable_btrace): Renamed to
3906 x86_linux_enable_btrace. All uses updated.
3907 (amd64_linux_disable_btrace): Renamed to
3908 x86_linux_disable_btrace. All uses updated.
3909 (amd64_linux_teardown_btrace): Renamed to
3910 x86_linux_teardown_btrace. All uses updated.
3911 (amd64_linux_read_btrace): Renamed to
3912 x86_linux_read_btrace. All uses updated.
3913 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3914 x86_linux_dr_get. All uses updated.
3915 (i386_linux_dr_set): Renamed to
3916 x86_linux_dr_set. All uses updated.
3917 (i386_linux_dr_get_addr): Renamed to
3918 x86_linux_dr_get_addr. All uses updated.
3919 (i386_linux_dr_get_control): Renamed to
3920 x86_linux_dr_get_control. All uses updated.
3921 (i386_linux_dr_get_status): Renamed to
3922 x86_linux_dr_get_status. All uses updated.
3923 (i386_linux_dr_set_control): Renamed to
3924 x86_linux_dr_set_control. All uses updated.
3925 (i386_linux_dr_set_addr): Renamed to
3926 x86_linux_dr_set_addr. All uses updated.
3927 (i386_linux_prepare_to_resume): Renamed to
3928 x86_linux_prepare_to_resume. All uses updated.
3929 (i386_linux_new_thread): Renamed to
3930 x86_linux_new_thread. All uses updated.
3931 (i386_linux_new_fork): Renamed to
3932 x86_linux_new_fork. All uses updated.
3933 (i386_linux_child_post_startup_inferior): Renamed to
3934 x86_linux_child_post_startup_inferior. All uses updated.
3935 (i386_linux_enable_btrace): Renamed to
3936 x86_linux_enable_btrace. All uses updated.
3937 (i386_linux_disable_btrace): Renamed to
3938 x86_linux_disable_btrace. All uses updated.
3939 (i386_linux_teardown_btrace): Renamed to
3940 x86_linux_teardown_btrace. All uses updated.
3941 (i386_linux_read_btrace): Renamed to
3942 x86_linux_read_btrace. All uses updated.
3944 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3946 * remote.c (extended_remote_post_attach): New function.
3947 (init_extended_remote_ops): Install it as to_post_attach method.
3949 2014-07-09 Pedro Alves <palves@redhat.com>
3951 * infcmd.c (attach_command_post_wait): Don't call
3952 target_terminal_inferior here.
3953 (attach_command): Call it here instead.
3955 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3957 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3959 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3960 from varobj.c, with additional checks.
3961 (c_varobj_ops): Fill in is_path_expr_parent field.
3962 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3963 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3965 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3967 (varobj_default_is_path_expr_parent): New function.
3968 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3969 (varobj_default_is_path_expr_parent): Declare new function.
3971 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3973 * infcmd.c (finish_backward): Turn internal error into normal error.
3975 2014-07-07 Pedro Alves <palves@redhat.com>
3978 * remote.c (async_handle_remote_sigint)
3979 (async_handle_remote_sigint_twice): Call
3980 gdb_call_async_signal_handler instead of
3981 mark_async_signal_handler.
3983 2014-07-07 Tom Tromey <tromey@redhat.com>
3985 * target-delegates.c: Rebuild.
3986 * target.c (target_info_record): Remove.
3987 * record.c (info_record_command): Unconditionally call
3989 * target.h (struct target_ops) <to_info_record>: Use
3990 TARGET_DEFAULT_IGNORE.
3991 (target_info_record): Remove.
3993 2014-07-07 Tom Tromey <tromey@redhat.com>
3995 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3996 TARGET_DEFAULT_NORETURN.
3997 * target.c (generic_tls_error): New function.
3998 (target_translate_tls_address): Don't search target stack.
3999 * target-delegates.c: Rebuild.
4000 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4002 * linux-thread-db.c (thread_db_get_thread_local_address):
4003 Unconditionally call beneath target.
4005 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4007 * cli/cli-logging.c (pop_output_files): Assign targerr to
4010 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4012 * MAINTAINERS (Write After Approval): Update my email address.
4014 2014-07-02 Gary Benson <gbenson@redhat.com>
4016 * proc-service.c (ps_xfer_memory): Update comment.
4017 (ps_pstop): Remove unused function.
4018 (ps_pcontinue): Likewise.
4019 (ps_lstop): Likewise.
4020 (ps_lcontinue): Likewise.
4021 (ps_lgetxregsize): Likewise.
4022 (ps_lgetxregs): Likewise.
4023 (ps_lsetxregs): Likewise.
4024 (ps_plog): Likewise.
4025 (ps_ptread): Likewise.
4026 (ps_ptwrite): Likewise.
4028 2014-07-01 Mark Wielaard <mjw@redhat.com>
4030 * dwarf2read.c (add_array_cv_type): New function.
4031 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4032 (read_tag_volatile_type): Likewise.
4034 2014-07-01 Tom Tromey <tromey@redhat.com>
4036 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4037 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4038 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4039 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4040 * command.h (cmd_cfunc_ftype): Move earlier.
4041 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4042 (add_com, add_info): Use cmd_cfunc_ftype.
4044 2014-06-30 Tom Tromey <tromey@redhat.com>
4046 * symtab.c (operator_chars): Make parameters and return type
4048 (file_matches): Make "files" const.
4049 (struct search_symbols_data) <files>: Now const.
4050 (search_symbols): Make "regexp" and "files" parameters const.
4052 (symtab_symbol_info): Remove cast.
4053 (rbreak_command): Update.
4054 * symtab.h (search_symbols): Update.
4056 2014-06-27 Yao Qi <yao@codesourcery.com>
4058 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4059 Change parameter type to 'struct thread_info *'. Caller
4061 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4063 * dummy-frame.c (struct dummy_frame_id): New.
4064 (dummy_frame_id_eq): New function.
4065 (struct dummy_frame) <id>: Change its type to 'struct
4067 (dummy_frame_push): Add parameter ptid and save it in
4069 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4071 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4073 (lookup_dummy_frame): Change parameter type to 'struct
4074 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4075 instead of frame_id_eq.
4076 (dummy_frame_pop): Add parameter ptid. Callers updated.
4077 Update comments. Compose dummy_frame_id and pass it to
4079 (dummy_frame_discard): Add parameter ptid.
4080 (dummy_frame_sniffer): Compose dummy_frame_id and call
4081 dummy_frame_id_eq instead of frame_id_eq.
4082 (fprint_dummy_frames): Print ptid.
4083 * dummy-frame.h: Remove comments.
4084 (dummy_frame_push): Add ptid in declaration.
4085 (dummy_frame_pop, dummy_frame_discard): Likewise.
4087 2014-06-26 Tom Tromey <tromey@redhat.com>
4089 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4090 * command.h (error_no_arg): Update.
4092 2014-06-26 Tom Tromey <tromey@redhat.com>
4094 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4095 (do_show_command): Make "arg" const.
4096 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4098 2014-06-26 Tom Tromey <tromey@redhat.com>
4100 * record-full.c (record_full_get_bookmark): Make "args" const.
4101 (record_full_goto_bookmark): Make "raw_bookmark" const.
4102 * record.c (record_goto): New function.
4103 (cmd_record_goto): Use it. Now static.
4104 * record.h (record_goto): Declare.
4105 (cmd_record_goto): Remove declaration.
4106 * target-delegates.c: Rebuild.
4107 * target.h (struct target_ops) <to_get_bookmark,
4108 to_goto_bookmark>: Make parameter const.
4110 2014-06-26 Tom Tromey <tromey@redhat.com>
4112 * defs.h (generic_load): Update.
4113 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4114 * monitor.c (monitor_load): Make "args" const.
4115 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4116 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4118 (mips_load): Make "file" const.
4119 * remote-sim.c (gdbsim_load): Make "args" const.
4120 * remote.c (remote_load): Make "name" const.
4121 * symfile.c (generic_load): Make "args" const.
4122 * target-delegates.c: Rebuild.
4123 * target.c (target_load): Make "arg" const.
4124 (debug_to_load): Make "args" const.
4125 * target.h (struct target_ops) <to_load>: Make parameter const.
4126 (target_load): Update.
4128 2014-06-26 Tom Tromey <tromey@redhat.com>
4131 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4132 (dwarf2_physname, read_partial_die)
4133 (guess_partial_die_structure_name, fixup_partial_die)
4134 (guess_full_die_structure_name, anonymous_struct_prefix)
4135 (dwarf2_name): Use per-BFD obstack.
4137 2014-06-26 Yao Qi <yao@codesourcery.com>
4139 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4140 dummyframe and this_id into inner block below.
4142 2014-06-26 Yao Qi <yao@codesourcery.com>
4144 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4145 with "signal_pass[0]" in the initialization of signal_pass.
4147 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4149 * record-btrace.c (record_btrace_generating_corefile)
4150 (record_btrace_prepare_to_generate_core)
4151 (record_btrace_done_generating_core): New.
4152 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4153 (record_btrace_store_registers, record_btrace_prepare_to_store):
4154 Forward request when generating a core file.
4155 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4156 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4157 to_done_generating_core.
4159 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4161 * target.h (target_ops) <to_prepare_to_generate_core>
4162 <to_done_generating_core>: New.
4163 (target_prepare_to_generate_core, target_done_generating_core): New.
4164 * target.c (target_prepare_to_generate_core)
4165 (target_done_generating_core): New.
4166 * target-delegates.c: Regenerate.
4167 * gcore.c: (write_gcore_file): Rename to ...
4168 (write_gcore_file_1): ...this.
4169 (write_gcore_file): Call target_prepare_to_generate_core
4170 and target_done_generating_core.
4172 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4174 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4175 * gcore.c (write_gcore_file): Free memory returned from
4176 make_corefile_notes.
4177 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4178 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4180 2014-06-24 Yao Qi <yao@codesourcery.com>
4182 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4183 (arm_linux_init_abi): Set skip_trampoline_code with
4184 gdbarch_skip_trampoline_code instead of
4185 find_solib_trampoline_target.
4187 2014-06-24 Yao Qi <yao@codesourcery.com>
4189 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4190 arm_skip_bx_reg returns non-zero.
4192 2014-06-24 Yao Qi <yao@codesourcery.com>
4194 * arm-tdep.c (arm_skip_bx_reg): New function.
4195 (arm_skip_stub): Call arm_skip_bx_reg.
4197 2014-06-23 Don Breazeal <donb@codesourcery.com>
4199 * MAINTAINERS: Add myself as write-after-approval maintainer.
4201 2014-06-23 Pedro Alves <palves@redhat.com>
4203 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4204 DR_CONTROL before setting DR0..DR3.
4205 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4206 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4207 bits of DR_CONTROL related to the debug register slot being
4208 disabled. If all slots are vacant, clear local slowdown as well,
4209 and assert DR_CONTROL is 0.
4211 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4213 * python/lib/gdb/command/xmethods.py
4214 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4215 current progspace only if the string "progspace" matches LOCUS_RE.
4217 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4219 Fix --with-system-readline with readline-6.3 patch 5.
4220 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4221 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4224 2014-06-20 Tom Tromey <tromey@redhat.com>
4226 * dwarf2read.c (dw2_get_real_path): Use correct type in
4228 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4230 2014-06-20 Gary Benson <gbenson@redhat.com>
4232 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4233 * common/glibc_thread_db.h: Likewise.
4234 * common/i386-cpuid.h: Likewise.
4235 * common/i386-gcc-cpuid.h: Likewise.
4236 * common/linux-btrace.h: Likewise.
4237 * common/linux-osdata.h: Likewise.
4238 * common/linux-procfs.h: Likewise.
4239 * common/linux-ptrace.h: Likewise.
4240 * common/mips-linux-watch.h: Likewise.
4241 * common/linux-btrace.c: Moved to nat.
4242 * common/linux-osdata.c: Likewise.
4243 * common/linux-procfs.c: Likewise.
4244 * common/linux-ptrace.c: Likewise.
4245 * common/mips-linux-watch.c: Likewise.
4246 * nat/gdb_thread_db.h: Moved from common.
4247 * nat/glibc_thread_db.h: Likewise.
4248 * nat/i386-cpuid.h: Likewise.
4249 * nat/i386-gcc-cpuid.h: Likewise.
4250 * nat/linux-btrace.c: Likewise.
4251 * nat/linux-btrace.h: Likewise.
4252 * nat/linux-osdata.c: Likewise.
4253 * nat/linux-osdata.h: Likewise.
4254 * nat/linux-procfs.c: Likewise.
4255 * nat/linux-procfs.h: Likewise.
4256 * nat/linux-ptrace.c: Likewise.
4257 * nat/linux-ptrace.h: Likewise.
4258 * nat/mips-linux-watch.c: Likewise.
4259 * nat/mips-linux-watch.h: Likewise.
4260 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4261 (object file files): Reordered.
4262 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4263 of glibc_thread_db.h.
4265 2014-06-20 Gary Benson <gbenson@redhat.com>
4267 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4268 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4269 (i386_dr_low): Likewise.
4270 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4271 (i386_dr_low_set_addr): Likewise.
4272 (i386_dr_low_get_addr): Likewise.
4273 (i386_dr_low_can_set_control): Likewise.
4274 (i386_dr_low_set_control): Likewise.
4275 (i386_dr_low_get_control): Likewise.
4276 (i386_dr_low_get_status): Likewise.
4277 (i386_get_debug_register_length): Likewise.
4278 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4279 (i386_dr_low): Likewise.
4280 * nat/i386-dregs.c (i386-low.h): Remove include.
4281 (i386-nat.h): Likewise.
4282 (nat/i386-dregs.h): New include.
4283 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4284 (i386_dr_low_set_addr): Likewise.
4285 (i386_dr_low_get_addr): Likewise.
4286 (i386_dr_low_can_set_control): Likewise.
4287 (i386_dr_low_set_control): Likewise.
4288 (i386_dr_low_get_control): Likewise.
4289 (i386_dr_low_get_status): Likewise.
4290 (i386_get_debug_register_length): Likewise.
4291 (debug_hw_points): Likewise.
4293 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4295 * Makefile.in (SFILES): Add d-exp.y.
4296 (YYFILES): Add d-exp.c.
4297 (YYOBJ): Add d-exp.o.
4298 (local-maintainer-clean): Delete d-exp.c.
4299 * d-exp.y: New file.
4300 * d-lang.h (d_parse): New declaration.
4301 (d_error): New declaration.
4302 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4303 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4304 PREC_ORDER operators.
4305 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4307 2014-06-19 Yao Qi <yao@codesourcery.com>
4309 * gdbthread.h (any_running): Remove the declaration.
4310 * thread.c (any_running): Remove.
4312 2014-06-19 Yao Qi <yao@codesourcery.com>
4314 * gdbthread.h (struct thread_info) <state>: Change its type to
4315 'enum thread_state'. Update comments.
4317 2014-06-19 Pedro Alves <palves@redhat.com>
4319 * gdbthread.h (ALL_THREADS): Delete.
4320 (ALL_NON_EXITED_THREADS): New macro.
4321 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4322 instead of ALL_THREADS.
4323 * infrun.c (find_thread_needs_step_over)
4324 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4325 instead of ALL_THREADS.
4326 * record-btrace.c (record_btrace_open)
4327 (record_btrace_stop_recording, record_btrace_close)
4328 (record_btrace_is_replaying, record_btrace_resume)
4329 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4330 * remote.c (append_pending_thread_resumptions): Likewise.
4331 * thread.c (thread_apply_all_command): Likewise.
4333 2014-06-19 Gary Benson <gbenson@redhat.com>
4335 * i386-nat.c (i386_stopped_by_watchpoint):
4336 Use i386_dr_stopped_by_watchpoint.
4337 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4338 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4340 2014-06-19 Gary Benson <gbenson@redhat.com>
4342 * nat/i386-dregs.c: New file.
4343 * Makefile.in (i386-dregs.o): New rule.
4344 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4345 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4346 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4347 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4348 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4349 * config/i386/go32.mh (NATDEPFILES): Likewise.
4350 * config/i386/linux.mh (NATDEPFILES): Likewise.
4351 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4352 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4353 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4354 * i386-nat.h (debug_hw_points): New declaration.
4355 * i386-nat.c (breakpoint.h): Remove include.
4356 (command.h): Likewise.
4357 (target.h): Likewise.
4358 (gdb_assert.h): Likewise.
4359 (debug_hw_points): Made nonstatic.
4360 (debug_printf): Now in i386-dregs.c.
4361 (TARGET_HAS_DR_LEN_8): Likewise.
4362 (DR_CONTROL_SHIFT): Likewise.
4363 (DR_CONTROL_SIZE): Likewise.
4364 (DR_RW_EXECUTE): Likewise.
4365 (DR_RW_WRITE): Likewise.
4366 (DR_RW_READ): Likewise.
4367 (DR_RW_IORW): Likewise.
4368 (DR_LEN_1): Likewise.
4369 (DR_LEN_2): Likewise.
4370 (DR_LEN_4): Likewise.
4371 (DR_LEN_8): Likewise.
4372 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4373 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4374 (DR_ENABLE_SIZE): Likewise.
4375 (DR_LOCAL_SLOWDOWN): Likewise.
4376 (DR_GLOBAL_SLOWDOWN): Likewise.
4377 (DR_CONTROL_RESERVED): Likewise.
4378 (I386_DR_CONTROL_MASK): Likewise.
4379 (I386_DR_VACANT): Likewise.
4380 (I386_DR_LOCAL_ENABLE): Likewise.
4381 (I386_DR_GLOBAL_ENABLE): Likewise.
4382 (I386_DR_DISABLE): Likewise.
4383 (I386_DR_SET_RW_LEN): Likewise.
4384 (I386_DR_GET_RW_LEN): Likewise.
4385 (I386_DR_WATCH_HIT): Likewise.
4386 (i386_wp_op_t): Likewise.
4387 (i386_show_dr): Likewise.
4388 (i386_length_and_rw_bits): Likewise.
4389 (i386_insert_aligned_watchpoint): Likewise.
4390 (i386_remove_aligned_watchpoint): Likewise.
4391 (i386_handle_nonaligned_watchpoint): Likewise.
4392 (i386_update_inferior_debug_regs): Likewise.
4393 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4394 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4395 (i386_region_ok_for_watchpoint):
4396 Use i386_dr_region_ok_for_watchpoint.
4397 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4399 2014-06-19 Gary Benson <gbenson@redhat.com>
4401 * i386-nat.c (i386_insert_hw_breakpoint): Use
4402 i386_insert_watchpoint.
4403 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4405 2014-06-19 Gary Benson <gbenson@redhat.com>
4407 * i386-nat.c (i386_dr_show): Renamed to
4408 i386_show_dr and made static. All uses updated.
4409 (i386_dr_length_and_rw_bits): Renamed to
4410 i386_length_and_rw_bits and made static.
4412 (i386_dr_insert_aligned_watchpoint): Renamed to
4413 i386_insert_aligned_watchpoint and made static.
4415 (i386_dr_remove_aligned_watchpoint): Renamed to
4416 i386_remove_aligned_watchpoint and made static.
4418 (i386_dr_update_inferior_debug_regs): Renamed to
4419 i386_update_inferior_debug_regs and made static.
4421 * nat/i386-dregs.h (i386_dr_show): Removed.
4422 (i386_dr_length_and_rw_bits): Likewise.
4423 (i386_dr_insert_aligned_watchpoint): Likewise.
4424 (i386_dr_remove_aligned_watchpoint): Likewise.
4425 (i386_dr_update_inferior_debug_regs): Likewise.
4427 2014-06-19 Gary Benson <gbenson@redhat.com>
4429 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4430 * configure: Regenerate.
4431 * config.in: Likewise.
4432 * main.c (signal.h): New include.
4433 (setup_alternate_signal_stack): New function.
4434 (captured_main): Call the above.
4435 * cp-support.c (signal.h): New include.
4436 (catch_demangler_crashes): New flag.
4437 (SIGJMP_BUF): New define.
4438 (SIGSETJMP): Likewise.
4439 (SIGLONGJMP): Likewise.
4440 (gdb_demangle_jmp_buf): New static global.
4441 (gdb_demangle_attempt_core_dump): Likewise.
4442 (gdb_demangle_signal_handler): New function.
4443 (gdb_demangle): If catch_demangler_crashes is set, install the
4444 above signal handler before calling bfd_demangle, and restore
4445 the original signal handler afterwards. Display the offending
4446 symbol and call demangler_warning the first time a segmentation
4448 (_initialize_cp_support): New maint set/show command.
4450 2014-06-19 Gary Benson <gbenson@redhat.com>
4452 * utils.h (resource_limit_kind): New enum.
4453 (can_dump_core): New declaration.
4454 (warn_cant_dump_core): Likewise.
4455 (dump_core): Likewise.
4456 * utils.c (dump_core): Made nonstatic. Added new
4457 parameter "limit_kind".
4458 (can_dump_core): Made nonstatic. Moved printing code to...
4459 (warn_cant_dump_core): New function.
4460 (can_dump_core_warn): Likewise.
4461 (internal_vproblem): Replace calls to can_dump_core with
4462 calls to can_dump_core_warn. Supply new argument to each.
4464 2014-06-19 Gary Benson <gbenson@redhat.com>
4466 * utils.h (demangler_vwarning): New declaration.
4467 (demangler_warning): Likewise.
4468 * utils.c (struct internal_problem)
4469 <user_settable_should_quit>: New field.
4470 <user_settable_should_dump_core>: Likewise
4471 (internal_error_problem): Add values for above new fields.
4472 (internal_warning_problem): Likewise.
4473 (demangler_warning_problem): New static global.
4474 (demangler_vwarning): New function.
4475 (demangler_warning): Likewise.
4476 (add_internal_problem_command): Selectively add commands.
4477 (_initialize_utils): New internal problem command.
4478 * maint.c (maintenance_demangler_warning): New function.
4479 (_initialize_maint_cmds): New command.
4481 2014-06-18 Tom Tromey <tromey@redhat.com>
4483 * f-valprint.c (info_common_command_for_block): Update.
4484 * symtab.h (struct general_symbol_info) <common_block>: Now
4487 2014-06-18 Tom Tromey <tromey@redhat.com>
4489 * symtab.h (struct symtab) <blockvector>: Now const.
4490 * ada-lang.c (ada_add_global_exceptions): Update.
4491 * buildsym.c (augment_type_symtab): Update.
4492 * dwarf2read.c (dw2_lookup_symbol): Update.
4493 * jit.c (finalize_symtab): Update.
4494 * jv-lang.c (add_class_symtab_symbol): Update.
4495 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4497 * objfiles.c (objfile_relocate1): Update.
4498 * psymtab.c (lookup_symbol_aux_psymtabs)
4499 (maintenance_check_psymtabs): Update.
4500 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4502 * spu-tdep.c (spu_catch_start): Update.
4503 * symmisc.c (dump_symtab_1): Update.
4504 * symtab.c (lookup_global_symbol_from_objfile)
4505 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4506 (basic_lookup_transparent_type_quick)
4507 (basic_lookup_transparent_type, find_pc_sect_symtab)
4508 (find_pc_sect_line, search_symbols): Update.
4509 * block.c (find_block_in_blockvector): Make "bl" const.
4510 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4512 (blockvector_contains_pc): Make "bv" const.
4513 (block_for_pc_sect): Update.
4514 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4515 (blockvector_contains_pc): Update.
4516 * breakpoint.c (resolve_sal_pc): Update.
4517 * inline-frame.c (block_starting_point_at): Update.
4519 2014-06-18 Tom Tromey <tromey@redhat.com>
4521 * completer.c (complete_line): Make "line_buffer" const.
4522 * completer.h (complete_line): Update.
4524 2014-06-18 Tom Tromey <tromey@redhat.com>
4526 * symtab.c (add_macro_name): Remove unneeded cast.
4528 2014-06-18 Tom Tromey <tromey@redhat.com>
4530 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4531 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4533 2014-06-18 Tom Tromey <tromey@redhat.com>
4535 * probe.c (info_probes_for_ops): Make "arg" const.
4536 * probe.h (info_probes_for_ops): Update.
4538 2014-06-18 Tom Tromey <tromey@redhat.com>
4540 * varobj.c (varobj_create): Update.
4541 * valops.c (value_of_this): Update.
4542 * tracepoint.c (add_local_symbols, scope_info): Update.
4543 * symtab.h (struct general_symbol_info) <block>: Now const.
4544 * symtab.c (skip_prologue_sal)
4545 (default_make_symbol_completion_list_break_on)
4546 (skip_prologue_using_sal): Update.
4547 * stack.h (iterate_over_block_locals)
4548 (iterate_over_block_local_vars): Update.
4549 * stack.c (print_frame_args): Update.
4550 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4552 (get_selected_block): Make return type const.
4553 * python/py-frame.c (frapy_block): Update.
4554 * python/py-block.c (gdbpy_block_for_pc): Update.
4555 * p-exp.y (%union) <bval>: Now const.
4556 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4557 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4558 * m2-exp.y (%union) <bval>: Now const.
4559 * linespec.c (get_current_search_block): Make return type const.
4560 (create_sals_line_offset, find_label_symbols): Update.
4561 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4563 (block_starting_point_at): Make "block" const.
4564 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4565 (check_exception_resume): Update.
4566 * guile/scm-frame.c (gdbscm_frame_block): Update.
4567 * guile/scm-block.c (gdbscm_lookup_block): Update.
4568 * frame.h (get_frame_block): Update.
4569 (get_selected_block): Make return type const.
4570 * frame.c (frame_id_inner): Update.
4571 * f-valprint.c (info_common_command_for_block)
4572 (info_common_command): Update.
4573 * dwarf2loc.c (dwarf2_find_location_expression)
4574 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4575 (locexpr_describe_location_piece): Update.
4576 * c-exp.y (%union) <bval>: Now const.
4577 * breakpoint.c (resolve_sal_pc): Update.
4578 * blockframe.c (get_frame_block):Make return type const.
4579 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4580 (block_innermost_frame): Update.
4581 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4582 (block_for_pc, block_for_pc_sect): Update.
4583 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4585 (block_for_pc_sect, block_for_pc): Make return type const.
4586 * ax-gdb.c (gen_expr): Update.
4587 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4588 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4589 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4590 (ada_read_var_value): Update.
4591 * ada-exp.y (struct name_info) <block>: Now const.
4593 (block_lookup): Constify.
4595 2014-06-18 Gary Benson <gbenson@redhat.com>
4597 * nat/i386-dregs.h: New file.
4598 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4599 * i386-nat.h (i386-dregs.h): New include.
4600 (DR_FIRSTADDR): Now in i386-dregs.h.
4601 (DR_LASTADDR): Likewise.
4602 (DR_NADDR): Likewise.
4603 (DR_STATUS): Likewise.
4604 (DR_CONTROL): Likewise.
4605 (i386_debug_reg_state): Likewise.
4606 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4608 2014-06-18 Don Breazeal <donb@codesourcery.com>
4610 * breakpoint.c (set_longjmp_breakpoint): Call
4611 momentary_breakpoint_from_master with additional argument.
4612 (set_longjmp_breakpoint_for_call_dummy): Call
4613 momentary_breakpoint_from_master with additional argument.
4614 (set_std_terminate_breakpoint): Call
4615 momentary_breakpoint_from_master with additional argument.
4616 (momentary_breakpoint_from_master): Add argument to function
4617 definition and use it to initialize structure member flag.
4618 (clone_momentary_breakpoint): Call
4619 momentary_breakpoint_from_master with additional argument.
4620 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4621 member flags set in momentary_breakpoint_from_master.
4623 2014-06-18 Gary Benson <gbenson@redhat.com>
4625 * i386-nat.c (i386_show_dr): Renamed to
4626 i386_dr_show and made nonstatic. All uses updated.
4627 (i386_length_and_rw_bits): Renamed to
4628 i386_dr_length_and_rw_bits and made nonstatic.
4630 (i386_insert_aligned_watchpoint): Renamed to
4631 i386_dr_insert_aligned_watchpoint and made nonstatic.
4633 (i386_remove_aligned_watchpoint): Renamed to
4634 i386_dr_remove_aligned_watchpoint and made nonstatic.
4636 (i386_update_inferior_debug_regs): Renamed to
4637 i386_dr_update_inferior_debug_regs and made nonstatic.
4640 2014-06-18 Gary Benson <gbenson@redhat.com>
4642 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4643 (i386_dr_low_can_set_control): Likewise.
4644 (i386_dr_low_set_addr): Likewise.
4645 (i386_dr_low_set_control): Likewise.
4646 (i386_dr_low_get_addr): Likewise.
4647 (i386_dr_low_get_status): Likewise.
4648 (i386_dr_low_get_control): Likewise.
4649 (i386_insert_aligned_watchpoint): Use new macros.
4650 (i386_update_inferior_debug_regs): Likewise.
4651 (i386_stopped_data_address): Likewise.
4653 2014-06-18 Gary Benson <gbenson@redhat.com>
4655 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4656 New parameter. All uses updated.
4658 2014-06-18 Gary Benson <gbenson@redhat.com>
4660 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4663 2014-06-18 Gary Benson <gbenson@redhat.com>
4665 * i386-nat.c (debug_printf): New macro.
4666 (i386_get_debug_register_length): Likewise.
4667 (TARGET_HAS_DR_LEN_8): Use above macro.
4668 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4669 and printf_unfiltered. Use phex to format values.
4671 2014-06-18 Gary Benson <gbenson@redhat.com>
4673 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4676 2014-06-18 Gary Benson <gbenson@redhat.com>
4678 * i386-nat.c: Comment changes.
4680 2014-06-18 Gary Benson <gbenson@redhat.com>
4682 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4684 2014-06-18 Gary Benson <gbenson@redhat.com>
4686 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4687 (i386_insert_aligned_watchpoint): Likewise.
4688 (i386_remove_aligned_watchpoint): Likewise.
4689 (i386_handle_nonaligned_watchpoint): Likewise.
4691 2014-06-18 Gary Benson <gbenson@redhat.com>
4693 * i386-nat.c: Whitespace changes.
4695 2014-06-17 Samuel Bronson <naesten@gmail.com>
4697 * MAINTAINERS: Update Roland McGrath's email address.
4698 Thanks to Sergio Durigan Junior for pointing out that he left
4699 Red Hat a while ago, and giving me a current address.
4701 2014-06-17 Tom Tromey <tromey@redhat.com>
4703 * utils.h (savestring): Remove declaration.
4705 2014-06-17 Tom Tromey <tromey@redhat.com>
4707 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4709 2014-06-16 Keith Seitz <keiths@redhat.com>
4712 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4713 to update the varobj if inferior_ptid is null_ptid.
4715 2014-06-16 Tom Tromey <tromey@redhat.com>
4717 * target.h (struct target_ops) <to_info_proc>: Make parameter
4719 (target_info_proc): Update.
4720 * target.c (target_info_proc): Make "args" const.
4721 * procfs.c (procfs_info_proc): Update.
4722 * linux-tdep.c (linux_info_proc): Update.
4723 (linux_core_info_proc_mappings): Make "args" const.
4724 (linux_core_info_proc): Update.
4725 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4726 * gdbarch.c: Rebuild.
4727 * gdbarch.h: Rebuild.
4728 * corelow.c (core_info_proc): Update.
4730 2014-06-16 Tom Tromey <tromey@redhat.com>
4732 * target.h (struct target_ops) <to_disconnect>: Make parameter
4734 (target_disconnect): Update.
4735 * target.c (target_disconnect): Make "args" const.
4736 * target-delegates.c: Rebuild.
4737 * remote.c (remote_disconnect): Update.
4738 * record.h (record_disconnect): Update.
4739 * record.c (record_disconnect): Update.
4740 * inf-child.c (inf_child_disconnect): Update.
4742 2014-06-16 Tom Tromey <tromey@redhat.com>
4744 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4745 * target.c (debug_to_rcmd, default_rcmd): Update.
4746 * target-delegates.c: Rebuild.
4747 * remote.c (remote_rcmd): Update.
4748 * monitor.c (monitor_rcmd): Update.
4750 2014-06-16 Pedro Alves <palves@redhat.com>
4752 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4753 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4754 have OBJF_SHARED set.
4755 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4756 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4757 instead of OBJF_USERLOADED.
4758 * objfiles.h (OBJF_SHARED): Update comment.
4759 (userloaded_objfile_contains_address_p): Rename to ...
4760 (shared_objfile_contains_address_p): ... this, and update
4762 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4764 (remove_symbol_file_command): Skip objfiles that don't have
4767 2014-06-16 Tom Tromey <tromey@redhat.com>
4769 * minsyms.h (prim_record_minimal_symbol)
4770 (prim_record_minimal_symbol_and_info): Update comments.
4772 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4774 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4775 or --without-guile, according to how GDB was built.
4777 2014-06-13 Tom Tromey <tromey@redhat.com>
4779 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4781 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4783 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4785 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4786 help_list.Pass all_commands, not -1, to help_list.
4787 * cli/cli-dump.c (dump_command, append_command)
4788 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4789 (binary_dump_command, binary_append_command): Pass all_commands,
4790 not -1, to help_list.
4791 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4793 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4795 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4797 * top.c (set_history): Pass all_commands, not -1, to help_list.
4798 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4799 all_commands, not -1, to help_list.
4800 * symfile.c (overlay_command): Pass all_commands, not -1, to
4802 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4804 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4806 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4808 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4809 not -1, to help_list.
4810 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4811 not -1, to help_list.
4812 * maint.c (maintenance_command, maintenance_info_command)
4813 (maintenance_print_command, maintenance_set_cmd): Pass
4814 all_commands, not -1, to help_list.
4815 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4817 * language.c (set_check): Pass all_commands, not -1, to help_list.
4818 * infcmd.c (unset_command): Pass all_commands, not -1, to
4820 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4822 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4824 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4826 * breakpoint.c (save_command): Pass all_commands, not -1, to
4828 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4829 all_commands, not -1, to help_list.
4831 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4833 * regcache.c (struct register_to_invalidate): New structure.
4834 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4836 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4838 2014-06-12 Yao Qi <yao@codesourcery.com>
4840 * varobj.c (varobj_get_num_children): Call
4841 varobj_is_dynamic_p.
4842 (varobj_list_children): Likewise.
4843 (varobj_update): Likewise. Update comments.
4845 2014-06-12 Yao Qi <yao@codesourcery.com>
4847 * varobj.c (varobj_pretty_printed_p): Rename to ...
4848 (varobj_is_dynamic_p): ... this. New function.
4849 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4850 (varobj_is_dynamic_p): Declare.
4851 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4852 (mi_print_value_p, varobj_update_one): Likewise.
4854 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4855 Yao Qi <yao@codesourcery.com>
4857 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4858 (varobj_get_iterator): Wrap up code for pretty-printer by
4859 "#if HAVE_PYTHON" and "#endif".
4860 (update_dynamic_varobj_children): Likewise.
4862 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4863 Yao Qi <yao@codesourcery.com>
4865 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4866 gdb_python_initialized is false. Move some code from varobj.c.
4867 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4868 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4869 (struct varobj_item): Moved to varobj-iter.h".
4870 (varobj_clear_saved_item): New function.
4871 (update_dynamic_varobj_children): Move python-related code to
4873 (free_variable): Call varobj_clear_saved_item and
4876 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4877 Yao Qi <yao@codesourcery.com>
4879 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4880 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4881 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4882 (py-varobj.o): New rule.
4883 * python/py-varobj.c: New file.
4884 * python/python-internal.h (py_varobj_get_iterator): Declare.
4885 * varobj-iter.h: New file.
4886 * varobj.c: Include "varobj-iter.h"
4887 (struct varobj) <child_iter>: Change its type from "PyObject *"
4888 to "struct varobj_iter *".
4889 <saved_item>: Likewise.
4890 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4891 [HAVE_PYTHON] (varobj_get_iterator): New function.
4892 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4893 python-specific code to python/py-varobj.c.
4894 (install_visualizer): Call varobj_iter_delete instead of
4896 * varobj.h (varobj_ensure_python_env): Declare.
4898 2014-06-12 Yao Qi <yao@codesourcery.com>
4900 * varobj.c (struct varobj_item): New structure.
4901 (create_child_with_value): Update declaration.
4902 (varobj_add_child): Replace arguments 'name' and 'value' with
4903 'item'. All callers updated.
4904 (install_dynamic_child): Likewise.
4905 (update_dynamic_varobj_children): Likewise.
4906 (varobj_add_child): Likewise.
4907 (create_child_with_value): Likewise.
4909 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4911 * NEWS: Create a new section for the next release branch.
4912 Rename the section of the current branch, now that it has
4915 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4917 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4918 * version.in: Bump version to 7.8.50.DATE-cvs.
4920 2014-06-11 Pedro Alves <palves@redhat.com>
4923 * ser-mingw.c (net_windows_socket_check_pending): New function.
4924 (net_windows_select_thread): Ignore spurious wakeups. Use
4925 net_windows_socket_check_pending.
4926 (net_windows_wait_handle): Check for pending events with
4927 ioctlsocket, through net_windows_socket_check_pending, instead of
4928 checking the socket's event.
4930 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4932 * python/python-internal.h (gdb_PyObject_GetAttrString)
4933 (gdb_PyObject_HasAttrString): New inline function definitions.
4934 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4935 char * of the second argument to PyObject_GetAttrString.
4937 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4939 * serial.c (serial_write): Fix index of character to be printed
4940 in call to serial_logchar when serial debug traces are enabled.
4942 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4944 * gdbtypes (resolve_dynamic_range): Add function description.
4946 2014-06-09 Pedro Alves <palves@redhat.com>
4948 * linux-nat.c (linux_child_follow_fork): Initialize status with
4949 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4950 inner block. Only pass the signal to PTRACE_DETACH if in pass
4953 2014-06-09 Gary Benson <gbenson@redhat.com>
4955 * common/signals.c (gdb_signal_from_host): Reorder to separate
4956 the always-available ANSI-standard signals from the signals that
4958 (do_gdb_signal_to_host): Likewise.
4959 * proc-events.c (signal_table): Likewise.
4961 2014-06-08 Hui Zhu <hui@codesourcery.com>
4963 * common/linux-ptrace.c (linux_disable_event_reporting): New
4965 * common/linux-ptrace.h (linux_disable_event_reporting): New
4967 * linux-nat.c (linux_child_follow_fork): Do a single step before
4970 2014-06-07 Keith Seitz <keiths@redhat.com>
4974 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4975 from symbol_matches_domain in symtab.c. All local callers
4976 of symbol_matches_domain updated.
4977 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4978 search STRUCT_DOMAIN.
4979 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4980 independently. standard_lookup will do that automatically.
4981 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4982 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4983 (cp_lookup_symbol_in_namespace): Likewise.
4984 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4985 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4986 may return a STRUCT_DOMAIN match.
4987 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4988 * cp-support.c: Include language.h.
4989 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4991 * psymtab.c (match_partial_symbol): Compare the requested
4992 domain with the symbol's domain directly.
4993 (lookup_partial_symbol): Likewise.
4994 * symtab.c (lookup_symbol_in_language): Explain when/why
4995 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4996 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4997 appropriate languages.
4998 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4999 and moved to ada-lang.c
5000 (lookup_block_symbol): Explain that this function only returns
5001 symbol matching the requested DOMAIN.
5002 Compare the requested domain with the symbol's domain directly.
5003 (iterate_over_symbols): Compare the requested domain with the
5004 symbol's domain directly.
5005 * symtab.h (symbol_matches_domain): Remove.
5007 2014-06-06 Doug Evans <xdje42@gmail.com>
5009 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5010 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5011 (gdbscm_guile_version_is_at_least): Declare.
5012 (gdbscm_scm_string_to_int): Declare.
5013 * guile/guile.c (gdbscm_guile_major_version): New global.
5014 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5015 (guile_datadir): New static global.
5016 (gdbscm_guile_data_directory): New function.
5017 (initialize_scheme_side): Update.
5018 (misc_guile_functions): Add guile-data-directory.
5019 (initialize_gdb_module): Fetch guile version number.
5020 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5021 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5022 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5023 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5025 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5026 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5027 * guile/scm-value.c (gdbscm_value_to_string): Only call
5028 scm_port_conversion_strategy if Guile version >= 2.0.6.
5030 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5032 * main.c (print_gdb_help): Add -q and --silent.
5034 2014-06-06 Gary Benson <gbenson@redhat.com>
5036 * common/signals.c: Remove preprocessor conditionals for
5037 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5038 SIGSEGV and SIGTERM.
5039 * proc-events.c: Likewise.
5041 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5043 * symfile.c (symfile_free_objfile): Remove restriction to
5045 * symfile-mem.c (symbol_file_add_from_memory): Call
5046 add_target_sections_of_objfile.
5048 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5050 * guile/scm-value.c (gdbscm_history_append_x): Use
5051 'vlscm_get_value_smob_arg_unsafe' instead of
5052 'vlscm_scm_to_value'.
5054 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5057 * utils.c (printchar): Don't escape at all if quoter is NUL.
5058 Update function documentation to clarify effect of parameter
5060 * remote.c (escape_buffer): Pass '\\' as the quoter to
5061 fputstrn_unfiltered.
5062 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5063 generate the output.
5064 (mi_solib_unloaded): Same.
5066 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5068 * development.sh: Delete.
5069 * Makefile.in (config.status): Adjust dependency on development.sh.
5070 * configure.ac: Adjust development.sh source call.
5071 * configure: Regenerate.
5073 2014-06-04 Doug Evans <xdje42@gmail.com>
5075 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5076 is_scheme_bkpt, spec.
5077 (bpscm_make_breakpoint_smob): Initialize new members.
5078 (gdbscm_create_breakpoint_x): Split into two ...
5079 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5080 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5081 (scheme_function breakpoint_functions): Update.
5082 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5083 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5084 register-breakpoint!.
5086 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5089 * mem-break.c (z_type_supported): Return zero if
5090 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5092 2014-06-04 Tom Tromey <tromey@redhat.com>
5094 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5095 value_from_contents_and_address_unresolved.
5096 (ada_template_to_fixed_record_type_1): Likewise.
5097 (ada_which_variant_applies): Likewise.
5098 * value.h (value_from_contents_and_address_unresolved): Declare.
5099 * value.c (value_from_contents_and_address_unresolved): New
5101 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5102 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5103 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5105 2014-06-04 Tom Tromey <tromey@redhat.com>
5107 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5109 2014-06-04 Tom Tromey <tromey@redhat.com>
5111 * procfs.c (procfs_attach): Make "args" const.
5112 * windows-nat.c (windows_attach): Make "args" const.
5113 * nto-procfs.c (procfs_attach): Make "args" const.
5114 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5115 * go32-nat.c (go32_attach): Make "args" const.
5116 * gnu-nat.c (gnu_attach): Make "args" const.
5117 * darwin-nat.c (darwin_attach): Make "args" const.
5118 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5119 * linux-nat.c (linux_nat_attach): Make "args" const.
5120 * remote.c (extended_remote_attach_1, extended_remote_attach):
5122 * target.h (struct target_ops) <to_attach>: Make "args" const.
5123 (find_default_attach): Likewise.
5124 * utils.c (parse_pid_to_attach): Make "args" const.
5125 * utils.h (parse_pid_to_attach): Update.
5127 2014-06-04 Tom Tromey <tromey@redhat.com>
5129 * target-delegates.c: Rebuild.
5130 * target.c (default_thread_address_space): New function.
5131 (target_thread_address_space): Simplify.
5132 * target.h (struct target_ops) <to_thread_address_space>: Add
5133 TARGET_DEFAULT_FUNC.
5135 2014-06-04 Doug Evans <xdje42@gmail.com>
5137 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5139 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5141 * record-btrace.c: Include event-loop.h and inf-loop.h.
5142 (record_btrace_resume_exec_dir)
5143 (record_btrace_async_inferior_event_handler)
5144 (record_btrace_handle_async_inferior_event): New.
5145 (record_btrace_open): Create async event handler.
5146 (record_btrace_close): Delete async event handler.
5147 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5148 Mark async event handler.
5149 (record_btrace_execution_direction): New.
5150 (init_record_btrace_ops): Initialize to_execution_direction.
5152 2014-06-03 Doug Evans <xdje42@gmail.com>
5154 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5155 (gdbscm_make_parameter): Ditto.
5157 2014-06-03 Doug Evans <dje@google.com>
5159 * exec.c (exec_close_1): Call clear_section_table instead of
5160 resize_section_table.
5161 (clear_section_table): New function.
5162 (resize_section_table): Make static. Rename arg num_added to
5164 * exec.h (clear_section_table): Declare.
5165 (resize_section_table): Delete.
5166 * progspace.c (release_program_space): Call clear_section_table
5167 instead of resize_section_table.
5169 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5171 * NEWS (Python Scripting): Add entry about the new xmethods
5174 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5176 * python/py-xmethods.c: New file.
5177 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5178 (objfpy_dealloc): XDECREF on the new xmethods field.
5179 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5181 (objfpy_get_xmethods): New function.
5182 (objfile_getset): New entry 'xmethods'.
5183 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5184 (pspy_dealloc): XDECREF on the new xmethods field.
5185 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5187 (pspy_get_xmethods): New function.
5188 (pspace_getset): New entry 'xmethods'.
5189 * python/python-internal.h: Add declarations for new functions.
5190 * python/python.c (_initialize_python): Invoke
5191 gdbpy_initialize_xmethods.
5192 * python/lib/gdb/__init__.py (xmethods): New
5194 * python/lib/gdb/xmethod.py: New file.
5195 * python/lib/gdb/command/xmethods.py: New file.
5197 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5199 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5200 best match method returned by find_overload_match is an xmethod.
5201 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5202 the best matching operator returned by find_overload_match is an
5204 * valops.c: #include "extension.h".
5205 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5206 Return void. The list of matching source methods is returned in
5207 "fn_list" and a vector of matching debug method workers is
5208 returned in "xm_worker_vec". Update all callers.
5209 (value_find_oload_method_list): Likewise.
5210 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5211 non-NULL, then the index of the best matching method in this
5212 vector is returned. Update all callers.
5213 (find_overload_match): Include xmethods while performing overload
5216 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5218 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5219 * extension-priv.h (struct extension_language_ops): Add the
5221 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5222 get_matching_xmethod_workers, get_xmethod_argtypes,
5223 invoke_xmethod, free_xmethod_worker,
5224 free_xmethod_worker_vec): New functions.
5225 * extension.h: #include "common/vec.h".
5226 New function declarations.
5227 (struct xmethod_worker): New struct.
5228 (VEC (xmethod_worker_ptr)): New vector type.
5229 (xmethod_worker_ptr): New typedef.
5230 (xmethod_worker_vec): Likewise.
5231 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5233 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5234 (struct builtin_type): New field "xmethod".
5235 * valarith.c (value_ptradd): Assert that the value argument is not
5237 * valops.c (value_must_coerce_to_target): Return 0 for
5238 lval_xcallable values.
5239 * value.c (struct value): New field XM_WORKER in the field
5241 (value_address, value_raw_address): Return 0 for lval_xcallable
5243 (set_value_address): Assert that the value is not an
5245 (value_free): Free the associated xmethod worker when freeing
5246 lval_xcallable values.
5247 (set_value_component_location): Assert that the WHOLE value is not
5249 (value_of_xmethod, call_xmethod): New functions.
5250 * value.h: Declare "struct xmethod_worker".
5251 Declare new functions value_of_xmethod, call_xmethod.
5253 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5254 Pedro Alves <palves@redhat.com>
5256 PR breakpoints/17000
5257 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5258 New function, extracted from software_breakpoint_inserted_here_p.
5259 (software_breakpoint_inserted_here_p): Replace factored out code
5260 by call to find_non_raw_software_breakpoint_inserted_here.
5261 (bp_target_info_copy_insertion_state): New function.
5262 (bkpt_insert_location): Handle the case of a single-step
5263 breakpoint already inserted at the same address.
5264 (bkpt_remove_location): Handle the case of a single-step
5265 breakpoint still inserted at the same address.
5266 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5267 breakpoint already inserted at the same address.
5268 (deprecated_remove_raw_breakpoint): Handle the case of a
5269 non-raw breakpoint still inserted at the same address.
5270 (find_single_step_breakpoint): New function, extracted from
5271 single_step_breakpoint_inserted_here_p.
5272 (find_single_step_breakpoint): New function,
5273 factored out from single_step_breakpoint_inserted_here_p.
5274 (single_step_breakpoint_inserted_here_p): Reimplement.
5276 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5278 Pushed by Joel Brobecker <brobecker@adacore.com>
5279 * source.c (show_substitute_path_command): Fix display of matching
5282 2014-06-03 Gary Benson <gbenson@redhat.com>
5284 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5286 2014-06-02 Doug Evans <xdje42@gmail.com>
5288 Add parameter support for Guile.
5289 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5290 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5291 (scm-param.o): New rule.
5292 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5293 (gdbscm_misc_error): Declare.
5294 (gdbscm_canonicalize_command_name): Declare.
5295 (gdbscm_scm_to_host_string): Declare.
5296 (gdbscm_scm_from_host_string): Declare.
5297 (gdbscm_initialize_parameters): Declare.
5298 * guile/guile.c (initialize_gdb_module): Call
5299 gdbscm_initialize_parameters.
5300 * guile/lib/gdb.scm: Export parameter symbols.
5301 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5302 cmdscm_canonicalize_name and made public. All callers updated.
5303 * guile/scm-exception.c (gdbscm_misc_error): New function.
5304 * guile/scm-param.c: New file.
5305 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5306 (gdbscm_scm_to_host_string): New function.
5307 (gdbscm_scm_from_host_string): New function.
5308 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5310 2014-06-02 Doug Evans <xdje42@gmail.com>
5312 Add command support for Guile.
5313 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5314 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5315 (scm-cmd.o): New rule.
5316 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5317 (gdbscm_user_error_p): Declare.
5318 (gdbscm_parse_command_name): Declare.
5319 (gdbscm_valid_command_class_p): Declare.
5320 (gdbscm_initialize_commands): Declare.
5321 * guile/guile.c (initialize_gdb_module): Call
5322 gdbscm_initialize_commands.
5323 * guile/lib/gdb.scm: Export command symbols.
5324 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5325 (throw-user-error): New function.
5326 * guile/scm-cmd.c: New file.
5327 * guile/scm-exception.c (user_error_symbol): New static global.
5328 (gdbscm_user_error_p): New function.
5329 (gdbscm_initialize_exceptions): Set user_error_symbol.
5330 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5332 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5334 * top.c (command_loop): Handle comments here...
5335 (command_line_input): ... not here.
5337 2014-06-02 Doug Evans <xdje42@gmail.com>
5339 Add progspace support for Guile.
5340 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5341 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5342 (scm-progspace.o): New rule.
5343 * guile/guile-internal.h (pspace_smob): New typedef.
5344 (psscm_pspace_smob_pretty_printers): Declare.
5345 (psscm_pspace_smob_from_pspace): Declare.
5346 (psscm_scm_from_pspace): Declare.
5347 * guile/guile.c (initialize_gdb_module): Call
5348 gdbscm_initialize_pspaces.
5349 * guile/lib/gdb.scm: Export progspace symbols.
5350 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5352 (append-pretty-printer!): Ditto.
5353 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5355 * guile/scm-progspace.c: New file.
5357 2014-06-03 Alan Modra <amodra@gmail.com>
5359 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5360 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5362 2014-06-02 Doug Evans <dje@google.com>
5364 Add support for skeletonless type units.
5365 * dwarf2read.c (struct dwarf2_per_objfile): New member
5366 n_allocated_type_units.
5367 (struct dwarf2_per_objfile) <tu_stats>: New member
5368 nr_all_type_units_reallocs.
5369 (create_signatured_type_table_from_index): Initialize
5370 n_allocated_type_units
5371 (create_all_type_units): Ditto.
5372 (add_type_unit): Move up in file. New arg slot.
5373 All callers updated. Increase space for all_type_units more
5375 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5376 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5377 (lookup_dwp_signatured_type): Ditto.
5378 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5379 All callers updated.
5380 (build_type_psymtabs_1): Leave type_unit_groups as
5381 NULL if no TUs present.
5382 (print_tu_stats): New function.
5383 (process_skeletonless_type_unit): New function.
5384 (process_dwo_file_for_skeletonless_type_units): New
5386 (process_skeletonless_type_units): New function.
5387 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5388 Call print tu_stats if debugging enabled.
5390 2014-06-02 Pedro Alves <palves@redhat.com>
5392 * breakpoint.c (build_target_command_list): Don't build a command
5393 list if we have any duplicate location that isn't a dprintf.
5395 2014-06-02 Pedro Alves <palves@redhat.com>
5397 * breakpoint.c (dprintf_breakpoint_hit): New function.
5398 (initialize_breakpoint_ops): Install it as dprintf's
5399 breakpoint_hit method.
5401 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5403 * source.c (substitute_path_rule_matches): Simplify using
5404 filename_ncmp instead of FILENAME_CMP.
5406 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5408 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5410 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5412 * configure.ac: When Guile is available, check for the
5413 availability of 'scm_new_smob'.
5414 * configure, config.h.in: Regenerate.
5415 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5418 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5420 * frame.c (struct frame_info): Add stop_string field.
5421 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5422 (get_prev_frame_always): Old content moved into
5423 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5424 TRY_CATCH, handle MEMORY_ERROR exceptions.
5425 (frame_stop_reason_string): New function definition.
5426 * frame.h (unwind_stop_reason_to_string): Extend comment to
5427 mention frame_stop_reason_string.
5428 (frame_stop_reason_string): New function declaration.
5429 * stack.c (frame_info): Switch to frame_stop_reason_string.
5430 (backtrace_command_1): Switch to frame_stop_reason_string.
5431 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5432 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5433 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5435 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5437 * frame.c (frame_stop_reason_string): Rename to ...
5438 (unwind_stop_reason_to_string): this.
5439 * frame.h (frame_stop_reason_string): Rename to ...
5440 (unwind_stop_reason_to_string): this.
5441 * stack.c (frame_info): Update call to frame_stop_reason_string.
5442 (backtrace_command_1): Likewise.
5443 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5444 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5446 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5448 * frame.c (remove_prev_frame): New function.
5449 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5452 2014-05-29 Pedro Alves <palves@redhat.com>
5454 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5455 and make it const. When a single-step decays to a continue,
5456 clear 'step', not 'hw_step'. Pass whether the caller wanted
5457 to step to user_visible_resume_ptid, not what we ask the
5460 2014-05-29 Pedro Alves <palves@redhat.com>
5462 * infrun.c (process_event_stop_test, handle_step_into_function)
5463 (handle_step_into_function_backward): Adjust.
5464 Don't set the even thread's stop_step and call stop_waiting before
5465 calling end_stepping_range. Instead do that ...
5466 (end_stepping_range): ... here. Take an ecs pointer parameter.
5468 2014-05-29 Pedro Alves <palves@redhat.com>
5470 * infrun.c (stop_stepping): Rename to ...
5471 (stop_waiting): ... this.
5472 (proceed): Update comment.
5473 (process_event_stop_test, handle_inferior_event)
5474 (handle_signal_stop, handle_step_into_function)
5475 (handle_step_into_function_backward): Update.
5477 2014-05-29 Pedro Alves <palves@redhat.com>
5479 * infcall.c (run_inferior_call): Don't check whether the current
5480 thread is running after the proceed call.
5482 2014-05-29 Pedro Alves <palves@redhat.com>
5483 Tom Tromey <tromey@redhat.com>
5485 * NEWS: Mention "maint set target-async", "set mi-async", and that
5486 background execution commands are now always available.
5487 * target.h (target_async_permitted): Update comment.
5488 * target.c (target_async_permitted, target_async_permitted_1):
5490 (set_target_async_command): Rename to ...
5491 (maint_set_target_async_command): ... this.
5492 (show_target_async_command): Rename to ...
5493 (maint_show_target_async_command): ... this.
5494 (_initialize_target): Adjust.
5495 * infcmd.c (prepare_execution_command): Make extern.
5496 * inferior.h (prepare_execution_command): Declare.
5497 * infrun.c (set_observer_mode): Leave target async alone.
5498 * mi/mi-interp.c (mi_interpreter_init): Install
5499 mi_on_sync_execution_done as sync_execution_done observer.
5500 (mi_on_sync_execution_done): New function.
5501 (mi_execute_command_input_handler): Don't print the prompt if we
5502 just started a synchronous command with an async target.
5503 (mi_on_resume): Check sync_execution before printing prompt.
5504 * mi/mi-main.h (mi_async_p): Declare.
5505 * mi/mi-main.c: Include gdbcmd.h.
5506 (mi_async_p): New function.
5507 (mi_async, mi_async_1): New globals.
5508 (set_mi_async_command, show_mi_async_command, mi_async): New
5510 (exec_continue): Call prepare_execution_command.
5511 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5512 (mi_execute_async_cli_command): Use mi_async_p.
5513 (_initialize_mi_main): Install "set mi-async". Make
5514 "target-async" a deprecated alias.
5516 2014-05-29 Pedro Alves <palves@redhat.com>
5518 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5519 (_initialize_cli_interp): Adjust.
5520 * event-loop.c: Include "observer.h".
5521 (start_event_loop): Notify 'command_error' observers instead of
5522 calling display_gdb_prompt. Remove FIXME comment.
5523 * event-top.c (display_gdb_prompt): Remove call into the
5525 * inf-loop.c: Include "observer.h".
5526 (inferior_event_handler): Notify 'command_error' observers instead
5527 of calling display_gdb_prompt.
5528 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5529 observers instead of calling display_gdb_prompt.
5530 * interps.c (interp_set): Don't call display_gdb_prompt.
5531 (current_interp_display_prompt_p): Delete.
5532 * interps.h (interp_prompt_p): Delete declaration.
5533 (interp_prompt_p_ftype): Delete.
5534 (struct interp_procs) <prompt_proc_p>: Delete field.
5535 (current_interp_display_prompt_p): Delete declaration.
5536 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5537 (_initialize_mi_interp): Adjust.
5538 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5539 'command_error' observers.
5540 (tui_on_sync_execution_done, tui_on_command_error): New
5542 (tui_display_prompt_p): Delete.
5543 (_initialize_tui_interp): Adjust.
5545 2014-05-29 Pedro Alves <palves@redhat.com>
5548 * cli/cli-interp.c: Include infrun.h and observer.h.
5549 (cli_uiout, cli_interp): New globals.
5550 (cli_on_signal_received, cli_on_end_stepping_range)
5551 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5553 (cli_interpreter_init): Install them as 'end_stepping_range',
5554 'signal_received' 'signal_exited', 'exited' and 'no_history'
5556 (_initialize_cli_interp): Remove cli_interp local.
5557 * infrun.c (handle_inferior_event): Call the several stop reason
5558 observers instead of printing the stop reason directly.
5559 (end_stepping_range): New function.
5560 (print_end_stepping_range_reason, print_signal_exited_reason)
5561 (print_exited_reason, print_signal_received_reason)
5562 (print_no_history_reason): Make static, and add an uiout
5563 parameter. Print to that instead of to CURRENT_UIOUT.
5564 * infrun.h (print_end_stepping_range_reason)
5565 (print_signal_exited_reason, print_exited_reason)
5566 (print_signal_received_reason print_no_history_reason): New
5568 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5570 <cli_uiout>: New field.
5571 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5572 uiout for CLI output. Install 'signal_received',
5573 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5575 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5576 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5577 (mi_on_no_history): New functions.
5578 (ui_out_free_cleanup): Delete function.
5579 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5580 instead use the one already stored in the MI interpreter data.
5581 (mi_ui_out): Adjust.
5582 * tui/tui-interp.c: Include infrun.h and observer.h.
5583 (tui_interp): New global.
5584 (tui_on_signal_received, tui_on_end_stepping_range)
5585 (tui_on_signal_exited, tui_on_exited)
5586 (tui_on_no_history): New functions.
5587 (tui_init): Install them as 'end_stepping_range',
5588 'signal_received' 'signal_exited', 'exited' and 'no_history'
5590 (_initialize_tui_interp): Delete tui_interp local.
5592 2014-05-29 Pedro Alves <palves@redhat.com>
5595 * linux-nat.c (linux_nat_resume_callback): Rename the second
5596 parameter to 'except'. Skip LP if it points to EXCEPT.
5597 (linux_nat_resume): Don't mark the event lwp as not stopped
5598 before resuming sibling lwps. Instead ask
5599 linux_nat_resume_callback to skip the event lwp. Mark it as not
5600 stopped after actually resuming it.
5601 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5603 (wait_lwp): Mark the lwp as stopped here.
5604 (stop_wait_callback): Mark the lwp as not stopped right after
5605 resuming it. Don't mark lwps as stopped here.
5606 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5607 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5609 2014-05-29 Pedro Alves <palves@redhat.com>
5612 * infrun.c (resume): Determine how much to resume depending on
5613 whether the caller wanted a step, not whether we can hardware step
5614 the target. Mark all threads that we intend to run as running,
5615 unless we're calling an inferior function.
5616 (normal_stop): If the thread is running an infcall, don't finish
5618 * target.c (target_resume): Don't mark threads as running here.
5620 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5622 * serial.c (_initialize_serial): Remove support for
5623 the "set remotebaud" and "show remotebaud" commands.
5624 * NEWS: Add entry documenting the removal of that command.
5626 2014-05-28 Yao Qi <yao@codesourcery.com>
5628 * charset.c: Fix typo in comments.
5630 2014-05-27 Gary Benson <gbenson@redhat.com>
5632 * utils.c (internal_vproblem): Prompt for a bug report.
5634 2014-05-26 Andy Wingo <wingo@igalia.com>
5636 * guile/scm-arch.c (arscm_mark_arch_smob):
5637 * guile/scm-block.c (bkscm_mark_block_smob)
5638 (bkscm_mark_block_syms_progress_smob):
5639 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5640 * guile/scm-exception.c (exscm_mark_exception_smob):
5641 * guile/scm-frame.c (frscm_mark_frame_smob):
5642 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5643 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5644 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5645 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5646 (ppscm_mark_pretty_printer_worker_smob):
5647 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5648 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5649 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5650 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5652 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5655 2014-05-26 Andy Wingo <wingo@igalia.com>
5656 Doug Evans <xdje42@gmail.com>
5658 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5659 empty_base_class. All uses updated.
5660 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5661 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5663 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5664 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5665 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5666 (gdbscm_gsmob_has_property_p, add_property_name)
5667 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5668 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5669 (gdb-object-has-property?, gdb-object-properties): Remove.
5670 (gdb-object-kind): Renamed from gsmob-kind.
5672 2014-05-26 Andy Wingo <wingo@igalia.com>
5674 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5675 * configure: Regenerate.
5677 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5679 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5681 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5683 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5684 (replay_memory_access_read_only, replay_memory_access_read_write)
5685 (replay_memory_access_types, replay_memory_access)
5686 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5687 (cmd_set_record_btrace, cmd_show_record_btrace)
5688 (cmd_show_replay_memory_access): New.
5689 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5690 (record_btrace_remove_breakpoint): Replace
5691 record_btrace_allow_memory_access with replay_memory_access.
5692 (_initialize_record_btrace): Add commands.
5693 * NEWS: Announce it.
5695 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5697 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5699 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5701 * MAINTAINERS (Write After Approval): Move self back from
5704 2014-05-22 Pedro Alves <palves@redhat.com>
5706 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5707 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5708 (disable_randomization, enum exec_direction_kind)
5709 (execution_direction, stop_registers, start_remote)
5710 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5711 (wait_for_inferior, normal_stop, get_last_target_status)
5712 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5713 (insert_step_resume_breakpoint_at_sal)
5714 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5715 (set_step_info, print_stop_event, signal_stop_state)
5716 (signal_print_state, signal_pass_state, signal_stop_update)
5717 (signal_print_update, signal_pass_update)
5718 (update_signals_program_target, clear_exit_convenience_vars)
5719 (displaced_step_dump_bytes, update_observer_mode)
5720 (signal_catch_update, gdb_signal_from_command): Move
5722 * infrun.h: ... to this new file.
5723 * amd64-tdep.c: Include infrun.h.
5724 * annotate.c: Include infrun.h.
5725 * arch-utils.c: Include infrun.h.
5726 * arm-linux-tdep.c: Include infrun.h.
5727 * arm-tdep.c: Include infrun.h.
5728 * break-catch-sig.c: Include infrun.h.
5729 * breakpoint.c: Include infrun.h.
5730 * common/agent.c: Include infrun.h instead of inferior.h.
5731 * corelow.c: Include infrun.h.
5732 * event-top.c: Include infrun.h.
5733 * go32-nat.c: Include infrun.h.
5734 * i386-tdep.c: Include infrun.h.
5735 * inf-loop.c: Include infrun.h.
5736 * infcall.c: Include infrun.h.
5737 * infcmd.c: Include infrun.h.
5738 * infrun.c: Include infrun.h.
5739 * linux-fork.c: Include infrun.h.
5740 * linux-nat.c: Include infrun.h.
5741 * linux-thread-db.c: Include infrun.h.
5742 * monitor.c: Include infrun.h.
5743 * nto-tdep.c: Include infrun.h.
5744 * procfs.c: Include infrun.h.
5745 * record-btrace.c: Include infrun.h.
5746 * record-full.c: Include infrun.h.
5747 * remote-m32r-sdi.c: Include infrun.h.
5748 * remote-mips.c: Include infrun.h.
5749 * remote-notif.c: Include infrun.h.
5750 * remote-sim.c: Include infrun.h.
5751 * remote.c: Include infrun.h.
5752 * reverse.c: Include infrun.h.
5753 * rs6000-tdep.c: Include infrun.h.
5754 * s390-linux-tdep.c: Include infrun.h.
5755 * solib-irix.c: Include infrun.h.
5756 * solib-osf.c: Include infrun.h.
5757 * solib-svr4.c: Include infrun.h.
5758 * target.c: Include infrun.h.
5759 * top.c: Include infrun.h.
5760 * windows-nat.c: Include infrun.h.
5761 * mi/mi-interp.c: Include infrun.h.
5762 * mi/mi-main.c: Include infrun.h.
5763 * python/py-threadevent.c: Include infrun.h.
5765 2014-05-22 Pedro Alves <palves@redhat.com>
5767 * infrun.c (handle_inferior_event): Store the exit code for
5768 --return-child-result here, instead of ...
5769 (print_exited_reason): ... here.
5771 2014-05-21 Pedro Alves <palves@redhat.com>
5774 * gdbthread.h (struct thread_control_state): New field
5776 * infrun.c (follow_fork): Copy the new thread control field to the
5778 (clear_proceed_status_thread): Clear the new thread control field.
5779 (proceed): Set the new thread control field.
5780 * interps.h (command_interp): Declare.
5781 * interps.c (command_interpreter): New global.
5782 (command_interp): New function.
5783 (interp_exec): Set `command_interpreter' while here.
5784 * cli-out.c (cli_uiout_dtor): New function.
5785 (cli_ui_out_impl): Install it.
5786 * mi/mi-interp.c: Include cli-out.h.
5787 (mi_cmd_interpreter_exec): Add comment.
5788 (restore_current_uiout_cleanup): New function.
5789 (ui_out_free_cleanup): New function.
5790 (mi_on_normal_stop): If finishing an execution command started by
5791 a CLI command, or any kind of breakpoint-like event triggered,
5792 print the stop event to the output (CLI) stream.
5793 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5795 2014-05-21 Pedro Alves <palves@redhat.com>
5797 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5798 current source line having changed.
5799 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5800 * infrun.c (normal_stop): Adjust call to
5801 set_current_sal_from_frame.
5802 * source.c (clear_lines_listed_range): New function.
5803 (set_current_source_symtab_and_line, identify_source_line): Clear
5804 the lines listed range.
5805 (line_info): Handle the first "info line" after the current source
5806 line having changed.
5807 * stack.c (print_stack_frame): Remove center handling.
5808 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5811 2014-05-21 Pedro Alves <palves@redhat.com>
5813 * inf-child.c (inf_child_mourn_inferior): New function.
5814 * inf-child.h (inf_child_mourn_inferior): New declaration.
5815 * darwin-nat.c (darwin_mourn_inferior): Use
5816 inf_child_mourn_inferior.
5817 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5818 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5819 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5820 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5821 * windows-nat.c (windows_mourn_inferior): Likewise.
5823 2014-05-21 Doug Evans <xdje42@gmail.com>
5825 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5827 2014-05-21 Doug Evans <xdje42@gmail.com>
5829 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5830 (gdbscm_out_of_range_error): Ditto.
5831 (gdbscm_memory_error): Ditto.
5832 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5833 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5834 (gdbscm_out_of_range_error): Update.
5835 (gdbscm_memory_error): Update.
5836 (gdbscm_scm_to_target_string_unsafe): Delete.
5838 2014-05-21 Pedro Alves <palves@redhat.com>
5840 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5842 (inf_child_open_target): New function.
5843 (inf_child_open): Use inf_child_open_target to push the target
5844 instead of erroring out.
5845 (inf_child_disconnect, inf_child_close)
5846 (inf_child_maybe_unpush_target): New functions.
5847 (inf_child_target): Install inf_child_disconnect and
5848 inf_child_close. Store a pointer to the returned object.
5849 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5851 * target.c (auto_connect_native_target): New global.
5852 (show_default_run_target): New function.
5853 (find_default_run_target): Return NULL if automatically connecting
5854 to the native target is disabled.
5855 (_initialize_target): Install set/show auto-connect-native-target.
5856 * NEWS: Mention "set auto-connect-native-target", and "target
5858 * linux-nat.c (super_close): New global.
5859 (linux_nat_close): Call super_close.
5860 (linux_nat_add_target): Store a pointer to the base class's
5862 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5863 inf_child_maybe_unpush.
5864 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5866 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5867 the inferior. Use inf_child_maybe_unpush_target.
5868 (inf_ttrace_attach): Don't push the target if it is already
5870 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5871 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5872 after mourning the inferior. Use inf_child_maybe_unpush_target.
5873 (darwin_attach_pid): Don't push the target if it is already
5875 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5876 mourning the inferior. Use inf_child_maybe_unpush_target.
5877 (gnu_detach): Use inf_child_maybe_unpush_target.
5878 * go32-nat.c (go32_create_inferior): Don't push the target if it
5880 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5881 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5882 (procfs_open): Rename to ...
5883 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5884 comments. Can target_preopen before changing node. Call
5885 inf_child_open_target to push the target explicitly.
5886 (procfs_attach): Don't push the target if it is already pushed.
5887 (procfs_detach): Use inf_child_maybe_unpush_target.
5888 (procfs_create_inferior): Don't push the target if it is already
5890 (nto_native_ops): New global.
5891 (procfs_open): Reimplement.
5892 (procfs_native_open): New function.
5893 (init_procfs_targets): Install procfs_native_open as to_open of
5894 "target native". Store a pointer to the "native" target in
5896 * procfs.c (procfs_attach): Don't push the target if it is already
5898 (procfs_detach): Use inf_child_maybe_unpush_target.
5899 (procfs_mourn_inferior): Only unpush the target after mourning the
5900 inferior. Use inf_child_maybe_unpush_target.
5901 (procfs_init_inferior): Don't push the target if it is already
5903 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5904 if it is already pushed.
5906 2014-05-21 Pedro Alves <palves@redhat.com>
5908 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5909 and "procfs" targets are now called "native" instead.
5911 2014-05-21 Pedro Alves <palves@redhat.com>
5913 * go32-nat.c (go32_open): Delete.
5914 (go32_target): Don't override the to_open method.
5916 2014-05-21 Pedro Alves <palves@redhat.com>
5918 * nto-procfs.c (procfs_can_run): New function.
5919 (nto_procfs_ops): New global.
5920 (init_procfs_targets): New, based on procfs_target. Install
5921 "target native" in addition to "target procfs".
5922 (_initialize_procfs): Call init_procfs_targets instead of adding
5925 2014-05-21 Pedro Alves <palves@redhat.com>
5927 * windows-nat.c (windows_target): Don't override to_shortname,
5928 to_longname or to_doc.
5930 2014-05-21 Pedro Alves <palves@redhat.com>
5932 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5935 2014-05-21 Pedro Alves <palves@redhat.com>
5937 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5938 to_shortname, to_longname or to_doc.
5940 2014-05-21 Pedro Alves <palves@redhat.com>
5942 * go32-nat.c (go32_target): Don't override to_shortname,
5943 to_longname or to_doc.
5945 2014-05-21 Pedro Alves <palves@redhat.com>
5947 * inf-child.c (inf_child_open): Remove mention of "child".
5948 (inf_child_target): Rename target to "native" instead of "child".
5950 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5952 * Makefile.in (SFILES): Delete "regset.c".
5953 (COMMON_OBS): Delete "regset.o".
5955 * regset.h (regset_alloc): Delete prototype.
5957 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5959 * sparc-linux-tdep.c (sparc32_linux_gregset)
5960 (sparc32_linux_fpregset): New static regset structures.
5961 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5962 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5964 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5965 (sparc64_linux_fpregset): New static regset structures.
5966 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5967 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5968 New static regset structures.
5969 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5970 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5971 New static regset structures.
5972 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5973 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5974 New static regset structures.
5975 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5976 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5977 New static regset structures.
5978 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5980 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5982 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5983 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5984 register maps ("regmaps") from "*regset" to "*regmap". Do this
5985 for all regmap types and variables.
5986 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5987 (sparc32_linux_supply_core_gregset)
5988 (sparc32_linux_collect_core_gregset)
5989 (sparc32_linux_supply_core_fpregset)
5990 (sparc32_linux_collect_core_fpregset): Likewise.
5991 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5992 (sparc_gregmap, sparc_fpregmap): ... these.
5993 (sparc_supply_gregset, sparc_collect_gregset)
5994 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5995 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5996 (_initialize_sparc_nat): Rename regmaps.
5997 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5998 (sparc_gregmap, sparc_fpregmap): ... these.
5999 (sparc_supply_gregset, sparc_collect_gregset)
6000 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6001 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6003 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6004 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6006 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6008 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6009 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6010 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6012 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6013 (sparc32_bsd_fpregset): Rename to...
6014 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6015 (sparc32_bsd_fpregmap): ... these.
6016 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6017 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6018 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6019 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6020 (struct sparc_gregmap, struct sparc_fpregmap)
6021 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6022 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6023 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6024 (sparc32_supply_regset, sparc32_collect_gregset)
6025 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6027 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6028 (sparc64_linux_ptrace_gregmap): ... this.
6029 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6030 (_initialize_sparc64_linux_nat): Rename regmaps.
6031 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6032 (sparc64_linux_core_gregmap): ... this.
6033 (sparc64_linux_supply_core_gregset)
6034 (sparc64_linux_collect_core_gregset)
6035 (sparc64_linux_supply_core_fpregset)
6036 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6037 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6038 (sparc64_sol2_fpregset): Rename to...
6039 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6040 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6041 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6043 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6044 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6045 (sparc64_bsd_fpregset): Rename to...
6046 (struct sparc_gregmap, sparc64_sol2_gregmap)
6047 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6048 (sparc64_bsd_fpregmap): ... these.
6049 (sparc64_supply_gregset, sparc64_collect_gregset)
6050 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6052 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6053 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6054 (sparc64fbsd_gregmap): ... this.
6055 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6056 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6058 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6059 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6060 (sparc64nbsd_collect_fpregset): Likewise.
6061 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6062 (sparc64nbsd_gregmap): ... this.
6063 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6065 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6066 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6067 (sparc64obsd_gregmap): ... this.
6068 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6070 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6071 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6072 (sparc32nbsd_gregmap): ... this.
6073 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6076 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6078 * score-tdep.c (score7_linux_gregset): New static regset
6080 (score7_linux_regset_from_core_section): Remove dynamic regset
6082 (score_gdbarch_init): Drop allocation of tdep structure.
6083 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6085 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6087 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6089 (am33_regset_from_core_section): Remove dynamic regset
6092 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6094 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6095 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6097 (mips_linux_regset_from_core_section): Remove dynamic regset
6099 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6100 'gregset64', 'fpregset', and 'fpregset64'.
6101 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6102 deleted tdep fields.
6104 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6106 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6108 (amd64_regset_from_core_section): Remove dynamic regset
6110 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6112 (amd64obsd_regset_from_core_section): Remove dynamic regset
6114 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6116 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6117 x86-common regset supply function.
6118 * i386-tdep.c (i386_collect_gregset): Make static.
6119 (i386_gregset): New global regset structure.
6120 (i386_fpregset, i386_xstateregset): New static regset structures.
6121 (i386_regset_from_core_section): Remove dynamic regset
6123 (i386_gdbarch_init): Remove initialization of tdep fields
6124 'gregset', 'fpregset', and 'xstateregset'.
6125 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6126 'fpregset', and 'xstateregset'.
6127 (i386_collect_gregset): Remove prototype.
6128 (i386_gregset): New declaration.
6129 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6131 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6134 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6136 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6137 (arm_linux_vfpregset): New static regset structures.
6138 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6140 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6141 and 'vfpregset' fields.
6143 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6145 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6146 (aarch64_linux_fpregset): New static regset structures.
6147 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6148 of regset structures.
6149 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6152 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6154 * regset.h (struct regset): Remove gdbarch field.
6155 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6156 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6157 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6159 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6160 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6161 (ppc32_linux_vsxregset): Likewise.
6162 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6163 via the regcache instead of the regset.
6164 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6165 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6166 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6167 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6170 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6172 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6173 Constify structures.
6174 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6175 (alphanbsd_aout_gregset): Likewise.
6176 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6177 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6179 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6180 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6182 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6183 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6184 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6185 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6186 * m88k-tdep.c (m88k_gregset): Likewise.
6187 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6188 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6189 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6190 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6191 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6192 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6193 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6194 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6195 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6197 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6198 * sh-tdep.h (sh_corefile_gregset): Likewise.
6199 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6200 * vax-tdep.c (vax_gregset): Likewise.
6202 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6204 Fix TLS access for -static -pthread.
6205 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6206 (try_thread_db_load_1): Initialize it.
6207 (thread_db_get_thread_local_address): Call it if LM is zero.
6208 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6209 * target.h (struct target_ops) (to_get_thread_local_address): Add
6210 load_module_addr comment.
6212 2014-05-21 Pedro Alves <palves@redhat.com>
6214 * dcache.c (dcache_read_memory_partial): If reading the cache line
6215 fails, fallback to reading just the memory the caller wanted.
6217 2014-05-20 Doug Evans <dje@google.com>
6219 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6220 instead of get_current_arch.
6222 2014-05-20 Pedro Alves <palves@redhat.com>
6224 * NEWS: Mention that compare-sections now works with all targets.
6226 * remote.c (PACKET_qCRC): New enum value.
6227 (remote_verify_memory): Don't send qCRC if the target has no
6228 execution. Use packet_support/packet_ok. If the target doesn't
6229 support the qCRC packet, fallback to a deep memory copy.
6230 (compare_sections_command): Say "target image" instead of "remote
6232 (_initialize_remote): Add PACKET_qCRC to the list of config
6233 packets that have no associated command. Extend comment.
6234 * target.c (simple_verify_memory, default_verify_memory): New
6236 * target.h (struct target_ops) <to_verify_memory>: Default to
6237 default_verify_memory.
6238 (simple_verify_memory): New declaration.
6239 * target-delegates.c: Regenerate.
6241 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6243 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6245 2014-05-20 Hui Zhu <hui@codesourcery.com>
6246 Yao Qi <yao@codesourcery.com>
6249 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6250 and change address of sp and pc.
6252 2014-05-19 Tom Tromey <tromey@redhat.com>
6254 * gdbtypes.c (rank_function): Use XNEWVEC.
6255 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6257 2014-05-19 Doug Evans <dje@google.com>
6259 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6260 build_type_unit_groups and moved closer to only caller. Remove
6261 arguments. All references updated. Remove outdated .gdb_index
6263 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6264 build_type_psymtabs_1.
6266 2014-05-19 Doug Evans <dje@google.com>
6268 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6269 n_type_unit_groups, all_type_unit_groups. All uses removed.
6270 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6271 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6272 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6273 (add_type_unit_group_to_table): Delete.
6275 2014-05-19 Doug Evans <dje@google.com>
6277 * eval.c (evaluate_subexp_standard): Add some comments.
6279 2014-05-17 Doug Evans <xdje42@gmail.com>
6281 * progspace.c (remove_program_space): Delete, unused.
6282 * progspace.h (remove_program_space): Ditto.
6284 2014-05-17 Doug Evans <xdje42@gmail.com>
6286 * inferior.c (prune_inferiors): Fix comment.
6287 (remove_inferior_command): Call prune_program_spaces.
6289 2014-05-16 Doug Evans <dje@google.com>
6291 New command line option -D.
6293 * main.c (set_gdb_data_directory): New function.
6294 (captured_main): Recognize -D. Flag error for --data-directory "".
6295 Call set_gdb_data_directory.
6296 (print_gdb_help): Print --data-directory, -D.
6297 * main.h (set_gdb_data_directory): Declare.
6298 * top.c (staged_gdb_datadir): New static global.
6299 (set_gdb_datadir): Call set_gdb_data_directory
6300 (show_gdb_datadir): New function.
6301 (init_main): Update init of data-directory parameter.
6303 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6305 Import the "dirfd" gnulib module.
6306 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6307 * gnulib/aclocal.m4: Update.
6308 * gnulib/config.in: Update.
6309 * gnulib/configure: Update.
6310 * gnulib/import/Makefile.am: Update.
6311 * gnulib/import/Makefile.in: Update.
6312 * gnulib/import/dirfd.c: New.
6313 * gnulib/import/m4/dirfd.m4: New.
6314 * gnulib/import/m4/gnulib-cache.m4: Update.
6315 * gnulib/import/m4/gnulib-comp.m4: Update.
6317 2014-05-16 Pierre Muller <muller@sourceware.org>
6318 Yao Qi <yao@codesourcery.com>
6320 * valprint.c (print_wchar): Move the code on checking whether
6321 W is a printable wide char to the default branch of switch
6322 statement below. Call wchar_printable instead of gdb_iswprint.
6324 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6326 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6327 ldr.w and ldrd instructions.
6329 2014-05-15 Doug Evans <dje@google.com>
6331 * dwarf2read.c (read_structure_type): Delete outdated comments.
6333 2014-05-14 Tom Tromey <tromey@redhat.com>
6335 * macrocmd.c (print_macro_definition): Reindent.
6337 2014-05-13 Doug Evans <xdje42@gmail.com>
6339 * python/py-cmd.c (cmdpy_completer): Add comment.
6340 (completers): Make const.
6342 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6344 * infrun.c (resume): Remove should_resume (unused). Move up
6345 declaration of resume_ptid.
6347 2014-05-13 Tom Tromey <tromey@redhat.com>
6349 * language.h (unop_type_check): Remove.
6350 (binop_type_check): Don't declare.
6352 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6354 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6355 call to regcache_raw_collect.
6357 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6359 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6360 mi_console->quote as the quoting character.
6362 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6364 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6366 2014-04-29 Tom Tromey <tromey@redhat.com>
6368 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6369 "show debug varobj".
6371 2014-05-07 Kyle McMartin <kyle@redhat.com>
6373 Pushed by Joel Brobecker <brobecker@adacore.com>.
6374 * aarch64-tdep.c (aarch64_software_single_step): New function.
6375 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6376 with aarch64_software_single_step.
6378 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6382 2014-05-05 Keith Seitz <keiths@redhat.com>
6384 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6385 variable or history value is successfully parsed.
6387 2014-05-05 Yao Qi <yao@codesourcery.com>
6388 Pedro Alves <palves@redhat.com>
6390 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6391 address of blocks that intersects the requested range. Trim
6392 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6394 * ctf.c (ctf_xfer_partial): Likewise.
6396 2014-05-05 Yao Qi <yao@codesourcery.com>
6398 * printcmd.c (display_command): Remove the check to
6399 target_has_execution.
6401 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6403 * ppcobsd-nat.c: Include "obsd-nat.h".
6404 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6406 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6408 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6410 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6411 and 16-bit signed and unsigned arguments. Update comment.
6412 (stap_parse_probe_arguments): Extend code to handle such
6413 arguments. Use warning instead of complaint to notify about
6414 unrecognized bitness.
6416 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6418 PR breakpoints/16889
6419 * stap-probe.c (stap_parse_probe_arguments): Simplify
6420 check for non-prefixed probes (i.e., probes whose
6421 arguments do not start with "N@"). Always set the
6422 argument type to a sane value.
6424 2014-05-01 David Taylor <dtaylor@emc.com>
6426 * remote.c (compare_sections_command): Add -r option to compare
6427 all loadable read-only sections.
6429 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6431 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6432 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6434 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6435 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6436 Remove unused CORE_ADDR argument. Update all callers.
6438 2014-04-29 Pedro Alves <palves@redhat.com>
6440 * remote.c (struct packet_config) <detect>: Extend comment.
6441 (add_packet_config_cmd): Don't set the config's detect or support
6443 (init_all_packet_configs): Also initialize the config's 'detect'
6445 (reset_all_packet_configs_support): New function.
6446 (remote_open_1): Call reset_all_packet_configs_support instead of
6447 init_all_packet_configs.
6448 (_initialize_remote): Initialize all packet configs. Assert that
6449 all packets have an associated command, except a few known
6452 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6454 * dwarf2read.c (read_subrange_type): Handle dynamic
6455 DW_AT_lower_bound attributes.
6457 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6459 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6460 dynamic bounds before computing its upper bound.
6461 (ada_discrete_type_low_bound): Same as above with the lower bound.
6463 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6465 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6466 range types. Adjust the array handling implementation to
6467 take advantage of this change.
6468 (resolve_dynamic_range): New function, mostly extracted from
6469 resolve_dynamic_bounds.
6470 (resolve_dynamic_array): New function, mostly extracted from
6471 resolve_dynamic_bounds.
6472 (resolve_dynamic_bounds): Delete.
6473 (resolve_dynamic_type): Reimplement. Add handling of
6474 TYPE_CODE_RANGE types.
6476 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6478 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6479 handling of parallel ___XA types.
6481 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6483 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6484 unnecessary second call to static_unwrap_type.
6486 2014-04-27 Hui Zhu <hui@codesourcery.com>
6488 * stack.c (print_frame_info): Call do_gdb_disassembly with
6489 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6491 2014-04-26 Doug Evans <xdje42@gmail.com>
6493 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6495 2014-04-25 Pedro Alves <palves@redhat.com>
6498 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6499 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6500 and newline from built string.
6501 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6502 (linux_ptrace_attach_fail_reason): ... this.
6503 * linux-nat.c (linux_nat_attach): Adjust to use
6504 linux_ptrace_attach_fail_reason.
6506 2014-04-25 Pedro Alves <palves@redhat.com>
6508 * remote.c (struct remote_state): Remove multi_process_aware,
6509 non_stop_aware, cond_tracepoints, cond_breakpoints,
6510 breakpoint_commands, fast_tracepoints, static_tracepoints,
6511 install_in_trace, disconnected_tracing,
6512 enable_disable_tracepoints, string_tracing, and
6513 augmented_libraries_svr4_read fields.
6514 (remote_multi_process_p): Move further below in the file.
6515 (struct packet_config): Add comments.
6516 (update_packet_config): Delete function.
6517 (show_packet_config_cmd): Use packet_config_support.
6518 (add_packet_config_cmd): Use NULL as set callback.
6519 (packet_ok): "set remote foo-packet"-style commands no longer
6520 change config->supported -- adjust.
6521 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6522 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6523 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6524 (PACKET_QNonStop, PACKET_multiprocess_feature)
6525 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6526 (PACKET_DisconnectedTracing_feature)
6527 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6528 (set_remote_protocol_packet_cmd): Delete function.
6529 (packet_config_support, packet_support): New functions.
6530 (set_remote_protocol_Z_packet_cmd): Don't call
6531 update_packet_config.
6532 (remote_query_attached, remote_pass_signals)
6533 (remote_program_signals, remote_threads_info)
6534 (remote_threads_extra_info, remote_start_remote): Use
6536 (remote_start_remote): Use packet_config_support and
6538 (init_all_packet_configs): Set all packets to unknown support,
6539 instead of calling update_packet_config.
6540 (remote_check_symbols): Use packet_support.
6541 (remote_supported_packet): Unconditionally set the packet config's
6543 (remote_multi_process_feature, remote_non_stop_feature)
6544 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6545 (remote_breakpoint_commands_feature)
6546 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6547 (remote_install_in_trace_feature)
6548 (remote_disconnected_tracing_feature)
6549 (remote_enable_disable_tracepoint_feature)
6550 (remote_string_tracing_feature)
6551 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6552 (remote_protocol_features): Adjust to use remote_supported_packet
6553 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6554 "ConditionalTracepoints", "ConditionalBreakpoints",
6555 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6556 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6557 "EnableDisableTracepoints", and "tracenz".
6558 (remote_query_supported): Use packet_support.
6559 (remote_open_1): Adjust.
6560 (extended_remote_attach_1): Use packet_support. Switch on the
6561 result of packet_ok instead of checking whether the packet ended
6563 (remote_vcont_resume): Use packet_support.
6564 (remote_resume, remote_stop_ns, fetch_register_using_p)
6565 (remote_prepare_to_store, store_register_using_P)
6566 (check_binary_download, remote_write_bytes): Use packet_support.
6567 (remote_vkill): Use packet_support. Switch on the result of
6568 packet_ok instead of checking whether the packet ended up
6570 (extended_remote_supports_disable_randomization): Use
6572 (extended_remote_run): Switch on the result of packet_ok instead
6573 of checking whether the packet ended up disabled.
6574 (remote_insert_breakpoint, remote_remove_breakpoint)
6575 (remote_insert_watchpoint, remote_remove_watchpoint)
6576 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6578 (remote_search_memory): Use packet_config_support.
6579 (remote_get_thread_local_address, remote_get_tib_address)
6580 (remote_hostio_send_command, remote_can_execute_reverse): Use
6582 (remote_supports_cond_tracepoints)
6583 (remote_supports_cond_breakpoints)
6584 (remote_supports_fast_tracepoints)
6585 (remote_supports_static_tracepoints)
6586 (remote_supports_install_in_trace)
6587 (remote_supports_enable_disable_tracepoint)
6588 (remote_supports_string_tracing)
6589 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6590 the packet config says the feature is enabled or disabled.
6591 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6592 (remote_get_trace_status): Use packet_support.
6593 (remote_set_disconnected_tracing): Adjust to check whether the
6594 feature is enabled with packet_support.
6595 (remote_set_trace_buffer_size, remote_use_agent)
6596 (remote_can_use_agent, remote_supports_btrace): Use
6598 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6599 Use packet_config_support.
6600 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6601 the packet config says the feature is enabled or disabled.
6602 (set_range_stepping): Use packet_support.
6604 2014-04-25 Tom Tromey <tromey@redhat.com>
6606 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6609 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6611 * NEWS: Mention support for C99 variable length arrays.
6613 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6615 * ada-lang.c (standard_exc): Expand introductory comment.
6617 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6618 Walfred Tedeschi <walfred.tedeschi@intel.com>
6620 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6622 (amd64_linux_read_description): Add code to handle AVX512 xstate
6623 mask and return respective tdesc.
6624 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6625 and features/i386/x32-avx512-linux.c.
6626 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6627 (amd64_linux_core_read_description): Add code to handle AVX512
6628 xstate mask and return respective tdesc.
6629 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6630 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6632 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6633 (tdesc_amd64_avx512_linux): New prototype.
6634 (tdesc_x32_avx512_linux): Likewise.
6635 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6636 features/i386/x32-avx512.c.
6637 (amd64_ymm_avx512_names): New register names for pseudo
6639 (amd64_ymmh_avx512_names): New register names for raw registers
6641 (amd64_k_names): New register names for K registers.
6642 (amd64_zmmh_names): New register names for ZMM raw registers.
6643 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6644 (amd64_xmm_avx512_names): New register names for XMM16-31
6646 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6648 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6649 if feature is present.
6650 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6651 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6652 (AMD64_NUM_REGS): Adjust to new number of registers.
6653 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6654 registers supplied via XSTATE by AVX512 registers.
6655 (i386_linux_read_description): Add case for AVX512.
6656 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6657 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6658 (i386_linux_core_read_description): Add case for AVX512.
6659 (i386_linux_init_abi): Install supported register note section
6661 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6663 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6664 registers to be number of zmm7h + 1.
6665 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6666 * i386-tdep.c: Include features/i386/i386-avx512.c.
6667 (i386_zmm_names): Add ZMM pseudo register names array.
6668 (i386_zmmh_names): Add ZMM raw register names array.
6669 (i386_k_names): Add K raw register names array.
6670 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6671 registers. AVX512 has 16 more ZMM registers than there are YMM
6673 (i386_zmmh_regnum_p): Add function to look up register number of
6675 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6676 (i386_k_regnum_p): Likewise for K raw registers.
6677 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6678 registers added by AVX512.
6679 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6680 registers added by AVX512.
6681 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6683 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6684 (i386_pseudo_register_name): Add ZMM pseudo registers.
6685 (i386_zmm_type): Construct and return vector registers type for ZMM
6687 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6688 ZMM0-31 pseudo registers and K registers.
6689 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6690 and YMM16-31 registers from register cache.
6691 (i386_pseudo_register_write): Add code to write K, ZMM and
6693 (i386_register_reggroup_p): Add code to include/exclude AVX512
6694 registers in/from respective register groups.
6695 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6696 registers if feature is present in xcr0.
6697 (i386_gdbarch_init): Add code to initialize AVX512 feature
6698 variables in tdep structure, wire in pseudo registers and call
6699 initialize_tdesc_i386_avx512.
6700 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6702 (i386_regnum): Add AVX512 registers.
6703 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6704 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6705 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6706 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6708 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6709 (i386_ymm_avx512_regnum_p): Likewise.
6710 (i386_k_regnum_p): Likewise.
6711 (i386_zmm_regnum_p): Likewise.
6712 (i386_zmmh_regnum_p): Likewise.
6713 * i387-tdep.c : Update year in copyright notice.
6714 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6716 (XSAVE_YMM_AVX512_ADDR): New macro.
6717 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6719 (XSAVE_XMM_AVX512_ADDR): New macro.
6720 (xsave_avx512_k_offset): New table for K register offsets in
6722 (XSAVE_AVX512_K_ADDR): New macro.
6723 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6725 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6726 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6728 (i387_collect_xsave): Add code to collect AVX512 registers from
6730 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6731 of XMM16-31 registers.
6732 (I387_NUM_K_REGS): New define for number of K registers.
6733 (I387_K0_REGNUM): New define for K0 register number.
6734 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6735 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6736 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6738 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6739 (I387_XMM16_REGNUM): New define for XMM16 register number.
6740 (I387_YMM0_REGNUM): New define for YMM0 register number.
6741 (I387_KEND_REGNUM): New define for last K register number.
6742 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6743 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6745 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6747 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6749 * features/Makefile: Add AVX512 related files.
6750 * features/i386/32bit-avx512.xml: New file.
6751 * features/i386/64bit-avx512.xml: Likewise.
6752 * features/i386/amd64-avx512-linux.c: Likewise.
6753 * features/i386/amd64-avx512-linux.xml: Likewise.
6754 * features/i386/amd64-avx512.c: Likewise.
6755 * features/i386/amd64-avx512.xml: Likewise.
6756 * features/i386/i386-avx512-linux.c: Likewise.
6757 * features/i386/i386-avx512-linux.xml: Likewise.
6758 * features/i386/i386-avx512.c: Likewise.
6759 * features/i386/i386-avx512.xml: Likewise.
6760 * features/i386/x32-avx512-linux.c: Likewise.
6761 * features/i386/x32-avx512-linux.xml: Likewise.
6762 * features/i386/x32-avx512.c: Likewise.
6763 * features/i386/x32-avx512.xml: Likewise.
6764 * regformats/i386/amd64-avx512-linux.dat: New file.
6765 * regformats/i386/amd64-avx512.dat: Likewise.
6766 * regformats/i386/i386-avx512-linux.dat: Likewise.
6767 * regformats/i386/i386-avx512.dat: Likewise.
6768 * regformats/i386/x32-avx512-linux.dat: Likewise.
6769 * regformats/i386/x32-avx512.dat: Likewise.
6770 * NEWS: Add note about new support for AVX512.
6773 2014-04-23 Pedro Alves <palves@redhat.com>
6775 * breakpoint.c (insert_bp_location): Tolerate errors if the
6776 breakpoint is set in a user-loaded objfile.
6777 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6778 location is marked shlib_disabled. If the breakpoint is set in a
6779 user-loaded objfile is a GDB-side memory breakpoint, validate it
6780 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6781 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6783 * mem-break.c (memory_validate_breakpoint): New function.
6784 * objfiles.c (userloaded_objfile_contains_address_p): New
6786 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6787 * target.h (memory_validate_breakpoint): New declaration.
6789 2014-04-23 Pedro Alves <palves@redhat.com>
6791 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6792 the breakpoint is set in a shared library, only suppress
6793 errors for software breakpoints, not hardware breakpoints.
6795 2014-04-22 Pedro Alves <palves@redhat.com>
6797 * infrun.c (schedlock_applies): New function, factored out from
6798 find_thread_needs_step_over.
6799 (find_thread_needs_step_over): Use it.
6800 (switch_back_to_stepped_thread): Always clear trap_expected if the
6801 step over is finished. Return early if scheduler locking applies.
6802 Look for the stepping thread and a potential step-over thread with
6804 (currently_stepping_or_nexting_callback): Delete.
6806 2014-04-22 Nick Clifton <nickc@redhat.com>
6808 * NEWS: Mention that ARM sim now supports tracing.
6810 2014-04-22 Yao Qi <yao@codesourcery.com>
6812 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6814 * tracefile.c (tracefile_fetch_registers): ... it. New
6816 * tracefile.h (tracefile_fetch_registers): Declare.
6817 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6818 tracefile_fetch_registers.
6820 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6823 * windows-nat.c (thread_rec): Don't display a warning when
6824 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6825 fails for any reason, set th->suspended to -1, so that we don't
6826 try to resume such a thread. Also, don't return NULL in these
6827 cases, to avoid completely ruin the session due to "PC register is
6828 not available" error.
6829 (do_windows_fetch_inferior_registers): Check errors in
6830 GetThreadContext call.
6831 (windows_continue): Accept an additional argument KILLED; if not
6832 zero, ignore errors in the SetThreadContext call, since the
6833 inferior was killed and is shutting down.
6834 (windows_resume, get_windows_debug_event)
6835 (windows_create_inferior, windows_mourn_inferior)
6836 (windows_kill_inferior): All callers of windows_continue changed
6837 to adjust to its new calling sequence.
6839 2014-04-19 Yao Qi <yao@codesourcery.com>
6841 * ctf.c (ctf_open): Call post_create_inferior.
6843 2014-04-19 Yao Qi <yao@codesourcery.com>
6845 * ctf.c (handle_id): New static variable.
6846 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6847 value. Get the declaration of event "register" and get length
6848 of field "contents".
6850 2014-04-19 Yao Qi <yao@codesourcery.com>
6852 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6854 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6856 * valops.c (oload_method_static): Remove unnecessary argument
6857 METHOD. Update all callers.
6859 2014-04-18 Pedro alves <palves@redhat.com>
6860 Tom Tromey <tromey@redhat.com>
6863 * frame.c (get_prev_frame_1): Rename to ...
6864 (get_prev_frame_always): ... this, and make extern. Adjust.
6865 (skip_artificial_frames): Use get_prev_frame_always.
6866 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6867 (get_frame_unwind_stop_reason): Adjust to rename.
6868 * frame.h (get_prev_frame_always): Declare.
6869 * inline-frame.c: Include frame.h.
6870 (inline_frame_this_id): Use get_prev_frame_always.
6872 2014-04-18 Tristan Gingold <gingold@adacore.com>
6874 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6875 code by using bfd_mach_o_get_base_address.
6877 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6879 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6880 (spu_ax_pseudo_register_collect): New function.
6881 (spu_ax_pseudo_register_push_stack): Likewise.
6882 (spu_dwarf_reg_to_regnum): Likewise.
6883 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6885 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6887 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6888 Replace FRAME argument with FRAME_ID.
6889 * gdbarch.c, gdbarch.h: Regenerate.
6890 * findvar.c (default_value_from_register): Add GDBARCH argument;
6891 replace FRAME by FRAME_ID. No longer call get_frame_id.
6892 (value_from_register): Update call to gdbarch_value_from_register.
6893 * value.h (default_value_from_register): Update prototype.
6894 * s390-linux-tdep.c (s390_value_from_register): Update interface
6895 and call to default_value_from_register.
6896 * spu-tdep.c (spu_value_from_register): Likewise.
6898 * findvar.c (address_from_register): Remove TYPE argument.
6899 Do not call value_from_register; use gdbarch_value_from_register
6900 with null_frame_id instead.
6901 * value.h (address_from_register): Update prototype.
6902 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6903 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6904 address_from_register interface change.
6906 2014-04-17 Yao Qi <yao@codesourcery.com>
6908 * gdbtypes.h: Update comments to link to types and macros'
6911 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6913 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6915 2014-04-16 Keith Seitz <keiths@redhat.com>
6918 * dwarf2read.c (skip_one_die): Check that all relative-offset
6919 sibling DIEs fall within range of the current reader's buffer.
6920 (read_partial_die): Likewise.
6922 2014-04-16 Keith Seitz <keiths@redhat.com>
6925 * cp-namespace.c (lookup_symbol_file): If the type name of
6926 `this' is NULL, return immediately.
6928 2014-04-14 Keith Seitz <keiths@redhat.com>
6931 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6932 from symbol_matches_domain in symtab.c. All local callers
6933 of symbol_matches_domain updated.
6934 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6935 search STRUCT_DOMAIN.
6936 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6937 independently. standard_lookup will do that automatically.
6938 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6939 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6940 (cp_lookup_symbol_in_namespace): Likewise.
6941 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6942 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6943 may return a STRUCT_DOMAIN match.
6944 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6945 * cp-support.c: Include language.h.
6946 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6948 * psymtab.c (match_partial_symbol): Compare the requested
6949 domain with the symbol's domain directly.
6950 (lookup_partial_symbol): Likewise.
6951 * symtab.c (lookup_symbol_in_language): Explain when/why
6952 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6953 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6954 appropriate languages.
6955 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6956 and moved to ada-lang.c
6957 (lookup_block_symbol): Explain that this function only returns
6958 symbol matching the requested DOMAIN.
6959 Compare the requested domain with the symbol's domain directly.
6960 (iterate_over_symbols): Compare the requested domain with the
6961 symbol's domain directly.
6962 * symtab.h (symbol_matches_domain): Remove.
6964 2014-04-14 Tom Tromey <tromey@redhat.com>
6967 * c-exp.y (type_aggregate_p): New function.
6968 (qualified_name, classify_inner_name): Use it.
6969 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6970 and TYPE_TARGET_TYPE of an enum type.
6971 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6973 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6974 handle TYPE_DECLARED_CLASS.
6975 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6977 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6978 * valops.c (enum_constant_from_type): New function.
6979 (value_aggregate_elt): Use it.
6980 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6983 2014-04-14 Tom Tromey <tromey@redhat.com>
6985 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6986 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6988 * value.h (value_aggregate_elt): Update.
6990 2014-04-14 Tom Tromey <tromey@redhat.com>
6992 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6994 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6996 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6997 (evaluate_subexp_standard): Pass noside argument.
6998 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6999 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7000 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7001 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7002 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7004 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7006 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7007 points to a constant blob.
7009 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7011 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7012 property and store it as the high bound and flag the range accordingly.
7013 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7014 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7015 * gdbtypes.h (enum range_flags): New enum.
7016 (struct range_bounds): Add flags member.
7018 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7020 * c-typeprint.c (c_type_print_varspec_suffix): Added
7021 check for not yet resolved high bound. If unresolved, print
7022 "variable length" string to the console instead of random
7025 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7027 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7029 (ada_template_to_fixed_record_type_1): Likewise.
7030 (ada_to_fixed_type_1): Likewise.
7031 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7032 (cp_print_value): Likewise.
7033 * d-valprint.c (dynamic_array_type): Likewise.
7034 * findvar.c (address_of_variable): Likewise.
7035 * jv-valprint.c (java_value_print): Likewise.
7036 * valops.c (value_ind): Likewise.
7037 * value.c (coerce_ref): Likewise.
7039 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7041 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7042 value and retrieve the dynamic type size.
7044 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7046 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7047 passed to sizeof is dynamic evaluate the argument to compute the length.
7049 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7050 Joel Brobecker <brobecker@adacore.com>
7052 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7053 (dwarf2_evaluate_property): New function.
7054 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7055 * dwarf2read.c (attr_to_dynamic_prop): New function.
7056 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7058 * gdbtypes.c: Include dwarf2loc.h.
7059 (is_dynamic_type): New function.
7060 (resolve_dynamic_type): New function.
7061 (resolve_dynamic_bounds): New function.
7062 (get_type_length): New function.
7063 (check_typedef): Use get_type_length to compute type length.
7064 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7065 (TYPE_LOW_BOUND_KIND): New macro.
7066 (is_dynamic_type): New function prototype.
7067 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7068 to resolve dynamic properties of the type. Update comment.
7069 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7071 2014-04-14 Richard Henderson <rth@redhat.com>
7073 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7075 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7076 Doug Evans <xdje42@gmail.com>
7078 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7079 dereference TYPE_CODE_REF values.
7081 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7083 Revert the following changes due to regressions:
7085 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7086 (dwarf2_evaluate_property): New function.
7087 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7088 * dwarf2read.c (attr_to_dynamic_prop): New function.
7089 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7091 * gdbtypes.c: Include dwarf2loc.h.
7092 (is_dynamic_type): New function.
7093 (resolve_dynamic_type): New function.
7094 (resolve_dynamic_bounds): New function.
7095 (get_type_length): New function.
7096 (check_typedef): Use get_type_length to compute type length.
7097 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7098 (TYPE_LOW_BOUND_KIND): New macro.
7099 (is_dynamic_type): New function prototype.
7100 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7101 to resolve dynamic properties of the type. Update comment.
7102 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7104 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7105 passed to sizeof is dynamic evaluate the argument to compute the length.
7107 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7108 value and retrieve the dynamic type size.
7110 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7111 (ada_template_to_fixed_record_type_1): Likewise.
7112 (ada_to_fixed_type_1): Likewise.
7113 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7114 (cp_print_value): Likewise.
7115 * d-valprint.c (dynamic_array_type): Likewise.
7116 * eval.c (evaluate_subexp_with_coercion): Likewise.
7117 * findvar.c (address_of_variable): Likewise.
7118 * jv-valprint.c (java_value_print): Likewise.
7119 * valops.c (value_ind): Likewise.
7120 * value.c (coerce_ref): Likewise.
7122 * c-typeprint.c (c_type_print_varspec_suffix): Added
7123 check for not yet resolved high bound. If unresolved, print
7124 "variable length" string to the console instead of random
7127 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7128 property and store it as the high bound and flag the range accordingly.
7129 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7130 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7131 * gdbtypes.h (enum range_flags): New enum.
7132 (struct range_bounds): Add flags member.
7134 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7135 points to a constant blob.
7137 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7138 (evaluate_subexp_standard): Pass noside argument.
7139 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7140 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7141 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7142 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7143 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7145 2014-04-11 Keith Seitz <keiths@redhat.com>
7148 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7149 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7152 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7154 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7155 (evaluate_subexp_standard): Pass noside argument.
7156 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7157 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7158 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7159 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7160 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7162 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7164 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7165 points to a constant blob.
7167 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7169 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7170 property and store it as the high bound and flag the range accordingly.
7171 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7172 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7173 * gdbtypes.h (enum range_flags): New enum.
7174 (struct range_bounds): Add flags member.
7176 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7178 * c-typeprint.c (c_type_print_varspec_suffix): Added
7179 check for not yet resolved high bound. If unresolved, print
7180 "variable length" string to the console instead of random
7183 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7185 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7186 (ada_template_to_fixed_record_type_1): Likewise.
7187 (ada_to_fixed_type_1): Likewise.
7188 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7189 (cp_print_value): Likewise.
7190 * d-valprint.c (dynamic_array_type): Likewise.
7191 * eval.c (evaluate_subexp_with_coercion): Likewise.
7192 * findvar.c (address_of_variable): Likewise.
7193 * jv-valprint.c (java_value_print): Likewise.
7194 * valops.c (value_ind): Likewise.
7195 * value.c (coerce_ref): Likewise.
7197 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7199 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7200 value and retrieve the dynamic type size.
7202 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7204 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7205 passed to sizeof is dynamic evaluate the argument to compute the length.
7207 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7209 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7210 (dwarf2_evaluate_property): New function.
7211 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7212 * dwarf2read.c (attr_to_dynamic_prop): New function.
7213 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7215 * gdbtypes.c: Include dwarf2loc.h.
7216 (is_dynamic_type): New function.
7217 (resolve_dynamic_type): New function.
7218 (resolve_dynamic_bounds): New function.
7219 (get_type_length): New function.
7220 (check_typedef): Use get_type_length to compute type length.
7221 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7222 (TYPE_LOW_BOUND_KIND): New macro.
7223 (is_dynamic_type): New function prototype.
7224 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7225 to resolve dynamic properties of the type. Update comment.
7226 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7228 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7230 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7231 declaring high/low bounds and change uses accordingly. Call
7232 create_range_type instead of create_static_range_type.
7233 * gdbtypes.c (create_range_type): New function.
7234 (create_range_type): Convert bounds into struct bound_prop and pass
7235 them to create_range_type.
7236 * gdbtypes.h (struct bound_prop): New struct.
7237 (create_range_type): New function prototype.
7238 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7239 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7240 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7242 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7244 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7246 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7247 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7248 * ada-lang.c: All uses of create_range_type updated.
7249 * coffread.c: All uses of create_range_type updated.
7250 * dwarf2read.c: All uses of create_range_type updated.
7251 * f-exp.y: All uses of create_range_type updated.
7252 * m2-valprint.c: All uses of create_range_type updated.
7253 * mdebugread.c: All uses of create_range_type updated.
7254 * stabsread.c: All uses of create_range_type updated.
7255 * valops.c: All uses of create_range_type updated.
7256 * valprint.c: All uses of create_range_type updated.
7258 2014-04-10 Pedro Alves <palves@redhat.com>
7260 * breakpoint.c (single_step_breakpoints)
7261 (single_step_gdbarch): Move up in the file.
7262 (one_breakpoint_xfer_memory): New function, factored out from ...
7263 (breakpoint_xfer_memory): ... here. Also process single-step
7266 2014-04-09 Tristan Gingold <gingold@adacore.com>
7268 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7270 (darwin_decode_exception_message): Free port only after use.
7272 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7274 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7275 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7276 when setting the size of call_length.
7278 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7280 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7281 dereference TYPE_CODE_REF values.
7283 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7285 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7286 end of warning message.
7288 2014-04-03 Doug Evans <dje@google.com>
7290 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7291 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7293 2014-04-02 Alan Modra <amodra@gmail.com>
7295 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7296 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7297 (struct symbol_file_add_from_memory_args): Add size field.
7298 (find_vdso_size): New function.
7299 (add_vsyscall_page): Attempt to find vdso size.
7301 2014-04-01 Doug Evans <dje@google.com>
7303 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7305 2014-04-01 Tristan Gingold <gingold@adacore.com>
7307 * darwin-nat.c (darwin_encode_reply): Add prototype.
7308 (darwin_decode_exception_message): Reply to unknown inferiors.
7309 (darwin_decode_message): Handle message by id. Ignore message
7310 to unknown inferior.
7311 (darwin_wait): Discard unknown messages, add debug trace.
7313 2014-03-31 Doug Evans <dje@google.com>
7315 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7318 2014-03-31 Doug Evans <dje@google.com>
7320 New option "set print symbol-loading".
7322 * solib.c (solib_read_symbols): Only print symbol loading messages
7324 (solib_add): If symbol loading is in "brief" mode, notify user
7325 symbols are being loaded.
7326 (reload_shared_libraries_1): Ditto.
7327 * symfile.c (print_symbol_loading_off): New static global.
7328 (print_symbol_loading_brief): New static global.
7329 (print_symbol_loading_full): New static global.
7330 (print_symbol_loading_enums): New static global.
7331 (print_symbol_loading): New static global.
7332 (print_symbol_loading_p): New function.
7333 (symbol_file_add_with_addrs): Only print symbol loading messages
7335 (_initialize_symfile): Register "print symbol-loading" set/show
7337 * symfile.h (print_symbol_loading_p): Declare.
7339 2014-03-30 Doug Evans <xdje42@gmail.com>
7341 * infrun.c (set_last_target_status): New function.
7342 (handle_inferior_event): Call it.
7344 2014-03-30 Doug Evans <xdje42@gmail.com>
7346 * inferior.h (enum stop_kind): Improve comment.
7348 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7350 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7351 a reference, strip the reference layer before calling
7352 the lang_ops value_has_mutated callback.
7354 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7356 Remove some globals from our parser.
7357 * language.c (unk_lang_parser): Add "struct parser_state"
7359 * language.h (struct language_defn) <la_parser>: Likewise.
7360 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7361 (initialize_expout): Add "struct parser_state" argument.
7362 Rewrite function to use the parser state.
7363 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7364 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7365 write_exp_elt_longcst, write_exp_elt_dblcst,
7366 write_exp_elt_decfloatcst, write_exp_elt_type,
7367 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7368 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7369 write_dollar_variable): Likewise.
7370 (parse_exp_in_context_1): Use parser state.
7371 (insert_type_address_space): Add "struct parser_state" argument.
7373 (increase_expout_size): New function.
7374 * parser-defs.h: Forward declare "struct language_defn" and
7375 "struct parser_state".
7376 (expout, expout_size, expout_ptr): Remove extern declarations.
7377 (parse_gdbarch, parse_language): Rewrite macro declarations to
7378 accept the parser state.
7379 (struct parser_state): New struct.
7380 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7381 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7382 write_exp_elt_decfloatcst, write_exp_elt_type,
7383 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7384 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7385 write_exp_msymbol, write_dollar_variable,
7386 mark_struct_expression, insert_type_address_space): Add "struct
7387 parser_state" argument.
7388 (increase_expout_size): New function.
7389 * utils.c (do_clear_parser_state): New function.
7390 (make_cleanup_clear_parser_state): Likewise.
7391 * utils.h (make_cleanup_clear_parser_state): New function
7393 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7394 Update calls to write_exp* in order to pass the parser state.
7395 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7396 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7397 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7398 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7399 * stap-probe.c (stap_parse_register_operand): Likewise.
7400 (stap_parse_single_operand): Likewise.
7401 (stap_parse_argument_1): Likewise.
7402 (stap_parse_argument): Use parser state.
7403 * stap-probe.h: Include "parser-defs.h".
7404 (struct stap_parse_info) <pstate>: New field.
7405 * c-exp.y (parse_type): Rewrite to use parser state.
7406 (yyparse): Redefine to c_parse_internal.
7407 (pstate): New global variable.
7408 (parse_number): Add "struct parser_state" argument.
7409 (write_destructor_name): Likewise.
7410 (type_exp): Update calls to write_exp* and similars in order to
7412 (exp1, exp, variable, qualified_name, space_identifier,
7413 typename, typebase): Likewise.
7414 (write_destructor_name, parse_number, lex_one_token,
7415 classify_name, classify_inner_name, c_parse): Add "struct
7416 parser_state" argument. Update function to use parser state.
7417 * c-lang.h: Forward declare "struct parser_state".
7418 (c_parse): Add "struct parser_state" argument.
7419 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7420 (yyparse): Redefine macro to ada_parse_internal.
7421 (pstate): New variable.
7422 (write_int, write_object_renaming, write_var_or_type,
7423 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7424 type_int, type_long, type_long_long, type_float, type_double,
7425 type_long_double, type_char, type_boolean, type_system_address):
7426 Add "struct parser_state" argument.
7427 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7428 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7429 var_or_type, aggregate, aggregate_component_list,
7430 positional_list, others, component_group,
7431 component_associations): Update calls to write_exp* and similar
7432 functions in order to use parser state.
7433 (ada_parse, write_var_from_sym, write_int,
7434 write_exp_op_with_string, write_object_renaming,
7435 find_primitive_type, write_selectors, write_ambiguous_var,
7436 write_var_or_type, write_name_assoc, type_int, type_long,
7437 type_long_long, type_float, type_double, type_long_double,
7438 type_char, type_boolean, type_system_address): Add "struct
7439 parser_state" argument. Adjust function to use parser state.
7440 * ada-lang.c (parse): Likewise.
7441 * ada-lang.h: Forward declare "struct parser_state".
7442 (ada_parse): Add "struct parser_state" argument.
7443 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7444 calls to both functions.
7445 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7447 (yyparse): Redefine macro to f_parse_internal.
7448 (pstate): New variable.
7449 (parse_number): Add "struct parser_state" argument.
7450 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7451 and similars in order to use parser state.
7452 (parse_number): Adjust code to use parser state.
7454 (f_parse): New function.
7455 * f-lang.h: Forward declare "struct parser_state".
7456 (f_parse): Add "struct parser_state" argument.
7457 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7459 (yyparse): Redefine macro for java_parse_internal.
7460 (pstate): New variable.
7461 (push_expression_name, push_expression_name, insert_exp): Add
7462 "struct parser_state" argument.
7463 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7464 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7465 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7466 PostIncrementExpression, PostDecrementExpression,
7467 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7468 UnaryExpressionNotPlusMinus, CastExpression,
7469 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7470 RelationalExpression, EqualityExpression, AndExpression,
7471 ExclusiveOrExpression, InclusiveOrExpression,
7472 ConditionalAndExpression, ConditionalOrExpression,
7473 ConditionalExpression, Assignment, LeftHandSide): Update
7474 calls to write_exp* and similars in order to use parser state.
7475 (parse_number): Ajust code to use parser state.
7477 (java_parse): New function.
7478 (push_variable): Add "struct parser_state" argument. Adjust
7479 code to user parser state.
7480 (push_fieldnames, push_qualified_expression_name,
7481 push_expression_name, insert_exp): Likewise.
7482 * jv-lang.h: Forward declare "struct parser_state".
7483 (java_parse): Add "struct parser_state" argument.
7484 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7486 (yyparse): Redefine macro to m2_parse_internal.
7487 (pstate): New variable.
7488 (type_exp, exp, fblock, variable, type): Update calls to
7489 write_exp* and similars to use parser state.
7491 (m2_parse): New function.
7492 * m2-lang.h: Forward declare "struct parser_state".
7493 (m2_parse): Add "struct parser_state" argument.
7494 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7495 * objc-lang.h: Forward declare "struct parser_state".
7496 (end_msglist): Add "struct parser_state" argument.
7497 * p-exp.y (parse_type): Rewrite macro to use parser state.
7498 (yyparse): Redefine macro to pascal_parse_internal.
7499 (pstate): New variable.
7500 (parse_number): Add "struct parser_state" argument.
7501 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7502 write_exp* and similars in order to use parser state.
7503 (parse_number, yylex): Adjust code to use parser state.
7504 (pascal_parse): New function.
7505 * p-lang.h: Forward declare "struct parser_state".
7506 (pascal_parse): Add "struct parser_state" argument.
7507 * go-exp.y (parse_type): Rewrite macro to use parser state.
7508 (yyparse): Redefine macro to go_parse_internal.
7509 (pstate): New variable.
7510 (parse_number): Add "struct parser_state" argument.
7511 (type_exp, exp1, exp, variable, type): Update calls to
7512 write_exp* and similars in order to use parser state.
7513 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7514 to use parser state.
7515 (go_parse): Likewise.
7516 * go-lang.h: Forward declare "struct parser_state".
7517 (go_parse): Add "struct parser_state" argument.
7519 2014-03-27 Doug Evans <dje@google.com>
7521 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7523 2014-03-27 Doug Evans <dje@google.com>
7525 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7526 Remove argument abbrev_section. All callers updated.
7528 2014-03-27 Doug Evans <dje@google.com>
7530 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7531 addr_base, ranges_base.
7533 2014-03-26 Keith Seitz <keiths@redhat.com>
7535 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7536 types, not VAR_DOMAIN.
7538 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7540 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7542 * features/nios2-linux.c: Regenerated.
7543 * features/nios2.c: Regenerated.
7545 2014-03-25 Pedro Alves <palves@redhat.com>
7547 * cli/cli-script.c (script_from_file): Force the interpreter to
7550 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7552 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7553 small stack allocation.
7555 2014-03-24 Tristan Gingold <gingold@adacore.com>
7557 * darwin-nat.c (exc_server): Remove unused prototype.
7558 (darwin_dump_message): Correctly display data on x86_64.
7559 (darwin_encode_reply): Fix style.
7560 Add comments and fix indentation.
7562 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7564 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7566 2014-03-22 Doug Evans <xdje42@gmail.com>
7568 * infcmd.c: Whitespace fixes.
7569 (interrupt_command): Merge two function comments into one.
7571 2014-03-22 Doug Evans <xdje42@gmail.com>
7573 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7576 2014-03-22 Yao Qi <yao@codesourcery.com>
7578 * remote.c (target_read_live_memory): Remove.
7579 (memory_xfer_live_readonly_partial): Rename it to
7580 remote_xfer_live_readonly_partial. Remove argument 'object'.
7581 All callers updated. Call remote_read_bytes_1
7582 instead of target_read_live_memory.
7583 * tracepoint.c (set_traceframe_number): Remove.
7584 (make_cleanup_restore_traceframe_number): Likewise .
7585 * tracepoint.h (set_traceframe_number): Remove declaration.
7586 (make_cleanup_restore_traceframe_number): Likewise.
7588 2014-03-22 Yao Qi <yao@codesourcery.com>
7590 * remote.c (remote_read_bytes): Move code on reading from the
7592 (remote_read_bytes_1): ... here. New function.
7594 2014-03-22 Yao Qi <yao@codesourcery.com>
7596 * ctf.c (ctf_xfer_partial): Check the return value of
7597 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7598 return TARGET_XFER_UNAVAILABLE.
7599 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7600 * target.c (target_read_live_memory): Move it to remote.c.
7601 (memory_xfer_live_readonly_partial): Likewise.
7602 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7603 * remote.c (target_read_live_memory): Moved from target.c.
7604 (memory_xfer_live_readonly_partial): Likewise.
7605 (remote_read_bytes): Factored out from
7606 memory_xfer_partial_1.
7608 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7610 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7613 2014-03-21 Pedro Alves <palves@redhat.com>
7615 * infrun.c (normal_stop): Extend comment.
7617 2014-03-21 Hui Zhu <hui@codesourcery.com>
7618 Pedro Alves <palves@redhat.com>
7620 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7622 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7623 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7624 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7626 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7628 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7629 `z' formatted output modifier.
7631 2014-03-20 Tom Tromey <tromey@redhat.com>
7632 Sergio Durigan Junior <sergiodj@redhat.com>
7634 * probe.c (parse_probes): Turn assert into an ordinary error.
7635 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7636 exceptions when parsing probes. Rearrange the code for clarity.
7638 2014-03-20 Tom Tromey <tromey@redhat.com>
7641 * top.c (execute_command): Only dispatch events if the command
7644 2014-03-20 Tom Tromey <tromey@redhat.com>
7647 * infcall.c: Include event-top.h.
7648 (run_inferior_call): Call async_disable_stdin if needed.
7650 2014-03-20 Pedro Alves <palves@redhat.com>
7652 * infrun.c (prepare_to_proceed): Delete.
7653 (thread_still_needs_step_over): New function.
7654 (find_thread_needs_step_over): New function.
7655 (proceed): If the current thread needs a step-over, set its
7656 steping_over_breakpoint flag. Adjust to use
7657 find_thread_needs_step_over instead of prepare_to_proceed.
7658 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7659 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7661 (switch_back_to_stepped_thread): Step over breakpoints of all
7662 threads not the stepping thread, before switching back to the
7665 2014-03-20 Pedro Alves <palves@redhat.com>
7667 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7669 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7670 * infrun.c (saved_singlestep_ptid)
7671 (stepping_past_singlestep_breakpoint): Delete.
7672 (resume): Remove stepping_past_singlestep_breakpoint handling.
7673 (proceed): Store the prev_pc of the stepping thread too.
7674 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7676 (enum infwait_states): Delete infwait_thread_hop_state.
7677 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7679 (handle_inferior_event): Adjust.
7680 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7681 handling and the thread-hop code. Before removing single-step
7682 breakpoints, check whether the thread hit a single-step breakpoint
7683 of another thread. If it did, the trap is not a random signal.
7684 (switch_back_to_stepped_thread): If the event thread hit a
7685 single-step breakpoint, unblock it before switching to the
7686 stepping thread. Handle the case of the stepped thread having
7688 (keep_going): Handle the case of the current thread moving past a
7689 single-step breakpoint.
7691 2014-03-20 Pedro Alves <palves@redhat.com>
7694 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7695 are being stepped over.
7696 (breakpoint_address_match): Make extern.
7697 * breakpoint.h (breakpoint_address_match): New declaration.
7698 * inferior.h (stepping_past_instruction_at): New declaration.
7699 * infrun.c (struct step_over_info): New type.
7700 (step_over_info): New global.
7701 (set_step_over_info, clear_step_over_info)
7702 (stepping_past_instruction_at): New functions.
7703 (handle_inferior_event): Clear the step-over info when
7704 trap_expected is cleared.
7705 (resume): Remove now stale comment.
7706 (clear_proceed_status): Clear step-over info.
7707 (proceed): Adjust step-over handling to set or clear the step-over
7708 info instead of removing all breakpoints.
7709 (handle_signal_stop): When setting up a thread-hop, don't remove
7711 (stop_stepping): Clear step-over info.
7712 (keep_going): Adjust step-over handling to set or clear step-over
7713 info and then always inserting breakpoints, instead of removing
7714 all breakpoints when stepping over one.
7716 2014-03-20 Pedro Alves <palves@redhat.com>
7718 * infrun.c (previous_inferior_ptid): Adjust comment.
7719 (deferred_step_ptid): Delete.
7720 (infrun_thread_ptid_changed, prepare_to_proceed)
7721 (init_wait_for_inferior): Adjust.
7722 (handle_signal_stop): Delete deferred_step_ptid handling.
7724 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7727 * defs.h (sync_quit_force_run): New declaration.
7728 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7729 * event-top.c (async_sigterm_handler): New declaration.
7730 (async_sigterm_token): New variable.
7731 (async_init_signals): Create also async_sigterm_token.
7732 (async_sigterm_handler): New function.
7733 (sync_quit_force_run): New variable.
7734 (handle_sigterm): Replace quit_force call by other calls.
7735 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7737 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7739 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7740 offset into SPE pseudo registers.
7742 2014-03-18 Pedro Alves <palves@redhat.com>
7745 * inferior.h (print_stop_event): Declare.
7746 * infrun.c (print_stop_event): New, factored out from ...
7747 (normal_stop): ... this.
7748 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7749 of bpstat_print/print_stack_frame.
7751 2014-03-17 Tom Tromey <tromey@redhat.com>
7753 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7755 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7757 * ada-lang.c (decode_constrained_packed_array): Perform a
7758 minimal coercion for reference with coerce_ref instead of
7761 2014-03-17 Tristan Gingold <gingold@adacore.com>
7763 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7764 (darwin_solib_create_inferior_hook): Emit a warning if version
7767 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7769 * python/py-value.c (get_field_flag): Cast flag_name argument to
7770 PyObject_GetAttrString to support Python 2.4.
7772 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7774 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7775 (Global Maintainers): Remove Jan Kratochvil.
7777 2014-03-14 Pedro Alves <palves@redhat.com>
7779 * inferior.h (terminal_ours_for_output): Rename to ...
7780 (child_terminal_ours_for_output): ... this.
7781 (terminal_save_ours): Rename to ...
7782 (child_terminal_save_ours): ... this.
7783 (terminal_ours): Rename to ...
7784 (child_terminal_ours): ... this.
7785 (terminal_inferior): Rename to ...
7786 (child_terminal_inferior): ... this.
7787 (terminal_init_inferior): Rename to ...
7788 (child_terminal_init_inferior): ... this.
7789 (terminal_init_inferior_with_pgrp): Rename to ...
7790 (child_terminal_init_inferior_with_pgrp): ... this.
7791 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7792 (child_terminal_init_with_pgrp): ... this.
7793 (terminal_save_ours): Rename to ...
7794 (child_terminal_save_ours): ... this.
7795 (terminal_init_inferior): Rename to ...
7796 (child_terminal_init): ... this. Adjust.
7797 (terminal_inferior): Rename to ...
7798 (child_terminal_inferior): ... this.
7799 (terminal_ours_for_output): Rename to ...
7800 (child_terminal_ours_for_output): ... this. Adjust.
7801 (terminal_ours): Rename to ...
7802 (child_terminal_ours): ... this.
7803 (terminal_ours_1): Rename to ...
7804 (child_terminal_ours_1): ... this. Adjust.
7805 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7806 * windows-nat.c (do_initial_windows_stuff): Adjust.
7807 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7808 (gnu_terminal_init): ... this. Adjust.
7809 (gnu_target): Adjust.
7810 * inf-child.c (inf_child_target): Adjust.
7812 2014-03-13 Doug Evans <xdje42@gmail.com>
7815 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7818 2014-03-13 Doug Evans <xdje42@gmail.com>
7820 * value.c (record_latest_value): Call release_value_or_incref
7821 instead of release_value.
7823 2014-03-13 Pedro Alves <palves@redhat.com>
7825 * procfs.c (procfs_target): Don't override to_shortname,
7826 to_longname or to_doc.
7828 2014-03-13 Pedro Alves <palves@redhat.com>
7830 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7831 Unix in user visible strings.
7833 2014-03-12 Stan Shebs <stan@codesourcery.com>
7835 * gdbtypes.h: Annotate comments for Doxygen, add a page
7836 block comment with some general info.
7838 2014-03-12 Pedro Alves <palves@redhat.com>
7840 * infcmd.c (prepare_execution_command): New function, factored out
7841 from several execution commands.
7842 (run_command_1, continue_command, step_1, jump_command)
7843 (signal_command, until_command, advance_command, finish_command)
7844 (attach_command): Use prepare_execution_command.
7846 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7848 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7851 (struct arm_linux_thread_points): Removed.
7852 (struct arm_linux_process_info): New.
7853 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7854 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7855 (arm_linux_find_breakpoints_by_tid): Removed.
7856 (struct arch_lwp_info): New.
7857 (arm_linux_find_process_pid): New functions.
7858 (arm_linux_add_process): New functions.
7859 (arm_linux_process_info_get): New functions.
7860 (arm_linux_forget_process): New function.
7861 (arm_linux_get_debug_reg_state): New function.
7862 (struct update_registers_data): New.
7863 (update_registers_callback): New function.
7864 (arm_linux_insert_hw_breakpoint1): Updated.
7865 (arm_linux_remove_hw_breakpoint1): Updated.
7866 (arm_linux_insert_hw_breakpoint): Updated.
7867 (arm_linux_remove_hw_breakpoint): Updated.
7868 (arm_linux_insert_watchpoint): Updated.
7869 (arm_linux_remove_watchpoint): Updated.
7870 (arm_linux_new_thread): Updated.
7871 (arm_linux_prepare_to_resume): New function.
7872 (arm_linux_new_fork): New function.
7873 (_initialize_arm_linux_nat): Updated.
7875 2014-03-12 Pedro Alves <palves@redhat.com>
7877 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7879 2014-03-12 Tom Tromey <tromey@redhat.com>
7881 * inf-child.c (return_zero): New function.
7882 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7883 * aix-thread.c (aix_thread_inferior_created): New function.
7884 (aix_thread_attach): Remove.
7885 (init_aix_thread_ops): Don't set to_attach.
7886 (_initialize_aix_thread): Register inferior_created observer.
7887 * corelow.c (init_core_ops): Don't set to_attach or
7889 * exec.c (init_exec_ops): Don't set to_attach or
7891 * infcmd.c (run_command_1): Use find_run_target. Make direct
7893 (attach_command): Use find_attach_target. Make direct target
7895 * record-btrace.c (init_record_btrace_ops): Don't set
7897 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7899 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7900 set to_create_inferior.
7901 * target.c (complete_target_initialization): Add assertion.
7902 (target_create_inferior): Remove.
7903 (find_default_attach, find_default_create_inferior): Remove.
7904 (find_attach_target, find_run_target): New functions.
7905 (find_default_is_async_p, find_default_can_async_p)
7906 (target_supports_non_stop, target_attach): Remove.
7907 (init_dummy_target): Don't set to_create_inferior or
7908 to_supports_non_stop.
7909 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7910 TARGET_DEFAULT_FUNC.
7911 <to_create_inferior>: Add comment.
7912 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7913 TARGET_DEFAULT_RETURN.
7914 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7915 (find_attach_target, find_run_target): Declare.
7916 (target_create_inferior): Remove.
7917 (target_has_execution_1): Update comment.
7918 (target_supports_non_stop): Remove.
7919 * target-delegates.c: Rebuild.
7921 2014-03-12 Pedro Alves <palves@redhat.com>
7923 * inf-child.h: Update comment to not mention Unix.
7925 2014-03-12 Pedro Alves <palves@redhat.com>
7927 * inf-child.c: Update top comment to not mention Unix. Add
7928 generic comment describing how this target is meant to be used.
7929 (inf_child_post_attach, inf_child_post_startup_inferior)
7930 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7933 2014-03-12 Pedro Alves <palves@redhat.com>
7935 * nto-procfs.c: Include inf-child.h.
7936 (procfs_ops): Delete global.
7937 (procfs_can_run): Delete method.
7938 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7939 target pointer instead of referencing procfs_ops.
7940 (procfs_prepare_to_store): Delete.
7941 (init_procfs_ops): Delete function.
7942 (procfs_target): New function, based on init_procfs_ops, but
7943 inherit inf_child_target.
7944 (_initialize_procfs): Use procfs_target.
7946 2014-03-12 Pedro Alves <palves@redhat.com>
7948 * windows-nat.c: Include inf-child.h.
7949 (windows_ops): Delete global.
7950 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7952 (init_windows_ops): Delete function.
7953 (windows_target): New function, based on init_windows_ops, but
7954 inherit inf_child_target.
7955 (_initialize_windows_nat): Use windows_target. Install x86
7956 specific target methods here.
7958 2014-03-10 Doug Evans <xdje42@gmail.com>
7960 * guile/guile.c (call_initialize_gdb_module): New function.
7961 (initialize_guile): Replace call to scm_init_guile with call to
7964 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7966 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7967 in call to TYPE_CODE macro.
7969 2014-03-10 Jerome Guitton <guitton@adacore.com>
7971 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7972 Resolve tagged types to full view.
7974 2014-03-10 Hui Zhu <hui@codesourcery.com>
7976 * target.h (target_insert_breakpoint): Remove "hardware" from its
7979 2014-03-07 Doug Evans <dje@google.com>
7981 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7983 2014-03-07 Doug Evans <dje@google.com>
7985 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7986 Remove unused local comp_dir_attr. Assert exactly one of
7987 stub_comp_unit_die, stub_comp_dir is non-NULL.
7989 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7991 * target.h (complete_target_initialization, add_target):
7994 2014-03-07 Pedro Alves <palves@redhat.com>
7996 * go32-nat.c: Include inf-child.h.
7997 (go32_ops): Delete global.
7998 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8000 (go32_create_inferior): Push the passed in target pointer instead
8001 of referencing go32_ops.
8002 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8003 (go32_target): New function, based on init_go32_ops, but inherit
8005 (_initialize_go32_nat): Use go32_target. Move parts of
8008 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8010 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8011 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8012 SYMBOL_VALUE_ADDRESS.
8013 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8015 2014-03-06 Yao Qi <yao@codesourcery.com>
8017 * breakpoint.c (get_tracepoint_by_number): Remove argument
8018 optional_p. All callers updated. Adjust comments. Update
8020 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8022 2014-03-06 Yao Qi <yao@codesourcery.com>
8024 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8025 early if get_number returns zero. Use 'p' instead of 'args'.
8027 2014-03-06 Yao Qi <yao@codesourcery.com>
8029 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8032 2014-03-06 Yao Qi <yao@codesourcery.com>
8034 PR breakpoints/16508
8035 * tracepoint.c (check_trace_running): New function.
8036 (trace_find_command): Move code to check_trace_running and
8037 call check_trace_running.
8038 (trace_find_pc_command): Likewise.
8039 (trace_find_tracepoint_command): Likewise.
8040 (trace_find_line_command): Likewise.
8041 (trace_find_range_command): Likewise.
8042 * tracepoint.h (check_trace_running): Likewise.
8043 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8045 2014-03-06 Yao Qi <yao@codesourcery.com>
8047 * target.h (struct target_ops) <to_traceframe_info>: Use
8048 TARGET_DEFAULT_NORETURN (tcomplain ()).
8049 * target-delegates.c: Regenerated.
8051 2014-03-05 Pedro Alves <palves@redhat.com>
8054 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8055 void. Update comment.
8056 (dcache_xfer_memory): Delete.
8057 (dcache_read_memory_partial): New, based on the read bits of
8059 (dcache_update): Add status parameter. Use ULONGEST for len, and
8060 adjust. Discard cache lines if the reason for the update was
8062 * dcache.h (dcache_xfer_memory): Delete declaration.
8063 (dcache_read_memory_partial): New declaration.
8064 (dcache_update): Update prototype.
8065 * target.c (raw_memory_xfer_partial): Update the dcache here.
8066 (memory_xfer_partial_1): Don't handle dcache writes here.
8068 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8070 * remote-sim.c (gdbsim_load): Add const to prog.
8072 2014-03-03 Tom Tromey <tromey@redhat.com>
8074 * elfread.c (probe_key): Change to bfd_data.
8075 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8076 now per-BFD, not per-objfile.
8077 * stap-probe.c (stap_probe_destroy): Update comment.
8078 (handle_stap_probe): Allocate on the per-BFD obstack.
8080 2014-03-03 Tom Tromey <tromey@redhat.com>
8082 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8083 * breakpoint.c (create_longjmp_master_breakpoint): Use
8085 (add_location_to_breakpoint, bkpt_probe_insert_location)
8086 (bkpt_probe_remove_location): Update.
8087 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8088 * elfread.c (elf_symfile_relocate_probe): Remove.
8089 (elf_probe_fns): Update.
8090 (insert_exception_resume_breakpoint): Change type of "probe"
8091 parameter to bound_probe.
8092 (check_exception_resume): Update.
8093 * objfiles.c (objfile_relocate1): Don't relocate probes.
8094 * probe.c (bound_probe_s): New typedef.
8095 (parse_probes): Use get_probe_address. Set sal's objfile.
8096 (find_probe_by_pc): Return a bound_probe.
8097 (collect_probes): Return a VEC(bound_probe_s).
8098 (compare_probes): Update.
8099 (gen_ui_out_table_header_info): Change type of "probes"
8101 (info_probes_for_ops): Update.
8102 (get_probe_address): New function.
8103 (probe_safe_evaluate_at_pc): Update.
8104 * probe.h (struct probe_ops) <get_probe_address>: New field.
8105 <set_semaphore, clear_semaphore>: Add objfile parameter.
8106 (struct probe) <objfile>: Remove field.
8108 <address>: Update comment.
8109 (struct bound_probe): New.
8110 (find_probe_by_pc): Return a bound_probe.
8111 (get_probe_address): Declare.
8112 * solib-svr4.c (struct probe_and_action) <address>: New field.
8113 (hash_probe_and_action, equal_probe_and_action): Update.
8114 (register_solib_event_probe): Add address parameter.
8115 (solib_event_probe_at): Update.
8116 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8118 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8119 (stap_get_probe_address): New function.
8120 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8121 (compile_probe_arg): Update.
8122 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8124 (handle_stap_probe): Don't relocate the probe.
8125 (stap_relocate): Remove.
8126 (stap_gen_info_probes_table_values): Update.
8127 (stap_probe_ops): Remove stap_relocate.
8128 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8129 (debug_sym_probe_fns): Update.
8130 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8131 * symtab.c (init_sal): Use memset.
8132 * symtab.h (struct symtab_and_line) <objfile>: New field.
8133 * tracepoint.c (start_tracing, stop_tracing): Update.
8135 2014-03-03 Tom Tromey <tromey@redhat.com>
8137 * probe.h (parse_probes, find_probe_by_pc)
8138 (find_probes_in_objfile): Fix comments.
8140 2014-03-02 Doug Evans <xdje42@gmail.com>
8142 * infrun.c (handle_signal_stop): Replace test for
8143 TARGET_WAITKIND_STOPPED with an assert.
8145 2014-03-02 Doug Evans <xdje42@gmail.com>
8147 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8149 2014-03-02 Doug Evans <xdje42@gmail.com>
8151 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8153 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8155 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8157 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8159 * i386obsd-nat.c: Include "obsd-nat.h".
8160 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8162 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8164 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8166 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8168 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8170 * mips64obsd-nat.c: Include "obsd-nath".
8171 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8173 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8175 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8177 * amd64obsd-nat.c: Include "obsd-nat,h.
8178 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8180 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8182 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8184 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8185 (find_overload_match): Update call to find_oload_champ.
8186 (find_oload_champ_namespace_loop): Likewise
8188 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8190 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8192 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8193 * config/sparc/obsd64.mh: New file.
8194 * sparc64obsd-nat.c: New file.
8196 * obsd-nat.h: New file.
8197 * obsd-nat.c: New file.
8198 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8199 (ALLDEPFILES): Add obsd-nat.c.
8201 2014-02-28 Tom Tromey <tromey@redhat.com>
8203 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8204 * cli-out.h (cli_ui_out_impl): Now const.
8205 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8206 * ui-out.c (struct ui_out) <impl>: Now const.
8207 (default_ui_out_impl): Now const.
8208 (ui_out_new): Make 'impl' parameter const.
8209 * ui-out.h (ui_out_new): Update.
8211 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8213 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8215 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8217 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8219 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8221 Additional PR 8882 fix.
8222 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8224 2014-02-27 Pedro Alves <palves@redhat.com>
8226 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8229 2014-02-27 Pedro Alves <palves@redhat.com>
8232 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8233 * nat/linux-waitpid.c: Include string.h.
8234 (status_to_str): Moved here and made extern.
8235 * nat/linux-waitpid.h (status_to_str): New declaration.
8237 2014-02-27 Hui Zhu <hui@codesourcery.com>
8240 * infrun.c (ptid_match): Move ...
8241 * common/ptid.c (ptid_match): ... here.
8242 * inferior.h (ptid_match): Move ...
8243 * common/ptid.h (ptid_match): ... here.
8245 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8247 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8248 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8251 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8253 * obsd-tdep.c (obsd_auxv_parse): New function.
8254 (obsd_init_abi): Set auxv_parse.
8256 * gdbarch.sh (auxv_parse): New.
8257 * gdbarch.h: Regenerated.
8258 * gdbarch.c: Regenerated.
8259 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8261 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8263 * guile/scm-value.c (gdbscm_history_append_x): New function.
8264 (value_functions): Add it.
8266 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8268 * dwarf2read.c (attr_value_as_address): New function.
8269 (dwarf2_find_base_address, read_call_site_scope): Use
8270 attr_value_as_address in place of DW_ADDR.
8271 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8272 the low and high addresses. Slight rework of the handling
8273 of the high pc being a constant form, and limit it to
8274 DWARF verson 4 or higher.
8275 (dwarf2_record_block_ranges): Likewise.
8276 (read_partial_die): Likewise.
8277 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8279 2014-02-26 Tom Tromey <tromey@redhat.com>
8281 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8283 2014-02-26 Tom Tromey <tromey@redhat.com>
8285 * elfread.c (elf_read_minimal_symbols): Return early if
8286 minimal symbols have already been read. Add "ei" parameter.
8287 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8288 * minsyms.c (prim_record_minimal_symbol_full): Update.
8289 * objfiles.h (struct objstats) <n_minsyms>: Move...
8290 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8291 * symmisc.c (print_objfile_statistics): Update.
8293 2014-02-26 Tom Tromey <tromey@redhat.com>
8295 * elfread.c (elf_read_minimal_symbols): New function, from
8297 (elf_symfile_read): Call it.
8299 2014-02-26 Tom Tromey <tromey@redhat.com>
8301 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8302 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8303 (lookup_minimal_symbol_solib_trampoline)
8304 (lookup_minimal_symbol_by_pc_section_1)
8305 (lookup_minimal_symbol_and_objfile): Update.
8306 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8307 Don't allocate a minimal symbol if minsyms have already been read.
8308 (build_minimal_symbol_hash_tables): Update.
8309 (install_minimal_symbols): Do nothing if minsyms already read.
8310 Use the per-BFD obstack.
8311 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8312 * objfiles.c (allocate_objfile): Call
8313 terminate_minimal_symbol_table later.
8314 (have_minimal_symbols): Update.
8315 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8316 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8317 Move from struct objfile.
8318 <minsyms_read>: New field.
8319 (struct objfile) <msymbols, minimal_symbol_count,
8320 msymbol_hash, msymbol_demangled_hash>: Move.
8321 (ALL_OBJFILE_MSYMBOLS): Update.
8322 * symfile.c (read_symbols): Set minsyms_read.
8323 (reread_symbols): Update.
8324 * symmisc.c (dump_objfile, dump_msymbols): Update.
8326 2014-02-26 Tom Tromey <tromey@redhat.com>
8328 * minsyms.c (msymbols_sort): Remove.
8329 * minsyms.h (msymbols_sort): Remove.
8330 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8331 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8332 * elfread.c (elf_symtab_read): Don't add section offsets.
8333 * xcoffread.c (record_minimal_symbol): Don't add section offset
8334 to minimal symbol address.
8335 * somread.c (text_offset, data_offset): Remove.
8336 (som_symtab_read): Don't add section offsets to minimal symbol
8338 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8339 Don't add section offsets to minimal symbols.
8340 * coffread.c (coff_symtab_read): Don't add section offsets
8341 to minimal symbol addresses.
8342 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8343 to minimal symbol addresses.
8344 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8345 section offset to minimal symbol addresses.
8346 * mdebugread.c (parse_partial_symbols): Don't add section
8347 offset to minimal symbol addresses.
8348 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8349 offset to minimal symbol addresses.
8351 2014-02-26 Tom Tromey <tromey@redhat.com>
8353 * ada-lang.c (ada_main_name): Update.
8354 (ada_add_standard_exceptions): Update.
8355 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8356 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8357 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8358 * auxv.c (ld_so_xfer_auxv): Update.
8359 * avr-tdep.c (avr_scan_prologue): Update.
8360 * ax-gdb.c (gen_var_ref): Update.
8361 * blockframe.c (get_pc_function_start)
8362 (find_pc_partial_function_gnu_ifunc): Update.
8363 * breakpoint.c (create_overlay_event_breakpoint)
8364 (create_longjmp_master_breakpoint)
8365 (create_std_terminate_master_breakpoint)
8366 (create_exception_master_breakpoint): Update.
8367 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8368 * c-valprint.c (c_val_print): Update.
8369 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8370 * common/agent.c (agent_look_up_symbols): Update.
8371 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8372 * dwarf2loc.c (call_site_to_target_addr): Update.
8373 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8374 * elfread.c (elf_gnu_ifunc_record_cache)
8375 (elf_gnu_ifunc_resolve_by_got): Update.
8376 * findvar.c (default_read_var_value): Update.
8377 * frame.c (inside_main_func): Update.
8378 * frv-tdep.c (frv_frame_this_id): Update.
8379 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8380 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8382 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8383 (hppa_hpux_find_dummy_bpaddr): Update.
8384 * hppa-tdep.c (hppa_symbol_address): Update.
8385 * infcmd.c (until_next_command): Update.
8386 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8388 * linespec.c (minsym_found, add_minsym): Update.
8389 * linux-nat.c (get_signo): Update.
8390 * linux-thread-db.c (inferior_has_bug): Update.
8391 * m32c-tdep.c (m32c_return_value)
8392 (m32c_m16c_address_to_pointer): Update.
8393 * m32r-tdep.c (m32r_frame_this_id): Update.
8394 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8395 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8396 * maint.c (maintenance_translate_address): Update.
8397 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8398 (frob_address): New function.
8399 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8400 frob_address. Rename parameter to "pc_in".
8401 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8403 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8405 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8406 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8407 * objc-lang.c (find_objc_msgsend): Update.
8408 * objfiles.c (objfile_relocate1): Update.
8409 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8410 * p-valprint.c (pascal_val_print): Update.
8411 * parse.c (write_exp_msymbol): Update.
8412 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8413 (ppc_elfv2_skip_entrypoint): Update.
8414 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8415 * printcmd.c (build_address_symbolic, msym_info)
8416 (address_info): Update.
8417 * proc-service.c (ps_pglobal_lookup): Update.
8418 * psymtab.c (find_pc_sect_psymtab_closer)
8419 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8420 Change msymbol parameter to bound_minimal_symbol.
8421 * ravenscar-thread.c (get_running_thread_id): Update.
8422 * remote.c (remote_check_symbols): Update.
8423 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8425 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8426 * solib-dsbt.c (lm_base): Update.
8427 * solib-frv.c (lm_base, main_got): Update.
8428 * solib-irix.c (locate_base): Update.
8429 * solib-som.c (som_solib_create_inferior_hook)
8430 (link_map_start): Update.
8431 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8432 * solib-svr4.c (elf_locate_base, enable_break): Update.
8433 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8434 (flush_ea_cache): Update.
8435 * stabsread.c (define_symbol, scan_file_globals): Update.
8436 * stack.c (find_frame_funname): Update.
8437 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8438 (debug_qf_find_pc_sect_symtab): Update.
8439 * symfile.c (simple_read_overlay_table)
8440 (simple_overlay_update): Update.
8441 * symfile.h (struct quick_symbol_functions)
8442 <find_pc_sect_symtab>: Change type of msymbol to
8443 bound_minimal_symbol.
8444 * symmisc.c (dump_msymbols): Update.
8445 * symtab.c (find_pc_sect_symtab_via_partial)
8446 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8447 (search_symbols, print_msymbol_info): Update.
8448 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8449 (MSYMBOL_VALUE_ADDRESS): Redefine.
8450 (BMSYMBOL_VALUE_ADDRESS): New macro.
8451 * tracepoint.c (scope_info): Update.
8452 * tui/tui-disasm.c (tui_find_disassembly_address)
8453 (tui_get_begin_asm_address): Update.
8454 * valops.c (find_function_in_inferior): Update.
8455 * value.c (value_static_field, value_fn_field): Update.
8457 2014-02-26 Tom Tromey <tromey@redhat.com>
8459 * ada-lang.c (ada_update_initial_language): Update.
8460 (ada_main_name, ada_has_this_exception_support): Update.
8461 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8462 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8463 * arm-tdep.c (arm_skip_stub): Update.
8464 * auxv.c (ld_so_xfer_auxv): Update.
8465 * avr-tdep.c (avr_scan_prologue): Update.
8466 * ax-gdb.c (gen_var_ref): Update.
8467 * breakpoint.c (struct breakpoint_objfile_data)
8468 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8469 type to bound_minimal_symbol.
8470 (create_overlay_event_breakpoint)
8471 (create_longjmp_master_breakpoint)
8472 (create_std_terminate_master_breakpoint)
8473 (create_exception_master_breakpoint): Update.
8474 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8475 * c-exp.y (classify_name): Update.
8476 * coffread.c (coff_symfile_read): Update.
8477 * common/agent.c (agent_look_up_symbols): Update.
8478 * d-lang.c (d_main_name): Update.
8479 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8480 * dec-thread.c (enable_dec_thread): Update.
8481 * dwarf2loc.c (call_site_to_target_addr): Update.
8482 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8483 * eval.c (evaluate_subexp_standard): Update.
8484 * findvar.c (struct minsym_lookup_data) <result>: Change type
8485 to bound_minimal_symbol.
8487 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8488 * frame.c (inside_main_func): Update.
8489 * frv-tdep.c (frv_frame_this_id): Update.
8490 * gcore.c (call_target_sbrk): Update.
8491 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8492 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8494 * go-lang.c (go_main_name): Update.
8495 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8496 (hppa_hpux_find_import_stub_for_addr): Update.
8497 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8498 Update. Change return type.
8499 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8501 * jit.c (jit_breakpoint_re_set_internal): Update.
8502 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8504 * linux-nat.c (get_signo): Update.
8505 * linux-thread-db.c (inferior_has_bug): Update
8506 * m32c-tdep.c (m32c_return_value)
8507 (m32c_m16c_address_to_pointer): Update.
8508 * m32r-tdep.c (m32r_frame_this_id): Update.
8509 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8510 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8511 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8512 lookup_minimal_symbol. Change return type.
8513 (lookup_minimal_symbol): Remove.
8514 (lookup_bound_minimal_symbol): Update.
8515 (lookup_minimal_symbol_text): Change return type.
8516 (lookup_minimal_symbol_solib_trampoline): Change return type.
8517 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8518 (lookup_minimal_symbol_solib_trampoline): Change return type.
8519 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8520 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8521 (value_nsstring, find_imps): Update.
8522 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8523 * p-lang.c (pascal_main_name): Update.
8524 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8525 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8526 * proc-service.c (ps_pglobal_lookup): Update.
8527 * ravenscar-thread.c (get_running_thread_msymbol): Change
8529 (has_ravenscar_runtime, get_running_thread_id): Update.
8530 * remote.c (remote_check_symbols): Update.
8531 * sol-thread.c (ps_pglobal_lookup): Update.
8532 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8533 * solib-dsbt.c (lm_base): Update.
8534 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8536 * solib-irix.c (locate_base): Update.
8537 * solib-som.c (som_solib_create_inferior_hook)
8538 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8540 * solib-spu.c (spu_enable_break): Update.
8541 * solib-svr4.c (elf_locate_base, enable_break): Update.
8542 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8543 (flush_ea_cache): Update.
8544 * stabsread.c (define_symbol): Update.
8545 * symfile.c (simple_read_overlay_table): Update.
8546 * symtab.c (find_pc_sect_line): Update.
8547 * tracepoint.c (scope_info): Update.
8548 * tui-disasm.c (tui_get_begin_asm_address): Update.
8549 * value.c (value_static_field): Update.
8551 2014-02-26 Tom Tromey <tromey@redhat.com>
8553 * minsyms.c (prim_record_minimal_symbol_full): Use
8554 SET_MSYMBOL_VALUE_ADDRESS.
8555 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8556 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8557 SET_MSYMBOL_VALUE_ADDRESS.
8558 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8559 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8561 2014-02-26 Tom Tromey <tromey@redhat.com>
8563 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8564 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8565 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8566 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8567 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8568 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8569 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8570 * ada-lang.c (ada_main_name): Update.
8571 (ada_lookup_simple_minsym): Update.
8572 (ada_make_symbol_completion_list): Update.
8573 (ada_add_standard_exceptions): Update.
8574 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8575 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8576 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8577 * arm-tdep.c (skip_prologue_function): Update.
8578 (arm_skip_stack_protector, arm_skip_stub): Update.
8579 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8580 (arm_wince_skip_main_prologue): Update.
8581 * auxv.c (ld_so_xfer_auxv): Update.
8582 * avr-tdep.c (avr_scan_prologue): Update.
8583 * ax-gdb.c (gen_var_ref): Update.
8584 * block.c (call_site_for_pc): Update.
8585 * blockframe.c (get_pc_function_start): Update.
8586 (find_pc_partial_function_gnu_ifunc): Update.
8587 * breakpoint.c (create_overlay_event_breakpoint): Update.
8588 (create_longjmp_master_breakpoint): Update.
8589 (create_std_terminate_master_breakpoint): Update.
8590 (create_exception_master_breakpoint): Update.
8591 (resolve_sal_pc): Update.
8592 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8593 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8595 * c-valprint.c (c_val_print): Update.
8596 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8597 * coffread.c (coff_symfile_read): Update.
8598 * common/agent.c (agent_look_up_symbols): Update.
8599 * dbxread.c (find_stab_function_addr): Update.
8600 (end_psymtab): Update.
8601 * dwarf2loc.c (call_site_to_target_addr): Update.
8602 (func_verify_no_selftailcall): Update.
8603 (tailcall_dump): Update.
8604 (call_site_find_chain_1): Update.
8605 (dwarf_expr_reg_to_entry_parameter): Update.
8606 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8607 (elf_gnu_ifunc_resolve_by_got): Update.
8608 * f-valprint.c (info_common_command): Update.
8609 * findvar.c (read_var_value): Update.
8610 * frame.c (get_prev_frame_1): Update.
8611 (inside_main_func): Update.
8612 * frv-tdep.c (frv_skip_main_prologue): Update.
8613 (frv_frame_this_id): Update.
8614 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8615 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8616 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8617 (gnuv3_skip_trampoline): Update.
8618 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8619 (hppa64_hpux_in_solib_call_trampoline): Update.
8620 (hppa_hpux_skip_trampoline_code): Update.
8621 (hppa64_hpux_search_dummy_call_sequence): Update.
8622 (hppa_hpux_find_import_stub_for_addr): Update.
8623 (hppa_hpux_find_dummy_bpaddr): Update.
8624 * hppa-tdep.c (hppa_symbol_address)
8625 (hppa_lookup_stub_minimal_symbol): Update.
8626 * i386-tdep.c (i386_skip_main_prologue): Update.
8627 (i386_pe_skip_trampoline_code): Update.
8628 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8629 * infcall.c (get_function_name): Update.
8630 * infcmd.c (until_next_command): Update.
8631 * jit.c (jit_breakpoint_re_set_internal): Update.
8632 (jit_inferior_init): Update.
8633 * linespec.c (minsym_found): Update.
8634 (add_minsym): Update.
8635 * linux-fork.c (info_checkpoints_command): Update.
8636 * linux-nat.c (get_signo): Update.
8637 * linux-thread-db.c (inferior_has_bug): Update.
8638 * m32c-tdep.c (m32c_return_value): Update.
8639 (m32c_m16c_address_to_pointer): Update.
8640 (m32c_m16c_pointer_to_address): Update.
8641 * m32r-tdep.c (m32r_frame_this_id): Update.
8642 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8643 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8644 * maint.c (maintenance_translate_address): Update.
8645 * minsyms.c (add_minsym_to_hash_table): Update.
8646 (add_minsym_to_demangled_hash_table): Update.
8647 (msymbol_objfile): Update.
8648 (lookup_minimal_symbol): Update.
8649 (iterate_over_minimal_symbols): Update.
8650 (lookup_minimal_symbol_text): Update.
8651 (lookup_minimal_symbol_by_pc_name): Update.
8652 (lookup_minimal_symbol_solib_trampoline): Update.
8653 (lookup_minimal_symbol_by_pc_section_1): Update.
8654 (lookup_minimal_symbol_and_objfile): Update.
8655 (prim_record_minimal_symbol_full): Update.
8656 (compare_minimal_symbols): Update.
8657 (compact_minimal_symbols): Update.
8658 (build_minimal_symbol_hash_tables): Update.
8659 (install_minimal_symbols): Update.
8660 (terminate_minimal_symbol_table): Update.
8661 (find_solib_trampoline_target): Update.
8662 (minimal_symbol_upper_bound): Update.
8663 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8664 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8665 (mips_skip_pic_trampoline_code): Update.
8666 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8667 * objc-lang.c (selectors_info): Update.
8668 (classes_info): Update.
8669 (find_methods): Update.
8670 (find_imps): Update.
8671 (find_objc_msgsend): Update.
8672 * objfiles.c (objfile_relocate1): Update.
8673 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8674 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8675 * p-valprint.c (pascal_val_print): Update.
8676 * parse.c (write_exp_msymbol): Update.
8677 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8678 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8679 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8680 * printcmd.c (build_address_symbolic): Update.
8682 (address_info): Update.
8683 * proc-service.c (ps_pglobal_lookup): Update.
8684 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8685 (find_pc_sect_psymtab): Update.
8686 * python/py-framefilter.c (py_print_frame): Update.
8687 * ravenscar-thread.c (get_running_thread_id): Update.
8688 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8690 * remote.c (remote_check_symbols): Update.
8691 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8692 (rs6000_skip_trampoline_code): Update.
8693 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8694 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8695 * solib-dsbt.c (lm_base): Update.
8696 * solib-frv.c (lm_base): Update.
8698 * solib-irix.c (locate_base): Update.
8699 * solib-som.c (som_solib_create_inferior_hook): Update.
8700 (som_solib_desire_dynamic_linker_symbols): Update.
8701 (link_map_start): Update.
8702 * solib-spu.c (spu_enable_break): Update.
8703 (ocl_enable_break): Update.
8704 * solib-svr4.c (elf_locate_base): Update.
8705 (enable_break): Update.
8706 * spu-tdep.c (spu_get_overlay_table): Update.
8707 (spu_catch_start): Update.
8708 (flush_ea_cache): Update.
8709 * stabsread.c (define_symbol): Update.
8710 (scan_file_globals): Update.
8711 * stack.c (find_frame_funname): Update.
8712 (frame_info): Update.
8713 * symfile.c (simple_read_overlay_table): Update.
8714 (simple_overlay_update): Update.
8715 * symmisc.c (dump_msymbols): Update.
8716 * symtab.c (fixup_section): Update.
8717 (find_pc_sect_line): Update.
8718 (skip_prologue_sal): Update.
8719 (search_symbols): Update.
8720 (print_msymbol_info): Update.
8721 (rbreak_command): Update.
8722 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8723 (completion_list_objc_symbol): Update.
8724 (default_make_symbol_completion_list_break_on): Update.
8725 * tracepoint.c (scope_info): Update.
8726 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8727 (tui_get_begin_asm_address): Update.
8728 * valops.c (find_function_in_inferior): Update.
8729 * value.c (value_static_field): Update.
8730 (value_fn_field): Update.
8732 2014-02-26 Tom Tromey <tromey@redhat.com>
8734 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8735 bound minimal symbols. Move code that knows about minsym
8737 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8739 * minsyms.h (minimal_symbol_upper_bound): Declare.
8740 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8741 minimal_symbol_upper_bound.
8743 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8745 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8746 Use the type's name if its basic type does not have a tag.
8748 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8750 * dwarf2read.c (read_subrange_type): Add comment.
8752 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8754 * dwarf2read.c (update_enumeration_type_from_children): New
8755 function, mostly extracted from process_structure_scope.
8756 (read_enumeration_type): Call update_enumeration_type_from_children.
8757 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8758 and flag_flag_enum fields.
8760 2014-02-26 Pedro Alves <palves@redhat.com>
8762 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8763 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8764 to_xfer_partial method.
8766 2014-02-26 Pedro Alves <palves@redhat.com>
8768 * target.c (complete_target_initialization): Don't install
8769 default_xfer_partial as to_xfer_partial hook.
8771 (update_current_target): Don't INHERIT nor de_fault
8772 deprecated_xfer_memory. Delete de_fault macro.
8773 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8774 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8775 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8778 2014-02-26 Pedro Alves <palves@redhat.com>
8780 * go32-nat.c (my_write_child): New function.
8781 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8782 (go32_xfer_partial): New function.
8783 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8784 Instead install a to_xfer_partial hook.
8786 2014-02-26 Pedro Alves <palves@redhat.com>
8788 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8789 to_xfer_partial helper. Rewrite.
8790 (procfs_xfer_partial): New function.
8791 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8792 Install a to_xfer_partial hook.
8794 2014-02-26 Pedro Alves <palves@redhat.com>
8796 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8797 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8798 (m32r_xfer_partial): New function.
8799 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8800 Install a to_xfer_partial hook.
8802 2014-02-26 Pedro Alves <palves@redhat.com>
8804 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8806 (mips_xfer_partial): New function.
8807 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8808 hook. Install a to_xfer_partial hook.
8810 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8812 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8813 * gdbtypes.c (create_array_type_with_stride): New function,
8814 renaming create_array_type, but with an added parameter
8815 called "bit_stride".
8816 (create_array_type): Re-implement using
8817 create_array_type_with_stride.
8818 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8819 and DW_AT_bit_stride attributes.
8821 2014-02-26 Pedro Alves <palves@redhat.com>
8823 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8824 task-specific breakpoints.
8826 2014-02-25 Pedro Alves <palves@redhat.com>
8828 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8829 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8831 2014-02-25 Stan Shebs <stan@codesourcery.com>
8833 * defs.h: Annotate comments for Doxygen.
8835 2014-02-25 Tom Tromey <tromey@redhat.com>
8837 * target.h (target_ignore): Don't declare.
8838 * target.c (target_ignore): Remove.
8840 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8843 * auto-load.c (auto_load_objfile_script_1): Change filename to
8846 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8848 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8849 documentation. Adjust prototype to match the target_ops
8850 to_xfer_partial method. Adjust implementation accordingly.
8852 2014-02-25 Hui Zhu <hui@codesourcery.com>
8854 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8857 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8859 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8860 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8861 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8862 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8863 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8864 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8865 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8866 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8868 (rl78_register_type): Use a data pointer type for SP and
8869 new pseudo registers mentioned above. Use a 16 bit integer
8870 type for all other register pairs.
8871 (rl78_register_name, rl78_g10_register_name): Update for
8872 new pseudo registers.
8873 (rl78_pseudo_register_read): Likewise.
8874 (rl78_pseudo_register_write): Likewise.
8875 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8876 to the newly added pseudo registers.
8878 2014-02-24 Doug Evans <dje@google.com>
8880 * value.c (record_latest_value): Fix comment.
8881 * printcmd.c (print_command_1): Remove code to handle -1 return from
8882 record_latest_value.
8884 2014-02-24 Pedro Alves <palves@redhat.com>
8886 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8887 deprecated_xfer_memory hook.
8888 (procfs_xfer_partial): Call procfs_xfer_memory instead
8889 of the deprecated_xfer_memory target hook.
8890 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8893 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8895 * windows-nat.c (windows_xfer_shared_libraries): Return
8896 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8897 requested object is TARGET_OBJECT_LIBRARIES.
8899 2014-02-24 Yao Qi <yao@codesourcery.com>
8901 * target.h (enum target_xfer_status)
8902 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8903 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8905 * corefile.c (memory_error_message): User updated.
8906 * exec.c (section_table_read_available_memory): Likewise.
8907 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8908 * target.c (target_xfer_status_to_string): Likewise.
8909 (raw_memory_xfer_partial): Likewise.
8910 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8911 * valops.c (read_value_memory): Likewise.
8912 * exec.h: Update comments.
8914 2014-02-24 Yao Qi <yao@codesourcery.com>
8916 * target.c (target_xfer_status_to_string): Rename argument err
8918 * target.h (target_xfer_status_to_string): Update declaration.
8919 Replace target_xfer_error_to_string with
8920 target_xfer_status_to_string in comment.
8922 2014-02-24 Yao Qi <yao@codesourcery.com>
8924 * mips-linux-nat.c (super_close): Update its type.
8925 (mips_linux_close): Pass 'self' to super_close.
8927 2014-02-24 Yao Qi <yao@codesourcery.com>
8929 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8930 * corefile.c (read_memory): Adjusted.
8931 * target.c (target_write_with_progress): Adjusted.
8933 2014-02-23 Yao Qi <yao@codesourcery.com>
8937 2013-10-25 Yao Qi <yao@codesourcery.com>
8939 * remote.c (remote_traceframe_info): Return early if
8940 traceframe is not selected.
8942 2013-07-19 Yao Qi <yao@codesourcery.com>
8944 * target.c (update_current_target): Change the default action
8945 of 'to_traceframe_info' from tcomplain to return_zero.
8946 * target.h (struct target_ops) <to_traceframe_info>: Add more
8949 2014-02-23 Yao Qi <yao@codesourcery.com>
8951 * valops.c (read_value_memory): Rewrite it. Call
8952 target_xfer_partial in a loop.
8953 * exec.h (section_table_available_memory): Remove declaration.
8954 Move comments to ...
8955 * exec.c (section_table_available_memory): ... here. Make it
8958 2014-02-23 Yao Qi <yao@codesourcery.com>
8960 * exec.c (section_table_read_available_memory): New function.
8961 * exec.h (section_table_read_available_memory): Declare.
8962 * ctf.c (ctf_xfer_partial): Call
8963 section_table_read_available_memory.
8964 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8966 2014-02-23 Yao Qi <yao@codesourcery.com>
8968 * ctf.c (ctf_xfer_partial): Move code to ...
8969 * exec.c (exec_read_partial_read_only): ... it. New function.
8970 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8971 * tracefile.c: Include "exec.h".
8972 * exec.h (exec_read_partial_read_only): Declare.
8974 2014-02-23 Yao Qi <yao@codesourcery.com>
8976 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8977 (tfile_has_memory): Remove.
8978 (init_tfile_ops): Don't set fields to_has_all_memory and
8979 to_has_memory of tfile_ops.
8980 * tracefile.c (tracefile_has_all_memory): New function.
8981 (tracefile_has_memory): New function.
8982 (init_tracefile_ops): Initialize fields to_has_all_memory and
8983 to_has_memory of 'ops'.
8985 2014-02-23 Yao Qi <yao@codesourcery.com>
8987 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8988 (ctf_thread_alive, ctf_get_trace_status): Remove.
8989 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8991 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8992 (tfile_has_stack, tfile_has_registers): Remove.
8993 (tfile_thread_alive): Remove.
8994 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8996 * tracefile.c (tracefile_has_stack): New function.
8997 (tracefile_has_registers): New function.
8998 (tracefile_thread_alive): New function.
8999 (tracefile_get_trace_status): New function.
9000 (init_tracefile_ops): New function.
9001 * tracefile.h (init_tracefile_ops): Declare.
9003 2014-02-23 Yao Qi <yao@codesourcery.com>
9005 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9006 (O_LARGEFILE): Likewise.
9007 (tfile_ops): Likewise.
9008 (TRACE_HEADER_SIZE): Likewise.
9009 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9010 (cur_data_size): Likewise.
9011 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9012 (tfile_close, tfile_files_info): Likewise.
9013 (tfile_get_trace_status): Likewise.
9014 (tfile_get_tracepoint_status): Likewise.
9015 (tfile_get_traceframe_address): Likewise.
9016 (tfile_trace_find, match_blocktype): Likewise.
9017 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9018 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9019 (tfile_get_trace_state_variable_value): Likewise.
9020 (tfile_has_all_memory, tfile_has_memory): Likewise.
9021 (tfile_has_stack, tfile_has_registers): Likewise.
9022 (tfile_thread_alive, build_traceframe_info): Likewise.
9023 (tfile_traceframe_info, init_tfile_ops): Likewise.
9024 (_initialize_tracepoint): Don't call init_tfile_ops
9025 and add_target_with_completer.
9026 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9027 exec.h, completer.h and filenames.h.
9028 (_initialize_tracefile_tfile): New function.
9030 2014-02-23 Yao Qi <yao@codesourcery.com>
9032 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9034 (HFILES_NO_SRCDIR): Add tracefile.h.
9035 * ctf.c: Include "tracefile.h".
9036 * tracefile.h: New file.
9037 * tracefile.c: New file
9038 * tracefile-tfile.c: New file.
9039 * tracepoint.c: Include "tracefile.h".
9040 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9041 (stop_reason_names): Add const.
9042 (trace_file_writer_xfree): Move it to tracefile.c.
9043 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9044 (trace_save_ctf): Likewise.
9045 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9046 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9047 (tfile_write_header, tfile_write_regblock_type): Likewise.
9048 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9049 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9050 (tfile_write_raw_data, tfile_end): Likewise.
9051 (tfile_trace_file_writer_new): Likewise.
9052 (free_uploaded_tp): Make it extern.
9053 (free_uploaded_tsv): Make it extern.
9054 (_initialize_tracepoint): Move code to register command 'tsave'
9056 * tracepoint.h (stop_reason_names): Declare.
9057 (struct trace_frame_write_ops): Move it to tracefile.h.
9058 (struct trace_file_write_ops): Likewise.
9059 (struct trace_file_writer): Likewise.
9060 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9062 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9065 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9067 (get_cores_used_by_process): New parameter num_cores, use it.
9068 (linux_xfer_osdata_processes): Pass num_cores to it.
9069 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9072 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9074 * target.c (memory_xfer_partial): Fix length arg in call to
9075 breakpoint_xfer_memory.
9077 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9080 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9081 number comes after the + or - signs. Adjust length of register
9082 name to be extracted.
9084 2014-02-20 Tom Tromey <tromey@redhat.com>
9086 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9087 (ada_varobj_ops): Mark "extern".
9089 2014-02-20 Tom Tromey <tromey@redhat.com>
9091 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9093 2014-02-20 Doug Evans <xdje42@gmail.com>
9095 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9096 All callers updated.
9097 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9098 All callers updated.
9099 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9100 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9102 2014-02-20 lin zuojian <manjian2006@gmail.com>
9103 Joel Brobecker <brobecker@adacore.com>
9104 Doug Evans <xdje42@gmail.com>
9107 * dwarf2read.c (struct die_info): New member in_process.
9108 (reset_die_in_process): New function.
9109 (process_die): Set it at the start, reset when returning.
9110 (inherit_abstract_dies): Only call process_die if origin_child_die
9111 not already being processed.
9113 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9115 * windows-nat.c (handle_unload_dll): Add function documentation.
9116 (do_initial_windows_stuff): Add comment explaining why we wait
9117 until after inferior initialization has finished before
9118 processing all DLLs.
9120 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9122 * windows-nat.c (get_module_name): Delete.
9123 (windows_get_exec_module_filename): New function, mostly
9124 inspired from get_module_name.
9125 (windows_pid_to_exec_file): Replace call to get_module_name
9126 by call to windows_get_exec_module_filename.
9128 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9130 * windows-nat.c (handle_load_dll): Rewrite this function's
9131 introductory comment. Remove code using get_module_name
9132 to get the DLL's name.
9134 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9136 * windows-nat.c (get_windows_debug_event): Ignore
9137 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9138 if windows_initialization_done == 0.
9139 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9140 Adjust implementation to always load all DLLs.
9141 (do_initial_windows_stuff): Replace call to
9142 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9144 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9146 * windows-nat.c (_initialize_windows_nat): Deprecate the
9147 "dll-symbols" command. Turn the "add-shared-symbol-files"
9148 and "assf" aliases into commands, and deprecate them as well.
9149 * NEWS: Add entry explaining that "dll-symbols" and its two
9150 aliases are now deprecated.
9152 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9154 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9155 new-line in debug string. Remove trailing spaces.
9157 2014-02-19 Stan Shebs <stan@codesourcery.com>
9159 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9161 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9163 * NEWS: Add entry for the new feature
9164 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9167 2014-02-19 Stan Shebs <stan@codesourcery.com>
9169 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9171 2014-02-19 Pedro Alves <palves@redhat.com>
9173 * common/ptid.h (struct ptid): Mention that process_stratum
9174 targets should prefer ptid.lwp.
9176 2014-02-19 Pedro Alves <palves@redhat.com>
9178 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9179 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9180 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9181 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9182 store remote thread ids rather than ptid.tid.
9183 (_initialize_remote): Adjust.
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * target.c (target_get_unwinder): Rewrite.
9188 (target_get_tailcall_unwinder): Rewrite.
9189 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9190 (record_btrace_to_get_tailcall_unwinder): New function.
9191 (init_record_btrace_ops): Update.
9192 * target.h (struct target_ops) <to_get_unwinder,
9193 to_get_tailcall_unwinder>: Now function pointers. Use
9194 TARGET_DEFAULT_RETURN.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9200 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9204 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9206 * target-delegates.c: Rebuild.
9207 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9208 TARGET_DEFAULT_FUNC.
9209 * target.c (default_target_decr_pc_after_break): Rename from
9210 forward_target_decr_pc_after_break. Simplify.
9211 (target_decr_pc_after_break): Rely on delegation.
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9215 * target.c (update_current_target): Do not INHERIT to_doc or
9216 to_magic. Do not de_fault to_open or to_close.
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9220 * gcore.h (objfile_find_memory_regions): Declare.
9221 * gcore.c (objfile_find_memory_regions): No longer static. Add
9223 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9224 * exec.c: Include gcore.h.
9225 (exec_set_find_memory_regions): Remove.
9226 (exec_find_memory_regions): Remove.
9227 (exec_do_find_memory_regions): Remove.
9228 (init_exec_ops): Update.
9229 * defs.h (exec_set_find_memory_regions): Remove.
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9233 * target-delegates.c: Rebuild.
9234 * target.h (struct target_ops) <to_extra_thread_info,
9235 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9236 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9237 not 0, in TARGET_DEFAULT_RETURN.
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9241 * target.c (complete_target_initialization): Remove casts. Use
9242 return_zero_has_execution.
9243 (return_zero): Add "ignore" argument.
9244 (return_zero_has_execution): New function.
9245 (init_dummy_target): Remove casts. Use
9246 return_zero_has_execution.
9248 2014-02-19 Tom Tromey <tromey@redhat.com>
9250 * target.c (update_current_target): Update comments. Do not
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9255 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9257 * corelow.c (core_read_description): Delegate when needed.
9258 * remote.c (remote_read_description): Delegate when needed.
9259 * target-delegates.c: Rebuild.
9260 * target.c (target_read_description): Rewrite.
9261 * target.h (struct target_ops) <to_read_description>: Update
9262 comment. Use TARGET_DEFAULT_RETURN.
9264 2014-02-19 Tom Tromey <tromey@redhat.com>
9266 * target-delegates.c: Rebuild.
9267 * target.c (update_current_target): Don't inherit or default
9269 (find_default_run_target): Check against delegate_can_run.
9270 * target.h (struct target_ops) <to_can_run>: Use
9271 TARGET_DEFAULT_RETURN.
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * target-delegates.c: Rebuild.
9276 * target.c (target_disconnect): Unconditionally delegate.
9277 * target.h (struct target_ops) <to_disconnect>: Use
9278 TARGET_DEFAULT_NORETURN.
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9282 * record.c (record_stop): Unconditionally delegate.
9283 * target-delegates.c: Rebuild.
9284 * target.c (target_stop_recording): Unconditionally delegate.
9285 * target.h (struct target_ops) <to_stop_recording>: Use
9286 TARGET_DEFAULT_IGNORE.
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9290 * target-delegates.c: Rebuild.
9291 * target.c (target_enable_btrace): Unconditionally delegate.
9292 * target.h (struct target_ops) <to_enable_btrace>: Use
9293 TARGET_DEFAULT_NORETURN.
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * target-delegates.c: Rebuild.
9298 * target.c (target_read_btrace): Unconditionally delegate.
9299 * target.h (struct target_ops) <to_read_btrace>: Use
9300 TARGET_DEFAULT_NORETURN.
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * target-delegates.c: Rebuild.
9305 * target.c (target_teardown_btrace): Unconditionally delegate.
9306 * target.h (struct target_ops) <to_teardown_btrace>: Use
9307 TARGET_DEFAULT_NORETURN.
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9311 * target-delegates.c: Rebuild.
9312 * target.c (target_disable_btrace): Unconditionally delegate.
9313 * target.h (struct target_ops) <to_disable_btrace>: Use
9314 TARGET_DEFAULT_NORETURN.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target-delegates.c: Rebuild.
9319 * target.c (default_search_memory): New function.
9320 (simple_search_memory): Update comment.
9321 (target_search_memory): Unconditionally delegate.
9322 * target.h (struct target_ops) <to_search_memory>: Use
9323 TARGET_DEFAULT_FUNC.
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9327 * auxv.c (default_auxv_parse): No longer static.
9328 (target_auxv_parse): Unconditionally delegate.
9329 * auxv.h (default_auxv_parse): Declare.
9330 * target-delegates.c: Rebuild.
9331 * target.c: Include auxv.h.
9332 * target.h (struct target_ops) <to_auxv_parse>: Use
9333 TARGET_DEFAULT_FUNC.
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9337 * target-delegates.c: Rebuild.
9338 * target.c (target_memory_map): Unconditionally delegate.
9339 * target.h (struct target_ops) <to_memory_map>: Use
9340 TARGET_DEFAULT_RETURN.
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9344 * target-delegates.c: Rebuild.
9345 * target.c (target_thread_alive): Unconditionally delegate.
9346 * target.h (struct target_ops) <to_thread_alive>: Use
9347 TARGET_DEFAULT_RETURN.
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9351 * target-delegates.c: Rebuild.
9352 * target.c (target_save_record): Unconditionally delegate.
9353 * target.h (struct target_ops) <to_save_record>: Use
9354 TARGET_DEFAULT_NORETURN.
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9358 * target-delegates.c: Rebuild.
9359 * target.c (target_delete_record): Unconditionally delegate.
9360 * target.h (struct target_ops) <to_delete_record>: Use
9361 TARGET_DEFAULT_NORETURN.
9363 2014-02-19 Tom Tromey <tromey@redhat.com>
9365 * target-delegates.c: Rebuild.
9366 * target.c (target_record_is_replaying): Unconditionally
9368 * target.h (struct target_ops) <to_record_is_replaying>: Use
9369 TARGET_DEFAULT_RETURN.
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9373 * target-delegates.c: Rebuild.
9374 * target.c (target_goto_record_begin): Unconditionally delegate.
9375 * target.h (struct target_ops) <to_goto_record_begin>: 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_end): Unconditionally delegate.
9382 * target.h (struct target_ops) <to_goto_record_end>: Use
9383 TARGET_DEFAULT_NORETURN.
9385 2014-02-19 Tom Tromey <tromey@redhat.com>
9387 * target-delegates.c: Rebuild.
9388 * target.c (target_goto_record): Unconditionally delegate.
9389 * target.h (struct target_ops) <to_goto_record>: 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): Unconditionally delegate.
9396 * target.h (struct target_ops) <to_insn_history>: 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_from): Unconditionally delegate.
9403 * target.h (struct target_ops) <to_insn_history_from>: Use
9404 TARGET_DEFAULT_NORETURN.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target-delegates.c: Rebuild.
9409 * target.c (target_insn_history_range): Unconditionally delegate.
9410 * target.h (struct target_ops) <to_insn_history_range>: 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): Unconditionally delegate.
9417 * target.h (struct target_ops) <to_call_history>: 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_from): Unconditionally delegate.
9424 * target.h (struct target_ops) <to_call_history_from>: Use
9425 TARGET_DEFAULT_NORETURN.
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target-delegates.c: Rebuild.
9430 * target.c (target_call_history_range): Unconditionally delegate.
9431 * target.h (struct target_ops) <to_call_history_range>: Use
9432 TARGET_DEFAULT_NORETURN.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target-delegates.c: Rebuild.
9437 * target.c (target_verify_memory): Unconditionally delegate.
9438 * target.h (struct target_ops) <to_verify_memory>: Use
9439 TARGET_DEFAULT_NORETURN.
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * target-delegates.c: Rebuild.
9444 * target.c (target_core_of_thread): Unconditionally delegate.
9445 * target.h (struct target_ops) <to_core_of_thread>: Use
9446 TARGET_DEFAULT_RETURN.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * target-delegates.c: Rebuild.
9451 * target.c (target_flash_done): Unconditionally delegate.
9452 * target.h (struct target_ops) <to_flash_done>: Use
9453 TARGET_DEFAULT_NORETURN.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * target-delegates.c: Rebuild.
9458 * target.c (target_flash_erase): Unconditionally delegate.
9459 * target.h (struct target_ops) <to_flash_erase>: Use
9460 TARGET_DEFAULT_NORETURN.
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target-delegates.c: Rebuild.
9465 * target.c (target_get_section_table): Unconditionally delegate.
9466 * target.h (struct target_ops) <to_get_section_table>: Use
9467 TARGET_DEFAULT_RETURN.
9469 2014-02-19 Tom Tromey <tromey@redhat.com>
9471 * target-delegates.c: Rebuild.
9472 * target.c (target_pid_to_str): Unconditionally delegate.
9473 (init_dummy_target): Don't initialize to_pid_to_str.
9474 (default_pid_to_str): Rename from dummy_pid_to_str.
9475 * target.h (struct target_ops) <to_pid_to_str>: Use
9476 TARGET_DEFAULT_FUNC.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * target-delegates.c: Rebuild.
9481 * target.c (target_find_new_threads): Unconditionally delegate.
9482 * target.h (struct target_ops) <to_find_new_threads>: Use
9483 TARGET_DEFAULT_RETURN.
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9487 * target-delegates.c: Rebuild.
9488 * target.c (target_program_signals): Unconditionally delegate.
9489 * target.h (struct target_ops) <to_program_signals>: Use
9490 TARGET_DEFAULT_IGNORE.
9492 2014-02-19 Tom Tromey <tromey@redhat.com>
9494 * target-delegates.c: Rebuild.
9495 * target.c (target_pass_signals): Unconditionally delegate.
9496 * target.h (struct target_ops) <to_pass_signals>: Use
9497 TARGET_DEFAULT_IGNORE.
9499 2014-02-19 Tom Tromey <tromey@redhat.com>
9501 * target-delegates.c: Rebuild.
9502 * target.c (default_mourn_inferior): New function.
9503 (target_mourn_inferior): Unconditionally delegate.
9504 * target.h (struct target_ops) <to_mourn_inferior>: Use
9505 TARGET_DEFAULT_FUNC.
9507 2014-02-19 Tom Tromey <tromey@redhat.com>
9509 * target-delegates.c: Rebuild.
9510 * target.c (default_follow_fork): New function.
9511 (target_follow_fork): Unconditionally delegate.
9512 * target.h (struct target_ops) <to_follow_fork>: Use
9513 TARGET_DEFAULT_FUNC.
9515 2014-02-19 Tom Tromey <tromey@redhat.com>
9517 * target-delegates.c: Rebuild.
9518 * target.c (target_kill): Unconditionally delegate.
9519 * target.h (struct target_ops) <to_kill>: Use
9520 TARGET_DEFAULT_NORETURN.
9522 2014-02-19 Tom Tromey <tromey@redhat.com>
9524 * target-delegates.c: Rebuild.
9525 * target.c (target_masked_watch_num_registers): Unconditionally
9527 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9528 Use TARGET_DEFAULT_RETURN.
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * target-delegates.c: Rebuild.
9533 * target.c (target_remove_mask_watchpoint): Unconditionally
9535 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9536 TARGET_DEFAULT_RETURN.
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9540 * target-delegates.c: Rebuild.
9541 * target.c (target_insert_mask_watchpoint): Unconditionally
9543 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9544 TARGET_DEFAULT_RETURN.
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9548 * target-delegates.c: Rebuild.
9549 * target.c (target_ranged_break_num_registers): Unconditionally
9551 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9552 Use TARGET_DEFAULT_RETURN.
9554 2014-02-19 Tom Tromey <tromey@redhat.com>
9556 * target-delegates.c: Rebuild.
9557 * target.c (target_fetch_registers): Unconditionally delegate.
9558 * target.h (struct target_ops) <to_fetch_registers>: Use
9559 TARGET_DEFAULT_NORETURN.
9561 2014-02-19 Tom Tromey <tromey@redhat.com>
9563 * target-delegates.c: Rebuild.
9564 * target.c (update_current_target): Don't inherit or default
9566 * target.h (struct target_ops) <to_stop>: Use
9567 TARGET_DEFAULT_IGNORE.
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9571 * target-delegates.c: Rebuild.
9572 * target.c (update_current_target): Don't inherit or default
9573 to_can_run_breakpoint_commands.
9574 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9575 Use TARGET_DEFAULT_RETURN.
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9579 * target-delegates.c: Rebuild.
9580 * target.c (update_current_target): Don't inherit or default
9581 to_supports_evaluation_of_breakpoint_conditions.
9582 * target.h (struct target_ops)
9583 <to_supports_evaluation_of_breakpoint_conditions>: Use
9584 TARGET_DEFAULT_RETURN.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target-delegates.c: Rebuild.
9589 * target.c (update_current_target): Don't inherit or default
9590 to_augmented_libraries_svr4_read.
9591 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9592 Use TARGET_DEFAULT_RETURN.
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9596 * target-delegates.c: Rebuild.
9597 * target.c (update_current_target): Don't inherit or default
9599 * target.h (struct target_ops) <to_can_use_agent>: Use
9600 TARGET_DEFAULT_RETURN.
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9604 * target-delegates.c: Rebuild.
9605 * target.c (update_current_target): Don't inherit or default
9607 * target.h (struct target_ops) <to_use_agent>: Use
9608 TARGET_DEFAULT_NORETURN.
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9612 * target-delegates.c: Rebuild.
9613 * target.c (update_current_target): Don't inherit or default
9615 (return_null): Remove.
9616 * target.h (struct target_ops) <to_traceframe_info>: Use
9617 TARGET_DEFAULT_RETURN.
9619 2014-02-19 Tom Tromey <tromey@redhat.com>
9621 * target-delegates.c: Rebuild.
9622 * target.c (update_current_target): Don't inherit or default
9623 to_static_tracepoint_markers_by_strid.
9624 * target.h (struct target_ops)
9625 <to_static_tracepoint_markers_by_strid>: Use
9626 TARGET_DEFAULT_NORETURN.
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9630 * target-delegates.c: Rebuild.
9631 * target.c (update_current_target): Don't inherit or default
9632 to_static_tracepoint_marker_at.
9633 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9634 Use TARGET_DEFAULT_RETURN.
9636 2014-02-19 Tom Tromey <tromey@redhat.com>
9638 * target-delegates.c: Rebuild.
9639 * target.c (update_current_target): Don't inherit or default
9641 * target.h (struct target_ops) <to_set_permissions>: Use
9642 TARGET_DEFAULT_IGNORE.
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9646 * target-delegates.c: Rebuild.
9647 * target.c (update_current_target): Don't inherit or default
9649 * target.h (struct target_ops) <to_get_tib_address>: Use
9650 TARGET_DEFAULT_NORETURN.
9652 2014-02-19 Tom Tromey <tromey@redhat.com>
9654 * target-delegates.c: Rebuild.
9655 * target.c (update_current_target): Don't inherit or default
9657 * target.h (struct target_ops) <to_set_trace_notes>: Use
9658 TARGET_DEFAULT_RETURN.
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9662 * target-delegates.c: Rebuild.
9663 * target.c (update_current_target): Don't initialize
9664 to_set_trace_buffer_size.
9665 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9666 TARGET_DEFAULT_IGNORE.
9668 2014-02-19 Tom Tromey <tromey@redhat.com>
9670 * target-delegates.c: Rebuild.
9671 * target.c (update_current_target): Don't inherit or default
9672 to_set_circular_trace_buffer.
9673 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9674 TARGET_DEFAULT_IGNORE.
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9678 * target-delegates.c: Rebuild.
9679 * target.c (update_current_target): Don't inherit or default
9680 to_set_disconnected_tracing.
9681 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9682 TARGET_DEFAULT_IGNORE.
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9686 * target-delegates.c: Rebuild.
9687 * target.c (update_current_target): Don't inherit or default
9688 to_get_min_fast_tracepoint_insn_len.
9689 (return_minus_one): Remove.
9690 * target.h (struct target_ops)
9691 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9693 2014-02-19 Tom Tromey <tromey@redhat.com>
9695 * target-delegates.c: Rebuild.
9696 * target.c (update_current_target): Don't inherit or default
9697 to_get_raw_trace_data.
9698 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9699 TARGET_DEFAULT_NORETURN.
9701 2014-02-19 Tom Tromey <tromey@redhat.com>
9703 * target-delegates.c: Rebuild.
9704 * target.c (update_current_target): Don't inherit or default
9705 to_upload_trace_state_variables.
9706 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9707 Use TARGET_DEFAULT_RETURN.
9709 2014-02-19 Tom Tromey <tromey@redhat.com>
9711 * target-delegates.c: Rebuild.
9712 * target.c (update_current_target): Don't inherit or default
9713 to_upload_tracepoints.
9714 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9715 TARGET_DEFAULT_RETURN.
9717 2014-02-19 Tom Tromey <tromey@redhat.com>
9719 * target-delegates.c: Rebuild.
9720 * target.c (update_current_target): Don't inherit or default
9722 * target.h (struct target_ops) <to_save_trace_data>: Use
9723 TARGET_DEFAULT_NORETURN.
9725 2014-02-19 Tom Tromey <tromey@redhat.com>
9727 * target-delegates.c: Rebuild.
9728 * target.c (update_current_target): Don't inherit or default
9729 to_get_trace_state_variable_value.
9730 * target.h (struct target_ops)
9731 <to_get_trace_state_variable_value>: 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): Use TARGET_DEFAULT_RETURN.
9740 2014-02-19 Tom Tromey <tromey@redhat.com>
9742 * target-delegates.c: Rebuild.
9743 * target.c (update_current_target): Don't inherit or default
9745 * target.h (struct target_ops) <to_trace_stop>: Use
9746 TARGET_DEFAULT_NORETURN.
9748 2014-02-19 Tom Tromey <tromey@redhat.com>
9750 * target-delegates.c: Rebuild.
9751 * target.c (update_current_target): Don't inherit or default
9752 to_get_tracepoint_status.
9753 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9754 TARGET_DEFAULT_NORETURN.
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9758 * target-delegates.c: Rebuild.
9759 * target.c (update_current_target): Don't inherit or default
9760 to_get_trace_status.
9761 * target.h (struct target_ops) <to_get_trace_status>: Use
9762 TARGET_DEFAULT_RETURN.
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9766 * target-delegates.c: Rebuild.
9767 * target.c (update_current_target): Don't inherit or default
9769 * target.h (struct target_ops) <to_trace_start>: Use
9770 TARGET_DEFAULT_NORETURN.
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9774 * target-delegates.c: Rebuild.
9775 * target.c (update_current_target): Don't inherit or default
9776 to_trace_set_readonly_regions.
9777 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9778 Use TARGET_DEFAULT_NORETURN.
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9782 * target-delegates.c: Rebuild.
9783 * target.c (update_current_target): Don't inherit or default
9784 to_disable_tracepoint.
9785 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9786 TARGET_DEFAULT_NORETURN.
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9790 * target-delegates.c: Rebuild.
9791 * target.c (update_current_target): Don't inherit or default
9792 to_enable_tracepoint.
9793 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9794 TARGET_DEFAULT_NORETURN.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target-delegates.c: Rebuild.
9799 * target.c (update_current_target): Don't inherit or default
9800 to_download_trace_state_variable.
9801 * target.h (struct target_ops) <to_download_trace_state_variable>:
9802 Use TARGET_DEFAULT_NORETURN.
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9806 * target-delegates.c: Rebuild.
9807 * target.c (update_current_target): Don't inherit or default
9808 to_can_download_tracepoint.
9809 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9810 TARGET_DEFAULT_RETURN.
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * target-delegates.c: Rebuild.
9815 * target.c (update_current_target): Don't inherit or default
9816 to_download_tracepoint.
9817 * target.h (struct target_ops) <to_download_tracepoint>: Use
9818 TARGET_DEFAULT_NORETURN.
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * target-delegates.c: Rebuild.
9823 * target.c (update_current_target): Don't inherit or default
9825 * target.h (struct target_ops) <to_trace_init>: Use
9826 TARGET_DEFAULT_RETURN.
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9830 * target-delegates.c: Rebuild.
9831 * target.c (update_current_target): Don't inherit or default
9832 to_supports_string_tracing.
9833 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9834 TARGET_DEFAULT_RETURN.
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9838 * target-delegates.c: Rebuild.
9839 * target.c (update_current_target): Don't inherit or default
9840 to_supports_enable_disable_tracepoint.
9841 * target.h (struct target_ops)
9842 <to_supports_enable_disable_tracepoint>: Use
9843 TARGET_DEFAULT_RETURN.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target-delegates.c: Rebuild.
9848 * target.c (update_current_target): Don't inherit or default
9849 to_supports_multi_process.
9850 * target.h (struct target_ops) <to_supports_multi_process>: Use
9851 TARGET_DEFAULT_RETURN.
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9855 * target-delegates.c: Rebuild.
9856 * target.c (update_current_target): Don't inherit or default
9857 to_get_ada_task_ptid.
9858 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9859 TARGET_DEFAULT_FUNC.
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9863 * target-delegates.c: Rebuild.
9864 * target.c (update_current_target): Don't inherit or default
9865 to_thread_architecture.
9866 * target.h (struct target_ops) <to_thread_architecture>: Use
9867 TARGET_DEFAULT_FUNC.
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9871 * target-delegates.c: Rebuild.
9872 * target.c (update_current_target): Don't inherit or default
9873 to_execution_direction.
9874 * target.h (struct target_ops) <to_execution_direction>: Use
9875 TARGET_DEFAULT_FUNC.
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target-delegates.c: Rebuild.
9880 * target.c (update_current_target): Don't inherit or default
9881 to_can_execute_reverse.
9882 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9883 TARGET_DEFAULT_RETURN.
9884 (target_can_execute_reverse): Unconditionally delegate.
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9888 * target-delegates.c: Rebuild.
9889 * target.c (update_current_target): Don't inherit or default
9891 (dummy_goto_bookmark): Remove.
9892 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9893 * target.h (struct target_ops) <to_goto_bookmark>: Use
9894 TARGET_DEFAULT_NORETURN.
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9898 * target-delegates.c: Rebuild.
9899 * target.c (update_current_target): Don't inherit or default
9901 (dummy_get_bookmark): Remove.
9902 (init_dummy_target): Don't inherit or default to_get_bookmark.
9903 * target.h (struct target_ops) <to_get_bookmark>: Use
9904 TARGET_DEFAULT_NORETURN
9906 2014-02-19 Tom Tromey <tromey@redhat.com>
9908 * target-delegates.c: Rebuild.
9909 * target.c (update_current_target): Don't inherit or default
9910 to_make_corefile_notes.
9911 (init_dummy_target): Don't initialize to_make_corefile_notes.
9912 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9913 TARGET_DEFAULT_FUNC.
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9917 * target-delegates.c: Rebuild.
9918 * target.c (update_current_target): Don't inherit or default
9919 to_find_memory_regions.
9920 (init_dummy_target): Don't initialize to_find_memory_regions.
9921 * target.h (struct target_ops) <to_find_memory_regions>: Use
9922 TARGET_DEFAULT_FUNC.
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9926 * target-delegates.c: Rebuild.
9927 * target.c (update_current_target): Don't inherit or default
9929 * target.h (struct target_ops) <to_log_command>: Use
9930 TARGET_DEFAULT_IGNORE.
9931 (target_log_command): Unconditionally delegate.
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9935 * target-delegates.c: Rebuild.
9936 * target.c (update_current_target): Don't inherit or default
9937 to_pid_to_exec_file.
9938 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9939 TARGET_DEFAULT_RETURN.
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9943 * target-delegates.c: Rebuild.
9944 * target.c (update_current_target): Don't inherit or default
9946 (target_thread_name): Unconditionally delegate.
9947 * target.h (struct target_ops) <to_thread_name>: Use
9948 TARGET_DEFAULT_RETURN.
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9952 * target-delegates.c: Rebuild.
9953 * target.c (update_current_target): Don't inherit or default
9954 to_extra_thread_info.
9955 * target.h (struct target_ops) <to_extra_thread_info>: Use
9956 TARGET_DEFAULT_RETURN.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target-delegates.c: Rebuild.
9961 * target.c (update_current_target): Don't inherit or default
9963 * target.h (struct target_ops) <to_has_exited>: Use
9964 TARGET_DEFAULT_RETURN..
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9968 * target-delegates.c: Rebuild.
9969 * target.c (update_current_target): Don't inherit or default
9970 to_set_syscall_catchpoint.
9971 (return_one): Remove.
9972 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9973 TARGET_DEFAULT_RETURN.
9975 2014-02-19 Tom Tromey <tromey@redhat.com>
9977 * target-delegates.c: Rebuild.
9978 * target.c (update_current_target): Don't inherit or default
9979 to_insert_exec_catchpoint.
9980 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9981 TARGET_DEFAULT_RETURN.
9983 2014-01-08 Tom Tromey <tromey@redhat.com>
9985 * target-delegates.c: Rebuild.
9986 * target.c (update_current_target): Don't inherit or default
9987 to_insert_exec_catchpoint.
9988 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9989 TARGET_DEFAULT_RETURN.
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target-delegates.c: Rebuild.
9994 * target.c (update_current_target): Don't inherit or default
9995 to_remove_vfork_catchpoint.
9996 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9997 TARGET_DEFAULT_RETURN.
9999 2014-02-19 Tom Tromey <tromey@redhat.com>
10001 * target-delegates.c: Rebuild.
10002 * target.c (update_current_target): Don't inherit or default
10003 to_insert_vfork_catchpoint.
10004 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10005 TARGET_DEFAULT_RETURN.
10007 2014-02-19 Tom Tromey <tromey@redhat.com>
10009 * target-delegates.c: Rebuild.
10010 * target.c (update_current_target): Don't inherit or default
10011 to_remove_fork_catchpoint.
10012 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10013 TARGET_DEFAULT_RETURN.
10015 2014-02-19 Tom Tromey <tromey@redhat.com>
10017 * target-delegates.c: Rebuild.
10018 * target.c (update_current_target): Don't inherit or default
10019 to_insert_fork_catchpoint.
10020 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10021 TARGET_DEFAULT_RETURN.
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * target-delegates.c: Rebuild.
10026 * target.c (update_current_target): Don't inherit or default
10027 to_post_startup_inferior.
10028 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10029 TARGET_DEFAULT_IGNORE.
10031 2014-02-19 Tom Tromey <tromey@redhat.com>
10033 * target-delegates.c: Rebuild.
10034 * target.c (update_current_target): Don't inherit or default
10036 * target.h (struct target_ops) <to_load>: Use
10037 TARGET_DEFAULT_NORETURN.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * target-delegates.c: Rebuild.
10042 * target.c (update_current_target): Don't inherit or default
10044 * target.h (struct target_ops) <to_terminal_info>: Use
10045 TARGET_DEFAULT_FUNC.
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10049 * target-delegates.c: Rebuild.
10050 * target.c (update_current_target): Don't inherit or default
10051 to_terminal_save_ours.
10052 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10053 TARGET_DEFAULT_IGNORE.
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10057 * target-delegates.c: Rebuild.
10058 * target.c (update_current_target): Don't inherit or default
10060 * target.h (struct target_ops) <to_terminal_ours>: Use
10061 TARGET_DEFAULT_IGNORE.
10063 2014-02-19 Tom Tromey <tromey@redhat.com>
10065 * target-delegates.c: Rebuild.
10066 * target.c (update_current_target): Don't inherit or default
10067 to_terminal_ours_for_output.
10068 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10069 TARGET_DEFAULT_IGNORE.
10071 2014-02-19 Tom Tromey <tromey@redhat.com>
10073 * target-delegates.c: Rebuild.
10074 * target.c (update_current_target): Don't inherit or default
10075 to_terminal_inferior.
10076 * target.h (struct target_ops) <to_terminal_inferior>: Use
10077 TARGET_DEFAULT_IGNORE.
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10081 * target-delegates.c: Rebuild.
10082 * target.c (update_current_target): Don't inherit or default
10084 * target.h (struct target_ops) <to_terminal_init>: Use
10085 TARGET_DEFAULT_IGNORE.
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10089 * target-delegates.c: Rebuild.
10090 * target.c (update_current_target): Don't inherit or default
10091 to_can_accel_watchpoint_condition.
10092 * target.h (struct target_ops)
10093 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10097 * target-delegates.c: Rebuild.
10098 * target.c (update_current_target): Don't inherit or default
10099 to_region_ok_for_hw_watchpoint.
10100 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10101 Use TARGET_DEFAULT_FUNC.
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10105 * target-delegates.c: Rebuild.
10106 * target.c (update_current_target): Don't inherit or default
10107 to_watchpoint_addr_within_range.
10108 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10109 Use TARGET_DEFAULT_FUNC.
10111 2014-02-19 Tom Tromey <tromey@redhat.com>
10113 * target-delegates.c: Rebuild.
10114 * target.c (update_current_target): Don't inherit or default
10115 to_remove_watchpoint.
10116 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10117 TARGET_DEFAULT_NORETURN.
10119 2014-02-19 Tom Tromey <tromey@redhat.com>
10121 * target-delegates.c: Rebuild.
10122 * target.c (update_current_target): Don't inherit or default
10123 to_insert_watchpoint.
10124 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10125 TARGET_DEFAULT_RETURN.
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10129 * target-delegates.c: Rebuild.
10130 * target.c (update_current_target): Don't inherit or default
10131 to_remove_hw_breakpoint.
10132 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10133 TARGET_DEFAULT_RETURN.
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10137 * target-delegates.c: Rebuild.
10138 * target.c (update_current_target): Don't inherit or default
10139 to_insert_hw_breakpoint.
10140 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10141 TARGET_DEFAULT_RETURN.
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10145 * target-delegates.c: Rebuild.
10146 * target.c (update_current_target): Don't inherit or default
10147 to_can_use_hw_breakpoint.
10148 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10149 TARGET_DEFAULT_RETURN.
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target-delegates.c: Rebuild.
10154 * target.c (update_current_target): Don't inherit or default
10156 * target.h (struct target_ops) <to_files_info>: Use
10157 TARGET_DEFAULT_IGNORE.
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * target-delegates.c: Rebuild.
10162 * target.c (update_current_target): Don't inherit or default
10164 * target.h (struct target_ops) <to_store>: Use
10165 TARGET_DEFAULT_NORETURN.
10167 2014-02-19 Tom Tromey <tromey@redhat.com>
10169 * target-delegates.c: Rebuild.
10170 * target.c (update_current_target): Don't inherit or default
10172 * target.h (struct target_ops) <to_post_attach>: Use
10173 TARGET_DEFAULT_IGNORE.
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10177 * target-delegates.c: Rebuild.
10178 * target.c (update_current_target): Don't inherit or default
10180 (default_rcmd): New function.
10181 (do_monitor_command): Unconditionally delegate.
10182 * target.h (struct target_ops) <to_rmcd>: Use
10183 TARGET_DEFAULT_FUNC.
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10187 * target-delegates.c: Rebuild.
10188 * target.c (init_dummy_target): Don't initialize to_attach.
10189 (target_attach): Unconditionally delegate.
10190 * target.h (struct target_ops) <to_attach>: Use
10191 TARGET_DEFAULT_FUNC.
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10195 * target-delegates.c: Rebuild.
10196 * target.c (target_detach): Unconditionally delegate.
10197 (init_dummy_target): Don't initialize to_detach.
10198 * target.h (struct target_ops) <to_detach>: Use
10199 TARGET_DEFAULT_IGNORE.
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10203 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10205 (target_augmented_libraries_svr4_read): Add argument.
10206 * target.c (update_current_target): Update.
10207 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10212 * target.h (struct target_ops) <to_call_history_range>: Add
10214 * target.c (target_call_history_range): Add argument.
10215 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10217 (record_btrace_call_history_from): Update.
10219 2014-02-19 Tom Tromey <tromey@redhat.com>
10221 * target.h (struct target_ops) <to_call_history_from>: Add
10223 * target.c (target_call_history_from): Add argument.
10224 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10229 * target.h (struct target_ops) <to_call_history>: Add argument.
10230 * target.c (target_call_history): Add argument.
10231 * record-btrace.c (record_btrace_call_history): Add 'self'
10234 2014-02-19 Tom Tromey <tromey@redhat.com>
10236 * target.h (struct target_ops) <to_insn_history_range>: Add
10238 * target.c (target_insn_history_range): Add argument.
10239 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10241 (record_btrace_insn_history_from): Update.
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10245 * target.h (struct target_ops) <to_insn_history_from>: Add
10247 * target.c (target_insn_history_from): Add argument.
10248 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10253 * target.h (struct target_ops) <to_insn_history>: Add argument.
10254 * target.c (target_insn_history): Add argument.
10255 * record-btrace.c (record_btrace_insn_history): Add 'self'
10258 2014-02-19 Tom Tromey <tromey@redhat.com>
10260 * target.h (struct target_ops) <to_goto_record>: Add argument.
10261 * target.c (target_goto_record): Add argument.
10262 * record-full.c (record_full_goto): Add 'self' argument.
10263 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10268 * target.c (target_goto_record_end): Add argument.
10269 * record-full.c (record_full_goto_end): Add 'self' argument.
10270 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10274 * target.h (struct target_ops) <to_goto_record_begin>: Add
10276 * target.c (target_goto_record_begin): Add argument.
10277 * record-full.c (record_full_goto_begin): Add 'self' argument.
10278 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10283 * target.h (struct target_ops) <to_record_is_replaying>: Add
10285 * target.c (target_record_is_replaying): Add argument.
10286 * record-full.c (record_full_is_replaying): Add 'self' argument.
10287 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10289 (record_btrace_xfer_partial, record_btrace_store_registers)
10290 (record_btrace_prepare_to_store, record_btrace_resume)
10291 (record_btrace_wait, record_btrace_decr_pc_after_break)
10292 (record_btrace_find_new_threads, record_btrace_thread_alive):
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target.h (struct target_ops) <to_delete_record>: Add argument.
10298 * target.c (target_delete_record): Add argument.
10299 * record-full.c (record_full_delete): Add 'self' argument.
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10303 * target.h (struct target_ops) <to_save_record>: Add argument.
10304 * target.c (target_save_record): Add argument.
10305 * record-full.c (record_full_save): Add 'self' argument.
10306 (record_full_save): Add 'self' argument.
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10310 * target.h (struct target_ops) <to_info_record>: Add argument.
10311 * target.c (target_info_record): Add argument.
10312 * record.c (info_record_command): Add argument.
10313 * record-full.c (record_full_info): Add 'self' argument.
10314 * record-btrace.c (record_btrace_info): Add 'self' argument.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10319 * target.c (target_stop_recording): Add argument.
10320 * record.c (record_stop): Add argument.
10321 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10324 2014-02-19 Tom Tromey <tromey@redhat.com>
10326 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10327 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10328 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10330 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10331 (_initialize_amd64_linux_nat): Use it.
10332 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10333 (_initialize_i386_linux_nat): Use it.
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10337 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10338 * target.c (target_teardown_btrace): Add argument.
10339 * remote.c (remote_teardown_btrace): Add 'self' argument.
10340 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10342 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10345 2014-02-19 Tom Tromey <tromey@redhat.com>
10347 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10348 * target.c (target_disable_btrace): Add argument.
10349 * remote.c (remote_disable_btrace): Add 'self' argument.
10350 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10352 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10355 2014-02-19 Tom Tromey <tromey@redhat.com>
10357 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10358 * target.c (target_enable_btrace): Add argument.
10359 * remote.c (remote_enable_btrace): Add 'self' argument.
10360 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10362 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10365 2014-02-19 Tom Tromey <tromey@redhat.com>
10367 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10368 (target_can_use_agent): Add argument.
10369 * target.c (update_current_target): Update.
10370 * remote.c (remote_can_use_agent): Add 'self' argument.
10371 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10373 2014-02-19 Tom Tromey <tromey@redhat.com>
10375 * target.h (struct target_ops) <to_use_agent>: Add argument.
10376 (target_use_agent): Add argument.
10377 * target.c (update_current_target): Update.
10378 * remote.c (remote_use_agent): Add 'self' argument.
10379 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10381 2014-02-19 Tom Tromey <tromey@redhat.com>
10383 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10384 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10385 (target_traceframe_info): Add argument.
10386 * target.c (update_current_target): Update.
10387 * remote.c (remote_traceframe_info): Add 'self' argument.
10388 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10392 * target.h (target_static_tracepoint_markers_by_strid): Add
10394 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10396 * target.c (update_current_target): Update.
10397 * remote.c (struct target_ops)
10398 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10399 * linux-nat.c (struct target_ops)
10400 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10402 2014-02-19 Tom Tromey <tromey@redhat.com>
10404 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10406 (target_static_tracepoint_marker_at): Add argument.
10407 * target.c (update_current_target): Update.
10408 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10411 2014-02-19 Tom Tromey <tromey@redhat.com>
10413 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10414 (target_set_permissions): Add argument.
10415 * target.c (update_current_target): Update.
10416 * remote.c (remote_set_permissions): Add 'self' argument.
10417 (remote_start_remote): Update.
10419 2014-02-19 Tom Tromey <tromey@redhat.com>
10421 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10422 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10423 (target_get_tib_address): Add argument.
10424 * target.c (update_current_target): Update.
10425 * remote.c (remote_get_tib_address): Add 'self' argument.
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10429 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10430 (target_set_trace_notes): Add argument.
10431 * target.c (update_current_target): Update.
10432 * remote.c (remote_set_trace_notes): Add 'self' argument.
10434 2014-02-19 Tom Tromey <tromey@redhat.com>
10436 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10438 (target_set_trace_buffer_size): Add argument.
10439 * target.c (update_current_target): Update.
10440 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10442 2014-02-19 Tom Tromey <tromey@redhat.com>
10444 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10446 (target_set_circular_trace_buffer): Add argument.
10447 * target.c (update_current_target): Update.
10448 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10453 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10455 (target_set_disconnected_tracing): Add argument.
10456 * target.c (update_current_target): Update.
10457 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10461 * target.h (struct target_ops)
10462 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10463 (target_get_min_fast_tracepoint_insn_len): Add argument.
10464 * target.c (update_current_target): Update.
10465 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10468 2014-02-19 Tom Tromey <tromey@redhat.com>
10470 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10472 (target_get_raw_trace_data): Add argument.
10473 * target.c (update_current_target): Update.
10474 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10478 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10480 (target_upload_trace_state_variables): Add argument.
10481 * target.c (update_current_target): Update.
10482 * remote.c (remote_upload_trace_state_variables): Add 'self'
10484 (remote_start_remote): Update.
10486 2014-02-19 Tom Tromey <tromey@redhat.com>
10488 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10490 (target_upload_tracepoints): Add argument.
10491 * target.c (update_current_target): Update.
10492 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10493 (remote_start_remote): Update.
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10497 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10498 (target_save_trace_data): Add argument.
10499 * target.c (update_current_target): Update.
10500 * remote.c (remote_save_trace_data): Add 'self' argument.
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10504 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10506 * target.h (struct target_ops)
10507 <to_get_trace_state_variable_value>: Add argument.
10508 (target_get_trace_state_variable_value): Add argument.
10509 * target.c (update_current_target): Update.
10510 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10512 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10514 2014-02-19 Tom Tromey <tromey@redhat.com>
10516 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10517 * target.h (struct target_ops) <to_trace_find>: Add argument.
10518 (target_trace_find): Add argument.
10519 * target.c (update_current_target): Update.
10520 * remote.c (remote_trace_find): Add 'self' argument.
10521 * ctf.c (ctf_trace_find): Add 'self' argument.
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10525 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10526 (target_trace_stop): Add argument.
10527 * target.c (update_current_target): Update.
10528 * remote.c (remote_trace_stop): Add 'self' argument.
10530 2014-02-19 Tom Tromey <tromey@redhat.com>
10532 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10533 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10535 (target_get_tracepoint_status): Add argument.
10536 * target.c (update_current_target): Update.
10537 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10539 2014-02-19 Tom Tromey <tromey@redhat.com>
10541 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10542 * target.h (struct target_ops) <to_get_trace_status>: Add
10544 (target_get_trace_status): Add argument.
10545 * target.c (update_current_target): Update.
10546 * remote.c (remote_get_trace_status): Add 'self' argument.
10547 (remote_start_remote, remote_can_download_tracepoint): Update.
10548 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10552 * target.h (struct target_ops) <to_trace_start>: Add argument.
10553 (target_trace_start): Add argument.
10554 * target.c (update_current_target): Update.
10555 * remote.c (remote_trace_start): Add 'self' argument.
10557 2014-02-19 Tom Tromey <tromey@redhat.com>
10559 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10561 (target_trace_set_readonly_regions): Add argument.
10562 * target.c (update_current_target): Update.
10563 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10570 (target_disable_tracepoint): Add argument.
10571 * target.c (update_current_target): Update.
10572 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10576 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10578 (target_enable_tracepoint): Add argument.
10579 * target.c (update_current_target): Update.
10580 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target.h (struct target_ops) <to_download_trace_state_variable>:
10586 (target_download_trace_state_variable): Add argument.
10587 * target.c (update_current_target): Update.
10588 * remote.c (remote_download_trace_state_variable): Add 'self'
10591 2014-02-19 Tom Tromey <tromey@redhat.com>
10593 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10595 (target_can_download_tracepoint): Add argument.
10596 * target.c (update_current_target): Update.
10597 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10599 2014-02-19 Tom Tromey <tromey@redhat.com>
10601 * target.h (struct target_ops) <to_download_tracepoint>: Add
10603 (target_download_tracepoint): Add argument.
10604 * target.c (update_current_target): Update.
10605 * remote.c (remote_download_tracepoint): Add 'self' argument.
10607 2014-02-19 Tom Tromey <tromey@redhat.com>
10609 * target.h (struct target_ops) <to_trace_init>: Add argument.
10610 (target_trace_init): Add argument.
10611 * target.c (update_current_target): Update.
10612 * remote.c (remote_trace_init): Add 'self' argument.
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10616 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10617 * target.c (target_fileio_readlink): Add argument.
10618 * remote.c (remote_hostio_readlink): Add 'self' argument.
10619 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10623 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10624 * target.c (target_fileio_unlink): Add argument.
10625 * remote.c (remote_hostio_unlink): Add 'self' argument.
10626 (remote_file_delete): Update.
10627 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10629 2014-02-19 Tom Tromey <tromey@redhat.com>
10631 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10632 * target.c (target_fileio_close): Add argument.
10633 * remote.c (remote_hostio_close): Add 'self' argument.
10634 (remote_hostio_close_cleanup): Update.
10635 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10637 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10641 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10642 * target.c (target_fileio_pread): Add argument.
10643 * remote.c (remote_hostio_pread): Add 'self' argument.
10644 (remote_bfd_iovec_pread, remote_file_get): Update.
10645 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10649 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10650 * target.c (target_fileio_pwrite): Add argument.
10651 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10652 (remote_file_put): Update.
10653 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10655 2014-02-19 Tom Tromey <tromey@redhat.com>
10657 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10658 * target.c (target_fileio_open): Add argument.
10659 * remote.c (remote_hostio_open): Add 'self' argument.
10660 (remote_bfd_iovec_open): Add 'self' argument.
10661 (remote_file_put): Add 'self' argument.
10662 (remote_file_get): Add 'self' argument.
10663 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10667 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10669 (target_can_run_breakpoint_commands): Add argument.
10670 * target.c (update_current_target): Update.
10671 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10673 (remote_insert_breakpoint): Add 'self' argument.
10674 (remote_insert_hw_breakpoint): Add 'self' argument.
10675 (remote_can_run_breakpoint_commands): Add 'self' argument.
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target.h (struct target_ops)
10680 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10681 (target_supports_evaluation_of_breakpoint_conditions): Add
10683 * target.c (update_current_target): Update.
10684 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10686 (remote_insert_breakpoint): Add 'self' argument.
10687 (remote_insert_hw_breakpoint): Add 'self' argument.
10688 (remote_supports_cond_breakpoints): Add 'self' argument.
10690 2014-02-19 Tom Tromey <tromey@redhat.com>
10692 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10694 (target_supports_string_tracing): Add argument.
10695 * target.c (update_current_target): Update.
10696 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10698 2014-02-19 Tom Tromey <tromey@redhat.com>
10700 * target.h (struct target_ops)
10701 <to_supports_disable_randomization>: Add argument.
10702 * target.c (find_default_supports_disable_randomization): Add
10704 (target_supports_disable_randomization): Add argument.
10705 (find_default_supports_disable_randomization): Add 'self'
10707 * remote.c (extended_remote_supports_disable_randomization): Add
10709 (remote_supports_disable_randomization): Add 'self' argument.
10710 (extended_remote_create_inferior): Update.
10711 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10714 2014-02-19 Tom Tromey <tromey@redhat.com>
10716 * target.h (struct target_ops)
10717 <to_supports_enable_disable_tracepoint>: Add argument.
10718 (target_supports_enable_disable_tracepoint): Add argument.
10719 * target.c (update_current_target): Update.
10720 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10723 2014-02-19 Tom Tromey <tromey@redhat.com>
10725 * target.h (struct target_ops) <to_supports_multi_process>: Add
10727 (target_supports_multi_process): Add argument.
10728 * target.c (update_current_target): Update.
10729 * remote.c (remote_supports_multi_process): Add 'self' argument.
10730 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10732 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10737 * target.h (struct target_ops) <to_execution_direction>: Add
10739 (target_execution_direction): Add argument.
10740 * target.c (default_execution_direction): Add 'self' argument.
10741 * record-full.c (record_full_execution_direction): Add 'self'
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10746 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10748 (target_can_execute_reverse): Add argument.
10749 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10750 * record-full.c (record_full_can_execute_reverse): Add 'self'
10752 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10757 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10758 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10760 (target_get_ada_task_ptid): Add argument.
10761 * target.c (update_current_target): Update.
10762 (default_get_ada_task_ptid): Add 'self' argument.
10763 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10764 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10765 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10767 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10769 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10771 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10773 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10774 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10779 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10780 (target_goto_bookmark): Add argument.
10781 * target.c (dummy_goto_bookmark): Add 'self' argument.
10782 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10784 2014-02-19 Tom Tromey <tromey@redhat.com>
10786 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10787 (target_get_bookmark): Add argument.
10788 * target.c (dummy_get_bookmark): Add 'self' argument.
10789 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10793 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10795 (target_make_corefile_notes): Add argument.
10796 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10797 * procfs.c (procfs_make_note_section): Add 'self' argument.
10798 (procfs_make_note_section): Add 'self' argument.
10799 (procfs_make_note_section): Add 'self' argument.
10800 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10802 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10803 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10804 * exec.c (exec_make_note_section): Add 'self' argument.
10805 (exec_make_note_section): Add 'self' argument.
10807 2014-02-19 Tom Tromey <tromey@redhat.com>
10809 * target.h (struct target_ops) <to_find_memory_regions>: Add
10811 (target_find_memory_regions): Add argument.
10812 * target.c (dummy_find_memory_regions): Add 'self' argument.
10813 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10814 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10815 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10816 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10817 * exec. (exec_do_find_memory_regions): New global.
10818 (exec_set_find_memory_regions): Rewrite.
10819 (exec_find_memory_regions): New function.
10820 (init_exec_ops): Use exec_find_memory_regions.
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10824 * target.h (struct target_ops) <to_supports_non_stop>: Add
10826 * target.c (find_default_supports_non_stop): Add argument.
10827 (target_supports_non_stop): Add argument.
10828 (find_default_supports_non_stop): Add 'self' argument.
10829 * remote.c (remote_supports_non_stop): Add 'self' argument.
10830 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10834 * target.h (struct target_ops) <to_log_command>: Add argument.
10835 (target_log_command): Add argument.
10836 * serial.h (serial_log_command): Add 'self' argument.
10837 * serial.c (serial_log_command): Add 'self' argument.
10839 2014-02-19 Tom Tromey <tromey@redhat.com>
10841 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10842 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10844 (target_pid_to_exec_file): Add argument.
10845 * target.c (debug_to_pid_to_exec_file): Add argument.
10846 (update_current_target): Update.
10847 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10848 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10849 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10850 (linux_handle_extended_wait): Update.
10851 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10852 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10853 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10854 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10858 * target.h (struct target_ops) <to_rcmd>: Add argument.
10859 (target_rcmd): Add argument.
10860 * target.c (debug_to_rcmd): Add argument.
10861 (update_current_target, do_monitor_command): Update.
10862 * remote.c (remote_rcmd): Add 'self' argument.
10863 * monitor.c (monitor_rcmd): Add 'self' argument.
10865 2014-02-19 Tom Tromey <tromey@redhat.com>
10867 * windows-nat.c (windows_stop): Add 'self' argument.
10868 * target.h (struct target_ops) <to_stop>: Add argument.
10869 * target.c (target_stop): Add argument.
10870 (debug_to_stop): Add argument.
10871 (update_current_target): Update.
10872 * remote.c (remote_stop): Add 'self' argument.
10873 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10874 (gdbsim_cntrl_c): Update.
10875 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10876 * procfs.c (procfs_stop): Add 'self' argument.
10877 * nto-procfs.c (procfs_stop): Add 'self' argument.
10878 * monitor.c (monitor_stop): Add 'self' argument.
10879 (monitor_open): Update.
10880 * linux-nat.c (linux_nat_stop): Add argument.
10881 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10882 * gnu-nat.c (gnu_stop): Add 'self' argument.
10883 * darwin-nat.c (darwin_stop): Add 'self' argument.
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10887 * target.h (struct target_ops) <to_thread_name>: Add argument.
10888 * target.c (target_thread_name): Add argument.
10889 (update_current_target): Update.
10890 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target.h (struct target_ops) <to_extra_thread_info>: Add
10896 (target_extra_thread_info): Add argument.
10897 * target.c (update_current_target): Update.
10898 * remote.c (remote_threads_extra_info): Add 'self' argument.
10899 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10901 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10902 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10903 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10905 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10907 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10909 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target.h (struct target_ops) <to_program_signals>: Add argument.
10915 * target.c (target_program_signals): Add argument.
10916 * remote.c (remote_program_signals): Add 'self' argument.
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10920 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10921 * target.c (target_pass_signals): Add argument.
10922 * remote.c (remote_pass_signals): Add 'self' argument.
10923 (remote_start_remote): Update.
10924 * procfs.c (procfs_pass_signals): Add 'self' argument.
10925 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10926 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10927 (linux_nat_create_inferior, linux_nat_attach): Update.
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10931 * windows-nat.c (windows_can_run): Add 'self' argument.
10932 * target.h (struct target_ops) <to_can_run>: Add argument.
10933 (target_can_run): Add argument.
10934 * target.c (debug_to_can_run): Add argument.
10935 (update_current_target): Update.
10936 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10937 * inf-child.c (inf_child_can_run): Add 'self' argument.
10938 * go32-nat.c (go32_can_run): Add 'self' argument.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target.h (struct target_ops) <to_has_exited>: Add argument.
10943 (target_has_exited): Add argument.
10944 * target.c (debug_to_has_exited): Add argument.
10945 (update_current_target): Update.
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10949 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10951 (target_set_syscall_catchpoint): Add argument.
10952 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10954 * target.c (update_current_target): Update.
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10960 (target_remove_exec_catchpoint): Add argument.
10961 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10962 (update_current_target): Update.
10963 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10966 2014-02-19 Tom Tromey <tromey@redhat.com>
10968 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10970 (target_insert_exec_catchpoint): Add argument.
10971 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10972 (update_current_target): Update.
10973 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10978 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10980 (target_remove_vfork_catchpoint): Add argument.
10981 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10982 (update_current_target): Update.
10983 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10988 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10990 (target_insert_vfork_catchpoint): Add argument.
10991 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10992 (update_current_target): Update.
10993 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11000 (target_remove_fork_catchpoint): Add argument.
11001 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11002 (update_current_target): Update.
11003 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11006 2014-02-19 Tom Tromey <tromey@redhat.com>
11008 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11010 (target_insert_fork_catchpoint): Add argument.
11011 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11012 (update_current_target): Update.
11013 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11020 (target_post_startup_inferior): Add argument.
11021 * target.c (debug_to_post_startup_inferior): Add argument.
11022 (update_current_target): Update.
11023 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11025 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11027 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11029 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11031 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11033 (super_post_startup_inferior): Likewise.
11034 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11036 (super_post_startup_inferior): Likewise.
11037 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11038 Add 'self' argument.
11039 (super_post_startup_inferior): Likewise.
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11043 * target.h (struct target_ops) <to_load>: Add argument.
11044 * target.c (target_load): Add argument.
11045 (debug_to_load): Add argument.
11046 (update_current_target): Update.
11047 * remote.c (remote_load): Add 'self' argument.
11048 * remote-sim.c (gdbsim_load): Add 'self' argument.
11049 * remote-mips.c (mips_load): Add 'self' argument.
11050 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11051 * monitor.c (monitor_load): Add 'self' argument.
11052 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11056 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11057 (target_terminal_info): Add argument.
11058 * target.c (debug_to_terminal_info): Add argument.
11059 (default_terminal_info): Likewise.
11060 * inflow.c (child_terminal_info): Add 'self' argument.
11061 * inferior.h (child_terminal_info): Add 'self' argument.
11062 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11066 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11068 (target_terminal_save_ours): Add argument.
11069 * target.c (debug_to_terminal_save_ours): Add argument.
11070 (update_current_target): Update.
11071 * inflow.c (terminal_save_ours): Add 'self' argument.
11072 * inferior.h (terminal_save_ours): Add 'self' argument.
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11076 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11077 (target_terminal_ours): Add argument.
11078 * target.c (debug_to_terminal_ours): Add argument.
11079 (update_current_target): Update.
11080 * remote.c (remote_terminal_ours): Add 'self' argument.
11081 (remote_close): Update.
11082 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11083 * inflow.c (terminal_ours): Add 'self' argument.
11084 * inferior.h (terminal_ours): Add 'self' argument.
11085 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11087 2014-02-19 Pedro Alves <palves@redhat.com>
11088 Tom Tromey <tromey@redhat.com>
11090 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11092 (target_terminal_ours_for_output): Add argument.
11093 * target.c (debug_to_terminal_ours_for_output): Add argument.
11094 (update_current_target): Update.
11095 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11096 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11097 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11099 2014-02-19 Tom Tromey <tromey@redhat.com>
11101 * target.h (struct target_ops) <to_terminal_inferior>: Add
11103 * target.c (target_terminal_inferior): Add argument.
11104 (update_current_target): Update.
11105 * remote.c (remote_terminal_inferior): Add 'self' argument.
11106 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11107 * inflow.c (terminal_inferior): Add 'self' argument.
11108 * inferior.h (terminal_inferior): Add 'self' argument.
11109 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11110 (go32_terminal_inferior): Add 'self' argument.
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11114 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11115 (target_terminal_init): Add argument.
11116 * target.c (debug_to_terminal_init): Add argument.
11117 (update_current_target): Update.
11118 * inflow.c (terminal_init_inferior): Add 'self' argument.
11119 * inferior.h (terminal_init_inferior): Add 'self' argument.
11120 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11121 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11125 * target.h (struct target_ops)
11126 <to_can_accel_watchpoint_condition>: Add argument.
11127 (target_can_accel_watchpoint_condition): Add argument.
11128 * target.c (debug_to_can_accel_watchpoint_condition): Add
11130 (update_current_target): Update.
11131 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11136 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11138 (target_region_ok_for_hw_watchpoint): Add argument.
11139 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11140 (default_region_ok_for_hw_watchpoint): Add argument.
11141 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11142 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11144 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11146 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11148 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11150 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11152 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11154 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11155 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11157 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11158 Add 'self' argument.
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11164 (target_insert_watchpoint): Add argument.
11165 * target.c (debug_to_insert_watchpoint): Add argument.
11166 (update_current_target): Update.
11167 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11168 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11169 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11170 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11171 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11172 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11174 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11175 (procfs_insert_hw_watchpoint): Add 'self' argument.
11176 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11178 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11180 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11182 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11183 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11185 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11188 2014-02-19 Tom Tromey <tromey@redhat.com>
11190 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11192 (target_remove_watchpoint): Add argument.
11193 * target.c (debug_to_remove_watchpoint): Add argument.
11194 (update_current_target): Update.
11195 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11196 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11197 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11198 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11199 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11200 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11202 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11203 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11205 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11207 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11209 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11210 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11212 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11215 2014-02-19 Tom Tromey <tromey@redhat.com>
11217 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11219 (target_remove_hw_breakpoint): Add argument.
11220 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11221 (update_current_target): Update.
11222 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11223 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11225 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11226 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11228 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11233 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11235 (target_insert_hw_breakpoint): Add argument.
11236 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11237 (update_current_target): Update.
11238 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11239 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11241 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11242 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11243 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11245 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11248 2014-02-19 Tom Tromey <tromey@redhat.com>
11250 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11252 (target_can_use_hardware_watchpoint): Add argument.
11253 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11254 (update_current_target): Update.
11255 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11257 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11259 * remote.c (remote_check_watch_resources): Add 'self' argument.
11260 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11261 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11263 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11264 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11266 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11268 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11270 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11272 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11274 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11276 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11277 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11279 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11282 2014-02-19 Tom Tromey <tromey@redhat.com>
11284 * target.h (struct target_ops) <to_post_attach>: Add argument.
11285 (target_post_attach): Add argument.
11286 * target.c (debug_to_post_attach): Add argument.
11287 (update_current_target): Update.
11288 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11289 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11290 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11291 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11292 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11296 * windows-nat.c (windows_close): Add 'self' argument.
11297 * tracepoint.c (tfile_close): Add 'self' argument.
11298 * target.h (struct target_ops) <to_close>: Add argument.
11299 * target.c (target_close): Add argument.
11300 (update_current_target): Update.
11301 * remote.c (remote_close): Add 'self' argument.
11302 * remote-sim.c (gdbsim_close): Add 'self' argument.
11303 * remote-mips.c (mips_close): Add 'self' argument.
11304 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11305 * record-full.c (record_full_close): Add 'self' argument.
11306 * record-btrace.c (record_btrace_close): Add 'self' argument.
11307 * monitor.h (monitor_close): Add 'self' argument.
11308 * monitor.c (monitor_close): Add 'self' argument.
11309 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11310 * linux-nat.c (linux_nat_close): Add argument.
11311 * go32-nat.c (go32_close): Add 'self' argument.
11312 * exec.c (exec_close_1): Add 'self' argument.
11313 * ctf.c (ctf_close): Add 'self' argument.
11314 * corelow.c (core_close): Add 'self' argument.
11315 (core_close_cleanup): Update.
11316 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11317 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11321 * remote.c (remote_load): New function.
11322 (init_remote_ops): Use it.
11324 2014-02-19 Tom Tromey <tromey@redhat.com>
11326 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11328 * common/linux-btrace.h (linux_supports_btrace): Update.
11329 * remote.c (remote_supports_btrace): Add "self" argument.
11330 * target-delegates.c: Rebuild.
11331 * target.c (target_supports_btrace): Remove.
11332 * target.h (struct target_ops) <to_supports_btrace>: Add
11333 target_ops argument.
11334 (target_supports_btrace): New define.
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11338 * record-full.c (record_full_beneath_to_resume_ops)
11339 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11340 (record_full_beneath_to_wait)
11341 (record_full_beneath_to_store_registers_ops)
11342 (record_full_beneath_to_store_registers)
11343 (record_full_beneath_to_xfer_partial_ops)
11344 (record_full_beneath_to_xfer_partial)
11345 (record_full_beneath_to_insert_breakpoint_ops)
11346 (record_full_beneath_to_insert_breakpoint)
11347 (record_full_beneath_to_remove_breakpoint_ops)
11348 (record_full_beneath_to_remove_breakpoint)
11349 (record_full_beneath_to_stopped_by_watchpoint)
11350 (record_full_beneath_to_stopped_data_address)
11351 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11352 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11353 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11354 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11355 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11356 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11357 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11358 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11359 (record_full_resume, record_full_wait_1)
11360 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11361 (record_full_store_registers, record_full_xfer_partial)
11362 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11363 (record_full_async, record_full_core_xfer_partial): Use target
11365 * target-delegates.c: Rebuild.
11366 * target.c (current_xfer_partial): Remove.
11367 (update_current_target): Do not INHERIT or de_fault
11368 to_insert_breakpoint, to_remove_breakpoint,
11369 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11370 to_is_async_p, to_async. Do not set to_xfer_partial field.
11371 (default_xfer_partial): Simplify.
11372 (current_xfer_partial): Remove.
11373 (target_wait, target_resume): Simplify.
11374 (find_default_can_async_p, find_default_is_async_p): Update.
11375 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11376 to_xfer_partial, to_stopped_by_watchpoint,
11377 to_stopped_data_address.
11378 (target_store_registers): Simplify.
11379 (forward_target_remove_breakpoint)
11380 (forward_target_insert_breakpoint): Remove.
11381 (target_remove_breakpoint, target_insert_breakpoint)
11382 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11383 * target.h (struct target_ops) <to_resume, to_wait,
11384 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11385 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11386 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11388 (forward_target_remove_breakpoint)
11389 (forward_target_insert_breakpoint): Remove.
11390 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11392 (record_btrace_insert_breakpoint): Delegate directly.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11397 * target-delegates.c: New file.
11398 * target.c: Include target-delegates.c.
11399 (init_dummy_target): Call install_dummy_methods.
11400 (complete_target_initialization): Call install_delegators.
11401 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11402 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11403 * make-target-delegates: New file.
11405 2014-02-19 Tom Tromey <tromey@redhat.com>
11407 * record.c (find_record_target): Use find_target_at.
11408 * target.c (find_target_at): New function.
11409 * target.h (find_target_at): Declare.
11411 2014-02-19 Tom Tromey <tromey@redhat.com>
11413 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11414 Add 'ops' argument.
11415 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11417 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11418 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11420 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11422 * linux-nat.c (save_sigtrap): Update.
11423 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11424 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11425 (linux_nat_close): Update.
11426 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11428 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11430 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11431 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11432 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11433 (tmp_to_async): Add 'ops' argument.
11434 (record_full_stopped_by_watchpoint, record_full_async)
11435 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11437 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11438 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11439 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11440 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11441 (remote_is_async_p, remote_async): Add 'ops' argument.
11442 (remote_stopped_data_address): Update.
11443 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11444 * target.c (update_current_target)
11445 (find_default_can_async_p, find_default_is_async_p): Update.
11446 (init_dummy_target): Update.
11447 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11448 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11449 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11450 (target_can_async_p, target_is_async_p, target_async)
11451 (target_stopped_by_watchpoint): Update.
11453 2014-02-19 Yao Qi <yao@codesourcery.com>
11456 * gdbarch.sh: Remove startup_gdbarch.
11457 * gdbarch.c: Regenerated.
11458 * gdbarch.h: Likewise.
11460 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11462 * rl78-tdep.c (rl78_g10_register_name): New function.
11463 (rl78_return_value): Add g10 support.
11464 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11467 2014-02-17 Doug Evans <xdje42@gmail.com>
11469 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11470 (SUBDIR_GUILE_SRCS): Ditto.
11471 (scm-gsmob.o): Ditto.
11473 2014-02-17 Yao Qi <yao@codesourcery.com>
11475 * gnu-nat.c (ILL_RPC): Declare defined function.
11477 2014-02-17 Yao Qi <yao@codesourcery.com>
11479 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11480 mach_msg_type_number_t.
11481 (gnu_write_inferior): Likewise.
11483 2014-02-17 Yao Qi <yao@codesourcery.com>
11485 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11487 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11488 (inf_validate_procs, inf_signal): Likewise.
11489 (S_exception_raise_request): Likewise.
11490 (do_mach_notify_dead_name): Likewise.
11491 (steal_exc_port): Likewise.
11492 (gnu_read_inferior): Change 'copy_count''s type to
11493 mach_msg_type_number_t.
11494 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11497 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11499 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11500 flag. Adjust all users; in particular...
11501 (gnu_wait): ..., don't decrement its value in here...
11502 (gnu_create_inferior): ..., and instead set the flag in here,
11503 around the startup_inferior call, and call that one with
11504 START_INFERIOR_TRAPS_EXPECTED.
11506 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11507 (ILL_RPC): ... new macro.
11508 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11509 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11510 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11511 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11512 functions with ILL_RPC macro.
11513 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11514 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11515 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11516 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11517 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11518 (S_proc_getlogin_reply, S_proc_getsid_reply)
11519 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11520 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11521 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11522 (S_proc_getnports_reply, S_proc_is_important_reply)
11523 (S_proc_get_code_reply): New stub functions, generated with
11526 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11527 collected the type check structures.
11529 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11531 2014-02-14 Doug Evans <dje@google.com>
11533 * target.c (target_write_partial): Fix result type.
11535 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11537 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11538 the proper offsets to access fpregset_t.
11540 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11542 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11543 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11544 * h8300-tdep.c (setmachinelist): Remove global.
11545 * hppa-tdep.c (hppa_sigtramp): Remove global.
11546 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11547 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11548 * ravenscar-thread.c (update_target_observer): Remove global.
11549 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11551 2014-02-12 Tom Tromey <tromey@redhat.com>
11553 * common/rsp-low.c: Update comments.
11554 * common/rsp-low.h: Update comments.
11556 2014-02-12 Tom Tromey <tromey@redhat.com>
11558 * common/rsp-low.c (convert_ascii_to_int): Remove.
11559 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11561 2014-02-12 Tom Tromey <tromey@redhat.com>
11563 * common/rsp-low.h (unhexify): Don't declare.
11564 * common/rsp-low.c (unhexify): Remove.
11566 2014-02-12 Tom Tromey <tromey@redhat.com>
11568 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11569 * common/rsp-low.c (convert_int_to_ascii): Remove.
11571 2014-02-12 Tom Tromey <tromey@redhat.com>
11573 * common/rsp-low.h (hexify): Don't declare.
11574 * common/rsp-low.c (hexify): Remove.
11576 2014-02-12 Tom Tromey <tromey@redhat.com>
11578 * common/rsp-low.c (hexify): Never take strlen of argument.
11580 2014-02-12 Tom Tromey <tromey@redhat.com>
11582 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11583 * remote.c (extended_remote_run, remote_rcmd)
11584 (remote_download_trace_state_variable, remote_save_trace_data)
11585 (remote_set_trace_notes): Update.
11586 * tracepoint.c (encode_source_string, tfile_write_status)
11587 (tfile_write_uploaded_tsv): Update.
11589 2014-02-12 Tom Tromey <tromey@redhat.com>
11591 * tracepoint.c: Include rsp-low.h.
11592 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11593 * remote.c: Include rsp-low.h.
11594 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11595 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11596 (remote_unescape_input): Move to common/rsp-low.c.
11597 * common/rsp-low.h: New file.
11598 * common/rsp-low.c: New file.
11599 * Makefile.in (SFILES): Add common/rsp-low.c.
11600 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11601 (COMMON_OBS): Add rsp-low.o.
11602 (rsp-low.o): New target.
11604 2014-02-12 Tom Tromey <tromey@redhat.com>
11606 * utils.h: Include print-utils.h.
11607 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11608 (int_string, core_addr_to_string, core_addr_to_string_nz)
11609 (hex_string, hex_string_custom): Don't declare.
11610 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11611 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11612 (hex_string_custom, int_string, core_addr_to_string)
11613 (core_addr_to_string_nz, host_address_to_string): Move to
11614 common/print-utils.c.
11615 * common/print-utils.h: New file.
11616 * common/print-utils.c: New file
11617 * Makefile.in (SFILES): Add common/print-utils.c.
11618 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11619 (COMMON_OBS): Add print-utils.o.
11620 (print-utils.o): New target.
11622 2014-02-12 Tom Tromey <tromey@redhat.com>
11624 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11626 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11628 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11630 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11632 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11633 if a PT_IO ptrace request returns sucessfully but indicates that 0
11634 bytes were transferred.
11636 2014-02-12 Pedro Alves <palves@redhat.com>
11637 Kevin Buettner <kevinb@redhat.com>
11639 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11640 TYPE_INSTANCE_FLAG_CODE_SPACE.
11642 2014-02-12 Pedro Alves <palves@redhat.com>
11644 * h8300-tdep.c (pseudo_from_raw_register)
11645 (raw_from_pseudo_register): New functions.
11646 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11649 2014-02-12 Pedro Alves <palves@redhat.com>
11651 * h8300-tdep.c (h8300_register_sim_regno): New function.
11652 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11653 gdbarch_register_sim_regno hook.
11655 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11657 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11659 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11661 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11663 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11665 * obsd-tdep.h (obsd_init_abi): New prototype.
11666 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11667 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11668 (obsd_init_abi): New functions.
11669 * i386obsd-tdep.c: Include "obsd-tdep.h".
11670 (i386obsd_init_abi): Call obsd_init_abi.
11671 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11672 (amd64obsd_init_abi): Call obsd_init_abi.
11673 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11674 obsd-tdep.c to gdb_target_obs.
11676 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11678 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11679 double float arguments to 16-byte in the argument slots.
11681 2014-02-11 Doug Evans <xdje42@gmail.com>
11683 * configure.ac: Don't crash if pkg-config is not found and guile
11684 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11686 * configure: Regenerate.
11688 2014-02-11 Yao Qi <yao@codesourcery.com>
11690 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11691 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11692 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11693 * gnu-nat.c (gnu_xfer_memory): Likewise.
11694 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11695 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11696 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11697 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11699 2014-02-11 Yao Qi <yao@codesourcery.com>
11701 * target.h (enum target_xfer_error): Rename to ...
11702 (enum target_xfer_status): ... it. New. All users updated.
11703 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11705 (TARGET_XFER_STATUS_ERROR_P): New macro.
11706 (target_xfer_error_to_string): Remove declaration.
11707 (target_xfer_status_to_string): Declare.
11708 (target_xfer_partial_ftype): Adjust it.
11709 (struct target_ops) <to_xfer_partial>: Return
11710 target_xfer_status. Add argument xfered_len. Update
11712 * target.c (target_xfer_error_to_string): Rename to ...
11713 (target_xfer_status_to_string): ... it. New. All callers
11715 (target_read_live_memory): Likewise. Call target_xfer_partial
11716 instead of target_read.
11717 (memory_xfer_live_readonly_partial): Return
11718 target_xfer_status. Add argument xfered_len.
11719 (raw_memory_xfer_partial): Likewise.
11720 (memory_xfer_partial_1): Likewise.
11721 (memory_xfer_partial): Likewise.
11722 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11723 properly. Update debug message.
11724 (default_xfer_partial, current_xfer_partial): Likewise.
11725 (target_write_partial): Likewise.
11726 (target_read_partial): Likewise. All callers updated.
11727 (read_whatever_is_readable): Likewise.
11728 (target_write_with_progress): Likewise.
11729 (target_read_alloc_1): Likewise.
11731 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11732 * auxv.c (procfs_xfer_auxv): Likewise.
11733 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11734 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11735 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11736 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11737 * corefile.c (read_memory): Adjust.
11738 * corelow.c (core_xfer_partial): Likewise.
11739 * ctf.c (ctf_xfer_partial): Likewise.
11740 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11742 (darwin_xfer_partial): Likewise.
11743 * exec.c (section_table_xfer_memory_partial): Likewise. All
11745 (exec_xfer_partial): Likewise.
11746 * exec.h (section_table_xfer_memory_partial): Update
11748 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11750 (gnu_xfer_partial): Likewise.
11751 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11752 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11753 (ia64_hpux_xfer_solib_got): Likewise.
11754 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11755 type of 'partial_len' to ULONGEST.
11756 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11757 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11758 (linux_nat_xfer_partial): Likewise.
11759 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11760 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11761 * monitor.c (monitor_xfer_memory): Likewise.
11762 (monitor_xfer_partial): Likewise.
11763 * procfs.c (procfs_xfer_partial): Likewise.
11764 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11765 * record-full.c (record_full_xfer_partial): Likewise.
11766 (record_full_core_xfer_partial): Likewise.
11767 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11768 (gdbsim_xfer_partial): Likewise.
11769 * remote.c (remote_write_bytes_aux): Likewise. All callers
11771 (remote_write_bytes, remote_read_bytes): Likewise. All
11773 (remote_flash_erase): Likewise. All callers updated.
11774 (remote_write_qxfer): Likewise. All callers updated.
11775 (remote_read_qxfer): Likewise. All callers updated.
11776 (remote_xfer_partial): Likewise.
11777 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11778 (rs6000_xfer_shared_libraries): Likewise.
11779 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11780 (sol_thread_xfer_partial): Likewise.
11781 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11782 (sparc_xfer_partial): Likewise.
11783 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11785 (spu_xfer_partial): Likewise.
11786 * spu-multiarch.c (spu_xfer_partial): Likewise.
11787 * tracepoint.c (tfile_xfer_partial): Likewise.
11788 * windows-nat.c (windows_xfer_memory): Likewise.
11789 (windows_xfer_shared_libraries): Likewise.
11790 (windows_xfer_partial): Likewise.
11791 * valprint.c: Replace 'target_xfer_error' with
11792 'target_xfer_status' in comments.
11794 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11796 Checked in by Joel Brobecker <brobecker@adacore.com>.
11797 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11799 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11801 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11802 function parameters.
11804 2014-02-10 Will Newton <will.newton@linaro.org>
11806 * elfread.c (elf_rel_plt_read): Look for a .got section if
11807 looking up .got.plt fails.
11808 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11809 on address passed to elf_gnu_ifunc_record_cache.
11810 (elf_gnu_ifunc_resolve_addr): Likewise.
11811 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11813 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11815 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11816 (X_RETTURN): New macro.
11817 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11819 * sparc64-tdep.c (sparc64_init_abi): Hook
11820 sparc_in_function_epilogue_p.
11822 2014-02-10 Gary Benson <gbenson@redhat.com>
11824 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11825 Rename name_matcher to symbol_matcher.
11827 2014-02-10 Gary Benson <gbenson@redhat.com>
11829 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11830 Use expand_symtabs_file_matcher_ftype and
11831 expand_symtabs_symbol_matcher_ftype.
11833 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11835 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11836 (struct ada_symbol_cache): New.
11837 (ada_free_symbol_cache): Forward declare.
11838 (struct ada_pspace_data): New.
11839 (ada_pspace_data_handle): New static global.
11840 (get_ada_pspace_data, ada_pspace_data_cleanup)
11841 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11842 (cache_space, cache): Delete, now folded inside struct
11844 (ada_get_symbol_cache): New function.
11845 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11847 (_initialize_ada_language): Remove initialization of cache_space.
11848 Move call to observer_attach_inferior_exit up, grouping it
11849 with the other observer registrations inside this function.
11850 Rename command to be more general. Add call to
11851 register_program_space_data_with_cleanup.
11853 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11855 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11856 ada_new_objfile_observer.
11857 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11858 (_initialize_tasks): Update uses of ada_new_objfile_observer
11859 and ada_tasks_normal_stop_observer.
11861 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11863 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11864 returned by the 'Length attribute to integer.
11866 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11868 * ada-lang.c (_initialize_ada_language): Initialize
11869 cache_space obstack.
11871 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11873 * ada-lang.c (HASH_SIZE): New macro.
11874 (struct cache_entry): New type.
11875 (cache_space, cache): New static globals.
11876 (ada_clear_symbol_cache, find_entry): New functions.
11877 (lookup_cached_symbol, cache_symbol): Implement.
11878 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11879 (_initialize_ada_language): Attach ada_new_objfile_observer
11880 and ada_free_objfile_observer.
11882 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11884 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11885 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11886 struct block * parameter.
11887 (ada_lookup_symbol_list_worker): Constify local variable "block".
11888 Remove cast which is no longer necessary.
11890 2014-02-10 Doug Evans <xdje42@gmail.com>
11892 Add Guile as an extension language.
11893 * NEWS: Mention Guile scripting.
11894 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11895 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11896 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11897 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11898 (CLIBS): Add GUILE_LIBS.
11899 (install-guile): New rule.
11900 (guile.o): New rule.
11901 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11902 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11903 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11904 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11905 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11906 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11907 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11908 * configure.ac: New option --with-guile.
11909 * configure: Regenerate.
11910 * config.in: Regenerate.
11911 * auto-load.c: Remove #include "python/python.h". Add #include
11912 "gdb/section-scripts.h".
11913 (source_section_scripts): Handle Guile scripts.
11914 (_initialize_auto_load): Add name of Guile objfile script to
11915 scripts-directory help text.
11916 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11917 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11918 (struct breakpoint): New member scm_bp_object.
11919 * defs.h (enum command_control_type): New value guile_control.
11920 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11922 (show_user): Update comment.
11923 (_initialize_cli_cmds): Update help text for "show user". Update help
11924 text for max-user-call-depth.
11925 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11927 (multi_line_command_p): Add guile_control.
11928 (print_command_lines): Handle guile_control.
11929 (execute_control_command, recurse_read_control_structure): Ditto.
11930 (process_next_line): Recognize "guile" commands.
11931 * disasm.c (gdb_disassemble_info): Make non-static.
11932 * disasm.h: #include "dis-asm.h".
11933 (struct gdbarch): Add forward decl.
11934 (gdb_disassemble_info): Declare.
11935 * extension.c: #include "guile/guile.h".
11936 (extension_languages): Add guile.
11937 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11938 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11939 * gdbtypes.c (get_unsigned_type_max): New function.
11940 (get_signed_type_minmax): New function.
11941 * gdbtypes.h (get_unsigned_type_max): Declare.
11942 (get_signed_type_minmax): Declare.
11943 * guile/README: New file.
11944 * guile/guile-internal.h: New file.
11945 * guile/guile.c: New file.
11946 * guile/guile.h: New file.
11947 * guile/scm-arch.c: New file.
11948 * guile/scm-auto-load.c: New file.
11949 * guile/scm-block.c: New file.
11950 * guile/scm-breakpoint.c: New file.
11951 * guile/scm-disasm.c: New file.
11952 * guile/scm-exception.c: New file.
11953 * guile/scm-frame.c: New file.
11954 * guile/scm-gsmob.c: New file.
11955 * guile/scm-iterator.c: New file.
11956 * guile/scm-lazy-string.c: New file.
11957 * guile/scm-math.c: New file.
11958 * guile/scm-objfile.c: New file.
11959 * guile/scm-ports.c: New file.
11960 * guile/scm-pretty-print.c: New file.
11961 * guile/scm-safe-call.c: New file.
11962 * guile/scm-string.c: New file.
11963 * guile/scm-symbol.c: New file.
11964 * guile/scm-symtab.c: New file.
11965 * guile/scm-type.c: New file.
11966 * guile/scm-utils.c: New file.
11967 * guile/scm-value.c: New file.
11968 * guile/lib/gdb.scm: New file.
11969 * guile/lib/gdb/boot.scm: New file.
11970 * guile/lib/gdb/experimental.scm: New file.
11971 * guile/lib/gdb/init.scm: New file.
11972 * guile/lib/gdb/iterator.scm: New file.
11973 * guile/lib/gdb/printing.scm: New file.
11974 * guile/lib/gdb/types.scm: New file.
11975 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11976 (VPATH): Add $(GUILE_SRCDIR).
11977 (GUILE_DIR): New variable.
11978 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11979 (all): Add stamp-guile dependency.
11980 (stamp-guile): New rule.
11981 (clean-guile, install-guile, uninstall-guile): New rules.
11982 (install-only): Add install-guile dependency.
11983 (uninstall): Add uninstall-guile dependency.
11984 (clean): Add clean-guile dependency.
11986 2014-02-09 Doug Evans <xdje42@gmail.com>
11988 Revert this patch (which I approved, mea culpa).
11990 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11992 * Makefile.in (all-lib): Remove.
11993 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11995 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11997 Fix Python stack corruption.
11998 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12001 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12003 * Makefile.in (all-lib): Remove.
12004 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12006 2014-02-07 Doug Evans <dje@google.com>
12008 * extension-priv.h (extension_language_script_ops): Add comment.
12009 (extension_language_ops): Add comment.
12010 (active_ext_lang_state): Fix typo in comment.
12012 2014-02-07 Pedro Alves <palves@redhat.com>
12014 PR breakpoints/16292
12015 * infrun.c (handle_signal_stop) <signal arrives while stepping
12016 over a breakpoint>: Switch back to the stepping thread.
12018 2014-02-07 Yao Qi <yao@codesourcery.com>
12020 * target.c (target_xfer_partial): Return zero if LEN is zero.
12022 2014-02-07 Yao Qi <yao@codesourcery.com>
12024 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12025 (ld_so_xfer_auxv): Likewise.
12026 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12027 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12028 * corelow.c (core_xfer_partial): Likewise.
12029 * ctf.c (ctf_xfer_partial): Likewise.
12030 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12031 (darwin_xfer_partial): Likewise.
12032 * exec.c (exec_xfer_partial): Likewise.
12033 * gnu-nat.c (gnu_xfer_partial): Likewise.
12034 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12035 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12036 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12037 * linux-nat.c (linux_xfer_siginfo): Likewise.
12038 (linux_proc_xfer_spu): Likewise.
12039 * procfs.c (procfs_xfer_partial): Likewise.
12040 * record-full.c (record_full_xfer_partial): Likewise.
12041 (record_full_core_xfer_partial): Likewise.
12042 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12043 * remote.c (remote_write_qxfer): Likewise.
12044 (remote_write_qxfer, remote_read_qxfer): Likewise.
12045 (remote_xfer_partial): Likewise.
12046 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12047 (rs6000_xfer_shared_libraries): Likewise.
12048 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12049 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12050 (spu_xfer_partial): Likewise.
12051 * target.c (memory_xfer_partial_1): Likewise.
12052 * tracepoint.c (tfile_xfer_partial): Likewise.
12053 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12054 (windows_xfer_partial): Likewise.
12056 2014-02-07 Yao Qi <yao@codesourcery.com>
12058 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12060 (core_xfer_shared_libraries_aix): Likewise.
12061 * gdbarch.c, gdbarch.h: Regenerated.
12062 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12063 ULONGEST. Change 'len_avail' type to ULONGEST.
12064 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12065 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12067 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12069 2014-02-07 Yao Qi <yao@codesourcery.com>
12071 * corefile.c (memory_error): Get 'exception' from ERR and pass
12072 'exception' to throw_error.
12074 2014-02-06 Doug Evans <xdje42@gmail.com>
12076 * configure.ac (libpython checking): Remove all but python.o from
12077 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12078 * configure: Regenerate.
12080 * Makefile.in (SFILES): Add extension.c.
12081 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12082 (COMMON_OBS): Add extension.o.
12083 * extension.h: New file.
12084 * extension-priv.h: New file.
12085 * extension.c: New file.
12087 * python/python-internal.h: #include "extension.h".
12088 (gdbpy_auto_load_enabled): Declare.
12089 (gdbpy_apply_val_pretty_printer): Declare.
12090 (gdbpy_apply_frame_filter): Declare.
12091 (gdbpy_preserve_values): Declare.
12092 (gdbpy_breakpoint_cond_says_stop): Declare.
12093 (gdbpy_breakpoint_has_cond): Declare.
12094 (void source_python_script_for_objfile): Delete.
12095 * python/python.c: #include "extension-priv.h".
12096 Delete inclusion of "observer.h".
12097 (extension_language_python): Moved here and renamed from
12098 script_language_python in py-auto-load.c.
12099 Redefined to be of type extension_language_defn.
12100 (python_extension_script_ops): New global.
12101 (python_extension_ops): New global.
12102 (struct python_env): New member previous_active.
12103 (restore_python_env): Call restore_active_ext_lang.
12104 (ensure_python_env): Call set_active_ext_lang.
12105 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12107 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12109 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12111 (gdbpy_eval_from_control_command): Renamed from
12112 eval_python_from_control_command, made static. New arg extlang.
12113 (gdbpy_source_script) Renamed from source_python_script, made static.
12115 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12116 result to int. New arg extlang.
12117 (gdbpy_source_objfile_script): Renamed from
12118 source_python_script_for_objfile, made static. New arg extlang.
12119 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12120 static. New args extlang, extlang_printers. Change result type to
12122 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12123 static. New arg extlang. Rename arg printers to extlang_printers
12124 and change type to ext_lang_type_printers *.
12125 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12126 static. Replace argument arg with extlang, extlang_printers.
12127 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12128 (!HAVE_PYTHON, source_python_script): Delete.
12129 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12130 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12131 (!HAVE_PYTHON, start_type_printers): Delete.
12132 (!HAVE_PYTHON, apply_type_printers): Delete.
12133 (!HAVE_PYTHON, free_type_printers): Delete.
12134 (_initialize_python): Delete call to observer_attach_before_prompt.
12135 (finalize_python): Set/restore active extension language.
12136 (gdbpy_finish_initialization) Renamed from
12137 finish_python_initialization, made static. New arg extlang.
12138 (gdbpy_initialized): New function.
12139 * python/python.h: #include "extension.h". Delete #include
12140 "value.h", "mi/mi-cmds.h".
12141 (extension_language_python): Declare.
12142 (GDBPY_AUTO_FILE_NAME): Delete.
12143 (enum py_bt_status): Moved to extension.h and renamed to
12144 ext_lang_bt_status.
12145 (enum frame_filter_flags): Moved to extension.h.
12146 (enum py_frame_args): Moved to extension.h and renamed to
12147 ext_lang_frame_args.
12148 (finish_python_initialization): Delete.
12149 (eval_python_from_control_command): Delete.
12150 (source_python_script): Delete.
12151 (apply_val_pretty_printer): Delete.
12152 (apply_frame_filter): Delete.
12153 (preserve_python_values): Delete.
12154 (gdbpy_script_language_defn): Delete.
12155 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12156 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12158 * auto-load.c: #include "extension.h".
12159 (GDB_AUTO_FILE_NAME): Delete.
12160 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12161 (script_language_gdb): Delete, moved to extension.c and renamed to
12162 extension_language_gdb.
12163 (source_gdb_script_for_objfile): Delete.
12164 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12165 (loaded_script): Change type of language member to
12166 struct extension_language_defn *.
12167 (init_loaded_scripts_info): Initialize
12168 unsupported_script_warning_printed.
12169 (maybe_add_script): Make static. Change type of language arg to
12170 struct extension_language_defn *.
12171 (clear_section_scripts): Reset unsupported_script_warning_printed.
12172 (auto_load_objfile_script_1): Rewrite to use extension language API.
12173 (auto_load_objfile_script): Make public. Remove support-compiled-in
12174 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12175 (source_section_scripts): Rewrite to use extension language API.
12176 (load_auto_scripts_for_objfile): Rewrite to use
12177 auto_load_scripts_for_objfile.
12178 (collect_matching_scripts_data): Change type of language member to
12179 struct extension_language_defn *.
12180 (auto_load_info_scripts): Change type of language arg to
12181 struct extension_language_defn *.
12182 (unsupported_script_warning_print): New function.
12183 (script_not_found_warning_print): Make static.
12184 (_initialize_auto_load): Rewrite construction of scripts-directory
12186 * auto-load.h (struct objfile): Add forward decl.
12187 (struct script_language): Delete.
12188 (struct auto_load_pspace_info): Add forward decl.
12189 (struct extension_language_defn): Add forward decl.
12190 (maybe_add_script): Delete.
12191 (auto_load_objfile_script): Declare.
12192 (script_not_found_warning_print): Delete.
12193 (auto_load_info_scripts): Update prototype.
12194 (auto_load_gdb_scripts_enabled): Declare.
12195 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12196 auto_load_python_scripts_enabled and made public.
12197 (script_language_python): Delete, moved to python.c.
12198 (gdbpy_script_language_defn): Delete.
12199 (info_auto_load_python_scripts): Update to use
12200 extension_language_python.
12202 * breakpoint.c (condition_command): Replace call to
12203 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12204 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12205 with call to breakpoint_ext_lang_cond_says_stop.
12206 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12207 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12208 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12209 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12211 (local_setattro): Print name of extension language with existing
12214 * valprint.c (val_print, value_print): Update to call
12215 apply_ext_lang_val_pretty_printer.
12216 * cp-valprint.c (cp_print_value): Update call to
12217 apply_ext_lang_val_pretty_printer.
12218 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12219 (gdbpy_apply_val_pretty_printer): Renamed from
12220 apply_val_pretty_printer. New arg extlang.
12221 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12223 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12224 extension language API.
12225 * cli/cli-script.c (execute_control_command): Update to call
12226 eval_ext_lang_from_control_command.
12228 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12229 enum ext_lang_bt_status values. Update call to
12230 apply_ext_lang_frame_filter.
12231 (mi_cmd_stack_list_locals): Ditto.
12232 (mi_cmd_stack_list_args): Ditto.
12233 (mi_cmd_stack_list_variables): Ditto.
12234 * mi/mi-main.c: Delete #include "python/python-internal.h".
12235 Add #include "extension.h".
12236 (mi_cmd_list_features): Replace reference to python internal variable
12237 gdb_python_initialized with call to ext_lang_initialized_p.
12239 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12240 Update to use enum ext_lang_frame_args. Update to call
12241 apply_ext_lang_frame_filter.
12242 * python/py-framefilter.c (extract_sym): Update to use enum
12243 ext_lang_bt_status.
12244 (extract_value, py_print_type, py_print_value): Ditto.
12245 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12246 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12247 (py_print_frame): Ditto.
12248 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12249 New arg extlang. Update to use enum ext_lang_bt_status.
12251 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12252 finish_python_initialization. Replace with call to
12253 finish_ext_lang_initialization.
12255 * typeprint.c (do_free_global_table): Update to call
12256 free_ext_lang_type_printers.
12257 (create_global_typedef_table): Update to call
12258 start_ext_lang_type_printers.
12259 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12260 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12261 (type_print_options): Change type of global_printers from "void *"
12262 to "struct ext_lang_type_printers *".
12264 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12265 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12266 (gdbpy_preserve_values): Renamed from preserve_python_values.
12268 (!HAVE_PYTHON, preserve_python_values): Delete.
12270 * utils.c (quit_flag): Delete, moved to extension.c.
12271 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12274 * eval.c: Delete #include "python/python.h".
12275 * main.c: Delete #include "python/python.h".
12277 * defs.h: Update comment.
12279 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12283 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12285 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12288 2014-02-05 Yao Qi <yao@codesourcery.com>
12290 * remote.c (remote_pass_signals): Remove local 'buf' and use
12292 (remote_program_signals): Likewise.
12294 2014-02-05 Yao Qi <yao@codesourcery.com>
12296 * ctf.c: Include "inferior.h" and "gdbthread.h".
12297 (CTF_PID): A new macro.
12298 (ctf_open): Call inferior_appeared and add_thread_silent.
12299 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12300 (ctf_thread_alive): New function.
12301 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12303 2014-02-05 Yao Qi <yao@codesourcery.com>
12307 2013-05-24 Yao Qi <yao@codesourcery.com>
12309 * tracepoint.c (TFILE_PID): Remove.
12310 (tfile_open): Don't add thread and inferior.
12311 (tfile_close): Don't set 'inferior_ptid'. Don't call
12312 exit_inferior_silent.
12313 (tfile_thread_alive): Remove.
12314 (init_tfile_ops): Don't set field 'to_thread_alive' of
12317 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12319 * remote.c (remote_start_remote): Call remote_check_symbols even
12320 if only symbol-file (not file) has been given.
12322 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12324 * gdbarch.sh (skip_entrypoint): New callback.
12325 * gdbarch.c, gdbarch.h: Regenerate.
12326 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12327 * infrun.c (fill_in_stop_func): Likewise.
12328 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12329 (ppc_elfv2_elf_make_msymbol_special): New function.
12330 (ppc_elfv2_skip_entrypoint): Likewise.
12331 (ppc_linux_init_abi): Install them for ELFv2.
12333 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12335 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12336 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12337 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12338 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12339 structures returned in GPRs.
12341 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12343 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12344 offset to the stack parameter list for the ELFv2 ABI.
12346 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12348 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12349 set_gdbarch_convert_from_func_ptr_addr and
12350 set_gdbarch_elf_make_msymbol_special for ELFv1.
12351 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12352 function descriptors on ELFv1.
12353 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12354 set up r12 at function entry.
12356 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12358 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12359 (struct gdbarch_tdep): New member elf_abi.
12361 * rs6000-tdep.c: Include "elf/ppc64.h".
12362 (rs6000_gdbarch_init): Detect ELF ABI version.
12364 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12366 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12367 within a register pair holding a DFP 128-bit value on little-endian.
12368 (ppc64_sysv_abi_return_value_base): Likewise.
12369 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12370 (dfp_pseudo_register_write): Likewise.
12372 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12374 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12375 offset on little-endian when passing _Decimal32.
12376 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12378 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12380 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12381 of the overlapped FP register within the VSX register on little-
12383 (efpr_pseudo_register_write): Likewise.
12385 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12387 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12388 offset on little-endian when passing small structures.
12390 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12392 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12393 (struct ppc64_sysv_argpos): New data structure.
12394 (ppc64_sysv_abi_push_float): Remove.
12395 (ppc64_sysv_abi_push_val): New function.
12396 (ppc64_sysv_abi_push_integer): Likewise.
12397 (ppc64_sysv_abi_push_freg): Likewise.
12398 (ppc64_sysv_abi_push_vreg): Likewise.
12399 (ppc64_sysv_abi_push_param): Likewise.
12400 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12401 (ppc64_sysv_abi_return_value_base): New function.
12402 (ppc64_sysv_abi_return_value): Refactor to use it.
12404 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12406 * NEWS: Document new target powerpc64le-*-linux*.
12408 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12410 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12411 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12413 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12414 register set used in ELF core dumps. Add floating-point register set.
12416 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12418 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12419 dwarf2_to_gdb[] table using symbolic constants. Adjust
12420 penultimate entry from number representing the PC register
12421 to symbolic constant representing the MDR register. Add
12422 constant for the PC register to the end of the table.
12424 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12426 * bsd-kvm.c: Include <sys/param.h>
12428 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12430 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12432 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12434 * ada-lang.h (clear_ada_sym_cache): Delete.
12436 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12438 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12440 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12442 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12443 the sigreturn register save area only if the syscall is
12446 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12448 * valops.c (value_slice): Minor reformatting.
12450 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12452 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12454 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12456 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12457 New static globals.
12458 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12459 (ada_ignore_descriptive_types_p): New static global.
12460 (find_parallel_type_by_descriptive_type): Return immediately
12461 if ada_ignore_descriptive_types_p is set.
12462 (_initialize_ada_language): Register new commands "maintenance
12463 set ada", "maintenance show ada", "maintenance set ada
12464 ignore-descriptive-types" and "maintenance show ada
12465 ignore-descriptive-types".
12466 * NEWS: Add entry for new "maint ada set/show
12467 ignore-descriptive-types" commands.
12469 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12471 * record-btrace.c (record_btrace_close): Call btrace_teardown
12474 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12476 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12479 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12481 * ada-typeprint (type_is_full_subrange_of_target_type):
12483 (print_range): Add parameter bounds_prefered_p. If not set,
12484 try printing range types using the name of their base type.
12485 (print_range_type): Add parameter bounds_prefered_p.
12486 Use it in call to print_range.
12487 (print_array_type, ada_print_type): Update calls to print_range
12488 and print_range_type.
12490 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12492 * ada-typeprint.c (print_array_type, print_choices, print_range)
12493 (print_range_bound, print_dynamic_range_bound, print_range_type):
12494 Remove declaration.
12496 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12498 * ada-typeprint.c (print_range): Add missing empty line
12499 after local declaration.
12501 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12503 * ada-valprint.c (print_optional_low_bound): Get index_type's
12504 target type for as long as it is a TYPE_CODE_RANGE.
12506 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12508 * procfs.c (procfs_make_note_section): Remove assertion and
12509 associated comment.
12511 2014-01-24 Yao Qi <yao@codesourcery.com>
12513 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12514 * corelow.c (get_core_siginfo): Likewise.
12516 2014-01-24 Yao Qi <yao@codesourcery.com>
12518 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12519 ULONGEST. Don't check 'len' is negative.
12520 (remote_write_bytes): Change type of 'len' to ULONGEST.
12522 2014-01-23 Tom Tromey <tromey@redhat.com>
12525 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12526 Handle exception from frame.block.
12527 (FrameVars.fetch_frame_locals): Likewise.
12529 2014-01-23 Tom Tromey <tromey@redhat.com>
12532 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12533 on a NULL pointer. Move "goto error" to correct place.
12535 2014-01-23 Tom Tromey <tromey@redhat.com>
12538 * python/py-framefilter.c (apply_frame_filter): Call
12539 ensure_python_env after computing gdbarch.
12541 2014-01-23 Yao Qi <yao@codesourcery.com>
12543 * target.c (raw_memory_xfer_partial): Change argument type
12544 from void * to gdb_byte *.
12545 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12547 2014-01-22 Doug Evans <dje@google.com>
12549 New gdbserver option --debug-format=timestamp.
12550 * NEWS: Mention it.
12552 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12554 * syscalls/s390x-linux.xml: New file.
12555 * syscalls/s390-linux.xml: New file.
12556 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12557 (XML_SYSCALL_FILENAME_S390X): Likewise.
12558 (op_svc): New enum value for SVC opcode.
12559 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12560 (s390_linux_get_syscall_number): New function.
12561 (s390_gdbarch_init): Register '*get_syscall_number' and the
12562 syscall xml file name.
12563 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12564 "s390-linux.xml" and "s390x-linux.xml".
12565 * NEWS: Announce new feature.
12567 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12569 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12571 2014-01-22 Pedro Alves <palves@redhat.com>
12573 * xtensa-config.c: Include defs.h.
12575 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12577 * common/common-utils.h: Add "ARI:" comment beside __func__
12580 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12582 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12583 documentation a bit.
12585 2014-01-21 Roland McGrath <mcgrathr@google.com>
12587 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12588 * configure: Regenerate.
12589 * aclocal.m4: Regenerate.
12590 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12591 New substituted variables.
12592 (install-strip): New target.
12593 (INSTALL_SCRIPT): New substituted variable.
12594 (FLAGS_TO_PASS): Add it.
12595 (install-only): Use $(INSTALL_SCRIPT) rather than
12596 $(INSTALL_PROGRAM) for gcore.
12598 2014-01-20 Tom Tromey <tromey@redhat.com>
12600 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12603 2014-01-20 Tom Tromey <tromey@redhat.com>
12605 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12606 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12607 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12608 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12609 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12610 (struct cmd_list_element) <flags>: Remove.
12611 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12612 doc_allocated>: New fields.
12613 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12615 * maint.c (maintenance_do_deprecate): Update.
12616 * top.c (execute_command): Update.
12618 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12620 * xtensa-linux-nat.c: Include asm/ptrace.h.
12622 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12624 * Makefile.in (SFILES): Add d-support.c.
12625 (COMMON_OBS): Add d-support.o.
12626 * d-lang.h (d_parse_symbol): Add comment, now defined in
12628 * d-lang.c (parse_call_convention)
12629 (parse_attributes, parse_function_types)
12630 (parse_function_args, parse_type, parse_identifier)
12631 (call_convention_p, d_parse_symbol): Move functions to ...
12632 * d-support.c: ... New file.
12634 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12636 * d-lang.h (d_parse_symbol): Add declaration.
12637 * d-lang.c (extract_identifiers)
12638 (extract_type_info): Remove functions.
12639 (parse_call_convention, parse_attributes)
12640 (parse_function_types, parse_function_args)
12641 (parse_type, parse_identifier, call_convention_p)
12642 (d_parse_symbol): New functions.
12643 (d_demangle): Use d_parse_symbol to demangle D symbols.
12645 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12647 * d-lang.h (struct builtin_d_type): New data type.
12648 (builtin_d_type): Add declaration.
12649 * d-lang.c (d_language_arch_info, build_d_types)
12650 (builtin_d_type): New functions.
12651 (enum d_primitive_types): New data type.
12652 (d_language_defn): Change c_language_arch_info to
12653 d_language_arch_info.
12654 (d_type_data): New static variable.
12655 (_initialize_d_language): Initialize d_type_data.
12657 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12659 * d-lang.h (d_main_name): Add declaration.
12660 * d-lang.c (d_main_name): New function.
12661 * symtab.c (find_main_name): Add call to d_main_name.
12663 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12665 * d-lang.c (d_language_defn): Change macro_expansion_c to
12666 macro_expansion_no.
12668 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12670 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12672 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12674 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12675 gdb_exception" declaration.
12676 * remote.c (getpkt_or_notif_sane): Likewise.
12678 2014-01-17 Doug Evans <dje@google.com>
12680 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12681 function, contents of dirnames_to_char_ptr_vec_append moved here.
12682 (delim_string_to_char_ptr_vec): New function.
12683 (dirnames_to_char_ptr_vec_append): Rewrite.
12684 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12686 2014-01-17 Doug Evans <dje@google.com>
12688 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12690 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12691 #include "common-utils.h".
12692 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12693 * common/vec.h (VEC_ASSERT_PASS): Update.
12694 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12695 (MACH_CHECK_ERROR): Update.
12697 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12699 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12701 * gdbarch.h: Regenerate.
12703 2014-01-16 Tom Tromey <tromey@redhat.com>
12705 * value.c (struct value) <regnum>: Move earlier.
12707 2014-01-16 Tom Tromey <tromey@redhat.com>
12709 * remote.c (extended_remote_create_inferior): Rename from
12710 extended_remote_create_inferior_1. Add "ops" argument. Remove
12711 old implementation.
12713 2014-01-16 Pedro Alves <palves@redhat.com>
12715 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12716 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12719 2014-01-16 Doug Evans <dje@google.com>
12721 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12725 * btrace.h (btrace_thread_flag): New.
12726 (struct btrace_thread_info) <flags>: New.
12727 * record-btrace.c (record_btrace_resume_thread)
12728 (record_btrace_find_thread_to_move, btrace_step_no_history)
12729 (btrace_step_stopped, record_btrace_start_replaying)
12730 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12731 (record_btrace_find_resume_thread): New.
12732 (record_btrace_resume, record_btrace_wait): Extend.
12733 (record_btrace_can_execute_reverse): New.
12734 (record_btrace_open): Fail in non-stop mode.
12735 (record_btrace_set_replay): Split into this, ...
12736 (record_btrace_stop_replaying): ... this, ...
12737 (record_btrace_clear_histories): ... and this.
12738 (init_record_btrace_ops): Init to_can_execute_reverse.
12739 * NEWS: Announce it.
12741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12743 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12744 (forward_target_decr_pc_after_break)
12745 (target_decr_pc_after_break): New.
12746 * target.c (forward_target_decr_pc_after_break)
12747 (target_decr_pc_after_break): New.
12748 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12749 instead of gdbarch_decr_pc_after_break.
12750 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12751 instead of gdbarch_decr_pc_after_break.
12752 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12753 instead of gdbarch_decr_pc_after_break.
12754 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12755 instead of gdbarch_decr_pc_after_break.
12756 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12757 instead of gdbarch_decr_pc_after_break.
12758 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12759 instead of gdbarch_decr_pc_after_break.
12761 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12763 * btrace.c: Include regcache.h.
12764 (btrace_add_pc): New.
12765 (btrace_enable): Call btrace_add_pc.
12766 (btrace_is_empty): New.
12767 * btrace.h (btrace_is_empty): New.
12768 * record-btrace.c (require_btrace, record_btrace_info): Call
12771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12773 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12774 Support delta reads.
12775 (linux_disable_btrace): Change return type.
12776 * common/linux-btrace.h (linux_read_btrace): Change parameters
12777 and return type to allow error reporting. Update users.
12778 (linux_disable_btrace): Change return type. Update users.
12779 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12781 (btrace_error): New.
12782 (btrace_block) <begin>: Comment on BEGIN == 0.
12783 * btrace.c (btrace_compute_ftrace): Start from the end of
12785 (btrace_stitch_trace, btrace_clear_history): New.
12786 (btrace_fetch): Read delta trace, return if replaying.
12787 (btrace_clear): Move clear history code to btrace_clear_history.
12788 (parse_xml_btrace): Throw an error if parsing failed.
12789 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12790 and return type to allow error reporting.
12791 (target_read_btrace): Change parameters and return type to allow
12793 * target.c (target_read_btrace): Update.
12794 * remote.c (remote_read_btrace): Support delta reads. Pass
12796 * NEWS: Announce it.
12798 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12800 * record.h (record_btrace_frame_unwind)
12801 (record_btrace_tailcall_frame_unwind): New declarations.
12802 * dwarf2-frame: Include record.h
12803 (dwarf2_frame_cfa): Throw an error for btrace frames.
12804 * record-btrace.c: Include hashtab.h.
12805 (btrace_get_bfun_name): New.
12806 (btrace_call_history): Call btrace_get_bfun_name.
12807 (struct btrace_frame_cache): New.
12809 (bfcache_hash, bfcache_eq, bfcache_new): New.
12810 (btrace_get_frame_function): New.
12811 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12812 (record_btrace_frame_this_id): Compute own id.
12813 (record_btrace_frame_prev_register): Provide PC, throw_error
12814 for all other registers.
12815 (record_btrace_frame_sniffer): Detect btrace frames.
12816 (record_btrace_tailcall_frame_sniffer): New.
12817 (record_btrace_frame_dealloc_cache): New.
12818 (record_btrace_frame_unwind): Add new functions.
12819 (record_btrace_tailcall_frame_unwind): New.
12820 (_initialize_record_btrace): Allocate cache.
12821 * btrace.c (btrace_clear): Call reinit_frame_cache.
12822 * NEWS: Announce it.
12824 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12826 * record-btrace.c (record_btrace_set_replay)
12827 (record_btrace_goto_begin, record_btrace_goto_end)
12828 (record_btrace_goto): New.
12829 (init_record_btrace_ops): Initialize them.
12830 * NEWS: Announce it.
12832 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12834 * record-btrace.c (record_btrace_find_new_threads)
12835 (record_btrace_thread_alive): New.
12836 (init_record_btrace_ops): Initialize to_find_new_threads and
12839 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12841 * record-btrace.c (record_btrace_resume): New.
12842 (record_btrace_wait): New.
12843 (init_record_btrace_ops): Initialize to_wait and to_resume.
12845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12847 * record-btrace.c (record_btrace_xfer_partial)
12848 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12849 (record_btrace_allow_memory_access): New.
12850 (init_record_btrace_ops): Initialize new methods.
12851 * target.c (raw_memory_xfer_partial): Bail out if target reports
12852 that this memory is not available.
12854 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12856 * target.h (target_ops) <to_insert_breakpoint>
12857 <to_remove_breakpoint>: Add target_ops parameter.
12858 (forward_target_insert_breakpoint): New.
12859 (forward_target_remove_breakpoint): New.
12860 (memory_remove_breakpoint, memory_insert_breakpoint):
12861 Add target_ops parameter.
12862 * target.c (target_insert_breakpoint): Split into this and ...
12863 (forward_target_insert_breakpoint): ... this.
12864 (target_remove_breakpoint): Split into this and ...
12865 (forward_target_remove_breakpoint): ... this.
12866 (debug_to_insert_breakpoint): Add target_ops parameter.
12867 Call forward_target_insert_breakpoint.
12868 (debug_to_remove_breakpoint): Add target_ops parameter.
12869 Call forward_target_remove_breakpoint.
12870 (update_current_target): Do not inherit or default to_insert_breakpoint
12871 and to_remove_breakpoint.
12872 * corelow.c (ignore): Add target_ops parameter.
12873 * exec.c (ignore): Add target_ops parameter.
12874 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12875 Add target_ops parameter.
12876 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12877 Add target_ops parameter.
12878 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12879 Add target_ops parameter.
12880 * record-full.c (record_full_beneath_to_insert_breakpoint)
12881 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12882 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12883 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12884 (record_full_core_remove_breakpoint): Add target_ops parameter.
12886 (record_full_beneath_to_insert_breakpoint_ops)
12887 (record_full_beneath_to_remove_breakpoint_ops)
12888 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12889 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12890 tmp_to_remove_breakpoint_ops,
12891 record_full_beneath_to_insert_breakpoint_ops, and
12892 record_full_beneath_to_remove_breakpoint_ops.
12893 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12894 (m32r_remove_breakpoint): Add target_ops parameter.
12895 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12896 Add target_ops parameter.
12897 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12898 Add target_ops parameter.
12900 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12901 Markus Metzger <markus.t.metzger@intel.com>
12903 * record-btrace.c: Include frame-unwind.h.
12904 (record_btrace_frame_unwind_stop_reason)
12905 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12906 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12908 (init_record_btrace_ops): Install it.
12910 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12912 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12915 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12917 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12920 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12922 * frame-unwind.c: Include target.h.
12923 (frame_unwind_try_unwinder): New function with code from ...
12924 (frame_unwind_find_by_frame): ... here. New variable
12925 unwinder_from_target, call also target_get_unwinder)
12926 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12927 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12928 * target.h (struct target_ops): New fields to_get_unwinder and
12929 to_get_tailcall_unwinder.
12930 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12932 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12934 * record-btrace.c (record_btrace_fetch_registers)
12935 (record_btrace_store_registers)
12936 (record_btrace_to_prepare_to_store): New.
12937 (init_record_btrace_ops): Add the above.
12939 2014-01-16 Tom Tromey <tromey@redhat.com>
12941 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12942 * target.h (struct target_ops) <to_prepare_to_store>: Add
12944 (target_prepare_to_store): Add argument.
12945 * target.c (debug_to_prepare_to_store): Add argument.
12946 (update_current_target): Update.
12947 * remote.c (remote_prepare_to_store): Add 'self' argument.
12948 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12949 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12950 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12951 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12953 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12954 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12955 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12956 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12957 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12959 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12961 * btrace.h (replay) <replay>: New.
12962 (btrace_is_replaying): New.
12963 * btrace.c (btrace_clear): Free replay iterator.
12964 (btrace_is_replaying): New.
12965 * record-btrace.c (record_btrace_is_replaying): New.
12966 (record_btrace_info): Print insn number if replaying.
12967 (record_btrace_insn_history): Start at replay position.
12968 (record_btrace_call_history): Start at replay position.
12969 (init_record_btrace_ops): Init to_record_is_replaying.
12971 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12973 * record-btrace.c (record_btrace_insn_history_range): Include
12975 (record_btrace_insn_history_from): Adjust range.
12976 (record_btrace_call_history_range): Include
12978 (record_btrace_call_history_from): Adjust range.
12979 * NEWS: Announce changes.
12981 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12983 * record.h (enum record_print_flag)
12984 <record_print_indent_calls>: New.
12985 * record.c (get_call_history_modifiers): Recognize /c modifier.
12986 (_initialize_record): Document /c modifier.
12987 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12988 Reorder fields. Optionally indent the function name. Update
12990 * NEWS: Announce changes.
12992 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12994 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12996 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12998 * btrace.c (ftrace_new_function): Start counting at one.
12999 * record-btrace.c (record_btrace_info): Adjust number of calls
13001 * NEWS: Announce it.
13003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13005 * record-btrace.c (btrace_call_history_insn_range): Print
13006 insn range as [begin, end].
13008 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13010 * btrace.h (struct btrace_func_link): New.
13011 (enum btrace_function_flag): New.
13012 (struct btrace_inst): Rename to ...
13013 (struct btrace_insn): ...this. Update all users.
13014 (struct btrace_func) <ibegin, iend>: Remove.
13015 (struct btrace_func_link): New.
13016 (struct btrace_func): Rename to ...
13017 (struct btrace_function): ...this. Update all users.
13018 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13019 (number, level, flags>: New.
13020 (struct btrace_insn_iterator): Rename to ...
13021 (struct btrace_insn_history): ...this.
13023 (struct btrace_insn_iterator, btrace_call_iterator): New.
13024 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13025 (struct btrace_target_info) <begin, end, level>
13026 <insn_history, call_history>: New.
13027 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13028 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13029 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13030 (btrace_call_number, btrace_call_begin, btrace_call_end)
13031 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13032 (btrace_find_function_by_number, btrace_set_insn_history)
13033 (btrace_set_call_history): New.
13034 * btrace.c (btrace_init_insn_iterator)
13035 (btrace_init_func_iterator, compute_itrace): Remove.
13036 (ftrace_print_function_name, ftrace_print_filename)
13037 (ftrace_skip_file): Change
13038 parameter to const.
13039 (ftrace_init_func): Remove.
13040 (ftrace_debug): Use new btrace_function fields.
13041 (ftrace_function_switched): Also consider gaining and
13042 losing symbol information).
13043 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13044 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13045 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13047 (ftrace_new_function): Move. Remove debug print.
13048 (ftrace_update_lines, ftrace_update_insns): New.
13049 (ftrace_update_function): Check for call, ret, and jump.
13050 (compute_ftrace): Renamed to ...
13051 (btrace_compute_ftrace): ...this. Rewritten to compute call
13053 (btrace_fetch, btrace_clear): Updated.
13054 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13055 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13056 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13057 (btrace_call_number, btrace_call_begin, btrace_call_end)
13058 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13059 (btrace_find_function_by_number, btrace_set_insn_history)
13060 (btrace_set_call_history): New.
13061 * record-btrace.c (require_btrace): Use new btrace thread
13063 (record_btrace_info, btrace_insn_history)
13064 (record_btrace_insn_history, record_btrace_insn_history_range):
13065 Use new btrace thread info fields and new iterator.
13066 (btrace_func_history_src_line): Rename to ...
13067 (btrace_call_history_src_line): ...this. Use new btrace
13068 thread info fields.
13069 (btrace_func_history): Rename to ...
13070 (btrace_call_history): ...this. Use new btrace thread info
13071 fields and new iterator.
13072 (record_btrace_call_history, record_btrace_call_history_range):
13073 Use new btrace thread info fields and new iterator.
13075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13077 * frame.h (frame_id_build_unavailable_stack_special): New.
13078 * frame.c (frame_id_build_unavailable_stack_special): New.
13080 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13082 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13083 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13084 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13086 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13087 (i386_insn_is_jump, i386_jmp_p): New.
13088 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13089 insn_is_jump to gdbarch.
13090 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13091 * gdbarch.h: Regenerated.
13092 * gdbarch.c: Regenerated.
13093 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13094 (default_insn_is_jump): New.
13095 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13096 (default_insn_is_jump): New.
13098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13100 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13102 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13103 (btrace_read_type) <btrace_read_new>: Change to ...
13104 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13106 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13108 * common/linux-btrace.c (linux_read_btrace): Free trace from
13109 previous iteration.
13111 2014-01-15 Doug Evans <dje@google.com>
13113 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13116 2014-01-15 Tom Tromey <tromey@redhat.com>
13118 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13119 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13120 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13121 (set_objfile_main_name): New function.
13122 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13123 language_of_main>: New fields.
13124 (set_objfile_main_name): Declare.
13125 * symtab.c (find_main_name): Loop over objfiles to find the main
13127 (set_main_name): Now static.
13128 (get_main_info): Add comment.
13129 * symtab.h (set_main_name): Don't declare.
13131 2014-01-15 Tom Tromey <tromey@redhat.com>
13133 * symtab.c (main_progspace_key): New global.
13134 (struct main_info): New.
13135 (name_of_main, language_of_main): Remove.
13136 (get_main_info, main_info_cleanup): New function.
13137 (set_main_name, main_name, main_language): Use get_main_info.
13138 (_initialize_symtab): Initialize main_progspace_key.
13140 2014-01-15 Tom Tromey <tromey@redhat.com>
13142 * dbxread.c (process_one_symbol): Update.
13143 * dwarf2read.c (read_partial_die): Update.
13144 * symfile.c (set_initial_language): Call main_language.
13145 * symtab.c (language_of_main): Now static.
13146 (set_main_name): Add 'lang' parameter.
13147 (find_main_name): Update.
13148 (main_language): New function.
13149 (symtab_observer_executable_changed): Update.
13150 * symtab.h (set_main_name): Update.
13151 (language_of_main): Remove.
13152 (main_language): Declare.
13154 2014-01-15 Tom Tromey <tromey@redhat.com>
13156 * symfile.c (init_entry_point_info): Use new "initialized" field.
13158 * objfiles.h (struct entry_point) <initialized>: New field.
13159 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13160 (struct objfile) <ei>: ...here. Remove.
13161 * objfiles.c (entry_point_address_query): Update.
13163 2014-01-15 Tom Tromey <tromey@redhat.com>
13165 * objfiles.c (entry_point_address_query): Relocate entry point
13167 (objfile_relocate1): Do not relocate entry point address.
13168 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13169 <the_bfd_section_index>: New field.
13170 * symfile.c (init_entry_point_info): Find the entry point's
13173 2014-01-15 Tom Tromey <tromey@redhat.com>
13175 * solib-frv.c (enable_break): Use entry_point_address_query.
13177 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13179 * NEWS: Add note on improved process record-replay on
13180 arm*-linux* targets.
13182 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13184 * arm-tdep.c (enum arm_record_result): New enum.
13185 (arm_record_unsupported_insn): New function.
13186 (arm_record_coproc_data_proc): Removed.
13187 (thumb2_record_ld_st_multiple): New function.
13188 (thumb2_record_ld_st_dual_ex_tbb): New function.
13189 (thumb2_record_data_proc_sreg_mimm): New function.
13190 (thumb2_record_ps_dest_generic): New function.
13191 (thumb2_record_branch_misc_cntrl): New function.
13192 (thumb2_record_str_single_data): New function.
13193 (thumb2_record_ld_mem_hints): New function.
13194 (thumb2_record_ld_word): New function.
13195 (thumb2_record_lmul_lmla_div): New function.
13196 (thumb2_record_decode_insn_handler): New function.
13197 (decode_insn): Add thumb32 instruction handlers.
13199 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13201 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13202 (struct arm_linux_record_tdep): Declare.
13203 (arm_canonicalize_syscall): New function.
13204 (arm_all_but_pc_registers_record): New function.
13205 (arm_linux_syscall_record): New function.
13206 (arm_linux_init_abi): Add syscall recording constructs.
13207 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13208 decoding. (arm_record_coproc_data_proc): Update arm syscall
13210 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13211 <arm_syscall_record>: New field.
13212 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13215 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13217 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13218 register for push instruction recording.
13220 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13222 * arm-tdep.c (thumb_record_misc): Update to correct logical
13223 error while recording ldm, ldmia and pop instructions.
13225 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13227 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13229 2014-01-15 Pedro Alves <palves@redhat.com>
13231 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13232 (go32_resume, go32_fetch_registers, store_register)
13233 (go32_store_registers, go32_prepare_to_store)
13234 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13235 (go32_create_inferior, go32_can_run, go32_terminal_init)
13236 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13239 2014-01-15 Tom Tromey <tromey@redhat.com>
13241 * target.h (async_callback_ftype): New typedef.
13242 (struct target_ops) <to_async>: Use it.
13244 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13246 * python/py-value.c (get_field_type): Remove unnecessary curly
13247 braces for single-statement if block.
13249 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13251 * python/py-type.c (convert_field): Add missing empty line
13252 after declarations.
13254 2014-01-14 Doug Evans <dje@google.com>
13256 * symfile.h (expand_symtabs_matching): Renamed from
13257 expand_partial_symbol_names. Update prototype.
13258 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13259 * symfile.c (expand_symtabs_matching): Renamed from
13260 expand_partial_symbol_names. New args file_matcher, kind.
13261 Rename arg fun to symbol_matcher.
13262 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13263 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13264 ada_expand_partial_symbol_name.
13265 (ada_make_symbol_completion_list): Update to call
13266 expand_symtabs_matching.
13267 (ada_add_global_exceptions): Call expand_symtabs_matching.
13268 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13269 call map_symbol_filenames.
13270 * symtab.c (sources_info): Update to call map_symbol_filenames.
13271 (search_symbols): Call expand_symtabs_matching.
13272 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13273 (default_make_symbol_completion_list_break_on): Update to call
13274 expand_symtabs_matching.
13275 (make_source_files_completion_list): Update to call
13276 map_symbol_filenames.
13278 2014-01-14 Doug Evans <dje@google.com>
13280 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13281 (expand_symtabs_symbol_matcher_ftype): New typedef.
13282 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13283 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13284 * symfile.c (expand_partial_symbol_names): Update to use
13285 expand_symtabs_symbol_matcher_ftype.
13286 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13287 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13288 Arg name_matcher renamed to symbol_matcher.
13289 * psymtab.c (recursively_search_psymtabs): Update to use
13290 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13292 (expand_symtabs_matching_via_partial): Update to use
13293 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13294 Arg name_matcher renamed to symbol_matcher.
13296 2014-01-14 Doug Evans <dje@google.com>
13298 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13299 (map_partial_symbol_filenames): Ditto.
13300 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13301 (map_partial_symbol_filenames): Ditto.
13302 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13303 (map_partial_symbol_filenames): Ditto.
13304 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13305 (map_partial_symbol_filenames): Ditto.
13306 * symtab.c: Delete #include "psymtab.h".
13308 2014-01-14 Pedro Alves <palves@redhat.com>
13309 Tom Tromey <tromey@redhat.com>
13311 * infrun.c (use_displaced_stepping): Use find_record_target
13312 instead of RECORD_IS_USED.
13313 (adjust_pc_after_break): Use record_full_is_used instead of
13315 * record-btrace.c (record_btrace_open): Call record_preopen
13316 instead of checking RECORD_IS_USED.
13317 * record-full.c (record_full_shortname)
13318 (record_full_core_shortname): New globals.
13319 (record_full_is_used): New function.
13320 (find_full_open): Call record_preopen instead of checking
13322 (init_record_full_ops): Set the target's shortname to
13323 record_full_shortname.
13324 (init_record_full_core_ops): Set the target's shortname to
13325 record_full_core_shortname.
13326 * record-full.h (record_full_is_used): Declare.
13327 * record.c (find_record_target): Make extern.
13328 (record_preopen): New function.
13329 * record.h (RECORD_IS_USED): Delete macro.
13330 (find_record_target, record_preopen): Declare functions.
13332 2014-01-14 Yao Qi <yao@codesourcery.com>
13334 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13335 'len''s type to ULONGEST.
13336 (core_xfer_shared_libraries_aix): Likewise.
13337 * gdbarch.c, gdbarch.h: Regenerated.
13338 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13339 Change type of 'len' to ULONGEST.
13340 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13341 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13343 2014-01-14 Yao Qi <yao@codesourcery.com>
13345 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13346 type of 'len' to ULONGEST.
13347 (linux_xfer_osdata_processgroups): Likewise.
13348 (linux_xfer_osdata_threads): Likewise.
13349 (linux_xfer_osdata_fds): Likewise.
13350 (linux_xfer_osdata_isockets): Likewise.
13351 (linux_xfer_osdata_shm): Likewise.
13352 (linux_xfer_osdata_sem): Likewise.
13353 (linux_xfer_osdata_msg): Likewise.
13354 (linux_common_xfer_osdata): Likewise.
13355 (struct osdata_type) <getter>: Likewise.
13356 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13359 2014-01-14 Yao Qi <yao@codesourcery.com>
13361 * target.h (target_xfer_partial_ftype): Update.
13362 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13364 * aix-thread.c (aix_thread_xfer_partial): Change type of
13365 argument 'len' to ULONGEST.
13366 * auxv.c (procfs_xfer_auxv): Likewise.
13367 (ld_so_xfer_auxv): Likewise.
13368 (memory_xfer_auxv): Likewise.
13369 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13370 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13371 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13372 * corelow.c (core_xfer_partial): Likewise.
13373 * ctf.c (ctf_xfer_partial): Likewise.
13374 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13376 (darwin_read_dyld_info): Likewise.
13377 (darwin_xfer_partial): Likewise.
13378 * exec.c (section_table_xfer_memory_partial): Likewise.
13379 (exec_xfer_partial): Likewise.
13380 * exec.h (section_table_xfer_memory_partial): Update
13382 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13383 instead of plongest.
13384 (gnu_xfer_partial): Likewise.
13385 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13386 (ia64_hpux_xfer_solib_got): Likewise.
13387 (ia64_hpux_xfer_partial): Likewise.
13388 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13389 * inf-ptrace.c (inf_ptrace_xfer_partial):
13390 * inf-ttrace.c (inf_ttrace_xfer_partial):
13391 * linux-nat.c (linux_xfer_siginfo): Likewise.
13392 (linux_nat_xfer_partial): Likewise.
13393 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13394 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13395 * monitor.c (monitor_xfer_memory): Likewise.
13396 (monitor_xfer_partial): Likewise.
13397 * procfs.c (procfs_xfer_partial): Likewise.
13398 * record-full.c (record_full_xfer_partial): Likewise.
13399 (record_full_core_xfer_partial): Likewise.
13400 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13401 instead of plongest.
13402 (gdbsim_xfer_partial): Likewise.
13403 * remote.c (remote_xfer_partial): Likewise.
13404 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13405 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13407 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13408 (rs6000_xfer_shared_libraries): Likewise.
13409 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13410 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13411 (sparc_xfer_partial): Likewise.
13412 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13413 (spu_xfer_partial): Likewise.
13414 * spu-multiarch.c (spu_xfer_partial): Likewise.
13415 * target.c (target_read_live_memory): Likewise.
13416 (memory_xfer_live_readonly_partial): Likewise.
13417 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13418 (target_xfer_partial, default_xfer_partial): Likewise.
13419 (current_xfer_partial): Likewise.
13420 * tracepoint.c (tfile_xfer_partial): Likewise.
13421 * windows-nat.c (windows_xfer_memory): Likewise. Call
13422 pulongest instead of plongest.
13423 (windows_xfer_partial): Likewise.
13424 (windows_xfer_shared_libraries): Likewise.
13426 2014-01-14 Yao Qi <yao@codesourcery.com>
13428 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13429 target_xfer_partial_ftype.
13431 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13435 * valops.c (value_struct_elt_bitpos): New function
13436 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13437 object to 'None' if the field name is an empty string ("").
13438 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13439 attribute to look for a field when 'name' is 'None'.
13440 (get_field_type): New function
13442 2014-01-13 Doug Evans <dje@google.com>
13445 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13446 (try_open_dwop_file): Ditto.
13447 * gdb_bfd.c: #include "vec.h".
13448 (bfdp): New typedef.
13449 (struct gdb_bfd_data): New member included_bfds.
13450 (gdb_bfd_unref): Unref all included bfds.
13451 (gdb_bfd_record_inclusion): New function.
13452 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13454 2014-01-13 Tom Tromey <tromey@redhat.com>
13456 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13458 2014-01-13 Tom Tromey <tromey@redhat.com>
13460 * defs.h (use_windows): Remove.
13461 * gdb.c (main): Update.
13462 * main.c (captured_main, gdb_main): Update.
13463 * main.h (struct captured_main_args) <use_windows>: Remove.
13464 * top.c (use_windows): Remove.
13466 2014-01-13 Tom Tromey <tromey@redhat.com>
13468 * defs.h (deprecated_flush_hook): Remove.
13470 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13473 * linux-thread-db.c (try_thread_db_load): Add parameter
13474 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13475 (try_thread_db_load_from_pdir_1): Move it there from here.
13476 (try_thread_db_load_from_sdir): Update caller.
13477 (try_thread_db_load_from_dir): Move it there from here.
13479 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13481 * regformats/regdat.sh: Always rewrite the register file.
13483 2014-01-13 Pedro Alves <palves@redhat.com>
13485 * Makefile.in (CHECK_HEADERS): New variable.
13486 (check-headers:): New rule.
13488 2014-01-13 Tom Tromey <tromey@redhat.com>
13490 * cli/cli-setshow.c (do_set_command): Update.
13491 * defs.h (deprecated_set_hook): Remove.
13492 * top.c (deprecated_set_hook): Remove.
13494 2014-01-13 Pedro Alves <palves@redhat.com>
13496 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13497 the tracepoint if the PC is a pseudo-register.
13499 2014-01-13 Tom Tromey <tromey@redhat.com>
13501 * defs.h (XCALLOC): Remove.
13502 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13503 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13504 * dwarf2loc.c (allocate_piece_closure): Likewise.
13505 * elfread.c (elf_symfile_segments): Likewise.
13506 (elf_symfile_segments): Likewise.
13507 * gdbtypes.c (copy_type_recursive): Likewise.
13508 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13509 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13510 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13512 * mt-tdep.c (mt_gdbarch_init): Likewise.
13513 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13515 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13516 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13517 * registry.c (registry_alloc_data): Likewise.
13518 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13519 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13520 * serial.c (serial_fdopen_ops): Likewise.
13521 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13523 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13524 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13527 2014-01-13 Tom Tromey <tromey@redhat.com>
13529 * defs.h (XMALLOC): Remove.
13530 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13531 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13532 * cli-out.c (struct ui_out *): Likewise.
13533 * cli/cli-dump.c (add_dump_command): Likewise.
13534 (add_dump_command): Likewise.
13535 * complaints.c (get_complaints): Likewise.
13536 (find_complaint): Likewise.
13537 * dwarf2-frame.c (execute_cfa_program): Likewise.
13538 * dwarf2read.c (abbrev_table_read_table): Likewise.
13539 * gdbarch.sh: Likewise.
13540 * gdbarch.c: Rebuild.
13541 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13542 * interps.c (interp_new): Likewise.
13543 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13544 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13545 * mi/mi-console.c (mi_console_file_new): Likewise.
13546 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13547 * mi/mi-out.c (mi_out_new): Likewise.
13548 * mi/mi-parse.c (mi_parse): Likewise.
13549 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13550 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13551 * observer.c (xalloc_observer_list_node): Likewise.
13552 * regcache.c (regcache_xmalloc_1): Likewise.
13553 * reggroups.c (reggroup_new): Likewise.
13554 (_initialize_reggroup): Likewise.
13555 * registry.c (register_data_with_cleanup): Likewise.
13556 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13557 * ser-base.c (serial_ttystate): Likewise.
13558 * ser-mingw.c (make_pipe_state): Likewise.
13559 * ser-pipe.c (pipe_open): Likewise.
13560 * serial.c (serial_open): Likewise.
13561 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13562 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13563 (tui_alloc_win_info): Likewise.
13564 (tui_add_content_elements): Likewise.
13565 * tui/tui-file.c (tui_file_new): Likewise.
13566 * tui/tui-out.c (tui_out_new): Likewise.
13567 * ui-file.c (mem_file_new): Likewise.
13568 * ui-out.c (push_level): Likewise.
13569 (make_cleanup_ui_out_end): Likewise.
13570 (append_header_to_list): Likewise.
13571 (ui_out_new): Likewise.
13572 * user-regs.c (user_reg_add_builtin): Likewise.
13574 2014-01-13 Tom Tromey <tromey@redhat.com>
13576 * defs.h (XZALLOC): Remove.
13577 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13578 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13579 (get_ada_tasks_inferior_data): Likewise.
13580 * auto-load.c (get_auto_load_pspace_data): Likewise.
13581 * auxv.c (get_auxv_inferior_data): Likewise.
13582 * bfd-target.c (target_bfd_reopen): Likewise.
13583 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13584 (deprecated_insert_raw_breakpoint): Likewise.
13585 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13586 * corelow.c (core_open): Likewise.
13587 * darwin-nat.c (darwin_check_new_threads): Likewise.
13588 (darwin_attach_pid): Likewise.
13589 * dummy-frame.c (dummy_frame_push): Likewise.
13590 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13591 * dwarf2loc.c (allocate_piece_closure): Likewise.
13592 * elfread.c (elf_symfile_segments): Likewise.
13593 * eval.c (ptrmath_type_p): Likewise.
13594 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13595 * gdbtypes.c (alloc_type_arch): Likewise.
13596 (alloc_type_instance): Likewise.
13597 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13598 * inf-child.c (inf_child_can_use_agent): Likewise.
13599 * inflow.c (get_inflow_inferior_data): Likewise.
13600 * infrun.c (save_infcall_suspend_state): Likewise.
13601 * jit.c (jit_reader_load): Likewise.
13602 (get_jit_objfile_data): Likewise.
13603 (get_jit_program_space_data): Likewise.
13604 (jit_object_open_impl): Likewise.
13605 (jit_symtab_open_impl): Likewise.
13606 (jit_block_open_impl): Likewise.
13607 (jit_frame_sniffer): Likewise.
13608 * linux-fork.c (add_fork): Likewise.
13609 * maint.c (make_command_stats_cleanup): Likewise.
13610 * objfiles.c (get_objfile_pspace_data): Likewise.
13611 * opencl-lang.c (struct lval_closure): Likewise.
13612 * osdata.c (osdata_start_osdata): Likewise.
13613 * progspace.c (new_address_space): Likewise.
13614 (add_program_space): Likewise.
13615 * remote-sim.c (get_sim_inferior_data): Likewise.
13616 * sh-tdep.c (sh_gdbarch_init): Likewise.
13617 * skip.c (Ignore): Likewise.
13618 (skip_delete_command): Likewise.
13619 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13620 (library_list_start_library): Likewise.
13621 (solib_aix_current_sos): Likewise.
13622 * solib-darwin.c (get_darwin_info): Likewise.
13623 (darwin_current_sos): Likewise.
13624 * solib-dsbt.c (get_dsbt_info): Likewise.
13625 * solib-ia64-hpux.c (new_so_list): Likewise.
13626 (ia64_hpux_get_solib_linkage_addr): Likewise.
13627 * solib-spu.c (append_ocl_sos): Likewise.
13628 (spu_current_sos): Likewise.
13629 * solib-svr4.c (get_svr4_info): Likewise.
13630 (svr4_keep_data_in_core): Likewise.
13631 (library_list_start_library): Likewise.
13632 (svr4_default_sos): Likewise.
13633 (svr4_read_so_list): Likewise.
13634 * solib-target.c (library_list_start_library): Likewise.
13635 (solib_target_current_sos): Likewise.
13636 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13637 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13638 * symfile.c (default_symfile_segments): Likewise.
13639 * target-descriptions.c (tdesc_data_init): Likewise.
13640 (tdesc_create_reg): Likewise.
13641 (struct tdesc_type *): Likewise.
13642 (tdesc_create_vector): Likewise.
13643 (tdesc_set_struct_size): Likewise.
13644 (struct tdesc_type *): Likewise.
13645 (tdesc_free_feature): Likewise.
13646 (tdesc_create_feature): Likewise.
13647 * windows-nat.c (windows_add_thread): Likewise.
13648 (windows_make_so): Likewise.
13649 * xml-support.c (gdb_xml_body_text): Likewise.
13650 (gdb_xml_create_parser_and_cleanup): Likewise.
13651 (xml_process_xincludes): Likewise.
13652 * xml-syscall.c (allocate_syscalls_info): Likewise.
13653 (syscall_create_syscall_desc): Likewise.
13655 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13657 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13658 function, with code from i386_stap_parse_special_token.
13659 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13660 (i386_stap_parse_special_token): Move code to the two functions
13661 above; simplify it.
13663 2014-01-09 Pedro Alves <palves@redhat.com>
13664 Hui Zhu <hui@codesourcery.com>
13667 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13668 bp_err_string. Don't mark the location shlib_disabled if the
13669 error thrown wasn't a generic or memory error. Catch errors
13670 thrown while inserting breakpoints in overlayed code. Output
13671 error message of software breakpoints.
13672 * remote.c (remote_insert_breakpoint): If this breakpoint has
13673 target-side commands but this stub doesn't support Z0 packets,
13674 throw NOT_SUPPORTED_ERROR error.
13675 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13676 * target.h (target_insert_breakpoint): Extend comment.
13677 (target_insert_hw_breakpoint): Add comment.
13679 2014-01-08 Pedro Alves <palves@redhat.com>
13681 * remote.c (remote_add_thread): Add threads silently if starting
13683 (remote_notice_new_inferior): If in all-stop, and starting up,
13684 don't call notice_new_inferior.
13685 (get_current_thread): New function, factored out from ...
13686 (add_current_inferior_and_thread): ... this. Adjust.
13687 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13688 found any thread, then select the remote's current thread as GDB's
13689 current thread too.
13691 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13693 * NEWS: Create a new section for the next release branch.
13694 Rename the section of the current branch, now that it has
13697 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13699 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13700 * version.in: Bump version to 7.7.50.DATE-cvs.
13702 2014-01-08 Yao Qi <yao@codesourcery.com>
13704 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13705 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13706 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13708 2014-01-08 Yao Qi <yao@codesourcery.com>
13710 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13711 return value of bfd_get_filename to symbol_file_add_from_bfd.
13713 2014-01-08 Pierre Muller <muller@sourceware.org>
13716 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13717 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13718 to prim_record_mininal_symbol_and_info.
13719 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13720 in call to prim_record_minimal_symbol_and_info.
13721 (read_pe_exported_syms): Set index field of section_data.
13723 2014-01-07 Andrew Pinski <apinski@cavium.com>
13725 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13726 * features/aarch64.c: Regenerate.
13728 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13730 * target.c (return_null): Define.
13731 (update_current_target): Use it instead of return_zero for
13732 functions that return a pointer.
13734 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13736 * source.c (add_path): Fix check for duplicated paths in the previously
13739 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13741 * ada-lang.c: Remove duplicated include statements.
13742 * alphabsd-nat.c: Ditto.
13743 * amd64-darwin-tdep.c: Ditto.
13744 * amd64fbsd-nat.c: Ditto.
13745 * auto-load.c: Ditto.
13747 * breakpoint.c: Ditto.
13748 * dbxread.c: Ditto.
13749 * fork-child.c: Ditto.
13750 * gdb_usleep.c: Ditto.
13751 * i386-darwin-tdep.c: Ditto.
13752 * i386fbsd-nat.c: Ditto.
13754 * inferior.c: Ditto.
13755 * jv-lang.c: Ditto.
13756 * linux-nat.c: Ditto.
13757 * linux-tdep.c: Ditto.
13758 * m68kbsd-nat.c: Ditto.
13759 * m68klinux-nat.c: Ditto.
13760 * microblaze-tdep.c: Ditto.
13761 * mips-linux-tdep.c: Ditto.
13762 * mn10300-tdep.c: Ditto.
13763 * nto-tdep.c: Ditto.
13764 * opencl-lang.c: Ditto.
13766 * printcmd.c: Ditto.
13767 * regcache.c: Ditto.
13768 * remote-m32r-sdi.c: Ditto.
13770 * symfile.c: Ditto.
13772 * tilegx-linux-nat.c: Ditto.
13773 * tilegx-tdep.c: Ditto.
13774 * tracepoint.c: Ditto.
13776 * vaxbsd-nat.c: Ditto.
13777 * windows-nat.c: Ditto.
13778 * xtensa-tdep.c: Ditto.
13780 2014-01-07 Yao Qi <yao@codesourcery.com>
13782 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13784 2014-01-07 Yao Qi <yao@codesourcery.com>
13785 Joel Brobecker <brobecker@adacore.com>
13787 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13788 (pdc_write_regs): Likewise.
13789 (fetch_regs_kernel_thread): Likewise.
13790 (store_regs_kernel_thread): Likewise.
13792 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13794 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13795 tagged type objects to their actual type.
13797 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13799 * ada-valprint.c (print_field_values): Add "language" parameter.
13800 Update calls to print_field_values and print_variant_part.
13801 Pass new parameter "language" in call to val_print instead
13802 of "current_language". Replace call to ada_val_print by call
13804 (print_variant_part): Add "language" parameter.
13805 (ada_val_print_struct_union): Update call to print_field_values.
13807 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13809 * ada-valprint.c (ui_memcpy): Delete.
13810 (ada_print_floating): Update documentation. Add empty line
13811 between between function documentation and implementation.
13812 Delete variable "buffer". Use ui_file_xstrdup in place of
13813 ui_file_put. Minor adjustments following this change.
13815 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13817 * ada-valprint.c (ada_val_print_string): New function,
13818 extracted from ada_val_print_array.
13819 (ada_val_print_array): Replace extracted code by call
13820 to ada_val_print_string followed by a return. Move
13821 "else" branch to the function's top block.
13823 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13825 * ada-valprint.c (ada_val_print_array): Move implementation
13826 down. Rename parameter "offset" and "val" into "offset_aligned"
13827 and "original_value" respectively. Add parameter "offset".
13829 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13831 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13832 re-organizing the code. Change the "???" message printed
13833 when target type is a TYPE_CODE_UNDEF into
13834 "<ref to undefined type>".
13836 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13838 * ada-valprint.c (print_record): Delete, implementation inlined...
13839 (ada_val_print_struct_union): ... here. Remove call to
13840 ada_check_typedef in inlined implementation.
13842 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13844 * ada-valprint.c (ada_val_print_gnat_array): New function,
13845 extracted from ada_val_print_1;
13846 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13847 (ada_val_print_flt, ada_val_print_struct_union)
13848 (ada_val_print_ref): Likewise.
13849 (ada_val_print_1): Delete variables i and elttype.
13850 Replace extracted-out code by call to corresponding
13853 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13855 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13857 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13859 * ada-valprint.c (ada_val_print_1): Replace calls to
13860 ada_val_print_1 by calls to val_print.
13862 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13864 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13865 Update calls to self accordingly. Replace calls to c_val_print
13866 by calls to val_print.
13868 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13870 * ada-valprint.c (print_record): Delete declaration.
13871 (adjust_type_signedness, ada_val_print_1): Likewise.
13872 (ada_val_print): Move function implementation down.
13873 (print_variant_part, print_field_values, print_record):
13874 Move function implementation up.
13876 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13878 * python/py-type.c (typy_get_name): New function.
13879 (type_object_getset): Add entry for attribute "name".
13880 * NEWS: Add entry mentioning this new attribute.
13882 2014-01-07 Yao Qi <yao@codesourcery.com>
13884 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13887 2014-01-07 Yao Qi <yao@codesourcery.com>
13889 * gnu-nat.c (info_port_rights): Add qualifier const to
13892 2014-01-07 Yao Qi <yao@codesourcery.com>
13894 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13896 2014-01-07 Yao Qi <yao@codesourcery.com>
13898 * gnu-nat.c (make_inf) Update declaration.
13899 (make_inf): Make it static.
13900 (inf_set_traced): Likewise.
13901 (inf_port_to_thread, inf_task_died_status): Likewise.
13903 2014-01-07 Yao Qi <yao@codesourcery.com>
13905 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13907 2014-01-07 Yao Qi <yao@codesourcery.com>
13909 * gnu-nat.c (_initialize_gnu_nat): Declare.
13911 2014-01-07 Yao Qi <yao@codesourcery.com>
13913 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13915 (struct gdbarch_info) <byte_order>: Change type to
13917 <byte_order_for_code>: Likewise.
13918 * gdbarch.c, gdbarch.h: Regenerated.
13920 2014-01-06 Sasha Smundak <asmundak@google.com>
13922 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13924 2014-01-06 Tom Tromey <tromey@redhat.com>
13926 * doublest.c (convert_doublest_to_floatformat): Use const, not
13928 * somread.c (som_symtab_read): Likewise.
13930 2014-01-07 Hui Zhu <hui@codesourcery.com>
13932 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13933 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13934 (gdb_bfd_fopen): Ditto.
13935 (gdb_bfd_openr): Ditto.
13936 (gdb_bfd_openw): Ditto.
13937 (gdb_bfd_openr_iovec): Ditto.
13938 (gdb_bfd_fdopenr): Ditto.
13939 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13940 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13942 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13944 * symfile-mem.c (symbol_file_add_from_memory): Removed
13945 gdb_bfd_stash_filename.
13947 2014-01-03 Doug Evans <dje@google.com>
13949 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13952 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13954 Update year range in copyright notice of all files.
13956 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13958 * top.c (print_gdb_version): Set copyright year to 2014.
13960 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13962 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13964 For older changes see ChangeLog-2013.
13970 version-control: never