1 2014-10-14 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
4 of the case where the second operand is a pointer.
7 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
9 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
10 only if it is not NULL.
11 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
12 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
13 (struct probe_ops) <clear_semaphore>: Likewise.
14 * tracepoint.c (start_tracing): Call set_semaphore only if it is
16 (stop_tracing): Likewise, for clear_semaphore.
18 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
20 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
21 using language_c, instead of current_language.
23 2014-10-13 Doug Evans <dje@google.com>
25 * python/py-objfile.c (objfpy_initialize): New function.
26 (objfpy_new, objfile_to_objfile_object): Call it.
27 * python/py-progspace.c (pspy_initialize): New function.
28 (pspy_new, pspace_to_pspace_object): Call it.
30 2014-10-13 Miroslav Franc <mfranc@redhat.com>
31 Jan Kratochvil <jan.kratochvil@redhat.com>
33 Fix "save breakpoints" for "catch" command.
34 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
37 2014-10-12 Miroslav Franc <mfranc@redhat.com>
39 Fix "save breakpoints" for "disable $bpnum" command.
40 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
42 2014-10-10 Pedro Alves <palves@redhat.com>
44 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
45 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
46 (HFILES_NO_SRCDIR): Remove solib-irix.h.
47 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
49 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
50 * configure.ac: Remove references to IRIX.
51 * configure.host: Add *-*-irix* to the obsolete hosts section.
52 Remove all other references to irix.
53 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
56 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
58 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
59 isn't valid, release the tdesc arch data and return NULL.
61 2014-10-10 Pedro Alves <palves@redhat.com>
63 * linux-tdep.c: Include observer.h.
64 (linux_inferior_data): New global.
65 (struct linux_info): New structure.
66 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
67 (get_linux_inferior_data): New functions.
68 (linux_vsyscall_range): Rename to ...
69 (linux_vsyscall_range_raw): ... this.
70 (linux_vsyscall_range): New function; handles caching.
71 (_initialize_linux_tdep): Register linux_inferior_data. Install
72 inferior_exit and inferior_appeared observers.
74 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
75 Pedro Alves <palves@redhat.com>
78 * solib-svr4.c (svr4_read_so_list): Rename to ...
79 (svr4_current_sos_1): ... this and change the function comment.
80 (svr4_current_sos): New function.
82 2014-10-10 Pedro Alves <palves@redhat.com>
84 * arch-utils.c (default_vsyscall_range): New function.
85 * arch-utils.h (default_vsyscall_range): New declaration.
86 * gdbarch.sh (vsyscall_range): New hook.
87 * gdbarch.h, gdbarch.c: Regenerate.
88 * linux-tdep.c (linux_vsyscall_range): New function.
89 (linux_init_abi): Install linux_vsyscall_range as
90 vsyscall_range gdbarch hook.
91 * memrange.c (address_in_mem_range): New function.
92 * memrange.h (address_in_mem_range): New declaration.
93 * symfile-mem.c (find_vdso_size): Delete function.
94 (add_vsyscall_page): Use gdbarch_vsyscall_range.
96 2014-10-10 Pedro Alves <palves@redhat.com>
98 * infrun.c (normal_stop): Fix typo in comment.
100 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
103 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
104 typo when using logical AND to determine instruction type.
106 2014-10-09 Yao Qi <yao@codesourcery.com>
108 * infrun.c (handle_signal_stop): Remove local variable
111 2014-10-08 Stan Shebs <stan@codesourcery.com>
113 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
115 2014-10-08 Gary Benson <gbenson@redhat.com>
117 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
119 2014-10-08 Gary Benson <gbenson@redhat.com>
121 * common/common-defs.h: Include common-exceptions.h.
122 * exceptions.h: Do not include common-exceptions.h.
124 2014-10-08 Gary Benson <gbenson@redhat.com>
126 * common/common-defs.h: Include cleanups.h.
127 * common/common-exceptions.c: Do not include cleanups.h.
130 2014-10-08 Gary Benson <gbenson@redhat.com>
132 * ada-lang.c: Do not include exceptions.h.
133 * ada-valprint.c: Likewise.
134 * amd64-tdep.c: Likewise.
135 * auto-load.c: Likewise.
137 * break-catch-throw.c: Likewise.
138 * breakpoint.c: Likewise.
139 * btrace.c: Likewise.
140 * c-lang.c: Likewise.
141 * cli/cli-cmds.c: Likewise.
142 * cli/cli-interp.c: Likewise.
143 * cli/cli-script.c: Likewise.
144 * completer.c: Likewise.
145 * corefile.c: Likewise.
146 * corelow.c: Likewise.
147 * cp-abi.c: Likewise.
148 * cp-support.c: Likewise.
149 * cp-valprint.c: Likewise.
150 * darwin-nat.c: Likewise.
151 * dwarf2-frame-tailcall.c: Likewise.
152 * dwarf2-frame.c: Likewise.
153 * dwarf2loc.c: Likewise.
154 * dwarf2read.c: Likewise.
156 * event-loop.c: Likewise.
157 * event-top.c: Likewise.
158 * f-valprint.c: Likewise.
159 * frame-unwind.c: Likewise.
161 * gdbtypes.c: Likewise.
162 * gnu-v2-abi.c: Likewise.
163 * gnu-v3-abi.c: Likewise.
164 * guile/scm-auto-load.c: Likewise.
165 * guile/scm-breakpoint.c: Likewise.
166 * guile/scm-cmd.c: Likewise.
167 * guile/scm-frame.c: Likewise.
168 * guile/scm-lazy-string.c: Likewise.
169 * guile/scm-param.c: Likewise.
170 * guile/scm-symbol.c: Likewise.
171 * guile/scm-type.c: Likewise.
172 * hppa-hpux-tdep.c: Likewise.
173 * i386-tdep.c: Likewise.
174 * inf-loop.c: Likewise.
175 * infcall.c: Likewise.
176 * infcmd.c: Likewise.
177 * infrun.c: Likewise.
178 * interps.c: Likewise.
179 * interps.h: Likewise.
181 * linespec.c: Likewise.
182 * linux-nat.c: Likewise.
183 * linux-thread-db.c: Likewise.
184 * m32r-rom.c: Likewise.
186 * memory-map.c: Likewise.
187 * mi/mi-cmd-break.c: Likewise.
188 * mi/mi-cmd-stack.c: Likewise.
189 * mi/mi-interp.c: Likewise.
190 * mi/mi-main.c: Likewise.
191 * monitor.c: Likewise.
192 * nto-procfs.c: Likewise.
193 * objc-lang.c: Likewise.
194 * p-valprint.c: Likewise.
196 * ppc-linux-tdep.c: Likewise.
197 * printcmd.c: Likewise.
199 * python/py-auto-load.c: Likewise.
200 * python/py-breakpoint.c: Likewise.
201 * python/py-cmd.c: Likewise.
202 * python/py-finishbreakpoint.c: Likewise.
203 * python/py-frame.c: Likewise.
204 * python/py-framefilter.c: Likewise.
205 * python/py-function.c: Likewise.
206 * python/py-gdb-readline.c: Likewise.
207 * python/py-inferior.c: Likewise.
208 * python/py-infthread.c: Likewise.
209 * python/py-lazy-string.c: Likewise.
210 * python/py-linetable.c: Likewise.
211 * python/py-param.c: Likewise.
212 * python/py-prettyprint.c: Likewise.
213 * python/py-symbol.c: Likewise.
214 * python/py-type.c: Likewise.
215 * python/py-value.c: Likewise.
216 * python/python-internal.h: Likewise.
217 * python/python.c: Likewise.
218 * record-btrace.c: Likewise.
219 * record-full.c: Likewise.
220 * regcache.c: Likewise.
221 * remote-fileio.c: Likewise.
222 * remote-mips.c: Likewise.
223 * remote.c: Likewise.
224 * rs6000-aix-tdep.c: Likewise.
225 * rs6000-nat.c: Likewise.
227 * solib-darwin.c: Likewise.
228 * solib-dsbt.c: Likewise.
229 * solib-frv.c: Likewise.
230 * solib-ia64-hpux.c: Likewise.
231 * solib-spu.c: Likewise.
232 * solib-svr4.c: Likewise.
234 * spu-tdep.c: Likewise.
236 * stap-probe.c: Likewise.
237 * symfile-mem.c: Likewise.
238 * symmisc.c: Likewise.
239 * target.c: Likewise.
240 * thread.c: Likewise.
242 * tracepoint.c: Likewise.
243 * tui/tui-interp.c: Likewise.
244 * typeprint.c: Likewise.
246 * valarith.c: Likewise.
247 * valops.c: Likewise.
248 * valprint.c: Likewise.
250 * varobj.c: Likewise.
251 * windows-nat.c: Likewise.
252 * xml-support.c: Likewise.
254 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
256 * mips-tdep.c (add_offset_16): Rewrite to implement what the
258 (extended_mips16_next_pc): Update accordingly.
260 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
262 * mips-tdep.c (mips16_instruction_is_compact_branch): New
264 (micromips_instruction_is_compact_branch): Likewise.
265 (mips16_scan_prologue): Terminate scanning upon seeing a branch
266 or a compact jump, reaching a jump delay slot, or seeing a
267 second non-prologue instruction.
268 (micromips_scan_prologue): Also terminate scanning upon seeing a
269 compact branch or jump, or reaching a branch or jump delay slot.
270 (mips32_scan_prologue): Terminate scanning upon reaching a branch
271 or jump delay slot, or seeing a second non-prologue instruction.
272 (mips32_instruction_has_delay_slot): Retain instruction
273 examination code only, update arguments accordingly and move
274 instruction fetch pieces to...
275 (mips32_insn_at_pc_has_delay_slot): ... this new function.
276 (micromips_instruction_has_delay_slot): Likewise and to...
277 (micromips_insn_at_pc_has_delay_slot): ... this new function.
278 (mips16_instruction_has_delay_slot): Likewise and to...
279 (mips16_insn_at_pc_has_delay_slot): ... this new function.
280 (mips_single_step_through_delay): Update accordingly.
281 (mips_adjust_breakpoint_address): Likewise.
283 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
285 * mips-tdep.c (micromips_instruction_has_delay_slot): When
286 !mustbe32 also return 1 for 32-bit instructions.
287 (mips16_instruction_has_delay_slot): Likewise. Add an
290 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
292 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
295 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
297 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
299 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
300 for the breakpoint's address. Don't preinitialize `placed_size'.
301 (insert_bp_location): Set `reqstd_address' rather than
303 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
304 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
306 (bkpt_remove_location): Likewise.
307 (deprecated_insert_raw_breakpoint): Likewise.
308 (deprecated_remove_raw_breakpoint): Likewise.
309 (find_single_step_breakpoint): Likewise.
310 * mem-break.c (default_memory_insert_breakpoint): Use
311 `reqstd_address' for the breakpoint's address. Don't set
312 `placed_address' or `placed_size' if breakpoint contents couldn't
313 have been determined.
314 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
315 the breakpoint's address.
316 (remote_insert_hw_breakpoint): Likewise. Don't set
317 `placed_address' or `placed_size' if breakpoint couldn't have been
319 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
320 `reqstd_address' for the breakpoint's address.
321 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
322 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
323 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
324 * microblaze-linux-tdep.c
325 (microblaze_linux_memory_remove_breakpoint): Likewise.
326 * monitor.c (monitor_insert_breakpoint): Likewise.
327 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
328 (procfs_insert_hw_breakpoint): Likewise.
329 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
330 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
331 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
332 * remote-mips.c (mips_insert_breakpoint): Likewise.
333 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
335 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
337 * valops.c (value_assign): Check for bit field assignments
338 before calling architecture-specific register value
339 conversion functions.
341 2014-10-03 Pierre Muller <muller@sourceware.org>
343 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
345 2014-10-02 Pedro Alves <palves@redhat.com>
347 * breakpoint.c (breakpoints_should_be_inserted_now): Use
348 threads_are_executing.
349 * breakpoint.h (breakpoints_should_be_inserted_now): Add
351 * gdbthread.h (threads_are_executing): Declare.
352 (handle_signal_stop) <random signals>: Don't print about the
353 signal here if stopping.
354 (end_stepping_range): Don't notify observers here.
355 (normal_stop): Update the thread list. If stopped by a random
356 signal or a stepping range ended, notify observers.
357 * thread.c (threads_executing): New global.
358 (init_thread_list): Clear 'threads_executing'.
359 (set_executing): Set or clear 'threads_executing'.
360 (threads_are_executing): New function.
361 (update_threads_executing): New function.
362 (update_thread_list): Use it.
364 2014-10-02 Pedro Alves <palves@redhat.com>
367 * breakpoint.c (update_breakpoints_after_exec): Don't create
368 overlay, longjmp, std terminate nor exception breakpoints here.
370 2014-10-02 Pedro Alves <palves@redhat.com>
372 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
374 * inferior.c (find_inferior_for_program_space): Give preference to
375 the current inferior.
376 * inferior.h (find_inferior_for_program_space): Update comment.
377 * progspace.c (switch_to_program_space_and_thread): Prefer the
378 current inferior if it's bound to the program space requested. If
379 the inferior found doesn't have a PID yet, don't bother looking up
381 * progspace.h (switch_to_program_space_and_thread): Adjust
383 * thread.c (any_thread_of_process, any_live_thread_of_process):
384 Give preference to the current thread.
386 2014-10-01 Pedro Alves <palves@redhat.com>
388 * breakpoint.c (insert_bp_location): Error out if inserting a
389 software breakpoint at a read-only address.
390 * target.c (memory_xfer_check_region): New function, factored out
392 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
394 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
395 against the memory region attributes.
397 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
399 * NEWS: Announce new exit-code field in -list-thread-groups
401 * inferior.c (exit_inferior_1): Don't clear exit code.
402 (inferior_appeared): Clear exit code.
403 * mi/mi-main.c (print_one_inferior): Add printing of the exit
406 2014-10-01 Pedro Alves <palves@redhat.com>
408 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
409 GENERATED" along with emacs/vi read-only markers.
410 * regformats/aarch64.dat: Regenerate.
411 * regformats/arm-with-iwmmxt.dat: Regenerate.
412 * regformats/arm-with-neon.dat: Regenerate.
413 * regformats/arm-with-vfpv2.dat: Regenerate.
414 * regformats/arm-with-vfpv3.dat: Regenerate.
415 * regformats/i386/amd64-avx-linux.dat: Regenerate.
416 * regformats/i386/amd64-avx.dat: Regenerate.
417 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
418 * regformats/i386/amd64-avx512.dat: Regenerate.
419 * regformats/i386/amd64-linux.dat: Regenerate.
420 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
421 * regformats/i386/amd64-mpx.dat: Regenerate.
422 * regformats/i386/amd64.dat: Regenerate.
423 * regformats/i386/i386-avx-linux.dat: Regenerate.
424 * regformats/i386/i386-avx.dat: Regenerate.
425 * regformats/i386/i386-avx512-linux.dat: Regenerate.
426 * regformats/i386/i386-avx512.dat: Regenerate.
427 * regformats/i386/i386-linux.dat: Regenerate.
428 * regformats/i386/i386-mmx-linux.dat: Regenerate.
429 * regformats/i386/i386-mmx.dat: Regenerate.
430 * regformats/i386/i386-mpx-linux.dat: Regenerate.
431 * regformats/i386/i386-mpx.dat: Regenerate.
432 * regformats/i386/i386.dat: Regenerate.
433 * regformats/i386/x32-avx-linux.dat: Regenerate.
434 * regformats/i386/x32-avx.dat: Regenerate.
435 * regformats/i386/x32-avx512-linux.dat: Regenerate.
436 * regformats/i386/x32-avx512.dat: Regenerate.
437 * regformats/i386/x32-linux.dat: Regenerate.
438 * regformats/i386/x32.dat: Regenerate.
439 * regformats/microblaze-with-stack-protect.dat: Regenerate.
440 * regformats/mips-dsp-linux.dat: Regenerate.
441 * regformats/mips-linux.dat: Regenerate.
442 * regformats/mips64-dsp-linux.dat: Regenerate.
443 * regformats/mips64-linux.dat: Regenerate.
444 * regformats/nios2-linux.dat: Regenerate.
445 * regformats/rs6000/powerpc-32.dat: Regenerate.
446 * regformats/rs6000/powerpc-32l.dat: Regenerate.
447 * regformats/rs6000/powerpc-64l.dat: Regenerate.
448 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
449 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
450 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
451 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
452 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
453 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
454 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
455 * regformats/s390-linux32.dat: Regenerate.
456 * regformats/s390-linux32v1.dat: Regenerate.
457 * regformats/s390-linux32v2.dat: Regenerate.
458 * regformats/s390-linux64.dat: Regenerate.
459 * regformats/s390-linux64v1.dat: Regenerate.
460 * regformats/s390-linux64v2.dat: Regenerate.
461 * regformats/s390-te-linux64.dat: Regenerate.
462 * regformats/s390x-linux64.dat: Regenerate.
463 * regformats/s390x-linux64v1.dat: Regenerate.
464 * regformats/s390x-linux64v2.dat: Regenerate.
465 * regformats/s390x-te-linux64.dat: Regenerate.
466 * regformats/tic6x-c62x-linux.dat: Regenerate.
467 * regformats/tic6x-c62x.dat: Regenerate.
468 * regformats/tic6x-c64x-linux.dat: Regenerate.
469 * regformats/tic6x-c64x.dat: Regenerate.
470 * regformats/tic6x-c64xp-linux.dat: Regenerate.
471 * regformats/tic6x-c64xp.dat: Regenerate.
473 2014-10-01 Pedro Alves <palves@redhat.com>
475 * features/Makefile: Update comments.
476 (XMLTOC): List all xml files we build C files from.
477 (clean-cfiles): New rule.
479 2014-10-01 Pedro Alves <palves@redhat.com>
481 * features/i386/amd64-avx512-linux.c: Regenerate.
482 * features/i386/amd64-avx512.c: Regenerate.
483 * features/i386/x32-avx512-linux.c: Regenerate.
484 * features/i386/x32-avx512.c: Regenerate.
486 2014-10-01 Pedro Alves <palves@redhat.com>
488 * features/Makefile (WHICH): Remove arm-with-m,
489 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
491 2014-10-01 Pedro Alves <palves@redhat.com>
493 * features/Makefile (clean): New rule.
495 2014-10-01 Pedro Alves <palves@redhat.com>
497 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
498 (zmm14h): Add missing end quotes.
500 2014-10-01 Pedro Alves <palves@redhat.com>
502 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
503 * features/aarch64.c: Regenerate.
505 2014-09-30 Don Breazeal <donb@codesourcery.com>
507 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
508 code so as to work with follow_fork_inferior.
509 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
510 (inf_ttrace_create_inferior): Remove reference to
511 inf_ttrace_vfork_ppid.
512 (inf_ttrace_attach): Ditto.
513 (inf_ttrace_detach): Ditto.
514 (inf_ttrace_kill): Use current_inferior instead of
515 inf_ttrace_vfork_ppid.
516 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
517 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
518 inferior away from the parent.
519 * infrun.c (follow_fork): Call follow_fork_inferior instead of
521 (follow_fork_inferior): New function.
522 (follow_inferior_reset_breakpoints): Make function static.
523 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
524 * linux-nat.c (linux_child_follow_fork): Move target-independent
525 code to infrun.c:follow_fork_inferior.
527 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
529 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
530 * gdbarch.c: Regenerate.
531 * gdbarch.h: Likewise.
532 * corelow.c (sniff_core_bfd): Drop presence check for deleted
533 gdbarch method 'regset_from_core_section'.
534 (get_core_register_section): Remove handling for the case that
535 regset == NULL and regset_from_core_section is defined.
536 (get_core_registers): Drop check for deleted method.
537 * procfs.c (procfs_do_thread_registers): Adjust comment.
539 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
541 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
542 (linux_nat_make_corefile_notes): Remove.
543 (linux_target_install_ops): Do not set target method
544 'make_corefile_notes'.
545 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
547 (linux_corefile_thread_callback): Instead of args->collect, call
548 linux_collect_thread_registers.
549 (linux_make_corefile_notes): Remove 'collect' parameter. Return
550 NULL unless there is a regset iterator.
551 (linux_make_corefile_notes_1): Remove.
552 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
553 by linux_make_corefile_notes.
554 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
556 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
558 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
559 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
561 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
563 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
565 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
566 (xtensa_iterate_over_regset_sections): New.
567 (xtensa_gdbarch_init): Adjust gdbarch initialization.
569 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
571 * vax-tdep.c (vax_regset_from_core_section): Remove.
572 (vax_iterate_over_regset_sections): New.
573 (vax_gdbarch_init): Adjust gdbarch initialization.
575 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
577 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
578 (tilegx_regset_from_core_section): Remove.
579 (tilegx_iterate_over_regset_sections): New.
580 (tilegx_linux_init_abi): Adjust gdbarch initialization.
582 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
584 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
585 (sparc_iterate_over_regset_sections): New.
586 (sparc32_gdbarch_init): Adjust gdbarch initialization.
587 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
589 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
590 (sparc64fbsd_init_abi): Call fbsd_init_abi.
591 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
592 target method 'make_corefile_notes'.
594 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
596 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
597 'sizeof_gregset' and 'sizeof_fpregset'.
598 * sh-tdep.c (sh_regset_from_core_section): Remove.
599 (sh_iterate_over_regset_sections): New.
600 (sh_gdbarch_init): Adjust gdbarch initialization.
601 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
603 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
606 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
608 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
609 (score7_linux_iterate_over_regset_sections): New.
610 (score_gdbarch_init): Adjust gdbarch initialization.
612 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
614 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
616 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
617 method 'make_corefile_notes'.
618 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
619 (ppcfbsd_regset_from_core_section): Remove.
620 (ppcfbsd_iterate_over_regset_sections): New.
621 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
623 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
624 (ppcnbsd_iterate_over_regset_sections): New.
625 (ppcnbsd_init_abi): Adjust.
626 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
627 (ppcobsd_iterate_over_regset_sections): New.
628 (ppcobsd_init_abi): Adjust.
629 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
630 (rs6000_aix_iterate_over_regset_sections): New.
631 (rs6000_aix_init_osabi): Adjust.
633 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
635 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
636 (nios2_regset_from_core_section): Remove.
637 (nios2_iterate_over_regset_sections): New.
638 (nios2_linux_init_abi): Adjust gdbarch initialization.
640 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
642 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
643 (am33_iterate_over_regset_sections): New.
644 (am33_linux_init_osabi): Adjust gdbarch initialization.
646 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
648 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
649 (mips_linux_iterate_over_regset_sections): New.
650 (mips_linux_init_abi): Adjust gdbarch initialization.
651 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
652 (mips64obsd_iterate_over_regset_sections): New.
653 (mips64obsd_init_abi): Adjust.
654 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
655 (mipsnbsd_iterate_over_regset_sections): New.
656 (mipsnbsd_init_abi): Adjust.
658 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
660 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
661 (m88k_iterate_over_regset_sections): New.
662 (m88k_gdbarch_init): Adjust gdbarch initialization.
664 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
666 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
667 (ia64_linux_iterate_over_regset_sections): New.
668 (ia64_linux_init_abi): Adjust gdbarch initialization.
670 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
672 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
673 (m68kbsd_iterate_over_regset_sections): New.
674 (m68kbsd_init_abi): Adjust gdbarch initialization.
675 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
676 (m68k_linux_iterate_over_regset_sections): New.
677 (m68k_linux_init_abi): Adjust gdbarch initialization.
679 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
681 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
682 (m32r_linux_regset_from_core_section): Remove.
683 (m32r_linux_iterate_over_regset_sections): New.
684 (m32r_linux_init_abi): Adjust gdbarch initialization.
686 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
688 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
689 (amd64obsd_iterate_over_regset_sections): New.
690 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
691 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
693 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
694 regset_from_core_section initialization.
695 * i386-tdep.c (i386_regset_from_core_section): Remove.
696 (i386_iterate_over_regset_sections): New.
697 (i386_gdbarch_init): Adjust gdbarch initialization.
698 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
699 (i386_iterate_over_regset_sections): New prototype.
700 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
702 (i386obsd_aout_iterate_over_regset_sections): New.
703 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
704 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
706 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
707 (amd64fbsd_init_abi): Call fbsd_init_abi.
708 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
709 (i386fbsd4_init_abi): Call fbsd_init_abi.
710 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
711 target method 'make_corefile_notes'.
712 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
714 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
716 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
717 (hppa_hpux_iterate_over_regset_sections): New.
718 (hppa_hpux_init_abi): Adjust gdbarch initialization.
719 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
720 (hppa_linux_iterate_over_regset_sections): New.
721 (hppa_linux_init_abi): Adjust.
722 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
723 (hppanbsd_iterate_over_regset_sections): New.
724 (hppanbsd_init_abi): Adjust.
725 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
726 (hppaobsd_iterate_over_regset_sections): New.
727 (hppaobsd_init_abi): Adjust.
729 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
731 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
732 (frv_linux_iterate_over_regset_sections): New.
733 (frv_linux_init_abi): Adjust gdbarch initialization.
735 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
737 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
738 (armbsd_iterate_over_regset_sections): New prototype.
739 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
740 (armbsd_iterate_over_regset_sections): New.
741 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
744 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
746 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
747 (alpha_linux_iterate_over_regset_sections): New.
748 (alpha_linux_init_abi): Adjust gdbarch initialization.
749 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
751 (alphanbsd_iterate_over_regset_sections): New prototype.
753 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
755 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
757 (aarch64_linux_iterate_over_regset_sections): New.
758 (aarch64_linux_init_abi): Adjust gdbarch initialization.
760 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
762 * fbsd-tdep.c: New file.
763 * fbsd-tdep.h: New file.
764 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
765 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
766 (ALLDEPFILES): Add fbsd-tdep.c.
768 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
770 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
772 * gdbarch.h: Regenerate.
773 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
775 (get_core_register_section): Add parameter 'regset' and use it, if
776 set. Add parameter 'min_size' and verify the bfd section size
778 (get_core_registers_cb): Add parameter 'regset' and pass it to
779 get_core_register section. For the "standard" register sections
780 ".reg" and ".reg2", set an appropriate default for human_name.
781 (get_core_registers): Don't abort when the gdbarch has an iterator
782 but no regset_from_core_section. Add NULL/0 for parameters
783 'regset'/'min_size' in calls to get_core_register_section.
784 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
785 'regset' and use it instead of calling the
786 regset_from_core_section gdbarch method.
787 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
788 * i386-tdep.c (i386_supply_xstateregset)
789 (i386_collect_xstateregset, i386_xstateregset): Moved to
791 (i386_regset_from_core_section): Drop handling for .reg-xfp and
793 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
794 core file support only if the regset iterator hasn't been set.
795 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
796 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
797 Moved from i386-tdep.c and renamed to *_linux*.
798 (i386_linux_iterate_over_regset_sections): Add regset parameter to
799 each callback invocation. Allow any .reg-xstate size when reading
801 * amd64-tdep.c (amd64_supply_xstateregset)
802 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
804 (amd64_regset_from_core_section): Remove.
805 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
806 install an amd64-specific regset_from_core_section gdbarch method.
807 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
808 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
809 Moved from amd64-tdep.c and renamed to *_linux*.
810 (amd64_linux_iterate_over_regset_sections): Add regset parameter
811 to each callback invocation. Allow any .reg-xstate size when
812 reading from a core file.
813 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
814 (arm_linux_iterate_over_regset_sections): Add regset parameter to
815 each callback invocation.
816 (arm_linux_init_abi): No longer set the regset_from_core_section
818 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
819 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
820 each callback invocation.
821 (ppc_linux_init_abi): No longer set the regset_from_core_section
823 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
824 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
825 (s390_regset_from_core_section): Remove.
826 (s390_iterate_over_regset_sections): Add regset parameter to each
828 (s390_gdbarch_init): No longer set the regset_from_core_section
829 gdbarch method. Drop initialization of deleted tdep fields.
831 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
833 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
834 (amd64_linux_iterate_over_regset_sections): New.
835 (amd64_linux_init_abi_common): Don't install the regset section
836 list, but the new iterator in gdbarch.
837 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
838 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
839 (arm_linux_iterate_over_regset_sections): ...here. New function.
840 (arm_linux_init_abi): Set iterator instead of section list.
841 * corelow.c (get_core_registers_cb): New function, logic moved
843 (get_core_registers): ...loop body here. Use new iterator method
844 instead of walking through the regset section list.
845 * gdbarch.sh: Remove 'core_regset_sections'. New method
846 'iterate_over_regset_sections'. New typedef
847 'iterate_over_regset_sections_cb'.
848 * gdbarch.c: Regenerate.
849 * gdbarch.h: Likewise.
850 * i386-linux-tdep.c (i386_linux_regset_sections)
851 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
853 (i386_linux_iterate_over_regset_sections): New.
854 (i386_linux_init_abi): Don't choose a regset section list, but
855 install new iterator in gdbarch.
856 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
857 (linux_collect_regset_section_cb): New function, logic moved
859 (linux_collect_thread_registers): ...loop body here. Use iterator
860 method instead of walking through list.
861 (linux_make_corefile_notes_1): Check for presence of iterator
862 method instead of regset section list.
863 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
864 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
865 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
866 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
867 (ppc_linux_iterate_over_regset_sections): ...here. New function.
868 (ppc_linux_init_abi): Don't choose from above regset section
869 lists, but install new iterator in gdbarch.
870 * regset.h (struct core_regset_section): Remove.
871 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
872 have_linux_v1, have_linux_v2, and have_tdb.
873 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
874 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
875 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
876 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
877 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
878 (s390_iterate_over_regset_sections): ...here. New function. Use
880 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
881 regset section lists, but install new iterator.
883 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
885 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
887 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
889 * progspace.c (print_program_space): Don't prune program spaces
890 before printing them.
892 2014-09-25 Pedro Alves <palves@redhat.com>
894 * infrun.c (user_visible_resume_ptid): Don't check
895 singlestep_breakpoints_inserted_p.
897 2014-09-25 Pedro Alves <palves@redhat.com>
899 * breakpoint.c (should_be_inserted): Add debug output.
901 2014-09-25 Pedro Alves <palves@redhat.com>
903 * infrun.c (stepping_past_instruction_at)
904 (clear_exit_convenience_vars): Point at infrun.h instead of
906 (handle_signal_stop): Fix typo.
908 2014-09-24 Yao Qi <yao@codesourcery.com>
910 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
913 2014-09-22 Gary Benson <gbenson@redhat.com>
915 * target.c (target_stop): Updated comment.
917 2014-09-22 Gary Benson <gbenson@redhat.com>
919 * target/target.h (target_stop_ptid): Renamed as...
920 (target_stop_and_wait): New function. Updated comment.
922 (target_continue_ptid): Renamed as...
923 (target_continue_no_signal): New function. Updated comment.
926 2014-09-22 Pedro Alves <palves@redhat.com>
928 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
930 * breakpoint.c (enum ugll_insert_mode): New enum.
931 (always_inserted_mode): Now a plain boolean.
932 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
933 (breakpoints_always_inserted_mode): Delete.
934 (breakpoints_should_be_inserted_now): New function.
935 (insert_breakpoints): Pass UGLL_INSERT to
936 update_global_location_list instead of calling
937 insert_breakpoint_locations manually.
938 (create_solib_event_breakpoint_1): New, factored out from ...
939 (create_solib_event_breakpoint): ... this.
940 (create_and_insert_solib_event_breakpoint): Use
941 create_solib_event_breakpoint_1 instead of calling
942 insert_breakpoint_locations manually.
943 (update_global_location_list): Change parameter type from boolean
944 to enum ugll_insert_mode. All callers adjusted. Adjust to use
945 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
946 (update_global_location_list_nothrow): Change parameter type from
947 boolean to enum ugll_insert_mode.
948 (_initialize_breakpoint): "breakpoint always-inserted" option is
949 now a boolean command. Update help text.
950 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
951 (breakpoints_should_be_inserted_now): New declaration.
952 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
953 Remove breakpoints_always_inserted_mode check.
954 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
955 * remote.c (remote_start_remote): Likewise.
957 2014-09-22 Pedro Alves <palves@redhat.com>
959 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
960 (insert_breakpoints): Don't call insert_breakpoint_locations here.
961 Instead, pass UGLL_INSERT to update_global_location_list.
962 (update_global_location_list): Change parameter type from boolean
963 to enum ugll_insert_mode. All callers adjusted. Adjust to use
964 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
965 (create_solib_event_breakpoint_1): New, factored out from ...
966 (create_solib_event_breakpoint): ... this.
967 (create_and_insert_solib_event_breakpoint): Use
968 create_solib_event_breakpoint_1 instead of calling
969 insert_breakpoint_locations manually.
970 (update_global_location_list): Handle UGLL_INSERT.
972 2014-09-22 Pedro Alves <palves@redhat.com>
974 * breakpoint.c (enum ugll_insert_mode): New enum.
975 (update_global_location_list)
976 (update_global_location_list_nothrow): Change parameter type from
977 boolean to enum ugll_insert_mode. All callers adjusted.
979 2014-09-19 Joel Brobecker <brobecker@adacore.com>
981 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
982 SystemTap support in GDB.
984 2014-09-19 Don Breazeal <donb@codesourcery.com>
986 * linux-nat.c (linux_handle_extended_wait): Call
987 linux_ptrace_get_extended_event.
988 (wait_lwp): Call linux_is_extended_waitstatus.
989 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
990 and linux_is_extended_waitstatus.
991 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
992 linux_ptrace_get_extended_event.
993 (linux_ptrace_get_extended_event): New function.
994 (linux_is_extended_waitstatus): New function.
995 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
996 (linux_is_extended_waitstatus): New declarations.
998 2014-09-19 Yao Qi <yao@codesourcery.com>
1000 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1001 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1002 comments. Callers update.
1003 (dwarf_decode_lines): Likewise.
1004 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1005 comments. Skip the line table if 'lowpc' is greater than
1006 'address'. Don't check
1007 dwarf2_per_objfile->has_section_at_zero.
1009 2014-09-18 Doug Evans <dje@google.com>
1011 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1012 * python/py-symtab.c (stpy_get_producer): New function.
1013 (symtab_object_getset): Add "producer" attribute.
1015 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1018 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1019 (do_captured_read_memory_integer): Remove.
1020 (safe_read_memory_integer): Use target_read_memory directly instead
1021 of catching errors in do_captured_read_memory_integer.
1023 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1025 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1028 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1030 * objc-lang.c (find_implementation_from_class): Remove dead code.
1032 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1035 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1036 "fprintf_unfiltered (gdb_stdlog...)".
1038 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1040 PR breakpoints/12526
1041 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1043 * breakpoint.c (watch_command_1): Use these fields to retain
1044 bitfield information.
1045 (extract_bitfield_from_watchpoint_value): New function.
1046 (watchpoint_check): Use it.
1047 (update_watchpoint): Use it. Optimize the address and length of a
1048 HW watchpoint pointing to a bitfield.
1049 * value.h (unpack_value_bitfield): New prototype.
1050 * value.c (unpack_value_bitfield): Make extern.
1052 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1054 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1056 * gnu-nat.c (inf_threads): New function.
1057 * gnu-nat.h (inf_threads_ftype): New typedef.
1058 (inf_threads): New declaration.
1059 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1060 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1061 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1062 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1063 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1064 (i386_gnu_dr_get_control): New functions.
1065 (reg_addr): New structure.
1066 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1067 i386 debugging register hooks.
1068 * NEWS: Mention this.
1070 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1072 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1073 vector data transfer instructions.
1074 (arm_record_coproc_data_proc): Updated.
1076 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1078 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1079 arm_record_exreg_ld_st_insn.
1080 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1083 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1085 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1086 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1087 processing instructions.
1089 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1091 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1092 for advance SIMD struct ld/st insn.
1093 (thumb2_record_decode_insn_handler): Replace stub handler with
1094 thumb2_record_asimd_struct_ld_st.
1096 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1098 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1099 for asimd, vfp and coprocessor insns.
1100 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1101 and coprocessor insns.
1102 (thumb2_record_coproc_insn): New function.
1103 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1105 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1108 2014-09-13 Doug Evans <xdje42@gmail.com>
1110 * NEWS: Mention new "queue-signal" command.
1111 * infcmd.c (queue_signal_command): New function.
1112 (_initialize_infcmd): Add new queue-signal command.
1114 2014-09-13 Doug Evans <xdje42@gmail.com>
1116 * linux-nat.c (wait_lwp): Add debugging printf.
1117 (linux_nat_wait_1): Ditto.
1119 2014-09-12 Pedro Alves <palves@redhat.com>
1121 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1122 (create_and_insert_solib_event_breakpoint): New functions.
1123 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1124 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1125 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1126 (remove_dbx_link_breakpoint): Delete function.
1127 (insert_dbx_link_bpt_in_file): Use
1128 create_and_insert_solib_event_breakpoint instead of
1129 deprecated_insert_raw_breakpoint.
1130 (procfs_wait): Don't check whether we hit __dbx_link here.
1131 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1133 * solib-irix.c (base_breakpoint): Delete global.
1134 (disable_break): Delete function.
1135 (enable_break): Use create_solib_event_breakpoint
1136 instead of deprecated_insert_raw_breakpoint.
1137 (irix_solib_handle_event): New function.
1138 (irix_solib_create_inferior_hook): Don't run the target or disable
1139 the mapping-complete breakpoint here.
1140 (_initialize_irix_solib): Install irix_solib_handle_event as
1141 so_ops->handle_event hook.
1143 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1144 Ulrich Weigand <uweigand@de.ibm.com>
1147 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1148 instead of read_memory_unsigned_integer.
1150 2014-09-12 Gary Benson <gbenson@redhat.com>
1152 * nat/linux-waitpid.c: Include common-defs.h.
1153 [GDBSERVER]: Add FIXME comment.
1154 [!GDBSERVER]: Don't include defs.h or signal.h.
1155 (linux_debug) [!GDBSERVER]: Remove empty block.
1157 2014-09-12 Gary Benson <gbenson@redhat.com>
1159 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1160 Don't include defs.h or server.h.
1162 2014-09-12 Gary Benson <gbenson@redhat.com>
1164 * nat/linux-btrace.c: Include common-defs.h.
1165 Don't include defs.h, server.h or gdbthread.h.
1166 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1168 2014-09-12 Gary Benson <gbenson@redhat.com>
1170 * common/agent.c: Include common-defs.h.
1171 Don't include defs.h or server.h.
1172 * common/buffer.c: Likewise.
1173 * common/common-debug.c: Likewise.
1174 * common/common-utils.c: Likewise.
1175 * common/errors.c: Likewise.
1176 * common/filestuff.c: Likewise.
1177 * common/format.c: Likewise.
1178 * common/gdb_vecs.c: Likewise.
1179 * common/print-utils.c: Likewise.
1180 * common/ptid.c: Likewise.
1181 * common/rsp-low.c: Likewise.
1182 * common/signals.c: Likewise.
1183 * common/vec.c: Likewise.
1184 * common/xml-utils.c: Likewise.
1185 * nat/linux-osdata.c: Likewise.
1186 * nat/linux-procfs.c: Likewise.
1187 * nat/linux-ptrace.c: Likewise.
1188 * nat/mips-linux-watch.c: Likewise.
1189 * target/waitstatus.c: Likewise.
1191 2014-09-12 Tom Tromey <tromey@redhat.com>
1192 Gary Benson <gbenson@redhat.com>
1194 * common/common-regcache.h: New file.
1195 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1196 * regcache.h: Include common-regcache.h.
1197 (regcache_read_pc): Don't declare.
1198 * regcache.c (get_thread_regcache_for_ptid): New function.
1199 * nat/linux-btrace.c: Don't include regcache.h.
1200 Include common-regcache.h.
1201 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1203 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1205 * regcache.h (struct regset): Declare.
1207 2014-09-11 Pedro Alves <palves@redhat.com>
1210 * main.c: Include "infrun.h".
1211 (catch_command_errors, catch_command_errors_const): Wait for the
1212 foreground command to complete.
1213 * top.c (maybe_wait_sync_command_done): New function, factored out
1215 (maybe_wait_sync_command_done): ... here.
1216 * top.h (maybe_wait_sync_command_done): New declaration.
1218 2014-09-11 Tom Tromey <tromey@redhat.com>
1219 Gary Benson <gbenson@redhat.com>
1221 * common/symbol.h: New file.
1222 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1223 * minsyms.c (find_minimal_symbol_address): New function.
1224 * common/agent.c: Include common/symbol.h.
1225 [!GDBSERVER]: Don't include objfiles.h.
1226 (agent_look_up_symbols): Use find_minimal_symbol_address.
1228 2014-09-11 Gary Benson <gbenson@redhat.com>
1230 * target/target.h (target_stop_ptid, target_continue_ptid):
1232 * target.c (target_stop_ptid, target_continue_ptid): New
1234 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1235 (agent_run_command): Always use target_stop_ptid and
1236 target_continue_ptid.
1238 2014-09-11 Tom Tromey <tromey@redhat.com>
1239 Gary Benson <gbenson@redhat.com>
1241 * target/target.h: New file.
1242 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1243 * target.h: Include target/target.h.
1244 (target_read_memory, target_write_memory): Don't declare.
1245 * target.c (target_read_uint32): New function.
1246 * common/agent.c: Include target/target.h.
1247 [!GDBSERVER]: Don't include target.h.
1248 (helper_thread_id): Type changed to uint32_t.
1249 (agent_get_helper_thread_id): Use target_read_uint32.
1250 (agent_run_command): Always use target_read_memory and
1251 target_write_memory.
1252 (agent_capability): Type changed to uint32_t.
1253 (agent_capability_check): Use target_read_uint32.
1255 2014-09-11 Gary Benson <gbenson@redhat.com>
1257 * common/common-debug.h (show_debug_regs): Declare.
1258 * common/common-debug.c (show_debug_regs): Define.
1259 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1260 all uses with show_debug_regs. Replace all uses that considered
1261 debug_hw_points as a multi-value integer with straight boolean
1263 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1264 with show_debug_regs.
1265 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1266 all uses with show_debug_regs.
1267 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1268 uses with show_debug_regs.
1270 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1272 * findvar.c (address_from_register): Handle targets requiring
1273 a special conversion routine even for plain pointer types.
1275 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1277 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1278 (store_register): Do not call exec_one_dummy_insn.
1280 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1282 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1283 dereference it first. Use value_enclosing_type instead of
1285 (ada_array_length): Likewise.
1287 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1289 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1290 Adjust function implementation and documentation accordingly.
1291 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1292 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1293 Update call to ada_value_ptr_subscript.
1295 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1297 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1298 instead of VAL's type.
1300 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1302 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1304 2014-09-09 Doug Evans <xdje42@gmail.com>
1307 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1308 last parameter to pkg-config, not first.
1309 * configure.ac: Pass --with-guile provided pkg-config path to
1310 GDB_GUILE_PROGRAM_NAMES.
1311 * configure: Regenerate.
1313 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1315 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1318 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1320 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1321 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1322 the list of sections determining GDB_OSABI_IRIX.
1324 2014-09-09 James Hogan <james.hogan@imgtec.com>
1326 * MAINTAINERS (Write After Approval): Add "James Hogan".
1328 2014-09-09 James Hogan <james.hogan@imgtec.com>
1330 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1332 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1334 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1336 2014-09-08 Doug Evans <xdje42@gmail.com>
1339 * guile.c: #include <signal.h>.
1340 (_initialize_guile): Block SIGCHLD while initializing Guile.
1342 Replaces the following, which is reverted.
1344 2014-07-26 Doug Evans <xdje42@gmail.com>
1347 * configure.ac: Add check for header gc/gc.h.
1348 Add check for function setenv.
1349 * configure: Regenerate.
1350 * config.in: Regenerate.
1351 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1353 2014-09-08 Doug Evans <xdje42@gmail.com>
1355 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1356 with named constant. Fix style of pointer comparison.
1357 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1359 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1362 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1363 decide whether we display the command on "show user".
1364 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1365 printing command name.
1366 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1367 * cli/cli-decode.c (cli_user_command_p): Create helper function
1368 to verify whether cmd_list_element is a user-defined command.
1370 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1373 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1374 Fix goto out of TRY_CATCH.
1376 2014-09-06 Doug Evans <xdje42@gmail.com>
1377 Tom Tromey <tromey@redhat.com>
1380 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1381 $_any_caller_matches.
1382 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1383 * python/lib/gdb/function/caller_is.py: New file.
1385 2014-09-06 Doug Evans <xdje42@gmail.com>
1387 * infcmd.c (program_info): Fix typo.
1389 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1392 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1393 'number'. New variable 'has_digit'. Rewrite code to deal with
1394 subexpressions on SDT probes.
1396 2014-09-04 Pedro Alves <palves@redhat.com>
1398 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1399 the input is only one character long.
1401 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1404 * f-valprint.c (f_val_print): Specify the correct print option to
1405 use when printing integer values.
1407 2014-09-04 Gary Benson <gbenson@redhat.com>
1409 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1410 Remove code to cope with LWPs wrapped as PIDs.
1411 Add assertions to ensure no wrapped LWPs are passed.
1413 2014-09-04 Pedro Alves <palves@redhat.com>
1415 * value.c (value_ranges_copy_adjusted): New function, factored out
1417 (value_contents_copy_raw): ... here.
1418 (unpack_value_bits_as_long_1): Rename back to ...
1419 (unpack_bits_as_long): ... this. Remove 'original_value' and
1420 'result' parameters. Change return type to LONGEST.
1421 (unpack_value_bits_as_long): Delete.
1422 (unpack_value_field_as_long_1): Delete.
1423 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1424 (unpack_value_bitfield): New function.
1425 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1426 (value_fetch_lazy): Use unpack_value_bitfield.
1427 * value.h (unpack_value_bits_as_long): Delete declaration.
1429 2014-09-03 Sasha Smundak <asmundak@google.com>
1431 * python/py-frame.c (frapy_read_register): New function.
1433 2014-09-03 James Hogan <james.hogan@imgtec.com>
1435 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1436 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1438 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1441 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1443 (add_cmd): Set "completer_handle_brkchars" to NULL.
1444 * cli/cli-decode.h (struct cmd_list_element)
1445 <completer_handle_brkchars>: New field.
1446 * command.h (completer_ftype_void): New typedef.
1447 (set_cmd_completer_handle_brkchars): New prototype.
1448 * completer.c (set_gdb_completion_word_break_characters): New
1450 (complete_line_internal): Call "completer_handle_brkchars"
1451 callback from command.
1452 * completer.h: Include "command.h".
1453 (set_gdb_completion_word_break_characters): New prototype.
1454 * python/py-cmd.c (cmdpy_completer_helper): New function.
1455 (cmdpy_completer_handle_brkchars): New function.
1456 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1457 (cmdpy_init): Set completer_handle_brkchars to
1458 cmdpy_completer_handle_brkchars.
1460 2014-09-03 Gary Benson <gbenson@redhat.com>
1462 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1463 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1464 Loop conditions changed to equivalent form.
1465 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1466 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1467 ALL_DEBUG_ADDRESS_REGISTERS.
1469 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1471 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1474 2014-09-02 Doug Evans <dje@google.com>
1476 * typeprint.c (find_global_typedef): Fix comment.
1478 2014-09-02 Gary Benson <gbenson@redhat.com>
1480 * i386-nat.h: Renamed as...
1481 * x86-nat.h: New file. All type, function and variable name
1482 prefixes changed from "i386_" to "x86_". All references updated.
1483 * i386-nat.c: Renamed as...
1484 * x86-nat.c: New file. All type, function and variable name
1485 prefixes changed from "i386_" to "x86_". All references updated.
1486 * common/i386-xstate.h: Renamed as...
1487 * common/x86-xstate.h: New file. All type, function and variable
1488 name prefixes changed from "i386_" to "x86_". All references
1490 * nat/i386-cpuid.h: Renamed as...
1491 * nat/x86-cpuid.h: New file. All type, function and variable name
1492 prefixes changed from "i386_" to "x86_". All references updated.
1493 * nat/i386-gcc-cpuid.h: Renamed as...
1494 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1495 name prefixes changed from "i386_" to "x86_". All references
1497 * nat/i386-dregs.h: Renamed as...
1498 * nat/x86-dregs.h: New file. All type, function and variable name
1499 prefixes changed from "i386_" to "x86_". All references updated.
1500 * nat/i386-dregs.c: Renamed as...
1501 * nat/x86-dregs.c: New file. All type, function and variable name
1502 prefixes changed from "i386_" to "x86_". All references updated.
1504 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1506 * varobj.c (_initialize_varobj): Move to the end of file.
1508 2014-08-29 Gary Benson <gbenson@redhat.com>
1510 * common/common-exceptions.h: New file.
1511 * common/common-exceptions.c: Likewise.
1512 * Makefile.in (SFILES): Add common/common-exceptions.c.
1513 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1514 (COMMON_OBS): Add common-exceptions.o.
1515 (common-exceptions.o): New rule.
1516 * exceptions.h (common-exceptions.h): Include.
1517 (gdb_setjmp.h): Do not include.
1518 (return_reason): Moved to common-exceptions.h.
1519 (enum return_reason): Likewise.
1520 (RETURN_MASK): Likewise.
1521 (typedef return_mask): Likewise.
1522 (enum errors): Likewise.
1523 (struct gdb_exception): Likewise.
1524 (exceptions_state_mc_init): Likewise.
1525 (exceptions_state_mc_action_iter): Likewise.
1526 (exceptions_state_mc_action_iter_1): Likewise.
1527 (TRY_CATCH): Likewise.
1528 (throw_exception): Likewise.
1529 (throw_verror): Likewise.
1530 (throw_vquit): Likewise.
1531 (throw_error): Likewise.
1532 (throw_quit): Likewise.
1533 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1534 (enum catcher_action): Likewise.
1535 (struct catcher): Likewise.
1536 (current_catcher): Likewise.
1537 (catcher_list_size): Likewise.
1538 (exceptions_state_mc_init): Likewise.
1539 (catcher_pop): Likewise.
1540 (exceptions_state_mc): Likewise.
1541 (exceptions_state_mc_action_iter): Likewise.
1542 (exceptions_state_mc_action_iter_1): Likewise.
1543 (throw_exception): Likewise.
1544 (exception_messages): Likewise.
1545 (exception_messages_size): Likewise.
1546 (throw_it): Likewise.
1547 (throw_verror): Likewise.
1548 (throw_vquit): Likewise.
1549 (throw_error): Likewise.
1550 (throw_quit): Likewise.
1551 (prepare_to_throw_exception): New function.
1553 2014-08-29 Gary Benson <gbenson@redhat.com>
1555 * common/gdb_setjmp.h: New file.
1556 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1557 * configure.ac: Move sigsetjmp check...
1558 * common/common.m4: ...here.
1559 * configure: Regenerate.
1560 * cp-support.c (SIGJMP_BUF): Delete.
1561 (SIGSETJMP): Likewise.
1562 (SIGLONGJMP): Likewise.
1563 * exceptions.h (gdb_setjmp.h): Include.
1564 (setjmp.h): Do not include.
1565 (EXCEPTIONS_SIGJMP_BUF): Delete.
1566 (EXCEPTIONS_SIGSETJMP): Likewise.
1567 (EXCEPTIONS_SIGLONGJMP): Likewise.
1568 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1570 * exceptions.c: Likewise.
1572 2014-08-29 Gary Benson <gbenson@redhat.com>
1574 * cleanups.h: Moved to...
1575 * common/cleanups.h: New file.
1576 * cleanups.c: Moved to...
1577 * common/cleanups.c: New file. Include common-defs.h and
1578 cleanups.h. Do not include defs.h.
1579 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1580 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1581 (cleanups.o): New rule.
1583 2014-08-29 Gary Benson <gbenson@redhat.com>
1585 * common/errors.h (internal_warning): New declaration.
1586 (internal_vwarning): Likewise.
1587 * common/errors.c (internal_warning): New function.
1588 * utils.h (internal_warning): Don't declare.
1589 (internal_vwarning): Likewise.
1590 * utils.c (internal_warning): Removed.
1592 2014-08-29 Gary Benson <gbenson@redhat.com>
1594 * main.c (captured_main): Use warning during startup.
1595 Prefix startup warning messages with command name.
1597 2014-08-29 Gary Benson <gbenson@redhat.com>
1599 * main.c (captured_main): Handle usage errors with error.
1601 2014-08-29 Gary Benson <gbenson@redhat.com>
1603 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1604 exit pair with a call to error. Wrap the message with _().
1606 2014-08-29 Gary Benson <gbenson@redhat.com>
1608 * main.c (captured_main): Replace a fprintf/exit
1609 pair with a call to error. Wrap the message with _().
1611 2014-08-29 Gary Benson <gbenson@redhat.com>
1613 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1614 pairs with calls to error. Wrap the message with _().
1616 2014-08-29 Gary Benson <gbenson@redhat.com>
1618 * utils.c (vwarning): Protect calls to target_terminal_ours
1621 2014-08-29 Gary Benson <gbenson@redhat.com>
1623 * exceptions.c (print_flush): Protect calls to
1624 target_terminal_ours and wrap_here.
1626 2014-08-29 Gary Benson <gbenson@redhat.com>
1628 * utils.h (filtered_printing_initialized): New declaration.
1629 * utils.c (abort_with_message): New function.
1630 (internal_vproblem): Use abort_with_message for first level
1631 recursive internal problems, and if gdb_stderr is not set up.
1632 Protect calls to target_terminal_ours, begin_line and query.
1634 2014-08-28 Doug Evans <dje@google.com>
1636 * symtab.c (in_prologue): Move definition to better spot.
1637 (skip_prologue_using_sal): Ditto.
1639 2014-08-28 Doug Evans <dje@google.com>
1641 * symtab.c (find_function_start_sal): Move definition to better spot.
1643 2014-08-28 Yao Qi <yao@codesourcery.com>
1645 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1646 found_stack_adjust in forward scan. Remove condition check
1647 on found_stack_adjust which is always true. Indent the code.
1649 2014-08-28 Yao Qi <yao@codesourcery.com>
1651 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1652 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1653 (dwarf_decode_lines): Remove argument
1654 want_line_info. Remove condition check on want_line_info.
1657 2014-08-27 Doug Evans <dje@google.com>
1659 * dwarf2read.c (dwarf_record_line): Fix typo.
1661 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1663 * target.h (struct target_ops::to_terminal_save_ours): Remove
1665 (target_terminal_save_ours): Remove macro.
1666 * target-delegates.c: Regenerate.
1667 * inf-child.c (inf_child_target): Don't set the nonexistent
1668 field to_terminal_save_ours.
1669 * inferior.h (child_terminal_save_ours): Remove declaration.
1670 * terminal.h (gdb_save_tty_state): New declaration.
1671 * inflow.c (child_terminal_save_ours): Rename to ...
1672 (gdb_save_tty_state): ... this.
1673 * tui/tui.c: Include terminal.h.
1674 (tui_enable): Use gdb_save_tty_state instead of
1675 target_terminal_save_ours.
1676 (tui_disable): Likewise.
1678 2014-08-25 Doug Evans <dje@google.com>
1680 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1681 Pass NULL instead of 0 for context pointer.
1683 2014-08-25 Yao Qi <yao@codesourcery.com>
1685 * dwarf2read.c: Fix grammatical error.
1687 2014-08-24 Yao Qi <yao@codesourcery.com>
1689 * dwarf2read.c (scan_partial_symbols): Update comments.
1690 Rename argument 'need_pc' with 'set_addrmap'.
1691 (add_partial_namespace): Rename argument 'need_pc' with
1693 (add_partial_module): Likewise.
1694 (add_partial_subprogram): Likewise. Update comments.
1695 (dwarf2_name): Fix typo.
1697 2014-08-22 Doug Evans <dje@google.com>
1700 * dwarf2read.c (dwarf_record_line_p): New function.
1701 (dwarf_decode_lines_1): Ignore subsequent line number entries
1702 for the same line if any entry had a non-zero discriminator.
1704 2014-08-22 Doug Evans <dje@google.com>
1706 * buildsym.h (record_line_ftype): New typedef.
1707 (record_line): Use it.
1708 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1709 (dwarf_decode_lines_1): Call them.
1711 2014-08-22 Yao Qi <yao@codesourcery.com>
1713 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1714 (ctf_end): Remove code.
1716 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1718 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1719 (linux_make_corefile_notes): call update_thread_list, protected against
1722 2014-08-21 Pedro Alves <palves@redhat.com>
1724 * infcmd.c (attach_command): Remove comment.
1726 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1728 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1729 unsigned LONGEST to ULONGEST.
1731 2014-08-20 Pedro Alves <palves@redhat.com>
1733 * Makefile.in (check-read1): New rule.
1735 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1737 * value.c (value_from_contents_and_address): Strip resolved_type's
1738 typedef layers before checking its TYPE_DATA_LOCATION.
1740 2014-08-20 Pedro Alves <palves@redhat.com>
1742 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1744 2014-08-20 Yao Qi <yao@codesourcery.com>
1746 * amd64-tdep.c (amd64_classify): Add a blank line after the
1747 example. Move "*/" to a new line.
1748 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1749 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1750 * dwarf2read.c (psymtab_include_file_name): Likewise.
1752 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1753 Pedro Alves <palves@redhat.com>
1757 * ada-lang.c (coerce_unspec_val_to_type): Use
1758 value_contents_copy_raw.
1759 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1760 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1761 * cp-valprint.c (cp_print_value_fields): Let the common printing
1762 code handle optimized out values.
1763 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1764 * d-valprint.c (dynamic_array_type): Use
1765 value_bits_any_optimized_out.
1766 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1767 check_any_valid fields.
1768 (check_pieced_value_bits): Delete and inline ...
1769 (check_pieced_synthetic_pointer): ... here.
1770 (check_pieced_value_validity): Delete.
1771 (check_pieced_value_invalid): Delete.
1772 (pieced_value_funcs): Remove check_validity and check_any_valid
1774 (read_pieced_value): Use mark_value_bits_optimized_out.
1775 (write_pieced_value): Switch to use
1776 mark_value_bytes_optimized_out.
1777 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1778 of assuming the whole value is optimized out.
1779 * findvar.c (read_frame_register_value): Remove special handling
1780 of optimized out registers.
1781 (value_from_register): Use mark_value_bytes_optimized_out.
1782 * frame-unwind.c (frame_unwind_got_optimized): Use
1783 mark_value_bytes_optimized_out.
1784 * jv-valprint.c (java_value_print): Adjust.
1785 (java_print_value_fields): Let the common printing code handle
1786 optimized out values.
1787 * mips-tdep.c (mips_print_register): Remove special handling of
1788 optimized out registers.
1789 * opencl-lang.c (lval_func_check_validity): Delete.
1790 (lval_func_check_any_valid): Delete.
1791 (opencl_value_funcs): Remove check_validity and check_any_valid
1793 * p-valprint.c (pascal_object_print_value_fields): Let the common
1794 printing code handle optimized out values.
1795 * stack.c (read_frame_arg): Remove special handling of optimized
1796 out values. Fetch both VAL and ENTRYVAL before comparing
1797 contents. Adjust to value_available_contents_eq rename.
1798 * valprint.c (valprint_check_validity)
1799 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1800 (val_print_array_elements): Adjust.
1801 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1802 (value_bits_any_optimized_out): New function.
1803 (value_entirely_covered_by_range_vector): New function, factored
1804 out from value_entirely_unavailable.
1805 (value_entirely_unavailable): Reimplement.
1806 (value_entirely_optimized_out): New function.
1807 (insert_into_bit_range_vector): New function, factored out from
1808 mark_value_bits_unavailable.
1809 (mark_value_bits_unavailable): Reimplement.
1810 (struct ranges_and_idx): New struct.
1811 (find_first_range_overlap_and_match): New function, factored out
1812 from value_available_contents_bits_eq.
1813 (value_available_contents_bits_eq): Rename to ...
1814 (value_contents_bits_eq): ... this. Check both unavailable
1815 contents and optimized out contents.
1816 (value_available_contents_eq): Rename to ...
1817 (value_contents_eq): ... this.
1818 (allocate_value_lazy): Remove reference to the old optimized_out
1820 (allocate_optimized_out_value): Use
1821 mark_value_bytes_optimized_out.
1822 (require_not_optimized_out): Adjust to check whether the
1823 optimized_out vec is empty.
1824 (ranges_copy_adjusted): New function, factored out from
1825 value_contents_copy_raw.
1826 (value_contents_copy_raw): Also copy the optimized out ranges.
1827 Assert the destination ranges aren't optimized out.
1828 (value_contents_copy): Update comment, remove call to
1829 require_not_optimized_out.
1830 (value_contents_equal): Adjust to check whether the optimized_out
1832 (set_value_optimized_out, value_optimized_out_const): Delete.
1833 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1835 (value_entirely_optimized_out, value_bits_valid): Delete.
1836 (value_copy): Take a VEC copy of the 'optimized_out' field.
1837 (value_primitive_field): Remove special handling of optimized out.
1838 (value_fetch_lazy): Assert that lazy values have no unavailable
1839 regions. Use value_bits_any_optimized_out. Remove some special
1840 handling for optimized out values.
1841 * value.h: Add intro comment about <optimized out> and
1843 (struct lval_funcs): Remove check_validity and check_any_valid
1845 (set_value_optimized_out, value_optimized_out_const): Remove.
1846 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1848 (value_bits_any_optimized_out): New declaration.
1849 (value_bits_valid): Delete declaration.
1850 (value_available_contents_eq): Rename to ...
1851 (value_contents_eq): ... this, and extend comments.
1853 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1855 Fix -fsanitize=address on unreadable inferior strings.
1856 * valprint.c (val_print_string): Fix access before BUFFER.
1858 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1860 * target.c (target_struct_size): Remove.
1861 (target_struct_allocsize): Remove.
1862 (DEFAULT_ALLOCSIZE): Remove.
1863 (target_ops_p): New typedef.
1864 (DEF_VEC_P (target_ops_p)): New vector type.
1865 (target_structs): Change type to VEC (target_ops_p).
1866 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1867 (find_default_run_target): Rewrite for loop following changes to
1870 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1872 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1873 Adjust code accordingly. Adjust function description comment.
1875 2014-08-19 Yao Qi <yao@codesourcery.com>
1877 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1880 2014-08-19 Alan Modra <amodra@gmail.com>
1882 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1883 * config.in: Regenerate.
1884 * configure: Regenerate.
1886 2014-08-19 Tom Tromey <tromey@redhat.com>
1887 Gary Benson <gbenson@redhat.com>
1889 * common/common-debug.h: New file.
1890 * common/common-debug.c: Likewise.
1891 * debug.c: Likewise.
1892 * Makefile.in (SFILES): Add common/common-debug.c.
1893 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1894 (COMMON_OBS): Add common-debug.o and debug.o.
1895 (common-debug.o): New rule.
1896 * common/common-defs.h: Include common-debug.h.
1897 * common/agent.c (debug_agent_printf): New function.
1898 (DEBUG_AGENT): Redefine.
1899 * nat/i386-dregs.c (debug_printf): Undefine.
1901 2014-08-19 Gary Benson <gbenson@redhat.com>
1903 * common/common-defs.h: Include print-utils.h.
1904 * utils.h: Do not include print-utils.h.
1906 2014-08-19 Tom Tromey <tromey@redhat.com>
1907 Gary Benson <gbenson@redhat.com>
1909 * common/common-types.h: New file.
1910 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1911 * common/common-defs.h: Include common-types.h.
1912 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1915 2014-08-19 Tom Tromey <tromey@redhat.com>
1916 Gary Benson <gbenson@redhat.com>
1918 * common/errors.h: New file.
1919 * common/errors.c: Likewise.
1920 * Makefile.in (SFILES): Add common/errors.c.
1921 (HFILES_NO_SRCDIR): Add common/errors.h.
1922 (COMMON_OBS): Add errors.o.
1923 (errors.o): New rule.
1924 * common/common-defs.h: Include errors.h.
1925 * utils.h (perror_with_name, error, verror, warning, vwarning):
1927 * common/common-utils.h: (malloc_failure, internal_error):
1930 2014-08-19 Gary Benson <gbenson@redhat.com>
1932 * utils.c (internal_vproblem): Always print the message.
1934 2014-08-18 Doug Evans <dje@google.com>
1936 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1938 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1940 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1941 Return 0 if TYPE is dynamic.
1942 (print_range): Add handling of dynamic ranges.
1944 2014-08-18 Keven Boell <keven.boell@intel.com>
1945 Joel Brobecker <brobecker@adacore.com>
1947 * gdbtypes.h (struct main_type): Add field "data_location".
1948 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1949 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1950 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1951 a dynamic data location.
1952 (resolve_dynamic_type): Add DW_AT_data_location handling.
1953 (copy_recursive, copy_type): Copy the data_location information
1955 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1956 * value.c (value_from_contents_and_address): Add
1957 DW_AT_data_location handling.
1959 2014-08-18 Keven Boell <keven.boell@intel.com>
1960 Joel Brobecker <brobecker@adacore.com>
1962 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1963 field "get_object_address".
1964 * dwarf2expr.c (execute_stack_op): Add handling for
1965 DW_OP_push_object_address.
1966 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1967 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1968 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1969 (dwarf_expr_get_obj_addr): New function.
1970 (dwarf_expr_ctx_funcs): Add get_object_address field.
1971 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1972 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1973 (dwarf2_evaluate_property): Add parameter "address". Use it.
1974 (needs_get_obj_addr): New function.
1975 (needs_frame_ctx_funcs): Add get_object_address field.
1976 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1977 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1978 (resolve_dynamic_array): Likewise.
1980 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1982 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1983 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1984 fixed value for records and unions for which some GNAT encodings
1987 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1989 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1990 rewrite to avoid "else if" and "else" constructs. Should be
1991 a no-op in practice.
1993 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1995 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1998 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2001 * eval.c: Update all calls to find_overload_match.
2002 * valarith.c: Likewise.
2003 (value_user_defined_cpp_op, value_user_defined_op): New
2004 argument NOSIDE. Update all callers.
2005 * valops.c (find_overload_match): New argument NOSIDE.
2006 * value.h (find_overload_match): Update signature.
2008 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2010 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2011 'items' methods instead of 'iteritems' method on dictionaries.
2013 2014-08-15 Doug Evans <dje@google.com>
2015 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2018 2014-08-15 Doug Evans <dje@google.com>
2020 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2022 2014-08-15 Doug Evans <dje@google.com>
2024 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2026 2014-08-15 Doug Evans <dje@google.com>
2028 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2031 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2033 * dcache.h: Include target.h, to avoid compile time warnings.
2035 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2037 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2038 frame_info" partial declaration.
2039 * gdbarch.h: Regenerate.
2041 2014-08-15 Yao Qi <yao@codesourcery.com>
2043 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2044 Add parameter 'decode_for_pst_p'. Callers update.
2046 2014-08-13 Yao Qi <yao@codesourcery.com>
2049 * configure.ac: Use local variable 'pos'.
2050 * configure: Regenerated.
2052 2014-08-11 Doug Evans <dje@google.com>
2054 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2055 message, it is redundant with "Reading symbols from ..." message.
2057 2014-08-10 Doug Evans <xdje42@gmail.com>
2059 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2061 2014-08-09 Yao Qi <yao@codesourcery.com>
2064 * remote.c (remote_xfer_partial): Remove dead code.
2066 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2068 * ia64-linux-tdep.c: Include "regset.h".
2069 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2070 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2071 (ia64_linux_supply_fpregset): New function.
2072 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2073 (ia64_linux_regset_from_core_section): New function.
2074 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2077 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2079 * m68klinux-tdep.c: Include "regset.h".
2080 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2081 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2082 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2083 (m68k_linux_regset_from_core_section): New function.
2084 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2087 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2089 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2090 function. Move logic to...
2091 (tilegx_linux_regmap): ... this new register map.
2092 (tilegx_linux_regset): Refer to register map, replace supply
2093 method by regcache_supply_regset, and add collect method.
2094 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2095 TILEGX_FIRST_EASY_REGNUM.
2097 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2099 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2100 that calls regcache_supply_regset and handles the EPC register
2101 separately. Move main logic to...
2102 (score7_linux_gregmap): ... this new register map.
2103 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2104 (score7_linux_gregset): Refer to register map. Add collect method.
2105 (score7_linux_regset_from_core_section): Replace
2106 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2107 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2108 (struct regset): Delete unused forward declaraction.
2109 (struct pt_regs): Delete structure definition.
2110 (elf_gregset_t): Delete typedef.
2112 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2114 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2115 (nios2_core_regset): Add collect method.
2117 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2119 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2120 platform-independent and don't write to read-only input buffer.
2121 (m32r_linux_collect_gregset): New function.
2122 (m32r_linux_gregset): Add collect method.
2124 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2126 * hppa-linux-tdep.c (greg_map): Rename to...
2127 (hppa_linux_gregmap): ... this. Also convert to
2128 regcache_map_entry format.
2129 (hppa_linux_supply_regset): Delete function.
2130 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2131 (hppa_linux_fpregmap): ... this new register map.
2132 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2133 register map, replace supply method by regcache_supply_regset, and
2134 add collect method regcache_collect_regset.
2136 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2138 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2139 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2140 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2141 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2142 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2143 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2144 (frv_linux_supply_gregset): Replace main logic by call to
2145 regcache_supply_regset, but keep clearing gr32-gr63.
2146 (frv_linux_supply_fpregset): Delete function.
2147 (frv_linux_gregset): Refer to appropriate register map and add
2148 regcache_collect_regset as the collect method.
2149 (frv_linux_fpregset): Likewise. Also exchange the supply method
2150 by regcache_supply_regset.
2152 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2154 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2155 by call to alpha_supply_int_regs.
2156 (alpha_linux_collect_gregset): New function.
2157 (alpha_linux_supply_fpregset): Replace logic by call to
2158 alpha_supply_fp_regs.
2159 (alpha_linux_collect_fpregset): New function.
2160 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2162 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2164 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2165 by call to regcache_collect_regset.
2166 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2167 instead of aarch64_linux_supply_gregset/_fpregset.
2168 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2169 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2170 header file instead.
2171 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2172 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2173 functions. Move logic to ...
2174 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2176 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2177 refer to new register maps, replace *_regset_from_core by
2178 regcache_supply_regset, and also use regcache_collect_regset.
2179 * aarch64-linux-tdep.h: Include "regset.h".
2180 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2182 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2183 macros, moved from C source file.
2184 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2185 variable declarations.
2187 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2189 * s390-linux-nat.c: Include "regset.h".
2190 (regmap_gregset): Delete macro.
2191 (s390_64_regmap_gregset): New register map for
2192 regcache_supply/_collect_regset.
2193 (s390_64_gregset): New regset.
2194 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2195 (regmap_fpregset): Delete macro.
2196 (s390_native_supply, s390_native_collect): Delete functions.
2197 (supply_gregset, fill_gregset): Replace s390-specific regmap
2198 handling by a call to regcache_supply/_collect_regset.
2199 (supply_fpregset, fill_fpregset): Call regcache_supply/
2200 _collect_regset instead of s390_native_supply/_collect.
2201 (fetch_regset, store_regset): Likewise. Also change the last
2202 parameter to a regset instead of a regmap.
2203 (s390_linux_fetch_inferior_registers)
2204 (390_linux_store_inferior_registers): Adjust last parameter in
2205 calls to fetch_regset and store_regset.
2206 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2207 (s390_gregmap): ... this. Also make static const and convert to
2208 regcache_map_entry format.
2209 (s390x_regmap_gregset): Delete.
2210 (s390_regmap_fpregset): Rename to...
2211 (s390_fpregmap): ... this. Make static const and convert to
2212 regcache_map_entry format.
2213 (s390_regmap_upper, s390_regmap_last_break)
2214 (s390x_regmap_last_break, s390_regmap_system_call)
2215 (s390_regmap_tdb): Likewise.
2216 (s390_supply_regset, s390_collect_regset): Remove functions.
2217 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2219 (s390_gregset, s390_fpregset, s390_upper_regset)
2220 (s390_last_break_regset, s390x_last_break_regset)
2221 (s390_system_call_regset, s390_tdb_regset): Make global and
2222 replace s390_supply/_collect_regset by regcache_supply/
2224 (s390x_gregset): Delete.
2225 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2226 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2227 (s390_regmap_fpregset, s390_regmap_last_break)
2228 (s390x_regmap_last_break, s390_regmap_system_call)
2229 (s390_regmap_tdb): Delete global variable declarations.
2230 (s390_gregset, s390_fpregset, s390_last_break_regset)
2231 (s390x_last_break_regset, s390_system_call_regset)
2232 (s390_tdb_regset): New global variable declarations.
2234 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2236 * regcache.c: Include "regset.h".
2237 (regcache_transfer_regset): New local function.
2238 (regcache_supply_regset, regcache_collect_regset): New functions.
2239 * regcache.h (struct regcache_map_entry): New structure.
2240 (REGCACHE_MAP_SKIP): New enum value.
2241 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2243 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2245 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2246 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2247 (ppc_linux_collect_gregset ): Likewise.
2248 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2249 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2250 (ppc_collect_vrregset): Likewise.
2251 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2254 2014-08-07 Yao Qi <yao@codesourcery.com>
2256 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2257 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2258 * remote.c (remote_read_bytes): Likewise.
2260 2014-08-07 Yao Qi <yao@codesourcery.com>
2262 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2264 2014-08-07 Yao Qi <yao@codesourcery.com>
2267 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2268 TARGET_XFER_OK instead of 0.
2270 2014-08-07 Gary Benson <gbenson@redhat.com>
2272 * common/common-defs.h: Include errno.h.
2273 * defs.h: Do not include errno.h.
2274 * ada-typeprint.c: Likewise.
2275 * c-typeprint.c: Likewise.
2276 * core-regset.c: Likewise.
2277 * corefile.c: Likewise.
2278 * corelow.c: Likewise.
2279 * event-loop.c: Likewise.
2280 * f-typeprint.c: Likewise.
2281 * gnu-nat.c: Likewise.
2282 * go32-nat.c: Likewise.
2283 * i386gnu-nat.c: Likewise.
2284 * m2-typeprint.c: Likewise.
2285 * nat/linux-btrace.c: Likewise.
2286 * p-typeprint.c: Likewise.
2287 * procfs.c: Likewise.
2288 * remote-sim.c: Likewise.
2289 * rs6000-nat.c: Likewise.
2290 * target.c: Likewise.
2291 * typeprint.c: Likewise.
2292 * ui-file.c: Likewise.
2293 * valops.c: Likewise.
2294 * valprint.c: Likewise.
2296 2014-08-07 Gary Benson <gbenson@redhat.com>
2298 * common/common-defs.h: Include string.h.
2299 * aarch64-tdep.c: Do not include string.h.
2300 * ada-exp.y: Likewise.
2301 * ada-lang.c: Likewise.
2302 * ada-lex.l: Likewise.
2303 * ada-typeprint.c: Likewise.
2304 * ada-valprint.c: Likewise.
2305 * aix-thread.c: Likewise.
2306 * alpha-linux-tdep.c: Likewise.
2307 * alpha-mdebug-tdep.c: Likewise.
2308 * alpha-nat.c: Likewise.
2309 * alpha-osf1-tdep.c: Likewise.
2310 * alpha-tdep.c: Likewise.
2311 * alphanbsd-tdep.c: Likewise.
2312 * amd64-dicos-tdep.c: Likewise.
2313 * amd64-linux-tdep.c: Likewise.
2314 * amd64-nat.c: Likewise.
2315 * amd64-sol2-tdep.c: Likewise.
2316 * amd64fbsd-tdep.c: Likewise.
2317 * amd64obsd-tdep.c: Likewise.
2318 * arch-utils.c: Likewise.
2319 * arm-linux-nat.c: Likewise.
2320 * arm-linux-tdep.c: Likewise.
2321 * arm-tdep.c: Likewise.
2322 * arm-wince-tdep.c: Likewise.
2323 * armbsd-tdep.c: Likewise.
2324 * armnbsd-nat.c: Likewise.
2325 * armnbsd-tdep.c: Likewise.
2326 * armobsd-tdep.c: Likewise.
2327 * avr-tdep.c: Likewise.
2328 * ax-gdb.c: Likewise.
2329 * ax-general.c: Likewise.
2330 * bcache.c: Likewise.
2331 * bfin-tdep.c: Likewise.
2332 * breakpoint.c: Likewise.
2333 * build-id.c: Likewise.
2334 * buildsym.c: Likewise.
2335 * c-exp.y: Likewise.
2336 * c-lang.c: Likewise.
2337 * c-typeprint.c: Likewise.
2338 * c-valprint.c: Likewise.
2339 * charset.c: Likewise.
2340 * cli-out.c: Likewise.
2341 * cli/cli-cmds.c: Likewise.
2342 * cli/cli-decode.c: Likewise.
2343 * cli/cli-dump.c: Likewise.
2344 * cli/cli-interp.c: Likewise.
2345 * cli/cli-logging.c: Likewise.
2346 * cli/cli-script.c: Likewise.
2347 * cli/cli-setshow.c: Likewise.
2348 * cli/cli-utils.c: Likewise.
2349 * coffread.c: Likewise.
2350 * common/agent.c: Likewise.
2351 * common/buffer.c: Likewise.
2352 * common/buffer.h: Likewise.
2353 * common/common-utils.c: Likewise.
2354 * common/filestuff.c: Likewise.
2355 * common/filestuff.c: Likewise.
2356 * common/format.c: Likewise.
2357 * common/print-utils.c: Likewise.
2358 * common/rsp-low.c: Likewise.
2359 * common/signals.c: Likewise.
2360 * common/vec.h: Likewise.
2361 * common/xml-utils.c: Likewise.
2362 * core-regset.c: Likewise.
2363 * corefile.c: Likewise.
2364 * corelow.c: Likewise.
2365 * cp-abi.c: Likewise.
2366 * cp-name-parser.y: Likewise.
2367 * cp-support.c: Likewise.
2368 * cp-valprint.c: Likewise.
2369 * cris-tdep.c: Likewise.
2370 * d-exp.y: Likewise.
2371 * darwin-nat.c: Likewise.
2372 * dbxread.c: Likewise.
2373 * dcache.c: Likewise.
2374 * demangle.c: Likewise.
2375 * dicos-tdep.c: Likewise.
2376 * disasm.c: Likewise.
2377 * doublest.c: Likewise.
2378 * dsrec.c: Likewise.
2379 * dummy-frame.c: Likewise.
2380 * dwarf2-frame.c: Likewise.
2381 * dwarf2loc.c: Likewise.
2382 * dwarf2read.c: Likewise.
2383 * elfread.c: Likewise.
2384 * environ.c: Likewise.
2386 * event-loop.c: Likewise.
2387 * exceptions.c: Likewise.
2389 * expprint.c: Likewise.
2390 * f-exp.y: Likewise.
2391 * f-lang.c: Likewise.
2392 * f-typeprint.c: Likewise.
2393 * f-valprint.c: Likewise.
2394 * fbsd-nat.c: Likewise.
2395 * findcmd.c: Likewise.
2396 * findvar.c: Likewise.
2397 * fork-child.c: Likewise.
2398 * frame.c: Likewise.
2399 * frv-linux-tdep.c: Likewise.
2400 * frv-tdep.c: Likewise.
2402 * gdb_bfd.c: Likewise.
2403 * gdbarch.c: Likewise.
2404 * gdbarch.sh: Likewise.
2405 * gdbtypes.c: Likewise.
2406 * gnu-nat.c: Likewise.
2407 * gnu-v2-abi.c: Likewise.
2408 * gnu-v3-abi.c: Likewise.
2409 * go-exp.y: Likewise.
2410 * go-lang.c: Likewise.
2411 * go32-nat.c: Likewise.
2412 * guile/guile.c: Likewise.
2413 * guile/scm-auto-load.c: Likewise.
2414 * hppa-hpux-tdep.c: Likewise.
2415 * hppa-linux-nat.c: Likewise.
2416 * hppanbsd-tdep.c: Likewise.
2417 * hppaobsd-tdep.c: Likewise.
2418 * i386-cygwin-tdep.c: Likewise.
2419 * i386-dicos-tdep.c: Likewise.
2420 * i386-linux-tdep.c: Likewise.
2421 * i386-nto-tdep.c: Likewise.
2422 * i386-sol2-tdep.c: Likewise.
2423 * i386-tdep.c: Likewise.
2424 * i386bsd-tdep.c: Likewise.
2425 * i386gnu-nat.c: Likewise.
2426 * i386nbsd-tdep.c: Likewise.
2427 * i386obsd-tdep.c: Likewise.
2428 * i387-tdep.c: Likewise.
2429 * ia64-libunwind-tdep.c: Likewise.
2430 * ia64-linux-nat.c: Likewise.
2431 * inf-child.c: Likewise.
2432 * inf-ptrace.c: Likewise.
2433 * inf-ttrace.c: Likewise.
2434 * infcall.c: Likewise.
2435 * infcmd.c: Likewise.
2436 * inflow.c: Likewise.
2437 * infrun.c: Likewise.
2438 * interps.c: Likewise.
2439 * iq2000-tdep.c: Likewise.
2440 * irix5-nat.c: Likewise.
2441 * jv-exp.y: Likewise.
2442 * jv-lang.c: Likewise.
2443 * jv-typeprint.c: Likewise.
2444 * jv-valprint.c: Likewise.
2445 * language.c: Likewise.
2446 * linux-fork.c: Likewise.
2447 * linux-nat.c: Likewise.
2448 * lm32-tdep.c: Likewise.
2449 * m2-exp.y: Likewise.
2450 * m2-typeprint.c: Likewise.
2451 * m32c-tdep.c: Likewise.
2452 * m32r-linux-nat.c: Likewise.
2453 * m32r-linux-tdep.c: Likewise.
2454 * m32r-rom.c: Likewise.
2455 * m32r-tdep.c: Likewise.
2456 * m68hc11-tdep.c: Likewise.
2457 * m68k-tdep.c: Likewise.
2458 * m68kbsd-tdep.c: Likewise.
2459 * m68klinux-nat.c: Likewise.
2460 * m68klinux-tdep.c: Likewise.
2461 * m88k-tdep.c: Likewise.
2462 * machoread.c: Likewise.
2463 * macrocmd.c: Likewise.
2465 * mdebugread.c: Likewise.
2466 * mem-break.c: Likewise.
2467 * memattr.c: Likewise.
2468 * memory-map.c: Likewise.
2469 * mep-tdep.c: Likewise.
2470 * mi/mi-cmd-break.c: Likewise.
2471 * mi/mi-cmd-disas.c: Likewise.
2472 * mi/mi-cmd-env.c: Likewise.
2473 * mi/mi-cmd-stack.c: Likewise.
2474 * mi/mi-cmd-var.c: Likewise.
2475 * mi/mi-cmds.c: Likewise.
2476 * mi/mi-console.c: Likewise.
2477 * mi/mi-getopt.c: Likewise.
2478 * mi/mi-interp.c: Likewise.
2479 * mi/mi-main.c: Likewise.
2480 * mi/mi-parse.c: Likewise.
2481 * microblaze-rom.c: Likewise.
2482 * microblaze-tdep.c: Likewise.
2483 * mingw-hdep.c: Likewise.
2484 * minidebug.c: Likewise.
2485 * minsyms.c: Likewise.
2486 * mips-irix-tdep.c: Likewise.
2487 * mips-linux-tdep.c: Likewise.
2488 * mips-tdep.c: Likewise.
2489 * mips64obsd-tdep.c: Likewise.
2490 * mipsnbsd-tdep.c: Likewise.
2491 * mipsread.c: Likewise.
2492 * mn10300-linux-tdep.c: Likewise.
2493 * mn10300-tdep.c: Likewise.
2494 * monitor.c: Likewise.
2495 * moxie-tdep.c: Likewise.
2496 * mt-tdep.c: Likewise.
2497 * nat/linux-btrace.c: Likewise.
2498 * nat/linux-osdata.c: Likewise.
2499 * nat/linux-procfs.c: Likewise.
2500 * nat/linux-ptrace.c: Likewise.
2501 * nat/linux-waitpid.c: Likewise.
2502 * nbsd-tdep.c: Likewise.
2503 * nios2-linux-tdep.c: Likewise.
2504 * nto-procfs.c: Likewise.
2505 * nto-tdep.c: Likewise.
2506 * objc-lang.c: Likewise.
2507 * objfiles.c: Likewise.
2508 * opencl-lang.c: Likewise.
2509 * osabi.c: Likewise.
2510 * osdata.c: Likewise.
2511 * p-exp.y: Likewise.
2512 * p-lang.c: Likewise.
2513 * p-typeprint.c: Likewise.
2514 * parse.c: Likewise.
2515 * posix-hdep.c: Likewise.
2516 * ppc-linux-nat.c: Likewise.
2517 * ppc-sysv-tdep.c: Likewise.
2518 * ppcfbsd-tdep.c: Likewise.
2519 * ppcnbsd-tdep.c: Likewise.
2520 * ppcobsd-tdep.c: Likewise.
2521 * printcmd.c: Likewise.
2522 * procfs.c: Likewise.
2523 * prologue-value.c: Likewise.
2524 * python/py-auto-load.c: Likewise.
2525 * python/py-gdb-readline.c: Likewise.
2526 * ravenscar-thread.c: Likewise.
2527 * regcache.c: Likewise.
2528 * registry.c: Likewise.
2529 * remote-fileio.c: Likewise.
2530 * remote-m32r-sdi.c: Likewise.
2531 * remote-mips.c: Likewise.
2532 * remote-notif.c: Likewise.
2533 * remote-sim.c: Likewise.
2534 * remote.c: Likewise.
2535 * reverse.c: Likewise.
2536 * rs6000-aix-tdep.c: Likewise.
2537 * ser-base.c: Likewise.
2538 * ser-go32.c: Likewise.
2539 * ser-mingw.c: Likewise.
2540 * ser-pipe.c: Likewise.
2541 * ser-tcp.c: Likewise.
2542 * ser-unix.c: Likewise.
2543 * serial.c: Likewise.
2544 * sh-tdep.c: Likewise.
2545 * sh64-tdep.c: Likewise.
2546 * shnbsd-tdep.c: Likewise.
2548 * sol-thread.c: Likewise.
2549 * solib-dsbt.c: Likewise.
2550 * solib-frv.c: Likewise.
2551 * solib-osf.c: Likewise.
2552 * solib-som.c: Likewise.
2553 * solib-spu.c: Likewise.
2554 * solib-target.c: Likewise.
2555 * solib.c: Likewise.
2556 * somread.c: Likewise.
2557 * source.c: Likewise.
2558 * sparc-nat.c: Likewise.
2559 * sparc-sol2-tdep.c: Likewise.
2560 * sparc-tdep.c: Likewise.
2561 * sparc64-tdep.c: Likewise.
2562 * sparc64fbsd-tdep.c: Likewise.
2563 * sparc64nbsd-tdep.c: Likewise.
2564 * sparcnbsd-tdep.c: Likewise.
2565 * spu-linux-nat.c: Likewise.
2566 * spu-multiarch.c: Likewise.
2567 * spu-tdep.c: Likewise.
2568 * stabsread.c: Likewise.
2569 * stack.c: Likewise.
2570 * std-regs.c: Likewise.
2571 * symfile.c: Likewise.
2572 * symmisc.c: Likewise.
2573 * symtab.c: Likewise.
2574 * target.c: Likewise.
2575 * thread.c: Likewise.
2576 * tilegx-linux-nat.c: Likewise.
2577 * tilegx-tdep.c: Likewise.
2579 * tracepoint.c: Likewise.
2580 * tui/tui-command.c: Likewise.
2581 * tui/tui-data.c: Likewise.
2582 * tui/tui-disasm.c: Likewise.
2583 * tui/tui-file.c: Likewise.
2584 * tui/tui-layout.c: Likewise.
2585 * tui/tui-out.c: Likewise.
2586 * tui/tui-regs.c: Likewise.
2587 * tui/tui-source.c: Likewise.
2588 * tui/tui-stack.c: Likewise.
2589 * tui/tui-win.c: Likewise.
2590 * tui/tui-windata.c: Likewise.
2591 * tui/tui-winsource.c: Likewise.
2592 * typeprint.c: Likewise.
2593 * ui-file.c: Likewise.
2594 * ui-out.c: Likewise.
2595 * user-regs.c: Likewise.
2596 * utils.c: Likewise.
2597 * v850-tdep.c: Likewise.
2598 * valarith.c: Likewise.
2599 * valops.c: Likewise.
2600 * valprint.c: Likewise.
2601 * value.c: Likewise.
2602 * varobj.c: Likewise.
2603 * vax-tdep.c: Likewise.
2604 * vaxnbsd-tdep.c: Likewise.
2605 * vaxobsd-tdep.c: Likewise.
2606 * windows-nat.c: Likewise.
2607 * xcoffread.c: Likewise.
2608 * xml-support.c: Likewise.
2609 * xstormy16-tdep.c: Likewise.
2610 * xtensa-linux-nat.c: Likewise.
2612 2014-08-07 Gary Benson <gbenson@redhat.com>
2614 * common/common-defs.h: Include gdb_assert.h.
2615 * aarch64-tdep.c: Do not include gdb_assert.h.
2616 * addrmap.c: Likewise.
2617 * aix-thread.c: Likewise.
2618 * alpha-linux-tdep.c: Likewise.
2619 * alpha-mdebug-tdep.c: Likewise.
2620 * alphanbsd-tdep.c: Likewise.
2621 * amd64-nat.c: Likewise.
2622 * amd64-tdep.c: Likewise.
2623 * amd64bsd-nat.c: Likewise.
2624 * amd64fbsd-nat.c: Likewise.
2625 * amd64fbsd-tdep.c: Likewise.
2626 * amd64nbsd-nat.c: Likewise.
2627 * amd64nbsd-tdep.c: Likewise.
2628 * amd64obsd-nat.c: Likewise.
2629 * amd64obsd-tdep.c: Likewise.
2630 * arch-utils.c: Likewise.
2631 * arm-tdep.c: Likewise.
2632 * armbsd-tdep.c: Likewise.
2634 * bcache.c: Likewise.
2635 * bfin-tdep.c: Likewise.
2636 * blockframe.c: Likewise.
2637 * breakpoint.c: Likewise.
2638 * bsd-kvm.c: Likewise.
2639 * bsd-uthread.c: Likewise.
2640 * buildsym.c: Likewise.
2641 * c-exp.y: Likewise.
2642 * c-lang.c: Likewise.
2643 * charset.c: Likewise.
2644 * cleanups.c: Likewise.
2645 * cli-out.c: Likewise.
2646 * cli/cli-decode.c: Likewise.
2647 * cli/cli-dump.c: Likewise.
2648 * cli/cli-logging.c: Likewise.
2649 * cli/cli-script.c: Likewise.
2650 * cli/cli-utils.c: Likewise.
2651 * coffread.c: Likewise.
2652 * common/common-utils.c: Likewise.
2653 * common/queue.h: Likewise.
2654 * common/signals.c: Likewise.
2655 * common/vec.h: Likewise.
2656 * complaints.c: Likewise.
2657 * completer.c: Likewise.
2658 * corelow.c: Likewise.
2659 * cp-abi.c: Likewise.
2660 * cp-name-parser.y: Likewise.
2661 * cp-namespace.c: Likewise.
2662 * cp-support.c: Likewise.
2663 * cris-tdep.c: Likewise.
2664 * dbxread.c: Likewise.
2665 * dictionary.c: Likewise.
2666 * doublest.c: Likewise.
2667 * dsrec.c: Likewise.
2668 * dummy-frame.c: Likewise.
2669 * dwarf2-frame-tailcall.c: Likewise.
2670 * dwarf2-frame.c: Likewise.
2671 * dwarf2expr.c: Likewise.
2672 * dwarf2loc.c: Likewise.
2673 * dwarf2read.c: Likewise.
2675 * event-loop.c: Likewise.
2676 * exceptions.c: Likewise.
2677 * expprint.c: Likewise.
2678 * f-valprint.c: Likewise.
2679 * fbsd-nat.c: Likewise.
2680 * findvar.c: Likewise.
2681 * frame-unwind.c: Likewise.
2682 * frame.c: Likewise.
2683 * frv-tdep.c: Likewise.
2684 * gcore.c: Likewise.
2685 * gdb-dlfcn.c: Likewise.
2686 * gdb_bfd.c: Likewise.
2687 * gdbarch.c: Likewise.
2688 * gdbarch.sh: Likewise.
2689 * gdbtypes.c: Likewise.
2690 * gnu-nat.c: Likewise.
2691 * gnu-v3-abi.c: Likewise.
2692 * go-lang.c: Likewise.
2693 * guile/scm-exception.c: Likewise.
2694 * guile/scm-gsmob.c: Likewise.
2695 * guile/scm-lazy-string.c: Likewise.
2696 * guile/scm-math.c: Likewise.
2697 * guile/scm-pretty-print.c: Likewise.
2698 * guile/scm-safe-call.c: Likewise.
2699 * guile/scm-utils.c: Likewise.
2700 * guile/scm-value.c: Likewise.
2701 * h8300-tdep.c: Likewise.
2702 * hppa-hpux-nat.c: Likewise.
2703 * hppa-tdep.c: Likewise.
2704 * hppanbsd-tdep.c: Likewise.
2705 * hppaobsd-tdep.c: Likewise.
2706 * i386-darwin-nat.c: Likewise.
2707 * i386-darwin-tdep.c: Likewise.
2708 * i386-nto-tdep.c: Likewise.
2709 * i386-tdep.c: Likewise.
2710 * i386bsd-nat.c: Likewise.
2711 * i386fbsd-tdep.c: Likewise.
2712 * i386gnu-nat.c: Likewise.
2713 * i386nbsd-tdep.c: Likewise.
2714 * i386obsd-tdep.c: Likewise.
2715 * i387-tdep.c: Likewise.
2716 * ia64-libunwind-tdep.c: Likewise.
2717 * ia64-tdep.c: Likewise.
2718 * inf-ptrace.c: Likewise.
2719 * inf-ttrace.c: Likewise.
2720 * infcall.c: Likewise.
2721 * infcmd.c: Likewise.
2722 * infrun.c: Likewise.
2723 * inline-frame.c: Likewise.
2724 * interps.c: Likewise.
2725 * jv-lang.c: Likewise.
2726 * jv-typeprint.c: Likewise.
2727 * linux-fork.c: Likewise.
2728 * linux-nat.c: Likewise.
2729 * linux-thread-db.c: Likewise.
2730 * m32c-tdep.c: Likewise.
2731 * m32r-linux-nat.c: Likewise.
2732 * m32r-tdep.c: Likewise.
2733 * m68k-tdep.c: Likewise.
2734 * m68kbsd-nat.c: Likewise.
2735 * m68kbsd-tdep.c: Likewise.
2736 * m88k-tdep.c: Likewise.
2737 * machoread.c: Likewise.
2738 * macroexp.c: Likewise.
2739 * macrotab.c: Likewise.
2740 * maint.c: Likewise.
2741 * mdebugread.c: Likewise.
2742 * memory-map.c: Likewise.
2743 * mep-tdep.c: Likewise.
2744 * mi/mi-common.c: Likewise.
2745 * microblaze-tdep.c: Likewise.
2746 * mingw-hdep.c: Likewise.
2747 * mips-linux-nat.c: Likewise.
2748 * mips-linux-tdep.c: Likewise.
2749 * mips-tdep.c: Likewise.
2750 * mips64obsd-tdep.c: Likewise.
2751 * mipsnbsd-tdep.c: Likewise.
2752 * mn10300-linux-tdep.c: Likewise.
2753 * mn10300-tdep.c: Likewise.
2754 * moxie-tdep.c: Likewise.
2755 * mt-tdep.c: Likewise.
2756 * nat/linux-btrace.c: Likewise.
2757 * nat/linux-osdata.c: Likewise.
2758 * nat/linux-ptrace.c: Likewise.
2759 * nat/mips-linux-watch.c: Likewise.
2760 * nios2-linux-tdep.c: Likewise.
2761 * nios2-tdep.c: Likewise.
2762 * objc-lang.c: Likewise.
2763 * objfiles.c: Likewise.
2764 * obsd-nat.c: Likewise.
2765 * opencl-lang.c: Likewise.
2766 * osabi.c: Likewise.
2767 * parse.c: Likewise.
2768 * ppc-linux-nat.c: Likewise.
2769 * ppc-sysv-tdep.c: Likewise.
2770 * ppcfbsd-nat.c: Likewise.
2771 * ppcfbsd-tdep.c: Likewise.
2772 * ppcnbsd-nat.c: Likewise.
2773 * ppcnbsd-tdep.c: Likewise.
2774 * ppcobsd-nat.c: Likewise.
2775 * ppcobsd-tdep.c: Likewise.
2776 * printcmd.c: Likewise.
2777 * procfs.c: Likewise.
2778 * prologue-value.c: Likewise.
2779 * psymtab.c: Likewise.
2780 * python/py-lazy-string.c: Likewise.
2781 * python/py-value.c: Likewise.
2782 * regcache.c: Likewise.
2783 * reggroups.c: Likewise.
2784 * registry.c: Likewise.
2785 * remote-sim.c: Likewise.
2786 * remote.c: Likewise.
2787 * rs6000-aix-tdep.c: Likewise.
2788 * rs6000-tdep.c: Likewise.
2789 * s390-linux-tdep.c: Likewise.
2790 * score-tdep.c: Likewise.
2791 * ser-base.c: Likewise.
2792 * ser-mingw.c: Likewise.
2793 * sh-tdep.c: Likewise.
2794 * sh64-tdep.c: Likewise.
2795 * solib-darwin.c: Likewise.
2796 * solib-spu.c: Likewise.
2797 * solib-svr4.c: Likewise.
2798 * source.c: Likewise.
2799 * sparc-nat.c: Likewise.
2800 * sparc-sol2-tdep.c: Likewise.
2801 * sparc-tdep.c: Likewise.
2802 * sparc64-sol2-tdep.c: Likewise.
2803 * sparc64-tdep.c: Likewise.
2804 * sparc64fbsd-tdep.c: Likewise.
2805 * sparc64nbsd-tdep.c: Likewise.
2806 * sparc64obsd-tdep.c: Likewise.
2807 * sparcnbsd-tdep.c: Likewise.
2808 * sparcobsd-tdep.c: Likewise.
2809 * spu-multiarch.c: Likewise.
2810 * spu-tdep.c: Likewise.
2811 * stabsread.c: Likewise.
2812 * stack.c: Likewise.
2813 * symfile.c: Likewise.
2814 * symtab.c: Likewise.
2815 * target-descriptions.c: Likewise.
2816 * target-memory.c: Likewise.
2817 * target.c: Likewise.
2818 * tic6x-linux-tdep.c: Likewise.
2819 * tic6x-tdep.c: Likewise.
2820 * tilegx-linux-nat.c: Likewise.
2821 * tilegx-tdep.c: Likewise.
2823 * tramp-frame.c: Likewise.
2824 * tui/tui-out.c: Likewise.
2825 * tui/tui-winsource.c: Likewise.
2826 * ui-out.c: Likewise.
2827 * user-regs.c: Likewise.
2828 * utils.c: Likewise.
2829 * v850-tdep.c: Likewise.
2830 * valops.c: Likewise.
2831 * value.c: Likewise.
2832 * varobj.c: Likewise.
2833 * vax-nat.c: Likewise.
2834 * xml-syscall.c: Likewise.
2835 * xml-tdesc.c: Likewise.
2836 * xstormy16-tdep.c: Likewise.
2837 * xtensa-linux-nat.c: Likewise.
2838 * xtensa-tdep.c: Likewise.
2840 2014-08-07 Gary Benson <gbenson@redhat.com>
2842 * common/common-defs.h: Include common-utils.h.
2843 * defs.h: Do not include common-utils.h.
2844 * common/gdb_assert.h: Likewise.
2845 * darwin-nat.h: Likewise.
2846 * nat/linux-btrace.c: Likewise.
2847 * target/waitstatus.h: Likewise.
2849 2014-08-07 Gary Benson <gbenson@redhat.com>
2851 * common/common-defs.h: Include ptid.h.
2852 * defs.h: Do not include ptid.h.
2853 * inferior.h: Likewise.
2854 * infrun.h: Likewise.
2855 * nat/linux-btrace.h: Likewise.
2856 * nat/linux-osdata.h: Likewise.
2857 * target/waitstatus.h: Likewise.
2859 2014-08-07 Gary Benson <gbenson@redhat.com>
2861 * common/common-defs.h: Include gdb_locale.h.
2862 * defs.h: Do not include gdb_locale.h.
2864 2014-08-07 Gary Benson <gbenson@redhat.com>
2866 * common/common-defs.h: Include gdb/signals.h.
2867 * defs.h: Do not include gdb/signals.h.
2869 2014-08-07 Gary Benson <gbenson@redhat.com>
2871 * common/common-defs.h: Include pathmax.h.
2872 * defs.h: Do not include pathmax.h.
2874 2014-08-07 Gary Benson <gbenson@redhat.com>
2876 * common/common-defs.h: Include libiberty.h.
2877 * defs.h: Do not include libiberty.h.
2878 * common/queue.h: Likewise.
2879 * cp-name-parser.y: Likewise.
2880 * mi/mi-cmd-catch.c: Likewise.
2881 * python/python.c: Likewise.
2883 2014-08-07 Gary Benson <gbenson@redhat.com>
2885 * common/common-defs.h: Include ansidecl.h.
2886 * defs.h: Do not include ansidecl.h.
2887 * common/buffer.h: Likewise.
2888 * common/common-utils.h: Likewise.
2890 2014-08-07 Gary Benson <gbenson@redhat.com>
2892 * common/common-defs.h: Include stddef.h.
2893 * defs.h: Do not include stddef.h.
2894 * common/common-utils.h: Likewise.
2895 * amd64fbsd-nat.c: Likewise.
2896 * bcache.c: Likewise.
2897 * charset.c: Likewise.
2898 * common/buffer.h: Likewise.
2899 * common/vec.h: Likewise.
2900 * i386bsd-nat.c: Likewise.
2901 * nat/linux-btrace.h: Likewise.
2902 * ppcfbsd-nat.c: Likewise.
2903 * ppcnbsd-tdep.h: Likewise.
2904 * ppcobsd-nat.c: Likewise.
2905 * ppcobsd-tdep.h: Likewise.
2906 * python/py-gdb-readline.c: Likewise.
2908 2014-08-07 Gary Benson <gbenson@redhat.com>
2910 * common/common-defs.h: Include stdarg.h.
2911 * defs.h: Do not include stdarg.h.
2912 * ada-lang.c: Likewise.
2913 * common/common-utils.h: Likewise.
2914 * guile/scm-string.c: Likewise.
2915 * guile/scm-utils.c: Likewise.
2916 * m32c-tdep.c: Likewise.
2918 2014-08-07 Gary Benson <gbenson@redhat.com>
2920 * common/common-defs.h: Include stdlib.h.
2921 * defs.h: Do not include stdlib.h.
2922 * addrmap.c: Likewise.
2923 * bcache.c: Likewise.
2924 * common/buffer.c: Likewise.
2925 * common/common-utils.c: Likewise.
2926 * cp-name-parser.y: Likewise.
2927 * go32-nat.c: Likewise.
2928 * mn10300-linux-tdep.c: Likewise.
2929 * nat/linux-osdata.c: Likewise.
2930 * tui/tui.c: Likewise.
2931 * windows-nat.c: Likewise.
2933 2014-08-07 Gary Benson <gbenson@redhat.com>
2935 * common/common-defs.h: Include stdio.h.
2936 * defs.h: Do not include stdio.h.
2937 * ada-lang.c: Likewise.
2938 * common/buffer.c: Likewise.
2939 * common/common-utils.c: Likewise.
2940 * cp-name-parser.y: Likewise.
2941 * gnu-nat.c: Likewise.
2942 * go32-nat.c: Likewise.
2943 * i386gnu-nat.c: Likewise.
2944 * proc-api.c: Likewise.
2945 * proc-events.c: Likewise.
2946 * proc-flags.c: Likewise.
2947 * proc-why.c: Likewise.
2948 * python/python-internal.h: Likewise.
2949 * target-memory.c: Likewise.
2950 * tui/tui-io.c: Likewise.
2951 * tui/tui.c: Likewise.
2953 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2955 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2956 (scan_dyntag_auxv): Same.
2958 2014-08-06 Yao Qi <yao@codesourcery.com>
2960 * amd64-linux-nat.c: Remove duplicated include
2962 * i386-linux-nat.c: Likewise.
2964 2014-08-06 Yao Qi <yao@codesourcery.com>
2966 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2967 operand" with "Special opcode" in comments.
2969 2014-08-05 Gary Benson <gbenson@redhat.com>
2971 * interps.c (initialize_interps): Remove prototype.
2972 (interpreter_initialized): Remove static global.
2973 (interp_add): Do not call initialize_interps.
2974 (initialize_interps): Remove function.
2976 2014-08-05 Gary Benson <gbenson@redhat.com>
2978 * utils.c (vwarning): Remove spurious va_end.
2980 2014-08-05 Alan Modra <amodra@gmail.com>
2982 * charset.c (convert_between_encodings): Cast result of obstack_base.
2983 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2984 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2985 (read_unwind_info): Use size_t for some locals.
2986 * jit.c (finalize_symtab): Likewise.
2987 * utils.c (hashtab_obstack_allocate): Likewise.
2988 * symmisc.c (print_objfile_statistics): Update format strings.
2990 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2992 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2993 (Changes in GDB 7.8): ... here.
2995 2014-08-04 Tom Tromey <tromey@redhat.com>
2997 * target.c (set_targetdebug): New function.
2998 (initialize_targets): Pass set_targetdebug when creating "set
3001 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3003 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3004 if detecting a variable-sized field that is not the last field.
3005 Fix struct type length computation.
3007 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3009 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3012 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3014 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3015 Remove "+ 8" offset in computation of CHAIN_VMA.
3017 2014-07-31 Doug Evans <dje@google.com>
3019 * inflow.c (child_terminal_inferior): Add comment.
3020 (child_terminal_ours_for_output): Add comment.
3021 (child_terminal_ours): Add comment.
3022 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3023 (linux_nat_terminal_ours): Add comment.
3025 2014-07-31 Gary Benson <gbenson@redhat.com>
3027 * common/btrace-common.h: Do not include defs.h or server.h.
3028 * nat/mips-linux-watch.h: Likewise.
3029 * gdb-dlfcn.h: Do not include defs.h.
3030 * tracefile.h: Likewise.
3032 2014-07-30 Roland McGrath <mcgrathr@google.com>
3034 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3036 2014-07-30 Tom Tromey <tromey@redhat.com>
3038 * bsd-kvm.c (bsd_kvm_open): Constify.
3039 * corelow.c (core_open): Constify.
3040 * ctf.c (ctf_open): Constify.
3041 * dbug-rom.c (dbug_open): Constify.
3042 * exec.c (exec_open): Constify.
3043 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3044 * microblaze-rom.c (picobug_open): Constify.
3045 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3047 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3048 * record-btrace.c (record_btrace_open): Constify.
3049 * record-full.c (record_full_core_open_1, record_full_open_1)
3050 (record_full_open): Constify.
3051 * remote-m32r-sdi.c (m32r_open): Constify.
3052 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3053 (rockhopper_open, lsi_open): Constify.
3054 * remote-sim.c (gdbsim_open): Constify.
3055 * remote.c (remote_open, extended_remote_open, remote_open_1):
3057 * target.h (struct target_ops) <to_open>: Make "arg" const.
3058 * tracefile-tfile.c (tfile_open): Constify.
3060 2014-07-30 Tom Tromey <tromey@redhat.com>
3062 * breakpoint.c (map_breakpoint_numbers): Update.
3063 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3064 (get_number_const): New function.
3065 (get_number): Rewrite using get_number_const.
3066 (init_number_or_range): Make "string" const.
3067 (number_is_in_list): Make "list" const.
3068 * cli/cli-utils.h (get_number_const): Declare.
3069 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3070 (init_number_or_range, number_is_in_list): Update.
3071 * printcmd.c (map_display_numbers): Update.
3072 * value.c (value_from_history_ref): Constify.
3073 * value.h (value_from_history_ref): Update.
3075 2014-07-30 Tom Tromey <tromey@redhat.com>
3077 * corefile.c (hook_type, call_extra_exec_file_hooks)
3078 (specify_exec_file_hook): Constify.
3079 * exec.c (exec_file_attach): Make "filename" const.
3080 * gdbcore.h (deprecated_exec_file_display_hook)
3081 (specify_exec_file_hook, exec_file_attach): Constify.
3082 * main.c (captured_main): Use catch_command_errors_const.
3084 2014-07-30 Tom Tromey <tromey@redhat.com>
3086 * target.c (open_target): New function.
3087 (add_target_with_completer, add_deprecated_target_alias): Use
3088 set_cmd_sfunc, set_cmd_context.
3089 (debug_to_open): Remove.
3090 (setup_target_debug): Update.
3092 2014-07-30 Yao Qi <yao@codesourcery.com>
3094 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3096 * parse.c (exp_iterate): Update comments.
3098 2014-07-30 Gary Benson <gbenson@redhat.com>
3100 * common/common-defs.h: New file.
3101 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3102 * defs.h: Include common-defs.h.
3103 Do not include config.h or build-gnulib/config.h.
3105 2014-07-30 Gary Benson <gbenson@redhat.com>
3107 * common/common-utils.h: Do not include config.h.
3108 * nat/linux-btrace.h: Likewise.
3110 2014-07-30 Gary Benson <gbenson@redhat.com>
3112 * btrace.c: Include defs.h.
3113 * common/ptid.c: Include defs.h or server.h as appropriate.
3114 * nat/mips-linux-watch.c: Likewise.
3116 2014-07-29 Tom Tromey <tromey@redhat.com>
3118 * target.c (target_is_pushed): Simplify.
3120 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3124 2014-07-29 Yao Qi <yao@codesourcery.com>
3127 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3129 2014-07-28 Doug Evans <xdje42@gmail.com>
3132 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3133 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3136 2014-07-28 Will Newton <will.newton@linaro.org>
3138 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3139 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3140 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3141 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3142 (THUMB2_EABI_SYSCALL): Likewise.
3143 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3145 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3146 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3148 2014-07-27 Doug Evans <xdje42@gmail.com>
3150 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3152 2014-07-27 Doug Evans <xdje42@gmail.com>
3154 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3156 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3157 Doug Evans <xdje42@gmail.com>
3160 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3161 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3162 * configure.ac: Try to use guild to compile an scm file, if it fails
3163 then disable guile support.
3164 * configure: Regenerate.
3165 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3167 (GUILE_COMPILED_FILES): New variable.
3168 (GUILE_FILES) Update.
3169 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3170 (stamp-guile): Compile scm files.
3171 * guile/guile.c (boot_guile_support): New function.
3172 (standard_throw_args_p): New function.
3173 (print_standard_throw_error, print_throw_error): New functions.
3174 (handle_boot_error): New function.
3175 (initialize_scheme_side): Rewrite to call boot_guile_support.
3176 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3177 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3179 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3180 Doug Evans <xdje42@gmail.com>
3183 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3184 * guile/lib/gdb/support.scm: New file.
3185 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3186 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3188 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3190 (%assert-type): Ditto, and renamed to assert-type.
3191 (%exception-print-style): Delete.
3193 2014-07-26 Doug Evans <xdje42@gmail.com>
3196 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3197 * configure: Regenerate.
3198 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3200 (PYTHON_FILES): New variable.
3201 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3202 (GUILE_FILES): New variable.
3203 (stamp-python, install-python, uninstall-python): Handle empty
3205 (stamp-guile, install-guile, uninstall-guile): Ditto.
3207 2014-07-26 Doug Evans <xdje42@gmail.com>
3210 * guile/lib/gdb.scm (pretty-printers): Export.
3211 (set-pretty-printers!): Export.
3212 * guile/lib/gdb/printing.scm (gdb module): Update.
3213 (prepend-pretty-printer!, append-pretty-printer!): Update.
3214 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3215 (pretty_printer_list_var): Delete.
3216 (pretty_printer_list): New static global.
3217 (gdbscm_pretty_printers): New function.
3218 (gdbscm_set_pretty_printers_x): New function.
3219 (ppscm_find_pretty_printer_from_gdb): Update.
3220 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3221 (gdbscm_initialize_pretty_printers): Update.
3223 2014-07-26 Doug Evans <xdje42@gmail.com>
3226 * configure.ac: Add check for header gc/gc.h.
3227 Add check for function setenv.
3228 * configure: Regenerate.
3229 * config.in: Regenerate.
3230 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3232 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3234 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3235 variation in gdbarch matching.
3237 2014-07-25 Tom Tromey <tromey@redhat.com>
3239 * exec.c (using_exec_ops): Remove.
3240 (exec_close_1): Update. Remove extraneous block, reindent.
3241 (add_target_sections): Use target_is_pushed.
3243 2014-07-25 Pedro Alves <palves@redhat.com>
3245 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3246 * monitor.c (monitor_create_inferior): Likewise.
3247 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3248 * remote-sim.c (gdbsim_create_inferior): Likewise.
3249 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3250 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3251 * windows-nat.c (do_initial_windows_stuff): Likewise.
3253 2014-07-25 Pedro Alves <palves@redhat.com>
3255 * NEWS: Mention signal passing and "signal" command changes.
3256 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3258 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3260 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3261 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3262 (jump_command): Adjust clear_proceed_status call.
3263 (signal_command): Warn if other thread that are resumed have
3264 signals that will be delivered. Adjust clear_proceed_status call.
3265 (until_next_command, finish_command)
3266 (proceed_after_attach_callback, attach_command_post_wait)
3267 (attach_command): Adjust clear_proceed_status call.
3268 * infrun.c (proceed_after_vfork_done): Likewise.
3269 (proceed_after_attach_callback): Adjust comment.
3270 (clear_proceed_status_thread): Clear stop_signal if not in pass
3272 (clear_proceed_status_callback): Delete.
3273 (clear_proceed_status): New 'step' parameter. Only clear the
3274 proceed status of threads the command being prepared is about to
3276 (proceed): If passed in an explicit signal, override stop_signal
3277 with it. Don't pass the last stop signal to the thread we're
3279 (init_wait_for_inferior): Adjust clear_proceed_status call.
3280 (switch_back_to_stepped_thread): Clear the signal if it should not
3282 * infrun.h (clear_proceed_status): New 'step' parameter.
3283 (user_visible_resume_ptid): Add comment.
3284 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3285 signal is in pass state.
3286 * remote.c (append_pending_thread_resumptions): Likewise.
3287 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3289 2014-07-25 Tom Tromey <tromey@redhat.com>
3291 * target.h (target_stopped_data_address)
3292 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3295 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3297 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3299 (avr_pointer_to_address): Likewise.
3301 2014-07-24 Tom Tromey <tromey@redhat.com>
3303 * monitor.c (compile_pattern): Update.
3304 * target.h (struct target_ops) <to_shortname, to_longname,
3307 2014-07-24 Tom Tromey <tromey@redhat.com>
3309 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3310 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3311 (add_info_alias, add_com): Make "doc" const.
3312 (print_doc_line): Make "str" const.
3313 (delete_cmd): Update.
3314 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3315 (print_doc_line): Update.
3316 * cli/cli-script.c (document_command): Update.
3317 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3318 (add_com, add_info, add_info_alias): Update.
3319 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3320 * python/py-cmd.c (cmdpy_destroyer): Update.
3322 2014-07-24 Tom Tromey <tromey@redhat.com>
3324 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3325 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3326 (help_cmd_list): Constify.
3327 (lookup_cmd): Update.
3328 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3330 (help_cmd_list, apropos_cmd): Update.
3331 * cli/cli-script.c (show_user): Update.
3332 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3333 * cli/cli-setshow.h (cmd_show_list): Update.
3334 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3335 (cmd_show_list): Update.
3336 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3337 * python/py-cmd.c (cmdpy_destroyer): Update.
3339 2014-07-24 Tom Tromey <tromey@redhat.com>
3341 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3342 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3344 * command.h (deprecate_cmd): Update.
3345 * maint.c (maintenance_do_deprecate): Add casts.
3347 2014-07-24 Tom Tromey <tromey@redhat.com>
3349 * cli/cli-decode.c (help_cmd): Make parameter "const".
3350 * cli/cli-decode.h (help_cmd): Update.
3352 2014-07-24 Tom Tromey <tromey@redhat.com>
3354 * stack.c (up_silently_base, down_silently_base): Make argument
3357 2014-07-24 Tom Tromey <tromey@redhat.com>
3359 * solib.c (solib_add): Make "pattern" const.
3360 * solib.h (solib_add): Update.
3362 2014-07-24 Tom Tromey <tromey@redhat.com>
3364 * remote.c (remote_serial_open, print_packet, putpkt)
3365 (putpkt_binary): Constify.
3366 * remote.h (putpkt): Update.
3368 2014-07-24 Tom Tromey <tromey@redhat.com>
3370 * monitor.c (monitor_open): Make "args" const.
3371 * monitor.h (monitor_open): Update.
3373 2014-07-24 Tom Tromey <tromey@redhat.com>
3375 * maint.c (match_bfd_flags): Make "string" const.
3376 (print_bfd_section_info): Remove casts.
3377 (print_objfile_section_info): Make "string" const.
3379 2014-07-24 Tom Tromey <tromey@redhat.com>
3381 * inf-child.c (inf_child_open_target): Make "arg" const.
3382 * inf-child.h (inf_child_open_target): Update.
3384 2014-07-24 Tom Tromey <tromey@redhat.com>
3386 * environ.c (unset_in_environ): Make "var" const.
3387 * environ.h (unset_in_environ): Update.
3389 2014-07-24 Tom Tromey <tromey@redhat.com>
3391 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3393 (scan_filename_with_cleanup): Likewise.
3394 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3395 Make arguments const.
3396 (restore_command): Update.
3398 2014-07-24 Pedro Alves <palves@redhat.com>
3400 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3402 2014-07-24 Tom Tromey <tromey@redhat.com>
3403 Gary Benson <gbenson@redhat.com>
3405 * nat/linux-ptrace.c (additional_flags): New global.
3406 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3407 additional_flags; don't check GDBSERVER.
3408 (linux_ptrace_set_additional_flags): New function.
3409 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3411 * linux-nat.c (_initialize_linux_nat): Call
3412 linux_ptrace_set_additional_flags.
3414 2014-07-24 Tom Tromey <tromey@redhat.com>
3416 * make-target-delegates (munge_type, write_debugmethod): New
3418 (debug_names): New global.
3419 ($TARGET_DEBUG_PRINTER): New global.
3420 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3422 Write debug methods. Generate init_debug_target.
3423 * target-debug.h: New file.
3424 * target-delegates.c: Rebuild.
3425 * target.c: Include target-debug.h.
3426 (debug_target): Hoist definition.
3427 (target_kill, target_get_section_table, target_memory_map)
3428 (target_flash_erase, target_flash_done, target_detach)
3429 (target_disconnect, target_wait, target_resume)
3430 (target_pass_signals, target_program_signals, target_follow_fork)
3431 (target_mourn_inferior, target_search_memory)
3432 (target_thread_address_space, target_close)
3433 (target_find_new_threads, target_core_of_thread)
3434 (target_verify_memory, target_insert_mask_watchpoint)
3435 (target_remove_mask_watchpoint): Remove targetdebug code.
3436 (debug_to_post_attach, debug_to_prepare_to_store)
3437 (debug_to_files_info, debug_to_insert_breakpoint)
3438 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3439 (debug_to_region_ok_for_hw_watchpoint)
3440 (debug_to_can_accel_watchpoint_condition)
3441 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3442 (debug_to_watchpoint_addr_within_range)
3443 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3444 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3445 (debug_to_terminal_init, debug_to_terminal_inferior)
3446 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3447 (debug_to_terminal_save_ours, debug_to_terminal_info)
3448 (debug_to_load, debug_to_post_startup_inferior)
3449 (debug_to_insert_fork_catchpoint)
3450 (debug_to_remove_fork_catchpoint)
3451 (debug_to_insert_vfork_catchpoint)
3452 (debug_to_remove_vfork_catchpoint)
3453 (debug_to_insert_exec_catchpoint)
3454 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3455 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3456 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3457 (setup_target_debug): Call init_debug_target.
3458 * target.h (TARGET_DEBUG_PRINTER): New macro.
3459 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3460 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3462 2014-07-24 Gary Benson <gbenson@redhat.com>
3464 * exceptions.h (throw_vfatal): Renamed to...
3465 (throw_vquit): New declaration.
3466 (throw_quit): Likewise.
3467 * exceptions.c (throw_vfatal): Renamed to...
3468 (throw_vquit): New function.
3469 (throw_quit): Likewise.
3470 (throw_error): Call throw_verror rather than throw_it.
3471 * utils.h (vfatal): Removed.
3473 * utils.c (vfatal): Removed.
3475 (internal_verror): Replaced call to fatal with call to throw_quit.
3476 (quit): Replaced calls to fatal with calls to throw_quit.
3478 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3480 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3483 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3485 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3486 less than zero in conditional expression.
3488 2014-07-23 Tom Tromey <tromey@redhat.com>
3490 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3491 ($INTRO_PART): Don't match whitespace.
3492 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3494 ($METHOD): Add $METHOD_TRAILER.
3496 (scan_target_h): New sub.
3497 Change main loop not to collect state.
3498 * target-delegates.c: Rebuild.
3500 2014-07-23 Gary Benson <gbenson@redhat.com>
3502 * cp-support.c (gdb_demangle): Fix build on systems without
3505 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3507 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3508 for reference entry value target data value.
3510 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3512 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3513 value_available_contents_eq.
3515 2014-07-22 Pedro Alves <palves@redhat.com>
3517 * value.c (allocate_optimized_out_value): Don't mark value as
3520 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3522 * MAINTAINERS (Write After Approval): Update my email address.
3524 2014-07-20 Doug Evans <dje@google.com>
3527 * remote.c (putpkt_binary): Add text to error message.
3529 2014-07-20 Yao Qi <yao@codesourcery.com>
3531 * eval.c: Remove "Chill" from comments.
3532 * gdbtypes.h: Likewise.
3533 * symtab.h: Likewise.
3535 2014-07-20 Yao Qi <yao@codesourcery.com>
3537 * std-operator.def: Update comments to TERNOP_SLICE.
3539 2014-07-20 Yao Qi <yao@codesourcery.com>
3541 * std-operator.def: Remove BINOP_RANGE.
3542 * breakpoint.c (watchpoint_exp_is_const): Update.
3543 * expprint.c (dump_subexp_body_standard): Likewise.
3544 * eval.c (init_array_element): Remove dead code.
3545 (evaluate_subexp_standard): Likewise.
3547 2014-07-20 Yao Qi <yao@codesourcery.com>
3549 * std-operator.def: Remove BINOP_IN.
3550 * breakpoint.c (watchpoint_exp_is_const): Update.
3551 * eval.c (evaluate_subexp_standard): Likewise.
3552 * expprint.c (dump_subexp_body_standard): Likewise.
3554 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3556 * microblaze-tdep.c (microblaze_register_names): Add
3557 the rshr and rslr register names.
3558 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3559 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3560 Use of tdesc_numbered_register. Use of
3561 microblaze_register_g_packet_guesses. Use of
3562 tdesc_use_registers. Use of set_gdbarch_register_type.
3563 (microblaze_register_g_packet_guesses): New.
3564 * microblaze-tdep.h (microblaze_reg_num): Add
3565 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3566 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3567 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3568 * features/microblaze-core.xml: New file.
3569 * features/microblaze-stack-protect.xml: New file.
3570 * features/microblaze-with-stack-protect.c: New file.
3571 * features/microblaze-with-stack-protect.xml: New file.
3572 * features/microblaze.xml: New file.
3573 * features/microblaze.c: New file.
3574 * features/Makefile (microblaze-with-stack-protect): Add
3575 microblaze-with-stack-protect microblaze and microblaze-expedite.
3576 * regformats/microblaze-with-stack-protect.dat: New file.
3577 * regformats/microblaze.dat: New file.
3578 * doc/gdb.texinfo (MicroBlaze Features): Added.
3580 2014-07-18 Tom Tromey <tromey@redhat.com>
3582 * exec.c (exec_ops): Now static.
3583 * exec.h (exec_ops): Don't declare.
3585 2014-07-18 Tom Tromey <tromey@redhat.com>
3587 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3588 to find_target_beneath.
3589 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3590 find_target_beneath.
3591 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3593 2014-07-18 Tom Tromey <tromey@redhat.com>
3596 * utils.c (quit): Use target_supports_terminal_ours.
3597 * target.h (target_supports_terminal_ours): Declare.
3598 * target.c (target_supports_delete_record): Don't check
3599 to_delete_record against NULL.
3600 (target_supports_terminal_ours): New function.
3602 2014-07-18 Tom Tromey <tromey@redhat.com>
3605 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3606 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3607 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3608 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3609 * windows-nat.c (windows_xfer_partial): Always delegate.
3610 * record-btrace.c (record_btrace_xfer_partial): Simplify
3612 (record_btrace_fetch_registers, record_btrace_store_registers)
3613 (record_btrace_prepare_to_store, record_btrace_resume)
3614 (record_btrace_wait, record_btrace_find_new_threads)
3615 (record_btrace_thread_alive): Likewise.
3616 * procfs.c (procfs_xfer_partial): Always delegate.
3617 * corelow.c (core_xfer_partial): Always delegate.
3618 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3620 2014-07-18 Tom Tromey <tromey@redhat.com>
3622 * exec.c (exec_make_note_section): Move earlier.
3624 2014-07-17 Doug Evans <dje@google.com>
3627 * maint.c (count_symtabs_and_blocks): Handle NULL
3628 current_program_space.
3629 (report_command_stats): Check global enabled flag in addition to
3630 recorded enabled flag.
3631 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3633 2014-07-16 Pedro Alves <palves@redhat.com>
3635 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3637 2014-07-16 Tom Tromey <tromey@redhat.com>
3639 * target.h (struct target_ops) <to_delete_record>: Reformat
3642 2014-07-16 Tom Tromey <tromey@redhat.com>
3644 * target-delegates.c: Rebuild.
3646 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3648 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3649 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3650 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3651 (avr_pointer_to_address): Likewise.
3652 (avr_address_class_type_flags): New function.
3653 (avr_address_class_type_flags_to_name): Likewise.
3654 (avr_address_class_name_to_type_flags): Likewise.
3655 (avr_gdbarch_init): Set address_class_type_flags,
3656 address_class_type_flags_to_name and
3657 address_class_name_to_type_flags.
3659 2014-07-15 Pedro Alves <palves@redhat.com>
3661 * linux-nat.c (kill_callback): Save errno and work with saved
3664 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3666 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3668 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3670 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3671 breakpoint support correctly.
3673 2014-07-14 Pedro Alves <palves@redhat.com>
3675 * utils.c (prompt_for_continue): Call target_terminal_ours.
3677 2014-07-14 Pedro Alves <palves@redhat.com>
3679 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3680 catch_errors. Don't re-enable stdin or notify observers where,
3682 (fetch_inferior_event_wrapper): Delete.
3684 2014-07-14 Pedro Alves <palves@redhat.com>
3687 * top.c: Include "inf-loop.h".
3688 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3690 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3692 (gdb_readline_wrapper): Store whether the target is async, and
3695 2014-07-14 Pedro Alves <palves@redhat.com>
3698 * top.c (gdb_readline_wrapper_line): Tweak comment.
3699 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3700 the input handler callback.
3702 2014-07-14 Pedro Alves <palves@redhat.com>
3705 * main.c: Include event-top.h.
3706 (handle_command_errors): New function.
3707 (catch_command_errors, catch_command_errors_const): Use it.
3709 2014-07-14 Pedro Alves <palves@redhat.com>
3711 * exceptions.c (catch_command_errors, catch_command_errors_const):
3713 * exceptions.h (catch_command_errors_ftype)
3714 (catch_command_errors_const_ftype): Moved to main.c.
3715 (catch_command_errors, catch_command_errors_const): Delete
3717 * main.c (catch_command_errors_ftype)
3718 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3719 (catch_command_errors, catch_command_errors_const)): Moved here
3720 from exceptions.c and make static.
3722 2014-07-14 Pedro Alves <palves@redhat.com>
3724 * exceptions.c (print_any_exception): Delete.
3725 (catch_exceptions_with_msg): Use exception_print instead of
3726 print_any_exception.
3727 (catch_errors): Use exception_fprintf instead of
3728 print_any_exception.
3729 (catch_command_errors, catch_command_errors_const): Use
3730 exception_print instead of print_any_exception.
3732 2014-07-14 Pedro Alves <palves@redhat.com>
3734 * infcall.c (run_inferior_call): Set 'sync_execution' while
3735 running the inferior call.
3737 2014-07-14 Pedro Alves <palves@redhat.com>
3739 * value.c (value_contents_equal): Delete function.
3740 * value.h (value_contents_equal): Delete declaration.
3742 2014-07-14 Tom Tromey <tromey@redhat.com>
3745 * gdbtypes.c (is_dynamic_type_internal): New function, from
3747 (is_dynamic_type): Rewrite.
3748 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3749 (resolve_dynamic_struct): Likewise.
3750 (resolve_dynamic_type_internal): New function, from
3751 resolve_dynamic_type.
3752 (resolve_dynamic_type): Rewrite.
3754 2014-07-14 Tom Tromey <tromey@redhat.com>
3756 * target.c (target_require_runnable): Also check record_stratum.
3759 2014-07-11 Yao Qi <yao@codesourcery.com>
3761 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3762 thumb_instruction_restores_sp return true.
3764 2014-07-11 Yao Qi <yao@codesourcery.com>
3766 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3767 (thumb_in_function_epilogue_p): Call
3768 thumb_instruction_restores_sp.
3770 2014-07-11 Yao Qi <yao@codesourcery.com>
3772 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3774 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3776 2014-07-11 Gary Benson <gbenson@redhat.com>
3778 * amd64-linux-nat.c (gdbcore.h): Remove include.
3779 (regset.h): Likewise.
3780 (nat/linux-btrace.h): Likewise.
3781 (btrace.h): Likewise.
3782 (gdb_assert.h): Likewise.
3783 (string.h): Likewise.
3784 (sys/uio.h): Likewise.
3785 (sys/debugreg.h): Likewise.
3786 (sys/syscall.h): Likewise.
3787 (sys/procfs.h): Likewise.
3788 (sys/user.h): Likewise.
3789 (asm/ptrace.h): Likewise.
3790 (i386-nat.h): Likewise.
3791 * i386-linux-nat.c (i386-nat.h): Likewise.
3792 (regset.h): Likewise.
3793 (target.h): Likewise.
3794 (linux-nat.h): Likewise.
3795 (nat/linux-btrace.h): Likewise.
3796 (btrace.h): Likewise.
3797 (gdb_assert.h): Likewise.
3798 (string.h): Likewise.
3799 (sys/uio.h): Likewise.
3800 (sys/user.h): Likewise.
3801 (sys/procfs.h): Likewise.
3802 (sys/reg.h): Likewise.
3803 (sys/debugreg.h): Likewise.
3804 (ORIG_EAX): Remove definition.
3806 2014-07-11 Gary Benson <gbenson@redhat.com>
3808 * i386-linux-nat.h: New file.
3809 * x86-linux-nat.h: Likewise.
3810 * x86-linux-nat.c: Likewise.
3811 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3812 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3813 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3814 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3815 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3816 (PTRACE_SETREGSET): Likewise.
3817 (arch_lwp_info): Now in x86-linux-nat.c.
3818 (have_ptrace_getregset): Now in x86-linux-nat.h.
3819 (x86_linux_dr_get): Now in x86-linux-nat.c.
3820 (x86_linux_dr_set): Likewise.
3821 (x86_linux_dr_get_addr): Likewise.
3822 (x86_linux_dr_get_control): Likewise.
3823 (x86_linux_dr_get_status): Likewise.
3824 (update_debug_registers_callback): Likewise.
3825 (x86_linux_dr_set_control): Likewise.
3826 (x86_linux_dr_set_addr): Likewise.
3827 (x86_linux_prepare_to_resume): Likewise.
3828 (x86_linux_new_thread): Likewise.
3829 (x86_linux_new_fork): Likewise.
3830 (x86_linux_get_thread_area): Likewise.
3831 (super_post_startup_inferior): Likewise.
3832 (x86_linux_child_post_startup_inferior): Likewise.
3833 (AMD64_LINUX_USER64_CS): Likewise.
3834 (AMD64_LINUX_X32_DS): Likewise.
3835 (x86_linux_read_description): Likewise.
3836 (x86_linux_enable_btrace): Likewise.
3837 (x86_linux_disable_btrace): Likewise.
3838 (x86_linux_teardown_btrace): Likewise.
3839 (x86_linux_read_btrace): Likewise.
3840 (x86_linux_create_target): Likewise.
3841 (x86_linux_add_target): Likewise.
3842 * i386-linux-nat.c (x86-linux-nat.h): New include.
3843 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3844 (PTRACE_SETREGSET): Likewise.
3845 (arch_lwp_info): Now in x86-linux-nat.c.
3846 (have_ptrace_getregset): Now in x86-linux-nat.h.
3847 (x86_linux_dr_get): Now in x86-linux-nat.c.
3848 (x86_linux_dr_set): Likewise.
3849 (x86_linux_dr_get_addr): Likewise.
3850 (x86_linux_dr_get_control): Likewise.
3851 (x86_linux_dr_get_status): Likewise.
3852 (update_debug_registers_callback): Likewise.
3853 (x86_linux_dr_set_control): Likewise.
3854 (x86_linux_dr_set_addr): Likewise.
3855 (x86_linux_prepare_to_resume): Likewise.
3856 (x86_linux_new_thread): Likewise.
3857 (x86_linux_new_fork): Likewise.
3858 (x86_linux_get_thread_area): Likewise.
3859 (super_post_startup_inferior): Likewise.
3860 (x86_linux_child_post_startup_inferior): Likewise.
3861 (AMD64_LINUX_USER64_CS): Likewise.
3862 (AMD64_LINUX_X32_DS): Likewise.
3863 (x86_linux_read_description): Likewise.
3864 (x86_linux_enable_btrace): Likewise.
3865 (x86_linux_disable_btrace): Likewise.
3866 (x86_linux_teardown_btrace): Likewise.
3867 (x86_linux_read_btrace): Likewise.
3868 (x86_linux_create_target): Likewise.
3869 (x86_linux_add_target): Likewise.
3871 2014-07-11 Gary Benson <gbenson@redhat.com>
3873 * amd64-linux-nat.c: Comment and whitespace changes.
3874 * i386-linux-nat.c: Comment and whitespace changes.
3876 2014-07-11 Gary Benson <gbenson@redhat.com>
3878 * amd64-linux-nat.c (x86_linux_create_target): New function.
3879 (x86_linux_add_target): Likewise.
3880 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3881 * i386-linux-nat.c (x86_linux_create_target): New function.
3882 (x86_linux_add_target): Likewise.
3883 (_initialize_i386_linux_nat): Delegate to the above new functions.
3885 2014-07-11 Gary Benson <gbenson@redhat.com>
3887 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3888 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3889 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3890 (ps_get_thread_area): Delegate to the above.
3892 2014-07-11 Gary Benson <gbenson@redhat.com>
3894 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3895 x86_linux_read_description. All uses updated. amd64-specific
3896 code conditionalized. Conditionalized i386-specific code added.
3897 Redundant cast removed.
3898 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3899 x86_linux_read_description. All uses updated. i386-specific
3900 code conditionalized. Conditionalized amd64-specific code added.
3901 One sizeof replaced with the actual type it is describing.
3903 2014-07-11 Gary Benson <gbenson@redhat.com>
3905 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3906 x86_linux_dr_get. All uses updated.
3907 (amd64_linux_dr_set): Renamed to
3908 x86_linux_dr_set. All uses updated.
3909 (amd64_linux_dr_get_addr): Renamed to
3910 x86_linux_dr_get_addr. All uses updated.
3911 (amd64_linux_dr_get_control): Renamed to
3912 x86_linux_dr_get_control. All uses updated.
3913 (amd64_linux_dr_get_status): Renamed to
3914 x86_linux_dr_get_status. All uses updated.
3915 (amd64_linux_dr_set_control): Renamed to
3916 x86_linux_dr_set_control. All uses updated.
3917 (amd64_linux_dr_set_addr): Renamed to
3918 x86_linux_dr_set_addr. All uses updated.
3919 (amd64_linux_prepare_to_resume): Renamed to
3920 x86_linux_prepare_to_resume. All uses updated.
3921 (amd64_linux_new_thread): Renamed to
3922 x86_linux_new_thread. All uses updated.
3923 (amd64_linux_new_fork): Renamed to
3924 x86_linux_new_fork. All uses updated.
3925 (amd64_linux_child_post_startup_inferior): Renamed to
3926 x86_linux_child_post_startup_inferior. All uses updated.
3927 (amd64_linux_enable_btrace): Renamed to
3928 x86_linux_enable_btrace. All uses updated.
3929 (amd64_linux_disable_btrace): Renamed to
3930 x86_linux_disable_btrace. All uses updated.
3931 (amd64_linux_teardown_btrace): Renamed to
3932 x86_linux_teardown_btrace. All uses updated.
3933 (amd64_linux_read_btrace): Renamed to
3934 x86_linux_read_btrace. All uses updated.
3935 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3936 x86_linux_dr_get. All uses updated.
3937 (i386_linux_dr_set): Renamed to
3938 x86_linux_dr_set. All uses updated.
3939 (i386_linux_dr_get_addr): Renamed to
3940 x86_linux_dr_get_addr. All uses updated.
3941 (i386_linux_dr_get_control): Renamed to
3942 x86_linux_dr_get_control. All uses updated.
3943 (i386_linux_dr_get_status): Renamed to
3944 x86_linux_dr_get_status. All uses updated.
3945 (i386_linux_dr_set_control): Renamed to
3946 x86_linux_dr_set_control. All uses updated.
3947 (i386_linux_dr_set_addr): Renamed to
3948 x86_linux_dr_set_addr. All uses updated.
3949 (i386_linux_prepare_to_resume): Renamed to
3950 x86_linux_prepare_to_resume. All uses updated.
3951 (i386_linux_new_thread): Renamed to
3952 x86_linux_new_thread. All uses updated.
3953 (i386_linux_new_fork): Renamed to
3954 x86_linux_new_fork. All uses updated.
3955 (i386_linux_child_post_startup_inferior): Renamed to
3956 x86_linux_child_post_startup_inferior. All uses updated.
3957 (i386_linux_enable_btrace): Renamed to
3958 x86_linux_enable_btrace. All uses updated.
3959 (i386_linux_disable_btrace): Renamed to
3960 x86_linux_disable_btrace. All uses updated.
3961 (i386_linux_teardown_btrace): Renamed to
3962 x86_linux_teardown_btrace. All uses updated.
3963 (i386_linux_read_btrace): Renamed to
3964 x86_linux_read_btrace. All uses updated.
3966 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3968 * remote.c (extended_remote_post_attach): New function.
3969 (init_extended_remote_ops): Install it as to_post_attach method.
3971 2014-07-09 Pedro Alves <palves@redhat.com>
3973 * infcmd.c (attach_command_post_wait): Don't call
3974 target_terminal_inferior here.
3975 (attach_command): Call it here instead.
3977 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3979 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3981 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3982 from varobj.c, with additional checks.
3983 (c_varobj_ops): Fill in is_path_expr_parent field.
3984 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3985 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3987 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3989 (varobj_default_is_path_expr_parent): New function.
3990 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3991 (varobj_default_is_path_expr_parent): Declare new function.
3993 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3995 * infcmd.c (finish_backward): Turn internal error into normal error.
3997 2014-07-07 Pedro Alves <palves@redhat.com>
4000 * remote.c (async_handle_remote_sigint)
4001 (async_handle_remote_sigint_twice): Call
4002 gdb_call_async_signal_handler instead of
4003 mark_async_signal_handler.
4005 2014-07-07 Tom Tromey <tromey@redhat.com>
4007 * target-delegates.c: Rebuild.
4008 * target.c (target_info_record): Remove.
4009 * record.c (info_record_command): Unconditionally call
4011 * target.h (struct target_ops) <to_info_record>: Use
4012 TARGET_DEFAULT_IGNORE.
4013 (target_info_record): Remove.
4015 2014-07-07 Tom Tromey <tromey@redhat.com>
4017 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4018 TARGET_DEFAULT_NORETURN.
4019 * target.c (generic_tls_error): New function.
4020 (target_translate_tls_address): Don't search target stack.
4021 * target-delegates.c: Rebuild.
4022 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4024 * linux-thread-db.c (thread_db_get_thread_local_address):
4025 Unconditionally call beneath target.
4027 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4029 * cli/cli-logging.c (pop_output_files): Assign targerr to
4032 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4034 * MAINTAINERS (Write After Approval): Update my email address.
4036 2014-07-02 Gary Benson <gbenson@redhat.com>
4038 * proc-service.c (ps_xfer_memory): Update comment.
4039 (ps_pstop): Remove unused function.
4040 (ps_pcontinue): Likewise.
4041 (ps_lstop): Likewise.
4042 (ps_lcontinue): Likewise.
4043 (ps_lgetxregsize): Likewise.
4044 (ps_lgetxregs): Likewise.
4045 (ps_lsetxregs): Likewise.
4046 (ps_plog): Likewise.
4047 (ps_ptread): Likewise.
4048 (ps_ptwrite): Likewise.
4050 2014-07-01 Mark Wielaard <mjw@redhat.com>
4052 * dwarf2read.c (add_array_cv_type): New function.
4053 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4054 (read_tag_volatile_type): Likewise.
4056 2014-07-01 Tom Tromey <tromey@redhat.com>
4058 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4059 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4060 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4061 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4062 * command.h (cmd_cfunc_ftype): Move earlier.
4063 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4064 (add_com, add_info): Use cmd_cfunc_ftype.
4066 2014-06-30 Tom Tromey <tromey@redhat.com>
4068 * symtab.c (operator_chars): Make parameters and return type
4070 (file_matches): Make "files" const.
4071 (struct search_symbols_data) <files>: Now const.
4072 (search_symbols): Make "regexp" and "files" parameters const.
4074 (symtab_symbol_info): Remove cast.
4075 (rbreak_command): Update.
4076 * symtab.h (search_symbols): Update.
4078 2014-06-27 Yao Qi <yao@codesourcery.com>
4080 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4081 Change parameter type to 'struct thread_info *'. Caller
4083 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4085 * dummy-frame.c (struct dummy_frame_id): New.
4086 (dummy_frame_id_eq): New function.
4087 (struct dummy_frame) <id>: Change its type to 'struct
4089 (dummy_frame_push): Add parameter ptid and save it in
4091 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4093 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4095 (lookup_dummy_frame): Change parameter type to 'struct
4096 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4097 instead of frame_id_eq.
4098 (dummy_frame_pop): Add parameter ptid. Callers updated.
4099 Update comments. Compose dummy_frame_id and pass it to
4101 (dummy_frame_discard): Add parameter ptid.
4102 (dummy_frame_sniffer): Compose dummy_frame_id and call
4103 dummy_frame_id_eq instead of frame_id_eq.
4104 (fprint_dummy_frames): Print ptid.
4105 * dummy-frame.h: Remove comments.
4106 (dummy_frame_push): Add ptid in declaration.
4107 (dummy_frame_pop, dummy_frame_discard): Likewise.
4109 2014-06-26 Tom Tromey <tromey@redhat.com>
4111 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4112 * command.h (error_no_arg): Update.
4114 2014-06-26 Tom Tromey <tromey@redhat.com>
4116 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4117 (do_show_command): Make "arg" const.
4118 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4120 2014-06-26 Tom Tromey <tromey@redhat.com>
4122 * record-full.c (record_full_get_bookmark): Make "args" const.
4123 (record_full_goto_bookmark): Make "raw_bookmark" const.
4124 * record.c (record_goto): New function.
4125 (cmd_record_goto): Use it. Now static.
4126 * record.h (record_goto): Declare.
4127 (cmd_record_goto): Remove declaration.
4128 * target-delegates.c: Rebuild.
4129 * target.h (struct target_ops) <to_get_bookmark,
4130 to_goto_bookmark>: Make parameter const.
4132 2014-06-26 Tom Tromey <tromey@redhat.com>
4134 * defs.h (generic_load): Update.
4135 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4136 * monitor.c (monitor_load): Make "args" const.
4137 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4138 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4140 (mips_load): Make "file" const.
4141 * remote-sim.c (gdbsim_load): Make "args" const.
4142 * remote.c (remote_load): Make "name" const.
4143 * symfile.c (generic_load): Make "args" const.
4144 * target-delegates.c: Rebuild.
4145 * target.c (target_load): Make "arg" const.
4146 (debug_to_load): Make "args" const.
4147 * target.h (struct target_ops) <to_load>: Make parameter const.
4148 (target_load): Update.
4150 2014-06-26 Tom Tromey <tromey@redhat.com>
4153 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4154 (dwarf2_physname, read_partial_die)
4155 (guess_partial_die_structure_name, fixup_partial_die)
4156 (guess_full_die_structure_name, anonymous_struct_prefix)
4157 (dwarf2_name): Use per-BFD obstack.
4159 2014-06-26 Yao Qi <yao@codesourcery.com>
4161 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4162 dummyframe and this_id into inner block below.
4164 2014-06-26 Yao Qi <yao@codesourcery.com>
4166 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4167 with "signal_pass[0]" in the initialization of signal_pass.
4169 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4171 * record-btrace.c (record_btrace_generating_corefile)
4172 (record_btrace_prepare_to_generate_core)
4173 (record_btrace_done_generating_core): New.
4174 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4175 (record_btrace_store_registers, record_btrace_prepare_to_store):
4176 Forward request when generating a core file.
4177 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4178 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4179 to_done_generating_core.
4181 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4183 * target.h (target_ops) <to_prepare_to_generate_core>
4184 <to_done_generating_core>: New.
4185 (target_prepare_to_generate_core, target_done_generating_core): New.
4186 * target.c (target_prepare_to_generate_core)
4187 (target_done_generating_core): New.
4188 * target-delegates.c: Regenerate.
4189 * gcore.c: (write_gcore_file): Rename to ...
4190 (write_gcore_file_1): ...this.
4191 (write_gcore_file): Call target_prepare_to_generate_core
4192 and target_done_generating_core.
4194 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4196 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4197 * gcore.c (write_gcore_file): Free memory returned from
4198 make_corefile_notes.
4199 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4200 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4202 2014-06-24 Yao Qi <yao@codesourcery.com>
4204 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4205 (arm_linux_init_abi): Set skip_trampoline_code with
4206 gdbarch_skip_trampoline_code instead of
4207 find_solib_trampoline_target.
4209 2014-06-24 Yao Qi <yao@codesourcery.com>
4211 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4212 arm_skip_bx_reg returns non-zero.
4214 2014-06-24 Yao Qi <yao@codesourcery.com>
4216 * arm-tdep.c (arm_skip_bx_reg): New function.
4217 (arm_skip_stub): Call arm_skip_bx_reg.
4219 2014-06-23 Don Breazeal <donb@codesourcery.com>
4221 * MAINTAINERS: Add myself as write-after-approval maintainer.
4223 2014-06-23 Pedro Alves <palves@redhat.com>
4225 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4226 DR_CONTROL before setting DR0..DR3.
4227 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4228 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4229 bits of DR_CONTROL related to the debug register slot being
4230 disabled. If all slots are vacant, clear local slowdown as well,
4231 and assert DR_CONTROL is 0.
4233 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4235 * python/lib/gdb/command/xmethods.py
4236 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4237 current progspace only if the string "progspace" matches LOCUS_RE.
4239 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4241 Fix --with-system-readline with readline-6.3 patch 5.
4242 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4243 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4246 2014-06-20 Tom Tromey <tromey@redhat.com>
4248 * dwarf2read.c (dw2_get_real_path): Use correct type in
4250 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4252 2014-06-20 Gary Benson <gbenson@redhat.com>
4254 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4255 * common/glibc_thread_db.h: Likewise.
4256 * common/i386-cpuid.h: Likewise.
4257 * common/i386-gcc-cpuid.h: Likewise.
4258 * common/linux-btrace.h: Likewise.
4259 * common/linux-osdata.h: Likewise.
4260 * common/linux-procfs.h: Likewise.
4261 * common/linux-ptrace.h: Likewise.
4262 * common/mips-linux-watch.h: Likewise.
4263 * common/linux-btrace.c: Moved to nat.
4264 * common/linux-osdata.c: Likewise.
4265 * common/linux-procfs.c: Likewise.
4266 * common/linux-ptrace.c: Likewise.
4267 * common/mips-linux-watch.c: Likewise.
4268 * nat/gdb_thread_db.h: Moved from common.
4269 * nat/glibc_thread_db.h: Likewise.
4270 * nat/i386-cpuid.h: Likewise.
4271 * nat/i386-gcc-cpuid.h: Likewise.
4272 * nat/linux-btrace.c: Likewise.
4273 * nat/linux-btrace.h: Likewise.
4274 * nat/linux-osdata.c: Likewise.
4275 * nat/linux-osdata.h: Likewise.
4276 * nat/linux-procfs.c: Likewise.
4277 * nat/linux-procfs.h: Likewise.
4278 * nat/linux-ptrace.c: Likewise.
4279 * nat/linux-ptrace.h: Likewise.
4280 * nat/mips-linux-watch.c: Likewise.
4281 * nat/mips-linux-watch.h: Likewise.
4282 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4283 (object file files): Reordered.
4284 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4285 of glibc_thread_db.h.
4287 2014-06-20 Gary Benson <gbenson@redhat.com>
4289 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4290 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4291 (i386_dr_low): Likewise.
4292 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4293 (i386_dr_low_set_addr): Likewise.
4294 (i386_dr_low_get_addr): Likewise.
4295 (i386_dr_low_can_set_control): Likewise.
4296 (i386_dr_low_set_control): Likewise.
4297 (i386_dr_low_get_control): Likewise.
4298 (i386_dr_low_get_status): Likewise.
4299 (i386_get_debug_register_length): Likewise.
4300 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4301 (i386_dr_low): Likewise.
4302 * nat/i386-dregs.c (i386-low.h): Remove include.
4303 (i386-nat.h): Likewise.
4304 (nat/i386-dregs.h): New include.
4305 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4306 (i386_dr_low_set_addr): Likewise.
4307 (i386_dr_low_get_addr): Likewise.
4308 (i386_dr_low_can_set_control): Likewise.
4309 (i386_dr_low_set_control): Likewise.
4310 (i386_dr_low_get_control): Likewise.
4311 (i386_dr_low_get_status): Likewise.
4312 (i386_get_debug_register_length): Likewise.
4313 (debug_hw_points): Likewise.
4315 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4317 * Makefile.in (SFILES): Add d-exp.y.
4318 (YYFILES): Add d-exp.c.
4319 (YYOBJ): Add d-exp.o.
4320 (local-maintainer-clean): Delete d-exp.c.
4321 * d-exp.y: New file.
4322 * d-lang.h (d_parse): New declaration.
4323 (d_error): New declaration.
4324 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4325 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4326 PREC_ORDER operators.
4327 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4329 2014-06-19 Yao Qi <yao@codesourcery.com>
4331 * gdbthread.h (any_running): Remove the declaration.
4332 * thread.c (any_running): Remove.
4334 2014-06-19 Yao Qi <yao@codesourcery.com>
4336 * gdbthread.h (struct thread_info) <state>: Change its type to
4337 'enum thread_state'. Update comments.
4339 2014-06-19 Pedro Alves <palves@redhat.com>
4341 * gdbthread.h (ALL_THREADS): Delete.
4342 (ALL_NON_EXITED_THREADS): New macro.
4343 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4344 instead of ALL_THREADS.
4345 * infrun.c (find_thread_needs_step_over)
4346 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4347 instead of ALL_THREADS.
4348 * record-btrace.c (record_btrace_open)
4349 (record_btrace_stop_recording, record_btrace_close)
4350 (record_btrace_is_replaying, record_btrace_resume)
4351 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4352 * remote.c (append_pending_thread_resumptions): Likewise.
4353 * thread.c (thread_apply_all_command): Likewise.
4355 2014-06-19 Gary Benson <gbenson@redhat.com>
4357 * i386-nat.c (i386_stopped_by_watchpoint):
4358 Use i386_dr_stopped_by_watchpoint.
4359 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4360 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4362 2014-06-19 Gary Benson <gbenson@redhat.com>
4364 * nat/i386-dregs.c: New file.
4365 * Makefile.in (i386-dregs.o): New rule.
4366 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4367 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4368 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4369 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4370 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4371 * config/i386/go32.mh (NATDEPFILES): Likewise.
4372 * config/i386/linux.mh (NATDEPFILES): Likewise.
4373 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4374 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4375 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4376 * i386-nat.h (debug_hw_points): New declaration.
4377 * i386-nat.c (breakpoint.h): Remove include.
4378 (command.h): Likewise.
4379 (target.h): Likewise.
4380 (gdb_assert.h): Likewise.
4381 (debug_hw_points): Made nonstatic.
4382 (debug_printf): Now in i386-dregs.c.
4383 (TARGET_HAS_DR_LEN_8): Likewise.
4384 (DR_CONTROL_SHIFT): Likewise.
4385 (DR_CONTROL_SIZE): Likewise.
4386 (DR_RW_EXECUTE): Likewise.
4387 (DR_RW_WRITE): Likewise.
4388 (DR_RW_READ): Likewise.
4389 (DR_RW_IORW): Likewise.
4390 (DR_LEN_1): Likewise.
4391 (DR_LEN_2): Likewise.
4392 (DR_LEN_4): Likewise.
4393 (DR_LEN_8): Likewise.
4394 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4395 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4396 (DR_ENABLE_SIZE): Likewise.
4397 (DR_LOCAL_SLOWDOWN): Likewise.
4398 (DR_GLOBAL_SLOWDOWN): Likewise.
4399 (DR_CONTROL_RESERVED): Likewise.
4400 (I386_DR_CONTROL_MASK): Likewise.
4401 (I386_DR_VACANT): Likewise.
4402 (I386_DR_LOCAL_ENABLE): Likewise.
4403 (I386_DR_GLOBAL_ENABLE): Likewise.
4404 (I386_DR_DISABLE): Likewise.
4405 (I386_DR_SET_RW_LEN): Likewise.
4406 (I386_DR_GET_RW_LEN): Likewise.
4407 (I386_DR_WATCH_HIT): Likewise.
4408 (i386_wp_op_t): Likewise.
4409 (i386_show_dr): Likewise.
4410 (i386_length_and_rw_bits): Likewise.
4411 (i386_insert_aligned_watchpoint): Likewise.
4412 (i386_remove_aligned_watchpoint): Likewise.
4413 (i386_handle_nonaligned_watchpoint): Likewise.
4414 (i386_update_inferior_debug_regs): Likewise.
4415 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4416 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4417 (i386_region_ok_for_watchpoint):
4418 Use i386_dr_region_ok_for_watchpoint.
4419 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4421 2014-06-19 Gary Benson <gbenson@redhat.com>
4423 * i386-nat.c (i386_insert_hw_breakpoint): Use
4424 i386_insert_watchpoint.
4425 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4427 2014-06-19 Gary Benson <gbenson@redhat.com>
4429 * i386-nat.c (i386_dr_show): Renamed to
4430 i386_show_dr and made static. All uses updated.
4431 (i386_dr_length_and_rw_bits): Renamed to
4432 i386_length_and_rw_bits and made static.
4434 (i386_dr_insert_aligned_watchpoint): Renamed to
4435 i386_insert_aligned_watchpoint and made static.
4437 (i386_dr_remove_aligned_watchpoint): Renamed to
4438 i386_remove_aligned_watchpoint and made static.
4440 (i386_dr_update_inferior_debug_regs): Renamed to
4441 i386_update_inferior_debug_regs and made static.
4443 * nat/i386-dregs.h (i386_dr_show): Removed.
4444 (i386_dr_length_and_rw_bits): Likewise.
4445 (i386_dr_insert_aligned_watchpoint): Likewise.
4446 (i386_dr_remove_aligned_watchpoint): Likewise.
4447 (i386_dr_update_inferior_debug_regs): Likewise.
4449 2014-06-19 Gary Benson <gbenson@redhat.com>
4451 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4452 * configure: Regenerate.
4453 * config.in: Likewise.
4454 * main.c (signal.h): New include.
4455 (setup_alternate_signal_stack): New function.
4456 (captured_main): Call the above.
4457 * cp-support.c (signal.h): New include.
4458 (catch_demangler_crashes): New flag.
4459 (SIGJMP_BUF): New define.
4460 (SIGSETJMP): Likewise.
4461 (SIGLONGJMP): Likewise.
4462 (gdb_demangle_jmp_buf): New static global.
4463 (gdb_demangle_attempt_core_dump): Likewise.
4464 (gdb_demangle_signal_handler): New function.
4465 (gdb_demangle): If catch_demangler_crashes is set, install the
4466 above signal handler before calling bfd_demangle, and restore
4467 the original signal handler afterwards. Display the offending
4468 symbol and call demangler_warning the first time a segmentation
4470 (_initialize_cp_support): New maint set/show command.
4472 2014-06-19 Gary Benson <gbenson@redhat.com>
4474 * utils.h (resource_limit_kind): New enum.
4475 (can_dump_core): New declaration.
4476 (warn_cant_dump_core): Likewise.
4477 (dump_core): Likewise.
4478 * utils.c (dump_core): Made nonstatic. Added new
4479 parameter "limit_kind".
4480 (can_dump_core): Made nonstatic. Moved printing code to...
4481 (warn_cant_dump_core): New function.
4482 (can_dump_core_warn): Likewise.
4483 (internal_vproblem): Replace calls to can_dump_core with
4484 calls to can_dump_core_warn. Supply new argument to each.
4486 2014-06-19 Gary Benson <gbenson@redhat.com>
4488 * utils.h (demangler_vwarning): New declaration.
4489 (demangler_warning): Likewise.
4490 * utils.c (struct internal_problem)
4491 <user_settable_should_quit>: New field.
4492 <user_settable_should_dump_core>: Likewise
4493 (internal_error_problem): Add values for above new fields.
4494 (internal_warning_problem): Likewise.
4495 (demangler_warning_problem): New static global.
4496 (demangler_vwarning): New function.
4497 (demangler_warning): Likewise.
4498 (add_internal_problem_command): Selectively add commands.
4499 (_initialize_utils): New internal problem command.
4500 * maint.c (maintenance_demangler_warning): New function.
4501 (_initialize_maint_cmds): New command.
4503 2014-06-18 Tom Tromey <tromey@redhat.com>
4505 * f-valprint.c (info_common_command_for_block): Update.
4506 * symtab.h (struct general_symbol_info) <common_block>: Now
4509 2014-06-18 Tom Tromey <tromey@redhat.com>
4511 * symtab.h (struct symtab) <blockvector>: Now const.
4512 * ada-lang.c (ada_add_global_exceptions): Update.
4513 * buildsym.c (augment_type_symtab): Update.
4514 * dwarf2read.c (dw2_lookup_symbol): Update.
4515 * jit.c (finalize_symtab): Update.
4516 * jv-lang.c (add_class_symtab_symbol): Update.
4517 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4519 * objfiles.c (objfile_relocate1): Update.
4520 * psymtab.c (lookup_symbol_aux_psymtabs)
4521 (maintenance_check_psymtabs): Update.
4522 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4524 * spu-tdep.c (spu_catch_start): Update.
4525 * symmisc.c (dump_symtab_1): Update.
4526 * symtab.c (lookup_global_symbol_from_objfile)
4527 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4528 (basic_lookup_transparent_type_quick)
4529 (basic_lookup_transparent_type, find_pc_sect_symtab)
4530 (find_pc_sect_line, search_symbols): Update.
4531 * block.c (find_block_in_blockvector): Make "bl" const.
4532 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4534 (blockvector_contains_pc): Make "bv" const.
4535 (block_for_pc_sect): Update.
4536 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4537 (blockvector_contains_pc): Update.
4538 * breakpoint.c (resolve_sal_pc): Update.
4539 * inline-frame.c (block_starting_point_at): Update.
4541 2014-06-18 Tom Tromey <tromey@redhat.com>
4543 * completer.c (complete_line): Make "line_buffer" const.
4544 * completer.h (complete_line): Update.
4546 2014-06-18 Tom Tromey <tromey@redhat.com>
4548 * symtab.c (add_macro_name): Remove unneeded cast.
4550 2014-06-18 Tom Tromey <tromey@redhat.com>
4552 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4553 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4555 2014-06-18 Tom Tromey <tromey@redhat.com>
4557 * probe.c (info_probes_for_ops): Make "arg" const.
4558 * probe.h (info_probes_for_ops): Update.
4560 2014-06-18 Tom Tromey <tromey@redhat.com>
4562 * varobj.c (varobj_create): Update.
4563 * valops.c (value_of_this): Update.
4564 * tracepoint.c (add_local_symbols, scope_info): Update.
4565 * symtab.h (struct general_symbol_info) <block>: Now const.
4566 * symtab.c (skip_prologue_sal)
4567 (default_make_symbol_completion_list_break_on)
4568 (skip_prologue_using_sal): Update.
4569 * stack.h (iterate_over_block_locals)
4570 (iterate_over_block_local_vars): Update.
4571 * stack.c (print_frame_args): Update.
4572 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4574 (get_selected_block): Make return type const.
4575 * python/py-frame.c (frapy_block): Update.
4576 * python/py-block.c (gdbpy_block_for_pc): Update.
4577 * p-exp.y (%union) <bval>: Now const.
4578 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4579 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4580 * m2-exp.y (%union) <bval>: Now const.
4581 * linespec.c (get_current_search_block): Make return type const.
4582 (create_sals_line_offset, find_label_symbols): Update.
4583 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4585 (block_starting_point_at): Make "block" const.
4586 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4587 (check_exception_resume): Update.
4588 * guile/scm-frame.c (gdbscm_frame_block): Update.
4589 * guile/scm-block.c (gdbscm_lookup_block): Update.
4590 * frame.h (get_frame_block): Update.
4591 (get_selected_block): Make return type const.
4592 * frame.c (frame_id_inner): Update.
4593 * f-valprint.c (info_common_command_for_block)
4594 (info_common_command): Update.
4595 * dwarf2loc.c (dwarf2_find_location_expression)
4596 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4597 (locexpr_describe_location_piece): Update.
4598 * c-exp.y (%union) <bval>: Now const.
4599 * breakpoint.c (resolve_sal_pc): Update.
4600 * blockframe.c (get_frame_block):Make return type const.
4601 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4602 (block_innermost_frame): Update.
4603 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4604 (block_for_pc, block_for_pc_sect): Update.
4605 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4607 (block_for_pc_sect, block_for_pc): Make return type const.
4608 * ax-gdb.c (gen_expr): Update.
4609 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4610 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4611 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4612 (ada_read_var_value): Update.
4613 * ada-exp.y (struct name_info) <block>: Now const.
4615 (block_lookup): Constify.
4617 2014-06-18 Gary Benson <gbenson@redhat.com>
4619 * nat/i386-dregs.h: New file.
4620 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4621 * i386-nat.h (i386-dregs.h): New include.
4622 (DR_FIRSTADDR): Now in i386-dregs.h.
4623 (DR_LASTADDR): Likewise.
4624 (DR_NADDR): Likewise.
4625 (DR_STATUS): Likewise.
4626 (DR_CONTROL): Likewise.
4627 (i386_debug_reg_state): Likewise.
4628 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4630 2014-06-18 Don Breazeal <donb@codesourcery.com>
4632 * breakpoint.c (set_longjmp_breakpoint): Call
4633 momentary_breakpoint_from_master with additional argument.
4634 (set_longjmp_breakpoint_for_call_dummy): Call
4635 momentary_breakpoint_from_master with additional argument.
4636 (set_std_terminate_breakpoint): Call
4637 momentary_breakpoint_from_master with additional argument.
4638 (momentary_breakpoint_from_master): Add argument to function
4639 definition and use it to initialize structure member flag.
4640 (clone_momentary_breakpoint): Call
4641 momentary_breakpoint_from_master with additional argument.
4642 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4643 member flags set in momentary_breakpoint_from_master.
4645 2014-06-18 Gary Benson <gbenson@redhat.com>
4647 * i386-nat.c (i386_show_dr): Renamed to
4648 i386_dr_show and made nonstatic. All uses updated.
4649 (i386_length_and_rw_bits): Renamed to
4650 i386_dr_length_and_rw_bits and made nonstatic.
4652 (i386_insert_aligned_watchpoint): Renamed to
4653 i386_dr_insert_aligned_watchpoint and made nonstatic.
4655 (i386_remove_aligned_watchpoint): Renamed to
4656 i386_dr_remove_aligned_watchpoint and made nonstatic.
4658 (i386_update_inferior_debug_regs): Renamed to
4659 i386_dr_update_inferior_debug_regs and made nonstatic.
4662 2014-06-18 Gary Benson <gbenson@redhat.com>
4664 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4665 (i386_dr_low_can_set_control): Likewise.
4666 (i386_dr_low_set_addr): Likewise.
4667 (i386_dr_low_set_control): Likewise.
4668 (i386_dr_low_get_addr): Likewise.
4669 (i386_dr_low_get_status): Likewise.
4670 (i386_dr_low_get_control): Likewise.
4671 (i386_insert_aligned_watchpoint): Use new macros.
4672 (i386_update_inferior_debug_regs): Likewise.
4673 (i386_stopped_data_address): Likewise.
4675 2014-06-18 Gary Benson <gbenson@redhat.com>
4677 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4678 New parameter. All uses updated.
4680 2014-06-18 Gary Benson <gbenson@redhat.com>
4682 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4685 2014-06-18 Gary Benson <gbenson@redhat.com>
4687 * i386-nat.c (debug_printf): New macro.
4688 (i386_get_debug_register_length): Likewise.
4689 (TARGET_HAS_DR_LEN_8): Use above macro.
4690 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4691 and printf_unfiltered. Use phex to format values.
4693 2014-06-18 Gary Benson <gbenson@redhat.com>
4695 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4698 2014-06-18 Gary Benson <gbenson@redhat.com>
4700 * i386-nat.c: Comment changes.
4702 2014-06-18 Gary Benson <gbenson@redhat.com>
4704 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4706 2014-06-18 Gary Benson <gbenson@redhat.com>
4708 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4709 (i386_insert_aligned_watchpoint): Likewise.
4710 (i386_remove_aligned_watchpoint): Likewise.
4711 (i386_handle_nonaligned_watchpoint): Likewise.
4713 2014-06-18 Gary Benson <gbenson@redhat.com>
4715 * i386-nat.c: Whitespace changes.
4717 2014-06-17 Samuel Bronson <naesten@gmail.com>
4719 * MAINTAINERS: Update Roland McGrath's email address.
4720 Thanks to Sergio Durigan Junior for pointing out that he left
4721 Red Hat a while ago, and giving me a current address.
4723 2014-06-17 Tom Tromey <tromey@redhat.com>
4725 * utils.h (savestring): Remove declaration.
4727 2014-06-17 Tom Tromey <tromey@redhat.com>
4729 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4731 2014-06-16 Keith Seitz <keiths@redhat.com>
4734 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4735 to update the varobj if inferior_ptid is null_ptid.
4737 2014-06-16 Tom Tromey <tromey@redhat.com>
4739 * target.h (struct target_ops) <to_info_proc>: Make parameter
4741 (target_info_proc): Update.
4742 * target.c (target_info_proc): Make "args" const.
4743 * procfs.c (procfs_info_proc): Update.
4744 * linux-tdep.c (linux_info_proc): Update.
4745 (linux_core_info_proc_mappings): Make "args" const.
4746 (linux_core_info_proc): Update.
4747 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4748 * gdbarch.c: Rebuild.
4749 * gdbarch.h: Rebuild.
4750 * corelow.c (core_info_proc): Update.
4752 2014-06-16 Tom Tromey <tromey@redhat.com>
4754 * target.h (struct target_ops) <to_disconnect>: Make parameter
4756 (target_disconnect): Update.
4757 * target.c (target_disconnect): Make "args" const.
4758 * target-delegates.c: Rebuild.
4759 * remote.c (remote_disconnect): Update.
4760 * record.h (record_disconnect): Update.
4761 * record.c (record_disconnect): Update.
4762 * inf-child.c (inf_child_disconnect): Update.
4764 2014-06-16 Tom Tromey <tromey@redhat.com>
4766 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4767 * target.c (debug_to_rcmd, default_rcmd): Update.
4768 * target-delegates.c: Rebuild.
4769 * remote.c (remote_rcmd): Update.
4770 * monitor.c (monitor_rcmd): Update.
4772 2014-06-16 Pedro Alves <palves@redhat.com>
4774 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4775 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4776 have OBJF_SHARED set.
4777 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4778 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4779 instead of OBJF_USERLOADED.
4780 * objfiles.h (OBJF_SHARED): Update comment.
4781 (userloaded_objfile_contains_address_p): Rename to ...
4782 (shared_objfile_contains_address_p): ... this, and update
4784 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4786 (remove_symbol_file_command): Skip objfiles that don't have
4789 2014-06-16 Tom Tromey <tromey@redhat.com>
4791 * minsyms.h (prim_record_minimal_symbol)
4792 (prim_record_minimal_symbol_and_info): Update comments.
4794 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4796 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4797 or --without-guile, according to how GDB was built.
4799 2014-06-13 Tom Tromey <tromey@redhat.com>
4801 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4803 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4805 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4807 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4808 help_list.Pass all_commands, not -1, to help_list.
4809 * cli/cli-dump.c (dump_command, append_command)
4810 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4811 (binary_dump_command, binary_append_command): Pass all_commands,
4812 not -1, to help_list.
4813 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4815 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4817 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4819 * top.c (set_history): Pass all_commands, not -1, to help_list.
4820 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4821 all_commands, not -1, to help_list.
4822 * symfile.c (overlay_command): Pass all_commands, not -1, to
4824 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4826 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4828 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4830 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4831 not -1, to help_list.
4832 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4833 not -1, to help_list.
4834 * maint.c (maintenance_command, maintenance_info_command)
4835 (maintenance_print_command, maintenance_set_cmd): Pass
4836 all_commands, not -1, to help_list.
4837 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4839 * language.c (set_check): Pass all_commands, not -1, to help_list.
4840 * infcmd.c (unset_command): Pass all_commands, not -1, to
4842 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4844 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4846 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4848 * breakpoint.c (save_command): Pass all_commands, not -1, to
4850 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4851 all_commands, not -1, to help_list.
4853 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4855 * regcache.c (struct register_to_invalidate): New structure.
4856 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4858 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4860 2014-06-12 Yao Qi <yao@codesourcery.com>
4862 * varobj.c (varobj_get_num_children): Call
4863 varobj_is_dynamic_p.
4864 (varobj_list_children): Likewise.
4865 (varobj_update): Likewise. Update comments.
4867 2014-06-12 Yao Qi <yao@codesourcery.com>
4869 * varobj.c (varobj_pretty_printed_p): Rename to ...
4870 (varobj_is_dynamic_p): ... this. New function.
4871 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4872 (varobj_is_dynamic_p): Declare.
4873 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4874 (mi_print_value_p, varobj_update_one): Likewise.
4876 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4877 Yao Qi <yao@codesourcery.com>
4879 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4880 (varobj_get_iterator): Wrap up code for pretty-printer by
4881 "#if HAVE_PYTHON" and "#endif".
4882 (update_dynamic_varobj_children): Likewise.
4884 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4885 Yao Qi <yao@codesourcery.com>
4887 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4888 gdb_python_initialized is false. Move some code from varobj.c.
4889 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4890 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4891 (struct varobj_item): Moved to varobj-iter.h".
4892 (varobj_clear_saved_item): New function.
4893 (update_dynamic_varobj_children): Move python-related code to
4895 (free_variable): Call varobj_clear_saved_item and
4898 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4899 Yao Qi <yao@codesourcery.com>
4901 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4902 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4903 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4904 (py-varobj.o): New rule.
4905 * python/py-varobj.c: New file.
4906 * python/python-internal.h (py_varobj_get_iterator): Declare.
4907 * varobj-iter.h: New file.
4908 * varobj.c: Include "varobj-iter.h"
4909 (struct varobj) <child_iter>: Change its type from "PyObject *"
4910 to "struct varobj_iter *".
4911 <saved_item>: Likewise.
4912 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4913 [HAVE_PYTHON] (varobj_get_iterator): New function.
4914 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4915 python-specific code to python/py-varobj.c.
4916 (install_visualizer): Call varobj_iter_delete instead of
4918 * varobj.h (varobj_ensure_python_env): Declare.
4920 2014-06-12 Yao Qi <yao@codesourcery.com>
4922 * varobj.c (struct varobj_item): New structure.
4923 (create_child_with_value): Update declaration.
4924 (varobj_add_child): Replace arguments 'name' and 'value' with
4925 'item'. All callers updated.
4926 (install_dynamic_child): Likewise.
4927 (update_dynamic_varobj_children): Likewise.
4928 (varobj_add_child): Likewise.
4929 (create_child_with_value): Likewise.
4931 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4933 * NEWS: Create a new section for the next release branch.
4934 Rename the section of the current branch, now that it has
4937 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4939 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4940 * version.in: Bump version to 7.8.50.DATE-cvs.
4942 2014-06-11 Pedro Alves <palves@redhat.com>
4945 * ser-mingw.c (net_windows_socket_check_pending): New function.
4946 (net_windows_select_thread): Ignore spurious wakeups. Use
4947 net_windows_socket_check_pending.
4948 (net_windows_wait_handle): Check for pending events with
4949 ioctlsocket, through net_windows_socket_check_pending, instead of
4950 checking the socket's event.
4952 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4954 * python/python-internal.h (gdb_PyObject_GetAttrString)
4955 (gdb_PyObject_HasAttrString): New inline function definitions.
4956 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4957 char * of the second argument to PyObject_GetAttrString.
4959 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4961 * serial.c (serial_write): Fix index of character to be printed
4962 in call to serial_logchar when serial debug traces are enabled.
4964 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4966 * gdbtypes (resolve_dynamic_range): Add function description.
4968 2014-06-09 Pedro Alves <palves@redhat.com>
4970 * linux-nat.c (linux_child_follow_fork): Initialize status with
4971 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4972 inner block. Only pass the signal to PTRACE_DETACH if in pass
4975 2014-06-09 Gary Benson <gbenson@redhat.com>
4977 * common/signals.c (gdb_signal_from_host): Reorder to separate
4978 the always-available ANSI-standard signals from the signals that
4980 (do_gdb_signal_to_host): Likewise.
4981 * proc-events.c (signal_table): Likewise.
4983 2014-06-08 Hui Zhu <hui@codesourcery.com>
4985 * common/linux-ptrace.c (linux_disable_event_reporting): New
4987 * common/linux-ptrace.h (linux_disable_event_reporting): New
4989 * linux-nat.c (linux_child_follow_fork): Do a single step before
4992 2014-06-07 Keith Seitz <keiths@redhat.com>
4996 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4997 from symbol_matches_domain in symtab.c. All local callers
4998 of symbol_matches_domain updated.
4999 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5000 search STRUCT_DOMAIN.
5001 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5002 independently. standard_lookup will do that automatically.
5003 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5004 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5005 (cp_lookup_symbol_in_namespace): Likewise.
5006 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5007 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5008 may return a STRUCT_DOMAIN match.
5009 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5010 * cp-support.c: Include language.h.
5011 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5013 * psymtab.c (match_partial_symbol): Compare the requested
5014 domain with the symbol's domain directly.
5015 (lookup_partial_symbol): Likewise.
5016 * symtab.c (lookup_symbol_in_language): Explain when/why
5017 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5018 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5019 appropriate languages.
5020 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5021 and moved to ada-lang.c
5022 (lookup_block_symbol): Explain that this function only returns
5023 symbol matching the requested DOMAIN.
5024 Compare the requested domain with the symbol's domain directly.
5025 (iterate_over_symbols): Compare the requested domain with the
5026 symbol's domain directly.
5027 * symtab.h (symbol_matches_domain): Remove.
5029 2014-06-06 Doug Evans <xdje42@gmail.com>
5031 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5032 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5033 (gdbscm_guile_version_is_at_least): Declare.
5034 (gdbscm_scm_string_to_int): Declare.
5035 * guile/guile.c (gdbscm_guile_major_version): New global.
5036 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5037 (guile_datadir): New static global.
5038 (gdbscm_guile_data_directory): New function.
5039 (initialize_scheme_side): Update.
5040 (misc_guile_functions): Add guile-data-directory.
5041 (initialize_gdb_module): Fetch guile version number.
5042 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5043 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5044 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5045 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5047 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5048 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5049 * guile/scm-value.c (gdbscm_value_to_string): Only call
5050 scm_port_conversion_strategy if Guile version >= 2.0.6.
5052 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5054 * main.c (print_gdb_help): Add -q and --silent.
5056 2014-06-06 Gary Benson <gbenson@redhat.com>
5058 * common/signals.c: Remove preprocessor conditionals for
5059 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5060 SIGSEGV and SIGTERM.
5061 * proc-events.c: Likewise.
5063 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5065 * symfile.c (symfile_free_objfile): Remove restriction to
5067 * symfile-mem.c (symbol_file_add_from_memory): Call
5068 add_target_sections_of_objfile.
5070 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5072 * guile/scm-value.c (gdbscm_history_append_x): Use
5073 'vlscm_get_value_smob_arg_unsafe' instead of
5074 'vlscm_scm_to_value'.
5076 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5079 * utils.c (printchar): Don't escape at all if quoter is NUL.
5080 Update function documentation to clarify effect of parameter
5082 * remote.c (escape_buffer): Pass '\\' as the quoter to
5083 fputstrn_unfiltered.
5084 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5085 generate the output.
5086 (mi_solib_unloaded): Same.
5088 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5090 * development.sh: Delete.
5091 * Makefile.in (config.status): Adjust dependency on development.sh.
5092 * configure.ac: Adjust development.sh source call.
5093 * configure: Regenerate.
5095 2014-06-04 Doug Evans <xdje42@gmail.com>
5097 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5098 is_scheme_bkpt, spec.
5099 (bpscm_make_breakpoint_smob): Initialize new members.
5100 (gdbscm_create_breakpoint_x): Split into two ...
5101 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5102 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5103 (scheme_function breakpoint_functions): Update.
5104 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5105 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5106 register-breakpoint!.
5108 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5111 * mem-break.c (z_type_supported): Return zero if
5112 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5114 2014-06-04 Tom Tromey <tromey@redhat.com>
5116 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5117 value_from_contents_and_address_unresolved.
5118 (ada_template_to_fixed_record_type_1): Likewise.
5119 (ada_which_variant_applies): Likewise.
5120 * value.h (value_from_contents_and_address_unresolved): Declare.
5121 * value.c (value_from_contents_and_address_unresolved): New
5123 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5124 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5125 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5127 2014-06-04 Tom Tromey <tromey@redhat.com>
5129 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5131 2014-06-04 Tom Tromey <tromey@redhat.com>
5133 * procfs.c (procfs_attach): Make "args" const.
5134 * windows-nat.c (windows_attach): Make "args" const.
5135 * nto-procfs.c (procfs_attach): Make "args" const.
5136 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5137 * go32-nat.c (go32_attach): Make "args" const.
5138 * gnu-nat.c (gnu_attach): Make "args" const.
5139 * darwin-nat.c (darwin_attach): Make "args" const.
5140 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5141 * linux-nat.c (linux_nat_attach): Make "args" const.
5142 * remote.c (extended_remote_attach_1, extended_remote_attach):
5144 * target.h (struct target_ops) <to_attach>: Make "args" const.
5145 (find_default_attach): Likewise.
5146 * utils.c (parse_pid_to_attach): Make "args" const.
5147 * utils.h (parse_pid_to_attach): Update.
5149 2014-06-04 Tom Tromey <tromey@redhat.com>
5151 * target-delegates.c: Rebuild.
5152 * target.c (default_thread_address_space): New function.
5153 (target_thread_address_space): Simplify.
5154 * target.h (struct target_ops) <to_thread_address_space>: Add
5155 TARGET_DEFAULT_FUNC.
5157 2014-06-04 Doug Evans <xdje42@gmail.com>
5159 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5161 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5163 * record-btrace.c: Include event-loop.h and inf-loop.h.
5164 (record_btrace_resume_exec_dir)
5165 (record_btrace_async_inferior_event_handler)
5166 (record_btrace_handle_async_inferior_event): New.
5167 (record_btrace_open): Create async event handler.
5168 (record_btrace_close): Delete async event handler.
5169 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5170 Mark async event handler.
5171 (record_btrace_execution_direction): New.
5172 (init_record_btrace_ops): Initialize to_execution_direction.
5174 2014-06-03 Doug Evans <xdje42@gmail.com>
5176 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5177 (gdbscm_make_parameter): Ditto.
5179 2014-06-03 Doug Evans <dje@google.com>
5181 * exec.c (exec_close_1): Call clear_section_table instead of
5182 resize_section_table.
5183 (clear_section_table): New function.
5184 (resize_section_table): Make static. Rename arg num_added to
5186 * exec.h (clear_section_table): Declare.
5187 (resize_section_table): Delete.
5188 * progspace.c (release_program_space): Call clear_section_table
5189 instead of resize_section_table.
5191 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5193 * NEWS (Python Scripting): Add entry about the new xmethods
5196 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5198 * python/py-xmethods.c: New file.
5199 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5200 (objfpy_dealloc): XDECREF on the new xmethods field.
5201 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5203 (objfpy_get_xmethods): New function.
5204 (objfile_getset): New entry 'xmethods'.
5205 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5206 (pspy_dealloc): XDECREF on the new xmethods field.
5207 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5209 (pspy_get_xmethods): New function.
5210 (pspace_getset): New entry 'xmethods'.
5211 * python/python-internal.h: Add declarations for new functions.
5212 * python/python.c (_initialize_python): Invoke
5213 gdbpy_initialize_xmethods.
5214 * python/lib/gdb/__init__.py (xmethods): New
5216 * python/lib/gdb/xmethod.py: New file.
5217 * python/lib/gdb/command/xmethods.py: New file.
5219 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5221 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5222 best match method returned by find_overload_match is an xmethod.
5223 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5224 the best matching operator returned by find_overload_match is an
5226 * valops.c: #include "extension.h".
5227 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5228 Return void. The list of matching source methods is returned in
5229 "fn_list" and a vector of matching debug method workers is
5230 returned in "xm_worker_vec". Update all callers.
5231 (value_find_oload_method_list): Likewise.
5232 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5233 non-NULL, then the index of the best matching method in this
5234 vector is returned. Update all callers.
5235 (find_overload_match): Include xmethods while performing overload
5238 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5240 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5241 * extension-priv.h (struct extension_language_ops): Add the
5243 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5244 get_matching_xmethod_workers, get_xmethod_argtypes,
5245 invoke_xmethod, free_xmethod_worker,
5246 free_xmethod_worker_vec): New functions.
5247 * extension.h: #include "common/vec.h".
5248 New function declarations.
5249 (struct xmethod_worker): New struct.
5250 (VEC (xmethod_worker_ptr)): New vector type.
5251 (xmethod_worker_ptr): New typedef.
5252 (xmethod_worker_vec): Likewise.
5253 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5255 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5256 (struct builtin_type): New field "xmethod".
5257 * valarith.c (value_ptradd): Assert that the value argument is not
5259 * valops.c (value_must_coerce_to_target): Return 0 for
5260 lval_xcallable values.
5261 * value.c (struct value): New field XM_WORKER in the field
5263 (value_address, value_raw_address): Return 0 for lval_xcallable
5265 (set_value_address): Assert that the value is not an
5267 (value_free): Free the associated xmethod worker when freeing
5268 lval_xcallable values.
5269 (set_value_component_location): Assert that the WHOLE value is not
5271 (value_of_xmethod, call_xmethod): New functions.
5272 * value.h: Declare "struct xmethod_worker".
5273 Declare new functions value_of_xmethod, call_xmethod.
5275 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5276 Pedro Alves <palves@redhat.com>
5278 PR breakpoints/17000
5279 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5280 New function, extracted from software_breakpoint_inserted_here_p.
5281 (software_breakpoint_inserted_here_p): Replace factored out code
5282 by call to find_non_raw_software_breakpoint_inserted_here.
5283 (bp_target_info_copy_insertion_state): New function.
5284 (bkpt_insert_location): Handle the case of a single-step
5285 breakpoint already inserted at the same address.
5286 (bkpt_remove_location): Handle the case of a single-step
5287 breakpoint still inserted at the same address.
5288 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5289 breakpoint already inserted at the same address.
5290 (deprecated_remove_raw_breakpoint): Handle the case of a
5291 non-raw breakpoint still inserted at the same address.
5292 (find_single_step_breakpoint): New function, extracted from
5293 single_step_breakpoint_inserted_here_p.
5294 (find_single_step_breakpoint): New function,
5295 factored out from single_step_breakpoint_inserted_here_p.
5296 (single_step_breakpoint_inserted_here_p): Reimplement.
5298 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5300 Pushed by Joel Brobecker <brobecker@adacore.com>
5301 * source.c (show_substitute_path_command): Fix display of matching
5304 2014-06-03 Gary Benson <gbenson@redhat.com>
5306 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5308 2014-06-02 Doug Evans <xdje42@gmail.com>
5310 Add parameter support for Guile.
5311 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5312 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5313 (scm-param.o): New rule.
5314 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5315 (gdbscm_misc_error): Declare.
5316 (gdbscm_canonicalize_command_name): Declare.
5317 (gdbscm_scm_to_host_string): Declare.
5318 (gdbscm_scm_from_host_string): Declare.
5319 (gdbscm_initialize_parameters): Declare.
5320 * guile/guile.c (initialize_gdb_module): Call
5321 gdbscm_initialize_parameters.
5322 * guile/lib/gdb.scm: Export parameter symbols.
5323 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5324 cmdscm_canonicalize_name and made public. All callers updated.
5325 * guile/scm-exception.c (gdbscm_misc_error): New function.
5326 * guile/scm-param.c: New file.
5327 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5328 (gdbscm_scm_to_host_string): New function.
5329 (gdbscm_scm_from_host_string): New function.
5330 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5332 2014-06-02 Doug Evans <xdje42@gmail.com>
5334 Add command support for Guile.
5335 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5336 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5337 (scm-cmd.o): New rule.
5338 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5339 (gdbscm_user_error_p): Declare.
5340 (gdbscm_parse_command_name): Declare.
5341 (gdbscm_valid_command_class_p): Declare.
5342 (gdbscm_initialize_commands): Declare.
5343 * guile/guile.c (initialize_gdb_module): Call
5344 gdbscm_initialize_commands.
5345 * guile/lib/gdb.scm: Export command symbols.
5346 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5347 (throw-user-error): New function.
5348 * guile/scm-cmd.c: New file.
5349 * guile/scm-exception.c (user_error_symbol): New static global.
5350 (gdbscm_user_error_p): New function.
5351 (gdbscm_initialize_exceptions): Set user_error_symbol.
5352 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5354 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5356 * top.c (command_loop): Handle comments here...
5357 (command_line_input): ... not here.
5359 2014-06-02 Doug Evans <xdje42@gmail.com>
5361 Add progspace support for Guile.
5362 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5363 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5364 (scm-progspace.o): New rule.
5365 * guile/guile-internal.h (pspace_smob): New typedef.
5366 (psscm_pspace_smob_pretty_printers): Declare.
5367 (psscm_pspace_smob_from_pspace): Declare.
5368 (psscm_scm_from_pspace): Declare.
5369 * guile/guile.c (initialize_gdb_module): Call
5370 gdbscm_initialize_pspaces.
5371 * guile/lib/gdb.scm: Export progspace symbols.
5372 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5374 (append-pretty-printer!): Ditto.
5375 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5377 * guile/scm-progspace.c: New file.
5379 2014-06-03 Alan Modra <amodra@gmail.com>
5381 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5382 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5384 2014-06-02 Doug Evans <dje@google.com>
5386 Add support for skeletonless type units.
5387 * dwarf2read.c (struct dwarf2_per_objfile): New member
5388 n_allocated_type_units.
5389 (struct dwarf2_per_objfile) <tu_stats>: New member
5390 nr_all_type_units_reallocs.
5391 (create_signatured_type_table_from_index): Initialize
5392 n_allocated_type_units
5393 (create_all_type_units): Ditto.
5394 (add_type_unit): Move up in file. New arg slot.
5395 All callers updated. Increase space for all_type_units more
5397 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5398 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5399 (lookup_dwp_signatured_type): Ditto.
5400 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5401 All callers updated.
5402 (build_type_psymtabs_1): Leave type_unit_groups as
5403 NULL if no TUs present.
5404 (print_tu_stats): New function.
5405 (process_skeletonless_type_unit): New function.
5406 (process_dwo_file_for_skeletonless_type_units): New
5408 (process_skeletonless_type_units): New function.
5409 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5410 Call print tu_stats if debugging enabled.
5412 2014-06-02 Pedro Alves <palves@redhat.com>
5414 * breakpoint.c (build_target_command_list): Don't build a command
5415 list if we have any duplicate location that isn't a dprintf.
5417 2014-06-02 Pedro Alves <palves@redhat.com>
5419 * breakpoint.c (dprintf_breakpoint_hit): New function.
5420 (initialize_breakpoint_ops): Install it as dprintf's
5421 breakpoint_hit method.
5423 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5425 * source.c (substitute_path_rule_matches): Simplify using
5426 filename_ncmp instead of FILENAME_CMP.
5428 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5430 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5432 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5434 * configure.ac: When Guile is available, check for the
5435 availability of 'scm_new_smob'.
5436 * configure, config.h.in: Regenerate.
5437 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5440 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5442 * frame.c (struct frame_info): Add stop_string field.
5443 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5444 (get_prev_frame_always): Old content moved into
5445 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5446 TRY_CATCH, handle MEMORY_ERROR exceptions.
5447 (frame_stop_reason_string): New function definition.
5448 * frame.h (unwind_stop_reason_to_string): Extend comment to
5449 mention frame_stop_reason_string.
5450 (frame_stop_reason_string): New function declaration.
5451 * stack.c (frame_info): Switch to frame_stop_reason_string.
5452 (backtrace_command_1): Switch to frame_stop_reason_string.
5453 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5454 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5455 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5457 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5459 * frame.c (frame_stop_reason_string): Rename to ...
5460 (unwind_stop_reason_to_string): this.
5461 * frame.h (frame_stop_reason_string): Rename to ...
5462 (unwind_stop_reason_to_string): this.
5463 * stack.c (frame_info): Update call to frame_stop_reason_string.
5464 (backtrace_command_1): Likewise.
5465 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5466 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5468 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5470 * frame.c (remove_prev_frame): New function.
5471 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5474 2014-05-29 Pedro Alves <palves@redhat.com>
5476 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5477 and make it const. When a single-step decays to a continue,
5478 clear 'step', not 'hw_step'. Pass whether the caller wanted
5479 to step to user_visible_resume_ptid, not what we ask the
5482 2014-05-29 Pedro Alves <palves@redhat.com>
5484 * infrun.c (process_event_stop_test, handle_step_into_function)
5485 (handle_step_into_function_backward): Adjust.
5486 Don't set the even thread's stop_step and call stop_waiting before
5487 calling end_stepping_range. Instead do that ...
5488 (end_stepping_range): ... here. Take an ecs pointer parameter.
5490 2014-05-29 Pedro Alves <palves@redhat.com>
5492 * infrun.c (stop_stepping): Rename to ...
5493 (stop_waiting): ... this.
5494 (proceed): Update comment.
5495 (process_event_stop_test, handle_inferior_event)
5496 (handle_signal_stop, handle_step_into_function)
5497 (handle_step_into_function_backward): Update.
5499 2014-05-29 Pedro Alves <palves@redhat.com>
5501 * infcall.c (run_inferior_call): Don't check whether the current
5502 thread is running after the proceed call.
5504 2014-05-29 Pedro Alves <palves@redhat.com>
5505 Tom Tromey <tromey@redhat.com>
5507 * NEWS: Mention "maint set target-async", "set mi-async", and that
5508 background execution commands are now always available.
5509 * target.h (target_async_permitted): Update comment.
5510 * target.c (target_async_permitted, target_async_permitted_1):
5512 (set_target_async_command): Rename to ...
5513 (maint_set_target_async_command): ... this.
5514 (show_target_async_command): Rename to ...
5515 (maint_show_target_async_command): ... this.
5516 (_initialize_target): Adjust.
5517 * infcmd.c (prepare_execution_command): Make extern.
5518 * inferior.h (prepare_execution_command): Declare.
5519 * infrun.c (set_observer_mode): Leave target async alone.
5520 * mi/mi-interp.c (mi_interpreter_init): Install
5521 mi_on_sync_execution_done as sync_execution_done observer.
5522 (mi_on_sync_execution_done): New function.
5523 (mi_execute_command_input_handler): Don't print the prompt if we
5524 just started a synchronous command with an async target.
5525 (mi_on_resume): Check sync_execution before printing prompt.
5526 * mi/mi-main.h (mi_async_p): Declare.
5527 * mi/mi-main.c: Include gdbcmd.h.
5528 (mi_async_p): New function.
5529 (mi_async, mi_async_1): New globals.
5530 (set_mi_async_command, show_mi_async_command, mi_async): New
5532 (exec_continue): Call prepare_execution_command.
5533 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5534 (mi_execute_async_cli_command): Use mi_async_p.
5535 (_initialize_mi_main): Install "set mi-async". Make
5536 "target-async" a deprecated alias.
5538 2014-05-29 Pedro Alves <palves@redhat.com>
5540 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5541 (_initialize_cli_interp): Adjust.
5542 * event-loop.c: Include "observer.h".
5543 (start_event_loop): Notify 'command_error' observers instead of
5544 calling display_gdb_prompt. Remove FIXME comment.
5545 * event-top.c (display_gdb_prompt): Remove call into the
5547 * inf-loop.c: Include "observer.h".
5548 (inferior_event_handler): Notify 'command_error' observers instead
5549 of calling display_gdb_prompt.
5550 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5551 observers instead of calling display_gdb_prompt.
5552 * interps.c (interp_set): Don't call display_gdb_prompt.
5553 (current_interp_display_prompt_p): Delete.
5554 * interps.h (interp_prompt_p): Delete declaration.
5555 (interp_prompt_p_ftype): Delete.
5556 (struct interp_procs) <prompt_proc_p>: Delete field.
5557 (current_interp_display_prompt_p): Delete declaration.
5558 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5559 (_initialize_mi_interp): Adjust.
5560 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5561 'command_error' observers.
5562 (tui_on_sync_execution_done, tui_on_command_error): New
5564 (tui_display_prompt_p): Delete.
5565 (_initialize_tui_interp): Adjust.
5567 2014-05-29 Pedro Alves <palves@redhat.com>
5570 * cli/cli-interp.c: Include infrun.h and observer.h.
5571 (cli_uiout, cli_interp): New globals.
5572 (cli_on_signal_received, cli_on_end_stepping_range)
5573 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5575 (cli_interpreter_init): Install them as 'end_stepping_range',
5576 'signal_received' 'signal_exited', 'exited' and 'no_history'
5578 (_initialize_cli_interp): Remove cli_interp local.
5579 * infrun.c (handle_inferior_event): Call the several stop reason
5580 observers instead of printing the stop reason directly.
5581 (end_stepping_range): New function.
5582 (print_end_stepping_range_reason, print_signal_exited_reason)
5583 (print_exited_reason, print_signal_received_reason)
5584 (print_no_history_reason): Make static, and add an uiout
5585 parameter. Print to that instead of to CURRENT_UIOUT.
5586 * infrun.h (print_end_stepping_range_reason)
5587 (print_signal_exited_reason, print_exited_reason)
5588 (print_signal_received_reason print_no_history_reason): New
5590 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5592 <cli_uiout>: New field.
5593 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5594 uiout for CLI output. Install 'signal_received',
5595 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5597 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5598 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5599 (mi_on_no_history): New functions.
5600 (ui_out_free_cleanup): Delete function.
5601 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5602 instead use the one already stored in the MI interpreter data.
5603 (mi_ui_out): Adjust.
5604 * tui/tui-interp.c: Include infrun.h and observer.h.
5605 (tui_interp): New global.
5606 (tui_on_signal_received, tui_on_end_stepping_range)
5607 (tui_on_signal_exited, tui_on_exited)
5608 (tui_on_no_history): New functions.
5609 (tui_init): Install them as 'end_stepping_range',
5610 'signal_received' 'signal_exited', 'exited' and 'no_history'
5612 (_initialize_tui_interp): Delete tui_interp local.
5614 2014-05-29 Pedro Alves <palves@redhat.com>
5617 * linux-nat.c (linux_nat_resume_callback): Rename the second
5618 parameter to 'except'. Skip LP if it points to EXCEPT.
5619 (linux_nat_resume): Don't mark the event lwp as not stopped
5620 before resuming sibling lwps. Instead ask
5621 linux_nat_resume_callback to skip the event lwp. Mark it as not
5622 stopped after actually resuming it.
5623 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5625 (wait_lwp): Mark the lwp as stopped here.
5626 (stop_wait_callback): Mark the lwp as not stopped right after
5627 resuming it. Don't mark lwps as stopped here.
5628 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5629 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5631 2014-05-29 Pedro Alves <palves@redhat.com>
5634 * infrun.c (resume): Determine how much to resume depending on
5635 whether the caller wanted a step, not whether we can hardware step
5636 the target. Mark all threads that we intend to run as running,
5637 unless we're calling an inferior function.
5638 (normal_stop): If the thread is running an infcall, don't finish
5640 * target.c (target_resume): Don't mark threads as running here.
5642 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5644 * serial.c (_initialize_serial): Remove support for
5645 the "set remotebaud" and "show remotebaud" commands.
5646 * NEWS: Add entry documenting the removal of that command.
5648 2014-05-28 Yao Qi <yao@codesourcery.com>
5650 * charset.c: Fix typo in comments.
5652 2014-05-27 Gary Benson <gbenson@redhat.com>
5654 * utils.c (internal_vproblem): Prompt for a bug report.
5656 2014-05-26 Andy Wingo <wingo@igalia.com>
5658 * guile/scm-arch.c (arscm_mark_arch_smob):
5659 * guile/scm-block.c (bkscm_mark_block_smob)
5660 (bkscm_mark_block_syms_progress_smob):
5661 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5662 * guile/scm-exception.c (exscm_mark_exception_smob):
5663 * guile/scm-frame.c (frscm_mark_frame_smob):
5664 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5665 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5666 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5667 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5668 (ppscm_mark_pretty_printer_worker_smob):
5669 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5670 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5671 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5672 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5674 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5677 2014-05-26 Andy Wingo <wingo@igalia.com>
5678 Doug Evans <xdje42@gmail.com>
5680 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5681 empty_base_class. All uses updated.
5682 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5683 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5685 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5686 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5687 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5688 (gdbscm_gsmob_has_property_p, add_property_name)
5689 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5690 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5691 (gdb-object-has-property?, gdb-object-properties): Remove.
5692 (gdb-object-kind): Renamed from gsmob-kind.
5694 2014-05-26 Andy Wingo <wingo@igalia.com>
5696 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5697 * configure: Regenerate.
5699 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5701 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5703 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5705 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5706 (replay_memory_access_read_only, replay_memory_access_read_write)
5707 (replay_memory_access_types, replay_memory_access)
5708 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5709 (cmd_set_record_btrace, cmd_show_record_btrace)
5710 (cmd_show_replay_memory_access): New.
5711 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5712 (record_btrace_remove_breakpoint): Replace
5713 record_btrace_allow_memory_access with replay_memory_access.
5714 (_initialize_record_btrace): Add commands.
5715 * NEWS: Announce it.
5717 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5719 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5721 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5723 * MAINTAINERS (Write After Approval): Move self back from
5726 2014-05-22 Pedro Alves <palves@redhat.com>
5728 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5729 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5730 (disable_randomization, enum exec_direction_kind)
5731 (execution_direction, stop_registers, start_remote)
5732 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5733 (wait_for_inferior, normal_stop, get_last_target_status)
5734 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5735 (insert_step_resume_breakpoint_at_sal)
5736 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5737 (set_step_info, print_stop_event, signal_stop_state)
5738 (signal_print_state, signal_pass_state, signal_stop_update)
5739 (signal_print_update, signal_pass_update)
5740 (update_signals_program_target, clear_exit_convenience_vars)
5741 (displaced_step_dump_bytes, update_observer_mode)
5742 (signal_catch_update, gdb_signal_from_command): Move
5744 * infrun.h: ... to this new file.
5745 * amd64-tdep.c: Include infrun.h.
5746 * annotate.c: Include infrun.h.
5747 * arch-utils.c: Include infrun.h.
5748 * arm-linux-tdep.c: Include infrun.h.
5749 * arm-tdep.c: Include infrun.h.
5750 * break-catch-sig.c: Include infrun.h.
5751 * breakpoint.c: Include infrun.h.
5752 * common/agent.c: Include infrun.h instead of inferior.h.
5753 * corelow.c: Include infrun.h.
5754 * event-top.c: Include infrun.h.
5755 * go32-nat.c: Include infrun.h.
5756 * i386-tdep.c: Include infrun.h.
5757 * inf-loop.c: Include infrun.h.
5758 * infcall.c: Include infrun.h.
5759 * infcmd.c: Include infrun.h.
5760 * infrun.c: Include infrun.h.
5761 * linux-fork.c: Include infrun.h.
5762 * linux-nat.c: Include infrun.h.
5763 * linux-thread-db.c: Include infrun.h.
5764 * monitor.c: Include infrun.h.
5765 * nto-tdep.c: Include infrun.h.
5766 * procfs.c: Include infrun.h.
5767 * record-btrace.c: Include infrun.h.
5768 * record-full.c: Include infrun.h.
5769 * remote-m32r-sdi.c: Include infrun.h.
5770 * remote-mips.c: Include infrun.h.
5771 * remote-notif.c: Include infrun.h.
5772 * remote-sim.c: Include infrun.h.
5773 * remote.c: Include infrun.h.
5774 * reverse.c: Include infrun.h.
5775 * rs6000-tdep.c: Include infrun.h.
5776 * s390-linux-tdep.c: Include infrun.h.
5777 * solib-irix.c: Include infrun.h.
5778 * solib-osf.c: Include infrun.h.
5779 * solib-svr4.c: Include infrun.h.
5780 * target.c: Include infrun.h.
5781 * top.c: Include infrun.h.
5782 * windows-nat.c: Include infrun.h.
5783 * mi/mi-interp.c: Include infrun.h.
5784 * mi/mi-main.c: Include infrun.h.
5785 * python/py-threadevent.c: Include infrun.h.
5787 2014-05-22 Pedro Alves <palves@redhat.com>
5789 * infrun.c (handle_inferior_event): Store the exit code for
5790 --return-child-result here, instead of ...
5791 (print_exited_reason): ... here.
5793 2014-05-21 Pedro Alves <palves@redhat.com>
5796 * gdbthread.h (struct thread_control_state): New field
5798 * infrun.c (follow_fork): Copy the new thread control field to the
5800 (clear_proceed_status_thread): Clear the new thread control field.
5801 (proceed): Set the new thread control field.
5802 * interps.h (command_interp): Declare.
5803 * interps.c (command_interpreter): New global.
5804 (command_interp): New function.
5805 (interp_exec): Set `command_interpreter' while here.
5806 * cli-out.c (cli_uiout_dtor): New function.
5807 (cli_ui_out_impl): Install it.
5808 * mi/mi-interp.c: Include cli-out.h.
5809 (mi_cmd_interpreter_exec): Add comment.
5810 (restore_current_uiout_cleanup): New function.
5811 (ui_out_free_cleanup): New function.
5812 (mi_on_normal_stop): If finishing an execution command started by
5813 a CLI command, or any kind of breakpoint-like event triggered,
5814 print the stop event to the output (CLI) stream.
5815 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5817 2014-05-21 Pedro Alves <palves@redhat.com>
5819 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5820 current source line having changed.
5821 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5822 * infrun.c (normal_stop): Adjust call to
5823 set_current_sal_from_frame.
5824 * source.c (clear_lines_listed_range): New function.
5825 (set_current_source_symtab_and_line, identify_source_line): Clear
5826 the lines listed range.
5827 (line_info): Handle the first "info line" after the current source
5828 line having changed.
5829 * stack.c (print_stack_frame): Remove center handling.
5830 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5833 2014-05-21 Pedro Alves <palves@redhat.com>
5835 * inf-child.c (inf_child_mourn_inferior): New function.
5836 * inf-child.h (inf_child_mourn_inferior): New declaration.
5837 * darwin-nat.c (darwin_mourn_inferior): Use
5838 inf_child_mourn_inferior.
5839 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5840 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5841 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5842 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5843 * windows-nat.c (windows_mourn_inferior): Likewise.
5845 2014-05-21 Doug Evans <xdje42@gmail.com>
5847 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5849 2014-05-21 Doug Evans <xdje42@gmail.com>
5851 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5852 (gdbscm_out_of_range_error): Ditto.
5853 (gdbscm_memory_error): Ditto.
5854 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5855 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5856 (gdbscm_out_of_range_error): Update.
5857 (gdbscm_memory_error): Update.
5858 (gdbscm_scm_to_target_string_unsafe): Delete.
5860 2014-05-21 Pedro Alves <palves@redhat.com>
5862 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5864 (inf_child_open_target): New function.
5865 (inf_child_open): Use inf_child_open_target to push the target
5866 instead of erroring out.
5867 (inf_child_disconnect, inf_child_close)
5868 (inf_child_maybe_unpush_target): New functions.
5869 (inf_child_target): Install inf_child_disconnect and
5870 inf_child_close. Store a pointer to the returned object.
5871 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5873 * target.c (auto_connect_native_target): New global.
5874 (show_default_run_target): New function.
5875 (find_default_run_target): Return NULL if automatically connecting
5876 to the native target is disabled.
5877 (_initialize_target): Install set/show auto-connect-native-target.
5878 * NEWS: Mention "set auto-connect-native-target", and "target
5880 * linux-nat.c (super_close): New global.
5881 (linux_nat_close): Call super_close.
5882 (linux_nat_add_target): Store a pointer to the base class's
5884 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5885 inf_child_maybe_unpush.
5886 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5888 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5889 the inferior. Use inf_child_maybe_unpush_target.
5890 (inf_ttrace_attach): Don't push the target if it is already
5892 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5893 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5894 after mourning the inferior. Use inf_child_maybe_unpush_target.
5895 (darwin_attach_pid): Don't push the target if it is already
5897 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5898 mourning the inferior. Use inf_child_maybe_unpush_target.
5899 (gnu_detach): Use inf_child_maybe_unpush_target.
5900 * go32-nat.c (go32_create_inferior): Don't push the target if it
5902 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5903 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5904 (procfs_open): Rename to ...
5905 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5906 comments. Can target_preopen before changing node. Call
5907 inf_child_open_target to push the target explicitly.
5908 (procfs_attach): Don't push the target if it is already pushed.
5909 (procfs_detach): Use inf_child_maybe_unpush_target.
5910 (procfs_create_inferior): Don't push the target if it is already
5912 (nto_native_ops): New global.
5913 (procfs_open): Reimplement.
5914 (procfs_native_open): New function.
5915 (init_procfs_targets): Install procfs_native_open as to_open of
5916 "target native". Store a pointer to the "native" target in
5918 * procfs.c (procfs_attach): Don't push the target if it is already
5920 (procfs_detach): Use inf_child_maybe_unpush_target.
5921 (procfs_mourn_inferior): Only unpush the target after mourning the
5922 inferior. Use inf_child_maybe_unpush_target.
5923 (procfs_init_inferior): Don't push the target if it is already
5925 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5926 if it is already pushed.
5928 2014-05-21 Pedro Alves <palves@redhat.com>
5930 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5931 and "procfs" targets are now called "native" instead.
5933 2014-05-21 Pedro Alves <palves@redhat.com>
5935 * go32-nat.c (go32_open): Delete.
5936 (go32_target): Don't override the to_open method.
5938 2014-05-21 Pedro Alves <palves@redhat.com>
5940 * nto-procfs.c (procfs_can_run): New function.
5941 (nto_procfs_ops): New global.
5942 (init_procfs_targets): New, based on procfs_target. Install
5943 "target native" in addition to "target procfs".
5944 (_initialize_procfs): Call init_procfs_targets instead of adding
5947 2014-05-21 Pedro Alves <palves@redhat.com>
5949 * windows-nat.c (windows_target): Don't override to_shortname,
5950 to_longname or to_doc.
5952 2014-05-21 Pedro Alves <palves@redhat.com>
5954 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5957 2014-05-21 Pedro Alves <palves@redhat.com>
5959 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5960 to_shortname, to_longname or to_doc.
5962 2014-05-21 Pedro Alves <palves@redhat.com>
5964 * go32-nat.c (go32_target): Don't override to_shortname,
5965 to_longname or to_doc.
5967 2014-05-21 Pedro Alves <palves@redhat.com>
5969 * inf-child.c (inf_child_open): Remove mention of "child".
5970 (inf_child_target): Rename target to "native" instead of "child".
5972 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5974 * Makefile.in (SFILES): Delete "regset.c".
5975 (COMMON_OBS): Delete "regset.o".
5977 * regset.h (regset_alloc): Delete prototype.
5979 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5981 * sparc-linux-tdep.c (sparc32_linux_gregset)
5982 (sparc32_linux_fpregset): New static regset structures.
5983 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5984 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5986 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5987 (sparc64_linux_fpregset): New static regset structures.
5988 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5989 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5990 New static regset structures.
5991 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5992 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5993 New static regset structures.
5994 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5995 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5996 New static regset structures.
5997 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5998 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5999 New static regset structures.
6000 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6002 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6004 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6005 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6006 register maps ("regmaps") from "*regset" to "*regmap". Do this
6007 for all regmap types and variables.
6008 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6009 (sparc32_linux_supply_core_gregset)
6010 (sparc32_linux_collect_core_gregset)
6011 (sparc32_linux_supply_core_fpregset)
6012 (sparc32_linux_collect_core_fpregset): Likewise.
6013 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6014 (sparc_gregmap, sparc_fpregmap): ... these.
6015 (sparc_supply_gregset, sparc_collect_gregset)
6016 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6017 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6018 (_initialize_sparc_nat): Rename regmaps.
6019 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6020 (sparc_gregmap, sparc_fpregmap): ... these.
6021 (sparc_supply_gregset, sparc_collect_gregset)
6022 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6023 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6025 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6026 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6028 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6030 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6031 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6032 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6034 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6035 (sparc32_bsd_fpregset): Rename to...
6036 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6037 (sparc32_bsd_fpregmap): ... these.
6038 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6039 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6040 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6041 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6042 (struct sparc_gregmap, struct sparc_fpregmap)
6043 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6044 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6045 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6046 (sparc32_supply_regset, sparc32_collect_gregset)
6047 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6049 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6050 (sparc64_linux_ptrace_gregmap): ... this.
6051 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6052 (_initialize_sparc64_linux_nat): Rename regmaps.
6053 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6054 (sparc64_linux_core_gregmap): ... this.
6055 (sparc64_linux_supply_core_gregset)
6056 (sparc64_linux_collect_core_gregset)
6057 (sparc64_linux_supply_core_fpregset)
6058 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6059 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6060 (sparc64_sol2_fpregset): Rename to...
6061 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6062 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6063 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6065 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6066 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6067 (sparc64_bsd_fpregset): Rename to...
6068 (struct sparc_gregmap, sparc64_sol2_gregmap)
6069 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6070 (sparc64_bsd_fpregmap): ... these.
6071 (sparc64_supply_gregset, sparc64_collect_gregset)
6072 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6074 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6075 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6076 (sparc64fbsd_gregmap): ... this.
6077 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6078 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6080 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6081 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6082 (sparc64nbsd_collect_fpregset): Likewise.
6083 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6084 (sparc64nbsd_gregmap): ... this.
6085 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6087 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6088 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6089 (sparc64obsd_gregmap): ... this.
6090 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6092 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6093 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6094 (sparc32nbsd_gregmap): ... this.
6095 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6098 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6100 * score-tdep.c (score7_linux_gregset): New static regset
6102 (score7_linux_regset_from_core_section): Remove dynamic regset
6104 (score_gdbarch_init): Drop allocation of tdep structure.
6105 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6107 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6109 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6111 (am33_regset_from_core_section): Remove dynamic regset
6114 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6116 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6117 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6119 (mips_linux_regset_from_core_section): Remove dynamic regset
6121 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6122 'gregset64', 'fpregset', and 'fpregset64'.
6123 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6124 deleted tdep fields.
6126 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6128 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6130 (amd64_regset_from_core_section): Remove dynamic regset
6132 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6134 (amd64obsd_regset_from_core_section): Remove dynamic regset
6136 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6138 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6139 x86-common regset supply function.
6140 * i386-tdep.c (i386_collect_gregset): Make static.
6141 (i386_gregset): New global regset structure.
6142 (i386_fpregset, i386_xstateregset): New static regset structures.
6143 (i386_regset_from_core_section): Remove dynamic regset
6145 (i386_gdbarch_init): Remove initialization of tdep fields
6146 'gregset', 'fpregset', and 'xstateregset'.
6147 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6148 'fpregset', and 'xstateregset'.
6149 (i386_collect_gregset): Remove prototype.
6150 (i386_gregset): New declaration.
6151 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6153 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6156 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6158 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6159 (arm_linux_vfpregset): New static regset structures.
6160 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6162 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6163 and 'vfpregset' fields.
6165 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6167 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6168 (aarch64_linux_fpregset): New static regset structures.
6169 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6170 of regset structures.
6171 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6174 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6176 * regset.h (struct regset): Remove gdbarch field.
6177 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6178 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6179 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6181 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6182 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6183 (ppc32_linux_vsxregset): Likewise.
6184 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6185 via the regcache instead of the regset.
6186 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6187 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6188 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6189 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6192 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6194 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6195 Constify structures.
6196 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6197 (alphanbsd_aout_gregset): Likewise.
6198 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6199 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6201 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6202 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6204 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6205 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6206 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6207 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6208 * m88k-tdep.c (m88k_gregset): Likewise.
6209 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6210 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6211 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6212 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6213 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6214 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6215 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6216 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6217 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6219 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6220 * sh-tdep.h (sh_corefile_gregset): Likewise.
6221 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6222 * vax-tdep.c (vax_gregset): Likewise.
6224 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6226 Fix TLS access for -static -pthread.
6227 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6228 (try_thread_db_load_1): Initialize it.
6229 (thread_db_get_thread_local_address): Call it if LM is zero.
6230 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6231 * target.h (struct target_ops) (to_get_thread_local_address): Add
6232 load_module_addr comment.
6234 2014-05-21 Pedro Alves <palves@redhat.com>
6236 * dcache.c (dcache_read_memory_partial): If reading the cache line
6237 fails, fallback to reading just the memory the caller wanted.
6239 2014-05-20 Doug Evans <dje@google.com>
6241 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6242 instead of get_current_arch.
6244 2014-05-20 Pedro Alves <palves@redhat.com>
6246 * NEWS: Mention that compare-sections now works with all targets.
6248 * remote.c (PACKET_qCRC): New enum value.
6249 (remote_verify_memory): Don't send qCRC if the target has no
6250 execution. Use packet_support/packet_ok. If the target doesn't
6251 support the qCRC packet, fallback to a deep memory copy.
6252 (compare_sections_command): Say "target image" instead of "remote
6254 (_initialize_remote): Add PACKET_qCRC to the list of config
6255 packets that have no associated command. Extend comment.
6256 * target.c (simple_verify_memory, default_verify_memory): New
6258 * target.h (struct target_ops) <to_verify_memory>: Default to
6259 default_verify_memory.
6260 (simple_verify_memory): New declaration.
6261 * target-delegates.c: Regenerate.
6263 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6265 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6267 2014-05-20 Hui Zhu <hui@codesourcery.com>
6268 Yao Qi <yao@codesourcery.com>
6271 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6272 and change address of sp and pc.
6274 2014-05-19 Tom Tromey <tromey@redhat.com>
6276 * gdbtypes.c (rank_function): Use XNEWVEC.
6277 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6279 2014-05-19 Doug Evans <dje@google.com>
6281 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6282 build_type_unit_groups and moved closer to only caller. Remove
6283 arguments. All references updated. Remove outdated .gdb_index
6285 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6286 build_type_psymtabs_1.
6288 2014-05-19 Doug Evans <dje@google.com>
6290 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6291 n_type_unit_groups, all_type_unit_groups. All uses removed.
6292 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6293 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6294 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6295 (add_type_unit_group_to_table): Delete.
6297 2014-05-19 Doug Evans <dje@google.com>
6299 * eval.c (evaluate_subexp_standard): Add some comments.
6301 2014-05-17 Doug Evans <xdje42@gmail.com>
6303 * progspace.c (remove_program_space): Delete, unused.
6304 * progspace.h (remove_program_space): Ditto.
6306 2014-05-17 Doug Evans <xdje42@gmail.com>
6308 * inferior.c (prune_inferiors): Fix comment.
6309 (remove_inferior_command): Call prune_program_spaces.
6311 2014-05-16 Doug Evans <dje@google.com>
6313 New command line option -D.
6315 * main.c (set_gdb_data_directory): New function.
6316 (captured_main): Recognize -D. Flag error for --data-directory "".
6317 Call set_gdb_data_directory.
6318 (print_gdb_help): Print --data-directory, -D.
6319 * main.h (set_gdb_data_directory): Declare.
6320 * top.c (staged_gdb_datadir): New static global.
6321 (set_gdb_datadir): Call set_gdb_data_directory
6322 (show_gdb_datadir): New function.
6323 (init_main): Update init of data-directory parameter.
6325 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6327 Import the "dirfd" gnulib module.
6328 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6329 * gnulib/aclocal.m4: Update.
6330 * gnulib/config.in: Update.
6331 * gnulib/configure: Update.
6332 * gnulib/import/Makefile.am: Update.
6333 * gnulib/import/Makefile.in: Update.
6334 * gnulib/import/dirfd.c: New.
6335 * gnulib/import/m4/dirfd.m4: New.
6336 * gnulib/import/m4/gnulib-cache.m4: Update.
6337 * gnulib/import/m4/gnulib-comp.m4: Update.
6339 2014-05-16 Pierre Muller <muller@sourceware.org>
6340 Yao Qi <yao@codesourcery.com>
6342 * valprint.c (print_wchar): Move the code on checking whether
6343 W is a printable wide char to the default branch of switch
6344 statement below. Call wchar_printable instead of gdb_iswprint.
6346 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6348 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6349 ldr.w and ldrd instructions.
6351 2014-05-15 Doug Evans <dje@google.com>
6353 * dwarf2read.c (read_structure_type): Delete outdated comments.
6355 2014-05-14 Tom Tromey <tromey@redhat.com>
6357 * macrocmd.c (print_macro_definition): Reindent.
6359 2014-05-13 Doug Evans <xdje42@gmail.com>
6361 * python/py-cmd.c (cmdpy_completer): Add comment.
6362 (completers): Make const.
6364 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6366 * infrun.c (resume): Remove should_resume (unused). Move up
6367 declaration of resume_ptid.
6369 2014-05-13 Tom Tromey <tromey@redhat.com>
6371 * language.h (unop_type_check): Remove.
6372 (binop_type_check): Don't declare.
6374 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6376 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6377 call to regcache_raw_collect.
6379 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6381 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6382 mi_console->quote as the quoting character.
6384 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6386 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6388 2014-04-29 Tom Tromey <tromey@redhat.com>
6390 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6391 "show debug varobj".
6393 2014-05-07 Kyle McMartin <kyle@redhat.com>
6395 Pushed by Joel Brobecker <brobecker@adacore.com>.
6396 * aarch64-tdep.c (aarch64_software_single_step): New function.
6397 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6398 with aarch64_software_single_step.
6400 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6404 2014-05-05 Keith Seitz <keiths@redhat.com>
6406 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6407 variable or history value is successfully parsed.
6409 2014-05-05 Yao Qi <yao@codesourcery.com>
6410 Pedro Alves <palves@redhat.com>
6412 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6413 address of blocks that intersects the requested range. Trim
6414 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6416 * ctf.c (ctf_xfer_partial): Likewise.
6418 2014-05-05 Yao Qi <yao@codesourcery.com>
6420 * printcmd.c (display_command): Remove the check to
6421 target_has_execution.
6423 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6425 * ppcobsd-nat.c: Include "obsd-nat.h".
6426 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6428 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6430 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6432 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6433 and 16-bit signed and unsigned arguments. Update comment.
6434 (stap_parse_probe_arguments): Extend code to handle such
6435 arguments. Use warning instead of complaint to notify about
6436 unrecognized bitness.
6438 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6440 PR breakpoints/16889
6441 * stap-probe.c (stap_parse_probe_arguments): Simplify
6442 check for non-prefixed probes (i.e., probes whose
6443 arguments do not start with "N@"). Always set the
6444 argument type to a sane value.
6446 2014-05-01 David Taylor <dtaylor@emc.com>
6448 * remote.c (compare_sections_command): Add -r option to compare
6449 all loadable read-only sections.
6451 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6453 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6454 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6456 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6457 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6458 Remove unused CORE_ADDR argument. Update all callers.
6460 2014-04-29 Pedro Alves <palves@redhat.com>
6462 * remote.c (struct packet_config) <detect>: Extend comment.
6463 (add_packet_config_cmd): Don't set the config's detect or support
6465 (init_all_packet_configs): Also initialize the config's 'detect'
6467 (reset_all_packet_configs_support): New function.
6468 (remote_open_1): Call reset_all_packet_configs_support instead of
6469 init_all_packet_configs.
6470 (_initialize_remote): Initialize all packet configs. Assert that
6471 all packets have an associated command, except a few known
6474 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6476 * dwarf2read.c (read_subrange_type): Handle dynamic
6477 DW_AT_lower_bound attributes.
6479 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6481 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6482 dynamic bounds before computing its upper bound.
6483 (ada_discrete_type_low_bound): Same as above with the lower bound.
6485 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6487 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6488 range types. Adjust the array handling implementation to
6489 take advantage of this change.
6490 (resolve_dynamic_range): New function, mostly extracted from
6491 resolve_dynamic_bounds.
6492 (resolve_dynamic_array): New function, mostly extracted from
6493 resolve_dynamic_bounds.
6494 (resolve_dynamic_bounds): Delete.
6495 (resolve_dynamic_type): Reimplement. Add handling of
6496 TYPE_CODE_RANGE types.
6498 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6500 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6501 handling of parallel ___XA types.
6503 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6505 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6506 unnecessary second call to static_unwrap_type.
6508 2014-04-27 Hui Zhu <hui@codesourcery.com>
6510 * stack.c (print_frame_info): Call do_gdb_disassembly with
6511 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6513 2014-04-26 Doug Evans <xdje42@gmail.com>
6515 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6517 2014-04-25 Pedro Alves <palves@redhat.com>
6520 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6521 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6522 and newline from built string.
6523 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6524 (linux_ptrace_attach_fail_reason): ... this.
6525 * linux-nat.c (linux_nat_attach): Adjust to use
6526 linux_ptrace_attach_fail_reason.
6528 2014-04-25 Pedro Alves <palves@redhat.com>
6530 * remote.c (struct remote_state): Remove multi_process_aware,
6531 non_stop_aware, cond_tracepoints, cond_breakpoints,
6532 breakpoint_commands, fast_tracepoints, static_tracepoints,
6533 install_in_trace, disconnected_tracing,
6534 enable_disable_tracepoints, string_tracing, and
6535 augmented_libraries_svr4_read fields.
6536 (remote_multi_process_p): Move further below in the file.
6537 (struct packet_config): Add comments.
6538 (update_packet_config): Delete function.
6539 (show_packet_config_cmd): Use packet_config_support.
6540 (add_packet_config_cmd): Use NULL as set callback.
6541 (packet_ok): "set remote foo-packet"-style commands no longer
6542 change config->supported -- adjust.
6543 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6544 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6545 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6546 (PACKET_QNonStop, PACKET_multiprocess_feature)
6547 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6548 (PACKET_DisconnectedTracing_feature)
6549 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6550 (set_remote_protocol_packet_cmd): Delete function.
6551 (packet_config_support, packet_support): New functions.
6552 (set_remote_protocol_Z_packet_cmd): Don't call
6553 update_packet_config.
6554 (remote_query_attached, remote_pass_signals)
6555 (remote_program_signals, remote_threads_info)
6556 (remote_threads_extra_info, remote_start_remote): Use
6558 (remote_start_remote): Use packet_config_support and
6560 (init_all_packet_configs): Set all packets to unknown support,
6561 instead of calling update_packet_config.
6562 (remote_check_symbols): Use packet_support.
6563 (remote_supported_packet): Unconditionally set the packet config's
6565 (remote_multi_process_feature, remote_non_stop_feature)
6566 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6567 (remote_breakpoint_commands_feature)
6568 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6569 (remote_install_in_trace_feature)
6570 (remote_disconnected_tracing_feature)
6571 (remote_enable_disable_tracepoint_feature)
6572 (remote_string_tracing_feature)
6573 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6574 (remote_protocol_features): Adjust to use remote_supported_packet
6575 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6576 "ConditionalTracepoints", "ConditionalBreakpoints",
6577 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6578 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6579 "EnableDisableTracepoints", and "tracenz".
6580 (remote_query_supported): Use packet_support.
6581 (remote_open_1): Adjust.
6582 (extended_remote_attach_1): Use packet_support. Switch on the
6583 result of packet_ok instead of checking whether the packet ended
6585 (remote_vcont_resume): Use packet_support.
6586 (remote_resume, remote_stop_ns, fetch_register_using_p)
6587 (remote_prepare_to_store, store_register_using_P)
6588 (check_binary_download, remote_write_bytes): Use packet_support.
6589 (remote_vkill): Use packet_support. Switch on the result of
6590 packet_ok instead of checking whether the packet ended up
6592 (extended_remote_supports_disable_randomization): Use
6594 (extended_remote_run): Switch on the result of packet_ok instead
6595 of checking whether the packet ended up disabled.
6596 (remote_insert_breakpoint, remote_remove_breakpoint)
6597 (remote_insert_watchpoint, remote_remove_watchpoint)
6598 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6600 (remote_search_memory): Use packet_config_support.
6601 (remote_get_thread_local_address, remote_get_tib_address)
6602 (remote_hostio_send_command, remote_can_execute_reverse): Use
6604 (remote_supports_cond_tracepoints)
6605 (remote_supports_cond_breakpoints)
6606 (remote_supports_fast_tracepoints)
6607 (remote_supports_static_tracepoints)
6608 (remote_supports_install_in_trace)
6609 (remote_supports_enable_disable_tracepoint)
6610 (remote_supports_string_tracing)
6611 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6612 the packet config says the feature is enabled or disabled.
6613 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6614 (remote_get_trace_status): Use packet_support.
6615 (remote_set_disconnected_tracing): Adjust to check whether the
6616 feature is enabled with packet_support.
6617 (remote_set_trace_buffer_size, remote_use_agent)
6618 (remote_can_use_agent, remote_supports_btrace): Use
6620 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6621 Use packet_config_support.
6622 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6623 the packet config says the feature is enabled or disabled.
6624 (set_range_stepping): Use packet_support.
6626 2014-04-25 Tom Tromey <tromey@redhat.com>
6628 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6631 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6633 * NEWS: Mention support for C99 variable length arrays.
6635 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6637 * ada-lang.c (standard_exc): Expand introductory comment.
6639 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6640 Walfred Tedeschi <walfred.tedeschi@intel.com>
6642 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6644 (amd64_linux_read_description): Add code to handle AVX512 xstate
6645 mask and return respective tdesc.
6646 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6647 and features/i386/x32-avx512-linux.c.
6648 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6649 (amd64_linux_core_read_description): Add code to handle AVX512
6650 xstate mask and return respective tdesc.
6651 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6652 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6654 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6655 (tdesc_amd64_avx512_linux): New prototype.
6656 (tdesc_x32_avx512_linux): Likewise.
6657 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6658 features/i386/x32-avx512.c.
6659 (amd64_ymm_avx512_names): New register names for pseudo
6661 (amd64_ymmh_avx512_names): New register names for raw registers
6663 (amd64_k_names): New register names for K registers.
6664 (amd64_zmmh_names): New register names for ZMM raw registers.
6665 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6666 (amd64_xmm_avx512_names): New register names for XMM16-31
6668 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6670 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6671 if feature is present.
6672 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6673 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6674 (AMD64_NUM_REGS): Adjust to new number of registers.
6675 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6676 registers supplied via XSTATE by AVX512 registers.
6677 (i386_linux_read_description): Add case for AVX512.
6678 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6679 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6680 (i386_linux_core_read_description): Add case for AVX512.
6681 (i386_linux_init_abi): Install supported register note section
6683 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6685 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6686 registers to be number of zmm7h + 1.
6687 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6688 * i386-tdep.c: Include features/i386/i386-avx512.c.
6689 (i386_zmm_names): Add ZMM pseudo register names array.
6690 (i386_zmmh_names): Add ZMM raw register names array.
6691 (i386_k_names): Add K raw register names array.
6692 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6693 registers. AVX512 has 16 more ZMM registers than there are YMM
6695 (i386_zmmh_regnum_p): Add function to look up register number of
6697 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6698 (i386_k_regnum_p): Likewise for K raw registers.
6699 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6700 registers added by AVX512.
6701 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6702 registers added by AVX512.
6703 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6705 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6706 (i386_pseudo_register_name): Add ZMM pseudo registers.
6707 (i386_zmm_type): Construct and return vector registers type for ZMM
6709 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6710 ZMM0-31 pseudo registers and K registers.
6711 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6712 and YMM16-31 registers from register cache.
6713 (i386_pseudo_register_write): Add code to write K, ZMM and
6715 (i386_register_reggroup_p): Add code to include/exclude AVX512
6716 registers in/from respective register groups.
6717 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6718 registers if feature is present in xcr0.
6719 (i386_gdbarch_init): Add code to initialize AVX512 feature
6720 variables in tdep structure, wire in pseudo registers and call
6721 initialize_tdesc_i386_avx512.
6722 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6724 (i386_regnum): Add AVX512 registers.
6725 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6726 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6727 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6728 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6730 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6731 (i386_ymm_avx512_regnum_p): Likewise.
6732 (i386_k_regnum_p): Likewise.
6733 (i386_zmm_regnum_p): Likewise.
6734 (i386_zmmh_regnum_p): Likewise.
6735 * i387-tdep.c : Update year in copyright notice.
6736 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6738 (XSAVE_YMM_AVX512_ADDR): New macro.
6739 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6741 (XSAVE_XMM_AVX512_ADDR): New macro.
6742 (xsave_avx512_k_offset): New table for K register offsets in
6744 (XSAVE_AVX512_K_ADDR): New macro.
6745 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6747 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6748 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6750 (i387_collect_xsave): Add code to collect AVX512 registers from
6752 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6753 of XMM16-31 registers.
6754 (I387_NUM_K_REGS): New define for number of K registers.
6755 (I387_K0_REGNUM): New define for K0 register number.
6756 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6757 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6758 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6760 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6761 (I387_XMM16_REGNUM): New define for XMM16 register number.
6762 (I387_YMM0_REGNUM): New define for YMM0 register number.
6763 (I387_KEND_REGNUM): New define for last K register number.
6764 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6765 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6767 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6769 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6771 * features/Makefile: Add AVX512 related files.
6772 * features/i386/32bit-avx512.xml: New file.
6773 * features/i386/64bit-avx512.xml: Likewise.
6774 * features/i386/amd64-avx512-linux.c: Likewise.
6775 * features/i386/amd64-avx512-linux.xml: Likewise.
6776 * features/i386/amd64-avx512.c: Likewise.
6777 * features/i386/amd64-avx512.xml: Likewise.
6778 * features/i386/i386-avx512-linux.c: Likewise.
6779 * features/i386/i386-avx512-linux.xml: Likewise.
6780 * features/i386/i386-avx512.c: Likewise.
6781 * features/i386/i386-avx512.xml: Likewise.
6782 * features/i386/x32-avx512-linux.c: Likewise.
6783 * features/i386/x32-avx512-linux.xml: Likewise.
6784 * features/i386/x32-avx512.c: Likewise.
6785 * features/i386/x32-avx512.xml: Likewise.
6786 * regformats/i386/amd64-avx512-linux.dat: New file.
6787 * regformats/i386/amd64-avx512.dat: Likewise.
6788 * regformats/i386/i386-avx512-linux.dat: Likewise.
6789 * regformats/i386/i386-avx512.dat: Likewise.
6790 * regformats/i386/x32-avx512-linux.dat: Likewise.
6791 * regformats/i386/x32-avx512.dat: Likewise.
6792 * NEWS: Add note about new support for AVX512.
6795 2014-04-23 Pedro Alves <palves@redhat.com>
6797 * breakpoint.c (insert_bp_location): Tolerate errors if the
6798 breakpoint is set in a user-loaded objfile.
6799 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6800 location is marked shlib_disabled. If the breakpoint is set in a
6801 user-loaded objfile is a GDB-side memory breakpoint, validate it
6802 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6803 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6805 * mem-break.c (memory_validate_breakpoint): New function.
6806 * objfiles.c (userloaded_objfile_contains_address_p): New
6808 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6809 * target.h (memory_validate_breakpoint): New declaration.
6811 2014-04-23 Pedro Alves <palves@redhat.com>
6813 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6814 the breakpoint is set in a shared library, only suppress
6815 errors for software breakpoints, not hardware breakpoints.
6817 2014-04-22 Pedro Alves <palves@redhat.com>
6819 * infrun.c (schedlock_applies): New function, factored out from
6820 find_thread_needs_step_over.
6821 (find_thread_needs_step_over): Use it.
6822 (switch_back_to_stepped_thread): Always clear trap_expected if the
6823 step over is finished. Return early if scheduler locking applies.
6824 Look for the stepping thread and a potential step-over thread with
6826 (currently_stepping_or_nexting_callback): Delete.
6828 2014-04-22 Nick Clifton <nickc@redhat.com>
6830 * NEWS: Mention that ARM sim now supports tracing.
6832 2014-04-22 Yao Qi <yao@codesourcery.com>
6834 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6836 * tracefile.c (tracefile_fetch_registers): ... it. New
6838 * tracefile.h (tracefile_fetch_registers): Declare.
6839 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6840 tracefile_fetch_registers.
6842 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6845 * windows-nat.c (thread_rec): Don't display a warning when
6846 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6847 fails for any reason, set th->suspended to -1, so that we don't
6848 try to resume such a thread. Also, don't return NULL in these
6849 cases, to avoid completely ruin the session due to "PC register is
6850 not available" error.
6851 (do_windows_fetch_inferior_registers): Check errors in
6852 GetThreadContext call.
6853 (windows_continue): Accept an additional argument KILLED; if not
6854 zero, ignore errors in the SetThreadContext call, since the
6855 inferior was killed and is shutting down.
6856 (windows_resume, get_windows_debug_event)
6857 (windows_create_inferior, windows_mourn_inferior)
6858 (windows_kill_inferior): All callers of windows_continue changed
6859 to adjust to its new calling sequence.
6861 2014-04-19 Yao Qi <yao@codesourcery.com>
6863 * ctf.c (ctf_open): Call post_create_inferior.
6865 2014-04-19 Yao Qi <yao@codesourcery.com>
6867 * ctf.c (handle_id): New static variable.
6868 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6869 value. Get the declaration of event "register" and get length
6870 of field "contents".
6872 2014-04-19 Yao Qi <yao@codesourcery.com>
6874 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6876 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6878 * valops.c (oload_method_static): Remove unnecessary argument
6879 METHOD. Update all callers.
6881 2014-04-18 Pedro alves <palves@redhat.com>
6882 Tom Tromey <tromey@redhat.com>
6885 * frame.c (get_prev_frame_1): Rename to ...
6886 (get_prev_frame_always): ... this, and make extern. Adjust.
6887 (skip_artificial_frames): Use get_prev_frame_always.
6888 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6889 (get_frame_unwind_stop_reason): Adjust to rename.
6890 * frame.h (get_prev_frame_always): Declare.
6891 * inline-frame.c: Include frame.h.
6892 (inline_frame_this_id): Use get_prev_frame_always.
6894 2014-04-18 Tristan Gingold <gingold@adacore.com>
6896 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6897 code by using bfd_mach_o_get_base_address.
6899 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6901 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6902 (spu_ax_pseudo_register_collect): New function.
6903 (spu_ax_pseudo_register_push_stack): Likewise.
6904 (spu_dwarf_reg_to_regnum): Likewise.
6905 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6907 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6909 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6910 Replace FRAME argument with FRAME_ID.
6911 * gdbarch.c, gdbarch.h: Regenerate.
6912 * findvar.c (default_value_from_register): Add GDBARCH argument;
6913 replace FRAME by FRAME_ID. No longer call get_frame_id.
6914 (value_from_register): Update call to gdbarch_value_from_register.
6915 * value.h (default_value_from_register): Update prototype.
6916 * s390-linux-tdep.c (s390_value_from_register): Update interface
6917 and call to default_value_from_register.
6918 * spu-tdep.c (spu_value_from_register): Likewise.
6920 * findvar.c (address_from_register): Remove TYPE argument.
6921 Do not call value_from_register; use gdbarch_value_from_register
6922 with null_frame_id instead.
6923 * value.h (address_from_register): Update prototype.
6924 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6925 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6926 address_from_register interface change.
6928 2014-04-17 Yao Qi <yao@codesourcery.com>
6930 * gdbtypes.h: Update comments to link to types and macros'
6933 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6935 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6937 2014-04-16 Keith Seitz <keiths@redhat.com>
6940 * dwarf2read.c (skip_one_die): Check that all relative-offset
6941 sibling DIEs fall within range of the current reader's buffer.
6942 (read_partial_die): Likewise.
6944 2014-04-16 Keith Seitz <keiths@redhat.com>
6947 * cp-namespace.c (lookup_symbol_file): If the type name of
6948 `this' is NULL, return immediately.
6950 2014-04-14 Keith Seitz <keiths@redhat.com>
6953 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6954 from symbol_matches_domain in symtab.c. All local callers
6955 of symbol_matches_domain updated.
6956 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6957 search STRUCT_DOMAIN.
6958 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6959 independently. standard_lookup will do that automatically.
6960 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6961 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6962 (cp_lookup_symbol_in_namespace): Likewise.
6963 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6964 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6965 may return a STRUCT_DOMAIN match.
6966 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6967 * cp-support.c: Include language.h.
6968 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6970 * psymtab.c (match_partial_symbol): Compare the requested
6971 domain with the symbol's domain directly.
6972 (lookup_partial_symbol): Likewise.
6973 * symtab.c (lookup_symbol_in_language): Explain when/why
6974 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6975 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6976 appropriate languages.
6977 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6978 and moved to ada-lang.c
6979 (lookup_block_symbol): Explain that this function only returns
6980 symbol matching the requested DOMAIN.
6981 Compare the requested domain with the symbol's domain directly.
6982 (iterate_over_symbols): Compare the requested domain with the
6983 symbol's domain directly.
6984 * symtab.h (symbol_matches_domain): Remove.
6986 2014-04-14 Tom Tromey <tromey@redhat.com>
6989 * c-exp.y (type_aggregate_p): New function.
6990 (qualified_name, classify_inner_name): Use it.
6991 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6992 and TYPE_TARGET_TYPE of an enum type.
6993 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6995 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6996 handle TYPE_DECLARED_CLASS.
6997 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6999 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7000 * valops.c (enum_constant_from_type): New function.
7001 (value_aggregate_elt): Use it.
7002 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7005 2014-04-14 Tom Tromey <tromey@redhat.com>
7007 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7008 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7010 * value.h (value_aggregate_elt): Update.
7012 2014-04-14 Tom Tromey <tromey@redhat.com>
7014 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7016 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7018 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7019 (evaluate_subexp_standard): Pass noside argument.
7020 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7021 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7022 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7023 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7024 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7026 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7028 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7029 points to a constant blob.
7031 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7033 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7034 property and store it as the high bound and flag the range accordingly.
7035 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7036 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7037 * gdbtypes.h (enum range_flags): New enum.
7038 (struct range_bounds): Add flags member.
7040 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7042 * c-typeprint.c (c_type_print_varspec_suffix): Added
7043 check for not yet resolved high bound. If unresolved, print
7044 "variable length" string to the console instead of random
7047 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7049 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7051 (ada_template_to_fixed_record_type_1): Likewise.
7052 (ada_to_fixed_type_1): Likewise.
7053 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7054 (cp_print_value): Likewise.
7055 * d-valprint.c (dynamic_array_type): Likewise.
7056 * findvar.c (address_of_variable): Likewise.
7057 * jv-valprint.c (java_value_print): Likewise.
7058 * valops.c (value_ind): Likewise.
7059 * value.c (coerce_ref): Likewise.
7061 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7063 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7064 value and retrieve the dynamic type size.
7066 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7068 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7069 passed to sizeof is dynamic evaluate the argument to compute the length.
7071 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7072 Joel Brobecker <brobecker@adacore.com>
7074 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7075 (dwarf2_evaluate_property): New function.
7076 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7077 * dwarf2read.c (attr_to_dynamic_prop): New function.
7078 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7080 * gdbtypes.c: Include dwarf2loc.h.
7081 (is_dynamic_type): New function.
7082 (resolve_dynamic_type): New function.
7083 (resolve_dynamic_bounds): New function.
7084 (get_type_length): New function.
7085 (check_typedef): Use get_type_length to compute type length.
7086 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7087 (TYPE_LOW_BOUND_KIND): New macro.
7088 (is_dynamic_type): New function prototype.
7089 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7090 to resolve dynamic properties of the type. Update comment.
7091 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7093 2014-04-14 Richard Henderson <rth@redhat.com>
7095 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7097 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7098 Doug Evans <xdje42@gmail.com>
7100 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7101 dereference TYPE_CODE_REF values.
7103 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7105 Revert the following changes due to regressions:
7107 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7108 (dwarf2_evaluate_property): New function.
7109 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7110 * dwarf2read.c (attr_to_dynamic_prop): New function.
7111 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7113 * gdbtypes.c: Include dwarf2loc.h.
7114 (is_dynamic_type): New function.
7115 (resolve_dynamic_type): New function.
7116 (resolve_dynamic_bounds): New function.
7117 (get_type_length): New function.
7118 (check_typedef): Use get_type_length to compute type length.
7119 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7120 (TYPE_LOW_BOUND_KIND): New macro.
7121 (is_dynamic_type): New function prototype.
7122 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7123 to resolve dynamic properties of the type. Update comment.
7124 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7126 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7127 passed to sizeof is dynamic evaluate the argument to compute the length.
7129 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7130 value and retrieve the dynamic type size.
7132 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7133 (ada_template_to_fixed_record_type_1): Likewise.
7134 (ada_to_fixed_type_1): Likewise.
7135 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7136 (cp_print_value): Likewise.
7137 * d-valprint.c (dynamic_array_type): Likewise.
7138 * eval.c (evaluate_subexp_with_coercion): Likewise.
7139 * findvar.c (address_of_variable): Likewise.
7140 * jv-valprint.c (java_value_print): Likewise.
7141 * valops.c (value_ind): Likewise.
7142 * value.c (coerce_ref): Likewise.
7144 * c-typeprint.c (c_type_print_varspec_suffix): Added
7145 check for not yet resolved high bound. If unresolved, print
7146 "variable length" string to the console instead of random
7149 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7150 property and store it as the high bound and flag the range accordingly.
7151 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7152 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7153 * gdbtypes.h (enum range_flags): New enum.
7154 (struct range_bounds): Add flags member.
7156 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7157 points to a constant blob.
7159 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7160 (evaluate_subexp_standard): Pass noside argument.
7161 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7162 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7163 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7164 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7165 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7167 2014-04-11 Keith Seitz <keiths@redhat.com>
7170 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7171 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7174 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7176 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7177 (evaluate_subexp_standard): Pass noside argument.
7178 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7179 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7180 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7181 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7182 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7184 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7186 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7187 points to a constant blob.
7189 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7191 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7192 property and store it as the high bound and flag the range accordingly.
7193 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7194 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7195 * gdbtypes.h (enum range_flags): New enum.
7196 (struct range_bounds): Add flags member.
7198 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7200 * c-typeprint.c (c_type_print_varspec_suffix): Added
7201 check for not yet resolved high bound. If unresolved, print
7202 "variable length" string to the console instead of random
7205 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7207 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7208 (ada_template_to_fixed_record_type_1): Likewise.
7209 (ada_to_fixed_type_1): Likewise.
7210 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7211 (cp_print_value): Likewise.
7212 * d-valprint.c (dynamic_array_type): Likewise.
7213 * eval.c (evaluate_subexp_with_coercion): Likewise.
7214 * findvar.c (address_of_variable): Likewise.
7215 * jv-valprint.c (java_value_print): Likewise.
7216 * valops.c (value_ind): Likewise.
7217 * value.c (coerce_ref): Likewise.
7219 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7221 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7222 value and retrieve the dynamic type size.
7224 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7226 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7227 passed to sizeof is dynamic evaluate the argument to compute the length.
7229 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7231 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7232 (dwarf2_evaluate_property): New function.
7233 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7234 * dwarf2read.c (attr_to_dynamic_prop): New function.
7235 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7237 * gdbtypes.c: Include dwarf2loc.h.
7238 (is_dynamic_type): New function.
7239 (resolve_dynamic_type): New function.
7240 (resolve_dynamic_bounds): New function.
7241 (get_type_length): New function.
7242 (check_typedef): Use get_type_length to compute type length.
7243 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7244 (TYPE_LOW_BOUND_KIND): New macro.
7245 (is_dynamic_type): New function prototype.
7246 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7247 to resolve dynamic properties of the type. Update comment.
7248 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7250 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7252 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7253 declaring high/low bounds and change uses accordingly. Call
7254 create_range_type instead of create_static_range_type.
7255 * gdbtypes.c (create_range_type): New function.
7256 (create_range_type): Convert bounds into struct bound_prop and pass
7257 them to create_range_type.
7258 * gdbtypes.h (struct bound_prop): New struct.
7259 (create_range_type): New function prototype.
7260 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7261 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7262 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7264 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7266 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7268 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7269 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7270 * ada-lang.c: All uses of create_range_type updated.
7271 * coffread.c: All uses of create_range_type updated.
7272 * dwarf2read.c: All uses of create_range_type updated.
7273 * f-exp.y: All uses of create_range_type updated.
7274 * m2-valprint.c: All uses of create_range_type updated.
7275 * mdebugread.c: All uses of create_range_type updated.
7276 * stabsread.c: All uses of create_range_type updated.
7277 * valops.c: All uses of create_range_type updated.
7278 * valprint.c: All uses of create_range_type updated.
7280 2014-04-10 Pedro Alves <palves@redhat.com>
7282 * breakpoint.c (single_step_breakpoints)
7283 (single_step_gdbarch): Move up in the file.
7284 (one_breakpoint_xfer_memory): New function, factored out from ...
7285 (breakpoint_xfer_memory): ... here. Also process single-step
7288 2014-04-09 Tristan Gingold <gingold@adacore.com>
7290 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7292 (darwin_decode_exception_message): Free port only after use.
7294 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7296 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7297 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7298 when setting the size of call_length.
7300 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7302 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7303 dereference TYPE_CODE_REF values.
7305 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7307 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7308 end of warning message.
7310 2014-04-03 Doug Evans <dje@google.com>
7312 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7313 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7315 2014-04-02 Alan Modra <amodra@gmail.com>
7317 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7318 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7319 (struct symbol_file_add_from_memory_args): Add size field.
7320 (find_vdso_size): New function.
7321 (add_vsyscall_page): Attempt to find vdso size.
7323 2014-04-01 Doug Evans <dje@google.com>
7325 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7327 2014-04-01 Tristan Gingold <gingold@adacore.com>
7329 * darwin-nat.c (darwin_encode_reply): Add prototype.
7330 (darwin_decode_exception_message): Reply to unknown inferiors.
7331 (darwin_decode_message): Handle message by id. Ignore message
7332 to unknown inferior.
7333 (darwin_wait): Discard unknown messages, add debug trace.
7335 2014-03-31 Doug Evans <dje@google.com>
7337 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7340 2014-03-31 Doug Evans <dje@google.com>
7342 New option "set print symbol-loading".
7344 * solib.c (solib_read_symbols): Only print symbol loading messages
7346 (solib_add): If symbol loading is in "brief" mode, notify user
7347 symbols are being loaded.
7348 (reload_shared_libraries_1): Ditto.
7349 * symfile.c (print_symbol_loading_off): New static global.
7350 (print_symbol_loading_brief): New static global.
7351 (print_symbol_loading_full): New static global.
7352 (print_symbol_loading_enums): New static global.
7353 (print_symbol_loading): New static global.
7354 (print_symbol_loading_p): New function.
7355 (symbol_file_add_with_addrs): Only print symbol loading messages
7357 (_initialize_symfile): Register "print symbol-loading" set/show
7359 * symfile.h (print_symbol_loading_p): Declare.
7361 2014-03-30 Doug Evans <xdje42@gmail.com>
7363 * infrun.c (set_last_target_status): New function.
7364 (handle_inferior_event): Call it.
7366 2014-03-30 Doug Evans <xdje42@gmail.com>
7368 * inferior.h (enum stop_kind): Improve comment.
7370 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7372 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7373 a reference, strip the reference layer before calling
7374 the lang_ops value_has_mutated callback.
7376 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7378 Remove some globals from our parser.
7379 * language.c (unk_lang_parser): Add "struct parser_state"
7381 * language.h (struct language_defn) <la_parser>: Likewise.
7382 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7383 (initialize_expout): Add "struct parser_state" argument.
7384 Rewrite function to use the parser state.
7385 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7386 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7387 write_exp_elt_longcst, write_exp_elt_dblcst,
7388 write_exp_elt_decfloatcst, write_exp_elt_type,
7389 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7390 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7391 write_dollar_variable): Likewise.
7392 (parse_exp_in_context_1): Use parser state.
7393 (insert_type_address_space): Add "struct parser_state" argument.
7395 (increase_expout_size): New function.
7396 * parser-defs.h: Forward declare "struct language_defn" and
7397 "struct parser_state".
7398 (expout, expout_size, expout_ptr): Remove extern declarations.
7399 (parse_gdbarch, parse_language): Rewrite macro declarations to
7400 accept the parser state.
7401 (struct parser_state): New struct.
7402 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7403 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7404 write_exp_elt_decfloatcst, write_exp_elt_type,
7405 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7406 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7407 write_exp_msymbol, write_dollar_variable,
7408 mark_struct_expression, insert_type_address_space): Add "struct
7409 parser_state" argument.
7410 (increase_expout_size): New function.
7411 * utils.c (do_clear_parser_state): New function.
7412 (make_cleanup_clear_parser_state): Likewise.
7413 * utils.h (make_cleanup_clear_parser_state): New function
7415 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7416 Update calls to write_exp* in order to pass the parser state.
7417 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7418 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7419 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7420 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7421 * stap-probe.c (stap_parse_register_operand): Likewise.
7422 (stap_parse_single_operand): Likewise.
7423 (stap_parse_argument_1): Likewise.
7424 (stap_parse_argument): Use parser state.
7425 * stap-probe.h: Include "parser-defs.h".
7426 (struct stap_parse_info) <pstate>: New field.
7427 * c-exp.y (parse_type): Rewrite to use parser state.
7428 (yyparse): Redefine to c_parse_internal.
7429 (pstate): New global variable.
7430 (parse_number): Add "struct parser_state" argument.
7431 (write_destructor_name): Likewise.
7432 (type_exp): Update calls to write_exp* and similars in order to
7434 (exp1, exp, variable, qualified_name, space_identifier,
7435 typename, typebase): Likewise.
7436 (write_destructor_name, parse_number, lex_one_token,
7437 classify_name, classify_inner_name, c_parse): Add "struct
7438 parser_state" argument. Update function to use parser state.
7439 * c-lang.h: Forward declare "struct parser_state".
7440 (c_parse): Add "struct parser_state" argument.
7441 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7442 (yyparse): Redefine macro to ada_parse_internal.
7443 (pstate): New variable.
7444 (write_int, write_object_renaming, write_var_or_type,
7445 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7446 type_int, type_long, type_long_long, type_float, type_double,
7447 type_long_double, type_char, type_boolean, type_system_address):
7448 Add "struct parser_state" argument.
7449 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7450 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7451 var_or_type, aggregate, aggregate_component_list,
7452 positional_list, others, component_group,
7453 component_associations): Update calls to write_exp* and similar
7454 functions in order to use parser state.
7455 (ada_parse, write_var_from_sym, write_int,
7456 write_exp_op_with_string, write_object_renaming,
7457 find_primitive_type, write_selectors, write_ambiguous_var,
7458 write_var_or_type, write_name_assoc, type_int, type_long,
7459 type_long_long, type_float, type_double, type_long_double,
7460 type_char, type_boolean, type_system_address): Add "struct
7461 parser_state" argument. Adjust function to use parser state.
7462 * ada-lang.c (parse): Likewise.
7463 * ada-lang.h: Forward declare "struct parser_state".
7464 (ada_parse): Add "struct parser_state" argument.
7465 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7466 calls to both functions.
7467 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7469 (yyparse): Redefine macro to f_parse_internal.
7470 (pstate): New variable.
7471 (parse_number): Add "struct parser_state" argument.
7472 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7473 and similars in order to use parser state.
7474 (parse_number): Adjust code to use parser state.
7476 (f_parse): New function.
7477 * f-lang.h: Forward declare "struct parser_state".
7478 (f_parse): Add "struct parser_state" argument.
7479 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7481 (yyparse): Redefine macro for java_parse_internal.
7482 (pstate): New variable.
7483 (push_expression_name, push_expression_name, insert_exp): Add
7484 "struct parser_state" argument.
7485 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7486 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7487 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7488 PostIncrementExpression, PostDecrementExpression,
7489 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7490 UnaryExpressionNotPlusMinus, CastExpression,
7491 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7492 RelationalExpression, EqualityExpression, AndExpression,
7493 ExclusiveOrExpression, InclusiveOrExpression,
7494 ConditionalAndExpression, ConditionalOrExpression,
7495 ConditionalExpression, Assignment, LeftHandSide): Update
7496 calls to write_exp* and similars in order to use parser state.
7497 (parse_number): Ajust code to use parser state.
7499 (java_parse): New function.
7500 (push_variable): Add "struct parser_state" argument. Adjust
7501 code to user parser state.
7502 (push_fieldnames, push_qualified_expression_name,
7503 push_expression_name, insert_exp): Likewise.
7504 * jv-lang.h: Forward declare "struct parser_state".
7505 (java_parse): Add "struct parser_state" argument.
7506 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7508 (yyparse): Redefine macro to m2_parse_internal.
7509 (pstate): New variable.
7510 (type_exp, exp, fblock, variable, type): Update calls to
7511 write_exp* and similars to use parser state.
7513 (m2_parse): New function.
7514 * m2-lang.h: Forward declare "struct parser_state".
7515 (m2_parse): Add "struct parser_state" argument.
7516 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7517 * objc-lang.h: Forward declare "struct parser_state".
7518 (end_msglist): Add "struct parser_state" argument.
7519 * p-exp.y (parse_type): Rewrite macro to use parser state.
7520 (yyparse): Redefine macro to pascal_parse_internal.
7521 (pstate): New variable.
7522 (parse_number): Add "struct parser_state" argument.
7523 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7524 write_exp* and similars in order to use parser state.
7525 (parse_number, yylex): Adjust code to use parser state.
7526 (pascal_parse): New function.
7527 * p-lang.h: Forward declare "struct parser_state".
7528 (pascal_parse): Add "struct parser_state" argument.
7529 * go-exp.y (parse_type): Rewrite macro to use parser state.
7530 (yyparse): Redefine macro to go_parse_internal.
7531 (pstate): New variable.
7532 (parse_number): Add "struct parser_state" argument.
7533 (type_exp, exp1, exp, variable, type): Update calls to
7534 write_exp* and similars in order to use parser state.
7535 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7536 to use parser state.
7537 (go_parse): Likewise.
7538 * go-lang.h: Forward declare "struct parser_state".
7539 (go_parse): Add "struct parser_state" argument.
7541 2014-03-27 Doug Evans <dje@google.com>
7543 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7545 2014-03-27 Doug Evans <dje@google.com>
7547 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7548 Remove argument abbrev_section. All callers updated.
7550 2014-03-27 Doug Evans <dje@google.com>
7552 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7553 addr_base, ranges_base.
7555 2014-03-26 Keith Seitz <keiths@redhat.com>
7557 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7558 types, not VAR_DOMAIN.
7560 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7562 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7564 * features/nios2-linux.c: Regenerated.
7565 * features/nios2.c: Regenerated.
7567 2014-03-25 Pedro Alves <palves@redhat.com>
7569 * cli/cli-script.c (script_from_file): Force the interpreter to
7572 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7574 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7575 small stack allocation.
7577 2014-03-24 Tristan Gingold <gingold@adacore.com>
7579 * darwin-nat.c (exc_server): Remove unused prototype.
7580 (darwin_dump_message): Correctly display data on x86_64.
7581 (darwin_encode_reply): Fix style.
7582 Add comments and fix indentation.
7584 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7586 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7588 2014-03-22 Doug Evans <xdje42@gmail.com>
7590 * infcmd.c: Whitespace fixes.
7591 (interrupt_command): Merge two function comments into one.
7593 2014-03-22 Doug Evans <xdje42@gmail.com>
7595 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7598 2014-03-22 Yao Qi <yao@codesourcery.com>
7600 * remote.c (target_read_live_memory): Remove.
7601 (memory_xfer_live_readonly_partial): Rename it to
7602 remote_xfer_live_readonly_partial. Remove argument 'object'.
7603 All callers updated. Call remote_read_bytes_1
7604 instead of target_read_live_memory.
7605 * tracepoint.c (set_traceframe_number): Remove.
7606 (make_cleanup_restore_traceframe_number): Likewise .
7607 * tracepoint.h (set_traceframe_number): Remove declaration.
7608 (make_cleanup_restore_traceframe_number): Likewise.
7610 2014-03-22 Yao Qi <yao@codesourcery.com>
7612 * remote.c (remote_read_bytes): Move code on reading from the
7614 (remote_read_bytes_1): ... here. New function.
7616 2014-03-22 Yao Qi <yao@codesourcery.com>
7618 * ctf.c (ctf_xfer_partial): Check the return value of
7619 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7620 return TARGET_XFER_UNAVAILABLE.
7621 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7622 * target.c (target_read_live_memory): Move it to remote.c.
7623 (memory_xfer_live_readonly_partial): Likewise.
7624 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7625 * remote.c (target_read_live_memory): Moved from target.c.
7626 (memory_xfer_live_readonly_partial): Likewise.
7627 (remote_read_bytes): Factored out from
7628 memory_xfer_partial_1.
7630 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7632 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7635 2014-03-21 Pedro Alves <palves@redhat.com>
7637 * infrun.c (normal_stop): Extend comment.
7639 2014-03-21 Hui Zhu <hui@codesourcery.com>
7640 Pedro Alves <palves@redhat.com>
7642 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7644 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7645 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7646 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7648 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7650 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7651 `z' formatted output modifier.
7653 2014-03-20 Tom Tromey <tromey@redhat.com>
7654 Sergio Durigan Junior <sergiodj@redhat.com>
7656 * probe.c (parse_probes): Turn assert into an ordinary error.
7657 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7658 exceptions when parsing probes. Rearrange the code for clarity.
7660 2014-03-20 Tom Tromey <tromey@redhat.com>
7663 * top.c (execute_command): Only dispatch events if the command
7666 2014-03-20 Tom Tromey <tromey@redhat.com>
7669 * infcall.c: Include event-top.h.
7670 (run_inferior_call): Call async_disable_stdin if needed.
7672 2014-03-20 Pedro Alves <palves@redhat.com>
7674 * infrun.c (prepare_to_proceed): Delete.
7675 (thread_still_needs_step_over): New function.
7676 (find_thread_needs_step_over): New function.
7677 (proceed): If the current thread needs a step-over, set its
7678 steping_over_breakpoint flag. Adjust to use
7679 find_thread_needs_step_over instead of prepare_to_proceed.
7680 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7681 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7683 (switch_back_to_stepped_thread): Step over breakpoints of all
7684 threads not the stepping thread, before switching back to the
7687 2014-03-20 Pedro Alves <palves@redhat.com>
7689 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7691 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7692 * infrun.c (saved_singlestep_ptid)
7693 (stepping_past_singlestep_breakpoint): Delete.
7694 (resume): Remove stepping_past_singlestep_breakpoint handling.
7695 (proceed): Store the prev_pc of the stepping thread too.
7696 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7698 (enum infwait_states): Delete infwait_thread_hop_state.
7699 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7701 (handle_inferior_event): Adjust.
7702 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7703 handling and the thread-hop code. Before removing single-step
7704 breakpoints, check whether the thread hit a single-step breakpoint
7705 of another thread. If it did, the trap is not a random signal.
7706 (switch_back_to_stepped_thread): If the event thread hit a
7707 single-step breakpoint, unblock it before switching to the
7708 stepping thread. Handle the case of the stepped thread having
7710 (keep_going): Handle the case of the current thread moving past a
7711 single-step breakpoint.
7713 2014-03-20 Pedro Alves <palves@redhat.com>
7716 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7717 are being stepped over.
7718 (breakpoint_address_match): Make extern.
7719 * breakpoint.h (breakpoint_address_match): New declaration.
7720 * inferior.h (stepping_past_instruction_at): New declaration.
7721 * infrun.c (struct step_over_info): New type.
7722 (step_over_info): New global.
7723 (set_step_over_info, clear_step_over_info)
7724 (stepping_past_instruction_at): New functions.
7725 (handle_inferior_event): Clear the step-over info when
7726 trap_expected is cleared.
7727 (resume): Remove now stale comment.
7728 (clear_proceed_status): Clear step-over info.
7729 (proceed): Adjust step-over handling to set or clear the step-over
7730 info instead of removing all breakpoints.
7731 (handle_signal_stop): When setting up a thread-hop, don't remove
7733 (stop_stepping): Clear step-over info.
7734 (keep_going): Adjust step-over handling to set or clear step-over
7735 info and then always inserting breakpoints, instead of removing
7736 all breakpoints when stepping over one.
7738 2014-03-20 Pedro Alves <palves@redhat.com>
7740 * infrun.c (previous_inferior_ptid): Adjust comment.
7741 (deferred_step_ptid): Delete.
7742 (infrun_thread_ptid_changed, prepare_to_proceed)
7743 (init_wait_for_inferior): Adjust.
7744 (handle_signal_stop): Delete deferred_step_ptid handling.
7746 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7749 * defs.h (sync_quit_force_run): New declaration.
7750 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7751 * event-top.c (async_sigterm_handler): New declaration.
7752 (async_sigterm_token): New variable.
7753 (async_init_signals): Create also async_sigterm_token.
7754 (async_sigterm_handler): New function.
7755 (sync_quit_force_run): New variable.
7756 (handle_sigterm): Replace quit_force call by other calls.
7757 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7759 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7761 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7762 offset into SPE pseudo registers.
7764 2014-03-18 Pedro Alves <palves@redhat.com>
7767 * inferior.h (print_stop_event): Declare.
7768 * infrun.c (print_stop_event): New, factored out from ...
7769 (normal_stop): ... this.
7770 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7771 of bpstat_print/print_stack_frame.
7773 2014-03-17 Tom Tromey <tromey@redhat.com>
7775 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7777 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7779 * ada-lang.c (decode_constrained_packed_array): Perform a
7780 minimal coercion for reference with coerce_ref instead of
7783 2014-03-17 Tristan Gingold <gingold@adacore.com>
7785 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7786 (darwin_solib_create_inferior_hook): Emit a warning if version
7789 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7791 * python/py-value.c (get_field_flag): Cast flag_name argument to
7792 PyObject_GetAttrString to support Python 2.4.
7794 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7796 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7797 (Global Maintainers): Remove Jan Kratochvil.
7799 2014-03-14 Pedro Alves <palves@redhat.com>
7801 * inferior.h (terminal_ours_for_output): Rename to ...
7802 (child_terminal_ours_for_output): ... this.
7803 (terminal_save_ours): Rename to ...
7804 (child_terminal_save_ours): ... this.
7805 (terminal_ours): Rename to ...
7806 (child_terminal_ours): ... this.
7807 (terminal_inferior): Rename to ...
7808 (child_terminal_inferior): ... this.
7809 (terminal_init_inferior): Rename to ...
7810 (child_terminal_init_inferior): ... this.
7811 (terminal_init_inferior_with_pgrp): Rename to ...
7812 (child_terminal_init_inferior_with_pgrp): ... this.
7813 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7814 (child_terminal_init_with_pgrp): ... this.
7815 (terminal_save_ours): Rename to ...
7816 (child_terminal_save_ours): ... this.
7817 (terminal_init_inferior): Rename to ...
7818 (child_terminal_init): ... this. Adjust.
7819 (terminal_inferior): Rename to ...
7820 (child_terminal_inferior): ... this.
7821 (terminal_ours_for_output): Rename to ...
7822 (child_terminal_ours_for_output): ... this. Adjust.
7823 (terminal_ours): Rename to ...
7824 (child_terminal_ours): ... this.
7825 (terminal_ours_1): Rename to ...
7826 (child_terminal_ours_1): ... this. Adjust.
7827 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7828 * windows-nat.c (do_initial_windows_stuff): Adjust.
7829 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7830 (gnu_terminal_init): ... this. Adjust.
7831 (gnu_target): Adjust.
7832 * inf-child.c (inf_child_target): Adjust.
7834 2014-03-13 Doug Evans <xdje42@gmail.com>
7837 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7840 2014-03-13 Doug Evans <xdje42@gmail.com>
7842 * value.c (record_latest_value): Call release_value_or_incref
7843 instead of release_value.
7845 2014-03-13 Pedro Alves <palves@redhat.com>
7847 * procfs.c (procfs_target): Don't override to_shortname,
7848 to_longname or to_doc.
7850 2014-03-13 Pedro Alves <palves@redhat.com>
7852 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7853 Unix in user visible strings.
7855 2014-03-12 Stan Shebs <stan@codesourcery.com>
7857 * gdbtypes.h: Annotate comments for Doxygen, add a page
7858 block comment with some general info.
7860 2014-03-12 Pedro Alves <palves@redhat.com>
7862 * infcmd.c (prepare_execution_command): New function, factored out
7863 from several execution commands.
7864 (run_command_1, continue_command, step_1, jump_command)
7865 (signal_command, until_command, advance_command, finish_command)
7866 (attach_command): Use prepare_execution_command.
7868 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7870 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7873 (struct arm_linux_thread_points): Removed.
7874 (struct arm_linux_process_info): New.
7875 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7876 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7877 (arm_linux_find_breakpoints_by_tid): Removed.
7878 (struct arch_lwp_info): New.
7879 (arm_linux_find_process_pid): New functions.
7880 (arm_linux_add_process): New functions.
7881 (arm_linux_process_info_get): New functions.
7882 (arm_linux_forget_process): New function.
7883 (arm_linux_get_debug_reg_state): New function.
7884 (struct update_registers_data): New.
7885 (update_registers_callback): New function.
7886 (arm_linux_insert_hw_breakpoint1): Updated.
7887 (arm_linux_remove_hw_breakpoint1): Updated.
7888 (arm_linux_insert_hw_breakpoint): Updated.
7889 (arm_linux_remove_hw_breakpoint): Updated.
7890 (arm_linux_insert_watchpoint): Updated.
7891 (arm_linux_remove_watchpoint): Updated.
7892 (arm_linux_new_thread): Updated.
7893 (arm_linux_prepare_to_resume): New function.
7894 (arm_linux_new_fork): New function.
7895 (_initialize_arm_linux_nat): Updated.
7897 2014-03-12 Pedro Alves <palves@redhat.com>
7899 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7901 2014-03-12 Tom Tromey <tromey@redhat.com>
7903 * inf-child.c (return_zero): New function.
7904 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7905 * aix-thread.c (aix_thread_inferior_created): New function.
7906 (aix_thread_attach): Remove.
7907 (init_aix_thread_ops): Don't set to_attach.
7908 (_initialize_aix_thread): Register inferior_created observer.
7909 * corelow.c (init_core_ops): Don't set to_attach or
7911 * exec.c (init_exec_ops): Don't set to_attach or
7913 * infcmd.c (run_command_1): Use find_run_target. Make direct
7915 (attach_command): Use find_attach_target. Make direct target
7917 * record-btrace.c (init_record_btrace_ops): Don't set
7919 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7921 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7922 set to_create_inferior.
7923 * target.c (complete_target_initialization): Add assertion.
7924 (target_create_inferior): Remove.
7925 (find_default_attach, find_default_create_inferior): Remove.
7926 (find_attach_target, find_run_target): New functions.
7927 (find_default_is_async_p, find_default_can_async_p)
7928 (target_supports_non_stop, target_attach): Remove.
7929 (init_dummy_target): Don't set to_create_inferior or
7930 to_supports_non_stop.
7931 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7932 TARGET_DEFAULT_FUNC.
7933 <to_create_inferior>: Add comment.
7934 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7935 TARGET_DEFAULT_RETURN.
7936 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7937 (find_attach_target, find_run_target): Declare.
7938 (target_create_inferior): Remove.
7939 (target_has_execution_1): Update comment.
7940 (target_supports_non_stop): Remove.
7941 * target-delegates.c: Rebuild.
7943 2014-03-12 Pedro Alves <palves@redhat.com>
7945 * inf-child.h: Update comment to not mention Unix.
7947 2014-03-12 Pedro Alves <palves@redhat.com>
7949 * inf-child.c: Update top comment to not mention Unix. Add
7950 generic comment describing how this target is meant to be used.
7951 (inf_child_post_attach, inf_child_post_startup_inferior)
7952 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7955 2014-03-12 Pedro Alves <palves@redhat.com>
7957 * nto-procfs.c: Include inf-child.h.
7958 (procfs_ops): Delete global.
7959 (procfs_can_run): Delete method.
7960 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7961 target pointer instead of referencing procfs_ops.
7962 (procfs_prepare_to_store): Delete.
7963 (init_procfs_ops): Delete function.
7964 (procfs_target): New function, based on init_procfs_ops, but
7965 inherit inf_child_target.
7966 (_initialize_procfs): Use procfs_target.
7968 2014-03-12 Pedro Alves <palves@redhat.com>
7970 * windows-nat.c: Include inf-child.h.
7971 (windows_ops): Delete global.
7972 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7974 (init_windows_ops): Delete function.
7975 (windows_target): New function, based on init_windows_ops, but
7976 inherit inf_child_target.
7977 (_initialize_windows_nat): Use windows_target. Install x86
7978 specific target methods here.
7980 2014-03-10 Doug Evans <xdje42@gmail.com>
7982 * guile/guile.c (call_initialize_gdb_module): New function.
7983 (initialize_guile): Replace call to scm_init_guile with call to
7986 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7988 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7989 in call to TYPE_CODE macro.
7991 2014-03-10 Jerome Guitton <guitton@adacore.com>
7993 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7994 Resolve tagged types to full view.
7996 2014-03-10 Hui Zhu <hui@codesourcery.com>
7998 * target.h (target_insert_breakpoint): Remove "hardware" from its
8001 2014-03-07 Doug Evans <dje@google.com>
8003 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8005 2014-03-07 Doug Evans <dje@google.com>
8007 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8008 Remove unused local comp_dir_attr. Assert exactly one of
8009 stub_comp_unit_die, stub_comp_dir is non-NULL.
8011 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8013 * target.h (complete_target_initialization, add_target):
8016 2014-03-07 Pedro Alves <palves@redhat.com>
8018 * go32-nat.c: Include inf-child.h.
8019 (go32_ops): Delete global.
8020 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8022 (go32_create_inferior): Push the passed in target pointer instead
8023 of referencing go32_ops.
8024 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8025 (go32_target): New function, based on init_go32_ops, but inherit
8027 (_initialize_go32_nat): Use go32_target. Move parts of
8030 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8032 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8033 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8034 SYMBOL_VALUE_ADDRESS.
8035 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8037 2014-03-06 Yao Qi <yao@codesourcery.com>
8039 * breakpoint.c (get_tracepoint_by_number): Remove argument
8040 optional_p. All callers updated. Adjust comments. Update
8042 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8044 2014-03-06 Yao Qi <yao@codesourcery.com>
8046 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8047 early if get_number returns zero. Use 'p' instead of 'args'.
8049 2014-03-06 Yao Qi <yao@codesourcery.com>
8051 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8054 2014-03-06 Yao Qi <yao@codesourcery.com>
8056 PR breakpoints/16508
8057 * tracepoint.c (check_trace_running): New function.
8058 (trace_find_command): Move code to check_trace_running and
8059 call check_trace_running.
8060 (trace_find_pc_command): Likewise.
8061 (trace_find_tracepoint_command): Likewise.
8062 (trace_find_line_command): Likewise.
8063 (trace_find_range_command): Likewise.
8064 * tracepoint.h (check_trace_running): Likewise.
8065 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8067 2014-03-06 Yao Qi <yao@codesourcery.com>
8069 * target.h (struct target_ops) <to_traceframe_info>: Use
8070 TARGET_DEFAULT_NORETURN (tcomplain ()).
8071 * target-delegates.c: Regenerated.
8073 2014-03-05 Pedro Alves <palves@redhat.com>
8076 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8077 void. Update comment.
8078 (dcache_xfer_memory): Delete.
8079 (dcache_read_memory_partial): New, based on the read bits of
8081 (dcache_update): Add status parameter. Use ULONGEST for len, and
8082 adjust. Discard cache lines if the reason for the update was
8084 * dcache.h (dcache_xfer_memory): Delete declaration.
8085 (dcache_read_memory_partial): New declaration.
8086 (dcache_update): Update prototype.
8087 * target.c (raw_memory_xfer_partial): Update the dcache here.
8088 (memory_xfer_partial_1): Don't handle dcache writes here.
8090 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8092 * remote-sim.c (gdbsim_load): Add const to prog.
8094 2014-03-03 Tom Tromey <tromey@redhat.com>
8096 * elfread.c (probe_key): Change to bfd_data.
8097 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8098 now per-BFD, not per-objfile.
8099 * stap-probe.c (stap_probe_destroy): Update comment.
8100 (handle_stap_probe): Allocate on the per-BFD obstack.
8102 2014-03-03 Tom Tromey <tromey@redhat.com>
8104 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8105 * breakpoint.c (create_longjmp_master_breakpoint): Use
8107 (add_location_to_breakpoint, bkpt_probe_insert_location)
8108 (bkpt_probe_remove_location): Update.
8109 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8110 * elfread.c (elf_symfile_relocate_probe): Remove.
8111 (elf_probe_fns): Update.
8112 (insert_exception_resume_breakpoint): Change type of "probe"
8113 parameter to bound_probe.
8114 (check_exception_resume): Update.
8115 * objfiles.c (objfile_relocate1): Don't relocate probes.
8116 * probe.c (bound_probe_s): New typedef.
8117 (parse_probes): Use get_probe_address. Set sal's objfile.
8118 (find_probe_by_pc): Return a bound_probe.
8119 (collect_probes): Return a VEC(bound_probe_s).
8120 (compare_probes): Update.
8121 (gen_ui_out_table_header_info): Change type of "probes"
8123 (info_probes_for_ops): Update.
8124 (get_probe_address): New function.
8125 (probe_safe_evaluate_at_pc): Update.
8126 * probe.h (struct probe_ops) <get_probe_address>: New field.
8127 <set_semaphore, clear_semaphore>: Add objfile parameter.
8128 (struct probe) <objfile>: Remove field.
8130 <address>: Update comment.
8131 (struct bound_probe): New.
8132 (find_probe_by_pc): Return a bound_probe.
8133 (get_probe_address): Declare.
8134 * solib-svr4.c (struct probe_and_action) <address>: New field.
8135 (hash_probe_and_action, equal_probe_and_action): Update.
8136 (register_solib_event_probe): Add address parameter.
8137 (solib_event_probe_at): Update.
8138 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8140 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8141 (stap_get_probe_address): New function.
8142 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8143 (compile_probe_arg): Update.
8144 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8146 (handle_stap_probe): Don't relocate the probe.
8147 (stap_relocate): Remove.
8148 (stap_gen_info_probes_table_values): Update.
8149 (stap_probe_ops): Remove stap_relocate.
8150 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8151 (debug_sym_probe_fns): Update.
8152 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8153 * symtab.c (init_sal): Use memset.
8154 * symtab.h (struct symtab_and_line) <objfile>: New field.
8155 * tracepoint.c (start_tracing, stop_tracing): Update.
8157 2014-03-03 Tom Tromey <tromey@redhat.com>
8159 * probe.h (parse_probes, find_probe_by_pc)
8160 (find_probes_in_objfile): Fix comments.
8162 2014-03-02 Doug Evans <xdje42@gmail.com>
8164 * infrun.c (handle_signal_stop): Replace test for
8165 TARGET_WAITKIND_STOPPED with an assert.
8167 2014-03-02 Doug Evans <xdje42@gmail.com>
8169 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8171 2014-03-02 Doug Evans <xdje42@gmail.com>
8173 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8175 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8177 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8179 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8181 * i386obsd-nat.c: Include "obsd-nat.h".
8182 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8184 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8186 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8188 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8190 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8192 * mips64obsd-nat.c: Include "obsd-nath".
8193 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8195 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8197 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8199 * amd64obsd-nat.c: Include "obsd-nat,h.
8200 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8202 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8204 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8206 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8207 (find_overload_match): Update call to find_oload_champ.
8208 (find_oload_champ_namespace_loop): Likewise
8210 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8212 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8214 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8215 * config/sparc/obsd64.mh: New file.
8216 * sparc64obsd-nat.c: New file.
8218 * obsd-nat.h: New file.
8219 * obsd-nat.c: New file.
8220 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8221 (ALLDEPFILES): Add obsd-nat.c.
8223 2014-02-28 Tom Tromey <tromey@redhat.com>
8225 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8226 * cli-out.h (cli_ui_out_impl): Now const.
8227 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8228 * ui-out.c (struct ui_out) <impl>: Now const.
8229 (default_ui_out_impl): Now const.
8230 (ui_out_new): Make 'impl' parameter const.
8231 * ui-out.h (ui_out_new): Update.
8233 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8235 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8237 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8239 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8241 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8243 Additional PR 8882 fix.
8244 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8246 2014-02-27 Pedro Alves <palves@redhat.com>
8248 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8251 2014-02-27 Pedro Alves <palves@redhat.com>
8254 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8255 * nat/linux-waitpid.c: Include string.h.
8256 (status_to_str): Moved here and made extern.
8257 * nat/linux-waitpid.h (status_to_str): New declaration.
8259 2014-02-27 Hui Zhu <hui@codesourcery.com>
8262 * infrun.c (ptid_match): Move ...
8263 * common/ptid.c (ptid_match): ... here.
8264 * inferior.h (ptid_match): Move ...
8265 * common/ptid.h (ptid_match): ... here.
8267 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8269 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8270 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8273 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8275 * obsd-tdep.c (obsd_auxv_parse): New function.
8276 (obsd_init_abi): Set auxv_parse.
8278 * gdbarch.sh (auxv_parse): New.
8279 * gdbarch.h: Regenerated.
8280 * gdbarch.c: Regenerated.
8281 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8283 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8285 * guile/scm-value.c (gdbscm_history_append_x): New function.
8286 (value_functions): Add it.
8288 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8290 * dwarf2read.c (attr_value_as_address): New function.
8291 (dwarf2_find_base_address, read_call_site_scope): Use
8292 attr_value_as_address in place of DW_ADDR.
8293 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8294 the low and high addresses. Slight rework of the handling
8295 of the high pc being a constant form, and limit it to
8296 DWARF verson 4 or higher.
8297 (dwarf2_record_block_ranges): Likewise.
8298 (read_partial_die): Likewise.
8299 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8301 2014-02-26 Tom Tromey <tromey@redhat.com>
8303 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8305 2014-02-26 Tom Tromey <tromey@redhat.com>
8307 * elfread.c (elf_read_minimal_symbols): Return early if
8308 minimal symbols have already been read. Add "ei" parameter.
8309 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8310 * minsyms.c (prim_record_minimal_symbol_full): Update.
8311 * objfiles.h (struct objstats) <n_minsyms>: Move...
8312 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8313 * symmisc.c (print_objfile_statistics): Update.
8315 2014-02-26 Tom Tromey <tromey@redhat.com>
8317 * elfread.c (elf_read_minimal_symbols): New function, from
8319 (elf_symfile_read): Call it.
8321 2014-02-26 Tom Tromey <tromey@redhat.com>
8323 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8324 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8325 (lookup_minimal_symbol_solib_trampoline)
8326 (lookup_minimal_symbol_by_pc_section_1)
8327 (lookup_minimal_symbol_and_objfile): Update.
8328 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8329 Don't allocate a minimal symbol if minsyms have already been read.
8330 (build_minimal_symbol_hash_tables): Update.
8331 (install_minimal_symbols): Do nothing if minsyms already read.
8332 Use the per-BFD obstack.
8333 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8334 * objfiles.c (allocate_objfile): Call
8335 terminate_minimal_symbol_table later.
8336 (have_minimal_symbols): Update.
8337 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8338 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8339 Move from struct objfile.
8340 <minsyms_read>: New field.
8341 (struct objfile) <msymbols, minimal_symbol_count,
8342 msymbol_hash, msymbol_demangled_hash>: Move.
8343 (ALL_OBJFILE_MSYMBOLS): Update.
8344 * symfile.c (read_symbols): Set minsyms_read.
8345 (reread_symbols): Update.
8346 * symmisc.c (dump_objfile, dump_msymbols): Update.
8348 2014-02-26 Tom Tromey <tromey@redhat.com>
8350 * minsyms.c (msymbols_sort): Remove.
8351 * minsyms.h (msymbols_sort): Remove.
8352 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8353 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8354 * elfread.c (elf_symtab_read): Don't add section offsets.
8355 * xcoffread.c (record_minimal_symbol): Don't add section offset
8356 to minimal symbol address.
8357 * somread.c (text_offset, data_offset): Remove.
8358 (som_symtab_read): Don't add section offsets to minimal symbol
8360 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8361 Don't add section offsets to minimal symbols.
8362 * coffread.c (coff_symtab_read): Don't add section offsets
8363 to minimal symbol addresses.
8364 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8365 to minimal symbol addresses.
8366 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8367 section offset to minimal symbol addresses.
8368 * mdebugread.c (parse_partial_symbols): Don't add section
8369 offset to minimal symbol addresses.
8370 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8371 offset to minimal symbol addresses.
8373 2014-02-26 Tom Tromey <tromey@redhat.com>
8375 * ada-lang.c (ada_main_name): Update.
8376 (ada_add_standard_exceptions): Update.
8377 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8378 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8379 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8380 * auxv.c (ld_so_xfer_auxv): Update.
8381 * avr-tdep.c (avr_scan_prologue): Update.
8382 * ax-gdb.c (gen_var_ref): Update.
8383 * blockframe.c (get_pc_function_start)
8384 (find_pc_partial_function_gnu_ifunc): Update.
8385 * breakpoint.c (create_overlay_event_breakpoint)
8386 (create_longjmp_master_breakpoint)
8387 (create_std_terminate_master_breakpoint)
8388 (create_exception_master_breakpoint): Update.
8389 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8390 * c-valprint.c (c_val_print): Update.
8391 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8392 * common/agent.c (agent_look_up_symbols): Update.
8393 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8394 * dwarf2loc.c (call_site_to_target_addr): Update.
8395 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8396 * elfread.c (elf_gnu_ifunc_record_cache)
8397 (elf_gnu_ifunc_resolve_by_got): Update.
8398 * findvar.c (default_read_var_value): Update.
8399 * frame.c (inside_main_func): Update.
8400 * frv-tdep.c (frv_frame_this_id): Update.
8401 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8402 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8404 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8405 (hppa_hpux_find_dummy_bpaddr): Update.
8406 * hppa-tdep.c (hppa_symbol_address): Update.
8407 * infcmd.c (until_next_command): Update.
8408 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8410 * linespec.c (minsym_found, add_minsym): Update.
8411 * linux-nat.c (get_signo): Update.
8412 * linux-thread-db.c (inferior_has_bug): Update.
8413 * m32c-tdep.c (m32c_return_value)
8414 (m32c_m16c_address_to_pointer): Update.
8415 * m32r-tdep.c (m32r_frame_this_id): Update.
8416 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8417 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8418 * maint.c (maintenance_translate_address): Update.
8419 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8420 (frob_address): New function.
8421 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8422 frob_address. Rename parameter to "pc_in".
8423 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8425 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8427 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8428 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8429 * objc-lang.c (find_objc_msgsend): Update.
8430 * objfiles.c (objfile_relocate1): Update.
8431 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8432 * p-valprint.c (pascal_val_print): Update.
8433 * parse.c (write_exp_msymbol): Update.
8434 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8435 (ppc_elfv2_skip_entrypoint): Update.
8436 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8437 * printcmd.c (build_address_symbolic, msym_info)
8438 (address_info): Update.
8439 * proc-service.c (ps_pglobal_lookup): Update.
8440 * psymtab.c (find_pc_sect_psymtab_closer)
8441 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8442 Change msymbol parameter to bound_minimal_symbol.
8443 * ravenscar-thread.c (get_running_thread_id): Update.
8444 * remote.c (remote_check_symbols): Update.
8445 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8447 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8448 * solib-dsbt.c (lm_base): Update.
8449 * solib-frv.c (lm_base, main_got): Update.
8450 * solib-irix.c (locate_base): Update.
8451 * solib-som.c (som_solib_create_inferior_hook)
8452 (link_map_start): Update.
8453 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8454 * solib-svr4.c (elf_locate_base, enable_break): Update.
8455 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8456 (flush_ea_cache): Update.
8457 * stabsread.c (define_symbol, scan_file_globals): Update.
8458 * stack.c (find_frame_funname): Update.
8459 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8460 (debug_qf_find_pc_sect_symtab): Update.
8461 * symfile.c (simple_read_overlay_table)
8462 (simple_overlay_update): Update.
8463 * symfile.h (struct quick_symbol_functions)
8464 <find_pc_sect_symtab>: Change type of msymbol to
8465 bound_minimal_symbol.
8466 * symmisc.c (dump_msymbols): Update.
8467 * symtab.c (find_pc_sect_symtab_via_partial)
8468 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8469 (search_symbols, print_msymbol_info): Update.
8470 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8471 (MSYMBOL_VALUE_ADDRESS): Redefine.
8472 (BMSYMBOL_VALUE_ADDRESS): New macro.
8473 * tracepoint.c (scope_info): Update.
8474 * tui/tui-disasm.c (tui_find_disassembly_address)
8475 (tui_get_begin_asm_address): Update.
8476 * valops.c (find_function_in_inferior): Update.
8477 * value.c (value_static_field, value_fn_field): Update.
8479 2014-02-26 Tom Tromey <tromey@redhat.com>
8481 * ada-lang.c (ada_update_initial_language): Update.
8482 (ada_main_name, ada_has_this_exception_support): Update.
8483 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8484 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8485 * arm-tdep.c (arm_skip_stub): Update.
8486 * auxv.c (ld_so_xfer_auxv): Update.
8487 * avr-tdep.c (avr_scan_prologue): Update.
8488 * ax-gdb.c (gen_var_ref): Update.
8489 * breakpoint.c (struct breakpoint_objfile_data)
8490 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8491 type to bound_minimal_symbol.
8492 (create_overlay_event_breakpoint)
8493 (create_longjmp_master_breakpoint)
8494 (create_std_terminate_master_breakpoint)
8495 (create_exception_master_breakpoint): Update.
8496 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8497 * c-exp.y (classify_name): Update.
8498 * coffread.c (coff_symfile_read): Update.
8499 * common/agent.c (agent_look_up_symbols): Update.
8500 * d-lang.c (d_main_name): Update.
8501 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8502 * dec-thread.c (enable_dec_thread): Update.
8503 * dwarf2loc.c (call_site_to_target_addr): Update.
8504 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8505 * eval.c (evaluate_subexp_standard): Update.
8506 * findvar.c (struct minsym_lookup_data) <result>: Change type
8507 to bound_minimal_symbol.
8509 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8510 * frame.c (inside_main_func): Update.
8511 * frv-tdep.c (frv_frame_this_id): Update.
8512 * gcore.c (call_target_sbrk): Update.
8513 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8514 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8516 * go-lang.c (go_main_name): Update.
8517 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8518 (hppa_hpux_find_import_stub_for_addr): Update.
8519 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8520 Update. Change return type.
8521 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8523 * jit.c (jit_breakpoint_re_set_internal): Update.
8524 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8526 * linux-nat.c (get_signo): Update.
8527 * linux-thread-db.c (inferior_has_bug): Update
8528 * m32c-tdep.c (m32c_return_value)
8529 (m32c_m16c_address_to_pointer): Update.
8530 * m32r-tdep.c (m32r_frame_this_id): Update.
8531 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8532 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8533 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8534 lookup_minimal_symbol. Change return type.
8535 (lookup_minimal_symbol): Remove.
8536 (lookup_bound_minimal_symbol): Update.
8537 (lookup_minimal_symbol_text): Change return type.
8538 (lookup_minimal_symbol_solib_trampoline): Change return type.
8539 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8540 (lookup_minimal_symbol_solib_trampoline): Change return type.
8541 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8542 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8543 (value_nsstring, find_imps): Update.
8544 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8545 * p-lang.c (pascal_main_name): Update.
8546 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8547 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8548 * proc-service.c (ps_pglobal_lookup): Update.
8549 * ravenscar-thread.c (get_running_thread_msymbol): Change
8551 (has_ravenscar_runtime, get_running_thread_id): Update.
8552 * remote.c (remote_check_symbols): Update.
8553 * sol-thread.c (ps_pglobal_lookup): Update.
8554 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8555 * solib-dsbt.c (lm_base): Update.
8556 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8558 * solib-irix.c (locate_base): Update.
8559 * solib-som.c (som_solib_create_inferior_hook)
8560 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8562 * solib-spu.c (spu_enable_break): Update.
8563 * solib-svr4.c (elf_locate_base, enable_break): Update.
8564 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8565 (flush_ea_cache): Update.
8566 * stabsread.c (define_symbol): Update.
8567 * symfile.c (simple_read_overlay_table): Update.
8568 * symtab.c (find_pc_sect_line): Update.
8569 * tracepoint.c (scope_info): Update.
8570 * tui-disasm.c (tui_get_begin_asm_address): Update.
8571 * value.c (value_static_field): Update.
8573 2014-02-26 Tom Tromey <tromey@redhat.com>
8575 * minsyms.c (prim_record_minimal_symbol_full): Use
8576 SET_MSYMBOL_VALUE_ADDRESS.
8577 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8578 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8579 SET_MSYMBOL_VALUE_ADDRESS.
8580 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8581 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8583 2014-02-26 Tom Tromey <tromey@redhat.com>
8585 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8586 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8587 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8588 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8589 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8590 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8591 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8592 * ada-lang.c (ada_main_name): Update.
8593 (ada_lookup_simple_minsym): Update.
8594 (ada_make_symbol_completion_list): Update.
8595 (ada_add_standard_exceptions): Update.
8596 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8597 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8598 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8599 * arm-tdep.c (skip_prologue_function): Update.
8600 (arm_skip_stack_protector, arm_skip_stub): Update.
8601 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8602 (arm_wince_skip_main_prologue): Update.
8603 * auxv.c (ld_so_xfer_auxv): Update.
8604 * avr-tdep.c (avr_scan_prologue): Update.
8605 * ax-gdb.c (gen_var_ref): Update.
8606 * block.c (call_site_for_pc): Update.
8607 * blockframe.c (get_pc_function_start): Update.
8608 (find_pc_partial_function_gnu_ifunc): Update.
8609 * breakpoint.c (create_overlay_event_breakpoint): Update.
8610 (create_longjmp_master_breakpoint): Update.
8611 (create_std_terminate_master_breakpoint): Update.
8612 (create_exception_master_breakpoint): Update.
8613 (resolve_sal_pc): Update.
8614 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8615 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8617 * c-valprint.c (c_val_print): Update.
8618 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8619 * coffread.c (coff_symfile_read): Update.
8620 * common/agent.c (agent_look_up_symbols): Update.
8621 * dbxread.c (find_stab_function_addr): Update.
8622 (end_psymtab): Update.
8623 * dwarf2loc.c (call_site_to_target_addr): Update.
8624 (func_verify_no_selftailcall): Update.
8625 (tailcall_dump): Update.
8626 (call_site_find_chain_1): Update.
8627 (dwarf_expr_reg_to_entry_parameter): Update.
8628 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8629 (elf_gnu_ifunc_resolve_by_got): Update.
8630 * f-valprint.c (info_common_command): Update.
8631 * findvar.c (read_var_value): Update.
8632 * frame.c (get_prev_frame_1): Update.
8633 (inside_main_func): Update.
8634 * frv-tdep.c (frv_skip_main_prologue): Update.
8635 (frv_frame_this_id): Update.
8636 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8637 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8638 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8639 (gnuv3_skip_trampoline): Update.
8640 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8641 (hppa64_hpux_in_solib_call_trampoline): Update.
8642 (hppa_hpux_skip_trampoline_code): Update.
8643 (hppa64_hpux_search_dummy_call_sequence): Update.
8644 (hppa_hpux_find_import_stub_for_addr): Update.
8645 (hppa_hpux_find_dummy_bpaddr): Update.
8646 * hppa-tdep.c (hppa_symbol_address)
8647 (hppa_lookup_stub_minimal_symbol): Update.
8648 * i386-tdep.c (i386_skip_main_prologue): Update.
8649 (i386_pe_skip_trampoline_code): Update.
8650 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8651 * infcall.c (get_function_name): Update.
8652 * infcmd.c (until_next_command): Update.
8653 * jit.c (jit_breakpoint_re_set_internal): Update.
8654 (jit_inferior_init): Update.
8655 * linespec.c (minsym_found): Update.
8656 (add_minsym): Update.
8657 * linux-fork.c (info_checkpoints_command): Update.
8658 * linux-nat.c (get_signo): Update.
8659 * linux-thread-db.c (inferior_has_bug): Update.
8660 * m32c-tdep.c (m32c_return_value): Update.
8661 (m32c_m16c_address_to_pointer): Update.
8662 (m32c_m16c_pointer_to_address): Update.
8663 * m32r-tdep.c (m32r_frame_this_id): Update.
8664 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8665 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8666 * maint.c (maintenance_translate_address): Update.
8667 * minsyms.c (add_minsym_to_hash_table): Update.
8668 (add_minsym_to_demangled_hash_table): Update.
8669 (msymbol_objfile): Update.
8670 (lookup_minimal_symbol): Update.
8671 (iterate_over_minimal_symbols): Update.
8672 (lookup_minimal_symbol_text): Update.
8673 (lookup_minimal_symbol_by_pc_name): Update.
8674 (lookup_minimal_symbol_solib_trampoline): Update.
8675 (lookup_minimal_symbol_by_pc_section_1): Update.
8676 (lookup_minimal_symbol_and_objfile): Update.
8677 (prim_record_minimal_symbol_full): Update.
8678 (compare_minimal_symbols): Update.
8679 (compact_minimal_symbols): Update.
8680 (build_minimal_symbol_hash_tables): Update.
8681 (install_minimal_symbols): Update.
8682 (terminate_minimal_symbol_table): Update.
8683 (find_solib_trampoline_target): Update.
8684 (minimal_symbol_upper_bound): Update.
8685 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8686 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8687 (mips_skip_pic_trampoline_code): Update.
8688 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8689 * objc-lang.c (selectors_info): Update.
8690 (classes_info): Update.
8691 (find_methods): Update.
8692 (find_imps): Update.
8693 (find_objc_msgsend): Update.
8694 * objfiles.c (objfile_relocate1): Update.
8695 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8696 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8697 * p-valprint.c (pascal_val_print): Update.
8698 * parse.c (write_exp_msymbol): Update.
8699 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8700 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8701 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8702 * printcmd.c (build_address_symbolic): Update.
8704 (address_info): Update.
8705 * proc-service.c (ps_pglobal_lookup): Update.
8706 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8707 (find_pc_sect_psymtab): Update.
8708 * python/py-framefilter.c (py_print_frame): Update.
8709 * ravenscar-thread.c (get_running_thread_id): Update.
8710 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8712 * remote.c (remote_check_symbols): Update.
8713 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8714 (rs6000_skip_trampoline_code): Update.
8715 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8716 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8717 * solib-dsbt.c (lm_base): Update.
8718 * solib-frv.c (lm_base): Update.
8720 * solib-irix.c (locate_base): Update.
8721 * solib-som.c (som_solib_create_inferior_hook): Update.
8722 (som_solib_desire_dynamic_linker_symbols): Update.
8723 (link_map_start): Update.
8724 * solib-spu.c (spu_enable_break): Update.
8725 (ocl_enable_break): Update.
8726 * solib-svr4.c (elf_locate_base): Update.
8727 (enable_break): Update.
8728 * spu-tdep.c (spu_get_overlay_table): Update.
8729 (spu_catch_start): Update.
8730 (flush_ea_cache): Update.
8731 * stabsread.c (define_symbol): Update.
8732 (scan_file_globals): Update.
8733 * stack.c (find_frame_funname): Update.
8734 (frame_info): Update.
8735 * symfile.c (simple_read_overlay_table): Update.
8736 (simple_overlay_update): Update.
8737 * symmisc.c (dump_msymbols): Update.
8738 * symtab.c (fixup_section): Update.
8739 (find_pc_sect_line): Update.
8740 (skip_prologue_sal): Update.
8741 (search_symbols): Update.
8742 (print_msymbol_info): Update.
8743 (rbreak_command): Update.
8744 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8745 (completion_list_objc_symbol): Update.
8746 (default_make_symbol_completion_list_break_on): Update.
8747 * tracepoint.c (scope_info): Update.
8748 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8749 (tui_get_begin_asm_address): Update.
8750 * valops.c (find_function_in_inferior): Update.
8751 * value.c (value_static_field): Update.
8752 (value_fn_field): Update.
8754 2014-02-26 Tom Tromey <tromey@redhat.com>
8756 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8757 bound minimal symbols. Move code that knows about minsym
8759 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8761 * minsyms.h (minimal_symbol_upper_bound): Declare.
8762 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8763 minimal_symbol_upper_bound.
8765 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8767 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8768 Use the type's name if its basic type does not have a tag.
8770 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8772 * dwarf2read.c (read_subrange_type): Add comment.
8774 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8776 * dwarf2read.c (update_enumeration_type_from_children): New
8777 function, mostly extracted from process_structure_scope.
8778 (read_enumeration_type): Call update_enumeration_type_from_children.
8779 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8780 and flag_flag_enum fields.
8782 2014-02-26 Pedro Alves <palves@redhat.com>
8784 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8785 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8786 to_xfer_partial method.
8788 2014-02-26 Pedro Alves <palves@redhat.com>
8790 * target.c (complete_target_initialization): Don't install
8791 default_xfer_partial as to_xfer_partial hook.
8793 (update_current_target): Don't INHERIT nor de_fault
8794 deprecated_xfer_memory. Delete de_fault macro.
8795 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8796 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8797 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8800 2014-02-26 Pedro Alves <palves@redhat.com>
8802 * go32-nat.c (my_write_child): New function.
8803 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8804 (go32_xfer_partial): New function.
8805 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8806 Instead install a to_xfer_partial hook.
8808 2014-02-26 Pedro Alves <palves@redhat.com>
8810 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8811 to_xfer_partial helper. Rewrite.
8812 (procfs_xfer_partial): New function.
8813 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8814 Install a to_xfer_partial hook.
8816 2014-02-26 Pedro Alves <palves@redhat.com>
8818 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8819 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8820 (m32r_xfer_partial): New function.
8821 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8822 Install a to_xfer_partial hook.
8824 2014-02-26 Pedro Alves <palves@redhat.com>
8826 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8828 (mips_xfer_partial): New function.
8829 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8830 hook. Install a to_xfer_partial hook.
8832 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8834 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8835 * gdbtypes.c (create_array_type_with_stride): New function,
8836 renaming create_array_type, but with an added parameter
8837 called "bit_stride".
8838 (create_array_type): Re-implement using
8839 create_array_type_with_stride.
8840 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8841 and DW_AT_bit_stride attributes.
8843 2014-02-26 Pedro Alves <palves@redhat.com>
8845 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8846 task-specific breakpoints.
8848 2014-02-25 Pedro Alves <palves@redhat.com>
8850 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8851 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8853 2014-02-25 Stan Shebs <stan@codesourcery.com>
8855 * defs.h: Annotate comments for Doxygen.
8857 2014-02-25 Tom Tromey <tromey@redhat.com>
8859 * target.h (target_ignore): Don't declare.
8860 * target.c (target_ignore): Remove.
8862 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8865 * auto-load.c (auto_load_objfile_script_1): Change filename to
8868 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8870 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8871 documentation. Adjust prototype to match the target_ops
8872 to_xfer_partial method. Adjust implementation accordingly.
8874 2014-02-25 Hui Zhu <hui@codesourcery.com>
8876 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8879 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8881 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8882 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8883 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8884 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8885 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8886 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8887 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8888 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8890 (rl78_register_type): Use a data pointer type for SP and
8891 new pseudo registers mentioned above. Use a 16 bit integer
8892 type for all other register pairs.
8893 (rl78_register_name, rl78_g10_register_name): Update for
8894 new pseudo registers.
8895 (rl78_pseudo_register_read): Likewise.
8896 (rl78_pseudo_register_write): Likewise.
8897 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8898 to the newly added pseudo registers.
8900 2014-02-24 Doug Evans <dje@google.com>
8902 * value.c (record_latest_value): Fix comment.
8903 * printcmd.c (print_command_1): Remove code to handle -1 return from
8904 record_latest_value.
8906 2014-02-24 Pedro Alves <palves@redhat.com>
8908 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8909 deprecated_xfer_memory hook.
8910 (procfs_xfer_partial): Call procfs_xfer_memory instead
8911 of the deprecated_xfer_memory target hook.
8912 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8915 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8917 * windows-nat.c (windows_xfer_shared_libraries): Return
8918 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8919 requested object is TARGET_OBJECT_LIBRARIES.
8921 2014-02-24 Yao Qi <yao@codesourcery.com>
8923 * target.h (enum target_xfer_status)
8924 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8925 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8927 * corefile.c (memory_error_message): User updated.
8928 * exec.c (section_table_read_available_memory): Likewise.
8929 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8930 * target.c (target_xfer_status_to_string): Likewise.
8931 (raw_memory_xfer_partial): Likewise.
8932 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8933 * valops.c (read_value_memory): Likewise.
8934 * exec.h: Update comments.
8936 2014-02-24 Yao Qi <yao@codesourcery.com>
8938 * target.c (target_xfer_status_to_string): Rename argument err
8940 * target.h (target_xfer_status_to_string): Update declaration.
8941 Replace target_xfer_error_to_string with
8942 target_xfer_status_to_string in comment.
8944 2014-02-24 Yao Qi <yao@codesourcery.com>
8946 * mips-linux-nat.c (super_close): Update its type.
8947 (mips_linux_close): Pass 'self' to super_close.
8949 2014-02-24 Yao Qi <yao@codesourcery.com>
8951 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8952 * corefile.c (read_memory): Adjusted.
8953 * target.c (target_write_with_progress): Adjusted.
8955 2014-02-23 Yao Qi <yao@codesourcery.com>
8959 2013-10-25 Yao Qi <yao@codesourcery.com>
8961 * remote.c (remote_traceframe_info): Return early if
8962 traceframe is not selected.
8964 2013-07-19 Yao Qi <yao@codesourcery.com>
8966 * target.c (update_current_target): Change the default action
8967 of 'to_traceframe_info' from tcomplain to return_zero.
8968 * target.h (struct target_ops) <to_traceframe_info>: Add more
8971 2014-02-23 Yao Qi <yao@codesourcery.com>
8973 * valops.c (read_value_memory): Rewrite it. Call
8974 target_xfer_partial in a loop.
8975 * exec.h (section_table_available_memory): Remove declaration.
8976 Move comments to ...
8977 * exec.c (section_table_available_memory): ... here. Make it
8980 2014-02-23 Yao Qi <yao@codesourcery.com>
8982 * exec.c (section_table_read_available_memory): New function.
8983 * exec.h (section_table_read_available_memory): Declare.
8984 * ctf.c (ctf_xfer_partial): Call
8985 section_table_read_available_memory.
8986 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8988 2014-02-23 Yao Qi <yao@codesourcery.com>
8990 * ctf.c (ctf_xfer_partial): Move code to ...
8991 * exec.c (exec_read_partial_read_only): ... it. New function.
8992 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8993 * tracefile.c: Include "exec.h".
8994 * exec.h (exec_read_partial_read_only): Declare.
8996 2014-02-23 Yao Qi <yao@codesourcery.com>
8998 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8999 (tfile_has_memory): Remove.
9000 (init_tfile_ops): Don't set fields to_has_all_memory and
9001 to_has_memory of tfile_ops.
9002 * tracefile.c (tracefile_has_all_memory): New function.
9003 (tracefile_has_memory): New function.
9004 (init_tracefile_ops): Initialize fields to_has_all_memory and
9005 to_has_memory of 'ops'.
9007 2014-02-23 Yao Qi <yao@codesourcery.com>
9009 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9010 (ctf_thread_alive, ctf_get_trace_status): Remove.
9011 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9013 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9014 (tfile_has_stack, tfile_has_registers): Remove.
9015 (tfile_thread_alive): Remove.
9016 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9018 * tracefile.c (tracefile_has_stack): New function.
9019 (tracefile_has_registers): New function.
9020 (tracefile_thread_alive): New function.
9021 (tracefile_get_trace_status): New function.
9022 (init_tracefile_ops): New function.
9023 * tracefile.h (init_tracefile_ops): Declare.
9025 2014-02-23 Yao Qi <yao@codesourcery.com>
9027 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9028 (O_LARGEFILE): Likewise.
9029 (tfile_ops): Likewise.
9030 (TRACE_HEADER_SIZE): Likewise.
9031 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9032 (cur_data_size): Likewise.
9033 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9034 (tfile_close, tfile_files_info): Likewise.
9035 (tfile_get_trace_status): Likewise.
9036 (tfile_get_tracepoint_status): Likewise.
9037 (tfile_get_traceframe_address): Likewise.
9038 (tfile_trace_find, match_blocktype): Likewise.
9039 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9040 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9041 (tfile_get_trace_state_variable_value): Likewise.
9042 (tfile_has_all_memory, tfile_has_memory): Likewise.
9043 (tfile_has_stack, tfile_has_registers): Likewise.
9044 (tfile_thread_alive, build_traceframe_info): Likewise.
9045 (tfile_traceframe_info, init_tfile_ops): Likewise.
9046 (_initialize_tracepoint): Don't call init_tfile_ops
9047 and add_target_with_completer.
9048 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9049 exec.h, completer.h and filenames.h.
9050 (_initialize_tracefile_tfile): New function.
9052 2014-02-23 Yao Qi <yao@codesourcery.com>
9054 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9056 (HFILES_NO_SRCDIR): Add tracefile.h.
9057 * ctf.c: Include "tracefile.h".
9058 * tracefile.h: New file.
9059 * tracefile.c: New file
9060 * tracefile-tfile.c: New file.
9061 * tracepoint.c: Include "tracefile.h".
9062 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9063 (stop_reason_names): Add const.
9064 (trace_file_writer_xfree): Move it to tracefile.c.
9065 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9066 (trace_save_ctf): Likewise.
9067 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9068 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9069 (tfile_write_header, tfile_write_regblock_type): Likewise.
9070 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9071 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9072 (tfile_write_raw_data, tfile_end): Likewise.
9073 (tfile_trace_file_writer_new): Likewise.
9074 (free_uploaded_tp): Make it extern.
9075 (free_uploaded_tsv): Make it extern.
9076 (_initialize_tracepoint): Move code to register command 'tsave'
9078 * tracepoint.h (stop_reason_names): Declare.
9079 (struct trace_frame_write_ops): Move it to tracefile.h.
9080 (struct trace_file_write_ops): Likewise.
9081 (struct trace_file_writer): Likewise.
9082 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9084 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9087 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9089 (get_cores_used_by_process): New parameter num_cores, use it.
9090 (linux_xfer_osdata_processes): Pass num_cores to it.
9091 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9094 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9096 * target.c (memory_xfer_partial): Fix length arg in call to
9097 breakpoint_xfer_memory.
9099 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9102 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9103 number comes after the + or - signs. Adjust length of register
9104 name to be extracted.
9106 2014-02-20 Tom Tromey <tromey@redhat.com>
9108 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9109 (ada_varobj_ops): Mark "extern".
9111 2014-02-20 Tom Tromey <tromey@redhat.com>
9113 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9115 2014-02-20 Doug Evans <xdje42@gmail.com>
9117 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9118 All callers updated.
9119 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9120 All callers updated.
9121 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9122 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9124 2014-02-20 lin zuojian <manjian2006@gmail.com>
9125 Joel Brobecker <brobecker@adacore.com>
9126 Doug Evans <xdje42@gmail.com>
9129 * dwarf2read.c (struct die_info): New member in_process.
9130 (reset_die_in_process): New function.
9131 (process_die): Set it at the start, reset when returning.
9132 (inherit_abstract_dies): Only call process_die if origin_child_die
9133 not already being processed.
9135 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9137 * windows-nat.c (handle_unload_dll): Add function documentation.
9138 (do_initial_windows_stuff): Add comment explaining why we wait
9139 until after inferior initialization has finished before
9140 processing all DLLs.
9142 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9144 * windows-nat.c (get_module_name): Delete.
9145 (windows_get_exec_module_filename): New function, mostly
9146 inspired from get_module_name.
9147 (windows_pid_to_exec_file): Replace call to get_module_name
9148 by call to windows_get_exec_module_filename.
9150 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9152 * windows-nat.c (handle_load_dll): Rewrite this function's
9153 introductory comment. Remove code using get_module_name
9154 to get the DLL's name.
9156 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9158 * windows-nat.c (get_windows_debug_event): Ignore
9159 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9160 if windows_initialization_done == 0.
9161 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9162 Adjust implementation to always load all DLLs.
9163 (do_initial_windows_stuff): Replace call to
9164 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9166 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9168 * windows-nat.c (_initialize_windows_nat): Deprecate the
9169 "dll-symbols" command. Turn the "add-shared-symbol-files"
9170 and "assf" aliases into commands, and deprecate them as well.
9171 * NEWS: Add entry explaining that "dll-symbols" and its two
9172 aliases are now deprecated.
9174 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9176 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9177 new-line in debug string. Remove trailing spaces.
9179 2014-02-19 Stan Shebs <stan@codesourcery.com>
9181 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9183 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9185 * NEWS: Add entry for the new feature
9186 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9189 2014-02-19 Stan Shebs <stan@codesourcery.com>
9191 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9193 2014-02-19 Pedro Alves <palves@redhat.com>
9195 * common/ptid.h (struct ptid): Mention that process_stratum
9196 targets should prefer ptid.lwp.
9198 2014-02-19 Pedro Alves <palves@redhat.com>
9200 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9201 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9202 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9203 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9204 store remote thread ids rather than ptid.tid.
9205 (_initialize_remote): Adjust.
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9209 * target.c (target_get_unwinder): Rewrite.
9210 (target_get_tailcall_unwinder): Rewrite.
9211 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9212 (record_btrace_to_get_tailcall_unwinder): New function.
9213 (init_record_btrace_ops): Update.
9214 * target.h (struct target_ops) <to_get_unwinder,
9215 to_get_tailcall_unwinder>: Now function pointers. Use
9216 TARGET_DEFAULT_RETURN.
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9220 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9222 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9228 * target-delegates.c: Rebuild.
9229 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9230 TARGET_DEFAULT_FUNC.
9231 * target.c (default_target_decr_pc_after_break): Rename from
9232 forward_target_decr_pc_after_break. Simplify.
9233 (target_decr_pc_after_break): Rely on delegation.
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9237 * target.c (update_current_target): Do not INHERIT to_doc or
9238 to_magic. Do not de_fault to_open or to_close.
9240 2014-02-19 Tom Tromey <tromey@redhat.com>
9242 * gcore.h (objfile_find_memory_regions): Declare.
9243 * gcore.c (objfile_find_memory_regions): No longer static. Add
9245 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9246 * exec.c: Include gcore.h.
9247 (exec_set_find_memory_regions): Remove.
9248 (exec_find_memory_regions): Remove.
9249 (exec_do_find_memory_regions): Remove.
9250 (init_exec_ops): Update.
9251 * defs.h (exec_set_find_memory_regions): Remove.
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9255 * target-delegates.c: Rebuild.
9256 * target.h (struct target_ops) <to_extra_thread_info,
9257 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9258 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9259 not 0, in TARGET_DEFAULT_RETURN.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target.c (complete_target_initialization): Remove casts. Use
9264 return_zero_has_execution.
9265 (return_zero): Add "ignore" argument.
9266 (return_zero_has_execution): New function.
9267 (init_dummy_target): Remove casts. Use
9268 return_zero_has_execution.
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9272 * target.c (update_current_target): Update comments. Do not
9275 2014-02-19 Tom Tromey <tromey@redhat.com>
9277 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9279 * corelow.c (core_read_description): Delegate when needed.
9280 * remote.c (remote_read_description): Delegate when needed.
9281 * target-delegates.c: Rebuild.
9282 * target.c (target_read_description): Rewrite.
9283 * target.h (struct target_ops) <to_read_description>: Update
9284 comment. Use TARGET_DEFAULT_RETURN.
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * target-delegates.c: Rebuild.
9289 * target.c (update_current_target): Don't inherit or default
9291 (find_default_run_target): Check against delegate_can_run.
9292 * target.h (struct target_ops) <to_can_run>: Use
9293 TARGET_DEFAULT_RETURN.
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * target-delegates.c: Rebuild.
9298 * target.c (target_disconnect): Unconditionally delegate.
9299 * target.h (struct target_ops) <to_disconnect>: Use
9300 TARGET_DEFAULT_NORETURN.
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * record.c (record_stop): Unconditionally delegate.
9305 * target-delegates.c: Rebuild.
9306 * target.c (target_stop_recording): Unconditionally delegate.
9307 * target.h (struct target_ops) <to_stop_recording>: Use
9308 TARGET_DEFAULT_IGNORE.
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9312 * target-delegates.c: Rebuild.
9313 * target.c (target_enable_btrace): Unconditionally delegate.
9314 * target.h (struct target_ops) <to_enable_btrace>: Use
9315 TARGET_DEFAULT_NORETURN.
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9319 * target-delegates.c: Rebuild.
9320 * target.c (target_read_btrace): Unconditionally delegate.
9321 * target.h (struct target_ops) <to_read_btrace>: Use
9322 TARGET_DEFAULT_NORETURN.
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * target-delegates.c: Rebuild.
9327 * target.c (target_teardown_btrace): Unconditionally delegate.
9328 * target.h (struct target_ops) <to_teardown_btrace>: Use
9329 TARGET_DEFAULT_NORETURN.
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9333 * target-delegates.c: Rebuild.
9334 * target.c (target_disable_btrace): Unconditionally delegate.
9335 * target.h (struct target_ops) <to_disable_btrace>: Use
9336 TARGET_DEFAULT_NORETURN.
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9340 * target-delegates.c: Rebuild.
9341 * target.c (default_search_memory): New function.
9342 (simple_search_memory): Update comment.
9343 (target_search_memory): Unconditionally delegate.
9344 * target.h (struct target_ops) <to_search_memory>: Use
9345 TARGET_DEFAULT_FUNC.
9347 2014-02-19 Tom Tromey <tromey@redhat.com>
9349 * auxv.c (default_auxv_parse): No longer static.
9350 (target_auxv_parse): Unconditionally delegate.
9351 * auxv.h (default_auxv_parse): Declare.
9352 * target-delegates.c: Rebuild.
9353 * target.c: Include auxv.h.
9354 * target.h (struct target_ops) <to_auxv_parse>: Use
9355 TARGET_DEFAULT_FUNC.
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * target-delegates.c: Rebuild.
9360 * target.c (target_memory_map): Unconditionally delegate.
9361 * target.h (struct target_ops) <to_memory_map>: Use
9362 TARGET_DEFAULT_RETURN.
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9366 * target-delegates.c: Rebuild.
9367 * target.c (target_thread_alive): Unconditionally delegate.
9368 * target.h (struct target_ops) <to_thread_alive>: Use
9369 TARGET_DEFAULT_RETURN.
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9373 * target-delegates.c: Rebuild.
9374 * target.c (target_save_record): Unconditionally delegate.
9375 * target.h (struct target_ops) <to_save_record>: Use
9376 TARGET_DEFAULT_NORETURN.
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target-delegates.c: Rebuild.
9381 * target.c (target_delete_record): Unconditionally delegate.
9382 * target.h (struct target_ops) <to_delete_record>: Use
9383 TARGET_DEFAULT_NORETURN.
9385 2014-02-19 Tom Tromey <tromey@redhat.com>
9387 * target-delegates.c: Rebuild.
9388 * target.c (target_record_is_replaying): Unconditionally
9390 * target.h (struct target_ops) <to_record_is_replaying>: Use
9391 TARGET_DEFAULT_RETURN.
9393 2014-02-19 Tom Tromey <tromey@redhat.com>
9395 * target-delegates.c: Rebuild.
9396 * target.c (target_goto_record_begin): Unconditionally delegate.
9397 * target.h (struct target_ops) <to_goto_record_begin>: Use
9398 TARGET_DEFAULT_NORETURN.
9400 2014-02-19 Tom Tromey <tromey@redhat.com>
9402 * target-delegates.c: Rebuild.
9403 * target.c (target_goto_record_end): Unconditionally delegate.
9404 * target.h (struct target_ops) <to_goto_record_end>: Use
9405 TARGET_DEFAULT_NORETURN.
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9409 * target-delegates.c: Rebuild.
9410 * target.c (target_goto_record): Unconditionally delegate.
9411 * target.h (struct target_ops) <to_goto_record>: Use
9412 TARGET_DEFAULT_NORETURN.
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9416 * target-delegates.c: Rebuild.
9417 * target.c (target_insn_history): Unconditionally delegate.
9418 * target.h (struct target_ops) <to_insn_history>: Use
9419 TARGET_DEFAULT_NORETURN.
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9423 * target-delegates.c: Rebuild.
9424 * target.c (target_insn_history_from): Unconditionally delegate.
9425 * target.h (struct target_ops) <to_insn_history_from>: Use
9426 TARGET_DEFAULT_NORETURN.
9428 2014-02-19 Tom Tromey <tromey@redhat.com>
9430 * target-delegates.c: Rebuild.
9431 * target.c (target_insn_history_range): Unconditionally delegate.
9432 * target.h (struct target_ops) <to_insn_history_range>: Use
9433 TARGET_DEFAULT_NORETURN.
9435 2014-02-19 Tom Tromey <tromey@redhat.com>
9437 * target-delegates.c: Rebuild.
9438 * target.c (target_call_history): Unconditionally delegate.
9439 * target.h (struct target_ops) <to_call_history>: Use
9440 TARGET_DEFAULT_NORETURN.
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9444 * target-delegates.c: Rebuild.
9445 * target.c (target_call_history_from): Unconditionally delegate.
9446 * target.h (struct target_ops) <to_call_history_from>: Use
9447 TARGET_DEFAULT_NORETURN.
9449 2014-02-19 Tom Tromey <tromey@redhat.com>
9451 * target-delegates.c: Rebuild.
9452 * target.c (target_call_history_range): Unconditionally delegate.
9453 * target.h (struct target_ops) <to_call_history_range>: Use
9454 TARGET_DEFAULT_NORETURN.
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9458 * target-delegates.c: Rebuild.
9459 * target.c (target_verify_memory): Unconditionally delegate.
9460 * target.h (struct target_ops) <to_verify_memory>: Use
9461 TARGET_DEFAULT_NORETURN.
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9465 * target-delegates.c: Rebuild.
9466 * target.c (target_core_of_thread): Unconditionally delegate.
9467 * target.h (struct target_ops) <to_core_of_thread>: Use
9468 TARGET_DEFAULT_RETURN.
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9472 * target-delegates.c: Rebuild.
9473 * target.c (target_flash_done): Unconditionally delegate.
9474 * target.h (struct target_ops) <to_flash_done>: Use
9475 TARGET_DEFAULT_NORETURN.
9477 2014-02-19 Tom Tromey <tromey@redhat.com>
9479 * target-delegates.c: Rebuild.
9480 * target.c (target_flash_erase): Unconditionally delegate.
9481 * target.h (struct target_ops) <to_flash_erase>: Use
9482 TARGET_DEFAULT_NORETURN.
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9486 * target-delegates.c: Rebuild.
9487 * target.c (target_get_section_table): Unconditionally delegate.
9488 * target.h (struct target_ops) <to_get_section_table>: Use
9489 TARGET_DEFAULT_RETURN.
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9493 * target-delegates.c: Rebuild.
9494 * target.c (target_pid_to_str): Unconditionally delegate.
9495 (init_dummy_target): Don't initialize to_pid_to_str.
9496 (default_pid_to_str): Rename from dummy_pid_to_str.
9497 * target.h (struct target_ops) <to_pid_to_str>: Use
9498 TARGET_DEFAULT_FUNC.
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9502 * target-delegates.c: Rebuild.
9503 * target.c (target_find_new_threads): Unconditionally delegate.
9504 * target.h (struct target_ops) <to_find_new_threads>: Use
9505 TARGET_DEFAULT_RETURN.
9507 2014-02-19 Tom Tromey <tromey@redhat.com>
9509 * target-delegates.c: Rebuild.
9510 * target.c (target_program_signals): Unconditionally delegate.
9511 * target.h (struct target_ops) <to_program_signals>: Use
9512 TARGET_DEFAULT_IGNORE.
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9516 * target-delegates.c: Rebuild.
9517 * target.c (target_pass_signals): Unconditionally delegate.
9518 * target.h (struct target_ops) <to_pass_signals>: Use
9519 TARGET_DEFAULT_IGNORE.
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9523 * target-delegates.c: Rebuild.
9524 * target.c (default_mourn_inferior): New function.
9525 (target_mourn_inferior): Unconditionally delegate.
9526 * target.h (struct target_ops) <to_mourn_inferior>: Use
9527 TARGET_DEFAULT_FUNC.
9529 2014-02-19 Tom Tromey <tromey@redhat.com>
9531 * target-delegates.c: Rebuild.
9532 * target.c (default_follow_fork): New function.
9533 (target_follow_fork): Unconditionally delegate.
9534 * target.h (struct target_ops) <to_follow_fork>: Use
9535 TARGET_DEFAULT_FUNC.
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9539 * target-delegates.c: Rebuild.
9540 * target.c (target_kill): Unconditionally delegate.
9541 * target.h (struct target_ops) <to_kill>: Use
9542 TARGET_DEFAULT_NORETURN.
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9546 * target-delegates.c: Rebuild.
9547 * target.c (target_masked_watch_num_registers): Unconditionally
9549 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9550 Use TARGET_DEFAULT_RETURN.
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9554 * target-delegates.c: Rebuild.
9555 * target.c (target_remove_mask_watchpoint): Unconditionally
9557 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9558 TARGET_DEFAULT_RETURN.
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9562 * target-delegates.c: Rebuild.
9563 * target.c (target_insert_mask_watchpoint): Unconditionally
9565 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9566 TARGET_DEFAULT_RETURN.
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9570 * target-delegates.c: Rebuild.
9571 * target.c (target_ranged_break_num_registers): Unconditionally
9573 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9574 Use TARGET_DEFAULT_RETURN.
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * target-delegates.c: Rebuild.
9579 * target.c (target_fetch_registers): Unconditionally delegate.
9580 * target.h (struct target_ops) <to_fetch_registers>: Use
9581 TARGET_DEFAULT_NORETURN.
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9585 * target-delegates.c: Rebuild.
9586 * target.c (update_current_target): Don't inherit or default
9588 * target.h (struct target_ops) <to_stop>: Use
9589 TARGET_DEFAULT_IGNORE.
9591 2014-02-19 Tom Tromey <tromey@redhat.com>
9593 * target-delegates.c: Rebuild.
9594 * target.c (update_current_target): Don't inherit or default
9595 to_can_run_breakpoint_commands.
9596 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9597 Use TARGET_DEFAULT_RETURN.
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * target-delegates.c: Rebuild.
9602 * target.c (update_current_target): Don't inherit or default
9603 to_supports_evaluation_of_breakpoint_conditions.
9604 * target.h (struct target_ops)
9605 <to_supports_evaluation_of_breakpoint_conditions>: Use
9606 TARGET_DEFAULT_RETURN.
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9610 * target-delegates.c: Rebuild.
9611 * target.c (update_current_target): Don't inherit or default
9612 to_augmented_libraries_svr4_read.
9613 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9614 Use TARGET_DEFAULT_RETURN.
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9618 * target-delegates.c: Rebuild.
9619 * target.c (update_current_target): Don't inherit or default
9621 * target.h (struct target_ops) <to_can_use_agent>: Use
9622 TARGET_DEFAULT_RETURN.
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9626 * target-delegates.c: Rebuild.
9627 * target.c (update_current_target): Don't inherit or default
9629 * target.h (struct target_ops) <to_use_agent>: Use
9630 TARGET_DEFAULT_NORETURN.
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target-delegates.c: Rebuild.
9635 * target.c (update_current_target): Don't inherit or default
9637 (return_null): Remove.
9638 * target.h (struct target_ops) <to_traceframe_info>: Use
9639 TARGET_DEFAULT_RETURN.
9641 2014-02-19 Tom Tromey <tromey@redhat.com>
9643 * target-delegates.c: Rebuild.
9644 * target.c (update_current_target): Don't inherit or default
9645 to_static_tracepoint_markers_by_strid.
9646 * target.h (struct target_ops)
9647 <to_static_tracepoint_markers_by_strid>: Use
9648 TARGET_DEFAULT_NORETURN.
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * target-delegates.c: Rebuild.
9653 * target.c (update_current_target): Don't inherit or default
9654 to_static_tracepoint_marker_at.
9655 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9656 Use TARGET_DEFAULT_RETURN.
9658 2014-02-19 Tom Tromey <tromey@redhat.com>
9660 * target-delegates.c: Rebuild.
9661 * target.c (update_current_target): Don't inherit or default
9663 * target.h (struct target_ops) <to_set_permissions>: Use
9664 TARGET_DEFAULT_IGNORE.
9666 2014-02-19 Tom Tromey <tromey@redhat.com>
9668 * target-delegates.c: Rebuild.
9669 * target.c (update_current_target): Don't inherit or default
9671 * target.h (struct target_ops) <to_get_tib_address>: Use
9672 TARGET_DEFAULT_NORETURN.
9674 2014-02-19 Tom Tromey <tromey@redhat.com>
9676 * target-delegates.c: Rebuild.
9677 * target.c (update_current_target): Don't inherit or default
9679 * target.h (struct target_ops) <to_set_trace_notes>: Use
9680 TARGET_DEFAULT_RETURN.
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9684 * target-delegates.c: Rebuild.
9685 * target.c (update_current_target): Don't initialize
9686 to_set_trace_buffer_size.
9687 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9688 TARGET_DEFAULT_IGNORE.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * target-delegates.c: Rebuild.
9693 * target.c (update_current_target): Don't inherit or default
9694 to_set_circular_trace_buffer.
9695 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9696 TARGET_DEFAULT_IGNORE.
9698 2014-02-19 Tom Tromey <tromey@redhat.com>
9700 * target-delegates.c: Rebuild.
9701 * target.c (update_current_target): Don't inherit or default
9702 to_set_disconnected_tracing.
9703 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9704 TARGET_DEFAULT_IGNORE.
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9708 * target-delegates.c: Rebuild.
9709 * target.c (update_current_target): Don't inherit or default
9710 to_get_min_fast_tracepoint_insn_len.
9711 (return_minus_one): Remove.
9712 * target.h (struct target_ops)
9713 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target-delegates.c: Rebuild.
9718 * target.c (update_current_target): Don't inherit or default
9719 to_get_raw_trace_data.
9720 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9721 TARGET_DEFAULT_NORETURN.
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9725 * target-delegates.c: Rebuild.
9726 * target.c (update_current_target): Don't inherit or default
9727 to_upload_trace_state_variables.
9728 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9729 Use TARGET_DEFAULT_RETURN.
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9733 * target-delegates.c: Rebuild.
9734 * target.c (update_current_target): Don't inherit or default
9735 to_upload_tracepoints.
9736 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9737 TARGET_DEFAULT_RETURN.
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target-delegates.c: Rebuild.
9742 * target.c (update_current_target): Don't inherit or default
9744 * target.h (struct target_ops) <to_save_trace_data>: Use
9745 TARGET_DEFAULT_NORETURN.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target-delegates.c: Rebuild.
9750 * target.c (update_current_target): Don't inherit or default
9751 to_get_trace_state_variable_value.
9752 * target.h (struct target_ops)
9753 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9757 * target-delegates.c: Rebuild.
9758 * target.c (update_current_target): Don't inherit or default
9760 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9762 2014-02-19 Tom Tromey <tromey@redhat.com>
9764 * target-delegates.c: Rebuild.
9765 * target.c (update_current_target): Don't inherit or default
9767 * target.h (struct target_ops) <to_trace_stop>: Use
9768 TARGET_DEFAULT_NORETURN.
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9772 * target-delegates.c: Rebuild.
9773 * target.c (update_current_target): Don't inherit or default
9774 to_get_tracepoint_status.
9775 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9776 TARGET_DEFAULT_NORETURN.
9778 2014-02-19 Tom Tromey <tromey@redhat.com>
9780 * target-delegates.c: Rebuild.
9781 * target.c (update_current_target): Don't inherit or default
9782 to_get_trace_status.
9783 * target.h (struct target_ops) <to_get_trace_status>: Use
9784 TARGET_DEFAULT_RETURN.
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9788 * target-delegates.c: Rebuild.
9789 * target.c (update_current_target): Don't inherit or default
9791 * target.h (struct target_ops) <to_trace_start>: Use
9792 TARGET_DEFAULT_NORETURN.
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9796 * target-delegates.c: Rebuild.
9797 * target.c (update_current_target): Don't inherit or default
9798 to_trace_set_readonly_regions.
9799 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9800 Use TARGET_DEFAULT_NORETURN.
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9804 * target-delegates.c: Rebuild.
9805 * target.c (update_current_target): Don't inherit or default
9806 to_disable_tracepoint.
9807 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9808 TARGET_DEFAULT_NORETURN.
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9812 * target-delegates.c: Rebuild.
9813 * target.c (update_current_target): Don't inherit or default
9814 to_enable_tracepoint.
9815 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9816 TARGET_DEFAULT_NORETURN.
9818 2014-02-19 Tom Tromey <tromey@redhat.com>
9820 * target-delegates.c: Rebuild.
9821 * target.c (update_current_target): Don't inherit or default
9822 to_download_trace_state_variable.
9823 * target.h (struct target_ops) <to_download_trace_state_variable>:
9824 Use TARGET_DEFAULT_NORETURN.
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9828 * target-delegates.c: Rebuild.
9829 * target.c (update_current_target): Don't inherit or default
9830 to_can_download_tracepoint.
9831 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9832 TARGET_DEFAULT_RETURN.
9834 2014-02-19 Tom Tromey <tromey@redhat.com>
9836 * target-delegates.c: Rebuild.
9837 * target.c (update_current_target): Don't inherit or default
9838 to_download_tracepoint.
9839 * target.h (struct target_ops) <to_download_tracepoint>: Use
9840 TARGET_DEFAULT_NORETURN.
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9844 * target-delegates.c: Rebuild.
9845 * target.c (update_current_target): Don't inherit or default
9847 * target.h (struct target_ops) <to_trace_init>: Use
9848 TARGET_DEFAULT_RETURN.
9850 2014-02-19 Tom Tromey <tromey@redhat.com>
9852 * target-delegates.c: Rebuild.
9853 * target.c (update_current_target): Don't inherit or default
9854 to_supports_string_tracing.
9855 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9856 TARGET_DEFAULT_RETURN.
9858 2014-02-19 Tom Tromey <tromey@redhat.com>
9860 * target-delegates.c: Rebuild.
9861 * target.c (update_current_target): Don't inherit or default
9862 to_supports_enable_disable_tracepoint.
9863 * target.h (struct target_ops)
9864 <to_supports_enable_disable_tracepoint>: Use
9865 TARGET_DEFAULT_RETURN.
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9869 * target-delegates.c: Rebuild.
9870 * target.c (update_current_target): Don't inherit or default
9871 to_supports_multi_process.
9872 * target.h (struct target_ops) <to_supports_multi_process>: Use
9873 TARGET_DEFAULT_RETURN.
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9877 * target-delegates.c: Rebuild.
9878 * target.c (update_current_target): Don't inherit or default
9879 to_get_ada_task_ptid.
9880 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9881 TARGET_DEFAULT_FUNC.
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9885 * target-delegates.c: Rebuild.
9886 * target.c (update_current_target): Don't inherit or default
9887 to_thread_architecture.
9888 * target.h (struct target_ops) <to_thread_architecture>: Use
9889 TARGET_DEFAULT_FUNC.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * target-delegates.c: Rebuild.
9894 * target.c (update_current_target): Don't inherit or default
9895 to_execution_direction.
9896 * target.h (struct target_ops) <to_execution_direction>: Use
9897 TARGET_DEFAULT_FUNC.
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9901 * target-delegates.c: Rebuild.
9902 * target.c (update_current_target): Don't inherit or default
9903 to_can_execute_reverse.
9904 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9905 TARGET_DEFAULT_RETURN.
9906 (target_can_execute_reverse): Unconditionally delegate.
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * target-delegates.c: Rebuild.
9911 * target.c (update_current_target): Don't inherit or default
9913 (dummy_goto_bookmark): Remove.
9914 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9915 * target.h (struct target_ops) <to_goto_bookmark>: Use
9916 TARGET_DEFAULT_NORETURN.
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9920 * target-delegates.c: Rebuild.
9921 * target.c (update_current_target): Don't inherit or default
9923 (dummy_get_bookmark): Remove.
9924 (init_dummy_target): Don't inherit or default to_get_bookmark.
9925 * target.h (struct target_ops) <to_get_bookmark>: Use
9926 TARGET_DEFAULT_NORETURN
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9930 * target-delegates.c: Rebuild.
9931 * target.c (update_current_target): Don't inherit or default
9932 to_make_corefile_notes.
9933 (init_dummy_target): Don't initialize to_make_corefile_notes.
9934 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9935 TARGET_DEFAULT_FUNC.
9937 2014-02-19 Tom Tromey <tromey@redhat.com>
9939 * target-delegates.c: Rebuild.
9940 * target.c (update_current_target): Don't inherit or default
9941 to_find_memory_regions.
9942 (init_dummy_target): Don't initialize to_find_memory_regions.
9943 * target.h (struct target_ops) <to_find_memory_regions>: Use
9944 TARGET_DEFAULT_FUNC.
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9948 * target-delegates.c: Rebuild.
9949 * target.c (update_current_target): Don't inherit or default
9951 * target.h (struct target_ops) <to_log_command>: Use
9952 TARGET_DEFAULT_IGNORE.
9953 (target_log_command): Unconditionally delegate.
9955 2014-02-19 Tom Tromey <tromey@redhat.com>
9957 * target-delegates.c: Rebuild.
9958 * target.c (update_current_target): Don't inherit or default
9959 to_pid_to_exec_file.
9960 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9961 TARGET_DEFAULT_RETURN.
9963 2014-02-19 Tom Tromey <tromey@redhat.com>
9965 * target-delegates.c: Rebuild.
9966 * target.c (update_current_target): Don't inherit or default
9968 (target_thread_name): Unconditionally delegate.
9969 * target.h (struct target_ops) <to_thread_name>: Use
9970 TARGET_DEFAULT_RETURN.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (update_current_target): Don't inherit or default
9976 to_extra_thread_info.
9977 * target.h (struct target_ops) <to_extra_thread_info>: Use
9978 TARGET_DEFAULT_RETURN.
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9982 * target-delegates.c: Rebuild.
9983 * target.c (update_current_target): Don't inherit or default
9985 * target.h (struct target_ops) <to_has_exited>: Use
9986 TARGET_DEFAULT_RETURN..
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9990 * target-delegates.c: Rebuild.
9991 * target.c (update_current_target): Don't inherit or default
9992 to_set_syscall_catchpoint.
9993 (return_one): Remove.
9994 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9995 TARGET_DEFAULT_RETURN.
9997 2014-02-19 Tom Tromey <tromey@redhat.com>
9999 * target-delegates.c: Rebuild.
10000 * target.c (update_current_target): Don't inherit or default
10001 to_insert_exec_catchpoint.
10002 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10003 TARGET_DEFAULT_RETURN.
10005 2014-01-08 Tom Tromey <tromey@redhat.com>
10007 * target-delegates.c: Rebuild.
10008 * target.c (update_current_target): Don't inherit or default
10009 to_insert_exec_catchpoint.
10010 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10011 TARGET_DEFAULT_RETURN.
10013 2014-02-19 Tom Tromey <tromey@redhat.com>
10015 * target-delegates.c: Rebuild.
10016 * target.c (update_current_target): Don't inherit or default
10017 to_remove_vfork_catchpoint.
10018 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10019 TARGET_DEFAULT_RETURN.
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * target-delegates.c: Rebuild.
10024 * target.c (update_current_target): Don't inherit or default
10025 to_insert_vfork_catchpoint.
10026 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10027 TARGET_DEFAULT_RETURN.
10029 2014-02-19 Tom Tromey <tromey@redhat.com>
10031 * target-delegates.c: Rebuild.
10032 * target.c (update_current_target): Don't inherit or default
10033 to_remove_fork_catchpoint.
10034 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10035 TARGET_DEFAULT_RETURN.
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10039 * target-delegates.c: Rebuild.
10040 * target.c (update_current_target): Don't inherit or default
10041 to_insert_fork_catchpoint.
10042 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10043 TARGET_DEFAULT_RETURN.
10045 2014-02-19 Tom Tromey <tromey@redhat.com>
10047 * target-delegates.c: Rebuild.
10048 * target.c (update_current_target): Don't inherit or default
10049 to_post_startup_inferior.
10050 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10051 TARGET_DEFAULT_IGNORE.
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10055 * target-delegates.c: Rebuild.
10056 * target.c (update_current_target): Don't inherit or default
10058 * target.h (struct target_ops) <to_load>: Use
10059 TARGET_DEFAULT_NORETURN.
10061 2014-02-19 Tom Tromey <tromey@redhat.com>
10063 * target-delegates.c: Rebuild.
10064 * target.c (update_current_target): Don't inherit or default
10066 * target.h (struct target_ops) <to_terminal_info>: Use
10067 TARGET_DEFAULT_FUNC.
10069 2014-02-19 Tom Tromey <tromey@redhat.com>
10071 * target-delegates.c: Rebuild.
10072 * target.c (update_current_target): Don't inherit or default
10073 to_terminal_save_ours.
10074 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10075 TARGET_DEFAULT_IGNORE.
10077 2014-02-19 Tom Tromey <tromey@redhat.com>
10079 * target-delegates.c: Rebuild.
10080 * target.c (update_current_target): Don't inherit or default
10082 * target.h (struct target_ops) <to_terminal_ours>: Use
10083 TARGET_DEFAULT_IGNORE.
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10087 * target-delegates.c: Rebuild.
10088 * target.c (update_current_target): Don't inherit or default
10089 to_terminal_ours_for_output.
10090 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10091 TARGET_DEFAULT_IGNORE.
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * target-delegates.c: Rebuild.
10096 * target.c (update_current_target): Don't inherit or default
10097 to_terminal_inferior.
10098 * target.h (struct target_ops) <to_terminal_inferior>: Use
10099 TARGET_DEFAULT_IGNORE.
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10103 * target-delegates.c: Rebuild.
10104 * target.c (update_current_target): Don't inherit or default
10106 * target.h (struct target_ops) <to_terminal_init>: Use
10107 TARGET_DEFAULT_IGNORE.
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * target-delegates.c: Rebuild.
10112 * target.c (update_current_target): Don't inherit or default
10113 to_can_accel_watchpoint_condition.
10114 * target.h (struct target_ops)
10115 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10117 2014-02-19 Tom Tromey <tromey@redhat.com>
10119 * target-delegates.c: Rebuild.
10120 * target.c (update_current_target): Don't inherit or default
10121 to_region_ok_for_hw_watchpoint.
10122 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10123 Use TARGET_DEFAULT_FUNC.
10125 2014-02-19 Tom Tromey <tromey@redhat.com>
10127 * target-delegates.c: Rebuild.
10128 * target.c (update_current_target): Don't inherit or default
10129 to_watchpoint_addr_within_range.
10130 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10131 Use TARGET_DEFAULT_FUNC.
10133 2014-02-19 Tom Tromey <tromey@redhat.com>
10135 * target-delegates.c: Rebuild.
10136 * target.c (update_current_target): Don't inherit or default
10137 to_remove_watchpoint.
10138 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10139 TARGET_DEFAULT_NORETURN.
10141 2014-02-19 Tom Tromey <tromey@redhat.com>
10143 * target-delegates.c: Rebuild.
10144 * target.c (update_current_target): Don't inherit or default
10145 to_insert_watchpoint.
10146 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10147 TARGET_DEFAULT_RETURN.
10149 2014-02-19 Tom Tromey <tromey@redhat.com>
10151 * target-delegates.c: Rebuild.
10152 * target.c (update_current_target): Don't inherit or default
10153 to_remove_hw_breakpoint.
10154 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10155 TARGET_DEFAULT_RETURN.
10157 2014-02-19 Tom Tromey <tromey@redhat.com>
10159 * target-delegates.c: Rebuild.
10160 * target.c (update_current_target): Don't inherit or default
10161 to_insert_hw_breakpoint.
10162 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10163 TARGET_DEFAULT_RETURN.
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10167 * target-delegates.c: Rebuild.
10168 * target.c (update_current_target): Don't inherit or default
10169 to_can_use_hw_breakpoint.
10170 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10171 TARGET_DEFAULT_RETURN.
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * target-delegates.c: Rebuild.
10176 * target.c (update_current_target): Don't inherit or default
10178 * target.h (struct target_ops) <to_files_info>: Use
10179 TARGET_DEFAULT_IGNORE.
10181 2014-02-19 Tom Tromey <tromey@redhat.com>
10183 * target-delegates.c: Rebuild.
10184 * target.c (update_current_target): Don't inherit or default
10186 * target.h (struct target_ops) <to_store>: Use
10187 TARGET_DEFAULT_NORETURN.
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10191 * target-delegates.c: Rebuild.
10192 * target.c (update_current_target): Don't inherit or default
10194 * target.h (struct target_ops) <to_post_attach>: Use
10195 TARGET_DEFAULT_IGNORE.
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10199 * target-delegates.c: Rebuild.
10200 * target.c (update_current_target): Don't inherit or default
10202 (default_rcmd): New function.
10203 (do_monitor_command): Unconditionally delegate.
10204 * target.h (struct target_ops) <to_rmcd>: Use
10205 TARGET_DEFAULT_FUNC.
10207 2014-02-19 Tom Tromey <tromey@redhat.com>
10209 * target-delegates.c: Rebuild.
10210 * target.c (init_dummy_target): Don't initialize to_attach.
10211 (target_attach): Unconditionally delegate.
10212 * target.h (struct target_ops) <to_attach>: Use
10213 TARGET_DEFAULT_FUNC.
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10217 * target-delegates.c: Rebuild.
10218 * target.c (target_detach): Unconditionally delegate.
10219 (init_dummy_target): Don't initialize to_detach.
10220 * target.h (struct target_ops) <to_detach>: Use
10221 TARGET_DEFAULT_IGNORE.
10223 2014-02-19 Tom Tromey <tromey@redhat.com>
10225 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10227 (target_augmented_libraries_svr4_read): Add argument.
10228 * target.c (update_current_target): Update.
10229 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10234 * target.h (struct target_ops) <to_call_history_range>: Add
10236 * target.c (target_call_history_range): Add argument.
10237 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10239 (record_btrace_call_history_from): Update.
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10243 * target.h (struct target_ops) <to_call_history_from>: Add
10245 * target.c (target_call_history_from): Add argument.
10246 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10251 * target.h (struct target_ops) <to_call_history>: Add argument.
10252 * target.c (target_call_history): Add argument.
10253 * record-btrace.c (record_btrace_call_history): Add 'self'
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10258 * target.h (struct target_ops) <to_insn_history_range>: Add
10260 * target.c (target_insn_history_range): Add argument.
10261 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10263 (record_btrace_insn_history_from): Update.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target.h (struct target_ops) <to_insn_history_from>: Add
10269 * target.c (target_insn_history_from): Add argument.
10270 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10275 * target.h (struct target_ops) <to_insn_history>: Add argument.
10276 * target.c (target_insn_history): Add argument.
10277 * record-btrace.c (record_btrace_insn_history): Add 'self'
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10282 * target.h (struct target_ops) <to_goto_record>: Add argument.
10283 * target.c (target_goto_record): Add argument.
10284 * record-full.c (record_full_goto): Add 'self' argument.
10285 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10287 2014-02-19 Tom Tromey <tromey@redhat.com>
10289 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10290 * target.c (target_goto_record_end): Add argument.
10291 * record-full.c (record_full_goto_end): Add 'self' argument.
10292 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10296 * target.h (struct target_ops) <to_goto_record_begin>: Add
10298 * target.c (target_goto_record_begin): Add argument.
10299 * record-full.c (record_full_goto_begin): Add 'self' argument.
10300 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10305 * target.h (struct target_ops) <to_record_is_replaying>: Add
10307 * target.c (target_record_is_replaying): Add argument.
10308 * record-full.c (record_full_is_replaying): Add 'self' argument.
10309 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10311 (record_btrace_xfer_partial, record_btrace_store_registers)
10312 (record_btrace_prepare_to_store, record_btrace_resume)
10313 (record_btrace_wait, record_btrace_decr_pc_after_break)
10314 (record_btrace_find_new_threads, record_btrace_thread_alive):
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10319 * target.h (struct target_ops) <to_delete_record>: Add argument.
10320 * target.c (target_delete_record): Add argument.
10321 * record-full.c (record_full_delete): Add 'self' argument.
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10325 * target.h (struct target_ops) <to_save_record>: Add argument.
10326 * target.c (target_save_record): Add argument.
10327 * record-full.c (record_full_save): Add 'self' argument.
10328 (record_full_save): Add 'self' argument.
10330 2014-02-19 Tom Tromey <tromey@redhat.com>
10332 * target.h (struct target_ops) <to_info_record>: Add argument.
10333 * target.c (target_info_record): Add argument.
10334 * record.c (info_record_command): Add argument.
10335 * record-full.c (record_full_info): Add 'self' argument.
10336 * record-btrace.c (record_btrace_info): Add 'self' argument.
10338 2014-02-19 Tom Tromey <tromey@redhat.com>
10340 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10341 * target.c (target_stop_recording): Add argument.
10342 * record.c (record_stop): Add argument.
10343 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10346 2014-02-19 Tom Tromey <tromey@redhat.com>
10348 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10349 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10350 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10352 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10353 (_initialize_amd64_linux_nat): Use it.
10354 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10355 (_initialize_i386_linux_nat): Use it.
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10359 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10360 * target.c (target_teardown_btrace): Add argument.
10361 * remote.c (remote_teardown_btrace): Add 'self' argument.
10362 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10364 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10369 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10370 * target.c (target_disable_btrace): Add argument.
10371 * remote.c (remote_disable_btrace): Add 'self' argument.
10372 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10374 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10377 2014-02-19 Tom Tromey <tromey@redhat.com>
10379 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10380 * target.c (target_enable_btrace): Add argument.
10381 * remote.c (remote_enable_btrace): Add 'self' argument.
10382 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10384 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10389 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10390 (target_can_use_agent): Add argument.
10391 * target.c (update_current_target): Update.
10392 * remote.c (remote_can_use_agent): Add 'self' argument.
10393 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target.h (struct target_ops) <to_use_agent>: Add argument.
10398 (target_use_agent): Add argument.
10399 * target.c (update_current_target): Update.
10400 * remote.c (remote_use_agent): Add 'self' argument.
10401 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10405 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10406 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10407 (target_traceframe_info): Add argument.
10408 * target.c (update_current_target): Update.
10409 * remote.c (remote_traceframe_info): Add 'self' argument.
10410 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10412 2014-02-19 Tom Tromey <tromey@redhat.com>
10414 * target.h (target_static_tracepoint_markers_by_strid): Add
10416 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10418 * target.c (update_current_target): Update.
10419 * remote.c (struct target_ops)
10420 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10421 * linux-nat.c (struct target_ops)
10422 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10424 2014-02-19 Tom Tromey <tromey@redhat.com>
10426 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10428 (target_static_tracepoint_marker_at): Add argument.
10429 * target.c (update_current_target): Update.
10430 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10433 2014-02-19 Tom Tromey <tromey@redhat.com>
10435 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10436 (target_set_permissions): Add argument.
10437 * target.c (update_current_target): Update.
10438 * remote.c (remote_set_permissions): Add 'self' argument.
10439 (remote_start_remote): Update.
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10443 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10444 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10445 (target_get_tib_address): Add argument.
10446 * target.c (update_current_target): Update.
10447 * remote.c (remote_get_tib_address): Add 'self' argument.
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10451 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10452 (target_set_trace_notes): Add argument.
10453 * target.c (update_current_target): Update.
10454 * remote.c (remote_set_trace_notes): Add 'self' argument.
10456 2014-02-19 Tom Tromey <tromey@redhat.com>
10458 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10460 (target_set_trace_buffer_size): Add argument.
10461 * target.c (update_current_target): Update.
10462 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10464 2014-02-19 Tom Tromey <tromey@redhat.com>
10466 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10468 (target_set_circular_trace_buffer): Add argument.
10469 * target.c (update_current_target): Update.
10470 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10475 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10477 (target_set_disconnected_tracing): Add argument.
10478 * target.c (update_current_target): Update.
10479 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10483 * target.h (struct target_ops)
10484 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10485 (target_get_min_fast_tracepoint_insn_len): Add argument.
10486 * target.c (update_current_target): Update.
10487 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10494 (target_get_raw_trace_data): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10500 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10502 (target_upload_trace_state_variables): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_upload_trace_state_variables): Add 'self'
10506 (remote_start_remote): Update.
10508 2014-02-19 Tom Tromey <tromey@redhat.com>
10510 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10512 (target_upload_tracepoints): Add argument.
10513 * target.c (update_current_target): Update.
10514 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10515 (remote_start_remote): Update.
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10519 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10520 (target_save_trace_data): Add argument.
10521 * target.c (update_current_target): Update.
10522 * remote.c (remote_save_trace_data): Add 'self' argument.
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10528 * target.h (struct target_ops)
10529 <to_get_trace_state_variable_value>: Add argument.
10530 (target_get_trace_state_variable_value): Add argument.
10531 * target.c (update_current_target): Update.
10532 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10534 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10536 2014-02-19 Tom Tromey <tromey@redhat.com>
10538 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10539 * target.h (struct target_ops) <to_trace_find>: Add argument.
10540 (target_trace_find): Add argument.
10541 * target.c (update_current_target): Update.
10542 * remote.c (remote_trace_find): Add 'self' argument.
10543 * ctf.c (ctf_trace_find): Add 'self' argument.
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10547 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10548 (target_trace_stop): Add argument.
10549 * target.c (update_current_target): Update.
10550 * remote.c (remote_trace_stop): Add 'self' argument.
10552 2014-02-19 Tom Tromey <tromey@redhat.com>
10554 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10555 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10557 (target_get_tracepoint_status): Add argument.
10558 * target.c (update_current_target): Update.
10559 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10563 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10564 * target.h (struct target_ops) <to_get_trace_status>: Add
10566 (target_get_trace_status): Add argument.
10567 * target.c (update_current_target): Update.
10568 * remote.c (remote_get_trace_status): Add 'self' argument.
10569 (remote_start_remote, remote_can_download_tracepoint): Update.
10570 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10572 2014-02-19 Tom Tromey <tromey@redhat.com>
10574 * target.h (struct target_ops) <to_trace_start>: Add argument.
10575 (target_trace_start): Add argument.
10576 * target.c (update_current_target): Update.
10577 * remote.c (remote_trace_start): Add 'self' argument.
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10581 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10583 (target_trace_set_readonly_regions): Add argument.
10584 * target.c (update_current_target): Update.
10585 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10588 2014-02-19 Tom Tromey <tromey@redhat.com>
10590 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10592 (target_disable_tracepoint): Add argument.
10593 * target.c (update_current_target): Update.
10594 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10598 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10600 (target_enable_tracepoint): Add argument.
10601 * target.c (update_current_target): Update.
10602 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10604 2014-02-19 Tom Tromey <tromey@redhat.com>
10606 * target.h (struct target_ops) <to_download_trace_state_variable>:
10608 (target_download_trace_state_variable): Add argument.
10609 * target.c (update_current_target): Update.
10610 * remote.c (remote_download_trace_state_variable): Add 'self'
10613 2014-02-19 Tom Tromey <tromey@redhat.com>
10615 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10617 (target_can_download_tracepoint): Add argument.
10618 * target.c (update_current_target): Update.
10619 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10623 * target.h (struct target_ops) <to_download_tracepoint>: Add
10625 (target_download_tracepoint): Add argument.
10626 * target.c (update_current_target): Update.
10627 * remote.c (remote_download_tracepoint): Add 'self' argument.
10629 2014-02-19 Tom Tromey <tromey@redhat.com>
10631 * target.h (struct target_ops) <to_trace_init>: Add argument.
10632 (target_trace_init): Add argument.
10633 * target.c (update_current_target): Update.
10634 * remote.c (remote_trace_init): Add 'self' argument.
10636 2014-02-19 Tom Tromey <tromey@redhat.com>
10638 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10639 * target.c (target_fileio_readlink): Add argument.
10640 * remote.c (remote_hostio_readlink): Add 'self' argument.
10641 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10643 2014-02-19 Tom Tromey <tromey@redhat.com>
10645 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10646 * target.c (target_fileio_unlink): Add argument.
10647 * remote.c (remote_hostio_unlink): Add 'self' argument.
10648 (remote_file_delete): Update.
10649 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10651 2014-02-19 Tom Tromey <tromey@redhat.com>
10653 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10654 * target.c (target_fileio_close): Add argument.
10655 * remote.c (remote_hostio_close): Add 'self' argument.
10656 (remote_hostio_close_cleanup): Update.
10657 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10659 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10663 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10664 * target.c (target_fileio_pread): Add argument.
10665 * remote.c (remote_hostio_pread): Add 'self' argument.
10666 (remote_bfd_iovec_pread, remote_file_get): Update.
10667 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10671 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10672 * target.c (target_fileio_pwrite): Add argument.
10673 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10674 (remote_file_put): Update.
10675 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10680 * target.c (target_fileio_open): Add argument.
10681 * remote.c (remote_hostio_open): Add 'self' argument.
10682 (remote_bfd_iovec_open): Add 'self' argument.
10683 (remote_file_put): Add 'self' argument.
10684 (remote_file_get): Add 'self' argument.
10685 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10689 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10691 (target_can_run_breakpoint_commands): Add argument.
10692 * target.c (update_current_target): Update.
10693 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10695 (remote_insert_breakpoint): Add 'self' argument.
10696 (remote_insert_hw_breakpoint): Add 'self' argument.
10697 (remote_can_run_breakpoint_commands): Add 'self' argument.
10699 2014-02-19 Tom Tromey <tromey@redhat.com>
10701 * target.h (struct target_ops)
10702 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10703 (target_supports_evaluation_of_breakpoint_conditions): Add
10705 * target.c (update_current_target): Update.
10706 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10708 (remote_insert_breakpoint): Add 'self' argument.
10709 (remote_insert_hw_breakpoint): Add 'self' argument.
10710 (remote_supports_cond_breakpoints): Add 'self' argument.
10712 2014-02-19 Tom Tromey <tromey@redhat.com>
10714 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10716 (target_supports_string_tracing): Add argument.
10717 * target.c (update_current_target): Update.
10718 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10722 * target.h (struct target_ops)
10723 <to_supports_disable_randomization>: Add argument.
10724 * target.c (find_default_supports_disable_randomization): Add
10726 (target_supports_disable_randomization): Add argument.
10727 (find_default_supports_disable_randomization): Add 'self'
10729 * remote.c (extended_remote_supports_disable_randomization): Add
10731 (remote_supports_disable_randomization): Add 'self' argument.
10732 (extended_remote_create_inferior): Update.
10733 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * target.h (struct target_ops)
10739 <to_supports_enable_disable_tracepoint>: Add argument.
10740 (target_supports_enable_disable_tracepoint): Add argument.
10741 * target.c (update_current_target): Update.
10742 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target.h (struct target_ops) <to_supports_multi_process>: Add
10749 (target_supports_multi_process): Add argument.
10750 * target.c (update_current_target): Update.
10751 * remote.c (remote_supports_multi_process): Add 'self' argument.
10752 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10754 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10757 2014-02-19 Tom Tromey <tromey@redhat.com>
10759 * target.h (struct target_ops) <to_execution_direction>: Add
10761 (target_execution_direction): Add argument.
10762 * target.c (default_execution_direction): Add 'self' argument.
10763 * record-full.c (record_full_execution_direction): Add 'self'
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10770 (target_can_execute_reverse): Add argument.
10771 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10772 * record-full.c (record_full_can_execute_reverse): Add 'self'
10774 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10779 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10780 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10782 (target_get_ada_task_ptid): Add argument.
10783 * target.c (update_current_target): Update.
10784 (default_get_ada_task_ptid): Add 'self' argument.
10785 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10786 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10787 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10789 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10791 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10793 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10795 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10796 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10802 (target_goto_bookmark): Add argument.
10803 * target.c (dummy_goto_bookmark): Add 'self' argument.
10804 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10808 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10809 (target_get_bookmark): Add argument.
10810 * target.c (dummy_get_bookmark): Add 'self' argument.
10811 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10813 2014-02-19 Tom Tromey <tromey@redhat.com>
10815 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10817 (target_make_corefile_notes): Add argument.
10818 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10819 * procfs.c (procfs_make_note_section): Add 'self' argument.
10820 (procfs_make_note_section): Add 'self' argument.
10821 (procfs_make_note_section): Add 'self' argument.
10822 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10824 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10825 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10826 * exec.c (exec_make_note_section): Add 'self' argument.
10827 (exec_make_note_section): Add 'self' argument.
10829 2014-02-19 Tom Tromey <tromey@redhat.com>
10831 * target.h (struct target_ops) <to_find_memory_regions>: Add
10833 (target_find_memory_regions): Add argument.
10834 * target.c (dummy_find_memory_regions): Add 'self' argument.
10835 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10836 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10837 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10838 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10839 * exec. (exec_do_find_memory_regions): New global.
10840 (exec_set_find_memory_regions): Rewrite.
10841 (exec_find_memory_regions): New function.
10842 (init_exec_ops): Use exec_find_memory_regions.
10844 2014-02-19 Tom Tromey <tromey@redhat.com>
10846 * target.h (struct target_ops) <to_supports_non_stop>: Add
10848 * target.c (find_default_supports_non_stop): Add argument.
10849 (target_supports_non_stop): Add argument.
10850 (find_default_supports_non_stop): Add 'self' argument.
10851 * remote.c (remote_supports_non_stop): Add 'self' argument.
10852 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10856 * target.h (struct target_ops) <to_log_command>: Add argument.
10857 (target_log_command): Add argument.
10858 * serial.h (serial_log_command): Add 'self' argument.
10859 * serial.c (serial_log_command): Add 'self' argument.
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10863 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10864 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10866 (target_pid_to_exec_file): Add argument.
10867 * target.c (debug_to_pid_to_exec_file): Add argument.
10868 (update_current_target): Update.
10869 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10870 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10871 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10872 (linux_handle_extended_wait): Update.
10873 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10874 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10875 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10876 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10880 * target.h (struct target_ops) <to_rcmd>: Add argument.
10881 (target_rcmd): Add argument.
10882 * target.c (debug_to_rcmd): Add argument.
10883 (update_current_target, do_monitor_command): Update.
10884 * remote.c (remote_rcmd): Add 'self' argument.
10885 * monitor.c (monitor_rcmd): Add 'self' argument.
10887 2014-02-19 Tom Tromey <tromey@redhat.com>
10889 * windows-nat.c (windows_stop): Add 'self' argument.
10890 * target.h (struct target_ops) <to_stop>: Add argument.
10891 * target.c (target_stop): Add argument.
10892 (debug_to_stop): Add argument.
10893 (update_current_target): Update.
10894 * remote.c (remote_stop): Add 'self' argument.
10895 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10896 (gdbsim_cntrl_c): Update.
10897 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10898 * procfs.c (procfs_stop): Add 'self' argument.
10899 * nto-procfs.c (procfs_stop): Add 'self' argument.
10900 * monitor.c (monitor_stop): Add 'self' argument.
10901 (monitor_open): Update.
10902 * linux-nat.c (linux_nat_stop): Add argument.
10903 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10904 * gnu-nat.c (gnu_stop): Add 'self' argument.
10905 * darwin-nat.c (darwin_stop): Add 'self' argument.
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10909 * target.h (struct target_ops) <to_thread_name>: Add argument.
10910 * target.c (target_thread_name): Add argument.
10911 (update_current_target): Update.
10912 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10916 * target.h (struct target_ops) <to_extra_thread_info>: Add
10918 (target_extra_thread_info): Add argument.
10919 * target.c (update_current_target): Update.
10920 * remote.c (remote_threads_extra_info): Add 'self' argument.
10921 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10923 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10924 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10925 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10927 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10929 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10931 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10934 2014-02-19 Tom Tromey <tromey@redhat.com>
10936 * target.h (struct target_ops) <to_program_signals>: Add argument.
10937 * target.c (target_program_signals): Add argument.
10938 * remote.c (remote_program_signals): Add 'self' argument.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10943 * target.c (target_pass_signals): Add argument.
10944 * remote.c (remote_pass_signals): Add 'self' argument.
10945 (remote_start_remote): Update.
10946 * procfs.c (procfs_pass_signals): Add 'self' argument.
10947 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10948 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10949 (linux_nat_create_inferior, linux_nat_attach): Update.
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10953 * windows-nat.c (windows_can_run): Add 'self' argument.
10954 * target.h (struct target_ops) <to_can_run>: Add argument.
10955 (target_can_run): Add argument.
10956 * target.c (debug_to_can_run): Add argument.
10957 (update_current_target): Update.
10958 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10959 * inf-child.c (inf_child_can_run): Add 'self' argument.
10960 * go32-nat.c (go32_can_run): Add 'self' argument.
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10964 * target.h (struct target_ops) <to_has_exited>: Add argument.
10965 (target_has_exited): Add argument.
10966 * target.c (debug_to_has_exited): Add argument.
10967 (update_current_target): Update.
10969 2014-02-19 Tom Tromey <tromey@redhat.com>
10971 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10973 (target_set_syscall_catchpoint): Add argument.
10974 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10976 * target.c (update_current_target): Update.
10978 2014-02-19 Tom Tromey <tromey@redhat.com>
10980 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10982 (target_remove_exec_catchpoint): Add argument.
10983 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10984 (update_current_target): Update.
10985 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10990 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10992 (target_insert_exec_catchpoint): Add argument.
10993 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10994 (update_current_target): Update.
10995 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10998 2014-02-19 Tom Tromey <tromey@redhat.com>
11000 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11002 (target_remove_vfork_catchpoint): Add argument.
11003 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11004 (update_current_target): Update.
11005 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11010 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11012 (target_insert_vfork_catchpoint): Add argument.
11013 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11014 (update_current_target): Update.
11015 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11020 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11022 (target_remove_fork_catchpoint): Add argument.
11023 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11024 (update_current_target): Update.
11025 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11028 2014-02-19 Tom Tromey <tromey@redhat.com>
11030 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11032 (target_insert_fork_catchpoint): Add argument.
11033 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11034 (update_current_target): Update.
11035 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11038 2014-02-19 Tom Tromey <tromey@redhat.com>
11040 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11042 (target_post_startup_inferior): Add argument.
11043 * target.c (debug_to_post_startup_inferior): Add argument.
11044 (update_current_target): Update.
11045 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11047 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11049 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11051 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11053 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11055 (super_post_startup_inferior): Likewise.
11056 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11058 (super_post_startup_inferior): Likewise.
11059 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11060 Add 'self' argument.
11061 (super_post_startup_inferior): Likewise.
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11065 * target.h (struct target_ops) <to_load>: Add argument.
11066 * target.c (target_load): Add argument.
11067 (debug_to_load): Add argument.
11068 (update_current_target): Update.
11069 * remote.c (remote_load): Add 'self' argument.
11070 * remote-sim.c (gdbsim_load): Add 'self' argument.
11071 * remote-mips.c (mips_load): Add 'self' argument.
11072 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11073 * monitor.c (monitor_load): Add 'self' argument.
11074 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11079 (target_terminal_info): Add argument.
11080 * target.c (debug_to_terminal_info): Add argument.
11081 (default_terminal_info): Likewise.
11082 * inflow.c (child_terminal_info): Add 'self' argument.
11083 * inferior.h (child_terminal_info): Add 'self' argument.
11084 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11086 2014-02-19 Tom Tromey <tromey@redhat.com>
11088 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11090 (target_terminal_save_ours): Add argument.
11091 * target.c (debug_to_terminal_save_ours): Add argument.
11092 (update_current_target): Update.
11093 * inflow.c (terminal_save_ours): Add 'self' argument.
11094 * inferior.h (terminal_save_ours): Add 'self' argument.
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11098 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11099 (target_terminal_ours): Add argument.
11100 * target.c (debug_to_terminal_ours): Add argument.
11101 (update_current_target): Update.
11102 * remote.c (remote_terminal_ours): Add 'self' argument.
11103 (remote_close): Update.
11104 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11105 * inflow.c (terminal_ours): Add 'self' argument.
11106 * inferior.h (terminal_ours): Add 'self' argument.
11107 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11109 2014-02-19 Pedro Alves <palves@redhat.com>
11110 Tom Tromey <tromey@redhat.com>
11112 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11114 (target_terminal_ours_for_output): Add argument.
11115 * target.c (debug_to_terminal_ours_for_output): Add argument.
11116 (update_current_target): Update.
11117 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11118 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11119 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11121 2014-02-19 Tom Tromey <tromey@redhat.com>
11123 * target.h (struct target_ops) <to_terminal_inferior>: Add
11125 * target.c (target_terminal_inferior): Add argument.
11126 (update_current_target): Update.
11127 * remote.c (remote_terminal_inferior): Add 'self' argument.
11128 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11129 * inflow.c (terminal_inferior): Add 'self' argument.
11130 * inferior.h (terminal_inferior): Add 'self' argument.
11131 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11132 (go32_terminal_inferior): Add 'self' argument.
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11136 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11137 (target_terminal_init): Add argument.
11138 * target.c (debug_to_terminal_init): Add argument.
11139 (update_current_target): Update.
11140 * inflow.c (terminal_init_inferior): Add 'self' argument.
11141 * inferior.h (terminal_init_inferior): Add 'self' argument.
11142 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11143 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11145 2014-02-19 Tom Tromey <tromey@redhat.com>
11147 * target.h (struct target_ops)
11148 <to_can_accel_watchpoint_condition>: Add argument.
11149 (target_can_accel_watchpoint_condition): Add argument.
11150 * target.c (debug_to_can_accel_watchpoint_condition): Add
11152 (update_current_target): Update.
11153 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11158 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11160 (target_region_ok_for_hw_watchpoint): Add argument.
11161 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11162 (default_region_ok_for_hw_watchpoint): Add argument.
11163 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11164 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11166 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11168 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11170 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11172 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11174 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11176 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11177 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11179 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11180 Add 'self' argument.
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11184 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11186 (target_insert_watchpoint): Add argument.
11187 * target.c (debug_to_insert_watchpoint): Add argument.
11188 (update_current_target): Update.
11189 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11190 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11191 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11192 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11193 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11194 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11196 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11197 (procfs_insert_hw_watchpoint): Add 'self' argument.
11198 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11200 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11202 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11204 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11205 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11207 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11210 2014-02-19 Tom Tromey <tromey@redhat.com>
11212 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11214 (target_remove_watchpoint): Add argument.
11215 * target.c (debug_to_remove_watchpoint): Add argument.
11216 (update_current_target): Update.
11217 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11218 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11219 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11220 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11221 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11222 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11224 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11225 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11227 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11229 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11231 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11232 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11234 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11239 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11241 (target_remove_hw_breakpoint): Add argument.
11242 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11243 (update_current_target): Update.
11244 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11245 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11247 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11248 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11250 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11257 (target_insert_hw_breakpoint): Add argument.
11258 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11259 (update_current_target): Update.
11260 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11261 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11263 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11264 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11265 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11267 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11270 2014-02-19 Tom Tromey <tromey@redhat.com>
11272 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11274 (target_can_use_hardware_watchpoint): Add argument.
11275 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11276 (update_current_target): Update.
11277 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11279 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11281 * remote.c (remote_check_watch_resources): Add 'self' argument.
11282 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11283 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11285 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11286 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11288 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11290 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11292 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11294 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11296 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11298 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11299 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11301 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11306 * target.h (struct target_ops) <to_post_attach>: Add argument.
11307 (target_post_attach): Add argument.
11308 * target.c (debug_to_post_attach): Add argument.
11309 (update_current_target): Update.
11310 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11311 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11312 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11313 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11314 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11318 * windows-nat.c (windows_close): Add 'self' argument.
11319 * tracepoint.c (tfile_close): Add 'self' argument.
11320 * target.h (struct target_ops) <to_close>: Add argument.
11321 * target.c (target_close): Add argument.
11322 (update_current_target): Update.
11323 * remote.c (remote_close): Add 'self' argument.
11324 * remote-sim.c (gdbsim_close): Add 'self' argument.
11325 * remote-mips.c (mips_close): Add 'self' argument.
11326 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11327 * record-full.c (record_full_close): Add 'self' argument.
11328 * record-btrace.c (record_btrace_close): Add 'self' argument.
11329 * monitor.h (monitor_close): Add 'self' argument.
11330 * monitor.c (monitor_close): Add 'self' argument.
11331 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11332 * linux-nat.c (linux_nat_close): Add argument.
11333 * go32-nat.c (go32_close): Add 'self' argument.
11334 * exec.c (exec_close_1): Add 'self' argument.
11335 * ctf.c (ctf_close): Add 'self' argument.
11336 * corelow.c (core_close): Add 'self' argument.
11337 (core_close_cleanup): Update.
11338 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11339 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11343 * remote.c (remote_load): New function.
11344 (init_remote_ops): Use it.
11346 2014-02-19 Tom Tromey <tromey@redhat.com>
11348 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11350 * common/linux-btrace.h (linux_supports_btrace): Update.
11351 * remote.c (remote_supports_btrace): Add "self" argument.
11352 * target-delegates.c: Rebuild.
11353 * target.c (target_supports_btrace): Remove.
11354 * target.h (struct target_ops) <to_supports_btrace>: Add
11355 target_ops argument.
11356 (target_supports_btrace): New define.
11358 2014-02-19 Tom Tromey <tromey@redhat.com>
11360 * record-full.c (record_full_beneath_to_resume_ops)
11361 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11362 (record_full_beneath_to_wait)
11363 (record_full_beneath_to_store_registers_ops)
11364 (record_full_beneath_to_store_registers)
11365 (record_full_beneath_to_xfer_partial_ops)
11366 (record_full_beneath_to_xfer_partial)
11367 (record_full_beneath_to_insert_breakpoint_ops)
11368 (record_full_beneath_to_insert_breakpoint)
11369 (record_full_beneath_to_remove_breakpoint_ops)
11370 (record_full_beneath_to_remove_breakpoint)
11371 (record_full_beneath_to_stopped_by_watchpoint)
11372 (record_full_beneath_to_stopped_data_address)
11373 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11374 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11375 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11376 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11377 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11378 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11379 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11380 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11381 (record_full_resume, record_full_wait_1)
11382 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11383 (record_full_store_registers, record_full_xfer_partial)
11384 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11385 (record_full_async, record_full_core_xfer_partial): Use target
11387 * target-delegates.c: Rebuild.
11388 * target.c (current_xfer_partial): Remove.
11389 (update_current_target): Do not INHERIT or de_fault
11390 to_insert_breakpoint, to_remove_breakpoint,
11391 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11392 to_is_async_p, to_async. Do not set to_xfer_partial field.
11393 (default_xfer_partial): Simplify.
11394 (current_xfer_partial): Remove.
11395 (target_wait, target_resume): Simplify.
11396 (find_default_can_async_p, find_default_is_async_p): Update.
11397 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11398 to_xfer_partial, to_stopped_by_watchpoint,
11399 to_stopped_data_address.
11400 (target_store_registers): Simplify.
11401 (forward_target_remove_breakpoint)
11402 (forward_target_insert_breakpoint): Remove.
11403 (target_remove_breakpoint, target_insert_breakpoint)
11404 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11405 * target.h (struct target_ops) <to_resume, to_wait,
11406 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11407 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11408 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11410 (forward_target_remove_breakpoint)
11411 (forward_target_insert_breakpoint): Remove.
11412 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11414 (record_btrace_insert_breakpoint): Delegate directly.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11419 * target-delegates.c: New file.
11420 * target.c: Include target-delegates.c.
11421 (init_dummy_target): Call install_dummy_methods.
11422 (complete_target_initialization): Call install_delegators.
11423 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11424 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11425 * make-target-delegates: New file.
11427 2014-02-19 Tom Tromey <tromey@redhat.com>
11429 * record.c (find_record_target): Use find_target_at.
11430 * target.c (find_target_at): New function.
11431 * target.h (find_target_at): Declare.
11433 2014-02-19 Tom Tromey <tromey@redhat.com>
11435 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11436 Add 'ops' argument.
11437 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11439 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11440 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11442 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11444 * linux-nat.c (save_sigtrap): Update.
11445 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11446 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11447 (linux_nat_close): Update.
11448 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11450 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11452 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11453 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11454 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11455 (tmp_to_async): Add 'ops' argument.
11456 (record_full_stopped_by_watchpoint, record_full_async)
11457 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11459 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11460 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11461 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11462 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11463 (remote_is_async_p, remote_async): Add 'ops' argument.
11464 (remote_stopped_data_address): Update.
11465 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11466 * target.c (update_current_target)
11467 (find_default_can_async_p, find_default_is_async_p): Update.
11468 (init_dummy_target): Update.
11469 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11470 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11471 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11472 (target_can_async_p, target_is_async_p, target_async)
11473 (target_stopped_by_watchpoint): Update.
11475 2014-02-19 Yao Qi <yao@codesourcery.com>
11478 * gdbarch.sh: Remove startup_gdbarch.
11479 * gdbarch.c: Regenerated.
11480 * gdbarch.h: Likewise.
11482 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11484 * rl78-tdep.c (rl78_g10_register_name): New function.
11485 (rl78_return_value): Add g10 support.
11486 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11489 2014-02-17 Doug Evans <xdje42@gmail.com>
11491 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11492 (SUBDIR_GUILE_SRCS): Ditto.
11493 (scm-gsmob.o): Ditto.
11495 2014-02-17 Yao Qi <yao@codesourcery.com>
11497 * gnu-nat.c (ILL_RPC): Declare defined function.
11499 2014-02-17 Yao Qi <yao@codesourcery.com>
11501 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11502 mach_msg_type_number_t.
11503 (gnu_write_inferior): Likewise.
11505 2014-02-17 Yao Qi <yao@codesourcery.com>
11507 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11509 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11510 (inf_validate_procs, inf_signal): Likewise.
11511 (S_exception_raise_request): Likewise.
11512 (do_mach_notify_dead_name): Likewise.
11513 (steal_exc_port): Likewise.
11514 (gnu_read_inferior): Change 'copy_count''s type to
11515 mach_msg_type_number_t.
11516 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11519 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11521 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11522 flag. Adjust all users; in particular...
11523 (gnu_wait): ..., don't decrement its value in here...
11524 (gnu_create_inferior): ..., and instead set the flag in here,
11525 around the startup_inferior call, and call that one with
11526 START_INFERIOR_TRAPS_EXPECTED.
11528 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11529 (ILL_RPC): ... new macro.
11530 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11531 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11532 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11533 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11534 functions with ILL_RPC macro.
11535 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11536 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11537 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11538 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11539 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11540 (S_proc_getlogin_reply, S_proc_getsid_reply)
11541 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11542 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11543 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11544 (S_proc_getnports_reply, S_proc_is_important_reply)
11545 (S_proc_get_code_reply): New stub functions, generated with
11548 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11549 collected the type check structures.
11551 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11553 2014-02-14 Doug Evans <dje@google.com>
11555 * target.c (target_write_partial): Fix result type.
11557 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11559 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11560 the proper offsets to access fpregset_t.
11562 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11564 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11565 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11566 * h8300-tdep.c (setmachinelist): Remove global.
11567 * hppa-tdep.c (hppa_sigtramp): Remove global.
11568 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11569 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11570 * ravenscar-thread.c (update_target_observer): Remove global.
11571 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11573 2014-02-12 Tom Tromey <tromey@redhat.com>
11575 * common/rsp-low.c: Update comments.
11576 * common/rsp-low.h: Update comments.
11578 2014-02-12 Tom Tromey <tromey@redhat.com>
11580 * common/rsp-low.c (convert_ascii_to_int): Remove.
11581 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11583 2014-02-12 Tom Tromey <tromey@redhat.com>
11585 * common/rsp-low.h (unhexify): Don't declare.
11586 * common/rsp-low.c (unhexify): Remove.
11588 2014-02-12 Tom Tromey <tromey@redhat.com>
11590 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11591 * common/rsp-low.c (convert_int_to_ascii): Remove.
11593 2014-02-12 Tom Tromey <tromey@redhat.com>
11595 * common/rsp-low.h (hexify): Don't declare.
11596 * common/rsp-low.c (hexify): Remove.
11598 2014-02-12 Tom Tromey <tromey@redhat.com>
11600 * common/rsp-low.c (hexify): Never take strlen of argument.
11602 2014-02-12 Tom Tromey <tromey@redhat.com>
11604 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11605 * remote.c (extended_remote_run, remote_rcmd)
11606 (remote_download_trace_state_variable, remote_save_trace_data)
11607 (remote_set_trace_notes): Update.
11608 * tracepoint.c (encode_source_string, tfile_write_status)
11609 (tfile_write_uploaded_tsv): Update.
11611 2014-02-12 Tom Tromey <tromey@redhat.com>
11613 * tracepoint.c: Include rsp-low.h.
11614 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11615 * remote.c: Include rsp-low.h.
11616 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11617 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11618 (remote_unescape_input): Move to common/rsp-low.c.
11619 * common/rsp-low.h: New file.
11620 * common/rsp-low.c: New file.
11621 * Makefile.in (SFILES): Add common/rsp-low.c.
11622 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11623 (COMMON_OBS): Add rsp-low.o.
11624 (rsp-low.o): New target.
11626 2014-02-12 Tom Tromey <tromey@redhat.com>
11628 * utils.h: Include print-utils.h.
11629 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11630 (int_string, core_addr_to_string, core_addr_to_string_nz)
11631 (hex_string, hex_string_custom): Don't declare.
11632 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11633 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11634 (hex_string_custom, int_string, core_addr_to_string)
11635 (core_addr_to_string_nz, host_address_to_string): Move to
11636 common/print-utils.c.
11637 * common/print-utils.h: New file.
11638 * common/print-utils.c: New file
11639 * Makefile.in (SFILES): Add common/print-utils.c.
11640 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11641 (COMMON_OBS): Add print-utils.o.
11642 (print-utils.o): New target.
11644 2014-02-12 Tom Tromey <tromey@redhat.com>
11646 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11648 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11650 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11652 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11654 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11655 if a PT_IO ptrace request returns sucessfully but indicates that 0
11656 bytes were transferred.
11658 2014-02-12 Pedro Alves <palves@redhat.com>
11659 Kevin Buettner <kevinb@redhat.com>
11661 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11662 TYPE_INSTANCE_FLAG_CODE_SPACE.
11664 2014-02-12 Pedro Alves <palves@redhat.com>
11666 * h8300-tdep.c (pseudo_from_raw_register)
11667 (raw_from_pseudo_register): New functions.
11668 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11671 2014-02-12 Pedro Alves <palves@redhat.com>
11673 * h8300-tdep.c (h8300_register_sim_regno): New function.
11674 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11675 gdbarch_register_sim_regno hook.
11677 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11679 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11681 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11683 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11685 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11687 * obsd-tdep.h (obsd_init_abi): New prototype.
11688 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11689 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11690 (obsd_init_abi): New functions.
11691 * i386obsd-tdep.c: Include "obsd-tdep.h".
11692 (i386obsd_init_abi): Call obsd_init_abi.
11693 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11694 (amd64obsd_init_abi): Call obsd_init_abi.
11695 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11696 obsd-tdep.c to gdb_target_obs.
11698 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11700 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11701 double float arguments to 16-byte in the argument slots.
11703 2014-02-11 Doug Evans <xdje42@gmail.com>
11705 * configure.ac: Don't crash if pkg-config is not found and guile
11706 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11708 * configure: Regenerate.
11710 2014-02-11 Yao Qi <yao@codesourcery.com>
11712 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11713 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11714 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11715 * gnu-nat.c (gnu_xfer_memory): Likewise.
11716 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11717 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11718 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11719 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11721 2014-02-11 Yao Qi <yao@codesourcery.com>
11723 * target.h (enum target_xfer_error): Rename to ...
11724 (enum target_xfer_status): ... it. New. All users updated.
11725 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11727 (TARGET_XFER_STATUS_ERROR_P): New macro.
11728 (target_xfer_error_to_string): Remove declaration.
11729 (target_xfer_status_to_string): Declare.
11730 (target_xfer_partial_ftype): Adjust it.
11731 (struct target_ops) <to_xfer_partial>: Return
11732 target_xfer_status. Add argument xfered_len. Update
11734 * target.c (target_xfer_error_to_string): Rename to ...
11735 (target_xfer_status_to_string): ... it. New. All callers
11737 (target_read_live_memory): Likewise. Call target_xfer_partial
11738 instead of target_read.
11739 (memory_xfer_live_readonly_partial): Return
11740 target_xfer_status. Add argument xfered_len.
11741 (raw_memory_xfer_partial): Likewise.
11742 (memory_xfer_partial_1): Likewise.
11743 (memory_xfer_partial): Likewise.
11744 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11745 properly. Update debug message.
11746 (default_xfer_partial, current_xfer_partial): Likewise.
11747 (target_write_partial): Likewise.
11748 (target_read_partial): Likewise. All callers updated.
11749 (read_whatever_is_readable): Likewise.
11750 (target_write_with_progress): Likewise.
11751 (target_read_alloc_1): Likewise.
11753 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11754 * auxv.c (procfs_xfer_auxv): Likewise.
11755 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11756 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11757 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11758 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11759 * corefile.c (read_memory): Adjust.
11760 * corelow.c (core_xfer_partial): Likewise.
11761 * ctf.c (ctf_xfer_partial): Likewise.
11762 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11764 (darwin_xfer_partial): Likewise.
11765 * exec.c (section_table_xfer_memory_partial): Likewise. All
11767 (exec_xfer_partial): Likewise.
11768 * exec.h (section_table_xfer_memory_partial): Update
11770 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11772 (gnu_xfer_partial): Likewise.
11773 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11774 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11775 (ia64_hpux_xfer_solib_got): Likewise.
11776 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11777 type of 'partial_len' to ULONGEST.
11778 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11779 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11780 (linux_nat_xfer_partial): Likewise.
11781 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11782 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11783 * monitor.c (monitor_xfer_memory): Likewise.
11784 (monitor_xfer_partial): Likewise.
11785 * procfs.c (procfs_xfer_partial): Likewise.
11786 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11787 * record-full.c (record_full_xfer_partial): Likewise.
11788 (record_full_core_xfer_partial): Likewise.
11789 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11790 (gdbsim_xfer_partial): Likewise.
11791 * remote.c (remote_write_bytes_aux): Likewise. All callers
11793 (remote_write_bytes, remote_read_bytes): Likewise. All
11795 (remote_flash_erase): Likewise. All callers updated.
11796 (remote_write_qxfer): Likewise. All callers updated.
11797 (remote_read_qxfer): Likewise. All callers updated.
11798 (remote_xfer_partial): Likewise.
11799 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11800 (rs6000_xfer_shared_libraries): Likewise.
11801 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11802 (sol_thread_xfer_partial): Likewise.
11803 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11804 (sparc_xfer_partial): Likewise.
11805 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11807 (spu_xfer_partial): Likewise.
11808 * spu-multiarch.c (spu_xfer_partial): Likewise.
11809 * tracepoint.c (tfile_xfer_partial): Likewise.
11810 * windows-nat.c (windows_xfer_memory): Likewise.
11811 (windows_xfer_shared_libraries): Likewise.
11812 (windows_xfer_partial): Likewise.
11813 * valprint.c: Replace 'target_xfer_error' with
11814 'target_xfer_status' in comments.
11816 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11818 Checked in by Joel Brobecker <brobecker@adacore.com>.
11819 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11821 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11823 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11824 function parameters.
11826 2014-02-10 Will Newton <will.newton@linaro.org>
11828 * elfread.c (elf_rel_plt_read): Look for a .got section if
11829 looking up .got.plt fails.
11830 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11831 on address passed to elf_gnu_ifunc_record_cache.
11832 (elf_gnu_ifunc_resolve_addr): Likewise.
11833 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11835 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11837 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11838 (X_RETTURN): New macro.
11839 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11841 * sparc64-tdep.c (sparc64_init_abi): Hook
11842 sparc_in_function_epilogue_p.
11844 2014-02-10 Gary Benson <gbenson@redhat.com>
11846 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11847 Rename name_matcher to symbol_matcher.
11849 2014-02-10 Gary Benson <gbenson@redhat.com>
11851 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11852 Use expand_symtabs_file_matcher_ftype and
11853 expand_symtabs_symbol_matcher_ftype.
11855 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11857 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11858 (struct ada_symbol_cache): New.
11859 (ada_free_symbol_cache): Forward declare.
11860 (struct ada_pspace_data): New.
11861 (ada_pspace_data_handle): New static global.
11862 (get_ada_pspace_data, ada_pspace_data_cleanup)
11863 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11864 (cache_space, cache): Delete, now folded inside struct
11866 (ada_get_symbol_cache): New function.
11867 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11869 (_initialize_ada_language): Remove initialization of cache_space.
11870 Move call to observer_attach_inferior_exit up, grouping it
11871 with the other observer registrations inside this function.
11872 Rename command to be more general. Add call to
11873 register_program_space_data_with_cleanup.
11875 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11877 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11878 ada_new_objfile_observer.
11879 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11880 (_initialize_tasks): Update uses of ada_new_objfile_observer
11881 and ada_tasks_normal_stop_observer.
11883 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11885 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11886 returned by the 'Length attribute to integer.
11888 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11890 * ada-lang.c (_initialize_ada_language): Initialize
11891 cache_space obstack.
11893 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11895 * ada-lang.c (HASH_SIZE): New macro.
11896 (struct cache_entry): New type.
11897 (cache_space, cache): New static globals.
11898 (ada_clear_symbol_cache, find_entry): New functions.
11899 (lookup_cached_symbol, cache_symbol): Implement.
11900 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11901 (_initialize_ada_language): Attach ada_new_objfile_observer
11902 and ada_free_objfile_observer.
11904 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11906 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11907 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11908 struct block * parameter.
11909 (ada_lookup_symbol_list_worker): Constify local variable "block".
11910 Remove cast which is no longer necessary.
11912 2014-02-10 Doug Evans <xdje42@gmail.com>
11914 Add Guile as an extension language.
11915 * NEWS: Mention Guile scripting.
11916 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11917 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11918 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11919 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11920 (CLIBS): Add GUILE_LIBS.
11921 (install-guile): New rule.
11922 (guile.o): New rule.
11923 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11924 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11925 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11926 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11927 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11928 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11929 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11930 * configure.ac: New option --with-guile.
11931 * configure: Regenerate.
11932 * config.in: Regenerate.
11933 * auto-load.c: Remove #include "python/python.h". Add #include
11934 "gdb/section-scripts.h".
11935 (source_section_scripts): Handle Guile scripts.
11936 (_initialize_auto_load): Add name of Guile objfile script to
11937 scripts-directory help text.
11938 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11939 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11940 (struct breakpoint): New member scm_bp_object.
11941 * defs.h (enum command_control_type): New value guile_control.
11942 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11944 (show_user): Update comment.
11945 (_initialize_cli_cmds): Update help text for "show user". Update help
11946 text for max-user-call-depth.
11947 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11949 (multi_line_command_p): Add guile_control.
11950 (print_command_lines): Handle guile_control.
11951 (execute_control_command, recurse_read_control_structure): Ditto.
11952 (process_next_line): Recognize "guile" commands.
11953 * disasm.c (gdb_disassemble_info): Make non-static.
11954 * disasm.h: #include "dis-asm.h".
11955 (struct gdbarch): Add forward decl.
11956 (gdb_disassemble_info): Declare.
11957 * extension.c: #include "guile/guile.h".
11958 (extension_languages): Add guile.
11959 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11960 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11961 * gdbtypes.c (get_unsigned_type_max): New function.
11962 (get_signed_type_minmax): New function.
11963 * gdbtypes.h (get_unsigned_type_max): Declare.
11964 (get_signed_type_minmax): Declare.
11965 * guile/README: New file.
11966 * guile/guile-internal.h: New file.
11967 * guile/guile.c: New file.
11968 * guile/guile.h: New file.
11969 * guile/scm-arch.c: New file.
11970 * guile/scm-auto-load.c: New file.
11971 * guile/scm-block.c: New file.
11972 * guile/scm-breakpoint.c: New file.
11973 * guile/scm-disasm.c: New file.
11974 * guile/scm-exception.c: New file.
11975 * guile/scm-frame.c: New file.
11976 * guile/scm-gsmob.c: New file.
11977 * guile/scm-iterator.c: New file.
11978 * guile/scm-lazy-string.c: New file.
11979 * guile/scm-math.c: New file.
11980 * guile/scm-objfile.c: New file.
11981 * guile/scm-ports.c: New file.
11982 * guile/scm-pretty-print.c: New file.
11983 * guile/scm-safe-call.c: New file.
11984 * guile/scm-string.c: New file.
11985 * guile/scm-symbol.c: New file.
11986 * guile/scm-symtab.c: New file.
11987 * guile/scm-type.c: New file.
11988 * guile/scm-utils.c: New file.
11989 * guile/scm-value.c: New file.
11990 * guile/lib/gdb.scm: New file.
11991 * guile/lib/gdb/boot.scm: New file.
11992 * guile/lib/gdb/experimental.scm: New file.
11993 * guile/lib/gdb/init.scm: New file.
11994 * guile/lib/gdb/iterator.scm: New file.
11995 * guile/lib/gdb/printing.scm: New file.
11996 * guile/lib/gdb/types.scm: New file.
11997 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11998 (VPATH): Add $(GUILE_SRCDIR).
11999 (GUILE_DIR): New variable.
12000 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12001 (all): Add stamp-guile dependency.
12002 (stamp-guile): New rule.
12003 (clean-guile, install-guile, uninstall-guile): New rules.
12004 (install-only): Add install-guile dependency.
12005 (uninstall): Add uninstall-guile dependency.
12006 (clean): Add clean-guile dependency.
12008 2014-02-09 Doug Evans <xdje42@gmail.com>
12010 Revert this patch (which I approved, mea culpa).
12012 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12014 * Makefile.in (all-lib): Remove.
12015 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12017 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12019 Fix Python stack corruption.
12020 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12023 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12025 * Makefile.in (all-lib): Remove.
12026 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12028 2014-02-07 Doug Evans <dje@google.com>
12030 * extension-priv.h (extension_language_script_ops): Add comment.
12031 (extension_language_ops): Add comment.
12032 (active_ext_lang_state): Fix typo in comment.
12034 2014-02-07 Pedro Alves <palves@redhat.com>
12036 PR breakpoints/16292
12037 * infrun.c (handle_signal_stop) <signal arrives while stepping
12038 over a breakpoint>: Switch back to the stepping thread.
12040 2014-02-07 Yao Qi <yao@codesourcery.com>
12042 * target.c (target_xfer_partial): Return zero if LEN is zero.
12044 2014-02-07 Yao Qi <yao@codesourcery.com>
12046 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12047 (ld_so_xfer_auxv): Likewise.
12048 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12049 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12050 * corelow.c (core_xfer_partial): Likewise.
12051 * ctf.c (ctf_xfer_partial): Likewise.
12052 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12053 (darwin_xfer_partial): Likewise.
12054 * exec.c (exec_xfer_partial): Likewise.
12055 * gnu-nat.c (gnu_xfer_partial): Likewise.
12056 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12057 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12058 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12059 * linux-nat.c (linux_xfer_siginfo): Likewise.
12060 (linux_proc_xfer_spu): Likewise.
12061 * procfs.c (procfs_xfer_partial): Likewise.
12062 * record-full.c (record_full_xfer_partial): Likewise.
12063 (record_full_core_xfer_partial): Likewise.
12064 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12065 * remote.c (remote_write_qxfer): Likewise.
12066 (remote_write_qxfer, remote_read_qxfer): Likewise.
12067 (remote_xfer_partial): Likewise.
12068 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12069 (rs6000_xfer_shared_libraries): Likewise.
12070 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12071 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12072 (spu_xfer_partial): Likewise.
12073 * target.c (memory_xfer_partial_1): Likewise.
12074 * tracepoint.c (tfile_xfer_partial): Likewise.
12075 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12076 (windows_xfer_partial): Likewise.
12078 2014-02-07 Yao Qi <yao@codesourcery.com>
12080 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12082 (core_xfer_shared_libraries_aix): Likewise.
12083 * gdbarch.c, gdbarch.h: Regenerated.
12084 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12085 ULONGEST. Change 'len_avail' type to ULONGEST.
12086 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12087 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12089 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12091 2014-02-07 Yao Qi <yao@codesourcery.com>
12093 * corefile.c (memory_error): Get 'exception' from ERR and pass
12094 'exception' to throw_error.
12096 2014-02-06 Doug Evans <xdje42@gmail.com>
12098 * configure.ac (libpython checking): Remove all but python.o from
12099 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12100 * configure: Regenerate.
12102 * Makefile.in (SFILES): Add extension.c.
12103 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12104 (COMMON_OBS): Add extension.o.
12105 * extension.h: New file.
12106 * extension-priv.h: New file.
12107 * extension.c: New file.
12109 * python/python-internal.h: #include "extension.h".
12110 (gdbpy_auto_load_enabled): Declare.
12111 (gdbpy_apply_val_pretty_printer): Declare.
12112 (gdbpy_apply_frame_filter): Declare.
12113 (gdbpy_preserve_values): Declare.
12114 (gdbpy_breakpoint_cond_says_stop): Declare.
12115 (gdbpy_breakpoint_has_cond): Declare.
12116 (void source_python_script_for_objfile): Delete.
12117 * python/python.c: #include "extension-priv.h".
12118 Delete inclusion of "observer.h".
12119 (extension_language_python): Moved here and renamed from
12120 script_language_python in py-auto-load.c.
12121 Redefined to be of type extension_language_defn.
12122 (python_extension_script_ops): New global.
12123 (python_extension_ops): New global.
12124 (struct python_env): New member previous_active.
12125 (restore_python_env): Call restore_active_ext_lang.
12126 (ensure_python_env): Call set_active_ext_lang.
12127 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12129 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12131 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12133 (gdbpy_eval_from_control_command): Renamed from
12134 eval_python_from_control_command, made static. New arg extlang.
12135 (gdbpy_source_script) Renamed from source_python_script, made static.
12137 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12138 result to int. New arg extlang.
12139 (gdbpy_source_objfile_script): Renamed from
12140 source_python_script_for_objfile, made static. New arg extlang.
12141 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12142 static. New args extlang, extlang_printers. Change result type to
12144 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12145 static. New arg extlang. Rename arg printers to extlang_printers
12146 and change type to ext_lang_type_printers *.
12147 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12148 static. Replace argument arg with extlang, extlang_printers.
12149 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12150 (!HAVE_PYTHON, source_python_script): Delete.
12151 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12152 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12153 (!HAVE_PYTHON, start_type_printers): Delete.
12154 (!HAVE_PYTHON, apply_type_printers): Delete.
12155 (!HAVE_PYTHON, free_type_printers): Delete.
12156 (_initialize_python): Delete call to observer_attach_before_prompt.
12157 (finalize_python): Set/restore active extension language.
12158 (gdbpy_finish_initialization) Renamed from
12159 finish_python_initialization, made static. New arg extlang.
12160 (gdbpy_initialized): New function.
12161 * python/python.h: #include "extension.h". Delete #include
12162 "value.h", "mi/mi-cmds.h".
12163 (extension_language_python): Declare.
12164 (GDBPY_AUTO_FILE_NAME): Delete.
12165 (enum py_bt_status): Moved to extension.h and renamed to
12166 ext_lang_bt_status.
12167 (enum frame_filter_flags): Moved to extension.h.
12168 (enum py_frame_args): Moved to extension.h and renamed to
12169 ext_lang_frame_args.
12170 (finish_python_initialization): Delete.
12171 (eval_python_from_control_command): Delete.
12172 (source_python_script): Delete.
12173 (apply_val_pretty_printer): Delete.
12174 (apply_frame_filter): Delete.
12175 (preserve_python_values): Delete.
12176 (gdbpy_script_language_defn): Delete.
12177 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12178 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12180 * auto-load.c: #include "extension.h".
12181 (GDB_AUTO_FILE_NAME): Delete.
12182 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12183 (script_language_gdb): Delete, moved to extension.c and renamed to
12184 extension_language_gdb.
12185 (source_gdb_script_for_objfile): Delete.
12186 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12187 (loaded_script): Change type of language member to
12188 struct extension_language_defn *.
12189 (init_loaded_scripts_info): Initialize
12190 unsupported_script_warning_printed.
12191 (maybe_add_script): Make static. Change type of language arg to
12192 struct extension_language_defn *.
12193 (clear_section_scripts): Reset unsupported_script_warning_printed.
12194 (auto_load_objfile_script_1): Rewrite to use extension language API.
12195 (auto_load_objfile_script): Make public. Remove support-compiled-in
12196 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12197 (source_section_scripts): Rewrite to use extension language API.
12198 (load_auto_scripts_for_objfile): Rewrite to use
12199 auto_load_scripts_for_objfile.
12200 (collect_matching_scripts_data): Change type of language member to
12201 struct extension_language_defn *.
12202 (auto_load_info_scripts): Change type of language arg to
12203 struct extension_language_defn *.
12204 (unsupported_script_warning_print): New function.
12205 (script_not_found_warning_print): Make static.
12206 (_initialize_auto_load): Rewrite construction of scripts-directory
12208 * auto-load.h (struct objfile): Add forward decl.
12209 (struct script_language): Delete.
12210 (struct auto_load_pspace_info): Add forward decl.
12211 (struct extension_language_defn): Add forward decl.
12212 (maybe_add_script): Delete.
12213 (auto_load_objfile_script): Declare.
12214 (script_not_found_warning_print): Delete.
12215 (auto_load_info_scripts): Update prototype.
12216 (auto_load_gdb_scripts_enabled): Declare.
12217 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12218 auto_load_python_scripts_enabled and made public.
12219 (script_language_python): Delete, moved to python.c.
12220 (gdbpy_script_language_defn): Delete.
12221 (info_auto_load_python_scripts): Update to use
12222 extension_language_python.
12224 * breakpoint.c (condition_command): Replace call to
12225 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12226 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12227 with call to breakpoint_ext_lang_cond_says_stop.
12228 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12229 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12230 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12231 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12233 (local_setattro): Print name of extension language with existing
12236 * valprint.c (val_print, value_print): Update to call
12237 apply_ext_lang_val_pretty_printer.
12238 * cp-valprint.c (cp_print_value): Update call to
12239 apply_ext_lang_val_pretty_printer.
12240 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12241 (gdbpy_apply_val_pretty_printer): Renamed from
12242 apply_val_pretty_printer. New arg extlang.
12243 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12245 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12246 extension language API.
12247 * cli/cli-script.c (execute_control_command): Update to call
12248 eval_ext_lang_from_control_command.
12250 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12251 enum ext_lang_bt_status values. Update call to
12252 apply_ext_lang_frame_filter.
12253 (mi_cmd_stack_list_locals): Ditto.
12254 (mi_cmd_stack_list_args): Ditto.
12255 (mi_cmd_stack_list_variables): Ditto.
12256 * mi/mi-main.c: Delete #include "python/python-internal.h".
12257 Add #include "extension.h".
12258 (mi_cmd_list_features): Replace reference to python internal variable
12259 gdb_python_initialized with call to ext_lang_initialized_p.
12261 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12262 Update to use enum ext_lang_frame_args. Update to call
12263 apply_ext_lang_frame_filter.
12264 * python/py-framefilter.c (extract_sym): Update to use enum
12265 ext_lang_bt_status.
12266 (extract_value, py_print_type, py_print_value): Ditto.
12267 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12268 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12269 (py_print_frame): Ditto.
12270 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12271 New arg extlang. Update to use enum ext_lang_bt_status.
12273 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12274 finish_python_initialization. Replace with call to
12275 finish_ext_lang_initialization.
12277 * typeprint.c (do_free_global_table): Update to call
12278 free_ext_lang_type_printers.
12279 (create_global_typedef_table): Update to call
12280 start_ext_lang_type_printers.
12281 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12282 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12283 (type_print_options): Change type of global_printers from "void *"
12284 to "struct ext_lang_type_printers *".
12286 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12287 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12288 (gdbpy_preserve_values): Renamed from preserve_python_values.
12290 (!HAVE_PYTHON, preserve_python_values): Delete.
12292 * utils.c (quit_flag): Delete, moved to extension.c.
12293 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12296 * eval.c: Delete #include "python/python.h".
12297 * main.c: Delete #include "python/python.h".
12299 * defs.h: Update comment.
12301 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12305 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12307 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12310 2014-02-05 Yao Qi <yao@codesourcery.com>
12312 * remote.c (remote_pass_signals): Remove local 'buf' and use
12314 (remote_program_signals): Likewise.
12316 2014-02-05 Yao Qi <yao@codesourcery.com>
12318 * ctf.c: Include "inferior.h" and "gdbthread.h".
12319 (CTF_PID): A new macro.
12320 (ctf_open): Call inferior_appeared and add_thread_silent.
12321 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12322 (ctf_thread_alive): New function.
12323 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12325 2014-02-05 Yao Qi <yao@codesourcery.com>
12329 2013-05-24 Yao Qi <yao@codesourcery.com>
12331 * tracepoint.c (TFILE_PID): Remove.
12332 (tfile_open): Don't add thread and inferior.
12333 (tfile_close): Don't set 'inferior_ptid'. Don't call
12334 exit_inferior_silent.
12335 (tfile_thread_alive): Remove.
12336 (init_tfile_ops): Don't set field 'to_thread_alive' of
12339 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12341 * remote.c (remote_start_remote): Call remote_check_symbols even
12342 if only symbol-file (not file) has been given.
12344 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12346 * gdbarch.sh (skip_entrypoint): New callback.
12347 * gdbarch.c, gdbarch.h: Regenerate.
12348 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12349 * infrun.c (fill_in_stop_func): Likewise.
12350 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12351 (ppc_elfv2_elf_make_msymbol_special): New function.
12352 (ppc_elfv2_skip_entrypoint): Likewise.
12353 (ppc_linux_init_abi): Install them for ELFv2.
12355 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12357 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12358 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12359 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12360 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12361 structures returned in GPRs.
12363 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12365 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12366 offset to the stack parameter list for the ELFv2 ABI.
12368 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12370 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12371 set_gdbarch_convert_from_func_ptr_addr and
12372 set_gdbarch_elf_make_msymbol_special for ELFv1.
12373 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12374 function descriptors on ELFv1.
12375 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12376 set up r12 at function entry.
12378 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12380 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12381 (struct gdbarch_tdep): New member elf_abi.
12383 * rs6000-tdep.c: Include "elf/ppc64.h".
12384 (rs6000_gdbarch_init): Detect ELF ABI version.
12386 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12388 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12389 within a register pair holding a DFP 128-bit value on little-endian.
12390 (ppc64_sysv_abi_return_value_base): Likewise.
12391 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12392 (dfp_pseudo_register_write): Likewise.
12394 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12396 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12397 offset on little-endian when passing _Decimal32.
12398 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12400 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12402 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12403 of the overlapped FP register within the VSX register on little-
12405 (efpr_pseudo_register_write): Likewise.
12407 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12409 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12410 offset on little-endian when passing small structures.
12412 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12414 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12415 (struct ppc64_sysv_argpos): New data structure.
12416 (ppc64_sysv_abi_push_float): Remove.
12417 (ppc64_sysv_abi_push_val): New function.
12418 (ppc64_sysv_abi_push_integer): Likewise.
12419 (ppc64_sysv_abi_push_freg): Likewise.
12420 (ppc64_sysv_abi_push_vreg): Likewise.
12421 (ppc64_sysv_abi_push_param): Likewise.
12422 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12423 (ppc64_sysv_abi_return_value_base): New function.
12424 (ppc64_sysv_abi_return_value): Refactor to use it.
12426 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12428 * NEWS: Document new target powerpc64le-*-linux*.
12430 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12432 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12433 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12435 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12436 register set used in ELF core dumps. Add floating-point register set.
12438 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12440 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12441 dwarf2_to_gdb[] table using symbolic constants. Adjust
12442 penultimate entry from number representing the PC register
12443 to symbolic constant representing the MDR register. Add
12444 constant for the PC register to the end of the table.
12446 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12448 * bsd-kvm.c: Include <sys/param.h>
12450 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12452 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12454 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12456 * ada-lang.h (clear_ada_sym_cache): Delete.
12458 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12460 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12462 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12464 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12465 the sigreturn register save area only if the syscall is
12468 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12470 * valops.c (value_slice): Minor reformatting.
12472 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12474 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12476 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12478 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12479 New static globals.
12480 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12481 (ada_ignore_descriptive_types_p): New static global.
12482 (find_parallel_type_by_descriptive_type): Return immediately
12483 if ada_ignore_descriptive_types_p is set.
12484 (_initialize_ada_language): Register new commands "maintenance
12485 set ada", "maintenance show ada", "maintenance set ada
12486 ignore-descriptive-types" and "maintenance show ada
12487 ignore-descriptive-types".
12488 * NEWS: Add entry for new "maint ada set/show
12489 ignore-descriptive-types" commands.
12491 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12493 * record-btrace.c (record_btrace_close): Call btrace_teardown
12496 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12498 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12501 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12503 * ada-typeprint (type_is_full_subrange_of_target_type):
12505 (print_range): Add parameter bounds_prefered_p. If not set,
12506 try printing range types using the name of their base type.
12507 (print_range_type): Add parameter bounds_prefered_p.
12508 Use it in call to print_range.
12509 (print_array_type, ada_print_type): Update calls to print_range
12510 and print_range_type.
12512 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12514 * ada-typeprint.c (print_array_type, print_choices, print_range)
12515 (print_range_bound, print_dynamic_range_bound, print_range_type):
12516 Remove declaration.
12518 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12520 * ada-typeprint.c (print_range): Add missing empty line
12521 after local declaration.
12523 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12525 * ada-valprint.c (print_optional_low_bound): Get index_type's
12526 target type for as long as it is a TYPE_CODE_RANGE.
12528 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12530 * procfs.c (procfs_make_note_section): Remove assertion and
12531 associated comment.
12533 2014-01-24 Yao Qi <yao@codesourcery.com>
12535 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12536 * corelow.c (get_core_siginfo): Likewise.
12538 2014-01-24 Yao Qi <yao@codesourcery.com>
12540 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12541 ULONGEST. Don't check 'len' is negative.
12542 (remote_write_bytes): Change type of 'len' to ULONGEST.
12544 2014-01-23 Tom Tromey <tromey@redhat.com>
12547 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12548 Handle exception from frame.block.
12549 (FrameVars.fetch_frame_locals): Likewise.
12551 2014-01-23 Tom Tromey <tromey@redhat.com>
12554 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12555 on a NULL pointer. Move "goto error" to correct place.
12557 2014-01-23 Tom Tromey <tromey@redhat.com>
12560 * python/py-framefilter.c (apply_frame_filter): Call
12561 ensure_python_env after computing gdbarch.
12563 2014-01-23 Yao Qi <yao@codesourcery.com>
12565 * target.c (raw_memory_xfer_partial): Change argument type
12566 from void * to gdb_byte *.
12567 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12569 2014-01-22 Doug Evans <dje@google.com>
12571 New gdbserver option --debug-format=timestamp.
12572 * NEWS: Mention it.
12574 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12576 * syscalls/s390x-linux.xml: New file.
12577 * syscalls/s390-linux.xml: New file.
12578 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12579 (XML_SYSCALL_FILENAME_S390X): Likewise.
12580 (op_svc): New enum value for SVC opcode.
12581 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12582 (s390_linux_get_syscall_number): New function.
12583 (s390_gdbarch_init): Register '*get_syscall_number' and the
12584 syscall xml file name.
12585 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12586 "s390-linux.xml" and "s390x-linux.xml".
12587 * NEWS: Announce new feature.
12589 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12591 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12593 2014-01-22 Pedro Alves <palves@redhat.com>
12595 * xtensa-config.c: Include defs.h.
12597 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12599 * common/common-utils.h: Add "ARI:" comment beside __func__
12602 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12604 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12605 documentation a bit.
12607 2014-01-21 Roland McGrath <mcgrathr@google.com>
12609 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12610 * configure: Regenerate.
12611 * aclocal.m4: Regenerate.
12612 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12613 New substituted variables.
12614 (install-strip): New target.
12615 (INSTALL_SCRIPT): New substituted variable.
12616 (FLAGS_TO_PASS): Add it.
12617 (install-only): Use $(INSTALL_SCRIPT) rather than
12618 $(INSTALL_PROGRAM) for gcore.
12620 2014-01-20 Tom Tromey <tromey@redhat.com>
12622 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12625 2014-01-20 Tom Tromey <tromey@redhat.com>
12627 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12628 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12629 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12630 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12631 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12632 (struct cmd_list_element) <flags>: Remove.
12633 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12634 doc_allocated>: New fields.
12635 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12637 * maint.c (maintenance_do_deprecate): Update.
12638 * top.c (execute_command): Update.
12640 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12642 * xtensa-linux-nat.c: Include asm/ptrace.h.
12644 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12646 * Makefile.in (SFILES): Add d-support.c.
12647 (COMMON_OBS): Add d-support.o.
12648 * d-lang.h (d_parse_symbol): Add comment, now defined in
12650 * d-lang.c (parse_call_convention)
12651 (parse_attributes, parse_function_types)
12652 (parse_function_args, parse_type, parse_identifier)
12653 (call_convention_p, d_parse_symbol): Move functions to ...
12654 * d-support.c: ... New file.
12656 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12658 * d-lang.h (d_parse_symbol): Add declaration.
12659 * d-lang.c (extract_identifiers)
12660 (extract_type_info): Remove functions.
12661 (parse_call_convention, parse_attributes)
12662 (parse_function_types, parse_function_args)
12663 (parse_type, parse_identifier, call_convention_p)
12664 (d_parse_symbol): New functions.
12665 (d_demangle): Use d_parse_symbol to demangle D symbols.
12667 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12669 * d-lang.h (struct builtin_d_type): New data type.
12670 (builtin_d_type): Add declaration.
12671 * d-lang.c (d_language_arch_info, build_d_types)
12672 (builtin_d_type): New functions.
12673 (enum d_primitive_types): New data type.
12674 (d_language_defn): Change c_language_arch_info to
12675 d_language_arch_info.
12676 (d_type_data): New static variable.
12677 (_initialize_d_language): Initialize d_type_data.
12679 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12681 * d-lang.h (d_main_name): Add declaration.
12682 * d-lang.c (d_main_name): New function.
12683 * symtab.c (find_main_name): Add call to d_main_name.
12685 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12687 * d-lang.c (d_language_defn): Change macro_expansion_c to
12688 macro_expansion_no.
12690 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12692 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12694 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12696 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12697 gdb_exception" declaration.
12698 * remote.c (getpkt_or_notif_sane): Likewise.
12700 2014-01-17 Doug Evans <dje@google.com>
12702 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12703 function, contents of dirnames_to_char_ptr_vec_append moved here.
12704 (delim_string_to_char_ptr_vec): New function.
12705 (dirnames_to_char_ptr_vec_append): Rewrite.
12706 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12708 2014-01-17 Doug Evans <dje@google.com>
12710 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12712 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12713 #include "common-utils.h".
12714 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12715 * common/vec.h (VEC_ASSERT_PASS): Update.
12716 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12717 (MACH_CHECK_ERROR): Update.
12719 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12721 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12723 * gdbarch.h: Regenerate.
12725 2014-01-16 Tom Tromey <tromey@redhat.com>
12727 * value.c (struct value) <regnum>: Move earlier.
12729 2014-01-16 Tom Tromey <tromey@redhat.com>
12731 * remote.c (extended_remote_create_inferior): Rename from
12732 extended_remote_create_inferior_1. Add "ops" argument. Remove
12733 old implementation.
12735 2014-01-16 Pedro Alves <palves@redhat.com>
12737 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12738 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12741 2014-01-16 Doug Evans <dje@google.com>
12743 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12745 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12747 * btrace.h (btrace_thread_flag): New.
12748 (struct btrace_thread_info) <flags>: New.
12749 * record-btrace.c (record_btrace_resume_thread)
12750 (record_btrace_find_thread_to_move, btrace_step_no_history)
12751 (btrace_step_stopped, record_btrace_start_replaying)
12752 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12753 (record_btrace_find_resume_thread): New.
12754 (record_btrace_resume, record_btrace_wait): Extend.
12755 (record_btrace_can_execute_reverse): New.
12756 (record_btrace_open): Fail in non-stop mode.
12757 (record_btrace_set_replay): Split into this, ...
12758 (record_btrace_stop_replaying): ... this, ...
12759 (record_btrace_clear_histories): ... and this.
12760 (init_record_btrace_ops): Init to_can_execute_reverse.
12761 * NEWS: Announce it.
12763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12765 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12766 (forward_target_decr_pc_after_break)
12767 (target_decr_pc_after_break): New.
12768 * target.c (forward_target_decr_pc_after_break)
12769 (target_decr_pc_after_break): New.
12770 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12771 instead of gdbarch_decr_pc_after_break.
12772 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12773 instead of gdbarch_decr_pc_after_break.
12774 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12775 instead of gdbarch_decr_pc_after_break.
12776 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12777 instead of gdbarch_decr_pc_after_break.
12778 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12779 instead of gdbarch_decr_pc_after_break.
12780 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12781 instead of gdbarch_decr_pc_after_break.
12783 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12785 * btrace.c: Include regcache.h.
12786 (btrace_add_pc): New.
12787 (btrace_enable): Call btrace_add_pc.
12788 (btrace_is_empty): New.
12789 * btrace.h (btrace_is_empty): New.
12790 * record-btrace.c (require_btrace, record_btrace_info): Call
12793 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12795 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12796 Support delta reads.
12797 (linux_disable_btrace): Change return type.
12798 * common/linux-btrace.h (linux_read_btrace): Change parameters
12799 and return type to allow error reporting. Update users.
12800 (linux_disable_btrace): Change return type. Update users.
12801 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12803 (btrace_error): New.
12804 (btrace_block) <begin>: Comment on BEGIN == 0.
12805 * btrace.c (btrace_compute_ftrace): Start from the end of
12807 (btrace_stitch_trace, btrace_clear_history): New.
12808 (btrace_fetch): Read delta trace, return if replaying.
12809 (btrace_clear): Move clear history code to btrace_clear_history.
12810 (parse_xml_btrace): Throw an error if parsing failed.
12811 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12812 and return type to allow error reporting.
12813 (target_read_btrace): Change parameters and return type to allow
12815 * target.c (target_read_btrace): Update.
12816 * remote.c (remote_read_btrace): Support delta reads. Pass
12818 * NEWS: Announce it.
12820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12822 * record.h (record_btrace_frame_unwind)
12823 (record_btrace_tailcall_frame_unwind): New declarations.
12824 * dwarf2-frame: Include record.h
12825 (dwarf2_frame_cfa): Throw an error for btrace frames.
12826 * record-btrace.c: Include hashtab.h.
12827 (btrace_get_bfun_name): New.
12828 (btrace_call_history): Call btrace_get_bfun_name.
12829 (struct btrace_frame_cache): New.
12831 (bfcache_hash, bfcache_eq, bfcache_new): New.
12832 (btrace_get_frame_function): New.
12833 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12834 (record_btrace_frame_this_id): Compute own id.
12835 (record_btrace_frame_prev_register): Provide PC, throw_error
12836 for all other registers.
12837 (record_btrace_frame_sniffer): Detect btrace frames.
12838 (record_btrace_tailcall_frame_sniffer): New.
12839 (record_btrace_frame_dealloc_cache): New.
12840 (record_btrace_frame_unwind): Add new functions.
12841 (record_btrace_tailcall_frame_unwind): New.
12842 (_initialize_record_btrace): Allocate cache.
12843 * btrace.c (btrace_clear): Call reinit_frame_cache.
12844 * NEWS: Announce it.
12846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12848 * record-btrace.c (record_btrace_set_replay)
12849 (record_btrace_goto_begin, record_btrace_goto_end)
12850 (record_btrace_goto): New.
12851 (init_record_btrace_ops): Initialize them.
12852 * NEWS: Announce it.
12854 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12856 * record-btrace.c (record_btrace_find_new_threads)
12857 (record_btrace_thread_alive): New.
12858 (init_record_btrace_ops): Initialize to_find_new_threads and
12861 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12863 * record-btrace.c (record_btrace_resume): New.
12864 (record_btrace_wait): New.
12865 (init_record_btrace_ops): Initialize to_wait and to_resume.
12867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12869 * record-btrace.c (record_btrace_xfer_partial)
12870 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12871 (record_btrace_allow_memory_access): New.
12872 (init_record_btrace_ops): Initialize new methods.
12873 * target.c (raw_memory_xfer_partial): Bail out if target reports
12874 that this memory is not available.
12876 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12878 * target.h (target_ops) <to_insert_breakpoint>
12879 <to_remove_breakpoint>: Add target_ops parameter.
12880 (forward_target_insert_breakpoint): New.
12881 (forward_target_remove_breakpoint): New.
12882 (memory_remove_breakpoint, memory_insert_breakpoint):
12883 Add target_ops parameter.
12884 * target.c (target_insert_breakpoint): Split into this and ...
12885 (forward_target_insert_breakpoint): ... this.
12886 (target_remove_breakpoint): Split into this and ...
12887 (forward_target_remove_breakpoint): ... this.
12888 (debug_to_insert_breakpoint): Add target_ops parameter.
12889 Call forward_target_insert_breakpoint.
12890 (debug_to_remove_breakpoint): Add target_ops parameter.
12891 Call forward_target_remove_breakpoint.
12892 (update_current_target): Do not inherit or default to_insert_breakpoint
12893 and to_remove_breakpoint.
12894 * corelow.c (ignore): Add target_ops parameter.
12895 * exec.c (ignore): Add target_ops parameter.
12896 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12897 Add target_ops parameter.
12898 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12899 Add target_ops parameter.
12900 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12901 Add target_ops parameter.
12902 * record-full.c (record_full_beneath_to_insert_breakpoint)
12903 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12904 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12905 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12906 (record_full_core_remove_breakpoint): Add target_ops parameter.
12908 (record_full_beneath_to_insert_breakpoint_ops)
12909 (record_full_beneath_to_remove_breakpoint_ops)
12910 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12911 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12912 tmp_to_remove_breakpoint_ops,
12913 record_full_beneath_to_insert_breakpoint_ops, and
12914 record_full_beneath_to_remove_breakpoint_ops.
12915 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12916 (m32r_remove_breakpoint): Add target_ops parameter.
12917 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12918 Add target_ops parameter.
12919 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12920 Add target_ops parameter.
12922 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12923 Markus Metzger <markus.t.metzger@intel.com>
12925 * record-btrace.c: Include frame-unwind.h.
12926 (record_btrace_frame_unwind_stop_reason)
12927 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12928 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12930 (init_record_btrace_ops): Install it.
12932 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12934 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12937 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12939 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12942 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12944 * frame-unwind.c: Include target.h.
12945 (frame_unwind_try_unwinder): New function with code from ...
12946 (frame_unwind_find_by_frame): ... here. New variable
12947 unwinder_from_target, call also target_get_unwinder)
12948 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12949 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12950 * target.h (struct target_ops): New fields to_get_unwinder and
12951 to_get_tailcall_unwinder.
12952 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12954 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12956 * record-btrace.c (record_btrace_fetch_registers)
12957 (record_btrace_store_registers)
12958 (record_btrace_to_prepare_to_store): New.
12959 (init_record_btrace_ops): Add the above.
12961 2014-01-16 Tom Tromey <tromey@redhat.com>
12963 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12964 * target.h (struct target_ops) <to_prepare_to_store>: Add
12966 (target_prepare_to_store): Add argument.
12967 * target.c (debug_to_prepare_to_store): Add argument.
12968 (update_current_target): Update.
12969 * remote.c (remote_prepare_to_store): Add 'self' argument.
12970 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12971 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12972 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12973 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12975 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12976 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12977 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12978 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12979 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12981 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12983 * btrace.h (replay) <replay>: New.
12984 (btrace_is_replaying): New.
12985 * btrace.c (btrace_clear): Free replay iterator.
12986 (btrace_is_replaying): New.
12987 * record-btrace.c (record_btrace_is_replaying): New.
12988 (record_btrace_info): Print insn number if replaying.
12989 (record_btrace_insn_history): Start at replay position.
12990 (record_btrace_call_history): Start at replay position.
12991 (init_record_btrace_ops): Init to_record_is_replaying.
12993 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12995 * record-btrace.c (record_btrace_insn_history_range): Include
12997 (record_btrace_insn_history_from): Adjust range.
12998 (record_btrace_call_history_range): Include
13000 (record_btrace_call_history_from): Adjust range.
13001 * NEWS: Announce changes.
13003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13005 * record.h (enum record_print_flag)
13006 <record_print_indent_calls>: New.
13007 * record.c (get_call_history_modifiers): Recognize /c modifier.
13008 (_initialize_record): Document /c modifier.
13009 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13010 Reorder fields. Optionally indent the function name. Update
13012 * NEWS: Announce changes.
13014 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13016 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13018 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13020 * btrace.c (ftrace_new_function): Start counting at one.
13021 * record-btrace.c (record_btrace_info): Adjust number of calls
13023 * NEWS: Announce it.
13025 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13027 * record-btrace.c (btrace_call_history_insn_range): Print
13028 insn range as [begin, end].
13030 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13032 * btrace.h (struct btrace_func_link): New.
13033 (enum btrace_function_flag): New.
13034 (struct btrace_inst): Rename to ...
13035 (struct btrace_insn): ...this. Update all users.
13036 (struct btrace_func) <ibegin, iend>: Remove.
13037 (struct btrace_func_link): New.
13038 (struct btrace_func): Rename to ...
13039 (struct btrace_function): ...this. Update all users.
13040 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13041 (number, level, flags>: New.
13042 (struct btrace_insn_iterator): Rename to ...
13043 (struct btrace_insn_history): ...this.
13045 (struct btrace_insn_iterator, btrace_call_iterator): New.
13046 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13047 (struct btrace_target_info) <begin, end, level>
13048 <insn_history, call_history>: New.
13049 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13050 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13051 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13052 (btrace_call_number, btrace_call_begin, btrace_call_end)
13053 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13054 (btrace_find_function_by_number, btrace_set_insn_history)
13055 (btrace_set_call_history): New.
13056 * btrace.c (btrace_init_insn_iterator)
13057 (btrace_init_func_iterator, compute_itrace): Remove.
13058 (ftrace_print_function_name, ftrace_print_filename)
13059 (ftrace_skip_file): Change
13060 parameter to const.
13061 (ftrace_init_func): Remove.
13062 (ftrace_debug): Use new btrace_function fields.
13063 (ftrace_function_switched): Also consider gaining and
13064 losing symbol information).
13065 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13066 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13067 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13069 (ftrace_new_function): Move. Remove debug print.
13070 (ftrace_update_lines, ftrace_update_insns): New.
13071 (ftrace_update_function): Check for call, ret, and jump.
13072 (compute_ftrace): Renamed to ...
13073 (btrace_compute_ftrace): ...this. Rewritten to compute call
13075 (btrace_fetch, btrace_clear): Updated.
13076 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13077 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13078 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13079 (btrace_call_number, btrace_call_begin, btrace_call_end)
13080 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13081 (btrace_find_function_by_number, btrace_set_insn_history)
13082 (btrace_set_call_history): New.
13083 * record-btrace.c (require_btrace): Use new btrace thread
13085 (record_btrace_info, btrace_insn_history)
13086 (record_btrace_insn_history, record_btrace_insn_history_range):
13087 Use new btrace thread info fields and new iterator.
13088 (btrace_func_history_src_line): Rename to ...
13089 (btrace_call_history_src_line): ...this. Use new btrace
13090 thread info fields.
13091 (btrace_func_history): Rename to ...
13092 (btrace_call_history): ...this. Use new btrace thread info
13093 fields and new iterator.
13094 (record_btrace_call_history, record_btrace_call_history_range):
13095 Use new btrace thread info fields and new iterator.
13097 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13099 * frame.h (frame_id_build_unavailable_stack_special): New.
13100 * frame.c (frame_id_build_unavailable_stack_special): New.
13102 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13104 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13105 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13106 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13108 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13109 (i386_insn_is_jump, i386_jmp_p): New.
13110 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13111 insn_is_jump to gdbarch.
13112 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13113 * gdbarch.h: Regenerated.
13114 * gdbarch.c: Regenerated.
13115 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13116 (default_insn_is_jump): New.
13117 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13118 (default_insn_is_jump): New.
13120 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13122 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13124 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13125 (btrace_read_type) <btrace_read_new>: Change to ...
13126 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13128 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13130 * common/linux-btrace.c (linux_read_btrace): Free trace from
13131 previous iteration.
13133 2014-01-15 Doug Evans <dje@google.com>
13135 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13138 2014-01-15 Tom Tromey <tromey@redhat.com>
13140 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13141 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13142 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13143 (set_objfile_main_name): New function.
13144 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13145 language_of_main>: New fields.
13146 (set_objfile_main_name): Declare.
13147 * symtab.c (find_main_name): Loop over objfiles to find the main
13149 (set_main_name): Now static.
13150 (get_main_info): Add comment.
13151 * symtab.h (set_main_name): Don't declare.
13153 2014-01-15 Tom Tromey <tromey@redhat.com>
13155 * symtab.c (main_progspace_key): New global.
13156 (struct main_info): New.
13157 (name_of_main, language_of_main): Remove.
13158 (get_main_info, main_info_cleanup): New function.
13159 (set_main_name, main_name, main_language): Use get_main_info.
13160 (_initialize_symtab): Initialize main_progspace_key.
13162 2014-01-15 Tom Tromey <tromey@redhat.com>
13164 * dbxread.c (process_one_symbol): Update.
13165 * dwarf2read.c (read_partial_die): Update.
13166 * symfile.c (set_initial_language): Call main_language.
13167 * symtab.c (language_of_main): Now static.
13168 (set_main_name): Add 'lang' parameter.
13169 (find_main_name): Update.
13170 (main_language): New function.
13171 (symtab_observer_executable_changed): Update.
13172 * symtab.h (set_main_name): Update.
13173 (language_of_main): Remove.
13174 (main_language): Declare.
13176 2014-01-15 Tom Tromey <tromey@redhat.com>
13178 * symfile.c (init_entry_point_info): Use new "initialized" field.
13180 * objfiles.h (struct entry_point) <initialized>: New field.
13181 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13182 (struct objfile) <ei>: ...here. Remove.
13183 * objfiles.c (entry_point_address_query): Update.
13185 2014-01-15 Tom Tromey <tromey@redhat.com>
13187 * objfiles.c (entry_point_address_query): Relocate entry point
13189 (objfile_relocate1): Do not relocate entry point address.
13190 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13191 <the_bfd_section_index>: New field.
13192 * symfile.c (init_entry_point_info): Find the entry point's
13195 2014-01-15 Tom Tromey <tromey@redhat.com>
13197 * solib-frv.c (enable_break): Use entry_point_address_query.
13199 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13201 * NEWS: Add note on improved process record-replay on
13202 arm*-linux* targets.
13204 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13206 * arm-tdep.c (enum arm_record_result): New enum.
13207 (arm_record_unsupported_insn): New function.
13208 (arm_record_coproc_data_proc): Removed.
13209 (thumb2_record_ld_st_multiple): New function.
13210 (thumb2_record_ld_st_dual_ex_tbb): New function.
13211 (thumb2_record_data_proc_sreg_mimm): New function.
13212 (thumb2_record_ps_dest_generic): New function.
13213 (thumb2_record_branch_misc_cntrl): New function.
13214 (thumb2_record_str_single_data): New function.
13215 (thumb2_record_ld_mem_hints): New function.
13216 (thumb2_record_ld_word): New function.
13217 (thumb2_record_lmul_lmla_div): New function.
13218 (thumb2_record_decode_insn_handler): New function.
13219 (decode_insn): Add thumb32 instruction handlers.
13221 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13223 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13224 (struct arm_linux_record_tdep): Declare.
13225 (arm_canonicalize_syscall): New function.
13226 (arm_all_but_pc_registers_record): New function.
13227 (arm_linux_syscall_record): New function.
13228 (arm_linux_init_abi): Add syscall recording constructs.
13229 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13230 decoding. (arm_record_coproc_data_proc): Update arm syscall
13232 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13233 <arm_syscall_record>: New field.
13234 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13237 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13239 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13240 register for push instruction recording.
13242 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13244 * arm-tdep.c (thumb_record_misc): Update to correct logical
13245 error while recording ldm, ldmia and pop instructions.
13247 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13249 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13251 2014-01-15 Pedro Alves <palves@redhat.com>
13253 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13254 (go32_resume, go32_fetch_registers, store_register)
13255 (go32_store_registers, go32_prepare_to_store)
13256 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13257 (go32_create_inferior, go32_can_run, go32_terminal_init)
13258 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13261 2014-01-15 Tom Tromey <tromey@redhat.com>
13263 * target.h (async_callback_ftype): New typedef.
13264 (struct target_ops) <to_async>: Use it.
13266 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13268 * python/py-value.c (get_field_type): Remove unnecessary curly
13269 braces for single-statement if block.
13271 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13273 * python/py-type.c (convert_field): Add missing empty line
13274 after declarations.
13276 2014-01-14 Doug Evans <dje@google.com>
13278 * symfile.h (expand_symtabs_matching): Renamed from
13279 expand_partial_symbol_names. Update prototype.
13280 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13281 * symfile.c (expand_symtabs_matching): Renamed from
13282 expand_partial_symbol_names. New args file_matcher, kind.
13283 Rename arg fun to symbol_matcher.
13284 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13285 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13286 ada_expand_partial_symbol_name.
13287 (ada_make_symbol_completion_list): Update to call
13288 expand_symtabs_matching.
13289 (ada_add_global_exceptions): Call expand_symtabs_matching.
13290 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13291 call map_symbol_filenames.
13292 * symtab.c (sources_info): Update to call map_symbol_filenames.
13293 (search_symbols): Call expand_symtabs_matching.
13294 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13295 (default_make_symbol_completion_list_break_on): Update to call
13296 expand_symtabs_matching.
13297 (make_source_files_completion_list): Update to call
13298 map_symbol_filenames.
13300 2014-01-14 Doug Evans <dje@google.com>
13302 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13303 (expand_symtabs_symbol_matcher_ftype): New typedef.
13304 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13305 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13306 * symfile.c (expand_partial_symbol_names): Update to use
13307 expand_symtabs_symbol_matcher_ftype.
13308 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13309 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13310 Arg name_matcher renamed to symbol_matcher.
13311 * psymtab.c (recursively_search_psymtabs): Update to use
13312 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13314 (expand_symtabs_matching_via_partial): Update to use
13315 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13316 Arg name_matcher renamed to symbol_matcher.
13318 2014-01-14 Doug Evans <dje@google.com>
13320 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13321 (map_partial_symbol_filenames): Ditto.
13322 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13323 (map_partial_symbol_filenames): Ditto.
13324 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13325 (map_partial_symbol_filenames): Ditto.
13326 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13327 (map_partial_symbol_filenames): Ditto.
13328 * symtab.c: Delete #include "psymtab.h".
13330 2014-01-14 Pedro Alves <palves@redhat.com>
13331 Tom Tromey <tromey@redhat.com>
13333 * infrun.c (use_displaced_stepping): Use find_record_target
13334 instead of RECORD_IS_USED.
13335 (adjust_pc_after_break): Use record_full_is_used instead of
13337 * record-btrace.c (record_btrace_open): Call record_preopen
13338 instead of checking RECORD_IS_USED.
13339 * record-full.c (record_full_shortname)
13340 (record_full_core_shortname): New globals.
13341 (record_full_is_used): New function.
13342 (find_full_open): Call record_preopen instead of checking
13344 (init_record_full_ops): Set the target's shortname to
13345 record_full_shortname.
13346 (init_record_full_core_ops): Set the target's shortname to
13347 record_full_core_shortname.
13348 * record-full.h (record_full_is_used): Declare.
13349 * record.c (find_record_target): Make extern.
13350 (record_preopen): New function.
13351 * record.h (RECORD_IS_USED): Delete macro.
13352 (find_record_target, record_preopen): Declare functions.
13354 2014-01-14 Yao Qi <yao@codesourcery.com>
13356 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13357 'len''s type to ULONGEST.
13358 (core_xfer_shared_libraries_aix): Likewise.
13359 * gdbarch.c, gdbarch.h: Regenerated.
13360 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13361 Change type of 'len' to ULONGEST.
13362 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13363 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13365 2014-01-14 Yao Qi <yao@codesourcery.com>
13367 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13368 type of 'len' to ULONGEST.
13369 (linux_xfer_osdata_processgroups): Likewise.
13370 (linux_xfer_osdata_threads): Likewise.
13371 (linux_xfer_osdata_fds): Likewise.
13372 (linux_xfer_osdata_isockets): Likewise.
13373 (linux_xfer_osdata_shm): Likewise.
13374 (linux_xfer_osdata_sem): Likewise.
13375 (linux_xfer_osdata_msg): Likewise.
13376 (linux_common_xfer_osdata): Likewise.
13377 (struct osdata_type) <getter>: Likewise.
13378 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13381 2014-01-14 Yao Qi <yao@codesourcery.com>
13383 * target.h (target_xfer_partial_ftype): Update.
13384 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13386 * aix-thread.c (aix_thread_xfer_partial): Change type of
13387 argument 'len' to ULONGEST.
13388 * auxv.c (procfs_xfer_auxv): Likewise.
13389 (ld_so_xfer_auxv): Likewise.
13390 (memory_xfer_auxv): Likewise.
13391 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13392 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13393 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13394 * corelow.c (core_xfer_partial): Likewise.
13395 * ctf.c (ctf_xfer_partial): Likewise.
13396 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13398 (darwin_read_dyld_info): Likewise.
13399 (darwin_xfer_partial): Likewise.
13400 * exec.c (section_table_xfer_memory_partial): Likewise.
13401 (exec_xfer_partial): Likewise.
13402 * exec.h (section_table_xfer_memory_partial): Update
13404 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13405 instead of plongest.
13406 (gnu_xfer_partial): Likewise.
13407 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13408 (ia64_hpux_xfer_solib_got): Likewise.
13409 (ia64_hpux_xfer_partial): Likewise.
13410 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13411 * inf-ptrace.c (inf_ptrace_xfer_partial):
13412 * inf-ttrace.c (inf_ttrace_xfer_partial):
13413 * linux-nat.c (linux_xfer_siginfo): Likewise.
13414 (linux_nat_xfer_partial): Likewise.
13415 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13416 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13417 * monitor.c (monitor_xfer_memory): Likewise.
13418 (monitor_xfer_partial): Likewise.
13419 * procfs.c (procfs_xfer_partial): Likewise.
13420 * record-full.c (record_full_xfer_partial): Likewise.
13421 (record_full_core_xfer_partial): Likewise.
13422 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13423 instead of plongest.
13424 (gdbsim_xfer_partial): Likewise.
13425 * remote.c (remote_xfer_partial): Likewise.
13426 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13427 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13429 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13430 (rs6000_xfer_shared_libraries): Likewise.
13431 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13432 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13433 (sparc_xfer_partial): Likewise.
13434 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13435 (spu_xfer_partial): Likewise.
13436 * spu-multiarch.c (spu_xfer_partial): Likewise.
13437 * target.c (target_read_live_memory): Likewise.
13438 (memory_xfer_live_readonly_partial): Likewise.
13439 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13440 (target_xfer_partial, default_xfer_partial): Likewise.
13441 (current_xfer_partial): Likewise.
13442 * tracepoint.c (tfile_xfer_partial): Likewise.
13443 * windows-nat.c (windows_xfer_memory): Likewise. Call
13444 pulongest instead of plongest.
13445 (windows_xfer_partial): Likewise.
13446 (windows_xfer_shared_libraries): Likewise.
13448 2014-01-14 Yao Qi <yao@codesourcery.com>
13450 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13451 target_xfer_partial_ftype.
13453 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13457 * valops.c (value_struct_elt_bitpos): New function
13458 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13459 object to 'None' if the field name is an empty string ("").
13460 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13461 attribute to look for a field when 'name' is 'None'.
13462 (get_field_type): New function
13464 2014-01-13 Doug Evans <dje@google.com>
13467 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13468 (try_open_dwop_file): Ditto.
13469 * gdb_bfd.c: #include "vec.h".
13470 (bfdp): New typedef.
13471 (struct gdb_bfd_data): New member included_bfds.
13472 (gdb_bfd_unref): Unref all included bfds.
13473 (gdb_bfd_record_inclusion): New function.
13474 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13476 2014-01-13 Tom Tromey <tromey@redhat.com>
13478 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13480 2014-01-13 Tom Tromey <tromey@redhat.com>
13482 * defs.h (use_windows): Remove.
13483 * gdb.c (main): Update.
13484 * main.c (captured_main, gdb_main): Update.
13485 * main.h (struct captured_main_args) <use_windows>: Remove.
13486 * top.c (use_windows): Remove.
13488 2014-01-13 Tom Tromey <tromey@redhat.com>
13490 * defs.h (deprecated_flush_hook): Remove.
13492 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13495 * linux-thread-db.c (try_thread_db_load): Add parameter
13496 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13497 (try_thread_db_load_from_pdir_1): Move it there from here.
13498 (try_thread_db_load_from_sdir): Update caller.
13499 (try_thread_db_load_from_dir): Move it there from here.
13501 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13503 * regformats/regdat.sh: Always rewrite the register file.
13505 2014-01-13 Pedro Alves <palves@redhat.com>
13507 * Makefile.in (CHECK_HEADERS): New variable.
13508 (check-headers:): New rule.
13510 2014-01-13 Tom Tromey <tromey@redhat.com>
13512 * cli/cli-setshow.c (do_set_command): Update.
13513 * defs.h (deprecated_set_hook): Remove.
13514 * top.c (deprecated_set_hook): Remove.
13516 2014-01-13 Pedro Alves <palves@redhat.com>
13518 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13519 the tracepoint if the PC is a pseudo-register.
13521 2014-01-13 Tom Tromey <tromey@redhat.com>
13523 * defs.h (XCALLOC): Remove.
13524 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13525 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13526 * dwarf2loc.c (allocate_piece_closure): Likewise.
13527 * elfread.c (elf_symfile_segments): Likewise.
13528 (elf_symfile_segments): Likewise.
13529 * gdbtypes.c (copy_type_recursive): Likewise.
13530 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13531 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13532 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13534 * mt-tdep.c (mt_gdbarch_init): Likewise.
13535 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13537 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13538 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13539 * registry.c (registry_alloc_data): Likewise.
13540 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13541 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13542 * serial.c (serial_fdopen_ops): Likewise.
13543 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13545 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13546 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13549 2014-01-13 Tom Tromey <tromey@redhat.com>
13551 * defs.h (XMALLOC): Remove.
13552 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13553 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13554 * cli-out.c (struct ui_out *): Likewise.
13555 * cli/cli-dump.c (add_dump_command): Likewise.
13556 (add_dump_command): Likewise.
13557 * complaints.c (get_complaints): Likewise.
13558 (find_complaint): Likewise.
13559 * dwarf2-frame.c (execute_cfa_program): Likewise.
13560 * dwarf2read.c (abbrev_table_read_table): Likewise.
13561 * gdbarch.sh: Likewise.
13562 * gdbarch.c: Rebuild.
13563 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13564 * interps.c (interp_new): Likewise.
13565 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13566 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13567 * mi/mi-console.c (mi_console_file_new): Likewise.
13568 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13569 * mi/mi-out.c (mi_out_new): Likewise.
13570 * mi/mi-parse.c (mi_parse): Likewise.
13571 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13572 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13573 * observer.c (xalloc_observer_list_node): Likewise.
13574 * regcache.c (regcache_xmalloc_1): Likewise.
13575 * reggroups.c (reggroup_new): Likewise.
13576 (_initialize_reggroup): Likewise.
13577 * registry.c (register_data_with_cleanup): Likewise.
13578 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13579 * ser-base.c (serial_ttystate): Likewise.
13580 * ser-mingw.c (make_pipe_state): Likewise.
13581 * ser-pipe.c (pipe_open): Likewise.
13582 * serial.c (serial_open): Likewise.
13583 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13584 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13585 (tui_alloc_win_info): Likewise.
13586 (tui_add_content_elements): Likewise.
13587 * tui/tui-file.c (tui_file_new): Likewise.
13588 * tui/tui-out.c (tui_out_new): Likewise.
13589 * ui-file.c (mem_file_new): Likewise.
13590 * ui-out.c (push_level): Likewise.
13591 (make_cleanup_ui_out_end): Likewise.
13592 (append_header_to_list): Likewise.
13593 (ui_out_new): Likewise.
13594 * user-regs.c (user_reg_add_builtin): Likewise.
13596 2014-01-13 Tom Tromey <tromey@redhat.com>
13598 * defs.h (XZALLOC): Remove.
13599 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13600 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13601 (get_ada_tasks_inferior_data): Likewise.
13602 * auto-load.c (get_auto_load_pspace_data): Likewise.
13603 * auxv.c (get_auxv_inferior_data): Likewise.
13604 * bfd-target.c (target_bfd_reopen): Likewise.
13605 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13606 (deprecated_insert_raw_breakpoint): Likewise.
13607 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13608 * corelow.c (core_open): Likewise.
13609 * darwin-nat.c (darwin_check_new_threads): Likewise.
13610 (darwin_attach_pid): Likewise.
13611 * dummy-frame.c (dummy_frame_push): Likewise.
13612 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13613 * dwarf2loc.c (allocate_piece_closure): Likewise.
13614 * elfread.c (elf_symfile_segments): Likewise.
13615 * eval.c (ptrmath_type_p): Likewise.
13616 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13617 * gdbtypes.c (alloc_type_arch): Likewise.
13618 (alloc_type_instance): Likewise.
13619 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13620 * inf-child.c (inf_child_can_use_agent): Likewise.
13621 * inflow.c (get_inflow_inferior_data): Likewise.
13622 * infrun.c (save_infcall_suspend_state): Likewise.
13623 * jit.c (jit_reader_load): Likewise.
13624 (get_jit_objfile_data): Likewise.
13625 (get_jit_program_space_data): Likewise.
13626 (jit_object_open_impl): Likewise.
13627 (jit_symtab_open_impl): Likewise.
13628 (jit_block_open_impl): Likewise.
13629 (jit_frame_sniffer): Likewise.
13630 * linux-fork.c (add_fork): Likewise.
13631 * maint.c (make_command_stats_cleanup): Likewise.
13632 * objfiles.c (get_objfile_pspace_data): Likewise.
13633 * opencl-lang.c (struct lval_closure): Likewise.
13634 * osdata.c (osdata_start_osdata): Likewise.
13635 * progspace.c (new_address_space): Likewise.
13636 (add_program_space): Likewise.
13637 * remote-sim.c (get_sim_inferior_data): Likewise.
13638 * sh-tdep.c (sh_gdbarch_init): Likewise.
13639 * skip.c (Ignore): Likewise.
13640 (skip_delete_command): Likewise.
13641 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13642 (library_list_start_library): Likewise.
13643 (solib_aix_current_sos): Likewise.
13644 * solib-darwin.c (get_darwin_info): Likewise.
13645 (darwin_current_sos): Likewise.
13646 * solib-dsbt.c (get_dsbt_info): Likewise.
13647 * solib-ia64-hpux.c (new_so_list): Likewise.
13648 (ia64_hpux_get_solib_linkage_addr): Likewise.
13649 * solib-spu.c (append_ocl_sos): Likewise.
13650 (spu_current_sos): Likewise.
13651 * solib-svr4.c (get_svr4_info): Likewise.
13652 (svr4_keep_data_in_core): Likewise.
13653 (library_list_start_library): Likewise.
13654 (svr4_default_sos): Likewise.
13655 (svr4_read_so_list): Likewise.
13656 * solib-target.c (library_list_start_library): Likewise.
13657 (solib_target_current_sos): Likewise.
13658 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13659 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13660 * symfile.c (default_symfile_segments): Likewise.
13661 * target-descriptions.c (tdesc_data_init): Likewise.
13662 (tdesc_create_reg): Likewise.
13663 (struct tdesc_type *): Likewise.
13664 (tdesc_create_vector): Likewise.
13665 (tdesc_set_struct_size): Likewise.
13666 (struct tdesc_type *): Likewise.
13667 (tdesc_free_feature): Likewise.
13668 (tdesc_create_feature): Likewise.
13669 * windows-nat.c (windows_add_thread): Likewise.
13670 (windows_make_so): Likewise.
13671 * xml-support.c (gdb_xml_body_text): Likewise.
13672 (gdb_xml_create_parser_and_cleanup): Likewise.
13673 (xml_process_xincludes): Likewise.
13674 * xml-syscall.c (allocate_syscalls_info): Likewise.
13675 (syscall_create_syscall_desc): Likewise.
13677 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13679 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13680 function, with code from i386_stap_parse_special_token.
13681 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13682 (i386_stap_parse_special_token): Move code to the two functions
13683 above; simplify it.
13685 2014-01-09 Pedro Alves <palves@redhat.com>
13686 Hui Zhu <hui@codesourcery.com>
13689 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13690 bp_err_string. Don't mark the location shlib_disabled if the
13691 error thrown wasn't a generic or memory error. Catch errors
13692 thrown while inserting breakpoints in overlayed code. Output
13693 error message of software breakpoints.
13694 * remote.c (remote_insert_breakpoint): If this breakpoint has
13695 target-side commands but this stub doesn't support Z0 packets,
13696 throw NOT_SUPPORTED_ERROR error.
13697 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13698 * target.h (target_insert_breakpoint): Extend comment.
13699 (target_insert_hw_breakpoint): Add comment.
13701 2014-01-08 Pedro Alves <palves@redhat.com>
13703 * remote.c (remote_add_thread): Add threads silently if starting
13705 (remote_notice_new_inferior): If in all-stop, and starting up,
13706 don't call notice_new_inferior.
13707 (get_current_thread): New function, factored out from ...
13708 (add_current_inferior_and_thread): ... this. Adjust.
13709 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13710 found any thread, then select the remote's current thread as GDB's
13711 current thread too.
13713 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13715 * NEWS: Create a new section for the next release branch.
13716 Rename the section of the current branch, now that it has
13719 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13721 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13722 * version.in: Bump version to 7.7.50.DATE-cvs.
13724 2014-01-08 Yao Qi <yao@codesourcery.com>
13726 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13727 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13728 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13730 2014-01-08 Yao Qi <yao@codesourcery.com>
13732 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13733 return value of bfd_get_filename to symbol_file_add_from_bfd.
13735 2014-01-08 Pierre Muller <muller@sourceware.org>
13738 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13739 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13740 to prim_record_mininal_symbol_and_info.
13741 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13742 in call to prim_record_minimal_symbol_and_info.
13743 (read_pe_exported_syms): Set index field of section_data.
13745 2014-01-07 Andrew Pinski <apinski@cavium.com>
13747 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13748 * features/aarch64.c: Regenerate.
13750 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13752 * target.c (return_null): Define.
13753 (update_current_target): Use it instead of return_zero for
13754 functions that return a pointer.
13756 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13758 * source.c (add_path): Fix check for duplicated paths in the previously
13761 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13763 * ada-lang.c: Remove duplicated include statements.
13764 * alphabsd-nat.c: Ditto.
13765 * amd64-darwin-tdep.c: Ditto.
13766 * amd64fbsd-nat.c: Ditto.
13767 * auto-load.c: Ditto.
13769 * breakpoint.c: Ditto.
13770 * dbxread.c: Ditto.
13771 * fork-child.c: Ditto.
13772 * gdb_usleep.c: Ditto.
13773 * i386-darwin-tdep.c: Ditto.
13774 * i386fbsd-nat.c: Ditto.
13776 * inferior.c: Ditto.
13777 * jv-lang.c: Ditto.
13778 * linux-nat.c: Ditto.
13779 * linux-tdep.c: Ditto.
13780 * m68kbsd-nat.c: Ditto.
13781 * m68klinux-nat.c: Ditto.
13782 * microblaze-tdep.c: Ditto.
13783 * mips-linux-tdep.c: Ditto.
13784 * mn10300-tdep.c: Ditto.
13785 * nto-tdep.c: Ditto.
13786 * opencl-lang.c: Ditto.
13788 * printcmd.c: Ditto.
13789 * regcache.c: Ditto.
13790 * remote-m32r-sdi.c: Ditto.
13792 * symfile.c: Ditto.
13794 * tilegx-linux-nat.c: Ditto.
13795 * tilegx-tdep.c: Ditto.
13796 * tracepoint.c: Ditto.
13798 * vaxbsd-nat.c: Ditto.
13799 * windows-nat.c: Ditto.
13800 * xtensa-tdep.c: Ditto.
13802 2014-01-07 Yao Qi <yao@codesourcery.com>
13804 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13806 2014-01-07 Yao Qi <yao@codesourcery.com>
13807 Joel Brobecker <brobecker@adacore.com>
13809 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13810 (pdc_write_regs): Likewise.
13811 (fetch_regs_kernel_thread): Likewise.
13812 (store_regs_kernel_thread): Likewise.
13814 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13816 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13817 tagged type objects to their actual type.
13819 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13821 * ada-valprint.c (print_field_values): Add "language" parameter.
13822 Update calls to print_field_values and print_variant_part.
13823 Pass new parameter "language" in call to val_print instead
13824 of "current_language". Replace call to ada_val_print by call
13826 (print_variant_part): Add "language" parameter.
13827 (ada_val_print_struct_union): Update call to print_field_values.
13829 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13831 * ada-valprint.c (ui_memcpy): Delete.
13832 (ada_print_floating): Update documentation. Add empty line
13833 between between function documentation and implementation.
13834 Delete variable "buffer". Use ui_file_xstrdup in place of
13835 ui_file_put. Minor adjustments following this change.
13837 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13839 * ada-valprint.c (ada_val_print_string): New function,
13840 extracted from ada_val_print_array.
13841 (ada_val_print_array): Replace extracted code by call
13842 to ada_val_print_string followed by a return. Move
13843 "else" branch to the function's top block.
13845 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13847 * ada-valprint.c (ada_val_print_array): Move implementation
13848 down. Rename parameter "offset" and "val" into "offset_aligned"
13849 and "original_value" respectively. Add parameter "offset".
13851 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13853 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13854 re-organizing the code. Change the "???" message printed
13855 when target type is a TYPE_CODE_UNDEF into
13856 "<ref to undefined type>".
13858 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13860 * ada-valprint.c (print_record): Delete, implementation inlined...
13861 (ada_val_print_struct_union): ... here. Remove call to
13862 ada_check_typedef in inlined implementation.
13864 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13866 * ada-valprint.c (ada_val_print_gnat_array): New function,
13867 extracted from ada_val_print_1;
13868 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13869 (ada_val_print_flt, ada_val_print_struct_union)
13870 (ada_val_print_ref): Likewise.
13871 (ada_val_print_1): Delete variables i and elttype.
13872 Replace extracted-out code by call to corresponding
13875 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13877 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13879 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13881 * ada-valprint.c (ada_val_print_1): Replace calls to
13882 ada_val_print_1 by calls to val_print.
13884 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13886 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13887 Update calls to self accordingly. Replace calls to c_val_print
13888 by calls to val_print.
13890 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13892 * ada-valprint.c (print_record): Delete declaration.
13893 (adjust_type_signedness, ada_val_print_1): Likewise.
13894 (ada_val_print): Move function implementation down.
13895 (print_variant_part, print_field_values, print_record):
13896 Move function implementation up.
13898 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13900 * python/py-type.c (typy_get_name): New function.
13901 (type_object_getset): Add entry for attribute "name".
13902 * NEWS: Add entry mentioning this new attribute.
13904 2014-01-07 Yao Qi <yao@codesourcery.com>
13906 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13909 2014-01-07 Yao Qi <yao@codesourcery.com>
13911 * gnu-nat.c (info_port_rights): Add qualifier const to
13914 2014-01-07 Yao Qi <yao@codesourcery.com>
13916 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13918 2014-01-07 Yao Qi <yao@codesourcery.com>
13920 * gnu-nat.c (make_inf) Update declaration.
13921 (make_inf): Make it static.
13922 (inf_set_traced): Likewise.
13923 (inf_port_to_thread, inf_task_died_status): Likewise.
13925 2014-01-07 Yao Qi <yao@codesourcery.com>
13927 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13929 2014-01-07 Yao Qi <yao@codesourcery.com>
13931 * gnu-nat.c (_initialize_gnu_nat): Declare.
13933 2014-01-07 Yao Qi <yao@codesourcery.com>
13935 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13937 (struct gdbarch_info) <byte_order>: Change type to
13939 <byte_order_for_code>: Likewise.
13940 * gdbarch.c, gdbarch.h: Regenerated.
13942 2014-01-06 Sasha Smundak <asmundak@google.com>
13944 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13946 2014-01-06 Tom Tromey <tromey@redhat.com>
13948 * doublest.c (convert_doublest_to_floatformat): Use const, not
13950 * somread.c (som_symtab_read): Likewise.
13952 2014-01-07 Hui Zhu <hui@codesourcery.com>
13954 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13955 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13956 (gdb_bfd_fopen): Ditto.
13957 (gdb_bfd_openr): Ditto.
13958 (gdb_bfd_openw): Ditto.
13959 (gdb_bfd_openr_iovec): Ditto.
13960 (gdb_bfd_fdopenr): Ditto.
13961 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13962 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13964 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13966 * symfile-mem.c (symbol_file_add_from_memory): Removed
13967 gdb_bfd_stash_filename.
13969 2014-01-03 Doug Evans <dje@google.com>
13971 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13974 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13976 Update year range in copyright notice of all files.
13978 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13980 * top.c (print_gdb_version): Set copyright year to 2014.
13982 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13984 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13986 For older changes see ChangeLog-2013.
13992 version-control: never