1 2014-10-10 Pedro Alves <palves@redhat.com>
3 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
4 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
5 (HFILES_NO_SRCDIR): Remove solib-irix.h.
6 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
8 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
9 * configure.ac: Remove references to IRIX.
10 * configure.host: Add *-*-irix* to the obsolete hosts section.
11 Remove all other references to irix.
12 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
15 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
17 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
18 isn't valid, release the tdesc arch data and return NULL.
20 2014-10-10 Pedro Alves <palves@redhat.com>
22 * linux-tdep.c: Include observer.h.
23 (linux_inferior_data): New global.
24 (struct linux_info): New structure.
25 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
26 (get_linux_inferior_data): New functions.
27 (linux_vsyscall_range): Rename to ...
28 (linux_vsyscall_range_raw): ... this.
29 (linux_vsyscall_range): New function; handles caching.
30 (_initialize_linux_tdep): Register linux_inferior_data. Install
31 inferior_exit and inferior_appeared observers.
33 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
34 Pedro Alves <palves@redhat.com>
37 * solib-svr4.c (svr4_read_so_list): Rename to ...
38 (svr4_current_sos_1): ... this and change the function comment.
39 (svr4_current_sos): New function.
41 2014-10-10 Pedro Alves <palves@redhat.com>
43 * arch-utils.c (default_vsyscall_range): New function.
44 * arch-utils.h (default_vsyscall_range): New declaration.
45 * gdbarch.sh (vsyscall_range): New hook.
46 * gdbarch.h, gdbarch.c: Regenerate.
47 * linux-tdep.c (linux_vsyscall_range): New function.
48 (linux_init_abi): Install linux_vsyscall_range as
49 vsyscall_range gdbarch hook.
50 * memrange.c (address_in_mem_range): New function.
51 * memrange.h (address_in_mem_range): New declaration.
52 * symfile-mem.c (find_vdso_size): Delete function.
53 (add_vsyscall_page): Use gdbarch_vsyscall_range.
55 2014-10-10 Pedro Alves <palves@redhat.com>
57 * infrun.c (normal_stop): Fix typo in comment.
59 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
62 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
63 typo when using logical AND to determine instruction type.
65 2014-10-09 Yao Qi <yao@codesourcery.com>
67 * infrun.c (handle_signal_stop): Remove local variable
70 2014-10-08 Stan Shebs <stan@codesourcery.com>
72 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
74 2014-10-08 Gary Benson <gbenson@redhat.com>
76 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
78 2014-10-08 Gary Benson <gbenson@redhat.com>
80 * common/common-defs.h: Include common-exceptions.h.
81 * exceptions.h: Do not include common-exceptions.h.
83 2014-10-08 Gary Benson <gbenson@redhat.com>
85 * common/common-defs.h: Include cleanups.h.
86 * common/common-exceptions.c: Do not include cleanups.h.
89 2014-10-08 Gary Benson <gbenson@redhat.com>
91 * ada-lang.c: Do not include exceptions.h.
92 * ada-valprint.c: Likewise.
93 * amd64-tdep.c: Likewise.
94 * auto-load.c: Likewise.
96 * break-catch-throw.c: Likewise.
97 * breakpoint.c: Likewise.
100 * cli/cli-cmds.c: Likewise.
101 * cli/cli-interp.c: Likewise.
102 * cli/cli-script.c: Likewise.
103 * completer.c: Likewise.
104 * corefile.c: Likewise.
105 * corelow.c: Likewise.
106 * cp-abi.c: Likewise.
107 * cp-support.c: Likewise.
108 * cp-valprint.c: Likewise.
109 * darwin-nat.c: Likewise.
110 * dwarf2-frame-tailcall.c: Likewise.
111 * dwarf2-frame.c: Likewise.
112 * dwarf2loc.c: Likewise.
113 * dwarf2read.c: Likewise.
115 * event-loop.c: Likewise.
116 * event-top.c: Likewise.
117 * f-valprint.c: Likewise.
118 * frame-unwind.c: Likewise.
120 * gdbtypes.c: Likewise.
121 * gnu-v2-abi.c: Likewise.
122 * gnu-v3-abi.c: Likewise.
123 * guile/scm-auto-load.c: Likewise.
124 * guile/scm-breakpoint.c: Likewise.
125 * guile/scm-cmd.c: Likewise.
126 * guile/scm-frame.c: Likewise.
127 * guile/scm-lazy-string.c: Likewise.
128 * guile/scm-param.c: Likewise.
129 * guile/scm-symbol.c: Likewise.
130 * guile/scm-type.c: Likewise.
131 * hppa-hpux-tdep.c: Likewise.
132 * i386-tdep.c: Likewise.
133 * inf-loop.c: Likewise.
134 * infcall.c: Likewise.
135 * infcmd.c: Likewise.
136 * infrun.c: Likewise.
137 * interps.c: Likewise.
138 * interps.h: Likewise.
140 * linespec.c: Likewise.
141 * linux-nat.c: Likewise.
142 * linux-thread-db.c: Likewise.
143 * m32r-rom.c: Likewise.
145 * memory-map.c: Likewise.
146 * mi/mi-cmd-break.c: Likewise.
147 * mi/mi-cmd-stack.c: Likewise.
148 * mi/mi-interp.c: Likewise.
149 * mi/mi-main.c: Likewise.
150 * monitor.c: Likewise.
151 * nto-procfs.c: Likewise.
152 * objc-lang.c: Likewise.
153 * p-valprint.c: Likewise.
155 * ppc-linux-tdep.c: Likewise.
156 * printcmd.c: Likewise.
158 * python/py-auto-load.c: Likewise.
159 * python/py-breakpoint.c: Likewise.
160 * python/py-cmd.c: Likewise.
161 * python/py-finishbreakpoint.c: Likewise.
162 * python/py-frame.c: Likewise.
163 * python/py-framefilter.c: Likewise.
164 * python/py-function.c: Likewise.
165 * python/py-gdb-readline.c: Likewise.
166 * python/py-inferior.c: Likewise.
167 * python/py-infthread.c: Likewise.
168 * python/py-lazy-string.c: Likewise.
169 * python/py-linetable.c: Likewise.
170 * python/py-param.c: Likewise.
171 * python/py-prettyprint.c: Likewise.
172 * python/py-symbol.c: Likewise.
173 * python/py-type.c: Likewise.
174 * python/py-value.c: Likewise.
175 * python/python-internal.h: Likewise.
176 * python/python.c: Likewise.
177 * record-btrace.c: Likewise.
178 * record-full.c: Likewise.
179 * regcache.c: Likewise.
180 * remote-fileio.c: Likewise.
181 * remote-mips.c: Likewise.
182 * remote.c: Likewise.
183 * rs6000-aix-tdep.c: Likewise.
184 * rs6000-nat.c: Likewise.
186 * solib-darwin.c: Likewise.
187 * solib-dsbt.c: Likewise.
188 * solib-frv.c: Likewise.
189 * solib-ia64-hpux.c: Likewise.
190 * solib-spu.c: Likewise.
191 * solib-svr4.c: Likewise.
193 * spu-tdep.c: Likewise.
195 * stap-probe.c: Likewise.
196 * symfile-mem.c: Likewise.
197 * symmisc.c: Likewise.
198 * target.c: Likewise.
199 * thread.c: Likewise.
201 * tracepoint.c: Likewise.
202 * tui/tui-interp.c: Likewise.
203 * typeprint.c: Likewise.
205 * valarith.c: Likewise.
206 * valops.c: Likewise.
207 * valprint.c: Likewise.
209 * varobj.c: Likewise.
210 * windows-nat.c: Likewise.
211 * xml-support.c: Likewise.
213 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
215 * mips-tdep.c (add_offset_16): Rewrite to implement what the
217 (extended_mips16_next_pc): Update accordingly.
219 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
221 * mips-tdep.c (mips16_instruction_is_compact_branch): New
223 (micromips_instruction_is_compact_branch): Likewise.
224 (mips16_scan_prologue): Terminate scanning upon seeing a branch
225 or a compact jump, reaching a jump delay slot, or seeing a
226 second non-prologue instruction.
227 (micromips_scan_prologue): Also terminate scanning upon seeing a
228 compact branch or jump, or reaching a branch or jump delay slot.
229 (mips32_scan_prologue): Terminate scanning upon reaching a branch
230 or jump delay slot, or seeing a second non-prologue instruction.
231 (mips32_instruction_has_delay_slot): Retain instruction
232 examination code only, update arguments accordingly and move
233 instruction fetch pieces to...
234 (mips32_insn_at_pc_has_delay_slot): ... this new function.
235 (micromips_instruction_has_delay_slot): Likewise and to...
236 (micromips_insn_at_pc_has_delay_slot): ... this new function.
237 (mips16_instruction_has_delay_slot): Likewise and to...
238 (mips16_insn_at_pc_has_delay_slot): ... this new function.
239 (mips_single_step_through_delay): Update accordingly.
240 (mips_adjust_breakpoint_address): Likewise.
242 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
244 * mips-tdep.c (micromips_instruction_has_delay_slot): When
245 !mustbe32 also return 1 for 32-bit instructions.
246 (mips16_instruction_has_delay_slot): Likewise. Add an
249 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
251 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
254 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
256 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
258 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
259 for the breakpoint's address. Don't preinitialize `placed_size'.
260 (insert_bp_location): Set `reqstd_address' rather than
262 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
263 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
265 (bkpt_remove_location): Likewise.
266 (deprecated_insert_raw_breakpoint): Likewise.
267 (deprecated_remove_raw_breakpoint): Likewise.
268 (find_single_step_breakpoint): Likewise.
269 * mem-break.c (default_memory_insert_breakpoint): Use
270 `reqstd_address' for the breakpoint's address. Don't set
271 `placed_address' or `placed_size' if breakpoint contents couldn't
272 have been determined.
273 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
274 the breakpoint's address.
275 (remote_insert_hw_breakpoint): Likewise. Don't set
276 `placed_address' or `placed_size' if breakpoint couldn't have been
278 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
279 `reqstd_address' for the breakpoint's address.
280 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
281 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
282 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
283 * microblaze-linux-tdep.c
284 (microblaze_linux_memory_remove_breakpoint): Likewise.
285 * monitor.c (monitor_insert_breakpoint): Likewise.
286 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
287 (procfs_insert_hw_breakpoint): Likewise.
288 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
289 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
290 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
291 * remote-mips.c (mips_insert_breakpoint): Likewise.
292 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
294 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
296 * valops.c (value_assign): Check for bit field assignments
297 before calling architecture-specific register value
298 conversion functions.
300 2014-10-03 Pierre Muller <muller@sourceware.org>
302 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
304 2014-10-02 Pedro Alves <palves@redhat.com>
306 * breakpoint.c (breakpoints_should_be_inserted_now): Use
307 threads_are_executing.
308 * breakpoint.h (breakpoints_should_be_inserted_now): Add
310 * gdbthread.h (threads_are_executing): Declare.
311 (handle_signal_stop) <random signals>: Don't print about the
312 signal here if stopping.
313 (end_stepping_range): Don't notify observers here.
314 (normal_stop): Update the thread list. If stopped by a random
315 signal or a stepping range ended, notify observers.
316 * thread.c (threads_executing): New global.
317 (init_thread_list): Clear 'threads_executing'.
318 (set_executing): Set or clear 'threads_executing'.
319 (threads_are_executing): New function.
320 (update_threads_executing): New function.
321 (update_thread_list): Use it.
323 2014-10-02 Pedro Alves <palves@redhat.com>
326 * breakpoint.c (update_breakpoints_after_exec): Don't create
327 overlay, longjmp, std terminate nor exception breakpoints here.
329 2014-10-02 Pedro Alves <palves@redhat.com>
331 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
333 * inferior.c (find_inferior_for_program_space): Give preference to
334 the current inferior.
335 * inferior.h (find_inferior_for_program_space): Update comment.
336 * progspace.c (switch_to_program_space_and_thread): Prefer the
337 current inferior if it's bound to the program space requested. If
338 the inferior found doesn't have a PID yet, don't bother looking up
340 * progspace.h (switch_to_program_space_and_thread): Adjust
342 * thread.c (any_thread_of_process, any_live_thread_of_process):
343 Give preference to the current thread.
345 2014-10-01 Pedro Alves <palves@redhat.com>
347 * breakpoint.c (insert_bp_location): Error out if inserting a
348 software breakpoint at a read-only address.
349 * target.c (memory_xfer_check_region): New function, factored out
351 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
353 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
354 against the memory region attributes.
356 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
358 * NEWS: Announce new exit-code field in -list-thread-groups
360 * inferior.c (exit_inferior_1): Don't clear exit code.
361 (inferior_appeared): Clear exit code.
362 * mi/mi-main.c (print_one_inferior): Add printing of the exit
365 2014-10-01 Pedro Alves <palves@redhat.com>
367 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
368 GENERATED" along with emacs/vi read-only markers.
369 * regformats/aarch64.dat: Regenerate.
370 * regformats/arm-with-iwmmxt.dat: Regenerate.
371 * regformats/arm-with-neon.dat: Regenerate.
372 * regformats/arm-with-vfpv2.dat: Regenerate.
373 * regformats/arm-with-vfpv3.dat: Regenerate.
374 * regformats/i386/amd64-avx-linux.dat: Regenerate.
375 * regformats/i386/amd64-avx.dat: Regenerate.
376 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
377 * regformats/i386/amd64-avx512.dat: Regenerate.
378 * regformats/i386/amd64-linux.dat: Regenerate.
379 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
380 * regformats/i386/amd64-mpx.dat: Regenerate.
381 * regformats/i386/amd64.dat: Regenerate.
382 * regformats/i386/i386-avx-linux.dat: Regenerate.
383 * regformats/i386/i386-avx.dat: Regenerate.
384 * regformats/i386/i386-avx512-linux.dat: Regenerate.
385 * regformats/i386/i386-avx512.dat: Regenerate.
386 * regformats/i386/i386-linux.dat: Regenerate.
387 * regformats/i386/i386-mmx-linux.dat: Regenerate.
388 * regformats/i386/i386-mmx.dat: Regenerate.
389 * regformats/i386/i386-mpx-linux.dat: Regenerate.
390 * regformats/i386/i386-mpx.dat: Regenerate.
391 * regformats/i386/i386.dat: Regenerate.
392 * regformats/i386/x32-avx-linux.dat: Regenerate.
393 * regformats/i386/x32-avx.dat: Regenerate.
394 * regformats/i386/x32-avx512-linux.dat: Regenerate.
395 * regformats/i386/x32-avx512.dat: Regenerate.
396 * regformats/i386/x32-linux.dat: Regenerate.
397 * regformats/i386/x32.dat: Regenerate.
398 * regformats/microblaze-with-stack-protect.dat: Regenerate.
399 * regformats/mips-dsp-linux.dat: Regenerate.
400 * regformats/mips-linux.dat: Regenerate.
401 * regformats/mips64-dsp-linux.dat: Regenerate.
402 * regformats/mips64-linux.dat: Regenerate.
403 * regformats/nios2-linux.dat: Regenerate.
404 * regformats/rs6000/powerpc-32.dat: Regenerate.
405 * regformats/rs6000/powerpc-32l.dat: Regenerate.
406 * regformats/rs6000/powerpc-64l.dat: Regenerate.
407 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
408 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
409 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
410 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
411 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
412 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
413 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
414 * regformats/s390-linux32.dat: Regenerate.
415 * regformats/s390-linux32v1.dat: Regenerate.
416 * regformats/s390-linux32v2.dat: Regenerate.
417 * regformats/s390-linux64.dat: Regenerate.
418 * regformats/s390-linux64v1.dat: Regenerate.
419 * regformats/s390-linux64v2.dat: Regenerate.
420 * regformats/s390-te-linux64.dat: Regenerate.
421 * regformats/s390x-linux64.dat: Regenerate.
422 * regformats/s390x-linux64v1.dat: Regenerate.
423 * regformats/s390x-linux64v2.dat: Regenerate.
424 * regformats/s390x-te-linux64.dat: Regenerate.
425 * regformats/tic6x-c62x-linux.dat: Regenerate.
426 * regformats/tic6x-c62x.dat: Regenerate.
427 * regformats/tic6x-c64x-linux.dat: Regenerate.
428 * regformats/tic6x-c64x.dat: Regenerate.
429 * regformats/tic6x-c64xp-linux.dat: Regenerate.
430 * regformats/tic6x-c64xp.dat: Regenerate.
432 2014-10-01 Pedro Alves <palves@redhat.com>
434 * features/Makefile: Update comments.
435 (XMLTOC): List all xml files we build C files from.
436 (clean-cfiles): New rule.
438 2014-10-01 Pedro Alves <palves@redhat.com>
440 * features/i386/amd64-avx512-linux.c: Regenerate.
441 * features/i386/amd64-avx512.c: Regenerate.
442 * features/i386/x32-avx512-linux.c: Regenerate.
443 * features/i386/x32-avx512.c: Regenerate.
445 2014-10-01 Pedro Alves <palves@redhat.com>
447 * features/Makefile (WHICH): Remove arm-with-m,
448 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
450 2014-10-01 Pedro Alves <palves@redhat.com>
452 * features/Makefile (clean): New rule.
454 2014-10-01 Pedro Alves <palves@redhat.com>
456 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
457 (zmm14h): Add missing end quotes.
459 2014-10-01 Pedro Alves <palves@redhat.com>
461 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
462 * features/aarch64.c: Regenerate.
464 2014-09-30 Don Breazeal <donb@codesourcery.com>
466 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
467 code so as to work with follow_fork_inferior.
468 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
469 (inf_ttrace_create_inferior): Remove reference to
470 inf_ttrace_vfork_ppid.
471 (inf_ttrace_attach): Ditto.
472 (inf_ttrace_detach): Ditto.
473 (inf_ttrace_kill): Use current_inferior instead of
474 inf_ttrace_vfork_ppid.
475 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
476 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
477 inferior away from the parent.
478 * infrun.c (follow_fork): Call follow_fork_inferior instead of
480 (follow_fork_inferior): New function.
481 (follow_inferior_reset_breakpoints): Make function static.
482 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
483 * linux-nat.c (linux_child_follow_fork): Move target-independent
484 code to infrun.c:follow_fork_inferior.
486 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
488 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
489 * gdbarch.c: Regenerate.
490 * gdbarch.h: Likewise.
491 * corelow.c (sniff_core_bfd): Drop presence check for deleted
492 gdbarch method 'regset_from_core_section'.
493 (get_core_register_section): Remove handling for the case that
494 regset == NULL and regset_from_core_section is defined.
495 (get_core_registers): Drop check for deleted method.
496 * procfs.c (procfs_do_thread_registers): Adjust comment.
498 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
500 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
501 (linux_nat_make_corefile_notes): Remove.
502 (linux_target_install_ops): Do not set target method
503 'make_corefile_notes'.
504 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
506 (linux_corefile_thread_callback): Instead of args->collect, call
507 linux_collect_thread_registers.
508 (linux_make_corefile_notes): Remove 'collect' parameter. Return
509 NULL unless there is a regset iterator.
510 (linux_make_corefile_notes_1): Remove.
511 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
512 by linux_make_corefile_notes.
513 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
515 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
517 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
518 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
520 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
522 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
524 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
525 (xtensa_iterate_over_regset_sections): New.
526 (xtensa_gdbarch_init): Adjust gdbarch initialization.
528 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
530 * vax-tdep.c (vax_regset_from_core_section): Remove.
531 (vax_iterate_over_regset_sections): New.
532 (vax_gdbarch_init): Adjust gdbarch initialization.
534 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
536 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
537 (tilegx_regset_from_core_section): Remove.
538 (tilegx_iterate_over_regset_sections): New.
539 (tilegx_linux_init_abi): Adjust gdbarch initialization.
541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
543 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
544 (sparc_iterate_over_regset_sections): New.
545 (sparc32_gdbarch_init): Adjust gdbarch initialization.
546 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
548 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
549 (sparc64fbsd_init_abi): Call fbsd_init_abi.
550 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
551 target method 'make_corefile_notes'.
553 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
555 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
556 'sizeof_gregset' and 'sizeof_fpregset'.
557 * sh-tdep.c (sh_regset_from_core_section): Remove.
558 (sh_iterate_over_regset_sections): New.
559 (sh_gdbarch_init): Adjust gdbarch initialization.
560 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
562 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
565 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
567 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
568 (score7_linux_iterate_over_regset_sections): New.
569 (score_gdbarch_init): Adjust gdbarch initialization.
571 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
573 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
575 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
576 method 'make_corefile_notes'.
577 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
578 (ppcfbsd_regset_from_core_section): Remove.
579 (ppcfbsd_iterate_over_regset_sections): New.
580 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
582 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
583 (ppcnbsd_iterate_over_regset_sections): New.
584 (ppcnbsd_init_abi): Adjust.
585 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
586 (ppcobsd_iterate_over_regset_sections): New.
587 (ppcobsd_init_abi): Adjust.
588 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
589 (rs6000_aix_iterate_over_regset_sections): New.
590 (rs6000_aix_init_osabi): Adjust.
592 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
594 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
595 (nios2_regset_from_core_section): Remove.
596 (nios2_iterate_over_regset_sections): New.
597 (nios2_linux_init_abi): Adjust gdbarch initialization.
599 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
601 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
602 (am33_iterate_over_regset_sections): New.
603 (am33_linux_init_osabi): Adjust gdbarch initialization.
605 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
607 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
608 (mips_linux_iterate_over_regset_sections): New.
609 (mips_linux_init_abi): Adjust gdbarch initialization.
610 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
611 (mips64obsd_iterate_over_regset_sections): New.
612 (mips64obsd_init_abi): Adjust.
613 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
614 (mipsnbsd_iterate_over_regset_sections): New.
615 (mipsnbsd_init_abi): Adjust.
617 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
619 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
620 (m88k_iterate_over_regset_sections): New.
621 (m88k_gdbarch_init): Adjust gdbarch initialization.
623 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
625 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
626 (ia64_linux_iterate_over_regset_sections): New.
627 (ia64_linux_init_abi): Adjust gdbarch initialization.
629 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
631 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
632 (m68kbsd_iterate_over_regset_sections): New.
633 (m68kbsd_init_abi): Adjust gdbarch initialization.
634 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
635 (m68k_linux_iterate_over_regset_sections): New.
636 (m68k_linux_init_abi): Adjust gdbarch initialization.
638 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
640 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
641 (m32r_linux_regset_from_core_section): Remove.
642 (m32r_linux_iterate_over_regset_sections): New.
643 (m32r_linux_init_abi): Adjust gdbarch initialization.
645 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
647 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
648 (amd64obsd_iterate_over_regset_sections): New.
649 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
650 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
652 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
653 regset_from_core_section initialization.
654 * i386-tdep.c (i386_regset_from_core_section): Remove.
655 (i386_iterate_over_regset_sections): New.
656 (i386_gdbarch_init): Adjust gdbarch initialization.
657 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
658 (i386_iterate_over_regset_sections): New prototype.
659 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
661 (i386obsd_aout_iterate_over_regset_sections): New.
662 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
663 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
665 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
666 (amd64fbsd_init_abi): Call fbsd_init_abi.
667 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
668 (i386fbsd4_init_abi): Call fbsd_init_abi.
669 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
670 target method 'make_corefile_notes'.
671 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
673 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
675 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
676 (hppa_hpux_iterate_over_regset_sections): New.
677 (hppa_hpux_init_abi): Adjust gdbarch initialization.
678 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
679 (hppa_linux_iterate_over_regset_sections): New.
680 (hppa_linux_init_abi): Adjust.
681 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
682 (hppanbsd_iterate_over_regset_sections): New.
683 (hppanbsd_init_abi): Adjust.
684 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
685 (hppaobsd_iterate_over_regset_sections): New.
686 (hppaobsd_init_abi): Adjust.
688 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
690 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
691 (frv_linux_iterate_over_regset_sections): New.
692 (frv_linux_init_abi): Adjust gdbarch initialization.
694 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
696 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
697 (armbsd_iterate_over_regset_sections): New prototype.
698 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
699 (armbsd_iterate_over_regset_sections): New.
700 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
703 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
705 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
706 (alpha_linux_iterate_over_regset_sections): New.
707 (alpha_linux_init_abi): Adjust gdbarch initialization.
708 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
710 (alphanbsd_iterate_over_regset_sections): New prototype.
712 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
714 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
716 (aarch64_linux_iterate_over_regset_sections): New.
717 (aarch64_linux_init_abi): Adjust gdbarch initialization.
719 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
721 * fbsd-tdep.c: New file.
722 * fbsd-tdep.h: New file.
723 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
724 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
725 (ALLDEPFILES): Add fbsd-tdep.c.
727 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
729 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
731 * gdbarch.h: Regenerate.
732 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
734 (get_core_register_section): Add parameter 'regset' and use it, if
735 set. Add parameter 'min_size' and verify the bfd section size
737 (get_core_registers_cb): Add parameter 'regset' and pass it to
738 get_core_register section. For the "standard" register sections
739 ".reg" and ".reg2", set an appropriate default for human_name.
740 (get_core_registers): Don't abort when the gdbarch has an iterator
741 but no regset_from_core_section. Add NULL/0 for parameters
742 'regset'/'min_size' in calls to get_core_register_section.
743 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
744 'regset' and use it instead of calling the
745 regset_from_core_section gdbarch method.
746 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
747 * i386-tdep.c (i386_supply_xstateregset)
748 (i386_collect_xstateregset, i386_xstateregset): Moved to
750 (i386_regset_from_core_section): Drop handling for .reg-xfp and
752 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
753 core file support only if the regset iterator hasn't been set.
754 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
755 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
756 Moved from i386-tdep.c and renamed to *_linux*.
757 (i386_linux_iterate_over_regset_sections): Add regset parameter to
758 each callback invocation. Allow any .reg-xstate size when reading
760 * amd64-tdep.c (amd64_supply_xstateregset)
761 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
763 (amd64_regset_from_core_section): Remove.
764 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
765 install an amd64-specific regset_from_core_section gdbarch method.
766 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
767 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
768 Moved from amd64-tdep.c and renamed to *_linux*.
769 (amd64_linux_iterate_over_regset_sections): Add regset parameter
770 to each callback invocation. Allow any .reg-xstate size when
771 reading from a core file.
772 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
773 (arm_linux_iterate_over_regset_sections): Add regset parameter to
774 each callback invocation.
775 (arm_linux_init_abi): No longer set the regset_from_core_section
777 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
778 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
779 each callback invocation.
780 (ppc_linux_init_abi): No longer set the regset_from_core_section
782 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
783 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
784 (s390_regset_from_core_section): Remove.
785 (s390_iterate_over_regset_sections): Add regset parameter to each
787 (s390_gdbarch_init): No longer set the regset_from_core_section
788 gdbarch method. Drop initialization of deleted tdep fields.
790 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
792 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
793 (amd64_linux_iterate_over_regset_sections): New.
794 (amd64_linux_init_abi_common): Don't install the regset section
795 list, but the new iterator in gdbarch.
796 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
797 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
798 (arm_linux_iterate_over_regset_sections): ...here. New function.
799 (arm_linux_init_abi): Set iterator instead of section list.
800 * corelow.c (get_core_registers_cb): New function, logic moved
802 (get_core_registers): ...loop body here. Use new iterator method
803 instead of walking through the regset section list.
804 * gdbarch.sh: Remove 'core_regset_sections'. New method
805 'iterate_over_regset_sections'. New typedef
806 'iterate_over_regset_sections_cb'.
807 * gdbarch.c: Regenerate.
808 * gdbarch.h: Likewise.
809 * i386-linux-tdep.c (i386_linux_regset_sections)
810 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
812 (i386_linux_iterate_over_regset_sections): New.
813 (i386_linux_init_abi): Don't choose a regset section list, but
814 install new iterator in gdbarch.
815 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
816 (linux_collect_regset_section_cb): New function, logic moved
818 (linux_collect_thread_registers): ...loop body here. Use iterator
819 method instead of walking through list.
820 (linux_make_corefile_notes_1): Check for presence of iterator
821 method instead of regset section list.
822 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
823 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
824 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
825 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
826 (ppc_linux_iterate_over_regset_sections): ...here. New function.
827 (ppc_linux_init_abi): Don't choose from above regset section
828 lists, but install new iterator in gdbarch.
829 * regset.h (struct core_regset_section): Remove.
830 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
831 have_linux_v1, have_linux_v2, and have_tdb.
832 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
833 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
834 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
835 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
836 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
837 (s390_iterate_over_regset_sections): ...here. New function. Use
839 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
840 regset section lists, but install new iterator.
842 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
844 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
846 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
848 * progspace.c (print_program_space): Don't prune program spaces
849 before printing them.
851 2014-09-25 Pedro Alves <palves@redhat.com>
853 * infrun.c (user_visible_resume_ptid): Don't check
854 singlestep_breakpoints_inserted_p.
856 2014-09-25 Pedro Alves <palves@redhat.com>
858 * breakpoint.c (should_be_inserted): Add debug output.
860 2014-09-25 Pedro Alves <palves@redhat.com>
862 * infrun.c (stepping_past_instruction_at)
863 (clear_exit_convenience_vars): Point at infrun.h instead of
865 (handle_signal_stop): Fix typo.
867 2014-09-24 Yao Qi <yao@codesourcery.com>
869 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
872 2014-09-22 Gary Benson <gbenson@redhat.com>
874 * target.c (target_stop): Updated comment.
876 2014-09-22 Gary Benson <gbenson@redhat.com>
878 * target/target.h (target_stop_ptid): Renamed as...
879 (target_stop_and_wait): New function. Updated comment.
881 (target_continue_ptid): Renamed as...
882 (target_continue_no_signal): New function. Updated comment.
885 2014-09-22 Pedro Alves <palves@redhat.com>
887 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
889 * breakpoint.c (enum ugll_insert_mode): New enum.
890 (always_inserted_mode): Now a plain boolean.
891 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
892 (breakpoints_always_inserted_mode): Delete.
893 (breakpoints_should_be_inserted_now): New function.
894 (insert_breakpoints): Pass UGLL_INSERT to
895 update_global_location_list instead of calling
896 insert_breakpoint_locations manually.
897 (create_solib_event_breakpoint_1): New, factored out from ...
898 (create_solib_event_breakpoint): ... this.
899 (create_and_insert_solib_event_breakpoint): Use
900 create_solib_event_breakpoint_1 instead of calling
901 insert_breakpoint_locations manually.
902 (update_global_location_list): Change parameter type from boolean
903 to enum ugll_insert_mode. All callers adjusted. Adjust to use
904 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
905 (update_global_location_list_nothrow): Change parameter type from
906 boolean to enum ugll_insert_mode.
907 (_initialize_breakpoint): "breakpoint always-inserted" option is
908 now a boolean command. Update help text.
909 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
910 (breakpoints_should_be_inserted_now): New declaration.
911 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
912 Remove breakpoints_always_inserted_mode check.
913 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
914 * remote.c (remote_start_remote): Likewise.
916 2014-09-22 Pedro Alves <palves@redhat.com>
918 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
919 (insert_breakpoints): Don't call insert_breakpoint_locations here.
920 Instead, pass UGLL_INSERT to update_global_location_list.
921 (update_global_location_list): Change parameter type from boolean
922 to enum ugll_insert_mode. All callers adjusted. Adjust to use
923 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
924 (create_solib_event_breakpoint_1): New, factored out from ...
925 (create_solib_event_breakpoint): ... this.
926 (create_and_insert_solib_event_breakpoint): Use
927 create_solib_event_breakpoint_1 instead of calling
928 insert_breakpoint_locations manually.
929 (update_global_location_list): Handle UGLL_INSERT.
931 2014-09-22 Pedro Alves <palves@redhat.com>
933 * breakpoint.c (enum ugll_insert_mode): New enum.
934 (update_global_location_list)
935 (update_global_location_list_nothrow): Change parameter type from
936 boolean to enum ugll_insert_mode. All callers adjusted.
938 2014-09-19 Joel Brobecker <brobecker@adacore.com>
940 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
941 SystemTap support in GDB.
943 2014-09-19 Don Breazeal <donb@codesourcery.com>
945 * linux-nat.c (linux_handle_extended_wait): Call
946 linux_ptrace_get_extended_event.
947 (wait_lwp): Call linux_is_extended_waitstatus.
948 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
949 and linux_is_extended_waitstatus.
950 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
951 linux_ptrace_get_extended_event.
952 (linux_ptrace_get_extended_event): New function.
953 (linux_is_extended_waitstatus): New function.
954 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
955 (linux_is_extended_waitstatus): New declarations.
957 2014-09-19 Yao Qi <yao@codesourcery.com>
959 * dwarf2read.c (dwarf_decode_lines): Update declaration.
960 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
961 comments. Callers update.
962 (dwarf_decode_lines): Likewise.
963 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
964 comments. Skip the line table if 'lowpc' is greater than
965 'address'. Don't check
966 dwarf2_per_objfile->has_section_at_zero.
968 2014-09-18 Doug Evans <dje@google.com>
970 * NEWS: Mention new "producer" attribute of gdb.Symtab.
971 * python/py-symtab.c (stpy_get_producer): New function.
972 (symtab_object_getset): Add "producer" attribute.
974 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
977 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
978 (do_captured_read_memory_integer): Remove.
979 (safe_read_memory_integer): Use target_read_memory directly instead
980 of catching errors in do_captured_read_memory_integer.
982 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
984 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
987 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
989 * objc-lang.c (find_implementation_from_class): Remove dead code.
991 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
994 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
995 "fprintf_unfiltered (gdb_stdlog...)".
997 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1000 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1002 * breakpoint.c (watch_command_1): Use these fields to retain
1003 bitfield information.
1004 (extract_bitfield_from_watchpoint_value): New function.
1005 (watchpoint_check): Use it.
1006 (update_watchpoint): Use it. Optimize the address and length of a
1007 HW watchpoint pointing to a bitfield.
1008 * value.h (unpack_value_bitfield): New prototype.
1009 * value.c (unpack_value_bitfield): Make extern.
1011 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1013 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1015 * gnu-nat.c (inf_threads): New function.
1016 * gnu-nat.h (inf_threads_ftype): New typedef.
1017 (inf_threads): New declaration.
1018 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1019 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1020 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1021 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1022 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1023 (i386_gnu_dr_get_control): New functions.
1024 (reg_addr): New structure.
1025 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1026 i386 debugging register hooks.
1027 * NEWS: Mention this.
1029 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1031 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1032 vector data transfer instructions.
1033 (arm_record_coproc_data_proc): Updated.
1035 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1037 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1038 arm_record_exreg_ld_st_insn.
1039 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1042 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1044 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1045 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1046 processing instructions.
1048 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1050 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1051 for advance SIMD struct ld/st insn.
1052 (thumb2_record_decode_insn_handler): Replace stub handler with
1053 thumb2_record_asimd_struct_ld_st.
1055 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1057 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1058 for asimd, vfp and coprocessor insns.
1059 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1060 and coprocessor insns.
1061 (thumb2_record_coproc_insn): New function.
1062 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1064 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1067 2014-09-13 Doug Evans <xdje42@gmail.com>
1069 * NEWS: Mention new "queue-signal" command.
1070 * infcmd.c (queue_signal_command): New function.
1071 (_initialize_infcmd): Add new queue-signal command.
1073 2014-09-13 Doug Evans <xdje42@gmail.com>
1075 * linux-nat.c (wait_lwp): Add debugging printf.
1076 (linux_nat_wait_1): Ditto.
1078 2014-09-12 Pedro Alves <palves@redhat.com>
1080 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1081 (create_and_insert_solib_event_breakpoint): New functions.
1082 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1083 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1084 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1085 (remove_dbx_link_breakpoint): Delete function.
1086 (insert_dbx_link_bpt_in_file): Use
1087 create_and_insert_solib_event_breakpoint instead of
1088 deprecated_insert_raw_breakpoint.
1089 (procfs_wait): Don't check whether we hit __dbx_link here.
1090 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1092 * solib-irix.c (base_breakpoint): Delete global.
1093 (disable_break): Delete function.
1094 (enable_break): Use create_solib_event_breakpoint
1095 instead of deprecated_insert_raw_breakpoint.
1096 (irix_solib_handle_event): New function.
1097 (irix_solib_create_inferior_hook): Don't run the target or disable
1098 the mapping-complete breakpoint here.
1099 (_initialize_irix_solib): Install irix_solib_handle_event as
1100 so_ops->handle_event hook.
1102 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1103 Ulrich Weigand <uweigand@de.ibm.com>
1106 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1107 instead of read_memory_unsigned_integer.
1109 2014-09-12 Gary Benson <gbenson@redhat.com>
1111 * nat/linux-waitpid.c: Include common-defs.h.
1112 [GDBSERVER]: Add FIXME comment.
1113 [!GDBSERVER]: Don't include defs.h or signal.h.
1114 (linux_debug) [!GDBSERVER]: Remove empty block.
1116 2014-09-12 Gary Benson <gbenson@redhat.com>
1118 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1119 Don't include defs.h or server.h.
1121 2014-09-12 Gary Benson <gbenson@redhat.com>
1123 * nat/linux-btrace.c: Include common-defs.h.
1124 Don't include defs.h, server.h or gdbthread.h.
1125 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1127 2014-09-12 Gary Benson <gbenson@redhat.com>
1129 * common/agent.c: Include common-defs.h.
1130 Don't include defs.h or server.h.
1131 * common/buffer.c: Likewise.
1132 * common/common-debug.c: Likewise.
1133 * common/common-utils.c: Likewise.
1134 * common/errors.c: Likewise.
1135 * common/filestuff.c: Likewise.
1136 * common/format.c: Likewise.
1137 * common/gdb_vecs.c: Likewise.
1138 * common/print-utils.c: Likewise.
1139 * common/ptid.c: Likewise.
1140 * common/rsp-low.c: Likewise.
1141 * common/signals.c: Likewise.
1142 * common/vec.c: Likewise.
1143 * common/xml-utils.c: Likewise.
1144 * nat/linux-osdata.c: Likewise.
1145 * nat/linux-procfs.c: Likewise.
1146 * nat/linux-ptrace.c: Likewise.
1147 * nat/mips-linux-watch.c: Likewise.
1148 * target/waitstatus.c: Likewise.
1150 2014-09-12 Tom Tromey <tromey@redhat.com>
1151 Gary Benson <gbenson@redhat.com>
1153 * common/common-regcache.h: New file.
1154 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1155 * regcache.h: Include common-regcache.h.
1156 (regcache_read_pc): Don't declare.
1157 * regcache.c (get_thread_regcache_for_ptid): New function.
1158 * nat/linux-btrace.c: Don't include regcache.h.
1159 Include common-regcache.h.
1160 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1162 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1164 * regcache.h (struct regset): Declare.
1166 2014-09-11 Pedro Alves <palves@redhat.com>
1169 * main.c: Include "infrun.h".
1170 (catch_command_errors, catch_command_errors_const): Wait for the
1171 foreground command to complete.
1172 * top.c (maybe_wait_sync_command_done): New function, factored out
1174 (maybe_wait_sync_command_done): ... here.
1175 * top.h (maybe_wait_sync_command_done): New declaration.
1177 2014-09-11 Tom Tromey <tromey@redhat.com>
1178 Gary Benson <gbenson@redhat.com>
1180 * common/symbol.h: New file.
1181 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1182 * minsyms.c (find_minimal_symbol_address): New function.
1183 * common/agent.c: Include common/symbol.h.
1184 [!GDBSERVER]: Don't include objfiles.h.
1185 (agent_look_up_symbols): Use find_minimal_symbol_address.
1187 2014-09-11 Gary Benson <gbenson@redhat.com>
1189 * target/target.h (target_stop_ptid, target_continue_ptid):
1191 * target.c (target_stop_ptid, target_continue_ptid): New
1193 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1194 (agent_run_command): Always use target_stop_ptid and
1195 target_continue_ptid.
1197 2014-09-11 Tom Tromey <tromey@redhat.com>
1198 Gary Benson <gbenson@redhat.com>
1200 * target/target.h: New file.
1201 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1202 * target.h: Include target/target.h.
1203 (target_read_memory, target_write_memory): Don't declare.
1204 * target.c (target_read_uint32): New function.
1205 * common/agent.c: Include target/target.h.
1206 [!GDBSERVER]: Don't include target.h.
1207 (helper_thread_id): Type changed to uint32_t.
1208 (agent_get_helper_thread_id): Use target_read_uint32.
1209 (agent_run_command): Always use target_read_memory and
1210 target_write_memory.
1211 (agent_capability): Type changed to uint32_t.
1212 (agent_capability_check): Use target_read_uint32.
1214 2014-09-11 Gary Benson <gbenson@redhat.com>
1216 * common/common-debug.h (show_debug_regs): Declare.
1217 * common/common-debug.c (show_debug_regs): Define.
1218 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1219 all uses with show_debug_regs. Replace all uses that considered
1220 debug_hw_points as a multi-value integer with straight boolean
1222 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1223 with show_debug_regs.
1224 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1225 all uses with show_debug_regs.
1226 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1227 uses with show_debug_regs.
1229 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1231 * findvar.c (address_from_register): Handle targets requiring
1232 a special conversion routine even for plain pointer types.
1234 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1236 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1237 (store_register): Do not call exec_one_dummy_insn.
1239 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1241 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1242 dereference it first. Use value_enclosing_type instead of
1244 (ada_array_length): Likewise.
1246 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1248 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1249 Adjust function implementation and documentation accordingly.
1250 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1251 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1252 Update call to ada_value_ptr_subscript.
1254 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1256 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1257 instead of VAL's type.
1259 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1261 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1263 2014-09-09 Doug Evans <xdje42@gmail.com>
1266 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1267 last parameter to pkg-config, not first.
1268 * configure.ac: Pass --with-guile provided pkg-config path to
1269 GDB_GUILE_PROGRAM_NAMES.
1270 * configure: Regenerate.
1272 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1274 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1277 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1279 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1280 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1281 the list of sections determining GDB_OSABI_IRIX.
1283 2014-09-09 James Hogan <james.hogan@imgtec.com>
1285 * MAINTAINERS (Write After Approval): Add "James Hogan".
1287 2014-09-09 James Hogan <james.hogan@imgtec.com>
1289 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1291 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1293 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1295 2014-09-08 Doug Evans <xdje42@gmail.com>
1298 * guile.c: #include <signal.h>.
1299 (_initialize_guile): Block SIGCHLD while initializing Guile.
1301 Replaces the following, which is reverted.
1303 2014-07-26 Doug Evans <xdje42@gmail.com>
1306 * configure.ac: Add check for header gc/gc.h.
1307 Add check for function setenv.
1308 * configure: Regenerate.
1309 * config.in: Regenerate.
1310 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1312 2014-09-08 Doug Evans <xdje42@gmail.com>
1314 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1315 with named constant. Fix style of pointer comparison.
1316 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1318 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1321 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1322 decide whether we display the command on "show user".
1323 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1324 printing command name.
1325 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1326 * cli/cli-decode.c (cli_user_command_p): Create helper function
1327 to verify whether cmd_list_element is a user-defined command.
1329 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1332 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1333 Fix goto out of TRY_CATCH.
1335 2014-09-06 Doug Evans <xdje42@gmail.com>
1336 Tom Tromey <tromey@redhat.com>
1339 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1340 $_any_caller_matches.
1341 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1342 * python/lib/gdb/function/caller_is.py: New file.
1344 2014-09-06 Doug Evans <xdje42@gmail.com>
1346 * infcmd.c (program_info): Fix typo.
1348 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1351 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1352 'number'. New variable 'has_digit'. Rewrite code to deal with
1353 subexpressions on SDT probes.
1355 2014-09-04 Pedro Alves <palves@redhat.com>
1357 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1358 the input is only one character long.
1360 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1363 * f-valprint.c (f_val_print): Specify the correct print option to
1364 use when printing integer values.
1366 2014-09-04 Gary Benson <gbenson@redhat.com>
1368 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1369 Remove code to cope with LWPs wrapped as PIDs.
1370 Add assertions to ensure no wrapped LWPs are passed.
1372 2014-09-04 Pedro Alves <palves@redhat.com>
1374 * value.c (value_ranges_copy_adjusted): New function, factored out
1376 (value_contents_copy_raw): ... here.
1377 (unpack_value_bits_as_long_1): Rename back to ...
1378 (unpack_bits_as_long): ... this. Remove 'original_value' and
1379 'result' parameters. Change return type to LONGEST.
1380 (unpack_value_bits_as_long): Delete.
1381 (unpack_value_field_as_long_1): Delete.
1382 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1383 (unpack_value_bitfield): New function.
1384 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1385 (value_fetch_lazy): Use unpack_value_bitfield.
1386 * value.h (unpack_value_bits_as_long): Delete declaration.
1388 2014-09-03 Sasha Smundak <asmundak@google.com>
1390 * python/py-frame.c (frapy_read_register): New function.
1392 2014-09-03 James Hogan <james.hogan@imgtec.com>
1394 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1395 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1397 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1400 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1402 (add_cmd): Set "completer_handle_brkchars" to NULL.
1403 * cli/cli-decode.h (struct cmd_list_element)
1404 <completer_handle_brkchars>: New field.
1405 * command.h (completer_ftype_void): New typedef.
1406 (set_cmd_completer_handle_brkchars): New prototype.
1407 * completer.c (set_gdb_completion_word_break_characters): New
1409 (complete_line_internal): Call "completer_handle_brkchars"
1410 callback from command.
1411 * completer.h: Include "command.h".
1412 (set_gdb_completion_word_break_characters): New prototype.
1413 * python/py-cmd.c (cmdpy_completer_helper): New function.
1414 (cmdpy_completer_handle_brkchars): New function.
1415 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1416 (cmdpy_init): Set completer_handle_brkchars to
1417 cmdpy_completer_handle_brkchars.
1419 2014-09-03 Gary Benson <gbenson@redhat.com>
1421 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1422 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1423 Loop conditions changed to equivalent form.
1424 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1425 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1426 ALL_DEBUG_ADDRESS_REGISTERS.
1428 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1430 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1433 2014-09-02 Doug Evans <dje@google.com>
1435 * typeprint.c (find_global_typedef): Fix comment.
1437 2014-09-02 Gary Benson <gbenson@redhat.com>
1439 * i386-nat.h: Renamed as...
1440 * x86-nat.h: New file. All type, function and variable name
1441 prefixes changed from "i386_" to "x86_". All references updated.
1442 * i386-nat.c: Renamed as...
1443 * x86-nat.c: New file. All type, function and variable name
1444 prefixes changed from "i386_" to "x86_". All references updated.
1445 * common/i386-xstate.h: Renamed as...
1446 * common/x86-xstate.h: New file. All type, function and variable
1447 name prefixes changed from "i386_" to "x86_". All references
1449 * nat/i386-cpuid.h: Renamed as...
1450 * nat/x86-cpuid.h: New file. All type, function and variable name
1451 prefixes changed from "i386_" to "x86_". All references updated.
1452 * nat/i386-gcc-cpuid.h: Renamed as...
1453 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1454 name prefixes changed from "i386_" to "x86_". All references
1456 * nat/i386-dregs.h: Renamed as...
1457 * nat/x86-dregs.h: New file. All type, function and variable name
1458 prefixes changed from "i386_" to "x86_". All references updated.
1459 * nat/i386-dregs.c: Renamed as...
1460 * nat/x86-dregs.c: New file. All type, function and variable name
1461 prefixes changed from "i386_" to "x86_". All references updated.
1463 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1465 * varobj.c (_initialize_varobj): Move to the end of file.
1467 2014-08-29 Gary Benson <gbenson@redhat.com>
1469 * common/common-exceptions.h: New file.
1470 * common/common-exceptions.c: Likewise.
1471 * Makefile.in (SFILES): Add common/common-exceptions.c.
1472 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1473 (COMMON_OBS): Add common-exceptions.o.
1474 (common-exceptions.o): New rule.
1475 * exceptions.h (common-exceptions.h): Include.
1476 (gdb_setjmp.h): Do not include.
1477 (return_reason): Moved to common-exceptions.h.
1478 (enum return_reason): Likewise.
1479 (RETURN_MASK): Likewise.
1480 (typedef return_mask): Likewise.
1481 (enum errors): Likewise.
1482 (struct gdb_exception): Likewise.
1483 (exceptions_state_mc_init): Likewise.
1484 (exceptions_state_mc_action_iter): Likewise.
1485 (exceptions_state_mc_action_iter_1): Likewise.
1486 (TRY_CATCH): Likewise.
1487 (throw_exception): Likewise.
1488 (throw_verror): Likewise.
1489 (throw_vquit): Likewise.
1490 (throw_error): Likewise.
1491 (throw_quit): Likewise.
1492 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1493 (enum catcher_action): Likewise.
1494 (struct catcher): Likewise.
1495 (current_catcher): Likewise.
1496 (catcher_list_size): Likewise.
1497 (exceptions_state_mc_init): Likewise.
1498 (catcher_pop): Likewise.
1499 (exceptions_state_mc): Likewise.
1500 (exceptions_state_mc_action_iter): Likewise.
1501 (exceptions_state_mc_action_iter_1): Likewise.
1502 (throw_exception): Likewise.
1503 (exception_messages): Likewise.
1504 (exception_messages_size): Likewise.
1505 (throw_it): Likewise.
1506 (throw_verror): Likewise.
1507 (throw_vquit): Likewise.
1508 (throw_error): Likewise.
1509 (throw_quit): Likewise.
1510 (prepare_to_throw_exception): New function.
1512 2014-08-29 Gary Benson <gbenson@redhat.com>
1514 * common/gdb_setjmp.h: New file.
1515 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1516 * configure.ac: Move sigsetjmp check...
1517 * common/common.m4: ...here.
1518 * configure: Regenerate.
1519 * cp-support.c (SIGJMP_BUF): Delete.
1520 (SIGSETJMP): Likewise.
1521 (SIGLONGJMP): Likewise.
1522 * exceptions.h (gdb_setjmp.h): Include.
1523 (setjmp.h): Do not include.
1524 (EXCEPTIONS_SIGJMP_BUF): Delete.
1525 (EXCEPTIONS_SIGSETJMP): Likewise.
1526 (EXCEPTIONS_SIGLONGJMP): Likewise.
1527 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1529 * exceptions.c: Likewise.
1531 2014-08-29 Gary Benson <gbenson@redhat.com>
1533 * cleanups.h: Moved to...
1534 * common/cleanups.h: New file.
1535 * cleanups.c: Moved to...
1536 * common/cleanups.c: New file. Include common-defs.h and
1537 cleanups.h. Do not include defs.h.
1538 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1539 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1540 (cleanups.o): New rule.
1542 2014-08-29 Gary Benson <gbenson@redhat.com>
1544 * common/errors.h (internal_warning): New declaration.
1545 (internal_vwarning): Likewise.
1546 * common/errors.c (internal_warning): New function.
1547 * utils.h (internal_warning): Don't declare.
1548 (internal_vwarning): Likewise.
1549 * utils.c (internal_warning): Removed.
1551 2014-08-29 Gary Benson <gbenson@redhat.com>
1553 * main.c (captured_main): Use warning during startup.
1554 Prefix startup warning messages with command name.
1556 2014-08-29 Gary Benson <gbenson@redhat.com>
1558 * main.c (captured_main): Handle usage errors with error.
1560 2014-08-29 Gary Benson <gbenson@redhat.com>
1562 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1563 exit pair with a call to error. Wrap the message with _().
1565 2014-08-29 Gary Benson <gbenson@redhat.com>
1567 * main.c (captured_main): Replace a fprintf/exit
1568 pair with a call to error. Wrap the message with _().
1570 2014-08-29 Gary Benson <gbenson@redhat.com>
1572 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1573 pairs with calls to error. Wrap the message with _().
1575 2014-08-29 Gary Benson <gbenson@redhat.com>
1577 * utils.c (vwarning): Protect calls to target_terminal_ours
1580 2014-08-29 Gary Benson <gbenson@redhat.com>
1582 * exceptions.c (print_flush): Protect calls to
1583 target_terminal_ours and wrap_here.
1585 2014-08-29 Gary Benson <gbenson@redhat.com>
1587 * utils.h (filtered_printing_initialized): New declaration.
1588 * utils.c (abort_with_message): New function.
1589 (internal_vproblem): Use abort_with_message for first level
1590 recursive internal problems, and if gdb_stderr is not set up.
1591 Protect calls to target_terminal_ours, begin_line and query.
1593 2014-08-28 Doug Evans <dje@google.com>
1595 * symtab.c (in_prologue): Move definition to better spot.
1596 (skip_prologue_using_sal): Ditto.
1598 2014-08-28 Doug Evans <dje@google.com>
1600 * symtab.c (find_function_start_sal): Move definition to better spot.
1602 2014-08-28 Yao Qi <yao@codesourcery.com>
1604 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1605 found_stack_adjust in forward scan. Remove condition check
1606 on found_stack_adjust which is always true. Indent the code.
1608 2014-08-28 Yao Qi <yao@codesourcery.com>
1610 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1611 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1612 (dwarf_decode_lines): Remove argument
1613 want_line_info. Remove condition check on want_line_info.
1616 2014-08-27 Doug Evans <dje@google.com>
1618 * dwarf2read.c (dwarf_record_line): Fix typo.
1620 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1622 * target.h (struct target_ops::to_terminal_save_ours): Remove
1624 (target_terminal_save_ours): Remove macro.
1625 * target-delegates.c: Regenerate.
1626 * inf-child.c (inf_child_target): Don't set the nonexistent
1627 field to_terminal_save_ours.
1628 * inferior.h (child_terminal_save_ours): Remove declaration.
1629 * terminal.h (gdb_save_tty_state): New declaration.
1630 * inflow.c (child_terminal_save_ours): Rename to ...
1631 (gdb_save_tty_state): ... this.
1632 * tui/tui.c: Include terminal.h.
1633 (tui_enable): Use gdb_save_tty_state instead of
1634 target_terminal_save_ours.
1635 (tui_disable): Likewise.
1637 2014-08-25 Doug Evans <dje@google.com>
1639 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1640 Pass NULL instead of 0 for context pointer.
1642 2014-08-25 Yao Qi <yao@codesourcery.com>
1644 * dwarf2read.c: Fix grammatical error.
1646 2014-08-24 Yao Qi <yao@codesourcery.com>
1648 * dwarf2read.c (scan_partial_symbols): Update comments.
1649 Rename argument 'need_pc' with 'set_addrmap'.
1650 (add_partial_namespace): Rename argument 'need_pc' with
1652 (add_partial_module): Likewise.
1653 (add_partial_subprogram): Likewise. Update comments.
1654 (dwarf2_name): Fix typo.
1656 2014-08-22 Doug Evans <dje@google.com>
1659 * dwarf2read.c (dwarf_record_line_p): New function.
1660 (dwarf_decode_lines_1): Ignore subsequent line number entries
1661 for the same line if any entry had a non-zero discriminator.
1663 2014-08-22 Doug Evans <dje@google.com>
1665 * buildsym.h (record_line_ftype): New typedef.
1666 (record_line): Use it.
1667 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1668 (dwarf_decode_lines_1): Call them.
1670 2014-08-22 Yao Qi <yao@codesourcery.com>
1672 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1673 (ctf_end): Remove code.
1675 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1677 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1678 (linux_make_corefile_notes): call update_thread_list, protected against
1681 2014-08-21 Pedro Alves <palves@redhat.com>
1683 * infcmd.c (attach_command): Remove comment.
1685 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1687 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1688 unsigned LONGEST to ULONGEST.
1690 2014-08-20 Pedro Alves <palves@redhat.com>
1692 * Makefile.in (check-read1): New rule.
1694 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1696 * value.c (value_from_contents_and_address): Strip resolved_type's
1697 typedef layers before checking its TYPE_DATA_LOCATION.
1699 2014-08-20 Pedro Alves <palves@redhat.com>
1701 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1703 2014-08-20 Yao Qi <yao@codesourcery.com>
1705 * amd64-tdep.c (amd64_classify): Add a blank line after the
1706 example. Move "*/" to a new line.
1707 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1708 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1709 * dwarf2read.c (psymtab_include_file_name): Likewise.
1711 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1712 Pedro Alves <palves@redhat.com>
1716 * ada-lang.c (coerce_unspec_val_to_type): Use
1717 value_contents_copy_raw.
1718 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1719 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1720 * cp-valprint.c (cp_print_value_fields): Let the common printing
1721 code handle optimized out values.
1722 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1723 * d-valprint.c (dynamic_array_type): Use
1724 value_bits_any_optimized_out.
1725 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1726 check_any_valid fields.
1727 (check_pieced_value_bits): Delete and inline ...
1728 (check_pieced_synthetic_pointer): ... here.
1729 (check_pieced_value_validity): Delete.
1730 (check_pieced_value_invalid): Delete.
1731 (pieced_value_funcs): Remove check_validity and check_any_valid
1733 (read_pieced_value): Use mark_value_bits_optimized_out.
1734 (write_pieced_value): Switch to use
1735 mark_value_bytes_optimized_out.
1736 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1737 of assuming the whole value is optimized out.
1738 * findvar.c (read_frame_register_value): Remove special handling
1739 of optimized out registers.
1740 (value_from_register): Use mark_value_bytes_optimized_out.
1741 * frame-unwind.c (frame_unwind_got_optimized): Use
1742 mark_value_bytes_optimized_out.
1743 * jv-valprint.c (java_value_print): Adjust.
1744 (java_print_value_fields): Let the common printing code handle
1745 optimized out values.
1746 * mips-tdep.c (mips_print_register): Remove special handling of
1747 optimized out registers.
1748 * opencl-lang.c (lval_func_check_validity): Delete.
1749 (lval_func_check_any_valid): Delete.
1750 (opencl_value_funcs): Remove check_validity and check_any_valid
1752 * p-valprint.c (pascal_object_print_value_fields): Let the common
1753 printing code handle optimized out values.
1754 * stack.c (read_frame_arg): Remove special handling of optimized
1755 out values. Fetch both VAL and ENTRYVAL before comparing
1756 contents. Adjust to value_available_contents_eq rename.
1757 * valprint.c (valprint_check_validity)
1758 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1759 (val_print_array_elements): Adjust.
1760 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1761 (value_bits_any_optimized_out): New function.
1762 (value_entirely_covered_by_range_vector): New function, factored
1763 out from value_entirely_unavailable.
1764 (value_entirely_unavailable): Reimplement.
1765 (value_entirely_optimized_out): New function.
1766 (insert_into_bit_range_vector): New function, factored out from
1767 mark_value_bits_unavailable.
1768 (mark_value_bits_unavailable): Reimplement.
1769 (struct ranges_and_idx): New struct.
1770 (find_first_range_overlap_and_match): New function, factored out
1771 from value_available_contents_bits_eq.
1772 (value_available_contents_bits_eq): Rename to ...
1773 (value_contents_bits_eq): ... this. Check both unavailable
1774 contents and optimized out contents.
1775 (value_available_contents_eq): Rename to ...
1776 (value_contents_eq): ... this.
1777 (allocate_value_lazy): Remove reference to the old optimized_out
1779 (allocate_optimized_out_value): Use
1780 mark_value_bytes_optimized_out.
1781 (require_not_optimized_out): Adjust to check whether the
1782 optimized_out vec is empty.
1783 (ranges_copy_adjusted): New function, factored out from
1784 value_contents_copy_raw.
1785 (value_contents_copy_raw): Also copy the optimized out ranges.
1786 Assert the destination ranges aren't optimized out.
1787 (value_contents_copy): Update comment, remove call to
1788 require_not_optimized_out.
1789 (value_contents_equal): Adjust to check whether the optimized_out
1791 (set_value_optimized_out, value_optimized_out_const): Delete.
1792 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1794 (value_entirely_optimized_out, value_bits_valid): Delete.
1795 (value_copy): Take a VEC copy of the 'optimized_out' field.
1796 (value_primitive_field): Remove special handling of optimized out.
1797 (value_fetch_lazy): Assert that lazy values have no unavailable
1798 regions. Use value_bits_any_optimized_out. Remove some special
1799 handling for optimized out values.
1800 * value.h: Add intro comment about <optimized out> and
1802 (struct lval_funcs): Remove check_validity and check_any_valid
1804 (set_value_optimized_out, value_optimized_out_const): Remove.
1805 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1807 (value_bits_any_optimized_out): New declaration.
1808 (value_bits_valid): Delete declaration.
1809 (value_available_contents_eq): Rename to ...
1810 (value_contents_eq): ... this, and extend comments.
1812 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1814 Fix -fsanitize=address on unreadable inferior strings.
1815 * valprint.c (val_print_string): Fix access before BUFFER.
1817 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1819 * target.c (target_struct_size): Remove.
1820 (target_struct_allocsize): Remove.
1821 (DEFAULT_ALLOCSIZE): Remove.
1822 (target_ops_p): New typedef.
1823 (DEF_VEC_P (target_ops_p)): New vector type.
1824 (target_structs): Change type to VEC (target_ops_p).
1825 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1826 (find_default_run_target): Rewrite for loop following changes to
1829 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1831 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1832 Adjust code accordingly. Adjust function description comment.
1834 2014-08-19 Yao Qi <yao@codesourcery.com>
1836 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1839 2014-08-19 Alan Modra <amodra@gmail.com>
1841 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1842 * config.in: Regenerate.
1843 * configure: Regenerate.
1845 2014-08-19 Tom Tromey <tromey@redhat.com>
1846 Gary Benson <gbenson@redhat.com>
1848 * common/common-debug.h: New file.
1849 * common/common-debug.c: Likewise.
1850 * debug.c: Likewise.
1851 * Makefile.in (SFILES): Add common/common-debug.c.
1852 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1853 (COMMON_OBS): Add common-debug.o and debug.o.
1854 (common-debug.o): New rule.
1855 * common/common-defs.h: Include common-debug.h.
1856 * common/agent.c (debug_agent_printf): New function.
1857 (DEBUG_AGENT): Redefine.
1858 * nat/i386-dregs.c (debug_printf): Undefine.
1860 2014-08-19 Gary Benson <gbenson@redhat.com>
1862 * common/common-defs.h: Include print-utils.h.
1863 * utils.h: Do not include print-utils.h.
1865 2014-08-19 Tom Tromey <tromey@redhat.com>
1866 Gary Benson <gbenson@redhat.com>
1868 * common/common-types.h: New file.
1869 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1870 * common/common-defs.h: Include common-types.h.
1871 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1874 2014-08-19 Tom Tromey <tromey@redhat.com>
1875 Gary Benson <gbenson@redhat.com>
1877 * common/errors.h: New file.
1878 * common/errors.c: Likewise.
1879 * Makefile.in (SFILES): Add common/errors.c.
1880 (HFILES_NO_SRCDIR): Add common/errors.h.
1881 (COMMON_OBS): Add errors.o.
1882 (errors.o): New rule.
1883 * common/common-defs.h: Include errors.h.
1884 * utils.h (perror_with_name, error, verror, warning, vwarning):
1886 * common/common-utils.h: (malloc_failure, internal_error):
1889 2014-08-19 Gary Benson <gbenson@redhat.com>
1891 * utils.c (internal_vproblem): Always print the message.
1893 2014-08-18 Doug Evans <dje@google.com>
1895 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1897 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1899 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1900 Return 0 if TYPE is dynamic.
1901 (print_range): Add handling of dynamic ranges.
1903 2014-08-18 Keven Boell <keven.boell@intel.com>
1904 Joel Brobecker <brobecker@adacore.com>
1906 * gdbtypes.h (struct main_type): Add field "data_location".
1907 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1908 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1909 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1910 a dynamic data location.
1911 (resolve_dynamic_type): Add DW_AT_data_location handling.
1912 (copy_recursive, copy_type): Copy the data_location information
1914 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1915 * value.c (value_from_contents_and_address): Add
1916 DW_AT_data_location handling.
1918 2014-08-18 Keven Boell <keven.boell@intel.com>
1919 Joel Brobecker <brobecker@adacore.com>
1921 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1922 field "get_object_address".
1923 * dwarf2expr.c (execute_stack_op): Add handling for
1924 DW_OP_push_object_address.
1925 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1926 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1927 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1928 (dwarf_expr_get_obj_addr): New function.
1929 (dwarf_expr_ctx_funcs): Add get_object_address field.
1930 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1931 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1932 (dwarf2_evaluate_property): Add parameter "address". Use it.
1933 (needs_get_obj_addr): New function.
1934 (needs_frame_ctx_funcs): Add get_object_address field.
1935 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1936 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1937 (resolve_dynamic_array): Likewise.
1939 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1941 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1942 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1943 fixed value for records and unions for which some GNAT encodings
1946 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1948 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1949 rewrite to avoid "else if" and "else" constructs. Should be
1950 a no-op in practice.
1952 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1954 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1957 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1960 * eval.c: Update all calls to find_overload_match.
1961 * valarith.c: Likewise.
1962 (value_user_defined_cpp_op, value_user_defined_op): New
1963 argument NOSIDE. Update all callers.
1964 * valops.c (find_overload_match): New argument NOSIDE.
1965 * value.h (find_overload_match): Update signature.
1967 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1969 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1970 'items' methods instead of 'iteritems' method on dictionaries.
1972 2014-08-15 Doug Evans <dje@google.com>
1974 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1977 2014-08-15 Doug Evans <dje@google.com>
1979 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1981 2014-08-15 Doug Evans <dje@google.com>
1983 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1985 2014-08-15 Doug Evans <dje@google.com>
1987 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1990 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1992 * dcache.h: Include target.h, to avoid compile time warnings.
1994 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1996 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1997 frame_info" partial declaration.
1998 * gdbarch.h: Regenerate.
2000 2014-08-15 Yao Qi <yao@codesourcery.com>
2002 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2003 Add parameter 'decode_for_pst_p'. Callers update.
2005 2014-08-13 Yao Qi <yao@codesourcery.com>
2008 * configure.ac: Use local variable 'pos'.
2009 * configure: Regenerated.
2011 2014-08-11 Doug Evans <dje@google.com>
2013 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2014 message, it is redundant with "Reading symbols from ..." message.
2016 2014-08-10 Doug Evans <xdje42@gmail.com>
2018 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2020 2014-08-09 Yao Qi <yao@codesourcery.com>
2023 * remote.c (remote_xfer_partial): Remove dead code.
2025 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2027 * ia64-linux-tdep.c: Include "regset.h".
2028 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2029 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2030 (ia64_linux_supply_fpregset): New function.
2031 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2032 (ia64_linux_regset_from_core_section): New function.
2033 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2036 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2038 * m68klinux-tdep.c: Include "regset.h".
2039 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2040 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2041 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2042 (m68k_linux_regset_from_core_section): New function.
2043 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2046 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2048 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2049 function. Move logic to...
2050 (tilegx_linux_regmap): ... this new register map.
2051 (tilegx_linux_regset): Refer to register map, replace supply
2052 method by regcache_supply_regset, and add collect method.
2053 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2054 TILEGX_FIRST_EASY_REGNUM.
2056 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2058 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2059 that calls regcache_supply_regset and handles the EPC register
2060 separately. Move main logic to...
2061 (score7_linux_gregmap): ... this new register map.
2062 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2063 (score7_linux_gregset): Refer to register map. Add collect method.
2064 (score7_linux_regset_from_core_section): Replace
2065 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2066 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2067 (struct regset): Delete unused forward declaraction.
2068 (struct pt_regs): Delete structure definition.
2069 (elf_gregset_t): Delete typedef.
2071 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2073 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2074 (nios2_core_regset): Add collect method.
2076 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2078 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2079 platform-independent and don't write to read-only input buffer.
2080 (m32r_linux_collect_gregset): New function.
2081 (m32r_linux_gregset): Add collect method.
2083 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2085 * hppa-linux-tdep.c (greg_map): Rename to...
2086 (hppa_linux_gregmap): ... this. Also convert to
2087 regcache_map_entry format.
2088 (hppa_linux_supply_regset): Delete function.
2089 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2090 (hppa_linux_fpregmap): ... this new register map.
2091 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2092 register map, replace supply method by regcache_supply_regset, and
2093 add collect method regcache_collect_regset.
2095 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2097 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2098 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2099 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2100 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2101 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2102 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2103 (frv_linux_supply_gregset): Replace main logic by call to
2104 regcache_supply_regset, but keep clearing gr32-gr63.
2105 (frv_linux_supply_fpregset): Delete function.
2106 (frv_linux_gregset): Refer to appropriate register map and add
2107 regcache_collect_regset as the collect method.
2108 (frv_linux_fpregset): Likewise. Also exchange the supply method
2109 by regcache_supply_regset.
2111 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2113 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2114 by call to alpha_supply_int_regs.
2115 (alpha_linux_collect_gregset): New function.
2116 (alpha_linux_supply_fpregset): Replace logic by call to
2117 alpha_supply_fp_regs.
2118 (alpha_linux_collect_fpregset): New function.
2119 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2121 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2123 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2124 by call to regcache_collect_regset.
2125 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2126 instead of aarch64_linux_supply_gregset/_fpregset.
2127 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2128 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2129 header file instead.
2130 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2131 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2132 functions. Move logic to ...
2133 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2135 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2136 refer to new register maps, replace *_regset_from_core by
2137 regcache_supply_regset, and also use regcache_collect_regset.
2138 * aarch64-linux-tdep.h: Include "regset.h".
2139 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2141 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2142 macros, moved from C source file.
2143 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2144 variable declarations.
2146 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2148 * s390-linux-nat.c: Include "regset.h".
2149 (regmap_gregset): Delete macro.
2150 (s390_64_regmap_gregset): New register map for
2151 regcache_supply/_collect_regset.
2152 (s390_64_gregset): New regset.
2153 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2154 (regmap_fpregset): Delete macro.
2155 (s390_native_supply, s390_native_collect): Delete functions.
2156 (supply_gregset, fill_gregset): Replace s390-specific regmap
2157 handling by a call to regcache_supply/_collect_regset.
2158 (supply_fpregset, fill_fpregset): Call regcache_supply/
2159 _collect_regset instead of s390_native_supply/_collect.
2160 (fetch_regset, store_regset): Likewise. Also change the last
2161 parameter to a regset instead of a regmap.
2162 (s390_linux_fetch_inferior_registers)
2163 (390_linux_store_inferior_registers): Adjust last parameter in
2164 calls to fetch_regset and store_regset.
2165 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2166 (s390_gregmap): ... this. Also make static const and convert to
2167 regcache_map_entry format.
2168 (s390x_regmap_gregset): Delete.
2169 (s390_regmap_fpregset): Rename to...
2170 (s390_fpregmap): ... this. Make static const and convert to
2171 regcache_map_entry format.
2172 (s390_regmap_upper, s390_regmap_last_break)
2173 (s390x_regmap_last_break, s390_regmap_system_call)
2174 (s390_regmap_tdb): Likewise.
2175 (s390_supply_regset, s390_collect_regset): Remove functions.
2176 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2178 (s390_gregset, s390_fpregset, s390_upper_regset)
2179 (s390_last_break_regset, s390x_last_break_regset)
2180 (s390_system_call_regset, s390_tdb_regset): Make global and
2181 replace s390_supply/_collect_regset by regcache_supply/
2183 (s390x_gregset): Delete.
2184 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2185 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2186 (s390_regmap_fpregset, s390_regmap_last_break)
2187 (s390x_regmap_last_break, s390_regmap_system_call)
2188 (s390_regmap_tdb): Delete global variable declarations.
2189 (s390_gregset, s390_fpregset, s390_last_break_regset)
2190 (s390x_last_break_regset, s390_system_call_regset)
2191 (s390_tdb_regset): New global variable declarations.
2193 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2195 * regcache.c: Include "regset.h".
2196 (regcache_transfer_regset): New local function.
2197 (regcache_supply_regset, regcache_collect_regset): New functions.
2198 * regcache.h (struct regcache_map_entry): New structure.
2199 (REGCACHE_MAP_SKIP): New enum value.
2200 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2202 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2204 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2205 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2206 (ppc_linux_collect_gregset ): Likewise.
2207 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2208 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2209 (ppc_collect_vrregset): Likewise.
2210 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2213 2014-08-07 Yao Qi <yao@codesourcery.com>
2215 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2216 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2217 * remote.c (remote_read_bytes): Likewise.
2219 2014-08-07 Yao Qi <yao@codesourcery.com>
2221 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2223 2014-08-07 Yao Qi <yao@codesourcery.com>
2226 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2227 TARGET_XFER_OK instead of 0.
2229 2014-08-07 Gary Benson <gbenson@redhat.com>
2231 * common/common-defs.h: Include errno.h.
2232 * defs.h: Do not include errno.h.
2233 * ada-typeprint.c: Likewise.
2234 * c-typeprint.c: Likewise.
2235 * core-regset.c: Likewise.
2236 * corefile.c: Likewise.
2237 * corelow.c: Likewise.
2238 * event-loop.c: Likewise.
2239 * f-typeprint.c: Likewise.
2240 * gnu-nat.c: Likewise.
2241 * go32-nat.c: Likewise.
2242 * i386gnu-nat.c: Likewise.
2243 * m2-typeprint.c: Likewise.
2244 * nat/linux-btrace.c: Likewise.
2245 * p-typeprint.c: Likewise.
2246 * procfs.c: Likewise.
2247 * remote-sim.c: Likewise.
2248 * rs6000-nat.c: Likewise.
2249 * target.c: Likewise.
2250 * typeprint.c: Likewise.
2251 * ui-file.c: Likewise.
2252 * valops.c: Likewise.
2253 * valprint.c: Likewise.
2255 2014-08-07 Gary Benson <gbenson@redhat.com>
2257 * common/common-defs.h: Include string.h.
2258 * aarch64-tdep.c: Do not include string.h.
2259 * ada-exp.y: Likewise.
2260 * ada-lang.c: Likewise.
2261 * ada-lex.l: Likewise.
2262 * ada-typeprint.c: Likewise.
2263 * ada-valprint.c: Likewise.
2264 * aix-thread.c: Likewise.
2265 * alpha-linux-tdep.c: Likewise.
2266 * alpha-mdebug-tdep.c: Likewise.
2267 * alpha-nat.c: Likewise.
2268 * alpha-osf1-tdep.c: Likewise.
2269 * alpha-tdep.c: Likewise.
2270 * alphanbsd-tdep.c: Likewise.
2271 * amd64-dicos-tdep.c: Likewise.
2272 * amd64-linux-tdep.c: Likewise.
2273 * amd64-nat.c: Likewise.
2274 * amd64-sol2-tdep.c: Likewise.
2275 * amd64fbsd-tdep.c: Likewise.
2276 * amd64obsd-tdep.c: Likewise.
2277 * arch-utils.c: Likewise.
2278 * arm-linux-nat.c: Likewise.
2279 * arm-linux-tdep.c: Likewise.
2280 * arm-tdep.c: Likewise.
2281 * arm-wince-tdep.c: Likewise.
2282 * armbsd-tdep.c: Likewise.
2283 * armnbsd-nat.c: Likewise.
2284 * armnbsd-tdep.c: Likewise.
2285 * armobsd-tdep.c: Likewise.
2286 * avr-tdep.c: Likewise.
2287 * ax-gdb.c: Likewise.
2288 * ax-general.c: Likewise.
2289 * bcache.c: Likewise.
2290 * bfin-tdep.c: Likewise.
2291 * breakpoint.c: Likewise.
2292 * build-id.c: Likewise.
2293 * buildsym.c: Likewise.
2294 * c-exp.y: Likewise.
2295 * c-lang.c: Likewise.
2296 * c-typeprint.c: Likewise.
2297 * c-valprint.c: Likewise.
2298 * charset.c: Likewise.
2299 * cli-out.c: Likewise.
2300 * cli/cli-cmds.c: Likewise.
2301 * cli/cli-decode.c: Likewise.
2302 * cli/cli-dump.c: Likewise.
2303 * cli/cli-interp.c: Likewise.
2304 * cli/cli-logging.c: Likewise.
2305 * cli/cli-script.c: Likewise.
2306 * cli/cli-setshow.c: Likewise.
2307 * cli/cli-utils.c: Likewise.
2308 * coffread.c: Likewise.
2309 * common/agent.c: Likewise.
2310 * common/buffer.c: Likewise.
2311 * common/buffer.h: Likewise.
2312 * common/common-utils.c: Likewise.
2313 * common/filestuff.c: Likewise.
2314 * common/filestuff.c: Likewise.
2315 * common/format.c: Likewise.
2316 * common/print-utils.c: Likewise.
2317 * common/rsp-low.c: Likewise.
2318 * common/signals.c: Likewise.
2319 * common/vec.h: Likewise.
2320 * common/xml-utils.c: Likewise.
2321 * core-regset.c: Likewise.
2322 * corefile.c: Likewise.
2323 * corelow.c: Likewise.
2324 * cp-abi.c: Likewise.
2325 * cp-name-parser.y: Likewise.
2326 * cp-support.c: Likewise.
2327 * cp-valprint.c: Likewise.
2328 * cris-tdep.c: Likewise.
2329 * d-exp.y: Likewise.
2330 * darwin-nat.c: Likewise.
2331 * dbxread.c: Likewise.
2332 * dcache.c: Likewise.
2333 * demangle.c: Likewise.
2334 * dicos-tdep.c: Likewise.
2335 * disasm.c: Likewise.
2336 * doublest.c: Likewise.
2337 * dsrec.c: Likewise.
2338 * dummy-frame.c: Likewise.
2339 * dwarf2-frame.c: Likewise.
2340 * dwarf2loc.c: Likewise.
2341 * dwarf2read.c: Likewise.
2342 * elfread.c: Likewise.
2343 * environ.c: Likewise.
2345 * event-loop.c: Likewise.
2346 * exceptions.c: Likewise.
2348 * expprint.c: Likewise.
2349 * f-exp.y: Likewise.
2350 * f-lang.c: Likewise.
2351 * f-typeprint.c: Likewise.
2352 * f-valprint.c: Likewise.
2353 * fbsd-nat.c: Likewise.
2354 * findcmd.c: Likewise.
2355 * findvar.c: Likewise.
2356 * fork-child.c: Likewise.
2357 * frame.c: Likewise.
2358 * frv-linux-tdep.c: Likewise.
2359 * frv-tdep.c: Likewise.
2361 * gdb_bfd.c: Likewise.
2362 * gdbarch.c: Likewise.
2363 * gdbarch.sh: Likewise.
2364 * gdbtypes.c: Likewise.
2365 * gnu-nat.c: Likewise.
2366 * gnu-v2-abi.c: Likewise.
2367 * gnu-v3-abi.c: Likewise.
2368 * go-exp.y: Likewise.
2369 * go-lang.c: Likewise.
2370 * go32-nat.c: Likewise.
2371 * guile/guile.c: Likewise.
2372 * guile/scm-auto-load.c: Likewise.
2373 * hppa-hpux-tdep.c: Likewise.
2374 * hppa-linux-nat.c: Likewise.
2375 * hppanbsd-tdep.c: Likewise.
2376 * hppaobsd-tdep.c: Likewise.
2377 * i386-cygwin-tdep.c: Likewise.
2378 * i386-dicos-tdep.c: Likewise.
2379 * i386-linux-tdep.c: Likewise.
2380 * i386-nto-tdep.c: Likewise.
2381 * i386-sol2-tdep.c: Likewise.
2382 * i386-tdep.c: Likewise.
2383 * i386bsd-tdep.c: Likewise.
2384 * i386gnu-nat.c: Likewise.
2385 * i386nbsd-tdep.c: Likewise.
2386 * i386obsd-tdep.c: Likewise.
2387 * i387-tdep.c: Likewise.
2388 * ia64-libunwind-tdep.c: Likewise.
2389 * ia64-linux-nat.c: Likewise.
2390 * inf-child.c: Likewise.
2391 * inf-ptrace.c: Likewise.
2392 * inf-ttrace.c: Likewise.
2393 * infcall.c: Likewise.
2394 * infcmd.c: Likewise.
2395 * inflow.c: Likewise.
2396 * infrun.c: Likewise.
2397 * interps.c: Likewise.
2398 * iq2000-tdep.c: Likewise.
2399 * irix5-nat.c: Likewise.
2400 * jv-exp.y: Likewise.
2401 * jv-lang.c: Likewise.
2402 * jv-typeprint.c: Likewise.
2403 * jv-valprint.c: Likewise.
2404 * language.c: Likewise.
2405 * linux-fork.c: Likewise.
2406 * linux-nat.c: Likewise.
2407 * lm32-tdep.c: Likewise.
2408 * m2-exp.y: Likewise.
2409 * m2-typeprint.c: Likewise.
2410 * m32c-tdep.c: Likewise.
2411 * m32r-linux-nat.c: Likewise.
2412 * m32r-linux-tdep.c: Likewise.
2413 * m32r-rom.c: Likewise.
2414 * m32r-tdep.c: Likewise.
2415 * m68hc11-tdep.c: Likewise.
2416 * m68k-tdep.c: Likewise.
2417 * m68kbsd-tdep.c: Likewise.
2418 * m68klinux-nat.c: Likewise.
2419 * m68klinux-tdep.c: Likewise.
2420 * m88k-tdep.c: Likewise.
2421 * machoread.c: Likewise.
2422 * macrocmd.c: Likewise.
2424 * mdebugread.c: Likewise.
2425 * mem-break.c: Likewise.
2426 * memattr.c: Likewise.
2427 * memory-map.c: Likewise.
2428 * mep-tdep.c: Likewise.
2429 * mi/mi-cmd-break.c: Likewise.
2430 * mi/mi-cmd-disas.c: Likewise.
2431 * mi/mi-cmd-env.c: Likewise.
2432 * mi/mi-cmd-stack.c: Likewise.
2433 * mi/mi-cmd-var.c: Likewise.
2434 * mi/mi-cmds.c: Likewise.
2435 * mi/mi-console.c: Likewise.
2436 * mi/mi-getopt.c: Likewise.
2437 * mi/mi-interp.c: Likewise.
2438 * mi/mi-main.c: Likewise.
2439 * mi/mi-parse.c: Likewise.
2440 * microblaze-rom.c: Likewise.
2441 * microblaze-tdep.c: Likewise.
2442 * mingw-hdep.c: Likewise.
2443 * minidebug.c: Likewise.
2444 * minsyms.c: Likewise.
2445 * mips-irix-tdep.c: Likewise.
2446 * mips-linux-tdep.c: Likewise.
2447 * mips-tdep.c: Likewise.
2448 * mips64obsd-tdep.c: Likewise.
2449 * mipsnbsd-tdep.c: Likewise.
2450 * mipsread.c: Likewise.
2451 * mn10300-linux-tdep.c: Likewise.
2452 * mn10300-tdep.c: Likewise.
2453 * monitor.c: Likewise.
2454 * moxie-tdep.c: Likewise.
2455 * mt-tdep.c: Likewise.
2456 * nat/linux-btrace.c: Likewise.
2457 * nat/linux-osdata.c: Likewise.
2458 * nat/linux-procfs.c: Likewise.
2459 * nat/linux-ptrace.c: Likewise.
2460 * nat/linux-waitpid.c: Likewise.
2461 * nbsd-tdep.c: Likewise.
2462 * nios2-linux-tdep.c: Likewise.
2463 * nto-procfs.c: Likewise.
2464 * nto-tdep.c: Likewise.
2465 * objc-lang.c: Likewise.
2466 * objfiles.c: Likewise.
2467 * opencl-lang.c: Likewise.
2468 * osabi.c: Likewise.
2469 * osdata.c: Likewise.
2470 * p-exp.y: Likewise.
2471 * p-lang.c: Likewise.
2472 * p-typeprint.c: Likewise.
2473 * parse.c: Likewise.
2474 * posix-hdep.c: Likewise.
2475 * ppc-linux-nat.c: Likewise.
2476 * ppc-sysv-tdep.c: Likewise.
2477 * ppcfbsd-tdep.c: Likewise.
2478 * ppcnbsd-tdep.c: Likewise.
2479 * ppcobsd-tdep.c: Likewise.
2480 * printcmd.c: Likewise.
2481 * procfs.c: Likewise.
2482 * prologue-value.c: Likewise.
2483 * python/py-auto-load.c: Likewise.
2484 * python/py-gdb-readline.c: Likewise.
2485 * ravenscar-thread.c: Likewise.
2486 * regcache.c: Likewise.
2487 * registry.c: Likewise.
2488 * remote-fileio.c: Likewise.
2489 * remote-m32r-sdi.c: Likewise.
2490 * remote-mips.c: Likewise.
2491 * remote-notif.c: Likewise.
2492 * remote-sim.c: Likewise.
2493 * remote.c: Likewise.
2494 * reverse.c: Likewise.
2495 * rs6000-aix-tdep.c: Likewise.
2496 * ser-base.c: Likewise.
2497 * ser-go32.c: Likewise.
2498 * ser-mingw.c: Likewise.
2499 * ser-pipe.c: Likewise.
2500 * ser-tcp.c: Likewise.
2501 * ser-unix.c: Likewise.
2502 * serial.c: Likewise.
2503 * sh-tdep.c: Likewise.
2504 * sh64-tdep.c: Likewise.
2505 * shnbsd-tdep.c: Likewise.
2507 * sol-thread.c: Likewise.
2508 * solib-dsbt.c: Likewise.
2509 * solib-frv.c: Likewise.
2510 * solib-osf.c: Likewise.
2511 * solib-som.c: Likewise.
2512 * solib-spu.c: Likewise.
2513 * solib-target.c: Likewise.
2514 * solib.c: Likewise.
2515 * somread.c: Likewise.
2516 * source.c: Likewise.
2517 * sparc-nat.c: Likewise.
2518 * sparc-sol2-tdep.c: Likewise.
2519 * sparc-tdep.c: Likewise.
2520 * sparc64-tdep.c: Likewise.
2521 * sparc64fbsd-tdep.c: Likewise.
2522 * sparc64nbsd-tdep.c: Likewise.
2523 * sparcnbsd-tdep.c: Likewise.
2524 * spu-linux-nat.c: Likewise.
2525 * spu-multiarch.c: Likewise.
2526 * spu-tdep.c: Likewise.
2527 * stabsread.c: Likewise.
2528 * stack.c: Likewise.
2529 * std-regs.c: Likewise.
2530 * symfile.c: Likewise.
2531 * symmisc.c: Likewise.
2532 * symtab.c: Likewise.
2533 * target.c: Likewise.
2534 * thread.c: Likewise.
2535 * tilegx-linux-nat.c: Likewise.
2536 * tilegx-tdep.c: Likewise.
2538 * tracepoint.c: Likewise.
2539 * tui/tui-command.c: Likewise.
2540 * tui/tui-data.c: Likewise.
2541 * tui/tui-disasm.c: Likewise.
2542 * tui/tui-file.c: Likewise.
2543 * tui/tui-layout.c: Likewise.
2544 * tui/tui-out.c: Likewise.
2545 * tui/tui-regs.c: Likewise.
2546 * tui/tui-source.c: Likewise.
2547 * tui/tui-stack.c: Likewise.
2548 * tui/tui-win.c: Likewise.
2549 * tui/tui-windata.c: Likewise.
2550 * tui/tui-winsource.c: Likewise.
2551 * typeprint.c: Likewise.
2552 * ui-file.c: Likewise.
2553 * ui-out.c: Likewise.
2554 * user-regs.c: Likewise.
2555 * utils.c: Likewise.
2556 * v850-tdep.c: Likewise.
2557 * valarith.c: Likewise.
2558 * valops.c: Likewise.
2559 * valprint.c: Likewise.
2560 * value.c: Likewise.
2561 * varobj.c: Likewise.
2562 * vax-tdep.c: Likewise.
2563 * vaxnbsd-tdep.c: Likewise.
2564 * vaxobsd-tdep.c: Likewise.
2565 * windows-nat.c: Likewise.
2566 * xcoffread.c: Likewise.
2567 * xml-support.c: Likewise.
2568 * xstormy16-tdep.c: Likewise.
2569 * xtensa-linux-nat.c: Likewise.
2571 2014-08-07 Gary Benson <gbenson@redhat.com>
2573 * common/common-defs.h: Include gdb_assert.h.
2574 * aarch64-tdep.c: Do not include gdb_assert.h.
2575 * addrmap.c: Likewise.
2576 * aix-thread.c: Likewise.
2577 * alpha-linux-tdep.c: Likewise.
2578 * alpha-mdebug-tdep.c: Likewise.
2579 * alphanbsd-tdep.c: Likewise.
2580 * amd64-nat.c: Likewise.
2581 * amd64-tdep.c: Likewise.
2582 * amd64bsd-nat.c: Likewise.
2583 * amd64fbsd-nat.c: Likewise.
2584 * amd64fbsd-tdep.c: Likewise.
2585 * amd64nbsd-nat.c: Likewise.
2586 * amd64nbsd-tdep.c: Likewise.
2587 * amd64obsd-nat.c: Likewise.
2588 * amd64obsd-tdep.c: Likewise.
2589 * arch-utils.c: Likewise.
2590 * arm-tdep.c: Likewise.
2591 * armbsd-tdep.c: Likewise.
2593 * bcache.c: Likewise.
2594 * bfin-tdep.c: Likewise.
2595 * blockframe.c: Likewise.
2596 * breakpoint.c: Likewise.
2597 * bsd-kvm.c: Likewise.
2598 * bsd-uthread.c: Likewise.
2599 * buildsym.c: Likewise.
2600 * c-exp.y: Likewise.
2601 * c-lang.c: Likewise.
2602 * charset.c: Likewise.
2603 * cleanups.c: Likewise.
2604 * cli-out.c: Likewise.
2605 * cli/cli-decode.c: Likewise.
2606 * cli/cli-dump.c: Likewise.
2607 * cli/cli-logging.c: Likewise.
2608 * cli/cli-script.c: Likewise.
2609 * cli/cli-utils.c: Likewise.
2610 * coffread.c: Likewise.
2611 * common/common-utils.c: Likewise.
2612 * common/queue.h: Likewise.
2613 * common/signals.c: Likewise.
2614 * common/vec.h: Likewise.
2615 * complaints.c: Likewise.
2616 * completer.c: Likewise.
2617 * corelow.c: Likewise.
2618 * cp-abi.c: Likewise.
2619 * cp-name-parser.y: Likewise.
2620 * cp-namespace.c: Likewise.
2621 * cp-support.c: Likewise.
2622 * cris-tdep.c: Likewise.
2623 * dbxread.c: Likewise.
2624 * dictionary.c: Likewise.
2625 * doublest.c: Likewise.
2626 * dsrec.c: Likewise.
2627 * dummy-frame.c: Likewise.
2628 * dwarf2-frame-tailcall.c: Likewise.
2629 * dwarf2-frame.c: Likewise.
2630 * dwarf2expr.c: Likewise.
2631 * dwarf2loc.c: Likewise.
2632 * dwarf2read.c: Likewise.
2634 * event-loop.c: Likewise.
2635 * exceptions.c: Likewise.
2636 * expprint.c: Likewise.
2637 * f-valprint.c: Likewise.
2638 * fbsd-nat.c: Likewise.
2639 * findvar.c: Likewise.
2640 * frame-unwind.c: Likewise.
2641 * frame.c: Likewise.
2642 * frv-tdep.c: Likewise.
2643 * gcore.c: Likewise.
2644 * gdb-dlfcn.c: Likewise.
2645 * gdb_bfd.c: Likewise.
2646 * gdbarch.c: Likewise.
2647 * gdbarch.sh: Likewise.
2648 * gdbtypes.c: Likewise.
2649 * gnu-nat.c: Likewise.
2650 * gnu-v3-abi.c: Likewise.
2651 * go-lang.c: Likewise.
2652 * guile/scm-exception.c: Likewise.
2653 * guile/scm-gsmob.c: Likewise.
2654 * guile/scm-lazy-string.c: Likewise.
2655 * guile/scm-math.c: Likewise.
2656 * guile/scm-pretty-print.c: Likewise.
2657 * guile/scm-safe-call.c: Likewise.
2658 * guile/scm-utils.c: Likewise.
2659 * guile/scm-value.c: Likewise.
2660 * h8300-tdep.c: Likewise.
2661 * hppa-hpux-nat.c: Likewise.
2662 * hppa-tdep.c: Likewise.
2663 * hppanbsd-tdep.c: Likewise.
2664 * hppaobsd-tdep.c: Likewise.
2665 * i386-darwin-nat.c: Likewise.
2666 * i386-darwin-tdep.c: Likewise.
2667 * i386-nto-tdep.c: Likewise.
2668 * i386-tdep.c: Likewise.
2669 * i386bsd-nat.c: Likewise.
2670 * i386fbsd-tdep.c: Likewise.
2671 * i386gnu-nat.c: Likewise.
2672 * i386nbsd-tdep.c: Likewise.
2673 * i386obsd-tdep.c: Likewise.
2674 * i387-tdep.c: Likewise.
2675 * ia64-libunwind-tdep.c: Likewise.
2676 * ia64-tdep.c: Likewise.
2677 * inf-ptrace.c: Likewise.
2678 * inf-ttrace.c: Likewise.
2679 * infcall.c: Likewise.
2680 * infcmd.c: Likewise.
2681 * infrun.c: Likewise.
2682 * inline-frame.c: Likewise.
2683 * interps.c: Likewise.
2684 * jv-lang.c: Likewise.
2685 * jv-typeprint.c: Likewise.
2686 * linux-fork.c: Likewise.
2687 * linux-nat.c: Likewise.
2688 * linux-thread-db.c: Likewise.
2689 * m32c-tdep.c: Likewise.
2690 * m32r-linux-nat.c: Likewise.
2691 * m32r-tdep.c: Likewise.
2692 * m68k-tdep.c: Likewise.
2693 * m68kbsd-nat.c: Likewise.
2694 * m68kbsd-tdep.c: Likewise.
2695 * m88k-tdep.c: Likewise.
2696 * machoread.c: Likewise.
2697 * macroexp.c: Likewise.
2698 * macrotab.c: Likewise.
2699 * maint.c: Likewise.
2700 * mdebugread.c: Likewise.
2701 * memory-map.c: Likewise.
2702 * mep-tdep.c: Likewise.
2703 * mi/mi-common.c: Likewise.
2704 * microblaze-tdep.c: Likewise.
2705 * mingw-hdep.c: Likewise.
2706 * mips-linux-nat.c: Likewise.
2707 * mips-linux-tdep.c: Likewise.
2708 * mips-tdep.c: Likewise.
2709 * mips64obsd-tdep.c: Likewise.
2710 * mipsnbsd-tdep.c: Likewise.
2711 * mn10300-linux-tdep.c: Likewise.
2712 * mn10300-tdep.c: Likewise.
2713 * moxie-tdep.c: Likewise.
2714 * mt-tdep.c: Likewise.
2715 * nat/linux-btrace.c: Likewise.
2716 * nat/linux-osdata.c: Likewise.
2717 * nat/linux-ptrace.c: Likewise.
2718 * nat/mips-linux-watch.c: Likewise.
2719 * nios2-linux-tdep.c: Likewise.
2720 * nios2-tdep.c: Likewise.
2721 * objc-lang.c: Likewise.
2722 * objfiles.c: Likewise.
2723 * obsd-nat.c: Likewise.
2724 * opencl-lang.c: Likewise.
2725 * osabi.c: Likewise.
2726 * parse.c: Likewise.
2727 * ppc-linux-nat.c: Likewise.
2728 * ppc-sysv-tdep.c: Likewise.
2729 * ppcfbsd-nat.c: Likewise.
2730 * ppcfbsd-tdep.c: Likewise.
2731 * ppcnbsd-nat.c: Likewise.
2732 * ppcnbsd-tdep.c: Likewise.
2733 * ppcobsd-nat.c: Likewise.
2734 * ppcobsd-tdep.c: Likewise.
2735 * printcmd.c: Likewise.
2736 * procfs.c: Likewise.
2737 * prologue-value.c: Likewise.
2738 * psymtab.c: Likewise.
2739 * python/py-lazy-string.c: Likewise.
2740 * python/py-value.c: Likewise.
2741 * regcache.c: Likewise.
2742 * reggroups.c: Likewise.
2743 * registry.c: Likewise.
2744 * remote-sim.c: Likewise.
2745 * remote.c: Likewise.
2746 * rs6000-aix-tdep.c: Likewise.
2747 * rs6000-tdep.c: Likewise.
2748 * s390-linux-tdep.c: Likewise.
2749 * score-tdep.c: Likewise.
2750 * ser-base.c: Likewise.
2751 * ser-mingw.c: Likewise.
2752 * sh-tdep.c: Likewise.
2753 * sh64-tdep.c: Likewise.
2754 * solib-darwin.c: Likewise.
2755 * solib-spu.c: Likewise.
2756 * solib-svr4.c: Likewise.
2757 * source.c: Likewise.
2758 * sparc-nat.c: Likewise.
2759 * sparc-sol2-tdep.c: Likewise.
2760 * sparc-tdep.c: Likewise.
2761 * sparc64-sol2-tdep.c: Likewise.
2762 * sparc64-tdep.c: Likewise.
2763 * sparc64fbsd-tdep.c: Likewise.
2764 * sparc64nbsd-tdep.c: Likewise.
2765 * sparc64obsd-tdep.c: Likewise.
2766 * sparcnbsd-tdep.c: Likewise.
2767 * sparcobsd-tdep.c: Likewise.
2768 * spu-multiarch.c: Likewise.
2769 * spu-tdep.c: Likewise.
2770 * stabsread.c: Likewise.
2771 * stack.c: Likewise.
2772 * symfile.c: Likewise.
2773 * symtab.c: Likewise.
2774 * target-descriptions.c: Likewise.
2775 * target-memory.c: Likewise.
2776 * target.c: Likewise.
2777 * tic6x-linux-tdep.c: Likewise.
2778 * tic6x-tdep.c: Likewise.
2779 * tilegx-linux-nat.c: Likewise.
2780 * tilegx-tdep.c: Likewise.
2782 * tramp-frame.c: Likewise.
2783 * tui/tui-out.c: Likewise.
2784 * tui/tui-winsource.c: Likewise.
2785 * ui-out.c: Likewise.
2786 * user-regs.c: Likewise.
2787 * utils.c: Likewise.
2788 * v850-tdep.c: Likewise.
2789 * valops.c: Likewise.
2790 * value.c: Likewise.
2791 * varobj.c: Likewise.
2792 * vax-nat.c: Likewise.
2793 * xml-syscall.c: Likewise.
2794 * xml-tdesc.c: Likewise.
2795 * xstormy16-tdep.c: Likewise.
2796 * xtensa-linux-nat.c: Likewise.
2797 * xtensa-tdep.c: Likewise.
2799 2014-08-07 Gary Benson <gbenson@redhat.com>
2801 * common/common-defs.h: Include common-utils.h.
2802 * defs.h: Do not include common-utils.h.
2803 * common/gdb_assert.h: Likewise.
2804 * darwin-nat.h: Likewise.
2805 * nat/linux-btrace.c: Likewise.
2806 * target/waitstatus.h: Likewise.
2808 2014-08-07 Gary Benson <gbenson@redhat.com>
2810 * common/common-defs.h: Include ptid.h.
2811 * defs.h: Do not include ptid.h.
2812 * inferior.h: Likewise.
2813 * infrun.h: Likewise.
2814 * nat/linux-btrace.h: Likewise.
2815 * nat/linux-osdata.h: Likewise.
2816 * target/waitstatus.h: Likewise.
2818 2014-08-07 Gary Benson <gbenson@redhat.com>
2820 * common/common-defs.h: Include gdb_locale.h.
2821 * defs.h: Do not include gdb_locale.h.
2823 2014-08-07 Gary Benson <gbenson@redhat.com>
2825 * common/common-defs.h: Include gdb/signals.h.
2826 * defs.h: Do not include gdb/signals.h.
2828 2014-08-07 Gary Benson <gbenson@redhat.com>
2830 * common/common-defs.h: Include pathmax.h.
2831 * defs.h: Do not include pathmax.h.
2833 2014-08-07 Gary Benson <gbenson@redhat.com>
2835 * common/common-defs.h: Include libiberty.h.
2836 * defs.h: Do not include libiberty.h.
2837 * common/queue.h: Likewise.
2838 * cp-name-parser.y: Likewise.
2839 * mi/mi-cmd-catch.c: Likewise.
2840 * python/python.c: Likewise.
2842 2014-08-07 Gary Benson <gbenson@redhat.com>
2844 * common/common-defs.h: Include ansidecl.h.
2845 * defs.h: Do not include ansidecl.h.
2846 * common/buffer.h: Likewise.
2847 * common/common-utils.h: Likewise.
2849 2014-08-07 Gary Benson <gbenson@redhat.com>
2851 * common/common-defs.h: Include stddef.h.
2852 * defs.h: Do not include stddef.h.
2853 * common/common-utils.h: Likewise.
2854 * amd64fbsd-nat.c: Likewise.
2855 * bcache.c: Likewise.
2856 * charset.c: Likewise.
2857 * common/buffer.h: Likewise.
2858 * common/vec.h: Likewise.
2859 * i386bsd-nat.c: Likewise.
2860 * nat/linux-btrace.h: Likewise.
2861 * ppcfbsd-nat.c: Likewise.
2862 * ppcnbsd-tdep.h: Likewise.
2863 * ppcobsd-nat.c: Likewise.
2864 * ppcobsd-tdep.h: Likewise.
2865 * python/py-gdb-readline.c: Likewise.
2867 2014-08-07 Gary Benson <gbenson@redhat.com>
2869 * common/common-defs.h: Include stdarg.h.
2870 * defs.h: Do not include stdarg.h.
2871 * ada-lang.c: Likewise.
2872 * common/common-utils.h: Likewise.
2873 * guile/scm-string.c: Likewise.
2874 * guile/scm-utils.c: Likewise.
2875 * m32c-tdep.c: Likewise.
2877 2014-08-07 Gary Benson <gbenson@redhat.com>
2879 * common/common-defs.h: Include stdlib.h.
2880 * defs.h: Do not include stdlib.h.
2881 * addrmap.c: Likewise.
2882 * bcache.c: Likewise.
2883 * common/buffer.c: Likewise.
2884 * common/common-utils.c: Likewise.
2885 * cp-name-parser.y: Likewise.
2886 * go32-nat.c: Likewise.
2887 * mn10300-linux-tdep.c: Likewise.
2888 * nat/linux-osdata.c: Likewise.
2889 * tui/tui.c: Likewise.
2890 * windows-nat.c: Likewise.
2892 2014-08-07 Gary Benson <gbenson@redhat.com>
2894 * common/common-defs.h: Include stdio.h.
2895 * defs.h: Do not include stdio.h.
2896 * ada-lang.c: Likewise.
2897 * common/buffer.c: Likewise.
2898 * common/common-utils.c: Likewise.
2899 * cp-name-parser.y: Likewise.
2900 * gnu-nat.c: Likewise.
2901 * go32-nat.c: Likewise.
2902 * i386gnu-nat.c: Likewise.
2903 * proc-api.c: Likewise.
2904 * proc-events.c: Likewise.
2905 * proc-flags.c: Likewise.
2906 * proc-why.c: Likewise.
2907 * python/python-internal.h: Likewise.
2908 * target-memory.c: Likewise.
2909 * tui/tui-io.c: Likewise.
2910 * tui/tui.c: Likewise.
2912 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2914 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2915 (scan_dyntag_auxv): Same.
2917 2014-08-06 Yao Qi <yao@codesourcery.com>
2919 * amd64-linux-nat.c: Remove duplicated include
2921 * i386-linux-nat.c: Likewise.
2923 2014-08-06 Yao Qi <yao@codesourcery.com>
2925 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2926 operand" with "Special opcode" in comments.
2928 2014-08-05 Gary Benson <gbenson@redhat.com>
2930 * interps.c (initialize_interps): Remove prototype.
2931 (interpreter_initialized): Remove static global.
2932 (interp_add): Do not call initialize_interps.
2933 (initialize_interps): Remove function.
2935 2014-08-05 Gary Benson <gbenson@redhat.com>
2937 * utils.c (vwarning): Remove spurious va_end.
2939 2014-08-05 Alan Modra <amodra@gmail.com>
2941 * charset.c (convert_between_encodings): Cast result of obstack_base.
2942 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2943 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2944 (read_unwind_info): Use size_t for some locals.
2945 * jit.c (finalize_symtab): Likewise.
2946 * utils.c (hashtab_obstack_allocate): Likewise.
2947 * symmisc.c (print_objfile_statistics): Update format strings.
2949 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2951 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2952 (Changes in GDB 7.8): ... here.
2954 2014-08-04 Tom Tromey <tromey@redhat.com>
2956 * target.c (set_targetdebug): New function.
2957 (initialize_targets): Pass set_targetdebug when creating "set
2960 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2962 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2963 if detecting a variable-sized field that is not the last field.
2964 Fix struct type length computation.
2966 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2968 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2971 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2973 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2974 Remove "+ 8" offset in computation of CHAIN_VMA.
2976 2014-07-31 Doug Evans <dje@google.com>
2978 * inflow.c (child_terminal_inferior): Add comment.
2979 (child_terminal_ours_for_output): Add comment.
2980 (child_terminal_ours): Add comment.
2981 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2982 (linux_nat_terminal_ours): Add comment.
2984 2014-07-31 Gary Benson <gbenson@redhat.com>
2986 * common/btrace-common.h: Do not include defs.h or server.h.
2987 * nat/mips-linux-watch.h: Likewise.
2988 * gdb-dlfcn.h: Do not include defs.h.
2989 * tracefile.h: Likewise.
2991 2014-07-30 Roland McGrath <mcgrathr@google.com>
2993 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2995 2014-07-30 Tom Tromey <tromey@redhat.com>
2997 * bsd-kvm.c (bsd_kvm_open): Constify.
2998 * corelow.c (core_open): Constify.
2999 * ctf.c (ctf_open): Constify.
3000 * dbug-rom.c (dbug_open): Constify.
3001 * exec.c (exec_open): Constify.
3002 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3003 * microblaze-rom.c (picobug_open): Constify.
3004 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3006 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3007 * record-btrace.c (record_btrace_open): Constify.
3008 * record-full.c (record_full_core_open_1, record_full_open_1)
3009 (record_full_open): Constify.
3010 * remote-m32r-sdi.c (m32r_open): Constify.
3011 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3012 (rockhopper_open, lsi_open): Constify.
3013 * remote-sim.c (gdbsim_open): Constify.
3014 * remote.c (remote_open, extended_remote_open, remote_open_1):
3016 * target.h (struct target_ops) <to_open>: Make "arg" const.
3017 * tracefile-tfile.c (tfile_open): Constify.
3019 2014-07-30 Tom Tromey <tromey@redhat.com>
3021 * breakpoint.c (map_breakpoint_numbers): Update.
3022 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3023 (get_number_const): New function.
3024 (get_number): Rewrite using get_number_const.
3025 (init_number_or_range): Make "string" const.
3026 (number_is_in_list): Make "list" const.
3027 * cli/cli-utils.h (get_number_const): Declare.
3028 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3029 (init_number_or_range, number_is_in_list): Update.
3030 * printcmd.c (map_display_numbers): Update.
3031 * value.c (value_from_history_ref): Constify.
3032 * value.h (value_from_history_ref): Update.
3034 2014-07-30 Tom Tromey <tromey@redhat.com>
3036 * corefile.c (hook_type, call_extra_exec_file_hooks)
3037 (specify_exec_file_hook): Constify.
3038 * exec.c (exec_file_attach): Make "filename" const.
3039 * gdbcore.h (deprecated_exec_file_display_hook)
3040 (specify_exec_file_hook, exec_file_attach): Constify.
3041 * main.c (captured_main): Use catch_command_errors_const.
3043 2014-07-30 Tom Tromey <tromey@redhat.com>
3045 * target.c (open_target): New function.
3046 (add_target_with_completer, add_deprecated_target_alias): Use
3047 set_cmd_sfunc, set_cmd_context.
3048 (debug_to_open): Remove.
3049 (setup_target_debug): Update.
3051 2014-07-30 Yao Qi <yao@codesourcery.com>
3053 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3055 * parse.c (exp_iterate): Update comments.
3057 2014-07-30 Gary Benson <gbenson@redhat.com>
3059 * common/common-defs.h: New file.
3060 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3061 * defs.h: Include common-defs.h.
3062 Do not include config.h or build-gnulib/config.h.
3064 2014-07-30 Gary Benson <gbenson@redhat.com>
3066 * common/common-utils.h: Do not include config.h.
3067 * nat/linux-btrace.h: Likewise.
3069 2014-07-30 Gary Benson <gbenson@redhat.com>
3071 * btrace.c: Include defs.h.
3072 * common/ptid.c: Include defs.h or server.h as appropriate.
3073 * nat/mips-linux-watch.c: Likewise.
3075 2014-07-29 Tom Tromey <tromey@redhat.com>
3077 * target.c (target_is_pushed): Simplify.
3079 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3083 2014-07-29 Yao Qi <yao@codesourcery.com>
3086 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3088 2014-07-28 Doug Evans <xdje42@gmail.com>
3091 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3092 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3095 2014-07-28 Will Newton <will.newton@linaro.org>
3097 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3098 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3099 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3100 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3101 (THUMB2_EABI_SYSCALL): Likewise.
3102 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3104 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3105 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3107 2014-07-27 Doug Evans <xdje42@gmail.com>
3109 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3111 2014-07-27 Doug Evans <xdje42@gmail.com>
3113 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3115 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3116 Doug Evans <xdje42@gmail.com>
3119 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3120 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3121 * configure.ac: Try to use guild to compile an scm file, if it fails
3122 then disable guile support.
3123 * configure: Regenerate.
3124 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3126 (GUILE_COMPILED_FILES): New variable.
3127 (GUILE_FILES) Update.
3128 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3129 (stamp-guile): Compile scm files.
3130 * guile/guile.c (boot_guile_support): New function.
3131 (standard_throw_args_p): New function.
3132 (print_standard_throw_error, print_throw_error): New functions.
3133 (handle_boot_error): New function.
3134 (initialize_scheme_side): Rewrite to call boot_guile_support.
3135 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3136 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3138 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3139 Doug Evans <xdje42@gmail.com>
3142 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3143 * guile/lib/gdb/support.scm: New file.
3144 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3145 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3147 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3149 (%assert-type): Ditto, and renamed to assert-type.
3150 (%exception-print-style): Delete.
3152 2014-07-26 Doug Evans <xdje42@gmail.com>
3155 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3156 * configure: Regenerate.
3157 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3159 (PYTHON_FILES): New variable.
3160 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3161 (GUILE_FILES): New variable.
3162 (stamp-python, install-python, uninstall-python): Handle empty
3164 (stamp-guile, install-guile, uninstall-guile): Ditto.
3166 2014-07-26 Doug Evans <xdje42@gmail.com>
3169 * guile/lib/gdb.scm (pretty-printers): Export.
3170 (set-pretty-printers!): Export.
3171 * guile/lib/gdb/printing.scm (gdb module): Update.
3172 (prepend-pretty-printer!, append-pretty-printer!): Update.
3173 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3174 (pretty_printer_list_var): Delete.
3175 (pretty_printer_list): New static global.
3176 (gdbscm_pretty_printers): New function.
3177 (gdbscm_set_pretty_printers_x): New function.
3178 (ppscm_find_pretty_printer_from_gdb): Update.
3179 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3180 (gdbscm_initialize_pretty_printers): Update.
3182 2014-07-26 Doug Evans <xdje42@gmail.com>
3185 * configure.ac: Add check for header gc/gc.h.
3186 Add check for function setenv.
3187 * configure: Regenerate.
3188 * config.in: Regenerate.
3189 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3191 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3193 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3194 variation in gdbarch matching.
3196 2014-07-25 Tom Tromey <tromey@redhat.com>
3198 * exec.c (using_exec_ops): Remove.
3199 (exec_close_1): Update. Remove extraneous block, reindent.
3200 (add_target_sections): Use target_is_pushed.
3202 2014-07-25 Pedro Alves <palves@redhat.com>
3204 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3205 * monitor.c (monitor_create_inferior): Likewise.
3206 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3207 * remote-sim.c (gdbsim_create_inferior): Likewise.
3208 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3209 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3210 * windows-nat.c (do_initial_windows_stuff): Likewise.
3212 2014-07-25 Pedro Alves <palves@redhat.com>
3214 * NEWS: Mention signal passing and "signal" command changes.
3215 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3217 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3219 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3220 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3221 (jump_command): Adjust clear_proceed_status call.
3222 (signal_command): Warn if other thread that are resumed have
3223 signals that will be delivered. Adjust clear_proceed_status call.
3224 (until_next_command, finish_command)
3225 (proceed_after_attach_callback, attach_command_post_wait)
3226 (attach_command): Adjust clear_proceed_status call.
3227 * infrun.c (proceed_after_vfork_done): Likewise.
3228 (proceed_after_attach_callback): Adjust comment.
3229 (clear_proceed_status_thread): Clear stop_signal if not in pass
3231 (clear_proceed_status_callback): Delete.
3232 (clear_proceed_status): New 'step' parameter. Only clear the
3233 proceed status of threads the command being prepared is about to
3235 (proceed): If passed in an explicit signal, override stop_signal
3236 with it. Don't pass the last stop signal to the thread we're
3238 (init_wait_for_inferior): Adjust clear_proceed_status call.
3239 (switch_back_to_stepped_thread): Clear the signal if it should not
3241 * infrun.h (clear_proceed_status): New 'step' parameter.
3242 (user_visible_resume_ptid): Add comment.
3243 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3244 signal is in pass state.
3245 * remote.c (append_pending_thread_resumptions): Likewise.
3246 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3248 2014-07-25 Tom Tromey <tromey@redhat.com>
3250 * target.h (target_stopped_data_address)
3251 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3254 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3256 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3258 (avr_pointer_to_address): Likewise.
3260 2014-07-24 Tom Tromey <tromey@redhat.com>
3262 * monitor.c (compile_pattern): Update.
3263 * target.h (struct target_ops) <to_shortname, to_longname,
3266 2014-07-24 Tom Tromey <tromey@redhat.com>
3268 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3269 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3270 (add_info_alias, add_com): Make "doc" const.
3271 (print_doc_line): Make "str" const.
3272 (delete_cmd): Update.
3273 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3274 (print_doc_line): Update.
3275 * cli/cli-script.c (document_command): Update.
3276 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3277 (add_com, add_info, add_info_alias): Update.
3278 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3279 * python/py-cmd.c (cmdpy_destroyer): Update.
3281 2014-07-24 Tom Tromey <tromey@redhat.com>
3283 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3284 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3285 (help_cmd_list): Constify.
3286 (lookup_cmd): Update.
3287 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3289 (help_cmd_list, apropos_cmd): Update.
3290 * cli/cli-script.c (show_user): Update.
3291 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3292 * cli/cli-setshow.h (cmd_show_list): Update.
3293 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3294 (cmd_show_list): Update.
3295 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3296 * python/py-cmd.c (cmdpy_destroyer): Update.
3298 2014-07-24 Tom Tromey <tromey@redhat.com>
3300 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3301 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3303 * command.h (deprecate_cmd): Update.
3304 * maint.c (maintenance_do_deprecate): Add casts.
3306 2014-07-24 Tom Tromey <tromey@redhat.com>
3308 * cli/cli-decode.c (help_cmd): Make parameter "const".
3309 * cli/cli-decode.h (help_cmd): Update.
3311 2014-07-24 Tom Tromey <tromey@redhat.com>
3313 * stack.c (up_silently_base, down_silently_base): Make argument
3316 2014-07-24 Tom Tromey <tromey@redhat.com>
3318 * solib.c (solib_add): Make "pattern" const.
3319 * solib.h (solib_add): Update.
3321 2014-07-24 Tom Tromey <tromey@redhat.com>
3323 * remote.c (remote_serial_open, print_packet, putpkt)
3324 (putpkt_binary): Constify.
3325 * remote.h (putpkt): Update.
3327 2014-07-24 Tom Tromey <tromey@redhat.com>
3329 * monitor.c (monitor_open): Make "args" const.
3330 * monitor.h (monitor_open): Update.
3332 2014-07-24 Tom Tromey <tromey@redhat.com>
3334 * maint.c (match_bfd_flags): Make "string" const.
3335 (print_bfd_section_info): Remove casts.
3336 (print_objfile_section_info): Make "string" const.
3338 2014-07-24 Tom Tromey <tromey@redhat.com>
3340 * inf-child.c (inf_child_open_target): Make "arg" const.
3341 * inf-child.h (inf_child_open_target): Update.
3343 2014-07-24 Tom Tromey <tromey@redhat.com>
3345 * environ.c (unset_in_environ): Make "var" const.
3346 * environ.h (unset_in_environ): Update.
3348 2014-07-24 Tom Tromey <tromey@redhat.com>
3350 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3352 (scan_filename_with_cleanup): Likewise.
3353 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3354 Make arguments const.
3355 (restore_command): Update.
3357 2014-07-24 Pedro Alves <palves@redhat.com>
3359 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3361 2014-07-24 Tom Tromey <tromey@redhat.com>
3362 Gary Benson <gbenson@redhat.com>
3364 * nat/linux-ptrace.c (additional_flags): New global.
3365 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3366 additional_flags; don't check GDBSERVER.
3367 (linux_ptrace_set_additional_flags): New function.
3368 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3370 * linux-nat.c (_initialize_linux_nat): Call
3371 linux_ptrace_set_additional_flags.
3373 2014-07-24 Tom Tromey <tromey@redhat.com>
3375 * make-target-delegates (munge_type, write_debugmethod): New
3377 (debug_names): New global.
3378 ($TARGET_DEBUG_PRINTER): New global.
3379 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3381 Write debug methods. Generate init_debug_target.
3382 * target-debug.h: New file.
3383 * target-delegates.c: Rebuild.
3384 * target.c: Include target-debug.h.
3385 (debug_target): Hoist definition.
3386 (target_kill, target_get_section_table, target_memory_map)
3387 (target_flash_erase, target_flash_done, target_detach)
3388 (target_disconnect, target_wait, target_resume)
3389 (target_pass_signals, target_program_signals, target_follow_fork)
3390 (target_mourn_inferior, target_search_memory)
3391 (target_thread_address_space, target_close)
3392 (target_find_new_threads, target_core_of_thread)
3393 (target_verify_memory, target_insert_mask_watchpoint)
3394 (target_remove_mask_watchpoint): Remove targetdebug code.
3395 (debug_to_post_attach, debug_to_prepare_to_store)
3396 (debug_to_files_info, debug_to_insert_breakpoint)
3397 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3398 (debug_to_region_ok_for_hw_watchpoint)
3399 (debug_to_can_accel_watchpoint_condition)
3400 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3401 (debug_to_watchpoint_addr_within_range)
3402 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3403 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3404 (debug_to_terminal_init, debug_to_terminal_inferior)
3405 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3406 (debug_to_terminal_save_ours, debug_to_terminal_info)
3407 (debug_to_load, debug_to_post_startup_inferior)
3408 (debug_to_insert_fork_catchpoint)
3409 (debug_to_remove_fork_catchpoint)
3410 (debug_to_insert_vfork_catchpoint)
3411 (debug_to_remove_vfork_catchpoint)
3412 (debug_to_insert_exec_catchpoint)
3413 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3414 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3415 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3416 (setup_target_debug): Call init_debug_target.
3417 * target.h (TARGET_DEBUG_PRINTER): New macro.
3418 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3419 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3421 2014-07-24 Gary Benson <gbenson@redhat.com>
3423 * exceptions.h (throw_vfatal): Renamed to...
3424 (throw_vquit): New declaration.
3425 (throw_quit): Likewise.
3426 * exceptions.c (throw_vfatal): Renamed to...
3427 (throw_vquit): New function.
3428 (throw_quit): Likewise.
3429 (throw_error): Call throw_verror rather than throw_it.
3430 * utils.h (vfatal): Removed.
3432 * utils.c (vfatal): Removed.
3434 (internal_verror): Replaced call to fatal with call to throw_quit.
3435 (quit): Replaced calls to fatal with calls to throw_quit.
3437 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3439 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3442 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3444 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3445 less than zero in conditional expression.
3447 2014-07-23 Tom Tromey <tromey@redhat.com>
3449 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3450 ($INTRO_PART): Don't match whitespace.
3451 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3453 ($METHOD): Add $METHOD_TRAILER.
3455 (scan_target_h): New sub.
3456 Change main loop not to collect state.
3457 * target-delegates.c: Rebuild.
3459 2014-07-23 Gary Benson <gbenson@redhat.com>
3461 * cp-support.c (gdb_demangle): Fix build on systems without
3464 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3466 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3467 for reference entry value target data value.
3469 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3471 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3472 value_available_contents_eq.
3474 2014-07-22 Pedro Alves <palves@redhat.com>
3476 * value.c (allocate_optimized_out_value): Don't mark value as
3479 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3481 * MAINTAINERS (Write After Approval): Update my email address.
3483 2014-07-20 Doug Evans <dje@google.com>
3486 * remote.c (putpkt_binary): Add text to error message.
3488 2014-07-20 Yao Qi <yao@codesourcery.com>
3490 * eval.c: Remove "Chill" from comments.
3491 * gdbtypes.h: Likewise.
3492 * symtab.h: Likewise.
3494 2014-07-20 Yao Qi <yao@codesourcery.com>
3496 * std-operator.def: Update comments to TERNOP_SLICE.
3498 2014-07-20 Yao Qi <yao@codesourcery.com>
3500 * std-operator.def: Remove BINOP_RANGE.
3501 * breakpoint.c (watchpoint_exp_is_const): Update.
3502 * expprint.c (dump_subexp_body_standard): Likewise.
3503 * eval.c (init_array_element): Remove dead code.
3504 (evaluate_subexp_standard): Likewise.
3506 2014-07-20 Yao Qi <yao@codesourcery.com>
3508 * std-operator.def: Remove BINOP_IN.
3509 * breakpoint.c (watchpoint_exp_is_const): Update.
3510 * eval.c (evaluate_subexp_standard): Likewise.
3511 * expprint.c (dump_subexp_body_standard): Likewise.
3513 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3515 * microblaze-tdep.c (microblaze_register_names): Add
3516 the rshr and rslr register names.
3517 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3518 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3519 Use of tdesc_numbered_register. Use of
3520 microblaze_register_g_packet_guesses. Use of
3521 tdesc_use_registers. Use of set_gdbarch_register_type.
3522 (microblaze_register_g_packet_guesses): New.
3523 * microblaze-tdep.h (microblaze_reg_num): Add
3524 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3525 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3526 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3527 * features/microblaze-core.xml: New file.
3528 * features/microblaze-stack-protect.xml: New file.
3529 * features/microblaze-with-stack-protect.c: New file.
3530 * features/microblaze-with-stack-protect.xml: New file.
3531 * features/microblaze.xml: New file.
3532 * features/microblaze.c: New file.
3533 * features/Makefile (microblaze-with-stack-protect): Add
3534 microblaze-with-stack-protect microblaze and microblaze-expedite.
3535 * regformats/microblaze-with-stack-protect.dat: New file.
3536 * regformats/microblaze.dat: New file.
3537 * doc/gdb.texinfo (MicroBlaze Features): Added.
3539 2014-07-18 Tom Tromey <tromey@redhat.com>
3541 * exec.c (exec_ops): Now static.
3542 * exec.h (exec_ops): Don't declare.
3544 2014-07-18 Tom Tromey <tromey@redhat.com>
3546 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3547 to find_target_beneath.
3548 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3549 find_target_beneath.
3550 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3552 2014-07-18 Tom Tromey <tromey@redhat.com>
3555 * utils.c (quit): Use target_supports_terminal_ours.
3556 * target.h (target_supports_terminal_ours): Declare.
3557 * target.c (target_supports_delete_record): Don't check
3558 to_delete_record against NULL.
3559 (target_supports_terminal_ours): New function.
3561 2014-07-18 Tom Tromey <tromey@redhat.com>
3564 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3565 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3566 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3567 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3568 * windows-nat.c (windows_xfer_partial): Always delegate.
3569 * record-btrace.c (record_btrace_xfer_partial): Simplify
3571 (record_btrace_fetch_registers, record_btrace_store_registers)
3572 (record_btrace_prepare_to_store, record_btrace_resume)
3573 (record_btrace_wait, record_btrace_find_new_threads)
3574 (record_btrace_thread_alive): Likewise.
3575 * procfs.c (procfs_xfer_partial): Always delegate.
3576 * corelow.c (core_xfer_partial): Always delegate.
3577 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3579 2014-07-18 Tom Tromey <tromey@redhat.com>
3581 * exec.c (exec_make_note_section): Move earlier.
3583 2014-07-17 Doug Evans <dje@google.com>
3586 * maint.c (count_symtabs_and_blocks): Handle NULL
3587 current_program_space.
3588 (report_command_stats): Check global enabled flag in addition to
3589 recorded enabled flag.
3590 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3592 2014-07-16 Pedro Alves <palves@redhat.com>
3594 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3596 2014-07-16 Tom Tromey <tromey@redhat.com>
3598 * target.h (struct target_ops) <to_delete_record>: Reformat
3601 2014-07-16 Tom Tromey <tromey@redhat.com>
3603 * target-delegates.c: Rebuild.
3605 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3607 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3608 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3609 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3610 (avr_pointer_to_address): Likewise.
3611 (avr_address_class_type_flags): New function.
3612 (avr_address_class_type_flags_to_name): Likewise.
3613 (avr_address_class_name_to_type_flags): Likewise.
3614 (avr_gdbarch_init): Set address_class_type_flags,
3615 address_class_type_flags_to_name and
3616 address_class_name_to_type_flags.
3618 2014-07-15 Pedro Alves <palves@redhat.com>
3620 * linux-nat.c (kill_callback): Save errno and work with saved
3623 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3625 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3627 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3629 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3630 breakpoint support correctly.
3632 2014-07-14 Pedro Alves <palves@redhat.com>
3634 * utils.c (prompt_for_continue): Call target_terminal_ours.
3636 2014-07-14 Pedro Alves <palves@redhat.com>
3638 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3639 catch_errors. Don't re-enable stdin or notify observers where,
3641 (fetch_inferior_event_wrapper): Delete.
3643 2014-07-14 Pedro Alves <palves@redhat.com>
3646 * top.c: Include "inf-loop.h".
3647 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3649 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3651 (gdb_readline_wrapper): Store whether the target is async, and
3654 2014-07-14 Pedro Alves <palves@redhat.com>
3657 * top.c (gdb_readline_wrapper_line): Tweak comment.
3658 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3659 the input handler callback.
3661 2014-07-14 Pedro Alves <palves@redhat.com>
3664 * main.c: Include event-top.h.
3665 (handle_command_errors): New function.
3666 (catch_command_errors, catch_command_errors_const): Use it.
3668 2014-07-14 Pedro Alves <palves@redhat.com>
3670 * exceptions.c (catch_command_errors, catch_command_errors_const):
3672 * exceptions.h (catch_command_errors_ftype)
3673 (catch_command_errors_const_ftype): Moved to main.c.
3674 (catch_command_errors, catch_command_errors_const): Delete
3676 * main.c (catch_command_errors_ftype)
3677 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3678 (catch_command_errors, catch_command_errors_const)): Moved here
3679 from exceptions.c and make static.
3681 2014-07-14 Pedro Alves <palves@redhat.com>
3683 * exceptions.c (print_any_exception): Delete.
3684 (catch_exceptions_with_msg): Use exception_print instead of
3685 print_any_exception.
3686 (catch_errors): Use exception_fprintf instead of
3687 print_any_exception.
3688 (catch_command_errors, catch_command_errors_const): Use
3689 exception_print instead of print_any_exception.
3691 2014-07-14 Pedro Alves <palves@redhat.com>
3693 * infcall.c (run_inferior_call): Set 'sync_execution' while
3694 running the inferior call.
3696 2014-07-14 Pedro Alves <palves@redhat.com>
3698 * value.c (value_contents_equal): Delete function.
3699 * value.h (value_contents_equal): Delete declaration.
3701 2014-07-14 Tom Tromey <tromey@redhat.com>
3704 * gdbtypes.c (is_dynamic_type_internal): New function, from
3706 (is_dynamic_type): Rewrite.
3707 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3708 (resolve_dynamic_struct): Likewise.
3709 (resolve_dynamic_type_internal): New function, from
3710 resolve_dynamic_type.
3711 (resolve_dynamic_type): Rewrite.
3713 2014-07-14 Tom Tromey <tromey@redhat.com>
3715 * target.c (target_require_runnable): Also check record_stratum.
3718 2014-07-11 Yao Qi <yao@codesourcery.com>
3720 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3721 thumb_instruction_restores_sp return true.
3723 2014-07-11 Yao Qi <yao@codesourcery.com>
3725 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3726 (thumb_in_function_epilogue_p): Call
3727 thumb_instruction_restores_sp.
3729 2014-07-11 Yao Qi <yao@codesourcery.com>
3731 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3733 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3735 2014-07-11 Gary Benson <gbenson@redhat.com>
3737 * amd64-linux-nat.c (gdbcore.h): Remove include.
3738 (regset.h): Likewise.
3739 (nat/linux-btrace.h): Likewise.
3740 (btrace.h): Likewise.
3741 (gdb_assert.h): Likewise.
3742 (string.h): Likewise.
3743 (sys/uio.h): Likewise.
3744 (sys/debugreg.h): Likewise.
3745 (sys/syscall.h): Likewise.
3746 (sys/procfs.h): Likewise.
3747 (sys/user.h): Likewise.
3748 (asm/ptrace.h): Likewise.
3749 (i386-nat.h): Likewise.
3750 * i386-linux-nat.c (i386-nat.h): Likewise.
3751 (regset.h): Likewise.
3752 (target.h): Likewise.
3753 (linux-nat.h): Likewise.
3754 (nat/linux-btrace.h): Likewise.
3755 (btrace.h): Likewise.
3756 (gdb_assert.h): Likewise.
3757 (string.h): Likewise.
3758 (sys/uio.h): Likewise.
3759 (sys/user.h): Likewise.
3760 (sys/procfs.h): Likewise.
3761 (sys/reg.h): Likewise.
3762 (sys/debugreg.h): Likewise.
3763 (ORIG_EAX): Remove definition.
3765 2014-07-11 Gary Benson <gbenson@redhat.com>
3767 * i386-linux-nat.h: New file.
3768 * x86-linux-nat.h: Likewise.
3769 * x86-linux-nat.c: Likewise.
3770 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3771 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3772 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3773 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3774 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3775 (PTRACE_SETREGSET): Likewise.
3776 (arch_lwp_info): Now in x86-linux-nat.c.
3777 (have_ptrace_getregset): Now in x86-linux-nat.h.
3778 (x86_linux_dr_get): Now in x86-linux-nat.c.
3779 (x86_linux_dr_set): Likewise.
3780 (x86_linux_dr_get_addr): Likewise.
3781 (x86_linux_dr_get_control): Likewise.
3782 (x86_linux_dr_get_status): Likewise.
3783 (update_debug_registers_callback): Likewise.
3784 (x86_linux_dr_set_control): Likewise.
3785 (x86_linux_dr_set_addr): Likewise.
3786 (x86_linux_prepare_to_resume): Likewise.
3787 (x86_linux_new_thread): Likewise.
3788 (x86_linux_new_fork): Likewise.
3789 (x86_linux_get_thread_area): Likewise.
3790 (super_post_startup_inferior): Likewise.
3791 (x86_linux_child_post_startup_inferior): Likewise.
3792 (AMD64_LINUX_USER64_CS): Likewise.
3793 (AMD64_LINUX_X32_DS): Likewise.
3794 (x86_linux_read_description): Likewise.
3795 (x86_linux_enable_btrace): Likewise.
3796 (x86_linux_disable_btrace): Likewise.
3797 (x86_linux_teardown_btrace): Likewise.
3798 (x86_linux_read_btrace): Likewise.
3799 (x86_linux_create_target): Likewise.
3800 (x86_linux_add_target): Likewise.
3801 * i386-linux-nat.c (x86-linux-nat.h): New include.
3802 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3803 (PTRACE_SETREGSET): Likewise.
3804 (arch_lwp_info): Now in x86-linux-nat.c.
3805 (have_ptrace_getregset): Now in x86-linux-nat.h.
3806 (x86_linux_dr_get): Now in x86-linux-nat.c.
3807 (x86_linux_dr_set): Likewise.
3808 (x86_linux_dr_get_addr): Likewise.
3809 (x86_linux_dr_get_control): Likewise.
3810 (x86_linux_dr_get_status): Likewise.
3811 (update_debug_registers_callback): Likewise.
3812 (x86_linux_dr_set_control): Likewise.
3813 (x86_linux_dr_set_addr): Likewise.
3814 (x86_linux_prepare_to_resume): Likewise.
3815 (x86_linux_new_thread): Likewise.
3816 (x86_linux_new_fork): Likewise.
3817 (x86_linux_get_thread_area): Likewise.
3818 (super_post_startup_inferior): Likewise.
3819 (x86_linux_child_post_startup_inferior): Likewise.
3820 (AMD64_LINUX_USER64_CS): Likewise.
3821 (AMD64_LINUX_X32_DS): Likewise.
3822 (x86_linux_read_description): Likewise.
3823 (x86_linux_enable_btrace): Likewise.
3824 (x86_linux_disable_btrace): Likewise.
3825 (x86_linux_teardown_btrace): Likewise.
3826 (x86_linux_read_btrace): Likewise.
3827 (x86_linux_create_target): Likewise.
3828 (x86_linux_add_target): Likewise.
3830 2014-07-11 Gary Benson <gbenson@redhat.com>
3832 * amd64-linux-nat.c: Comment and whitespace changes.
3833 * i386-linux-nat.c: Comment and whitespace changes.
3835 2014-07-11 Gary Benson <gbenson@redhat.com>
3837 * amd64-linux-nat.c (x86_linux_create_target): New function.
3838 (x86_linux_add_target): Likewise.
3839 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3840 * i386-linux-nat.c (x86_linux_create_target): New function.
3841 (x86_linux_add_target): Likewise.
3842 (_initialize_i386_linux_nat): Delegate to the above new functions.
3844 2014-07-11 Gary Benson <gbenson@redhat.com>
3846 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3847 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3848 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3849 (ps_get_thread_area): Delegate to the above.
3851 2014-07-11 Gary Benson <gbenson@redhat.com>
3853 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3854 x86_linux_read_description. All uses updated. amd64-specific
3855 code conditionalized. Conditionalized i386-specific code added.
3856 Redundant cast removed.
3857 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3858 x86_linux_read_description. All uses updated. i386-specific
3859 code conditionalized. Conditionalized amd64-specific code added.
3860 One sizeof replaced with the actual type it is describing.
3862 2014-07-11 Gary Benson <gbenson@redhat.com>
3864 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3865 x86_linux_dr_get. All uses updated.
3866 (amd64_linux_dr_set): Renamed to
3867 x86_linux_dr_set. All uses updated.
3868 (amd64_linux_dr_get_addr): Renamed to
3869 x86_linux_dr_get_addr. All uses updated.
3870 (amd64_linux_dr_get_control): Renamed to
3871 x86_linux_dr_get_control. All uses updated.
3872 (amd64_linux_dr_get_status): Renamed to
3873 x86_linux_dr_get_status. All uses updated.
3874 (amd64_linux_dr_set_control): Renamed to
3875 x86_linux_dr_set_control. All uses updated.
3876 (amd64_linux_dr_set_addr): Renamed to
3877 x86_linux_dr_set_addr. All uses updated.
3878 (amd64_linux_prepare_to_resume): Renamed to
3879 x86_linux_prepare_to_resume. All uses updated.
3880 (amd64_linux_new_thread): Renamed to
3881 x86_linux_new_thread. All uses updated.
3882 (amd64_linux_new_fork): Renamed to
3883 x86_linux_new_fork. All uses updated.
3884 (amd64_linux_child_post_startup_inferior): Renamed to
3885 x86_linux_child_post_startup_inferior. All uses updated.
3886 (amd64_linux_enable_btrace): Renamed to
3887 x86_linux_enable_btrace. All uses updated.
3888 (amd64_linux_disable_btrace): Renamed to
3889 x86_linux_disable_btrace. All uses updated.
3890 (amd64_linux_teardown_btrace): Renamed to
3891 x86_linux_teardown_btrace. All uses updated.
3892 (amd64_linux_read_btrace): Renamed to
3893 x86_linux_read_btrace. All uses updated.
3894 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3895 x86_linux_dr_get. All uses updated.
3896 (i386_linux_dr_set): Renamed to
3897 x86_linux_dr_set. All uses updated.
3898 (i386_linux_dr_get_addr): Renamed to
3899 x86_linux_dr_get_addr. All uses updated.
3900 (i386_linux_dr_get_control): Renamed to
3901 x86_linux_dr_get_control. All uses updated.
3902 (i386_linux_dr_get_status): Renamed to
3903 x86_linux_dr_get_status. All uses updated.
3904 (i386_linux_dr_set_control): Renamed to
3905 x86_linux_dr_set_control. All uses updated.
3906 (i386_linux_dr_set_addr): Renamed to
3907 x86_linux_dr_set_addr. All uses updated.
3908 (i386_linux_prepare_to_resume): Renamed to
3909 x86_linux_prepare_to_resume. All uses updated.
3910 (i386_linux_new_thread): Renamed to
3911 x86_linux_new_thread. All uses updated.
3912 (i386_linux_new_fork): Renamed to
3913 x86_linux_new_fork. All uses updated.
3914 (i386_linux_child_post_startup_inferior): Renamed to
3915 x86_linux_child_post_startup_inferior. All uses updated.
3916 (i386_linux_enable_btrace): Renamed to
3917 x86_linux_enable_btrace. All uses updated.
3918 (i386_linux_disable_btrace): Renamed to
3919 x86_linux_disable_btrace. All uses updated.
3920 (i386_linux_teardown_btrace): Renamed to
3921 x86_linux_teardown_btrace. All uses updated.
3922 (i386_linux_read_btrace): Renamed to
3923 x86_linux_read_btrace. All uses updated.
3925 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3927 * remote.c (extended_remote_post_attach): New function.
3928 (init_extended_remote_ops): Install it as to_post_attach method.
3930 2014-07-09 Pedro Alves <palves@redhat.com>
3932 * infcmd.c (attach_command_post_wait): Don't call
3933 target_terminal_inferior here.
3934 (attach_command): Call it here instead.
3936 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3938 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3940 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3941 from varobj.c, with additional checks.
3942 (c_varobj_ops): Fill in is_path_expr_parent field.
3943 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3944 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3946 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3948 (varobj_default_is_path_expr_parent): New function.
3949 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3950 (varobj_default_is_path_expr_parent): Declare new function.
3952 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3954 * infcmd.c (finish_backward): Turn internal error into normal error.
3956 2014-07-07 Pedro Alves <palves@redhat.com>
3959 * remote.c (async_handle_remote_sigint)
3960 (async_handle_remote_sigint_twice): Call
3961 gdb_call_async_signal_handler instead of
3962 mark_async_signal_handler.
3964 2014-07-07 Tom Tromey <tromey@redhat.com>
3966 * target-delegates.c: Rebuild.
3967 * target.c (target_info_record): Remove.
3968 * record.c (info_record_command): Unconditionally call
3970 * target.h (struct target_ops) <to_info_record>: Use
3971 TARGET_DEFAULT_IGNORE.
3972 (target_info_record): Remove.
3974 2014-07-07 Tom Tromey <tromey@redhat.com>
3976 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3977 TARGET_DEFAULT_NORETURN.
3978 * target.c (generic_tls_error): New function.
3979 (target_translate_tls_address): Don't search target stack.
3980 * target-delegates.c: Rebuild.
3981 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3983 * linux-thread-db.c (thread_db_get_thread_local_address):
3984 Unconditionally call beneath target.
3986 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3988 * cli/cli-logging.c (pop_output_files): Assign targerr to
3991 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3993 * MAINTAINERS (Write After Approval): Update my email address.
3995 2014-07-02 Gary Benson <gbenson@redhat.com>
3997 * proc-service.c (ps_xfer_memory): Update comment.
3998 (ps_pstop): Remove unused function.
3999 (ps_pcontinue): Likewise.
4000 (ps_lstop): Likewise.
4001 (ps_lcontinue): Likewise.
4002 (ps_lgetxregsize): Likewise.
4003 (ps_lgetxregs): Likewise.
4004 (ps_lsetxregs): Likewise.
4005 (ps_plog): Likewise.
4006 (ps_ptread): Likewise.
4007 (ps_ptwrite): Likewise.
4009 2014-07-01 Mark Wielaard <mjw@redhat.com>
4011 * dwarf2read.c (add_array_cv_type): New function.
4012 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4013 (read_tag_volatile_type): Likewise.
4015 2014-07-01 Tom Tromey <tromey@redhat.com>
4017 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4018 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4019 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4020 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4021 * command.h (cmd_cfunc_ftype): Move earlier.
4022 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4023 (add_com, add_info): Use cmd_cfunc_ftype.
4025 2014-06-30 Tom Tromey <tromey@redhat.com>
4027 * symtab.c (operator_chars): Make parameters and return type
4029 (file_matches): Make "files" const.
4030 (struct search_symbols_data) <files>: Now const.
4031 (search_symbols): Make "regexp" and "files" parameters const.
4033 (symtab_symbol_info): Remove cast.
4034 (rbreak_command): Update.
4035 * symtab.h (search_symbols): Update.
4037 2014-06-27 Yao Qi <yao@codesourcery.com>
4039 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4040 Change parameter type to 'struct thread_info *'. Caller
4042 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4044 * dummy-frame.c (struct dummy_frame_id): New.
4045 (dummy_frame_id_eq): New function.
4046 (struct dummy_frame) <id>: Change its type to 'struct
4048 (dummy_frame_push): Add parameter ptid and save it in
4050 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4052 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4054 (lookup_dummy_frame): Change parameter type to 'struct
4055 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4056 instead of frame_id_eq.
4057 (dummy_frame_pop): Add parameter ptid. Callers updated.
4058 Update comments. Compose dummy_frame_id and pass it to
4060 (dummy_frame_discard): Add parameter ptid.
4061 (dummy_frame_sniffer): Compose dummy_frame_id and call
4062 dummy_frame_id_eq instead of frame_id_eq.
4063 (fprint_dummy_frames): Print ptid.
4064 * dummy-frame.h: Remove comments.
4065 (dummy_frame_push): Add ptid in declaration.
4066 (dummy_frame_pop, dummy_frame_discard): Likewise.
4068 2014-06-26 Tom Tromey <tromey@redhat.com>
4070 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4071 * command.h (error_no_arg): Update.
4073 2014-06-26 Tom Tromey <tromey@redhat.com>
4075 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4076 (do_show_command): Make "arg" const.
4077 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4079 2014-06-26 Tom Tromey <tromey@redhat.com>
4081 * record-full.c (record_full_get_bookmark): Make "args" const.
4082 (record_full_goto_bookmark): Make "raw_bookmark" const.
4083 * record.c (record_goto): New function.
4084 (cmd_record_goto): Use it. Now static.
4085 * record.h (record_goto): Declare.
4086 (cmd_record_goto): Remove declaration.
4087 * target-delegates.c: Rebuild.
4088 * target.h (struct target_ops) <to_get_bookmark,
4089 to_goto_bookmark>: Make parameter const.
4091 2014-06-26 Tom Tromey <tromey@redhat.com>
4093 * defs.h (generic_load): Update.
4094 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4095 * monitor.c (monitor_load): Make "args" const.
4096 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4097 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4099 (mips_load): Make "file" const.
4100 * remote-sim.c (gdbsim_load): Make "args" const.
4101 * remote.c (remote_load): Make "name" const.
4102 * symfile.c (generic_load): Make "args" const.
4103 * target-delegates.c: Rebuild.
4104 * target.c (target_load): Make "arg" const.
4105 (debug_to_load): Make "args" const.
4106 * target.h (struct target_ops) <to_load>: Make parameter const.
4107 (target_load): Update.
4109 2014-06-26 Tom Tromey <tromey@redhat.com>
4112 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4113 (dwarf2_physname, read_partial_die)
4114 (guess_partial_die_structure_name, fixup_partial_die)
4115 (guess_full_die_structure_name, anonymous_struct_prefix)
4116 (dwarf2_name): Use per-BFD obstack.
4118 2014-06-26 Yao Qi <yao@codesourcery.com>
4120 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4121 dummyframe and this_id into inner block below.
4123 2014-06-26 Yao Qi <yao@codesourcery.com>
4125 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4126 with "signal_pass[0]" in the initialization of signal_pass.
4128 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4130 * record-btrace.c (record_btrace_generating_corefile)
4131 (record_btrace_prepare_to_generate_core)
4132 (record_btrace_done_generating_core): New.
4133 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4134 (record_btrace_store_registers, record_btrace_prepare_to_store):
4135 Forward request when generating a core file.
4136 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4137 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4138 to_done_generating_core.
4140 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4142 * target.h (target_ops) <to_prepare_to_generate_core>
4143 <to_done_generating_core>: New.
4144 (target_prepare_to_generate_core, target_done_generating_core): New.
4145 * target.c (target_prepare_to_generate_core)
4146 (target_done_generating_core): New.
4147 * target-delegates.c: Regenerate.
4148 * gcore.c: (write_gcore_file): Rename to ...
4149 (write_gcore_file_1): ...this.
4150 (write_gcore_file): Call target_prepare_to_generate_core
4151 and target_done_generating_core.
4153 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4155 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4156 * gcore.c (write_gcore_file): Free memory returned from
4157 make_corefile_notes.
4158 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4159 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4161 2014-06-24 Yao Qi <yao@codesourcery.com>
4163 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4164 (arm_linux_init_abi): Set skip_trampoline_code with
4165 gdbarch_skip_trampoline_code instead of
4166 find_solib_trampoline_target.
4168 2014-06-24 Yao Qi <yao@codesourcery.com>
4170 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4171 arm_skip_bx_reg returns non-zero.
4173 2014-06-24 Yao Qi <yao@codesourcery.com>
4175 * arm-tdep.c (arm_skip_bx_reg): New function.
4176 (arm_skip_stub): Call arm_skip_bx_reg.
4178 2014-06-23 Don Breazeal <donb@codesourcery.com>
4180 * MAINTAINERS: Add myself as write-after-approval maintainer.
4182 2014-06-23 Pedro Alves <palves@redhat.com>
4184 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4185 DR_CONTROL before setting DR0..DR3.
4186 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4187 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4188 bits of DR_CONTROL related to the debug register slot being
4189 disabled. If all slots are vacant, clear local slowdown as well,
4190 and assert DR_CONTROL is 0.
4192 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4194 * python/lib/gdb/command/xmethods.py
4195 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4196 current progspace only if the string "progspace" matches LOCUS_RE.
4198 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4200 Fix --with-system-readline with readline-6.3 patch 5.
4201 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4202 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4205 2014-06-20 Tom Tromey <tromey@redhat.com>
4207 * dwarf2read.c (dw2_get_real_path): Use correct type in
4209 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4211 2014-06-20 Gary Benson <gbenson@redhat.com>
4213 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4214 * common/glibc_thread_db.h: Likewise.
4215 * common/i386-cpuid.h: Likewise.
4216 * common/i386-gcc-cpuid.h: Likewise.
4217 * common/linux-btrace.h: Likewise.
4218 * common/linux-osdata.h: Likewise.
4219 * common/linux-procfs.h: Likewise.
4220 * common/linux-ptrace.h: Likewise.
4221 * common/mips-linux-watch.h: Likewise.
4222 * common/linux-btrace.c: Moved to nat.
4223 * common/linux-osdata.c: Likewise.
4224 * common/linux-procfs.c: Likewise.
4225 * common/linux-ptrace.c: Likewise.
4226 * common/mips-linux-watch.c: Likewise.
4227 * nat/gdb_thread_db.h: Moved from common.
4228 * nat/glibc_thread_db.h: Likewise.
4229 * nat/i386-cpuid.h: Likewise.
4230 * nat/i386-gcc-cpuid.h: Likewise.
4231 * nat/linux-btrace.c: Likewise.
4232 * nat/linux-btrace.h: Likewise.
4233 * nat/linux-osdata.c: Likewise.
4234 * nat/linux-osdata.h: Likewise.
4235 * nat/linux-procfs.c: Likewise.
4236 * nat/linux-procfs.h: Likewise.
4237 * nat/linux-ptrace.c: Likewise.
4238 * nat/linux-ptrace.h: Likewise.
4239 * nat/mips-linux-watch.c: Likewise.
4240 * nat/mips-linux-watch.h: Likewise.
4241 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4242 (object file files): Reordered.
4243 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4244 of glibc_thread_db.h.
4246 2014-06-20 Gary Benson <gbenson@redhat.com>
4248 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4249 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4250 (i386_dr_low): Likewise.
4251 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4252 (i386_dr_low_set_addr): Likewise.
4253 (i386_dr_low_get_addr): Likewise.
4254 (i386_dr_low_can_set_control): Likewise.
4255 (i386_dr_low_set_control): Likewise.
4256 (i386_dr_low_get_control): Likewise.
4257 (i386_dr_low_get_status): Likewise.
4258 (i386_get_debug_register_length): Likewise.
4259 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4260 (i386_dr_low): Likewise.
4261 * nat/i386-dregs.c (i386-low.h): Remove include.
4262 (i386-nat.h): Likewise.
4263 (nat/i386-dregs.h): New include.
4264 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4265 (i386_dr_low_set_addr): Likewise.
4266 (i386_dr_low_get_addr): Likewise.
4267 (i386_dr_low_can_set_control): Likewise.
4268 (i386_dr_low_set_control): Likewise.
4269 (i386_dr_low_get_control): Likewise.
4270 (i386_dr_low_get_status): Likewise.
4271 (i386_get_debug_register_length): Likewise.
4272 (debug_hw_points): Likewise.
4274 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4276 * Makefile.in (SFILES): Add d-exp.y.
4277 (YYFILES): Add d-exp.c.
4278 (YYOBJ): Add d-exp.o.
4279 (local-maintainer-clean): Delete d-exp.c.
4280 * d-exp.y: New file.
4281 * d-lang.h (d_parse): New declaration.
4282 (d_error): New declaration.
4283 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4284 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4285 PREC_ORDER operators.
4286 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4288 2014-06-19 Yao Qi <yao@codesourcery.com>
4290 * gdbthread.h (any_running): Remove the declaration.
4291 * thread.c (any_running): Remove.
4293 2014-06-19 Yao Qi <yao@codesourcery.com>
4295 * gdbthread.h (struct thread_info) <state>: Change its type to
4296 'enum thread_state'. Update comments.
4298 2014-06-19 Pedro Alves <palves@redhat.com>
4300 * gdbthread.h (ALL_THREADS): Delete.
4301 (ALL_NON_EXITED_THREADS): New macro.
4302 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4303 instead of ALL_THREADS.
4304 * infrun.c (find_thread_needs_step_over)
4305 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4306 instead of ALL_THREADS.
4307 * record-btrace.c (record_btrace_open)
4308 (record_btrace_stop_recording, record_btrace_close)
4309 (record_btrace_is_replaying, record_btrace_resume)
4310 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4311 * remote.c (append_pending_thread_resumptions): Likewise.
4312 * thread.c (thread_apply_all_command): Likewise.
4314 2014-06-19 Gary Benson <gbenson@redhat.com>
4316 * i386-nat.c (i386_stopped_by_watchpoint):
4317 Use i386_dr_stopped_by_watchpoint.
4318 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4319 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4321 2014-06-19 Gary Benson <gbenson@redhat.com>
4323 * nat/i386-dregs.c: New file.
4324 * Makefile.in (i386-dregs.o): New rule.
4325 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4326 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4327 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4328 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4329 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4330 * config/i386/go32.mh (NATDEPFILES): Likewise.
4331 * config/i386/linux.mh (NATDEPFILES): Likewise.
4332 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4333 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4334 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4335 * i386-nat.h (debug_hw_points): New declaration.
4336 * i386-nat.c (breakpoint.h): Remove include.
4337 (command.h): Likewise.
4338 (target.h): Likewise.
4339 (gdb_assert.h): Likewise.
4340 (debug_hw_points): Made nonstatic.
4341 (debug_printf): Now in i386-dregs.c.
4342 (TARGET_HAS_DR_LEN_8): Likewise.
4343 (DR_CONTROL_SHIFT): Likewise.
4344 (DR_CONTROL_SIZE): Likewise.
4345 (DR_RW_EXECUTE): Likewise.
4346 (DR_RW_WRITE): Likewise.
4347 (DR_RW_READ): Likewise.
4348 (DR_RW_IORW): Likewise.
4349 (DR_LEN_1): Likewise.
4350 (DR_LEN_2): Likewise.
4351 (DR_LEN_4): Likewise.
4352 (DR_LEN_8): Likewise.
4353 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4354 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4355 (DR_ENABLE_SIZE): Likewise.
4356 (DR_LOCAL_SLOWDOWN): Likewise.
4357 (DR_GLOBAL_SLOWDOWN): Likewise.
4358 (DR_CONTROL_RESERVED): Likewise.
4359 (I386_DR_CONTROL_MASK): Likewise.
4360 (I386_DR_VACANT): Likewise.
4361 (I386_DR_LOCAL_ENABLE): Likewise.
4362 (I386_DR_GLOBAL_ENABLE): Likewise.
4363 (I386_DR_DISABLE): Likewise.
4364 (I386_DR_SET_RW_LEN): Likewise.
4365 (I386_DR_GET_RW_LEN): Likewise.
4366 (I386_DR_WATCH_HIT): Likewise.
4367 (i386_wp_op_t): Likewise.
4368 (i386_show_dr): Likewise.
4369 (i386_length_and_rw_bits): Likewise.
4370 (i386_insert_aligned_watchpoint): Likewise.
4371 (i386_remove_aligned_watchpoint): Likewise.
4372 (i386_handle_nonaligned_watchpoint): Likewise.
4373 (i386_update_inferior_debug_regs): Likewise.
4374 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4375 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4376 (i386_region_ok_for_watchpoint):
4377 Use i386_dr_region_ok_for_watchpoint.
4378 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4380 2014-06-19 Gary Benson <gbenson@redhat.com>
4382 * i386-nat.c (i386_insert_hw_breakpoint): Use
4383 i386_insert_watchpoint.
4384 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4386 2014-06-19 Gary Benson <gbenson@redhat.com>
4388 * i386-nat.c (i386_dr_show): Renamed to
4389 i386_show_dr and made static. All uses updated.
4390 (i386_dr_length_and_rw_bits): Renamed to
4391 i386_length_and_rw_bits and made static.
4393 (i386_dr_insert_aligned_watchpoint): Renamed to
4394 i386_insert_aligned_watchpoint and made static.
4396 (i386_dr_remove_aligned_watchpoint): Renamed to
4397 i386_remove_aligned_watchpoint and made static.
4399 (i386_dr_update_inferior_debug_regs): Renamed to
4400 i386_update_inferior_debug_regs and made static.
4402 * nat/i386-dregs.h (i386_dr_show): Removed.
4403 (i386_dr_length_and_rw_bits): Likewise.
4404 (i386_dr_insert_aligned_watchpoint): Likewise.
4405 (i386_dr_remove_aligned_watchpoint): Likewise.
4406 (i386_dr_update_inferior_debug_regs): Likewise.
4408 2014-06-19 Gary Benson <gbenson@redhat.com>
4410 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4411 * configure: Regenerate.
4412 * config.in: Likewise.
4413 * main.c (signal.h): New include.
4414 (setup_alternate_signal_stack): New function.
4415 (captured_main): Call the above.
4416 * cp-support.c (signal.h): New include.
4417 (catch_demangler_crashes): New flag.
4418 (SIGJMP_BUF): New define.
4419 (SIGSETJMP): Likewise.
4420 (SIGLONGJMP): Likewise.
4421 (gdb_demangle_jmp_buf): New static global.
4422 (gdb_demangle_attempt_core_dump): Likewise.
4423 (gdb_demangle_signal_handler): New function.
4424 (gdb_demangle): If catch_demangler_crashes is set, install the
4425 above signal handler before calling bfd_demangle, and restore
4426 the original signal handler afterwards. Display the offending
4427 symbol and call demangler_warning the first time a segmentation
4429 (_initialize_cp_support): New maint set/show command.
4431 2014-06-19 Gary Benson <gbenson@redhat.com>
4433 * utils.h (resource_limit_kind): New enum.
4434 (can_dump_core): New declaration.
4435 (warn_cant_dump_core): Likewise.
4436 (dump_core): Likewise.
4437 * utils.c (dump_core): Made nonstatic. Added new
4438 parameter "limit_kind".
4439 (can_dump_core): Made nonstatic. Moved printing code to...
4440 (warn_cant_dump_core): New function.
4441 (can_dump_core_warn): Likewise.
4442 (internal_vproblem): Replace calls to can_dump_core with
4443 calls to can_dump_core_warn. Supply new argument to each.
4445 2014-06-19 Gary Benson <gbenson@redhat.com>
4447 * utils.h (demangler_vwarning): New declaration.
4448 (demangler_warning): Likewise.
4449 * utils.c (struct internal_problem)
4450 <user_settable_should_quit>: New field.
4451 <user_settable_should_dump_core>: Likewise
4452 (internal_error_problem): Add values for above new fields.
4453 (internal_warning_problem): Likewise.
4454 (demangler_warning_problem): New static global.
4455 (demangler_vwarning): New function.
4456 (demangler_warning): Likewise.
4457 (add_internal_problem_command): Selectively add commands.
4458 (_initialize_utils): New internal problem command.
4459 * maint.c (maintenance_demangler_warning): New function.
4460 (_initialize_maint_cmds): New command.
4462 2014-06-18 Tom Tromey <tromey@redhat.com>
4464 * f-valprint.c (info_common_command_for_block): Update.
4465 * symtab.h (struct general_symbol_info) <common_block>: Now
4468 2014-06-18 Tom Tromey <tromey@redhat.com>
4470 * symtab.h (struct symtab) <blockvector>: Now const.
4471 * ada-lang.c (ada_add_global_exceptions): Update.
4472 * buildsym.c (augment_type_symtab): Update.
4473 * dwarf2read.c (dw2_lookup_symbol): Update.
4474 * jit.c (finalize_symtab): Update.
4475 * jv-lang.c (add_class_symtab_symbol): Update.
4476 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4478 * objfiles.c (objfile_relocate1): Update.
4479 * psymtab.c (lookup_symbol_aux_psymtabs)
4480 (maintenance_check_psymtabs): Update.
4481 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4483 * spu-tdep.c (spu_catch_start): Update.
4484 * symmisc.c (dump_symtab_1): Update.
4485 * symtab.c (lookup_global_symbol_from_objfile)
4486 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4487 (basic_lookup_transparent_type_quick)
4488 (basic_lookup_transparent_type, find_pc_sect_symtab)
4489 (find_pc_sect_line, search_symbols): Update.
4490 * block.c (find_block_in_blockvector): Make "bl" const.
4491 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4493 (blockvector_contains_pc): Make "bv" const.
4494 (block_for_pc_sect): Update.
4495 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4496 (blockvector_contains_pc): Update.
4497 * breakpoint.c (resolve_sal_pc): Update.
4498 * inline-frame.c (block_starting_point_at): Update.
4500 2014-06-18 Tom Tromey <tromey@redhat.com>
4502 * completer.c (complete_line): Make "line_buffer" const.
4503 * completer.h (complete_line): Update.
4505 2014-06-18 Tom Tromey <tromey@redhat.com>
4507 * symtab.c (add_macro_name): Remove unneeded cast.
4509 2014-06-18 Tom Tromey <tromey@redhat.com>
4511 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4512 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4514 2014-06-18 Tom Tromey <tromey@redhat.com>
4516 * probe.c (info_probes_for_ops): Make "arg" const.
4517 * probe.h (info_probes_for_ops): Update.
4519 2014-06-18 Tom Tromey <tromey@redhat.com>
4521 * varobj.c (varobj_create): Update.
4522 * valops.c (value_of_this): Update.
4523 * tracepoint.c (add_local_symbols, scope_info): Update.
4524 * symtab.h (struct general_symbol_info) <block>: Now const.
4525 * symtab.c (skip_prologue_sal)
4526 (default_make_symbol_completion_list_break_on)
4527 (skip_prologue_using_sal): Update.
4528 * stack.h (iterate_over_block_locals)
4529 (iterate_over_block_local_vars): Update.
4530 * stack.c (print_frame_args): Update.
4531 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4533 (get_selected_block): Make return type const.
4534 * python/py-frame.c (frapy_block): Update.
4535 * python/py-block.c (gdbpy_block_for_pc): Update.
4536 * p-exp.y (%union) <bval>: Now const.
4537 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4538 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4539 * m2-exp.y (%union) <bval>: Now const.
4540 * linespec.c (get_current_search_block): Make return type const.
4541 (create_sals_line_offset, find_label_symbols): Update.
4542 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4544 (block_starting_point_at): Make "block" const.
4545 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4546 (check_exception_resume): Update.
4547 * guile/scm-frame.c (gdbscm_frame_block): Update.
4548 * guile/scm-block.c (gdbscm_lookup_block): Update.
4549 * frame.h (get_frame_block): Update.
4550 (get_selected_block): Make return type const.
4551 * frame.c (frame_id_inner): Update.
4552 * f-valprint.c (info_common_command_for_block)
4553 (info_common_command): Update.
4554 * dwarf2loc.c (dwarf2_find_location_expression)
4555 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4556 (locexpr_describe_location_piece): Update.
4557 * c-exp.y (%union) <bval>: Now const.
4558 * breakpoint.c (resolve_sal_pc): Update.
4559 * blockframe.c (get_frame_block):Make return type const.
4560 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4561 (block_innermost_frame): Update.
4562 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4563 (block_for_pc, block_for_pc_sect): Update.
4564 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4566 (block_for_pc_sect, block_for_pc): Make return type const.
4567 * ax-gdb.c (gen_expr): Update.
4568 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4569 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4570 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4571 (ada_read_var_value): Update.
4572 * ada-exp.y (struct name_info) <block>: Now const.
4574 (block_lookup): Constify.
4576 2014-06-18 Gary Benson <gbenson@redhat.com>
4578 * nat/i386-dregs.h: New file.
4579 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4580 * i386-nat.h (i386-dregs.h): New include.
4581 (DR_FIRSTADDR): Now in i386-dregs.h.
4582 (DR_LASTADDR): Likewise.
4583 (DR_NADDR): Likewise.
4584 (DR_STATUS): Likewise.
4585 (DR_CONTROL): Likewise.
4586 (i386_debug_reg_state): Likewise.
4587 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4589 2014-06-18 Don Breazeal <donb@codesourcery.com>
4591 * breakpoint.c (set_longjmp_breakpoint): Call
4592 momentary_breakpoint_from_master with additional argument.
4593 (set_longjmp_breakpoint_for_call_dummy): Call
4594 momentary_breakpoint_from_master with additional argument.
4595 (set_std_terminate_breakpoint): Call
4596 momentary_breakpoint_from_master with additional argument.
4597 (momentary_breakpoint_from_master): Add argument to function
4598 definition and use it to initialize structure member flag.
4599 (clone_momentary_breakpoint): Call
4600 momentary_breakpoint_from_master with additional argument.
4601 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4602 member flags set in momentary_breakpoint_from_master.
4604 2014-06-18 Gary Benson <gbenson@redhat.com>
4606 * i386-nat.c (i386_show_dr): Renamed to
4607 i386_dr_show and made nonstatic. All uses updated.
4608 (i386_length_and_rw_bits): Renamed to
4609 i386_dr_length_and_rw_bits and made nonstatic.
4611 (i386_insert_aligned_watchpoint): Renamed to
4612 i386_dr_insert_aligned_watchpoint and made nonstatic.
4614 (i386_remove_aligned_watchpoint): Renamed to
4615 i386_dr_remove_aligned_watchpoint and made nonstatic.
4617 (i386_update_inferior_debug_regs): Renamed to
4618 i386_dr_update_inferior_debug_regs and made nonstatic.
4621 2014-06-18 Gary Benson <gbenson@redhat.com>
4623 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4624 (i386_dr_low_can_set_control): Likewise.
4625 (i386_dr_low_set_addr): Likewise.
4626 (i386_dr_low_set_control): Likewise.
4627 (i386_dr_low_get_addr): Likewise.
4628 (i386_dr_low_get_status): Likewise.
4629 (i386_dr_low_get_control): Likewise.
4630 (i386_insert_aligned_watchpoint): Use new macros.
4631 (i386_update_inferior_debug_regs): Likewise.
4632 (i386_stopped_data_address): Likewise.
4634 2014-06-18 Gary Benson <gbenson@redhat.com>
4636 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4637 New parameter. All uses updated.
4639 2014-06-18 Gary Benson <gbenson@redhat.com>
4641 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4644 2014-06-18 Gary Benson <gbenson@redhat.com>
4646 * i386-nat.c (debug_printf): New macro.
4647 (i386_get_debug_register_length): Likewise.
4648 (TARGET_HAS_DR_LEN_8): Use above macro.
4649 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4650 and printf_unfiltered. Use phex to format values.
4652 2014-06-18 Gary Benson <gbenson@redhat.com>
4654 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4657 2014-06-18 Gary Benson <gbenson@redhat.com>
4659 * i386-nat.c: Comment changes.
4661 2014-06-18 Gary Benson <gbenson@redhat.com>
4663 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4665 2014-06-18 Gary Benson <gbenson@redhat.com>
4667 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4668 (i386_insert_aligned_watchpoint): Likewise.
4669 (i386_remove_aligned_watchpoint): Likewise.
4670 (i386_handle_nonaligned_watchpoint): Likewise.
4672 2014-06-18 Gary Benson <gbenson@redhat.com>
4674 * i386-nat.c: Whitespace changes.
4676 2014-06-17 Samuel Bronson <naesten@gmail.com>
4678 * MAINTAINERS: Update Roland McGrath's email address.
4679 Thanks to Sergio Durigan Junior for pointing out that he left
4680 Red Hat a while ago, and giving me a current address.
4682 2014-06-17 Tom Tromey <tromey@redhat.com>
4684 * utils.h (savestring): Remove declaration.
4686 2014-06-17 Tom Tromey <tromey@redhat.com>
4688 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4690 2014-06-16 Keith Seitz <keiths@redhat.com>
4693 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4694 to update the varobj if inferior_ptid is null_ptid.
4696 2014-06-16 Tom Tromey <tromey@redhat.com>
4698 * target.h (struct target_ops) <to_info_proc>: Make parameter
4700 (target_info_proc): Update.
4701 * target.c (target_info_proc): Make "args" const.
4702 * procfs.c (procfs_info_proc): Update.
4703 * linux-tdep.c (linux_info_proc): Update.
4704 (linux_core_info_proc_mappings): Make "args" const.
4705 (linux_core_info_proc): Update.
4706 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4707 * gdbarch.c: Rebuild.
4708 * gdbarch.h: Rebuild.
4709 * corelow.c (core_info_proc): Update.
4711 2014-06-16 Tom Tromey <tromey@redhat.com>
4713 * target.h (struct target_ops) <to_disconnect>: Make parameter
4715 (target_disconnect): Update.
4716 * target.c (target_disconnect): Make "args" const.
4717 * target-delegates.c: Rebuild.
4718 * remote.c (remote_disconnect): Update.
4719 * record.h (record_disconnect): Update.
4720 * record.c (record_disconnect): Update.
4721 * inf-child.c (inf_child_disconnect): Update.
4723 2014-06-16 Tom Tromey <tromey@redhat.com>
4725 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4726 * target.c (debug_to_rcmd, default_rcmd): Update.
4727 * target-delegates.c: Rebuild.
4728 * remote.c (remote_rcmd): Update.
4729 * monitor.c (monitor_rcmd): Update.
4731 2014-06-16 Pedro Alves <palves@redhat.com>
4733 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4734 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4735 have OBJF_SHARED set.
4736 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4737 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4738 instead of OBJF_USERLOADED.
4739 * objfiles.h (OBJF_SHARED): Update comment.
4740 (userloaded_objfile_contains_address_p): Rename to ...
4741 (shared_objfile_contains_address_p): ... this, and update
4743 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4745 (remove_symbol_file_command): Skip objfiles that don't have
4748 2014-06-16 Tom Tromey <tromey@redhat.com>
4750 * minsyms.h (prim_record_minimal_symbol)
4751 (prim_record_minimal_symbol_and_info): Update comments.
4753 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4755 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4756 or --without-guile, according to how GDB was built.
4758 2014-06-13 Tom Tromey <tromey@redhat.com>
4760 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4762 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4764 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4766 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4767 help_list.Pass all_commands, not -1, to help_list.
4768 * cli/cli-dump.c (dump_command, append_command)
4769 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4770 (binary_dump_command, binary_append_command): Pass all_commands,
4771 not -1, to help_list.
4772 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4774 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4776 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4778 * top.c (set_history): Pass all_commands, not -1, to help_list.
4779 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4780 all_commands, not -1, to help_list.
4781 * symfile.c (overlay_command): Pass all_commands, not -1, to
4783 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4785 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4787 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4789 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4790 not -1, to help_list.
4791 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4792 not -1, to help_list.
4793 * maint.c (maintenance_command, maintenance_info_command)
4794 (maintenance_print_command, maintenance_set_cmd): Pass
4795 all_commands, not -1, to help_list.
4796 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4798 * language.c (set_check): Pass all_commands, not -1, to help_list.
4799 * infcmd.c (unset_command): Pass all_commands, not -1, to
4801 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4803 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4805 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4807 * breakpoint.c (save_command): Pass all_commands, not -1, to
4809 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4810 all_commands, not -1, to help_list.
4812 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4814 * regcache.c (struct register_to_invalidate): New structure.
4815 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4817 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4819 2014-06-12 Yao Qi <yao@codesourcery.com>
4821 * varobj.c (varobj_get_num_children): Call
4822 varobj_is_dynamic_p.
4823 (varobj_list_children): Likewise.
4824 (varobj_update): Likewise. Update comments.
4826 2014-06-12 Yao Qi <yao@codesourcery.com>
4828 * varobj.c (varobj_pretty_printed_p): Rename to ...
4829 (varobj_is_dynamic_p): ... this. New function.
4830 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4831 (varobj_is_dynamic_p): Declare.
4832 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4833 (mi_print_value_p, varobj_update_one): Likewise.
4835 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4836 Yao Qi <yao@codesourcery.com>
4838 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4839 (varobj_get_iterator): Wrap up code for pretty-printer by
4840 "#if HAVE_PYTHON" and "#endif".
4841 (update_dynamic_varobj_children): Likewise.
4843 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4844 Yao Qi <yao@codesourcery.com>
4846 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4847 gdb_python_initialized is false. Move some code from varobj.c.
4848 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4849 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4850 (struct varobj_item): Moved to varobj-iter.h".
4851 (varobj_clear_saved_item): New function.
4852 (update_dynamic_varobj_children): Move python-related code to
4854 (free_variable): Call varobj_clear_saved_item and
4857 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4858 Yao Qi <yao@codesourcery.com>
4860 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4861 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4862 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4863 (py-varobj.o): New rule.
4864 * python/py-varobj.c: New file.
4865 * python/python-internal.h (py_varobj_get_iterator): Declare.
4866 * varobj-iter.h: New file.
4867 * varobj.c: Include "varobj-iter.h"
4868 (struct varobj) <child_iter>: Change its type from "PyObject *"
4869 to "struct varobj_iter *".
4870 <saved_item>: Likewise.
4871 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4872 [HAVE_PYTHON] (varobj_get_iterator): New function.
4873 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4874 python-specific code to python/py-varobj.c.
4875 (install_visualizer): Call varobj_iter_delete instead of
4877 * varobj.h (varobj_ensure_python_env): Declare.
4879 2014-06-12 Yao Qi <yao@codesourcery.com>
4881 * varobj.c (struct varobj_item): New structure.
4882 (create_child_with_value): Update declaration.
4883 (varobj_add_child): Replace arguments 'name' and 'value' with
4884 'item'. All callers updated.
4885 (install_dynamic_child): Likewise.
4886 (update_dynamic_varobj_children): Likewise.
4887 (varobj_add_child): Likewise.
4888 (create_child_with_value): Likewise.
4890 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4892 * NEWS: Create a new section for the next release branch.
4893 Rename the section of the current branch, now that it has
4896 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4898 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4899 * version.in: Bump version to 7.8.50.DATE-cvs.
4901 2014-06-11 Pedro Alves <palves@redhat.com>
4904 * ser-mingw.c (net_windows_socket_check_pending): New function.
4905 (net_windows_select_thread): Ignore spurious wakeups. Use
4906 net_windows_socket_check_pending.
4907 (net_windows_wait_handle): Check for pending events with
4908 ioctlsocket, through net_windows_socket_check_pending, instead of
4909 checking the socket's event.
4911 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4913 * python/python-internal.h (gdb_PyObject_GetAttrString)
4914 (gdb_PyObject_HasAttrString): New inline function definitions.
4915 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4916 char * of the second argument to PyObject_GetAttrString.
4918 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4920 * serial.c (serial_write): Fix index of character to be printed
4921 in call to serial_logchar when serial debug traces are enabled.
4923 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4925 * gdbtypes (resolve_dynamic_range): Add function description.
4927 2014-06-09 Pedro Alves <palves@redhat.com>
4929 * linux-nat.c (linux_child_follow_fork): Initialize status with
4930 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4931 inner block. Only pass the signal to PTRACE_DETACH if in pass
4934 2014-06-09 Gary Benson <gbenson@redhat.com>
4936 * common/signals.c (gdb_signal_from_host): Reorder to separate
4937 the always-available ANSI-standard signals from the signals that
4939 (do_gdb_signal_to_host): Likewise.
4940 * proc-events.c (signal_table): Likewise.
4942 2014-06-08 Hui Zhu <hui@codesourcery.com>
4944 * common/linux-ptrace.c (linux_disable_event_reporting): New
4946 * common/linux-ptrace.h (linux_disable_event_reporting): New
4948 * linux-nat.c (linux_child_follow_fork): Do a single step before
4951 2014-06-07 Keith Seitz <keiths@redhat.com>
4955 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4956 from symbol_matches_domain in symtab.c. All local callers
4957 of symbol_matches_domain updated.
4958 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4959 search STRUCT_DOMAIN.
4960 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4961 independently. standard_lookup will do that automatically.
4962 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4963 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4964 (cp_lookup_symbol_in_namespace): Likewise.
4965 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4966 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4967 may return a STRUCT_DOMAIN match.
4968 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4969 * cp-support.c: Include language.h.
4970 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4972 * psymtab.c (match_partial_symbol): Compare the requested
4973 domain with the symbol's domain directly.
4974 (lookup_partial_symbol): Likewise.
4975 * symtab.c (lookup_symbol_in_language): Explain when/why
4976 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4977 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4978 appropriate languages.
4979 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4980 and moved to ada-lang.c
4981 (lookup_block_symbol): Explain that this function only returns
4982 symbol matching the requested DOMAIN.
4983 Compare the requested domain with the symbol's domain directly.
4984 (iterate_over_symbols): Compare the requested domain with the
4985 symbol's domain directly.
4986 * symtab.h (symbol_matches_domain): Remove.
4988 2014-06-06 Doug Evans <xdje42@gmail.com>
4990 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4991 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4992 (gdbscm_guile_version_is_at_least): Declare.
4993 (gdbscm_scm_string_to_int): Declare.
4994 * guile/guile.c (gdbscm_guile_major_version): New global.
4995 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4996 (guile_datadir): New static global.
4997 (gdbscm_guile_data_directory): New function.
4998 (initialize_scheme_side): Update.
4999 (misc_guile_functions): Add guile-data-directory.
5000 (initialize_gdb_module): Fetch guile version number.
5001 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5002 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5003 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5004 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5006 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5007 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5008 * guile/scm-value.c (gdbscm_value_to_string): Only call
5009 scm_port_conversion_strategy if Guile version >= 2.0.6.
5011 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5013 * main.c (print_gdb_help): Add -q and --silent.
5015 2014-06-06 Gary Benson <gbenson@redhat.com>
5017 * common/signals.c: Remove preprocessor conditionals for
5018 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5019 SIGSEGV and SIGTERM.
5020 * proc-events.c: Likewise.
5022 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5024 * symfile.c (symfile_free_objfile): Remove restriction to
5026 * symfile-mem.c (symbol_file_add_from_memory): Call
5027 add_target_sections_of_objfile.
5029 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5031 * guile/scm-value.c (gdbscm_history_append_x): Use
5032 'vlscm_get_value_smob_arg_unsafe' instead of
5033 'vlscm_scm_to_value'.
5035 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5038 * utils.c (printchar): Don't escape at all if quoter is NUL.
5039 Update function documentation to clarify effect of parameter
5041 * remote.c (escape_buffer): Pass '\\' as the quoter to
5042 fputstrn_unfiltered.
5043 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5044 generate the output.
5045 (mi_solib_unloaded): Same.
5047 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5049 * development.sh: Delete.
5050 * Makefile.in (config.status): Adjust dependency on development.sh.
5051 * configure.ac: Adjust development.sh source call.
5052 * configure: Regenerate.
5054 2014-06-04 Doug Evans <xdje42@gmail.com>
5056 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5057 is_scheme_bkpt, spec.
5058 (bpscm_make_breakpoint_smob): Initialize new members.
5059 (gdbscm_create_breakpoint_x): Split into two ...
5060 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5061 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5062 (scheme_function breakpoint_functions): Update.
5063 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5064 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5065 register-breakpoint!.
5067 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5070 * mem-break.c (z_type_supported): Return zero if
5071 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5073 2014-06-04 Tom Tromey <tromey@redhat.com>
5075 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5076 value_from_contents_and_address_unresolved.
5077 (ada_template_to_fixed_record_type_1): Likewise.
5078 (ada_which_variant_applies): Likewise.
5079 * value.h (value_from_contents_and_address_unresolved): Declare.
5080 * value.c (value_from_contents_and_address_unresolved): New
5082 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5083 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5084 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5086 2014-06-04 Tom Tromey <tromey@redhat.com>
5088 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5090 2014-06-04 Tom Tromey <tromey@redhat.com>
5092 * procfs.c (procfs_attach): Make "args" const.
5093 * windows-nat.c (windows_attach): Make "args" const.
5094 * nto-procfs.c (procfs_attach): Make "args" const.
5095 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5096 * go32-nat.c (go32_attach): Make "args" const.
5097 * gnu-nat.c (gnu_attach): Make "args" const.
5098 * darwin-nat.c (darwin_attach): Make "args" const.
5099 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5100 * linux-nat.c (linux_nat_attach): Make "args" const.
5101 * remote.c (extended_remote_attach_1, extended_remote_attach):
5103 * target.h (struct target_ops) <to_attach>: Make "args" const.
5104 (find_default_attach): Likewise.
5105 * utils.c (parse_pid_to_attach): Make "args" const.
5106 * utils.h (parse_pid_to_attach): Update.
5108 2014-06-04 Tom Tromey <tromey@redhat.com>
5110 * target-delegates.c: Rebuild.
5111 * target.c (default_thread_address_space): New function.
5112 (target_thread_address_space): Simplify.
5113 * target.h (struct target_ops) <to_thread_address_space>: Add
5114 TARGET_DEFAULT_FUNC.
5116 2014-06-04 Doug Evans <xdje42@gmail.com>
5118 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5120 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5122 * record-btrace.c: Include event-loop.h and inf-loop.h.
5123 (record_btrace_resume_exec_dir)
5124 (record_btrace_async_inferior_event_handler)
5125 (record_btrace_handle_async_inferior_event): New.
5126 (record_btrace_open): Create async event handler.
5127 (record_btrace_close): Delete async event handler.
5128 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5129 Mark async event handler.
5130 (record_btrace_execution_direction): New.
5131 (init_record_btrace_ops): Initialize to_execution_direction.
5133 2014-06-03 Doug Evans <xdje42@gmail.com>
5135 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5136 (gdbscm_make_parameter): Ditto.
5138 2014-06-03 Doug Evans <dje@google.com>
5140 * exec.c (exec_close_1): Call clear_section_table instead of
5141 resize_section_table.
5142 (clear_section_table): New function.
5143 (resize_section_table): Make static. Rename arg num_added to
5145 * exec.h (clear_section_table): Declare.
5146 (resize_section_table): Delete.
5147 * progspace.c (release_program_space): Call clear_section_table
5148 instead of resize_section_table.
5150 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5152 * NEWS (Python Scripting): Add entry about the new xmethods
5155 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5157 * python/py-xmethods.c: New file.
5158 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5159 (objfpy_dealloc): XDECREF on the new xmethods field.
5160 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5162 (objfpy_get_xmethods): New function.
5163 (objfile_getset): New entry 'xmethods'.
5164 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5165 (pspy_dealloc): XDECREF on the new xmethods field.
5166 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5168 (pspy_get_xmethods): New function.
5169 (pspace_getset): New entry 'xmethods'.
5170 * python/python-internal.h: Add declarations for new functions.
5171 * python/python.c (_initialize_python): Invoke
5172 gdbpy_initialize_xmethods.
5173 * python/lib/gdb/__init__.py (xmethods): New
5175 * python/lib/gdb/xmethod.py: New file.
5176 * python/lib/gdb/command/xmethods.py: New file.
5178 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5180 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5181 best match method returned by find_overload_match is an xmethod.
5182 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5183 the best matching operator returned by find_overload_match is an
5185 * valops.c: #include "extension.h".
5186 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5187 Return void. The list of matching source methods is returned in
5188 "fn_list" and a vector of matching debug method workers is
5189 returned in "xm_worker_vec". Update all callers.
5190 (value_find_oload_method_list): Likewise.
5191 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5192 non-NULL, then the index of the best matching method in this
5193 vector is returned. Update all callers.
5194 (find_overload_match): Include xmethods while performing overload
5197 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5199 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5200 * extension-priv.h (struct extension_language_ops): Add the
5202 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5203 get_matching_xmethod_workers, get_xmethod_argtypes,
5204 invoke_xmethod, free_xmethod_worker,
5205 free_xmethod_worker_vec): New functions.
5206 * extension.h: #include "common/vec.h".
5207 New function declarations.
5208 (struct xmethod_worker): New struct.
5209 (VEC (xmethod_worker_ptr)): New vector type.
5210 (xmethod_worker_ptr): New typedef.
5211 (xmethod_worker_vec): Likewise.
5212 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5214 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5215 (struct builtin_type): New field "xmethod".
5216 * valarith.c (value_ptradd): Assert that the value argument is not
5218 * valops.c (value_must_coerce_to_target): Return 0 for
5219 lval_xcallable values.
5220 * value.c (struct value): New field XM_WORKER in the field
5222 (value_address, value_raw_address): Return 0 for lval_xcallable
5224 (set_value_address): Assert that the value is not an
5226 (value_free): Free the associated xmethod worker when freeing
5227 lval_xcallable values.
5228 (set_value_component_location): Assert that the WHOLE value is not
5230 (value_of_xmethod, call_xmethod): New functions.
5231 * value.h: Declare "struct xmethod_worker".
5232 Declare new functions value_of_xmethod, call_xmethod.
5234 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5235 Pedro Alves <palves@redhat.com>
5237 PR breakpoints/17000
5238 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5239 New function, extracted from software_breakpoint_inserted_here_p.
5240 (software_breakpoint_inserted_here_p): Replace factored out code
5241 by call to find_non_raw_software_breakpoint_inserted_here.
5242 (bp_target_info_copy_insertion_state): New function.
5243 (bkpt_insert_location): Handle the case of a single-step
5244 breakpoint already inserted at the same address.
5245 (bkpt_remove_location): Handle the case of a single-step
5246 breakpoint still inserted at the same address.
5247 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5248 breakpoint already inserted at the same address.
5249 (deprecated_remove_raw_breakpoint): Handle the case of a
5250 non-raw breakpoint still inserted at the same address.
5251 (find_single_step_breakpoint): New function, extracted from
5252 single_step_breakpoint_inserted_here_p.
5253 (find_single_step_breakpoint): New function,
5254 factored out from single_step_breakpoint_inserted_here_p.
5255 (single_step_breakpoint_inserted_here_p): Reimplement.
5257 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5259 Pushed by Joel Brobecker <brobecker@adacore.com>
5260 * source.c (show_substitute_path_command): Fix display of matching
5263 2014-06-03 Gary Benson <gbenson@redhat.com>
5265 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5267 2014-06-02 Doug Evans <xdje42@gmail.com>
5269 Add parameter support for Guile.
5270 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5271 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5272 (scm-param.o): New rule.
5273 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5274 (gdbscm_misc_error): Declare.
5275 (gdbscm_canonicalize_command_name): Declare.
5276 (gdbscm_scm_to_host_string): Declare.
5277 (gdbscm_scm_from_host_string): Declare.
5278 (gdbscm_initialize_parameters): Declare.
5279 * guile/guile.c (initialize_gdb_module): Call
5280 gdbscm_initialize_parameters.
5281 * guile/lib/gdb.scm: Export parameter symbols.
5282 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5283 cmdscm_canonicalize_name and made public. All callers updated.
5284 * guile/scm-exception.c (gdbscm_misc_error): New function.
5285 * guile/scm-param.c: New file.
5286 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5287 (gdbscm_scm_to_host_string): New function.
5288 (gdbscm_scm_from_host_string): New function.
5289 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5291 2014-06-02 Doug Evans <xdje42@gmail.com>
5293 Add command support for Guile.
5294 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5295 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5296 (scm-cmd.o): New rule.
5297 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5298 (gdbscm_user_error_p): Declare.
5299 (gdbscm_parse_command_name): Declare.
5300 (gdbscm_valid_command_class_p): Declare.
5301 (gdbscm_initialize_commands): Declare.
5302 * guile/guile.c (initialize_gdb_module): Call
5303 gdbscm_initialize_commands.
5304 * guile/lib/gdb.scm: Export command symbols.
5305 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5306 (throw-user-error): New function.
5307 * guile/scm-cmd.c: New file.
5308 * guile/scm-exception.c (user_error_symbol): New static global.
5309 (gdbscm_user_error_p): New function.
5310 (gdbscm_initialize_exceptions): Set user_error_symbol.
5311 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5313 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5315 * top.c (command_loop): Handle comments here...
5316 (command_line_input): ... not here.
5318 2014-06-02 Doug Evans <xdje42@gmail.com>
5320 Add progspace support for Guile.
5321 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5322 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5323 (scm-progspace.o): New rule.
5324 * guile/guile-internal.h (pspace_smob): New typedef.
5325 (psscm_pspace_smob_pretty_printers): Declare.
5326 (psscm_pspace_smob_from_pspace): Declare.
5327 (psscm_scm_from_pspace): Declare.
5328 * guile/guile.c (initialize_gdb_module): Call
5329 gdbscm_initialize_pspaces.
5330 * guile/lib/gdb.scm: Export progspace symbols.
5331 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5333 (append-pretty-printer!): Ditto.
5334 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5336 * guile/scm-progspace.c: New file.
5338 2014-06-03 Alan Modra <amodra@gmail.com>
5340 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5341 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5343 2014-06-02 Doug Evans <dje@google.com>
5345 Add support for skeletonless type units.
5346 * dwarf2read.c (struct dwarf2_per_objfile): New member
5347 n_allocated_type_units.
5348 (struct dwarf2_per_objfile) <tu_stats>: New member
5349 nr_all_type_units_reallocs.
5350 (create_signatured_type_table_from_index): Initialize
5351 n_allocated_type_units
5352 (create_all_type_units): Ditto.
5353 (add_type_unit): Move up in file. New arg slot.
5354 All callers updated. Increase space for all_type_units more
5356 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5357 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5358 (lookup_dwp_signatured_type): Ditto.
5359 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5360 All callers updated.
5361 (build_type_psymtabs_1): Leave type_unit_groups as
5362 NULL if no TUs present.
5363 (print_tu_stats): New function.
5364 (process_skeletonless_type_unit): New function.
5365 (process_dwo_file_for_skeletonless_type_units): New
5367 (process_skeletonless_type_units): New function.
5368 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5369 Call print tu_stats if debugging enabled.
5371 2014-06-02 Pedro Alves <palves@redhat.com>
5373 * breakpoint.c (build_target_command_list): Don't build a command
5374 list if we have any duplicate location that isn't a dprintf.
5376 2014-06-02 Pedro Alves <palves@redhat.com>
5378 * breakpoint.c (dprintf_breakpoint_hit): New function.
5379 (initialize_breakpoint_ops): Install it as dprintf's
5380 breakpoint_hit method.
5382 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5384 * source.c (substitute_path_rule_matches): Simplify using
5385 filename_ncmp instead of FILENAME_CMP.
5387 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5389 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5391 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5393 * configure.ac: When Guile is available, check for the
5394 availability of 'scm_new_smob'.
5395 * configure, config.h.in: Regenerate.
5396 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5399 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5401 * frame.c (struct frame_info): Add stop_string field.
5402 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5403 (get_prev_frame_always): Old content moved into
5404 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5405 TRY_CATCH, handle MEMORY_ERROR exceptions.
5406 (frame_stop_reason_string): New function definition.
5407 * frame.h (unwind_stop_reason_to_string): Extend comment to
5408 mention frame_stop_reason_string.
5409 (frame_stop_reason_string): New function declaration.
5410 * stack.c (frame_info): Switch to frame_stop_reason_string.
5411 (backtrace_command_1): Switch to frame_stop_reason_string.
5412 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5413 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5414 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5416 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5418 * frame.c (frame_stop_reason_string): Rename to ...
5419 (unwind_stop_reason_to_string): this.
5420 * frame.h (frame_stop_reason_string): Rename to ...
5421 (unwind_stop_reason_to_string): this.
5422 * stack.c (frame_info): Update call to frame_stop_reason_string.
5423 (backtrace_command_1): Likewise.
5424 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5425 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5427 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5429 * frame.c (remove_prev_frame): New function.
5430 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5433 2014-05-29 Pedro Alves <palves@redhat.com>
5435 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5436 and make it const. When a single-step decays to a continue,
5437 clear 'step', not 'hw_step'. Pass whether the caller wanted
5438 to step to user_visible_resume_ptid, not what we ask the
5441 2014-05-29 Pedro Alves <palves@redhat.com>
5443 * infrun.c (process_event_stop_test, handle_step_into_function)
5444 (handle_step_into_function_backward): Adjust.
5445 Don't set the even thread's stop_step and call stop_waiting before
5446 calling end_stepping_range. Instead do that ...
5447 (end_stepping_range): ... here. Take an ecs pointer parameter.
5449 2014-05-29 Pedro Alves <palves@redhat.com>
5451 * infrun.c (stop_stepping): Rename to ...
5452 (stop_waiting): ... this.
5453 (proceed): Update comment.
5454 (process_event_stop_test, handle_inferior_event)
5455 (handle_signal_stop, handle_step_into_function)
5456 (handle_step_into_function_backward): Update.
5458 2014-05-29 Pedro Alves <palves@redhat.com>
5460 * infcall.c (run_inferior_call): Don't check whether the current
5461 thread is running after the proceed call.
5463 2014-05-29 Pedro Alves <palves@redhat.com>
5464 Tom Tromey <tromey@redhat.com>
5466 * NEWS: Mention "maint set target-async", "set mi-async", and that
5467 background execution commands are now always available.
5468 * target.h (target_async_permitted): Update comment.
5469 * target.c (target_async_permitted, target_async_permitted_1):
5471 (set_target_async_command): Rename to ...
5472 (maint_set_target_async_command): ... this.
5473 (show_target_async_command): Rename to ...
5474 (maint_show_target_async_command): ... this.
5475 (_initialize_target): Adjust.
5476 * infcmd.c (prepare_execution_command): Make extern.
5477 * inferior.h (prepare_execution_command): Declare.
5478 * infrun.c (set_observer_mode): Leave target async alone.
5479 * mi/mi-interp.c (mi_interpreter_init): Install
5480 mi_on_sync_execution_done as sync_execution_done observer.
5481 (mi_on_sync_execution_done): New function.
5482 (mi_execute_command_input_handler): Don't print the prompt if we
5483 just started a synchronous command with an async target.
5484 (mi_on_resume): Check sync_execution before printing prompt.
5485 * mi/mi-main.h (mi_async_p): Declare.
5486 * mi/mi-main.c: Include gdbcmd.h.
5487 (mi_async_p): New function.
5488 (mi_async, mi_async_1): New globals.
5489 (set_mi_async_command, show_mi_async_command, mi_async): New
5491 (exec_continue): Call prepare_execution_command.
5492 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5493 (mi_execute_async_cli_command): Use mi_async_p.
5494 (_initialize_mi_main): Install "set mi-async". Make
5495 "target-async" a deprecated alias.
5497 2014-05-29 Pedro Alves <palves@redhat.com>
5499 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5500 (_initialize_cli_interp): Adjust.
5501 * event-loop.c: Include "observer.h".
5502 (start_event_loop): Notify 'command_error' observers instead of
5503 calling display_gdb_prompt. Remove FIXME comment.
5504 * event-top.c (display_gdb_prompt): Remove call into the
5506 * inf-loop.c: Include "observer.h".
5507 (inferior_event_handler): Notify 'command_error' observers instead
5508 of calling display_gdb_prompt.
5509 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5510 observers instead of calling display_gdb_prompt.
5511 * interps.c (interp_set): Don't call display_gdb_prompt.
5512 (current_interp_display_prompt_p): Delete.
5513 * interps.h (interp_prompt_p): Delete declaration.
5514 (interp_prompt_p_ftype): Delete.
5515 (struct interp_procs) <prompt_proc_p>: Delete field.
5516 (current_interp_display_prompt_p): Delete declaration.
5517 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5518 (_initialize_mi_interp): Adjust.
5519 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5520 'command_error' observers.
5521 (tui_on_sync_execution_done, tui_on_command_error): New
5523 (tui_display_prompt_p): Delete.
5524 (_initialize_tui_interp): Adjust.
5526 2014-05-29 Pedro Alves <palves@redhat.com>
5529 * cli/cli-interp.c: Include infrun.h and observer.h.
5530 (cli_uiout, cli_interp): New globals.
5531 (cli_on_signal_received, cli_on_end_stepping_range)
5532 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5534 (cli_interpreter_init): Install them as 'end_stepping_range',
5535 'signal_received' 'signal_exited', 'exited' and 'no_history'
5537 (_initialize_cli_interp): Remove cli_interp local.
5538 * infrun.c (handle_inferior_event): Call the several stop reason
5539 observers instead of printing the stop reason directly.
5540 (end_stepping_range): New function.
5541 (print_end_stepping_range_reason, print_signal_exited_reason)
5542 (print_exited_reason, print_signal_received_reason)
5543 (print_no_history_reason): Make static, and add an uiout
5544 parameter. Print to that instead of to CURRENT_UIOUT.
5545 * infrun.h (print_end_stepping_range_reason)
5546 (print_signal_exited_reason, print_exited_reason)
5547 (print_signal_received_reason print_no_history_reason): New
5549 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5551 <cli_uiout>: New field.
5552 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5553 uiout for CLI output. Install 'signal_received',
5554 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5556 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5557 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5558 (mi_on_no_history): New functions.
5559 (ui_out_free_cleanup): Delete function.
5560 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5561 instead use the one already stored in the MI interpreter data.
5562 (mi_ui_out): Adjust.
5563 * tui/tui-interp.c: Include infrun.h and observer.h.
5564 (tui_interp): New global.
5565 (tui_on_signal_received, tui_on_end_stepping_range)
5566 (tui_on_signal_exited, tui_on_exited)
5567 (tui_on_no_history): New functions.
5568 (tui_init): Install them as 'end_stepping_range',
5569 'signal_received' 'signal_exited', 'exited' and 'no_history'
5571 (_initialize_tui_interp): Delete tui_interp local.
5573 2014-05-29 Pedro Alves <palves@redhat.com>
5576 * linux-nat.c (linux_nat_resume_callback): Rename the second
5577 parameter to 'except'. Skip LP if it points to EXCEPT.
5578 (linux_nat_resume): Don't mark the event lwp as not stopped
5579 before resuming sibling lwps. Instead ask
5580 linux_nat_resume_callback to skip the event lwp. Mark it as not
5581 stopped after actually resuming it.
5582 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5584 (wait_lwp): Mark the lwp as stopped here.
5585 (stop_wait_callback): Mark the lwp as not stopped right after
5586 resuming it. Don't mark lwps as stopped here.
5587 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5588 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5590 2014-05-29 Pedro Alves <palves@redhat.com>
5593 * infrun.c (resume): Determine how much to resume depending on
5594 whether the caller wanted a step, not whether we can hardware step
5595 the target. Mark all threads that we intend to run as running,
5596 unless we're calling an inferior function.
5597 (normal_stop): If the thread is running an infcall, don't finish
5599 * target.c (target_resume): Don't mark threads as running here.
5601 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5603 * serial.c (_initialize_serial): Remove support for
5604 the "set remotebaud" and "show remotebaud" commands.
5605 * NEWS: Add entry documenting the removal of that command.
5607 2014-05-28 Yao Qi <yao@codesourcery.com>
5609 * charset.c: Fix typo in comments.
5611 2014-05-27 Gary Benson <gbenson@redhat.com>
5613 * utils.c (internal_vproblem): Prompt for a bug report.
5615 2014-05-26 Andy Wingo <wingo@igalia.com>
5617 * guile/scm-arch.c (arscm_mark_arch_smob):
5618 * guile/scm-block.c (bkscm_mark_block_smob)
5619 (bkscm_mark_block_syms_progress_smob):
5620 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5621 * guile/scm-exception.c (exscm_mark_exception_smob):
5622 * guile/scm-frame.c (frscm_mark_frame_smob):
5623 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5624 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5625 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5626 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5627 (ppscm_mark_pretty_printer_worker_smob):
5628 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5629 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5630 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5631 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5633 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5636 2014-05-26 Andy Wingo <wingo@igalia.com>
5637 Doug Evans <xdje42@gmail.com>
5639 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5640 empty_base_class. All uses updated.
5641 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5642 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5644 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5645 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5646 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5647 (gdbscm_gsmob_has_property_p, add_property_name)
5648 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5649 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5650 (gdb-object-has-property?, gdb-object-properties): Remove.
5651 (gdb-object-kind): Renamed from gsmob-kind.
5653 2014-05-26 Andy Wingo <wingo@igalia.com>
5655 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5656 * configure: Regenerate.
5658 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5660 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5662 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5664 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5665 (replay_memory_access_read_only, replay_memory_access_read_write)
5666 (replay_memory_access_types, replay_memory_access)
5667 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5668 (cmd_set_record_btrace, cmd_show_record_btrace)
5669 (cmd_show_replay_memory_access): New.
5670 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5671 (record_btrace_remove_breakpoint): Replace
5672 record_btrace_allow_memory_access with replay_memory_access.
5673 (_initialize_record_btrace): Add commands.
5674 * NEWS: Announce it.
5676 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5678 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5680 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5682 * MAINTAINERS (Write After Approval): Move self back from
5685 2014-05-22 Pedro Alves <palves@redhat.com>
5687 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5688 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5689 (disable_randomization, enum exec_direction_kind)
5690 (execution_direction, stop_registers, start_remote)
5691 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5692 (wait_for_inferior, normal_stop, get_last_target_status)
5693 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5694 (insert_step_resume_breakpoint_at_sal)
5695 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5696 (set_step_info, print_stop_event, signal_stop_state)
5697 (signal_print_state, signal_pass_state, signal_stop_update)
5698 (signal_print_update, signal_pass_update)
5699 (update_signals_program_target, clear_exit_convenience_vars)
5700 (displaced_step_dump_bytes, update_observer_mode)
5701 (signal_catch_update, gdb_signal_from_command): Move
5703 * infrun.h: ... to this new file.
5704 * amd64-tdep.c: Include infrun.h.
5705 * annotate.c: Include infrun.h.
5706 * arch-utils.c: Include infrun.h.
5707 * arm-linux-tdep.c: Include infrun.h.
5708 * arm-tdep.c: Include infrun.h.
5709 * break-catch-sig.c: Include infrun.h.
5710 * breakpoint.c: Include infrun.h.
5711 * common/agent.c: Include infrun.h instead of inferior.h.
5712 * corelow.c: Include infrun.h.
5713 * event-top.c: Include infrun.h.
5714 * go32-nat.c: Include infrun.h.
5715 * i386-tdep.c: Include infrun.h.
5716 * inf-loop.c: Include infrun.h.
5717 * infcall.c: Include infrun.h.
5718 * infcmd.c: Include infrun.h.
5719 * infrun.c: Include infrun.h.
5720 * linux-fork.c: Include infrun.h.
5721 * linux-nat.c: Include infrun.h.
5722 * linux-thread-db.c: Include infrun.h.
5723 * monitor.c: Include infrun.h.
5724 * nto-tdep.c: Include infrun.h.
5725 * procfs.c: Include infrun.h.
5726 * record-btrace.c: Include infrun.h.
5727 * record-full.c: Include infrun.h.
5728 * remote-m32r-sdi.c: Include infrun.h.
5729 * remote-mips.c: Include infrun.h.
5730 * remote-notif.c: Include infrun.h.
5731 * remote-sim.c: Include infrun.h.
5732 * remote.c: Include infrun.h.
5733 * reverse.c: Include infrun.h.
5734 * rs6000-tdep.c: Include infrun.h.
5735 * s390-linux-tdep.c: Include infrun.h.
5736 * solib-irix.c: Include infrun.h.
5737 * solib-osf.c: Include infrun.h.
5738 * solib-svr4.c: Include infrun.h.
5739 * target.c: Include infrun.h.
5740 * top.c: Include infrun.h.
5741 * windows-nat.c: Include infrun.h.
5742 * mi/mi-interp.c: Include infrun.h.
5743 * mi/mi-main.c: Include infrun.h.
5744 * python/py-threadevent.c: Include infrun.h.
5746 2014-05-22 Pedro Alves <palves@redhat.com>
5748 * infrun.c (handle_inferior_event): Store the exit code for
5749 --return-child-result here, instead of ...
5750 (print_exited_reason): ... here.
5752 2014-05-21 Pedro Alves <palves@redhat.com>
5755 * gdbthread.h (struct thread_control_state): New field
5757 * infrun.c (follow_fork): Copy the new thread control field to the
5759 (clear_proceed_status_thread): Clear the new thread control field.
5760 (proceed): Set the new thread control field.
5761 * interps.h (command_interp): Declare.
5762 * interps.c (command_interpreter): New global.
5763 (command_interp): New function.
5764 (interp_exec): Set `command_interpreter' while here.
5765 * cli-out.c (cli_uiout_dtor): New function.
5766 (cli_ui_out_impl): Install it.
5767 * mi/mi-interp.c: Include cli-out.h.
5768 (mi_cmd_interpreter_exec): Add comment.
5769 (restore_current_uiout_cleanup): New function.
5770 (ui_out_free_cleanup): New function.
5771 (mi_on_normal_stop): If finishing an execution command started by
5772 a CLI command, or any kind of breakpoint-like event triggered,
5773 print the stop event to the output (CLI) stream.
5774 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5776 2014-05-21 Pedro Alves <palves@redhat.com>
5778 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5779 current source line having changed.
5780 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5781 * infrun.c (normal_stop): Adjust call to
5782 set_current_sal_from_frame.
5783 * source.c (clear_lines_listed_range): New function.
5784 (set_current_source_symtab_and_line, identify_source_line): Clear
5785 the lines listed range.
5786 (line_info): Handle the first "info line" after the current source
5787 line having changed.
5788 * stack.c (print_stack_frame): Remove center handling.
5789 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5792 2014-05-21 Pedro Alves <palves@redhat.com>
5794 * inf-child.c (inf_child_mourn_inferior): New function.
5795 * inf-child.h (inf_child_mourn_inferior): New declaration.
5796 * darwin-nat.c (darwin_mourn_inferior): Use
5797 inf_child_mourn_inferior.
5798 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5799 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5800 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5801 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5802 * windows-nat.c (windows_mourn_inferior): Likewise.
5804 2014-05-21 Doug Evans <xdje42@gmail.com>
5806 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5808 2014-05-21 Doug Evans <xdje42@gmail.com>
5810 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5811 (gdbscm_out_of_range_error): Ditto.
5812 (gdbscm_memory_error): Ditto.
5813 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5814 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5815 (gdbscm_out_of_range_error): Update.
5816 (gdbscm_memory_error): Update.
5817 (gdbscm_scm_to_target_string_unsafe): Delete.
5819 2014-05-21 Pedro Alves <palves@redhat.com>
5821 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5823 (inf_child_open_target): New function.
5824 (inf_child_open): Use inf_child_open_target to push the target
5825 instead of erroring out.
5826 (inf_child_disconnect, inf_child_close)
5827 (inf_child_maybe_unpush_target): New functions.
5828 (inf_child_target): Install inf_child_disconnect and
5829 inf_child_close. Store a pointer to the returned object.
5830 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5832 * target.c (auto_connect_native_target): New global.
5833 (show_default_run_target): New function.
5834 (find_default_run_target): Return NULL if automatically connecting
5835 to the native target is disabled.
5836 (_initialize_target): Install set/show auto-connect-native-target.
5837 * NEWS: Mention "set auto-connect-native-target", and "target
5839 * linux-nat.c (super_close): New global.
5840 (linux_nat_close): Call super_close.
5841 (linux_nat_add_target): Store a pointer to the base class's
5843 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5844 inf_child_maybe_unpush.
5845 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5847 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5848 the inferior. Use inf_child_maybe_unpush_target.
5849 (inf_ttrace_attach): Don't push the target if it is already
5851 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5852 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5853 after mourning the inferior. Use inf_child_maybe_unpush_target.
5854 (darwin_attach_pid): Don't push the target if it is already
5856 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5857 mourning the inferior. Use inf_child_maybe_unpush_target.
5858 (gnu_detach): Use inf_child_maybe_unpush_target.
5859 * go32-nat.c (go32_create_inferior): Don't push the target if it
5861 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5862 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5863 (procfs_open): Rename to ...
5864 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5865 comments. Can target_preopen before changing node. Call
5866 inf_child_open_target to push the target explicitly.
5867 (procfs_attach): Don't push the target if it is already pushed.
5868 (procfs_detach): Use inf_child_maybe_unpush_target.
5869 (procfs_create_inferior): Don't push the target if it is already
5871 (nto_native_ops): New global.
5872 (procfs_open): Reimplement.
5873 (procfs_native_open): New function.
5874 (init_procfs_targets): Install procfs_native_open as to_open of
5875 "target native". Store a pointer to the "native" target in
5877 * procfs.c (procfs_attach): Don't push the target if it is already
5879 (procfs_detach): Use inf_child_maybe_unpush_target.
5880 (procfs_mourn_inferior): Only unpush the target after mourning the
5881 inferior. Use inf_child_maybe_unpush_target.
5882 (procfs_init_inferior): Don't push the target if it is already
5884 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5885 if it is already pushed.
5887 2014-05-21 Pedro Alves <palves@redhat.com>
5889 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5890 and "procfs" targets are now called "native" instead.
5892 2014-05-21 Pedro Alves <palves@redhat.com>
5894 * go32-nat.c (go32_open): Delete.
5895 (go32_target): Don't override the to_open method.
5897 2014-05-21 Pedro Alves <palves@redhat.com>
5899 * nto-procfs.c (procfs_can_run): New function.
5900 (nto_procfs_ops): New global.
5901 (init_procfs_targets): New, based on procfs_target. Install
5902 "target native" in addition to "target procfs".
5903 (_initialize_procfs): Call init_procfs_targets instead of adding
5906 2014-05-21 Pedro Alves <palves@redhat.com>
5908 * windows-nat.c (windows_target): Don't override to_shortname,
5909 to_longname or to_doc.
5911 2014-05-21 Pedro Alves <palves@redhat.com>
5913 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5916 2014-05-21 Pedro Alves <palves@redhat.com>
5918 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5919 to_shortname, to_longname or to_doc.
5921 2014-05-21 Pedro Alves <palves@redhat.com>
5923 * go32-nat.c (go32_target): Don't override to_shortname,
5924 to_longname or to_doc.
5926 2014-05-21 Pedro Alves <palves@redhat.com>
5928 * inf-child.c (inf_child_open): Remove mention of "child".
5929 (inf_child_target): Rename target to "native" instead of "child".
5931 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5933 * Makefile.in (SFILES): Delete "regset.c".
5934 (COMMON_OBS): Delete "regset.o".
5936 * regset.h (regset_alloc): Delete prototype.
5938 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5940 * sparc-linux-tdep.c (sparc32_linux_gregset)
5941 (sparc32_linux_fpregset): New static regset structures.
5942 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5943 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5945 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5946 (sparc64_linux_fpregset): New static regset structures.
5947 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5948 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5949 New static regset structures.
5950 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5951 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5952 New static regset structures.
5953 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5954 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5955 New static regset structures.
5956 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5957 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5958 New static regset structures.
5959 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5961 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5963 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5964 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5965 register maps ("regmaps") from "*regset" to "*regmap". Do this
5966 for all regmap types and variables.
5967 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5968 (sparc32_linux_supply_core_gregset)
5969 (sparc32_linux_collect_core_gregset)
5970 (sparc32_linux_supply_core_fpregset)
5971 (sparc32_linux_collect_core_fpregset): Likewise.
5972 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5973 (sparc_gregmap, sparc_fpregmap): ... these.
5974 (sparc_supply_gregset, sparc_collect_gregset)
5975 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5976 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5977 (_initialize_sparc_nat): Rename regmaps.
5978 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5979 (sparc_gregmap, sparc_fpregmap): ... these.
5980 (sparc_supply_gregset, sparc_collect_gregset)
5981 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5982 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5984 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5985 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5987 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5989 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5990 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5991 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5993 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5994 (sparc32_bsd_fpregset): Rename to...
5995 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5996 (sparc32_bsd_fpregmap): ... these.
5997 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5998 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5999 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6000 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6001 (struct sparc_gregmap, struct sparc_fpregmap)
6002 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6003 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6004 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6005 (sparc32_supply_regset, sparc32_collect_gregset)
6006 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6008 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6009 (sparc64_linux_ptrace_gregmap): ... this.
6010 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6011 (_initialize_sparc64_linux_nat): Rename regmaps.
6012 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6013 (sparc64_linux_core_gregmap): ... this.
6014 (sparc64_linux_supply_core_gregset)
6015 (sparc64_linux_collect_core_gregset)
6016 (sparc64_linux_supply_core_fpregset)
6017 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6018 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6019 (sparc64_sol2_fpregset): Rename to...
6020 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6021 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6022 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6024 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6025 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6026 (sparc64_bsd_fpregset): Rename to...
6027 (struct sparc_gregmap, sparc64_sol2_gregmap)
6028 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6029 (sparc64_bsd_fpregmap): ... these.
6030 (sparc64_supply_gregset, sparc64_collect_gregset)
6031 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6033 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6034 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6035 (sparc64fbsd_gregmap): ... this.
6036 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6037 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6039 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6040 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6041 (sparc64nbsd_collect_fpregset): Likewise.
6042 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6043 (sparc64nbsd_gregmap): ... this.
6044 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6046 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6047 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6048 (sparc64obsd_gregmap): ... this.
6049 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6051 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6052 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6053 (sparc32nbsd_gregmap): ... this.
6054 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6057 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6059 * score-tdep.c (score7_linux_gregset): New static regset
6061 (score7_linux_regset_from_core_section): Remove dynamic regset
6063 (score_gdbarch_init): Drop allocation of tdep structure.
6064 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6066 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6068 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6070 (am33_regset_from_core_section): Remove dynamic regset
6073 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6075 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6076 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6078 (mips_linux_regset_from_core_section): Remove dynamic regset
6080 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6081 'gregset64', 'fpregset', and 'fpregset64'.
6082 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6083 deleted tdep fields.
6085 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6087 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6089 (amd64_regset_from_core_section): Remove dynamic regset
6091 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6093 (amd64obsd_regset_from_core_section): Remove dynamic regset
6095 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6097 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6098 x86-common regset supply function.
6099 * i386-tdep.c (i386_collect_gregset): Make static.
6100 (i386_gregset): New global regset structure.
6101 (i386_fpregset, i386_xstateregset): New static regset structures.
6102 (i386_regset_from_core_section): Remove dynamic regset
6104 (i386_gdbarch_init): Remove initialization of tdep fields
6105 'gregset', 'fpregset', and 'xstateregset'.
6106 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6107 'fpregset', and 'xstateregset'.
6108 (i386_collect_gregset): Remove prototype.
6109 (i386_gregset): New declaration.
6110 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6112 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6115 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6117 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6118 (arm_linux_vfpregset): New static regset structures.
6119 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6121 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6122 and 'vfpregset' fields.
6124 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6126 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6127 (aarch64_linux_fpregset): New static regset structures.
6128 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6129 of regset structures.
6130 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6133 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6135 * regset.h (struct regset): Remove gdbarch field.
6136 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6137 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6138 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6140 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6141 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6142 (ppc32_linux_vsxregset): Likewise.
6143 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6144 via the regcache instead of the regset.
6145 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6146 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6147 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6148 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6151 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6153 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6154 Constify structures.
6155 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6156 (alphanbsd_aout_gregset): Likewise.
6157 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6158 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6160 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6161 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6163 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6164 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6165 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6166 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6167 * m88k-tdep.c (m88k_gregset): Likewise.
6168 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6169 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6170 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6171 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6172 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6173 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6174 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6175 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6176 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6178 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6179 * sh-tdep.h (sh_corefile_gregset): Likewise.
6180 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6181 * vax-tdep.c (vax_gregset): Likewise.
6183 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6185 Fix TLS access for -static -pthread.
6186 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6187 (try_thread_db_load_1): Initialize it.
6188 (thread_db_get_thread_local_address): Call it if LM is zero.
6189 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6190 * target.h (struct target_ops) (to_get_thread_local_address): Add
6191 load_module_addr comment.
6193 2014-05-21 Pedro Alves <palves@redhat.com>
6195 * dcache.c (dcache_read_memory_partial): If reading the cache line
6196 fails, fallback to reading just the memory the caller wanted.
6198 2014-05-20 Doug Evans <dje@google.com>
6200 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6201 instead of get_current_arch.
6203 2014-05-20 Pedro Alves <palves@redhat.com>
6205 * NEWS: Mention that compare-sections now works with all targets.
6207 * remote.c (PACKET_qCRC): New enum value.
6208 (remote_verify_memory): Don't send qCRC if the target has no
6209 execution. Use packet_support/packet_ok. If the target doesn't
6210 support the qCRC packet, fallback to a deep memory copy.
6211 (compare_sections_command): Say "target image" instead of "remote
6213 (_initialize_remote): Add PACKET_qCRC to the list of config
6214 packets that have no associated command. Extend comment.
6215 * target.c (simple_verify_memory, default_verify_memory): New
6217 * target.h (struct target_ops) <to_verify_memory>: Default to
6218 default_verify_memory.
6219 (simple_verify_memory): New declaration.
6220 * target-delegates.c: Regenerate.
6222 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6224 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6226 2014-05-20 Hui Zhu <hui@codesourcery.com>
6227 Yao Qi <yao@codesourcery.com>
6230 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6231 and change address of sp and pc.
6233 2014-05-19 Tom Tromey <tromey@redhat.com>
6235 * gdbtypes.c (rank_function): Use XNEWVEC.
6236 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6238 2014-05-19 Doug Evans <dje@google.com>
6240 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6241 build_type_unit_groups and moved closer to only caller. Remove
6242 arguments. All references updated. Remove outdated .gdb_index
6244 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6245 build_type_psymtabs_1.
6247 2014-05-19 Doug Evans <dje@google.com>
6249 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6250 n_type_unit_groups, all_type_unit_groups. All uses removed.
6251 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6252 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6253 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6254 (add_type_unit_group_to_table): Delete.
6256 2014-05-19 Doug Evans <dje@google.com>
6258 * eval.c (evaluate_subexp_standard): Add some comments.
6260 2014-05-17 Doug Evans <xdje42@gmail.com>
6262 * progspace.c (remove_program_space): Delete, unused.
6263 * progspace.h (remove_program_space): Ditto.
6265 2014-05-17 Doug Evans <xdje42@gmail.com>
6267 * inferior.c (prune_inferiors): Fix comment.
6268 (remove_inferior_command): Call prune_program_spaces.
6270 2014-05-16 Doug Evans <dje@google.com>
6272 New command line option -D.
6274 * main.c (set_gdb_data_directory): New function.
6275 (captured_main): Recognize -D. Flag error for --data-directory "".
6276 Call set_gdb_data_directory.
6277 (print_gdb_help): Print --data-directory, -D.
6278 * main.h (set_gdb_data_directory): Declare.
6279 * top.c (staged_gdb_datadir): New static global.
6280 (set_gdb_datadir): Call set_gdb_data_directory
6281 (show_gdb_datadir): New function.
6282 (init_main): Update init of data-directory parameter.
6284 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6286 Import the "dirfd" gnulib module.
6287 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6288 * gnulib/aclocal.m4: Update.
6289 * gnulib/config.in: Update.
6290 * gnulib/configure: Update.
6291 * gnulib/import/Makefile.am: Update.
6292 * gnulib/import/Makefile.in: Update.
6293 * gnulib/import/dirfd.c: New.
6294 * gnulib/import/m4/dirfd.m4: New.
6295 * gnulib/import/m4/gnulib-cache.m4: Update.
6296 * gnulib/import/m4/gnulib-comp.m4: Update.
6298 2014-05-16 Pierre Muller <muller@sourceware.org>
6299 Yao Qi <yao@codesourcery.com>
6301 * valprint.c (print_wchar): Move the code on checking whether
6302 W is a printable wide char to the default branch of switch
6303 statement below. Call wchar_printable instead of gdb_iswprint.
6305 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6307 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6308 ldr.w and ldrd instructions.
6310 2014-05-15 Doug Evans <dje@google.com>
6312 * dwarf2read.c (read_structure_type): Delete outdated comments.
6314 2014-05-14 Tom Tromey <tromey@redhat.com>
6316 * macrocmd.c (print_macro_definition): Reindent.
6318 2014-05-13 Doug Evans <xdje42@gmail.com>
6320 * python/py-cmd.c (cmdpy_completer): Add comment.
6321 (completers): Make const.
6323 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6325 * infrun.c (resume): Remove should_resume (unused). Move up
6326 declaration of resume_ptid.
6328 2014-05-13 Tom Tromey <tromey@redhat.com>
6330 * language.h (unop_type_check): Remove.
6331 (binop_type_check): Don't declare.
6333 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6335 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6336 call to regcache_raw_collect.
6338 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6340 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6341 mi_console->quote as the quoting character.
6343 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6345 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6347 2014-04-29 Tom Tromey <tromey@redhat.com>
6349 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6350 "show debug varobj".
6352 2014-05-07 Kyle McMartin <kyle@redhat.com>
6354 Pushed by Joel Brobecker <brobecker@adacore.com>.
6355 * aarch64-tdep.c (aarch64_software_single_step): New function.
6356 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6357 with aarch64_software_single_step.
6359 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6363 2014-05-05 Keith Seitz <keiths@redhat.com>
6365 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6366 variable or history value is successfully parsed.
6368 2014-05-05 Yao Qi <yao@codesourcery.com>
6369 Pedro Alves <palves@redhat.com>
6371 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6372 address of blocks that intersects the requested range. Trim
6373 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6375 * ctf.c (ctf_xfer_partial): Likewise.
6377 2014-05-05 Yao Qi <yao@codesourcery.com>
6379 * printcmd.c (display_command): Remove the check to
6380 target_has_execution.
6382 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6384 * ppcobsd-nat.c: Include "obsd-nat.h".
6385 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6387 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6389 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6391 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6392 and 16-bit signed and unsigned arguments. Update comment.
6393 (stap_parse_probe_arguments): Extend code to handle such
6394 arguments. Use warning instead of complaint to notify about
6395 unrecognized bitness.
6397 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6399 PR breakpoints/16889
6400 * stap-probe.c (stap_parse_probe_arguments): Simplify
6401 check for non-prefixed probes (i.e., probes whose
6402 arguments do not start with "N@"). Always set the
6403 argument type to a sane value.
6405 2014-05-01 David Taylor <dtaylor@emc.com>
6407 * remote.c (compare_sections_command): Add -r option to compare
6408 all loadable read-only sections.
6410 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6412 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6413 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6415 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6416 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6417 Remove unused CORE_ADDR argument. Update all callers.
6419 2014-04-29 Pedro Alves <palves@redhat.com>
6421 * remote.c (struct packet_config) <detect>: Extend comment.
6422 (add_packet_config_cmd): Don't set the config's detect or support
6424 (init_all_packet_configs): Also initialize the config's 'detect'
6426 (reset_all_packet_configs_support): New function.
6427 (remote_open_1): Call reset_all_packet_configs_support instead of
6428 init_all_packet_configs.
6429 (_initialize_remote): Initialize all packet configs. Assert that
6430 all packets have an associated command, except a few known
6433 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6435 * dwarf2read.c (read_subrange_type): Handle dynamic
6436 DW_AT_lower_bound attributes.
6438 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6440 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6441 dynamic bounds before computing its upper bound.
6442 (ada_discrete_type_low_bound): Same as above with the lower bound.
6444 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6446 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6447 range types. Adjust the array handling implementation to
6448 take advantage of this change.
6449 (resolve_dynamic_range): New function, mostly extracted from
6450 resolve_dynamic_bounds.
6451 (resolve_dynamic_array): New function, mostly extracted from
6452 resolve_dynamic_bounds.
6453 (resolve_dynamic_bounds): Delete.
6454 (resolve_dynamic_type): Reimplement. Add handling of
6455 TYPE_CODE_RANGE types.
6457 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6459 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6460 handling of parallel ___XA types.
6462 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6464 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6465 unnecessary second call to static_unwrap_type.
6467 2014-04-27 Hui Zhu <hui@codesourcery.com>
6469 * stack.c (print_frame_info): Call do_gdb_disassembly with
6470 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6472 2014-04-26 Doug Evans <xdje42@gmail.com>
6474 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6476 2014-04-25 Pedro Alves <palves@redhat.com>
6479 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6480 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6481 and newline from built string.
6482 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6483 (linux_ptrace_attach_fail_reason): ... this.
6484 * linux-nat.c (linux_nat_attach): Adjust to use
6485 linux_ptrace_attach_fail_reason.
6487 2014-04-25 Pedro Alves <palves@redhat.com>
6489 * remote.c (struct remote_state): Remove multi_process_aware,
6490 non_stop_aware, cond_tracepoints, cond_breakpoints,
6491 breakpoint_commands, fast_tracepoints, static_tracepoints,
6492 install_in_trace, disconnected_tracing,
6493 enable_disable_tracepoints, string_tracing, and
6494 augmented_libraries_svr4_read fields.
6495 (remote_multi_process_p): Move further below in the file.
6496 (struct packet_config): Add comments.
6497 (update_packet_config): Delete function.
6498 (show_packet_config_cmd): Use packet_config_support.
6499 (add_packet_config_cmd): Use NULL as set callback.
6500 (packet_ok): "set remote foo-packet"-style commands no longer
6501 change config->supported -- adjust.
6502 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6503 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6504 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6505 (PACKET_QNonStop, PACKET_multiprocess_feature)
6506 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6507 (PACKET_DisconnectedTracing_feature)
6508 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6509 (set_remote_protocol_packet_cmd): Delete function.
6510 (packet_config_support, packet_support): New functions.
6511 (set_remote_protocol_Z_packet_cmd): Don't call
6512 update_packet_config.
6513 (remote_query_attached, remote_pass_signals)
6514 (remote_program_signals, remote_threads_info)
6515 (remote_threads_extra_info, remote_start_remote): Use
6517 (remote_start_remote): Use packet_config_support and
6519 (init_all_packet_configs): Set all packets to unknown support,
6520 instead of calling update_packet_config.
6521 (remote_check_symbols): Use packet_support.
6522 (remote_supported_packet): Unconditionally set the packet config's
6524 (remote_multi_process_feature, remote_non_stop_feature)
6525 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6526 (remote_breakpoint_commands_feature)
6527 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6528 (remote_install_in_trace_feature)
6529 (remote_disconnected_tracing_feature)
6530 (remote_enable_disable_tracepoint_feature)
6531 (remote_string_tracing_feature)
6532 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6533 (remote_protocol_features): Adjust to use remote_supported_packet
6534 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6535 "ConditionalTracepoints", "ConditionalBreakpoints",
6536 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6537 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6538 "EnableDisableTracepoints", and "tracenz".
6539 (remote_query_supported): Use packet_support.
6540 (remote_open_1): Adjust.
6541 (extended_remote_attach_1): Use packet_support. Switch on the
6542 result of packet_ok instead of checking whether the packet ended
6544 (remote_vcont_resume): Use packet_support.
6545 (remote_resume, remote_stop_ns, fetch_register_using_p)
6546 (remote_prepare_to_store, store_register_using_P)
6547 (check_binary_download, remote_write_bytes): Use packet_support.
6548 (remote_vkill): Use packet_support. Switch on the result of
6549 packet_ok instead of checking whether the packet ended up
6551 (extended_remote_supports_disable_randomization): Use
6553 (extended_remote_run): Switch on the result of packet_ok instead
6554 of checking whether the packet ended up disabled.
6555 (remote_insert_breakpoint, remote_remove_breakpoint)
6556 (remote_insert_watchpoint, remote_remove_watchpoint)
6557 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6559 (remote_search_memory): Use packet_config_support.
6560 (remote_get_thread_local_address, remote_get_tib_address)
6561 (remote_hostio_send_command, remote_can_execute_reverse): Use
6563 (remote_supports_cond_tracepoints)
6564 (remote_supports_cond_breakpoints)
6565 (remote_supports_fast_tracepoints)
6566 (remote_supports_static_tracepoints)
6567 (remote_supports_install_in_trace)
6568 (remote_supports_enable_disable_tracepoint)
6569 (remote_supports_string_tracing)
6570 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6571 the packet config says the feature is enabled or disabled.
6572 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6573 (remote_get_trace_status): Use packet_support.
6574 (remote_set_disconnected_tracing): Adjust to check whether the
6575 feature is enabled with packet_support.
6576 (remote_set_trace_buffer_size, remote_use_agent)
6577 (remote_can_use_agent, remote_supports_btrace): Use
6579 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6580 Use packet_config_support.
6581 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6582 the packet config says the feature is enabled or disabled.
6583 (set_range_stepping): Use packet_support.
6585 2014-04-25 Tom Tromey <tromey@redhat.com>
6587 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6590 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6592 * NEWS: Mention support for C99 variable length arrays.
6594 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6596 * ada-lang.c (standard_exc): Expand introductory comment.
6598 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6599 Walfred Tedeschi <walfred.tedeschi@intel.com>
6601 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6603 (amd64_linux_read_description): Add code to handle AVX512 xstate
6604 mask and return respective tdesc.
6605 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6606 and features/i386/x32-avx512-linux.c.
6607 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6608 (amd64_linux_core_read_description): Add code to handle AVX512
6609 xstate mask and return respective tdesc.
6610 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6611 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6613 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6614 (tdesc_amd64_avx512_linux): New prototype.
6615 (tdesc_x32_avx512_linux): Likewise.
6616 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6617 features/i386/x32-avx512.c.
6618 (amd64_ymm_avx512_names): New register names for pseudo
6620 (amd64_ymmh_avx512_names): New register names for raw registers
6622 (amd64_k_names): New register names for K registers.
6623 (amd64_zmmh_names): New register names for ZMM raw registers.
6624 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6625 (amd64_xmm_avx512_names): New register names for XMM16-31
6627 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6629 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6630 if feature is present.
6631 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6632 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6633 (AMD64_NUM_REGS): Adjust to new number of registers.
6634 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6635 registers supplied via XSTATE by AVX512 registers.
6636 (i386_linux_read_description): Add case for AVX512.
6637 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6638 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6639 (i386_linux_core_read_description): Add case for AVX512.
6640 (i386_linux_init_abi): Install supported register note section
6642 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6644 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6645 registers to be number of zmm7h + 1.
6646 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6647 * i386-tdep.c: Include features/i386/i386-avx512.c.
6648 (i386_zmm_names): Add ZMM pseudo register names array.
6649 (i386_zmmh_names): Add ZMM raw register names array.
6650 (i386_k_names): Add K raw register names array.
6651 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6652 registers. AVX512 has 16 more ZMM registers than there are YMM
6654 (i386_zmmh_regnum_p): Add function to look up register number of
6656 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6657 (i386_k_regnum_p): Likewise for K raw registers.
6658 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6659 registers added by AVX512.
6660 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6661 registers added by AVX512.
6662 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6664 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6665 (i386_pseudo_register_name): Add ZMM pseudo registers.
6666 (i386_zmm_type): Construct and return vector registers type for ZMM
6668 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6669 ZMM0-31 pseudo registers and K registers.
6670 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6671 and YMM16-31 registers from register cache.
6672 (i386_pseudo_register_write): Add code to write K, ZMM and
6674 (i386_register_reggroup_p): Add code to include/exclude AVX512
6675 registers in/from respective register groups.
6676 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6677 registers if feature is present in xcr0.
6678 (i386_gdbarch_init): Add code to initialize AVX512 feature
6679 variables in tdep structure, wire in pseudo registers and call
6680 initialize_tdesc_i386_avx512.
6681 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6683 (i386_regnum): Add AVX512 registers.
6684 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6685 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6686 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6687 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6689 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6690 (i386_ymm_avx512_regnum_p): Likewise.
6691 (i386_k_regnum_p): Likewise.
6692 (i386_zmm_regnum_p): Likewise.
6693 (i386_zmmh_regnum_p): Likewise.
6694 * i387-tdep.c : Update year in copyright notice.
6695 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6697 (XSAVE_YMM_AVX512_ADDR): New macro.
6698 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6700 (XSAVE_XMM_AVX512_ADDR): New macro.
6701 (xsave_avx512_k_offset): New table for K register offsets in
6703 (XSAVE_AVX512_K_ADDR): New macro.
6704 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6706 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6707 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6709 (i387_collect_xsave): Add code to collect AVX512 registers from
6711 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6712 of XMM16-31 registers.
6713 (I387_NUM_K_REGS): New define for number of K registers.
6714 (I387_K0_REGNUM): New define for K0 register number.
6715 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6716 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6717 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6719 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6720 (I387_XMM16_REGNUM): New define for XMM16 register number.
6721 (I387_YMM0_REGNUM): New define for YMM0 register number.
6722 (I387_KEND_REGNUM): New define for last K register number.
6723 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6724 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6726 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6728 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6730 * features/Makefile: Add AVX512 related files.
6731 * features/i386/32bit-avx512.xml: New file.
6732 * features/i386/64bit-avx512.xml: Likewise.
6733 * features/i386/amd64-avx512-linux.c: Likewise.
6734 * features/i386/amd64-avx512-linux.xml: Likewise.
6735 * features/i386/amd64-avx512.c: Likewise.
6736 * features/i386/amd64-avx512.xml: Likewise.
6737 * features/i386/i386-avx512-linux.c: Likewise.
6738 * features/i386/i386-avx512-linux.xml: Likewise.
6739 * features/i386/i386-avx512.c: Likewise.
6740 * features/i386/i386-avx512.xml: Likewise.
6741 * features/i386/x32-avx512-linux.c: Likewise.
6742 * features/i386/x32-avx512-linux.xml: Likewise.
6743 * features/i386/x32-avx512.c: Likewise.
6744 * features/i386/x32-avx512.xml: Likewise.
6745 * regformats/i386/amd64-avx512-linux.dat: New file.
6746 * regformats/i386/amd64-avx512.dat: Likewise.
6747 * regformats/i386/i386-avx512-linux.dat: Likewise.
6748 * regformats/i386/i386-avx512.dat: Likewise.
6749 * regformats/i386/x32-avx512-linux.dat: Likewise.
6750 * regformats/i386/x32-avx512.dat: Likewise.
6751 * NEWS: Add note about new support for AVX512.
6754 2014-04-23 Pedro Alves <palves@redhat.com>
6756 * breakpoint.c (insert_bp_location): Tolerate errors if the
6757 breakpoint is set in a user-loaded objfile.
6758 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6759 location is marked shlib_disabled. If the breakpoint is set in a
6760 user-loaded objfile is a GDB-side memory breakpoint, validate it
6761 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6762 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6764 * mem-break.c (memory_validate_breakpoint): New function.
6765 * objfiles.c (userloaded_objfile_contains_address_p): New
6767 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6768 * target.h (memory_validate_breakpoint): New declaration.
6770 2014-04-23 Pedro Alves <palves@redhat.com>
6772 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6773 the breakpoint is set in a shared library, only suppress
6774 errors for software breakpoints, not hardware breakpoints.
6776 2014-04-22 Pedro Alves <palves@redhat.com>
6778 * infrun.c (schedlock_applies): New function, factored out from
6779 find_thread_needs_step_over.
6780 (find_thread_needs_step_over): Use it.
6781 (switch_back_to_stepped_thread): Always clear trap_expected if the
6782 step over is finished. Return early if scheduler locking applies.
6783 Look for the stepping thread and a potential step-over thread with
6785 (currently_stepping_or_nexting_callback): Delete.
6787 2014-04-22 Nick Clifton <nickc@redhat.com>
6789 * NEWS: Mention that ARM sim now supports tracing.
6791 2014-04-22 Yao Qi <yao@codesourcery.com>
6793 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6795 * tracefile.c (tracefile_fetch_registers): ... it. New
6797 * tracefile.h (tracefile_fetch_registers): Declare.
6798 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6799 tracefile_fetch_registers.
6801 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6804 * windows-nat.c (thread_rec): Don't display a warning when
6805 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6806 fails for any reason, set th->suspended to -1, so that we don't
6807 try to resume such a thread. Also, don't return NULL in these
6808 cases, to avoid completely ruin the session due to "PC register is
6809 not available" error.
6810 (do_windows_fetch_inferior_registers): Check errors in
6811 GetThreadContext call.
6812 (windows_continue): Accept an additional argument KILLED; if not
6813 zero, ignore errors in the SetThreadContext call, since the
6814 inferior was killed and is shutting down.
6815 (windows_resume, get_windows_debug_event)
6816 (windows_create_inferior, windows_mourn_inferior)
6817 (windows_kill_inferior): All callers of windows_continue changed
6818 to adjust to its new calling sequence.
6820 2014-04-19 Yao Qi <yao@codesourcery.com>
6822 * ctf.c (ctf_open): Call post_create_inferior.
6824 2014-04-19 Yao Qi <yao@codesourcery.com>
6826 * ctf.c (handle_id): New static variable.
6827 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6828 value. Get the declaration of event "register" and get length
6829 of field "contents".
6831 2014-04-19 Yao Qi <yao@codesourcery.com>
6833 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6835 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6837 * valops.c (oload_method_static): Remove unnecessary argument
6838 METHOD. Update all callers.
6840 2014-04-18 Pedro alves <palves@redhat.com>
6841 Tom Tromey <tromey@redhat.com>
6844 * frame.c (get_prev_frame_1): Rename to ...
6845 (get_prev_frame_always): ... this, and make extern. Adjust.
6846 (skip_artificial_frames): Use get_prev_frame_always.
6847 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6848 (get_frame_unwind_stop_reason): Adjust to rename.
6849 * frame.h (get_prev_frame_always): Declare.
6850 * inline-frame.c: Include frame.h.
6851 (inline_frame_this_id): Use get_prev_frame_always.
6853 2014-04-18 Tristan Gingold <gingold@adacore.com>
6855 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6856 code by using bfd_mach_o_get_base_address.
6858 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6860 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6861 (spu_ax_pseudo_register_collect): New function.
6862 (spu_ax_pseudo_register_push_stack): Likewise.
6863 (spu_dwarf_reg_to_regnum): Likewise.
6864 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6866 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6868 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6869 Replace FRAME argument with FRAME_ID.
6870 * gdbarch.c, gdbarch.h: Regenerate.
6871 * findvar.c (default_value_from_register): Add GDBARCH argument;
6872 replace FRAME by FRAME_ID. No longer call get_frame_id.
6873 (value_from_register): Update call to gdbarch_value_from_register.
6874 * value.h (default_value_from_register): Update prototype.
6875 * s390-linux-tdep.c (s390_value_from_register): Update interface
6876 and call to default_value_from_register.
6877 * spu-tdep.c (spu_value_from_register): Likewise.
6879 * findvar.c (address_from_register): Remove TYPE argument.
6880 Do not call value_from_register; use gdbarch_value_from_register
6881 with null_frame_id instead.
6882 * value.h (address_from_register): Update prototype.
6883 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6884 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6885 address_from_register interface change.
6887 2014-04-17 Yao Qi <yao@codesourcery.com>
6889 * gdbtypes.h: Update comments to link to types and macros'
6892 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6894 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6896 2014-04-16 Keith Seitz <keiths@redhat.com>
6899 * dwarf2read.c (skip_one_die): Check that all relative-offset
6900 sibling DIEs fall within range of the current reader's buffer.
6901 (read_partial_die): Likewise.
6903 2014-04-16 Keith Seitz <keiths@redhat.com>
6906 * cp-namespace.c (lookup_symbol_file): If the type name of
6907 `this' is NULL, return immediately.
6909 2014-04-14 Keith Seitz <keiths@redhat.com>
6912 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6913 from symbol_matches_domain in symtab.c. All local callers
6914 of symbol_matches_domain updated.
6915 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6916 search STRUCT_DOMAIN.
6917 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6918 independently. standard_lookup will do that automatically.
6919 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6920 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6921 (cp_lookup_symbol_in_namespace): Likewise.
6922 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6923 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6924 may return a STRUCT_DOMAIN match.
6925 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6926 * cp-support.c: Include language.h.
6927 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6929 * psymtab.c (match_partial_symbol): Compare the requested
6930 domain with the symbol's domain directly.
6931 (lookup_partial_symbol): Likewise.
6932 * symtab.c (lookup_symbol_in_language): Explain when/why
6933 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6934 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6935 appropriate languages.
6936 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6937 and moved to ada-lang.c
6938 (lookup_block_symbol): Explain that this function only returns
6939 symbol matching the requested DOMAIN.
6940 Compare the requested domain with the symbol's domain directly.
6941 (iterate_over_symbols): Compare the requested domain with the
6942 symbol's domain directly.
6943 * symtab.h (symbol_matches_domain): Remove.
6945 2014-04-14 Tom Tromey <tromey@redhat.com>
6948 * c-exp.y (type_aggregate_p): New function.
6949 (qualified_name, classify_inner_name): Use it.
6950 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6951 and TYPE_TARGET_TYPE of an enum type.
6952 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6954 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6955 handle TYPE_DECLARED_CLASS.
6956 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6958 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6959 * valops.c (enum_constant_from_type): New function.
6960 (value_aggregate_elt): Use it.
6961 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6964 2014-04-14 Tom Tromey <tromey@redhat.com>
6966 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6967 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6969 * value.h (value_aggregate_elt): Update.
6971 2014-04-14 Tom Tromey <tromey@redhat.com>
6973 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6975 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6977 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6978 (evaluate_subexp_standard): Pass noside argument.
6979 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6980 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6981 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6982 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6983 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6985 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6987 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6988 points to a constant blob.
6990 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6992 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6993 property and store it as the high bound and flag the range accordingly.
6994 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6995 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6996 * gdbtypes.h (enum range_flags): New enum.
6997 (struct range_bounds): Add flags member.
6999 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7001 * c-typeprint.c (c_type_print_varspec_suffix): Added
7002 check for not yet resolved high bound. If unresolved, print
7003 "variable length" string to the console instead of random
7006 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7008 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7010 (ada_template_to_fixed_record_type_1): Likewise.
7011 (ada_to_fixed_type_1): Likewise.
7012 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7013 (cp_print_value): Likewise.
7014 * d-valprint.c (dynamic_array_type): Likewise.
7015 * findvar.c (address_of_variable): Likewise.
7016 * jv-valprint.c (java_value_print): Likewise.
7017 * valops.c (value_ind): Likewise.
7018 * value.c (coerce_ref): Likewise.
7020 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7022 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7023 value and retrieve the dynamic type size.
7025 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7027 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7028 passed to sizeof is dynamic evaluate the argument to compute the length.
7030 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7031 Joel Brobecker <brobecker@adacore.com>
7033 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7034 (dwarf2_evaluate_property): New function.
7035 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7036 * dwarf2read.c (attr_to_dynamic_prop): New function.
7037 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7039 * gdbtypes.c: Include dwarf2loc.h.
7040 (is_dynamic_type): New function.
7041 (resolve_dynamic_type): New function.
7042 (resolve_dynamic_bounds): New function.
7043 (get_type_length): New function.
7044 (check_typedef): Use get_type_length to compute type length.
7045 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7046 (TYPE_LOW_BOUND_KIND): New macro.
7047 (is_dynamic_type): New function prototype.
7048 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7049 to resolve dynamic properties of the type. Update comment.
7050 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7052 2014-04-14 Richard Henderson <rth@redhat.com>
7054 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7056 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7057 Doug Evans <xdje42@gmail.com>
7059 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7060 dereference TYPE_CODE_REF values.
7062 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7064 Revert the following changes due to regressions:
7066 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7067 (dwarf2_evaluate_property): New function.
7068 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7069 * dwarf2read.c (attr_to_dynamic_prop): New function.
7070 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7072 * gdbtypes.c: Include dwarf2loc.h.
7073 (is_dynamic_type): New function.
7074 (resolve_dynamic_type): New function.
7075 (resolve_dynamic_bounds): New function.
7076 (get_type_length): New function.
7077 (check_typedef): Use get_type_length to compute type length.
7078 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7079 (TYPE_LOW_BOUND_KIND): New macro.
7080 (is_dynamic_type): New function prototype.
7081 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7082 to resolve dynamic properties of the type. Update comment.
7083 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7085 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7086 passed to sizeof is dynamic evaluate the argument to compute the length.
7088 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7089 value and retrieve the dynamic type size.
7091 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7092 (ada_template_to_fixed_record_type_1): Likewise.
7093 (ada_to_fixed_type_1): Likewise.
7094 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7095 (cp_print_value): Likewise.
7096 * d-valprint.c (dynamic_array_type): Likewise.
7097 * eval.c (evaluate_subexp_with_coercion): Likewise.
7098 * findvar.c (address_of_variable): Likewise.
7099 * jv-valprint.c (java_value_print): Likewise.
7100 * valops.c (value_ind): Likewise.
7101 * value.c (coerce_ref): Likewise.
7103 * c-typeprint.c (c_type_print_varspec_suffix): Added
7104 check for not yet resolved high bound. If unresolved, print
7105 "variable length" string to the console instead of random
7108 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7109 property and store it as the high bound and flag the range accordingly.
7110 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7111 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7112 * gdbtypes.h (enum range_flags): New enum.
7113 (struct range_bounds): Add flags member.
7115 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7116 points to a constant blob.
7118 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7119 (evaluate_subexp_standard): Pass noside argument.
7120 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7121 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7122 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7123 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7124 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7126 2014-04-11 Keith Seitz <keiths@redhat.com>
7129 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7130 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7133 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7135 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7136 (evaluate_subexp_standard): Pass noside argument.
7137 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7138 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7139 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7140 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7141 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7145 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7146 points to a constant blob.
7148 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7150 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7151 property and store it as the high bound and flag the range accordingly.
7152 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7153 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7154 * gdbtypes.h (enum range_flags): New enum.
7155 (struct range_bounds): Add flags member.
7157 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7159 * c-typeprint.c (c_type_print_varspec_suffix): Added
7160 check for not yet resolved high bound. If unresolved, print
7161 "variable length" string to the console instead of random
7164 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7166 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7167 (ada_template_to_fixed_record_type_1): Likewise.
7168 (ada_to_fixed_type_1): Likewise.
7169 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7170 (cp_print_value): Likewise.
7171 * d-valprint.c (dynamic_array_type): Likewise.
7172 * eval.c (evaluate_subexp_with_coercion): Likewise.
7173 * findvar.c (address_of_variable): Likewise.
7174 * jv-valprint.c (java_value_print): Likewise.
7175 * valops.c (value_ind): Likewise.
7176 * value.c (coerce_ref): Likewise.
7178 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7180 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7181 value and retrieve the dynamic type size.
7183 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7185 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7186 passed to sizeof is dynamic evaluate the argument to compute the length.
7188 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7190 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7191 (dwarf2_evaluate_property): New function.
7192 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7193 * dwarf2read.c (attr_to_dynamic_prop): New function.
7194 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7196 * gdbtypes.c: Include dwarf2loc.h.
7197 (is_dynamic_type): New function.
7198 (resolve_dynamic_type): New function.
7199 (resolve_dynamic_bounds): New function.
7200 (get_type_length): New function.
7201 (check_typedef): Use get_type_length to compute type length.
7202 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7203 (TYPE_LOW_BOUND_KIND): New macro.
7204 (is_dynamic_type): New function prototype.
7205 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7206 to resolve dynamic properties of the type. Update comment.
7207 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7209 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7211 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7212 declaring high/low bounds and change uses accordingly. Call
7213 create_range_type instead of create_static_range_type.
7214 * gdbtypes.c (create_range_type): New function.
7215 (create_range_type): Convert bounds into struct bound_prop and pass
7216 them to create_range_type.
7217 * gdbtypes.h (struct bound_prop): New struct.
7218 (create_range_type): New function prototype.
7219 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7220 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7221 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7223 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7225 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7227 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7228 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7229 * ada-lang.c: All uses of create_range_type updated.
7230 * coffread.c: All uses of create_range_type updated.
7231 * dwarf2read.c: All uses of create_range_type updated.
7232 * f-exp.y: All uses of create_range_type updated.
7233 * m2-valprint.c: All uses of create_range_type updated.
7234 * mdebugread.c: All uses of create_range_type updated.
7235 * stabsread.c: All uses of create_range_type updated.
7236 * valops.c: All uses of create_range_type updated.
7237 * valprint.c: All uses of create_range_type updated.
7239 2014-04-10 Pedro Alves <palves@redhat.com>
7241 * breakpoint.c (single_step_breakpoints)
7242 (single_step_gdbarch): Move up in the file.
7243 (one_breakpoint_xfer_memory): New function, factored out from ...
7244 (breakpoint_xfer_memory): ... here. Also process single-step
7247 2014-04-09 Tristan Gingold <gingold@adacore.com>
7249 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7251 (darwin_decode_exception_message): Free port only after use.
7253 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7255 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7256 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7257 when setting the size of call_length.
7259 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7261 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7262 dereference TYPE_CODE_REF values.
7264 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7266 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7267 end of warning message.
7269 2014-04-03 Doug Evans <dje@google.com>
7271 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7272 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7274 2014-04-02 Alan Modra <amodra@gmail.com>
7276 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7277 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7278 (struct symbol_file_add_from_memory_args): Add size field.
7279 (find_vdso_size): New function.
7280 (add_vsyscall_page): Attempt to find vdso size.
7282 2014-04-01 Doug Evans <dje@google.com>
7284 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7286 2014-04-01 Tristan Gingold <gingold@adacore.com>
7288 * darwin-nat.c (darwin_encode_reply): Add prototype.
7289 (darwin_decode_exception_message): Reply to unknown inferiors.
7290 (darwin_decode_message): Handle message by id. Ignore message
7291 to unknown inferior.
7292 (darwin_wait): Discard unknown messages, add debug trace.
7294 2014-03-31 Doug Evans <dje@google.com>
7296 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7299 2014-03-31 Doug Evans <dje@google.com>
7301 New option "set print symbol-loading".
7303 * solib.c (solib_read_symbols): Only print symbol loading messages
7305 (solib_add): If symbol loading is in "brief" mode, notify user
7306 symbols are being loaded.
7307 (reload_shared_libraries_1): Ditto.
7308 * symfile.c (print_symbol_loading_off): New static global.
7309 (print_symbol_loading_brief): New static global.
7310 (print_symbol_loading_full): New static global.
7311 (print_symbol_loading_enums): New static global.
7312 (print_symbol_loading): New static global.
7313 (print_symbol_loading_p): New function.
7314 (symbol_file_add_with_addrs): Only print symbol loading messages
7316 (_initialize_symfile): Register "print symbol-loading" set/show
7318 * symfile.h (print_symbol_loading_p): Declare.
7320 2014-03-30 Doug Evans <xdje42@gmail.com>
7322 * infrun.c (set_last_target_status): New function.
7323 (handle_inferior_event): Call it.
7325 2014-03-30 Doug Evans <xdje42@gmail.com>
7327 * inferior.h (enum stop_kind): Improve comment.
7329 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7331 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7332 a reference, strip the reference layer before calling
7333 the lang_ops value_has_mutated callback.
7335 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7337 Remove some globals from our parser.
7338 * language.c (unk_lang_parser): Add "struct parser_state"
7340 * language.h (struct language_defn) <la_parser>: Likewise.
7341 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7342 (initialize_expout): Add "struct parser_state" argument.
7343 Rewrite function to use the parser state.
7344 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7345 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7346 write_exp_elt_longcst, write_exp_elt_dblcst,
7347 write_exp_elt_decfloatcst, write_exp_elt_type,
7348 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7349 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7350 write_dollar_variable): Likewise.
7351 (parse_exp_in_context_1): Use parser state.
7352 (insert_type_address_space): Add "struct parser_state" argument.
7354 (increase_expout_size): New function.
7355 * parser-defs.h: Forward declare "struct language_defn" and
7356 "struct parser_state".
7357 (expout, expout_size, expout_ptr): Remove extern declarations.
7358 (parse_gdbarch, parse_language): Rewrite macro declarations to
7359 accept the parser state.
7360 (struct parser_state): New struct.
7361 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7362 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7363 write_exp_elt_decfloatcst, write_exp_elt_type,
7364 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7365 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7366 write_exp_msymbol, write_dollar_variable,
7367 mark_struct_expression, insert_type_address_space): Add "struct
7368 parser_state" argument.
7369 (increase_expout_size): New function.
7370 * utils.c (do_clear_parser_state): New function.
7371 (make_cleanup_clear_parser_state): Likewise.
7372 * utils.h (make_cleanup_clear_parser_state): New function
7374 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7375 Update calls to write_exp* in order to pass the parser state.
7376 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7377 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7378 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7379 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7380 * stap-probe.c (stap_parse_register_operand): Likewise.
7381 (stap_parse_single_operand): Likewise.
7382 (stap_parse_argument_1): Likewise.
7383 (stap_parse_argument): Use parser state.
7384 * stap-probe.h: Include "parser-defs.h".
7385 (struct stap_parse_info) <pstate>: New field.
7386 * c-exp.y (parse_type): Rewrite to use parser state.
7387 (yyparse): Redefine to c_parse_internal.
7388 (pstate): New global variable.
7389 (parse_number): Add "struct parser_state" argument.
7390 (write_destructor_name): Likewise.
7391 (type_exp): Update calls to write_exp* and similars in order to
7393 (exp1, exp, variable, qualified_name, space_identifier,
7394 typename, typebase): Likewise.
7395 (write_destructor_name, parse_number, lex_one_token,
7396 classify_name, classify_inner_name, c_parse): Add "struct
7397 parser_state" argument. Update function to use parser state.
7398 * c-lang.h: Forward declare "struct parser_state".
7399 (c_parse): Add "struct parser_state" argument.
7400 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7401 (yyparse): Redefine macro to ada_parse_internal.
7402 (pstate): New variable.
7403 (write_int, write_object_renaming, write_var_or_type,
7404 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7405 type_int, type_long, type_long_long, type_float, type_double,
7406 type_long_double, type_char, type_boolean, type_system_address):
7407 Add "struct parser_state" argument.
7408 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7409 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7410 var_or_type, aggregate, aggregate_component_list,
7411 positional_list, others, component_group,
7412 component_associations): Update calls to write_exp* and similar
7413 functions in order to use parser state.
7414 (ada_parse, write_var_from_sym, write_int,
7415 write_exp_op_with_string, write_object_renaming,
7416 find_primitive_type, write_selectors, write_ambiguous_var,
7417 write_var_or_type, write_name_assoc, type_int, type_long,
7418 type_long_long, type_float, type_double, type_long_double,
7419 type_char, type_boolean, type_system_address): Add "struct
7420 parser_state" argument. Adjust function to use parser state.
7421 * ada-lang.c (parse): Likewise.
7422 * ada-lang.h: Forward declare "struct parser_state".
7423 (ada_parse): Add "struct parser_state" argument.
7424 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7425 calls to both functions.
7426 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7428 (yyparse): Redefine macro to f_parse_internal.
7429 (pstate): New variable.
7430 (parse_number): Add "struct parser_state" argument.
7431 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7432 and similars in order to use parser state.
7433 (parse_number): Adjust code to use parser state.
7435 (f_parse): New function.
7436 * f-lang.h: Forward declare "struct parser_state".
7437 (f_parse): Add "struct parser_state" argument.
7438 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7440 (yyparse): Redefine macro for java_parse_internal.
7441 (pstate): New variable.
7442 (push_expression_name, push_expression_name, insert_exp): Add
7443 "struct parser_state" argument.
7444 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7445 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7446 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7447 PostIncrementExpression, PostDecrementExpression,
7448 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7449 UnaryExpressionNotPlusMinus, CastExpression,
7450 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7451 RelationalExpression, EqualityExpression, AndExpression,
7452 ExclusiveOrExpression, InclusiveOrExpression,
7453 ConditionalAndExpression, ConditionalOrExpression,
7454 ConditionalExpression, Assignment, LeftHandSide): Update
7455 calls to write_exp* and similars in order to use parser state.
7456 (parse_number): Ajust code to use parser state.
7458 (java_parse): New function.
7459 (push_variable): Add "struct parser_state" argument. Adjust
7460 code to user parser state.
7461 (push_fieldnames, push_qualified_expression_name,
7462 push_expression_name, insert_exp): Likewise.
7463 * jv-lang.h: Forward declare "struct parser_state".
7464 (java_parse): Add "struct parser_state" argument.
7465 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7467 (yyparse): Redefine macro to m2_parse_internal.
7468 (pstate): New variable.
7469 (type_exp, exp, fblock, variable, type): Update calls to
7470 write_exp* and similars to use parser state.
7472 (m2_parse): New function.
7473 * m2-lang.h: Forward declare "struct parser_state".
7474 (m2_parse): Add "struct parser_state" argument.
7475 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7476 * objc-lang.h: Forward declare "struct parser_state".
7477 (end_msglist): Add "struct parser_state" argument.
7478 * p-exp.y (parse_type): Rewrite macro to use parser state.
7479 (yyparse): Redefine macro to pascal_parse_internal.
7480 (pstate): New variable.
7481 (parse_number): Add "struct parser_state" argument.
7482 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7483 write_exp* and similars in order to use parser state.
7484 (parse_number, yylex): Adjust code to use parser state.
7485 (pascal_parse): New function.
7486 * p-lang.h: Forward declare "struct parser_state".
7487 (pascal_parse): Add "struct parser_state" argument.
7488 * go-exp.y (parse_type): Rewrite macro to use parser state.
7489 (yyparse): Redefine macro to go_parse_internal.
7490 (pstate): New variable.
7491 (parse_number): Add "struct parser_state" argument.
7492 (type_exp, exp1, exp, variable, type): Update calls to
7493 write_exp* and similars in order to use parser state.
7494 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7495 to use parser state.
7496 (go_parse): Likewise.
7497 * go-lang.h: Forward declare "struct parser_state".
7498 (go_parse): Add "struct parser_state" argument.
7500 2014-03-27 Doug Evans <dje@google.com>
7502 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7504 2014-03-27 Doug Evans <dje@google.com>
7506 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7507 Remove argument abbrev_section. All callers updated.
7509 2014-03-27 Doug Evans <dje@google.com>
7511 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7512 addr_base, ranges_base.
7514 2014-03-26 Keith Seitz <keiths@redhat.com>
7516 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7517 types, not VAR_DOMAIN.
7519 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7521 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7523 * features/nios2-linux.c: Regenerated.
7524 * features/nios2.c: Regenerated.
7526 2014-03-25 Pedro Alves <palves@redhat.com>
7528 * cli/cli-script.c (script_from_file): Force the interpreter to
7531 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7533 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7534 small stack allocation.
7536 2014-03-24 Tristan Gingold <gingold@adacore.com>
7538 * darwin-nat.c (exc_server): Remove unused prototype.
7539 (darwin_dump_message): Correctly display data on x86_64.
7540 (darwin_encode_reply): Fix style.
7541 Add comments and fix indentation.
7543 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7545 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7547 2014-03-22 Doug Evans <xdje42@gmail.com>
7549 * infcmd.c: Whitespace fixes.
7550 (interrupt_command): Merge two function comments into one.
7552 2014-03-22 Doug Evans <xdje42@gmail.com>
7554 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7557 2014-03-22 Yao Qi <yao@codesourcery.com>
7559 * remote.c (target_read_live_memory): Remove.
7560 (memory_xfer_live_readonly_partial): Rename it to
7561 remote_xfer_live_readonly_partial. Remove argument 'object'.
7562 All callers updated. Call remote_read_bytes_1
7563 instead of target_read_live_memory.
7564 * tracepoint.c (set_traceframe_number): Remove.
7565 (make_cleanup_restore_traceframe_number): Likewise .
7566 * tracepoint.h (set_traceframe_number): Remove declaration.
7567 (make_cleanup_restore_traceframe_number): Likewise.
7569 2014-03-22 Yao Qi <yao@codesourcery.com>
7571 * remote.c (remote_read_bytes): Move code on reading from the
7573 (remote_read_bytes_1): ... here. New function.
7575 2014-03-22 Yao Qi <yao@codesourcery.com>
7577 * ctf.c (ctf_xfer_partial): Check the return value of
7578 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7579 return TARGET_XFER_UNAVAILABLE.
7580 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7581 * target.c (target_read_live_memory): Move it to remote.c.
7582 (memory_xfer_live_readonly_partial): Likewise.
7583 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7584 * remote.c (target_read_live_memory): Moved from target.c.
7585 (memory_xfer_live_readonly_partial): Likewise.
7586 (remote_read_bytes): Factored out from
7587 memory_xfer_partial_1.
7589 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7591 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7594 2014-03-21 Pedro Alves <palves@redhat.com>
7596 * infrun.c (normal_stop): Extend comment.
7598 2014-03-21 Hui Zhu <hui@codesourcery.com>
7599 Pedro Alves <palves@redhat.com>
7601 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7603 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7604 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7605 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7607 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7609 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7610 `z' formatted output modifier.
7612 2014-03-20 Tom Tromey <tromey@redhat.com>
7613 Sergio Durigan Junior <sergiodj@redhat.com>
7615 * probe.c (parse_probes): Turn assert into an ordinary error.
7616 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7617 exceptions when parsing probes. Rearrange the code for clarity.
7619 2014-03-20 Tom Tromey <tromey@redhat.com>
7622 * top.c (execute_command): Only dispatch events if the command
7625 2014-03-20 Tom Tromey <tromey@redhat.com>
7628 * infcall.c: Include event-top.h.
7629 (run_inferior_call): Call async_disable_stdin if needed.
7631 2014-03-20 Pedro Alves <palves@redhat.com>
7633 * infrun.c (prepare_to_proceed): Delete.
7634 (thread_still_needs_step_over): New function.
7635 (find_thread_needs_step_over): New function.
7636 (proceed): If the current thread needs a step-over, set its
7637 steping_over_breakpoint flag. Adjust to use
7638 find_thread_needs_step_over instead of prepare_to_proceed.
7639 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7640 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7642 (switch_back_to_stepped_thread): Step over breakpoints of all
7643 threads not the stepping thread, before switching back to the
7646 2014-03-20 Pedro Alves <palves@redhat.com>
7648 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7650 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7651 * infrun.c (saved_singlestep_ptid)
7652 (stepping_past_singlestep_breakpoint): Delete.
7653 (resume): Remove stepping_past_singlestep_breakpoint handling.
7654 (proceed): Store the prev_pc of the stepping thread too.
7655 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7657 (enum infwait_states): Delete infwait_thread_hop_state.
7658 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7660 (handle_inferior_event): Adjust.
7661 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7662 handling and the thread-hop code. Before removing single-step
7663 breakpoints, check whether the thread hit a single-step breakpoint
7664 of another thread. If it did, the trap is not a random signal.
7665 (switch_back_to_stepped_thread): If the event thread hit a
7666 single-step breakpoint, unblock it before switching to the
7667 stepping thread. Handle the case of the stepped thread having
7669 (keep_going): Handle the case of the current thread moving past a
7670 single-step breakpoint.
7672 2014-03-20 Pedro Alves <palves@redhat.com>
7675 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7676 are being stepped over.
7677 (breakpoint_address_match): Make extern.
7678 * breakpoint.h (breakpoint_address_match): New declaration.
7679 * inferior.h (stepping_past_instruction_at): New declaration.
7680 * infrun.c (struct step_over_info): New type.
7681 (step_over_info): New global.
7682 (set_step_over_info, clear_step_over_info)
7683 (stepping_past_instruction_at): New functions.
7684 (handle_inferior_event): Clear the step-over info when
7685 trap_expected is cleared.
7686 (resume): Remove now stale comment.
7687 (clear_proceed_status): Clear step-over info.
7688 (proceed): Adjust step-over handling to set or clear the step-over
7689 info instead of removing all breakpoints.
7690 (handle_signal_stop): When setting up a thread-hop, don't remove
7692 (stop_stepping): Clear step-over info.
7693 (keep_going): Adjust step-over handling to set or clear step-over
7694 info and then always inserting breakpoints, instead of removing
7695 all breakpoints when stepping over one.
7697 2014-03-20 Pedro Alves <palves@redhat.com>
7699 * infrun.c (previous_inferior_ptid): Adjust comment.
7700 (deferred_step_ptid): Delete.
7701 (infrun_thread_ptid_changed, prepare_to_proceed)
7702 (init_wait_for_inferior): Adjust.
7703 (handle_signal_stop): Delete deferred_step_ptid handling.
7705 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7708 * defs.h (sync_quit_force_run): New declaration.
7709 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7710 * event-top.c (async_sigterm_handler): New declaration.
7711 (async_sigterm_token): New variable.
7712 (async_init_signals): Create also async_sigterm_token.
7713 (async_sigterm_handler): New function.
7714 (sync_quit_force_run): New variable.
7715 (handle_sigterm): Replace quit_force call by other calls.
7716 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7718 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7720 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7721 offset into SPE pseudo registers.
7723 2014-03-18 Pedro Alves <palves@redhat.com>
7726 * inferior.h (print_stop_event): Declare.
7727 * infrun.c (print_stop_event): New, factored out from ...
7728 (normal_stop): ... this.
7729 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7730 of bpstat_print/print_stack_frame.
7732 2014-03-17 Tom Tromey <tromey@redhat.com>
7734 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7736 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7738 * ada-lang.c (decode_constrained_packed_array): Perform a
7739 minimal coercion for reference with coerce_ref instead of
7742 2014-03-17 Tristan Gingold <gingold@adacore.com>
7744 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7745 (darwin_solib_create_inferior_hook): Emit a warning if version
7748 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7750 * python/py-value.c (get_field_flag): Cast flag_name argument to
7751 PyObject_GetAttrString to support Python 2.4.
7753 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7755 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7756 (Global Maintainers): Remove Jan Kratochvil.
7758 2014-03-14 Pedro Alves <palves@redhat.com>
7760 * inferior.h (terminal_ours_for_output): Rename to ...
7761 (child_terminal_ours_for_output): ... this.
7762 (terminal_save_ours): Rename to ...
7763 (child_terminal_save_ours): ... this.
7764 (terminal_ours): Rename to ...
7765 (child_terminal_ours): ... this.
7766 (terminal_inferior): Rename to ...
7767 (child_terminal_inferior): ... this.
7768 (terminal_init_inferior): Rename to ...
7769 (child_terminal_init_inferior): ... this.
7770 (terminal_init_inferior_with_pgrp): Rename to ...
7771 (child_terminal_init_inferior_with_pgrp): ... this.
7772 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7773 (child_terminal_init_with_pgrp): ... this.
7774 (terminal_save_ours): Rename to ...
7775 (child_terminal_save_ours): ... this.
7776 (terminal_init_inferior): Rename to ...
7777 (child_terminal_init): ... this. Adjust.
7778 (terminal_inferior): Rename to ...
7779 (child_terminal_inferior): ... this.
7780 (terminal_ours_for_output): Rename to ...
7781 (child_terminal_ours_for_output): ... this. Adjust.
7782 (terminal_ours): Rename to ...
7783 (child_terminal_ours): ... this.
7784 (terminal_ours_1): Rename to ...
7785 (child_terminal_ours_1): ... this. Adjust.
7786 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7787 * windows-nat.c (do_initial_windows_stuff): Adjust.
7788 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7789 (gnu_terminal_init): ... this. Adjust.
7790 (gnu_target): Adjust.
7791 * inf-child.c (inf_child_target): Adjust.
7793 2014-03-13 Doug Evans <xdje42@gmail.com>
7796 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7799 2014-03-13 Doug Evans <xdje42@gmail.com>
7801 * value.c (record_latest_value): Call release_value_or_incref
7802 instead of release_value.
7804 2014-03-13 Pedro Alves <palves@redhat.com>
7806 * procfs.c (procfs_target): Don't override to_shortname,
7807 to_longname or to_doc.
7809 2014-03-13 Pedro Alves <palves@redhat.com>
7811 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7812 Unix in user visible strings.
7814 2014-03-12 Stan Shebs <stan@codesourcery.com>
7816 * gdbtypes.h: Annotate comments for Doxygen, add a page
7817 block comment with some general info.
7819 2014-03-12 Pedro Alves <palves@redhat.com>
7821 * infcmd.c (prepare_execution_command): New function, factored out
7822 from several execution commands.
7823 (run_command_1, continue_command, step_1, jump_command)
7824 (signal_command, until_command, advance_command, finish_command)
7825 (attach_command): Use prepare_execution_command.
7827 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7829 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7832 (struct arm_linux_thread_points): Removed.
7833 (struct arm_linux_process_info): New.
7834 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7835 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7836 (arm_linux_find_breakpoints_by_tid): Removed.
7837 (struct arch_lwp_info): New.
7838 (arm_linux_find_process_pid): New functions.
7839 (arm_linux_add_process): New functions.
7840 (arm_linux_process_info_get): New functions.
7841 (arm_linux_forget_process): New function.
7842 (arm_linux_get_debug_reg_state): New function.
7843 (struct update_registers_data): New.
7844 (update_registers_callback): New function.
7845 (arm_linux_insert_hw_breakpoint1): Updated.
7846 (arm_linux_remove_hw_breakpoint1): Updated.
7847 (arm_linux_insert_hw_breakpoint): Updated.
7848 (arm_linux_remove_hw_breakpoint): Updated.
7849 (arm_linux_insert_watchpoint): Updated.
7850 (arm_linux_remove_watchpoint): Updated.
7851 (arm_linux_new_thread): Updated.
7852 (arm_linux_prepare_to_resume): New function.
7853 (arm_linux_new_fork): New function.
7854 (_initialize_arm_linux_nat): Updated.
7856 2014-03-12 Pedro Alves <palves@redhat.com>
7858 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7860 2014-03-12 Tom Tromey <tromey@redhat.com>
7862 * inf-child.c (return_zero): New function.
7863 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7864 * aix-thread.c (aix_thread_inferior_created): New function.
7865 (aix_thread_attach): Remove.
7866 (init_aix_thread_ops): Don't set to_attach.
7867 (_initialize_aix_thread): Register inferior_created observer.
7868 * corelow.c (init_core_ops): Don't set to_attach or
7870 * exec.c (init_exec_ops): Don't set to_attach or
7872 * infcmd.c (run_command_1): Use find_run_target. Make direct
7874 (attach_command): Use find_attach_target. Make direct target
7876 * record-btrace.c (init_record_btrace_ops): Don't set
7878 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7880 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7881 set to_create_inferior.
7882 * target.c (complete_target_initialization): Add assertion.
7883 (target_create_inferior): Remove.
7884 (find_default_attach, find_default_create_inferior): Remove.
7885 (find_attach_target, find_run_target): New functions.
7886 (find_default_is_async_p, find_default_can_async_p)
7887 (target_supports_non_stop, target_attach): Remove.
7888 (init_dummy_target): Don't set to_create_inferior or
7889 to_supports_non_stop.
7890 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7891 TARGET_DEFAULT_FUNC.
7892 <to_create_inferior>: Add comment.
7893 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7894 TARGET_DEFAULT_RETURN.
7895 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7896 (find_attach_target, find_run_target): Declare.
7897 (target_create_inferior): Remove.
7898 (target_has_execution_1): Update comment.
7899 (target_supports_non_stop): Remove.
7900 * target-delegates.c: Rebuild.
7902 2014-03-12 Pedro Alves <palves@redhat.com>
7904 * inf-child.h: Update comment to not mention Unix.
7906 2014-03-12 Pedro Alves <palves@redhat.com>
7908 * inf-child.c: Update top comment to not mention Unix. Add
7909 generic comment describing how this target is meant to be used.
7910 (inf_child_post_attach, inf_child_post_startup_inferior)
7911 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7914 2014-03-12 Pedro Alves <palves@redhat.com>
7916 * nto-procfs.c: Include inf-child.h.
7917 (procfs_ops): Delete global.
7918 (procfs_can_run): Delete method.
7919 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7920 target pointer instead of referencing procfs_ops.
7921 (procfs_prepare_to_store): Delete.
7922 (init_procfs_ops): Delete function.
7923 (procfs_target): New function, based on init_procfs_ops, but
7924 inherit inf_child_target.
7925 (_initialize_procfs): Use procfs_target.
7927 2014-03-12 Pedro Alves <palves@redhat.com>
7929 * windows-nat.c: Include inf-child.h.
7930 (windows_ops): Delete global.
7931 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7933 (init_windows_ops): Delete function.
7934 (windows_target): New function, based on init_windows_ops, but
7935 inherit inf_child_target.
7936 (_initialize_windows_nat): Use windows_target. Install x86
7937 specific target methods here.
7939 2014-03-10 Doug Evans <xdje42@gmail.com>
7941 * guile/guile.c (call_initialize_gdb_module): New function.
7942 (initialize_guile): Replace call to scm_init_guile with call to
7945 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7947 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7948 in call to TYPE_CODE macro.
7950 2014-03-10 Jerome Guitton <guitton@adacore.com>
7952 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7953 Resolve tagged types to full view.
7955 2014-03-10 Hui Zhu <hui@codesourcery.com>
7957 * target.h (target_insert_breakpoint): Remove "hardware" from its
7960 2014-03-07 Doug Evans <dje@google.com>
7962 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7964 2014-03-07 Doug Evans <dje@google.com>
7966 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7967 Remove unused local comp_dir_attr. Assert exactly one of
7968 stub_comp_unit_die, stub_comp_dir is non-NULL.
7970 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7972 * target.h (complete_target_initialization, add_target):
7975 2014-03-07 Pedro Alves <palves@redhat.com>
7977 * go32-nat.c: Include inf-child.h.
7978 (go32_ops): Delete global.
7979 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7981 (go32_create_inferior): Push the passed in target pointer instead
7982 of referencing go32_ops.
7983 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7984 (go32_target): New function, based on init_go32_ops, but inherit
7986 (_initialize_go32_nat): Use go32_target. Move parts of
7989 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7991 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7992 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7993 SYMBOL_VALUE_ADDRESS.
7994 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7996 2014-03-06 Yao Qi <yao@codesourcery.com>
7998 * breakpoint.c (get_tracepoint_by_number): Remove argument
7999 optional_p. All callers updated. Adjust comments. Update
8001 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8003 2014-03-06 Yao Qi <yao@codesourcery.com>
8005 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8006 early if get_number returns zero. Use 'p' instead of 'args'.
8008 2014-03-06 Yao Qi <yao@codesourcery.com>
8010 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8013 2014-03-06 Yao Qi <yao@codesourcery.com>
8015 PR breakpoints/16508
8016 * tracepoint.c (check_trace_running): New function.
8017 (trace_find_command): Move code to check_trace_running and
8018 call check_trace_running.
8019 (trace_find_pc_command): Likewise.
8020 (trace_find_tracepoint_command): Likewise.
8021 (trace_find_line_command): Likewise.
8022 (trace_find_range_command): Likewise.
8023 * tracepoint.h (check_trace_running): Likewise.
8024 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8026 2014-03-06 Yao Qi <yao@codesourcery.com>
8028 * target.h (struct target_ops) <to_traceframe_info>: Use
8029 TARGET_DEFAULT_NORETURN (tcomplain ()).
8030 * target-delegates.c: Regenerated.
8032 2014-03-05 Pedro Alves <palves@redhat.com>
8035 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8036 void. Update comment.
8037 (dcache_xfer_memory): Delete.
8038 (dcache_read_memory_partial): New, based on the read bits of
8040 (dcache_update): Add status parameter. Use ULONGEST for len, and
8041 adjust. Discard cache lines if the reason for the update was
8043 * dcache.h (dcache_xfer_memory): Delete declaration.
8044 (dcache_read_memory_partial): New declaration.
8045 (dcache_update): Update prototype.
8046 * target.c (raw_memory_xfer_partial): Update the dcache here.
8047 (memory_xfer_partial_1): Don't handle dcache writes here.
8049 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8051 * remote-sim.c (gdbsim_load): Add const to prog.
8053 2014-03-03 Tom Tromey <tromey@redhat.com>
8055 * elfread.c (probe_key): Change to bfd_data.
8056 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8057 now per-BFD, not per-objfile.
8058 * stap-probe.c (stap_probe_destroy): Update comment.
8059 (handle_stap_probe): Allocate on the per-BFD obstack.
8061 2014-03-03 Tom Tromey <tromey@redhat.com>
8063 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8064 * breakpoint.c (create_longjmp_master_breakpoint): Use
8066 (add_location_to_breakpoint, bkpt_probe_insert_location)
8067 (bkpt_probe_remove_location): Update.
8068 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8069 * elfread.c (elf_symfile_relocate_probe): Remove.
8070 (elf_probe_fns): Update.
8071 (insert_exception_resume_breakpoint): Change type of "probe"
8072 parameter to bound_probe.
8073 (check_exception_resume): Update.
8074 * objfiles.c (objfile_relocate1): Don't relocate probes.
8075 * probe.c (bound_probe_s): New typedef.
8076 (parse_probes): Use get_probe_address. Set sal's objfile.
8077 (find_probe_by_pc): Return a bound_probe.
8078 (collect_probes): Return a VEC(bound_probe_s).
8079 (compare_probes): Update.
8080 (gen_ui_out_table_header_info): Change type of "probes"
8082 (info_probes_for_ops): Update.
8083 (get_probe_address): New function.
8084 (probe_safe_evaluate_at_pc): Update.
8085 * probe.h (struct probe_ops) <get_probe_address>: New field.
8086 <set_semaphore, clear_semaphore>: Add objfile parameter.
8087 (struct probe) <objfile>: Remove field.
8089 <address>: Update comment.
8090 (struct bound_probe): New.
8091 (find_probe_by_pc): Return a bound_probe.
8092 (get_probe_address): Declare.
8093 * solib-svr4.c (struct probe_and_action) <address>: New field.
8094 (hash_probe_and_action, equal_probe_and_action): Update.
8095 (register_solib_event_probe): Add address parameter.
8096 (solib_event_probe_at): Update.
8097 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8099 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8100 (stap_get_probe_address): New function.
8101 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8102 (compile_probe_arg): Update.
8103 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8105 (handle_stap_probe): Don't relocate the probe.
8106 (stap_relocate): Remove.
8107 (stap_gen_info_probes_table_values): Update.
8108 (stap_probe_ops): Remove stap_relocate.
8109 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8110 (debug_sym_probe_fns): Update.
8111 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8112 * symtab.c (init_sal): Use memset.
8113 * symtab.h (struct symtab_and_line) <objfile>: New field.
8114 * tracepoint.c (start_tracing, stop_tracing): Update.
8116 2014-03-03 Tom Tromey <tromey@redhat.com>
8118 * probe.h (parse_probes, find_probe_by_pc)
8119 (find_probes_in_objfile): Fix comments.
8121 2014-03-02 Doug Evans <xdje42@gmail.com>
8123 * infrun.c (handle_signal_stop): Replace test for
8124 TARGET_WAITKIND_STOPPED with an assert.
8126 2014-03-02 Doug Evans <xdje42@gmail.com>
8128 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8130 2014-03-02 Doug Evans <xdje42@gmail.com>
8132 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8134 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8136 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8138 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8140 * i386obsd-nat.c: Include "obsd-nat.h".
8141 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8143 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8145 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8147 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8149 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8151 * mips64obsd-nat.c: Include "obsd-nath".
8152 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8154 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8156 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8158 * amd64obsd-nat.c: Include "obsd-nat,h.
8159 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8161 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8163 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8165 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8166 (find_overload_match): Update call to find_oload_champ.
8167 (find_oload_champ_namespace_loop): Likewise
8169 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8171 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8173 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8174 * config/sparc/obsd64.mh: New file.
8175 * sparc64obsd-nat.c: New file.
8177 * obsd-nat.h: New file.
8178 * obsd-nat.c: New file.
8179 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8180 (ALLDEPFILES): Add obsd-nat.c.
8182 2014-02-28 Tom Tromey <tromey@redhat.com>
8184 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8185 * cli-out.h (cli_ui_out_impl): Now const.
8186 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8187 * ui-out.c (struct ui_out) <impl>: Now const.
8188 (default_ui_out_impl): Now const.
8189 (ui_out_new): Make 'impl' parameter const.
8190 * ui-out.h (ui_out_new): Update.
8192 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8194 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8196 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8198 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8200 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8202 Additional PR 8882 fix.
8203 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8205 2014-02-27 Pedro Alves <palves@redhat.com>
8207 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8210 2014-02-27 Pedro Alves <palves@redhat.com>
8213 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8214 * nat/linux-waitpid.c: Include string.h.
8215 (status_to_str): Moved here and made extern.
8216 * nat/linux-waitpid.h (status_to_str): New declaration.
8218 2014-02-27 Hui Zhu <hui@codesourcery.com>
8221 * infrun.c (ptid_match): Move ...
8222 * common/ptid.c (ptid_match): ... here.
8223 * inferior.h (ptid_match): Move ...
8224 * common/ptid.h (ptid_match): ... here.
8226 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8228 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8229 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8232 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8234 * obsd-tdep.c (obsd_auxv_parse): New function.
8235 (obsd_init_abi): Set auxv_parse.
8237 * gdbarch.sh (auxv_parse): New.
8238 * gdbarch.h: Regenerated.
8239 * gdbarch.c: Regenerated.
8240 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8242 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8244 * guile/scm-value.c (gdbscm_history_append_x): New function.
8245 (value_functions): Add it.
8247 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8249 * dwarf2read.c (attr_value_as_address): New function.
8250 (dwarf2_find_base_address, read_call_site_scope): Use
8251 attr_value_as_address in place of DW_ADDR.
8252 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8253 the low and high addresses. Slight rework of the handling
8254 of the high pc being a constant form, and limit it to
8255 DWARF verson 4 or higher.
8256 (dwarf2_record_block_ranges): Likewise.
8257 (read_partial_die): Likewise.
8258 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8260 2014-02-26 Tom Tromey <tromey@redhat.com>
8262 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8264 2014-02-26 Tom Tromey <tromey@redhat.com>
8266 * elfread.c (elf_read_minimal_symbols): Return early if
8267 minimal symbols have already been read. Add "ei" parameter.
8268 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8269 * minsyms.c (prim_record_minimal_symbol_full): Update.
8270 * objfiles.h (struct objstats) <n_minsyms>: Move...
8271 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8272 * symmisc.c (print_objfile_statistics): Update.
8274 2014-02-26 Tom Tromey <tromey@redhat.com>
8276 * elfread.c (elf_read_minimal_symbols): New function, from
8278 (elf_symfile_read): Call it.
8280 2014-02-26 Tom Tromey <tromey@redhat.com>
8282 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8283 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8284 (lookup_minimal_symbol_solib_trampoline)
8285 (lookup_minimal_symbol_by_pc_section_1)
8286 (lookup_minimal_symbol_and_objfile): Update.
8287 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8288 Don't allocate a minimal symbol if minsyms have already been read.
8289 (build_minimal_symbol_hash_tables): Update.
8290 (install_minimal_symbols): Do nothing if minsyms already read.
8291 Use the per-BFD obstack.
8292 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8293 * objfiles.c (allocate_objfile): Call
8294 terminate_minimal_symbol_table later.
8295 (have_minimal_symbols): Update.
8296 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8297 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8298 Move from struct objfile.
8299 <minsyms_read>: New field.
8300 (struct objfile) <msymbols, minimal_symbol_count,
8301 msymbol_hash, msymbol_demangled_hash>: Move.
8302 (ALL_OBJFILE_MSYMBOLS): Update.
8303 * symfile.c (read_symbols): Set minsyms_read.
8304 (reread_symbols): Update.
8305 * symmisc.c (dump_objfile, dump_msymbols): Update.
8307 2014-02-26 Tom Tromey <tromey@redhat.com>
8309 * minsyms.c (msymbols_sort): Remove.
8310 * minsyms.h (msymbols_sort): Remove.
8311 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8312 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8313 * elfread.c (elf_symtab_read): Don't add section offsets.
8314 * xcoffread.c (record_minimal_symbol): Don't add section offset
8315 to minimal symbol address.
8316 * somread.c (text_offset, data_offset): Remove.
8317 (som_symtab_read): Don't add section offsets to minimal symbol
8319 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8320 Don't add section offsets to minimal symbols.
8321 * coffread.c (coff_symtab_read): Don't add section offsets
8322 to minimal symbol addresses.
8323 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8324 to minimal symbol addresses.
8325 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8326 section offset to minimal symbol addresses.
8327 * mdebugread.c (parse_partial_symbols): Don't add section
8328 offset to minimal symbol addresses.
8329 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8330 offset to minimal symbol addresses.
8332 2014-02-26 Tom Tromey <tromey@redhat.com>
8334 * ada-lang.c (ada_main_name): Update.
8335 (ada_add_standard_exceptions): Update.
8336 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8337 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8338 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8339 * auxv.c (ld_so_xfer_auxv): Update.
8340 * avr-tdep.c (avr_scan_prologue): Update.
8341 * ax-gdb.c (gen_var_ref): Update.
8342 * blockframe.c (get_pc_function_start)
8343 (find_pc_partial_function_gnu_ifunc): Update.
8344 * breakpoint.c (create_overlay_event_breakpoint)
8345 (create_longjmp_master_breakpoint)
8346 (create_std_terminate_master_breakpoint)
8347 (create_exception_master_breakpoint): Update.
8348 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8349 * c-valprint.c (c_val_print): Update.
8350 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8351 * common/agent.c (agent_look_up_symbols): Update.
8352 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8353 * dwarf2loc.c (call_site_to_target_addr): Update.
8354 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8355 * elfread.c (elf_gnu_ifunc_record_cache)
8356 (elf_gnu_ifunc_resolve_by_got): Update.
8357 * findvar.c (default_read_var_value): Update.
8358 * frame.c (inside_main_func): Update.
8359 * frv-tdep.c (frv_frame_this_id): Update.
8360 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8361 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8363 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8364 (hppa_hpux_find_dummy_bpaddr): Update.
8365 * hppa-tdep.c (hppa_symbol_address): Update.
8366 * infcmd.c (until_next_command): Update.
8367 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8369 * linespec.c (minsym_found, add_minsym): Update.
8370 * linux-nat.c (get_signo): Update.
8371 * linux-thread-db.c (inferior_has_bug): Update.
8372 * m32c-tdep.c (m32c_return_value)
8373 (m32c_m16c_address_to_pointer): Update.
8374 * m32r-tdep.c (m32r_frame_this_id): Update.
8375 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8376 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8377 * maint.c (maintenance_translate_address): Update.
8378 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8379 (frob_address): New function.
8380 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8381 frob_address. Rename parameter to "pc_in".
8382 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8384 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8386 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8387 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8388 * objc-lang.c (find_objc_msgsend): Update.
8389 * objfiles.c (objfile_relocate1): Update.
8390 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8391 * p-valprint.c (pascal_val_print): Update.
8392 * parse.c (write_exp_msymbol): Update.
8393 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8394 (ppc_elfv2_skip_entrypoint): Update.
8395 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8396 * printcmd.c (build_address_symbolic, msym_info)
8397 (address_info): Update.
8398 * proc-service.c (ps_pglobal_lookup): Update.
8399 * psymtab.c (find_pc_sect_psymtab_closer)
8400 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8401 Change msymbol parameter to bound_minimal_symbol.
8402 * ravenscar-thread.c (get_running_thread_id): Update.
8403 * remote.c (remote_check_symbols): Update.
8404 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8406 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8407 * solib-dsbt.c (lm_base): Update.
8408 * solib-frv.c (lm_base, main_got): Update.
8409 * solib-irix.c (locate_base): Update.
8410 * solib-som.c (som_solib_create_inferior_hook)
8411 (link_map_start): Update.
8412 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8413 * solib-svr4.c (elf_locate_base, enable_break): Update.
8414 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8415 (flush_ea_cache): Update.
8416 * stabsread.c (define_symbol, scan_file_globals): Update.
8417 * stack.c (find_frame_funname): Update.
8418 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8419 (debug_qf_find_pc_sect_symtab): Update.
8420 * symfile.c (simple_read_overlay_table)
8421 (simple_overlay_update): Update.
8422 * symfile.h (struct quick_symbol_functions)
8423 <find_pc_sect_symtab>: Change type of msymbol to
8424 bound_minimal_symbol.
8425 * symmisc.c (dump_msymbols): Update.
8426 * symtab.c (find_pc_sect_symtab_via_partial)
8427 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8428 (search_symbols, print_msymbol_info): Update.
8429 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8430 (MSYMBOL_VALUE_ADDRESS): Redefine.
8431 (BMSYMBOL_VALUE_ADDRESS): New macro.
8432 * tracepoint.c (scope_info): Update.
8433 * tui/tui-disasm.c (tui_find_disassembly_address)
8434 (tui_get_begin_asm_address): Update.
8435 * valops.c (find_function_in_inferior): Update.
8436 * value.c (value_static_field, value_fn_field): Update.
8438 2014-02-26 Tom Tromey <tromey@redhat.com>
8440 * ada-lang.c (ada_update_initial_language): Update.
8441 (ada_main_name, ada_has_this_exception_support): Update.
8442 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8443 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8444 * arm-tdep.c (arm_skip_stub): Update.
8445 * auxv.c (ld_so_xfer_auxv): Update.
8446 * avr-tdep.c (avr_scan_prologue): Update.
8447 * ax-gdb.c (gen_var_ref): Update.
8448 * breakpoint.c (struct breakpoint_objfile_data)
8449 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8450 type to bound_minimal_symbol.
8451 (create_overlay_event_breakpoint)
8452 (create_longjmp_master_breakpoint)
8453 (create_std_terminate_master_breakpoint)
8454 (create_exception_master_breakpoint): Update.
8455 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8456 * c-exp.y (classify_name): Update.
8457 * coffread.c (coff_symfile_read): Update.
8458 * common/agent.c (agent_look_up_symbols): Update.
8459 * d-lang.c (d_main_name): Update.
8460 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8461 * dec-thread.c (enable_dec_thread): Update.
8462 * dwarf2loc.c (call_site_to_target_addr): Update.
8463 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8464 * eval.c (evaluate_subexp_standard): Update.
8465 * findvar.c (struct minsym_lookup_data) <result>: Change type
8466 to bound_minimal_symbol.
8468 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8469 * frame.c (inside_main_func): Update.
8470 * frv-tdep.c (frv_frame_this_id): Update.
8471 * gcore.c (call_target_sbrk): Update.
8472 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8473 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8475 * go-lang.c (go_main_name): Update.
8476 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8477 (hppa_hpux_find_import_stub_for_addr): Update.
8478 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8479 Update. Change return type.
8480 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8482 * jit.c (jit_breakpoint_re_set_internal): Update.
8483 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8485 * linux-nat.c (get_signo): Update.
8486 * linux-thread-db.c (inferior_has_bug): Update
8487 * m32c-tdep.c (m32c_return_value)
8488 (m32c_m16c_address_to_pointer): Update.
8489 * m32r-tdep.c (m32r_frame_this_id): Update.
8490 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8491 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8492 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8493 lookup_minimal_symbol. Change return type.
8494 (lookup_minimal_symbol): Remove.
8495 (lookup_bound_minimal_symbol): Update.
8496 (lookup_minimal_symbol_text): Change return type.
8497 (lookup_minimal_symbol_solib_trampoline): Change return type.
8498 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8499 (lookup_minimal_symbol_solib_trampoline): Change return type.
8500 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8501 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8502 (value_nsstring, find_imps): Update.
8503 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8504 * p-lang.c (pascal_main_name): Update.
8505 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8506 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8507 * proc-service.c (ps_pglobal_lookup): Update.
8508 * ravenscar-thread.c (get_running_thread_msymbol): Change
8510 (has_ravenscar_runtime, get_running_thread_id): Update.
8511 * remote.c (remote_check_symbols): Update.
8512 * sol-thread.c (ps_pglobal_lookup): Update.
8513 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8514 * solib-dsbt.c (lm_base): Update.
8515 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8517 * solib-irix.c (locate_base): Update.
8518 * solib-som.c (som_solib_create_inferior_hook)
8519 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8521 * solib-spu.c (spu_enable_break): Update.
8522 * solib-svr4.c (elf_locate_base, enable_break): Update.
8523 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8524 (flush_ea_cache): Update.
8525 * stabsread.c (define_symbol): Update.
8526 * symfile.c (simple_read_overlay_table): Update.
8527 * symtab.c (find_pc_sect_line): Update.
8528 * tracepoint.c (scope_info): Update.
8529 * tui-disasm.c (tui_get_begin_asm_address): Update.
8530 * value.c (value_static_field): Update.
8532 2014-02-26 Tom Tromey <tromey@redhat.com>
8534 * minsyms.c (prim_record_minimal_symbol_full): Use
8535 SET_MSYMBOL_VALUE_ADDRESS.
8536 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8537 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8538 SET_MSYMBOL_VALUE_ADDRESS.
8539 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8540 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8542 2014-02-26 Tom Tromey <tromey@redhat.com>
8544 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8545 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8546 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8547 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8548 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8549 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8550 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8551 * ada-lang.c (ada_main_name): Update.
8552 (ada_lookup_simple_minsym): Update.
8553 (ada_make_symbol_completion_list): Update.
8554 (ada_add_standard_exceptions): Update.
8555 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8556 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8557 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8558 * arm-tdep.c (skip_prologue_function): Update.
8559 (arm_skip_stack_protector, arm_skip_stub): Update.
8560 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8561 (arm_wince_skip_main_prologue): Update.
8562 * auxv.c (ld_so_xfer_auxv): Update.
8563 * avr-tdep.c (avr_scan_prologue): Update.
8564 * ax-gdb.c (gen_var_ref): Update.
8565 * block.c (call_site_for_pc): Update.
8566 * blockframe.c (get_pc_function_start): Update.
8567 (find_pc_partial_function_gnu_ifunc): Update.
8568 * breakpoint.c (create_overlay_event_breakpoint): Update.
8569 (create_longjmp_master_breakpoint): Update.
8570 (create_std_terminate_master_breakpoint): Update.
8571 (create_exception_master_breakpoint): Update.
8572 (resolve_sal_pc): Update.
8573 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8574 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8576 * c-valprint.c (c_val_print): Update.
8577 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8578 * coffread.c (coff_symfile_read): Update.
8579 * common/agent.c (agent_look_up_symbols): Update.
8580 * dbxread.c (find_stab_function_addr): Update.
8581 (end_psymtab): Update.
8582 * dwarf2loc.c (call_site_to_target_addr): Update.
8583 (func_verify_no_selftailcall): Update.
8584 (tailcall_dump): Update.
8585 (call_site_find_chain_1): Update.
8586 (dwarf_expr_reg_to_entry_parameter): Update.
8587 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8588 (elf_gnu_ifunc_resolve_by_got): Update.
8589 * f-valprint.c (info_common_command): Update.
8590 * findvar.c (read_var_value): Update.
8591 * frame.c (get_prev_frame_1): Update.
8592 (inside_main_func): Update.
8593 * frv-tdep.c (frv_skip_main_prologue): Update.
8594 (frv_frame_this_id): Update.
8595 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8596 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8597 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8598 (gnuv3_skip_trampoline): Update.
8599 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8600 (hppa64_hpux_in_solib_call_trampoline): Update.
8601 (hppa_hpux_skip_trampoline_code): Update.
8602 (hppa64_hpux_search_dummy_call_sequence): Update.
8603 (hppa_hpux_find_import_stub_for_addr): Update.
8604 (hppa_hpux_find_dummy_bpaddr): Update.
8605 * hppa-tdep.c (hppa_symbol_address)
8606 (hppa_lookup_stub_minimal_symbol): Update.
8607 * i386-tdep.c (i386_skip_main_prologue): Update.
8608 (i386_pe_skip_trampoline_code): Update.
8609 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8610 * infcall.c (get_function_name): Update.
8611 * infcmd.c (until_next_command): Update.
8612 * jit.c (jit_breakpoint_re_set_internal): Update.
8613 (jit_inferior_init): Update.
8614 * linespec.c (minsym_found): Update.
8615 (add_minsym): Update.
8616 * linux-fork.c (info_checkpoints_command): Update.
8617 * linux-nat.c (get_signo): Update.
8618 * linux-thread-db.c (inferior_has_bug): Update.
8619 * m32c-tdep.c (m32c_return_value): Update.
8620 (m32c_m16c_address_to_pointer): Update.
8621 (m32c_m16c_pointer_to_address): Update.
8622 * m32r-tdep.c (m32r_frame_this_id): Update.
8623 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8624 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8625 * maint.c (maintenance_translate_address): Update.
8626 * minsyms.c (add_minsym_to_hash_table): Update.
8627 (add_minsym_to_demangled_hash_table): Update.
8628 (msymbol_objfile): Update.
8629 (lookup_minimal_symbol): Update.
8630 (iterate_over_minimal_symbols): Update.
8631 (lookup_minimal_symbol_text): Update.
8632 (lookup_minimal_symbol_by_pc_name): Update.
8633 (lookup_minimal_symbol_solib_trampoline): Update.
8634 (lookup_minimal_symbol_by_pc_section_1): Update.
8635 (lookup_minimal_symbol_and_objfile): Update.
8636 (prim_record_minimal_symbol_full): Update.
8637 (compare_minimal_symbols): Update.
8638 (compact_minimal_symbols): Update.
8639 (build_minimal_symbol_hash_tables): Update.
8640 (install_minimal_symbols): Update.
8641 (terminate_minimal_symbol_table): Update.
8642 (find_solib_trampoline_target): Update.
8643 (minimal_symbol_upper_bound): Update.
8644 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8645 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8646 (mips_skip_pic_trampoline_code): Update.
8647 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8648 * objc-lang.c (selectors_info): Update.
8649 (classes_info): Update.
8650 (find_methods): Update.
8651 (find_imps): Update.
8652 (find_objc_msgsend): Update.
8653 * objfiles.c (objfile_relocate1): Update.
8654 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8655 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8656 * p-valprint.c (pascal_val_print): Update.
8657 * parse.c (write_exp_msymbol): Update.
8658 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8659 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8660 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8661 * printcmd.c (build_address_symbolic): Update.
8663 (address_info): Update.
8664 * proc-service.c (ps_pglobal_lookup): Update.
8665 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8666 (find_pc_sect_psymtab): Update.
8667 * python/py-framefilter.c (py_print_frame): Update.
8668 * ravenscar-thread.c (get_running_thread_id): Update.
8669 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8671 * remote.c (remote_check_symbols): Update.
8672 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8673 (rs6000_skip_trampoline_code): Update.
8674 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8675 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8676 * solib-dsbt.c (lm_base): Update.
8677 * solib-frv.c (lm_base): Update.
8679 * solib-irix.c (locate_base): Update.
8680 * solib-som.c (som_solib_create_inferior_hook): Update.
8681 (som_solib_desire_dynamic_linker_symbols): Update.
8682 (link_map_start): Update.
8683 * solib-spu.c (spu_enable_break): Update.
8684 (ocl_enable_break): Update.
8685 * solib-svr4.c (elf_locate_base): Update.
8686 (enable_break): Update.
8687 * spu-tdep.c (spu_get_overlay_table): Update.
8688 (spu_catch_start): Update.
8689 (flush_ea_cache): Update.
8690 * stabsread.c (define_symbol): Update.
8691 (scan_file_globals): Update.
8692 * stack.c (find_frame_funname): Update.
8693 (frame_info): Update.
8694 * symfile.c (simple_read_overlay_table): Update.
8695 (simple_overlay_update): Update.
8696 * symmisc.c (dump_msymbols): Update.
8697 * symtab.c (fixup_section): Update.
8698 (find_pc_sect_line): Update.
8699 (skip_prologue_sal): Update.
8700 (search_symbols): Update.
8701 (print_msymbol_info): Update.
8702 (rbreak_command): Update.
8703 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8704 (completion_list_objc_symbol): Update.
8705 (default_make_symbol_completion_list_break_on): Update.
8706 * tracepoint.c (scope_info): Update.
8707 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8708 (tui_get_begin_asm_address): Update.
8709 * valops.c (find_function_in_inferior): Update.
8710 * value.c (value_static_field): Update.
8711 (value_fn_field): Update.
8713 2014-02-26 Tom Tromey <tromey@redhat.com>
8715 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8716 bound minimal symbols. Move code that knows about minsym
8718 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8720 * minsyms.h (minimal_symbol_upper_bound): Declare.
8721 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8722 minimal_symbol_upper_bound.
8724 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8726 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8727 Use the type's name if its basic type does not have a tag.
8729 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8731 * dwarf2read.c (read_subrange_type): Add comment.
8733 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8735 * dwarf2read.c (update_enumeration_type_from_children): New
8736 function, mostly extracted from process_structure_scope.
8737 (read_enumeration_type): Call update_enumeration_type_from_children.
8738 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8739 and flag_flag_enum fields.
8741 2014-02-26 Pedro Alves <palves@redhat.com>
8743 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8744 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8745 to_xfer_partial method.
8747 2014-02-26 Pedro Alves <palves@redhat.com>
8749 * target.c (complete_target_initialization): Don't install
8750 default_xfer_partial as to_xfer_partial hook.
8752 (update_current_target): Don't INHERIT nor de_fault
8753 deprecated_xfer_memory. Delete de_fault macro.
8754 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8755 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8756 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8759 2014-02-26 Pedro Alves <palves@redhat.com>
8761 * go32-nat.c (my_write_child): New function.
8762 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8763 (go32_xfer_partial): New function.
8764 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8765 Instead install a to_xfer_partial hook.
8767 2014-02-26 Pedro Alves <palves@redhat.com>
8769 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8770 to_xfer_partial helper. Rewrite.
8771 (procfs_xfer_partial): New function.
8772 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8773 Install a to_xfer_partial hook.
8775 2014-02-26 Pedro Alves <palves@redhat.com>
8777 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8778 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8779 (m32r_xfer_partial): New function.
8780 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8781 Install a to_xfer_partial hook.
8783 2014-02-26 Pedro Alves <palves@redhat.com>
8785 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8787 (mips_xfer_partial): New function.
8788 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8789 hook. Install a to_xfer_partial hook.
8791 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8793 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8794 * gdbtypes.c (create_array_type_with_stride): New function,
8795 renaming create_array_type, but with an added parameter
8796 called "bit_stride".
8797 (create_array_type): Re-implement using
8798 create_array_type_with_stride.
8799 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8800 and DW_AT_bit_stride attributes.
8802 2014-02-26 Pedro Alves <palves@redhat.com>
8804 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8805 task-specific breakpoints.
8807 2014-02-25 Pedro Alves <palves@redhat.com>
8809 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8810 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8812 2014-02-25 Stan Shebs <stan@codesourcery.com>
8814 * defs.h: Annotate comments for Doxygen.
8816 2014-02-25 Tom Tromey <tromey@redhat.com>
8818 * target.h (target_ignore): Don't declare.
8819 * target.c (target_ignore): Remove.
8821 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8824 * auto-load.c (auto_load_objfile_script_1): Change filename to
8827 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8829 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8830 documentation. Adjust prototype to match the target_ops
8831 to_xfer_partial method. Adjust implementation accordingly.
8833 2014-02-25 Hui Zhu <hui@codesourcery.com>
8835 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8838 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8840 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8841 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8842 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8843 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8844 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8845 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8846 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8847 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8849 (rl78_register_type): Use a data pointer type for SP and
8850 new pseudo registers mentioned above. Use a 16 bit integer
8851 type for all other register pairs.
8852 (rl78_register_name, rl78_g10_register_name): Update for
8853 new pseudo registers.
8854 (rl78_pseudo_register_read): Likewise.
8855 (rl78_pseudo_register_write): Likewise.
8856 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8857 to the newly added pseudo registers.
8859 2014-02-24 Doug Evans <dje@google.com>
8861 * value.c (record_latest_value): Fix comment.
8862 * printcmd.c (print_command_1): Remove code to handle -1 return from
8863 record_latest_value.
8865 2014-02-24 Pedro Alves <palves@redhat.com>
8867 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8868 deprecated_xfer_memory hook.
8869 (procfs_xfer_partial): Call procfs_xfer_memory instead
8870 of the deprecated_xfer_memory target hook.
8871 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8874 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8876 * windows-nat.c (windows_xfer_shared_libraries): Return
8877 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8878 requested object is TARGET_OBJECT_LIBRARIES.
8880 2014-02-24 Yao Qi <yao@codesourcery.com>
8882 * target.h (enum target_xfer_status)
8883 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8884 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8886 * corefile.c (memory_error_message): User updated.
8887 * exec.c (section_table_read_available_memory): Likewise.
8888 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8889 * target.c (target_xfer_status_to_string): Likewise.
8890 (raw_memory_xfer_partial): Likewise.
8891 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8892 * valops.c (read_value_memory): Likewise.
8893 * exec.h: Update comments.
8895 2014-02-24 Yao Qi <yao@codesourcery.com>
8897 * target.c (target_xfer_status_to_string): Rename argument err
8899 * target.h (target_xfer_status_to_string): Update declaration.
8900 Replace target_xfer_error_to_string with
8901 target_xfer_status_to_string in comment.
8903 2014-02-24 Yao Qi <yao@codesourcery.com>
8905 * mips-linux-nat.c (super_close): Update its type.
8906 (mips_linux_close): Pass 'self' to super_close.
8908 2014-02-24 Yao Qi <yao@codesourcery.com>
8910 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8911 * corefile.c (read_memory): Adjusted.
8912 * target.c (target_write_with_progress): Adjusted.
8914 2014-02-23 Yao Qi <yao@codesourcery.com>
8918 2013-10-25 Yao Qi <yao@codesourcery.com>
8920 * remote.c (remote_traceframe_info): Return early if
8921 traceframe is not selected.
8923 2013-07-19 Yao Qi <yao@codesourcery.com>
8925 * target.c (update_current_target): Change the default action
8926 of 'to_traceframe_info' from tcomplain to return_zero.
8927 * target.h (struct target_ops) <to_traceframe_info>: Add more
8930 2014-02-23 Yao Qi <yao@codesourcery.com>
8932 * valops.c (read_value_memory): Rewrite it. Call
8933 target_xfer_partial in a loop.
8934 * exec.h (section_table_available_memory): Remove declaration.
8935 Move comments to ...
8936 * exec.c (section_table_available_memory): ... here. Make it
8939 2014-02-23 Yao Qi <yao@codesourcery.com>
8941 * exec.c (section_table_read_available_memory): New function.
8942 * exec.h (section_table_read_available_memory): Declare.
8943 * ctf.c (ctf_xfer_partial): Call
8944 section_table_read_available_memory.
8945 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8947 2014-02-23 Yao Qi <yao@codesourcery.com>
8949 * ctf.c (ctf_xfer_partial): Move code to ...
8950 * exec.c (exec_read_partial_read_only): ... it. New function.
8951 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8952 * tracefile.c: Include "exec.h".
8953 * exec.h (exec_read_partial_read_only): Declare.
8955 2014-02-23 Yao Qi <yao@codesourcery.com>
8957 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8958 (tfile_has_memory): Remove.
8959 (init_tfile_ops): Don't set fields to_has_all_memory and
8960 to_has_memory of tfile_ops.
8961 * tracefile.c (tracefile_has_all_memory): New function.
8962 (tracefile_has_memory): New function.
8963 (init_tracefile_ops): Initialize fields to_has_all_memory and
8964 to_has_memory of 'ops'.
8966 2014-02-23 Yao Qi <yao@codesourcery.com>
8968 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8969 (ctf_thread_alive, ctf_get_trace_status): Remove.
8970 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8972 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8973 (tfile_has_stack, tfile_has_registers): Remove.
8974 (tfile_thread_alive): Remove.
8975 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8977 * tracefile.c (tracefile_has_stack): New function.
8978 (tracefile_has_registers): New function.
8979 (tracefile_thread_alive): New function.
8980 (tracefile_get_trace_status): New function.
8981 (init_tracefile_ops): New function.
8982 * tracefile.h (init_tracefile_ops): Declare.
8984 2014-02-23 Yao Qi <yao@codesourcery.com>
8986 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8987 (O_LARGEFILE): Likewise.
8988 (tfile_ops): Likewise.
8989 (TRACE_HEADER_SIZE): Likewise.
8990 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8991 (cur_data_size): Likewise.
8992 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8993 (tfile_close, tfile_files_info): Likewise.
8994 (tfile_get_trace_status): Likewise.
8995 (tfile_get_tracepoint_status): Likewise.
8996 (tfile_get_traceframe_address): Likewise.
8997 (tfile_trace_find, match_blocktype): Likewise.
8998 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8999 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9000 (tfile_get_trace_state_variable_value): Likewise.
9001 (tfile_has_all_memory, tfile_has_memory): Likewise.
9002 (tfile_has_stack, tfile_has_registers): Likewise.
9003 (tfile_thread_alive, build_traceframe_info): Likewise.
9004 (tfile_traceframe_info, init_tfile_ops): Likewise.
9005 (_initialize_tracepoint): Don't call init_tfile_ops
9006 and add_target_with_completer.
9007 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9008 exec.h, completer.h and filenames.h.
9009 (_initialize_tracefile_tfile): New function.
9011 2014-02-23 Yao Qi <yao@codesourcery.com>
9013 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9015 (HFILES_NO_SRCDIR): Add tracefile.h.
9016 * ctf.c: Include "tracefile.h".
9017 * tracefile.h: New file.
9018 * tracefile.c: New file
9019 * tracefile-tfile.c: New file.
9020 * tracepoint.c: Include "tracefile.h".
9021 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9022 (stop_reason_names): Add const.
9023 (trace_file_writer_xfree): Move it to tracefile.c.
9024 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9025 (trace_save_ctf): Likewise.
9026 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9027 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9028 (tfile_write_header, tfile_write_regblock_type): Likewise.
9029 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9030 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9031 (tfile_write_raw_data, tfile_end): Likewise.
9032 (tfile_trace_file_writer_new): Likewise.
9033 (free_uploaded_tp): Make it extern.
9034 (free_uploaded_tsv): Make it extern.
9035 (_initialize_tracepoint): Move code to register command 'tsave'
9037 * tracepoint.h (stop_reason_names): Declare.
9038 (struct trace_frame_write_ops): Move it to tracefile.h.
9039 (struct trace_file_write_ops): Likewise.
9040 (struct trace_file_writer): Likewise.
9041 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9043 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9046 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9048 (get_cores_used_by_process): New parameter num_cores, use it.
9049 (linux_xfer_osdata_processes): Pass num_cores to it.
9050 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9053 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9055 * target.c (memory_xfer_partial): Fix length arg in call to
9056 breakpoint_xfer_memory.
9058 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9061 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9062 number comes after the + or - signs. Adjust length of register
9063 name to be extracted.
9065 2014-02-20 Tom Tromey <tromey@redhat.com>
9067 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9068 (ada_varobj_ops): Mark "extern".
9070 2014-02-20 Tom Tromey <tromey@redhat.com>
9072 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9074 2014-02-20 Doug Evans <xdje42@gmail.com>
9076 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9077 All callers updated.
9078 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9079 All callers updated.
9080 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9081 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9083 2014-02-20 lin zuojian <manjian2006@gmail.com>
9084 Joel Brobecker <brobecker@adacore.com>
9085 Doug Evans <xdje42@gmail.com>
9088 * dwarf2read.c (struct die_info): New member in_process.
9089 (reset_die_in_process): New function.
9090 (process_die): Set it at the start, reset when returning.
9091 (inherit_abstract_dies): Only call process_die if origin_child_die
9092 not already being processed.
9094 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9096 * windows-nat.c (handle_unload_dll): Add function documentation.
9097 (do_initial_windows_stuff): Add comment explaining why we wait
9098 until after inferior initialization has finished before
9099 processing all DLLs.
9101 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9103 * windows-nat.c (get_module_name): Delete.
9104 (windows_get_exec_module_filename): New function, mostly
9105 inspired from get_module_name.
9106 (windows_pid_to_exec_file): Replace call to get_module_name
9107 by call to windows_get_exec_module_filename.
9109 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9111 * windows-nat.c (handle_load_dll): Rewrite this function's
9112 introductory comment. Remove code using get_module_name
9113 to get the DLL's name.
9115 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9117 * windows-nat.c (get_windows_debug_event): Ignore
9118 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9119 if windows_initialization_done == 0.
9120 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9121 Adjust implementation to always load all DLLs.
9122 (do_initial_windows_stuff): Replace call to
9123 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9125 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9127 * windows-nat.c (_initialize_windows_nat): Deprecate the
9128 "dll-symbols" command. Turn the "add-shared-symbol-files"
9129 and "assf" aliases into commands, and deprecate them as well.
9130 * NEWS: Add entry explaining that "dll-symbols" and its two
9131 aliases are now deprecated.
9133 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9135 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9136 new-line in debug string. Remove trailing spaces.
9138 2014-02-19 Stan Shebs <stan@codesourcery.com>
9140 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9142 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9144 * NEWS: Add entry for the new feature
9145 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9148 2014-02-19 Stan Shebs <stan@codesourcery.com>
9150 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9152 2014-02-19 Pedro Alves <palves@redhat.com>
9154 * common/ptid.h (struct ptid): Mention that process_stratum
9155 targets should prefer ptid.lwp.
9157 2014-02-19 Pedro Alves <palves@redhat.com>
9159 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9160 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9161 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9162 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9163 store remote thread ids rather than ptid.tid.
9164 (_initialize_remote): Adjust.
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9168 * target.c (target_get_unwinder): Rewrite.
9169 (target_get_tailcall_unwinder): Rewrite.
9170 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9171 (record_btrace_to_get_tailcall_unwinder): New function.
9172 (init_record_btrace_ops): Update.
9173 * target.h (struct target_ops) <to_get_unwinder,
9174 to_get_tailcall_unwinder>: Now function pointers. Use
9175 TARGET_DEFAULT_RETURN.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9181 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9183 2014-02-19 Tom Tromey <tromey@redhat.com>
9185 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9187 * target-delegates.c: Rebuild.
9188 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9189 TARGET_DEFAULT_FUNC.
9190 * target.c (default_target_decr_pc_after_break): Rename from
9191 forward_target_decr_pc_after_break. Simplify.
9192 (target_decr_pc_after_break): Rely on delegation.
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9196 * target.c (update_current_target): Do not INHERIT to_doc or
9197 to_magic. Do not de_fault to_open or to_close.
9199 2014-02-19 Tom Tromey <tromey@redhat.com>
9201 * gcore.h (objfile_find_memory_regions): Declare.
9202 * gcore.c (objfile_find_memory_regions): No longer static. Add
9204 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9205 * exec.c: Include gcore.h.
9206 (exec_set_find_memory_regions): Remove.
9207 (exec_find_memory_regions): Remove.
9208 (exec_do_find_memory_regions): Remove.
9209 (init_exec_ops): Update.
9210 * defs.h (exec_set_find_memory_regions): Remove.
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9214 * target-delegates.c: Rebuild.
9215 * target.h (struct target_ops) <to_extra_thread_info,
9216 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9217 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9218 not 0, in TARGET_DEFAULT_RETURN.
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9222 * target.c (complete_target_initialization): Remove casts. Use
9223 return_zero_has_execution.
9224 (return_zero): Add "ignore" argument.
9225 (return_zero_has_execution): New function.
9226 (init_dummy_target): Remove casts. Use
9227 return_zero_has_execution.
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9231 * target.c (update_current_target): Update comments. Do not
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9236 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9238 * corelow.c (core_read_description): Delegate when needed.
9239 * remote.c (remote_read_description): Delegate when needed.
9240 * target-delegates.c: Rebuild.
9241 * target.c (target_read_description): Rewrite.
9242 * target.h (struct target_ops) <to_read_description>: Update
9243 comment. Use TARGET_DEFAULT_RETURN.
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9247 * target-delegates.c: Rebuild.
9248 * target.c (update_current_target): Don't inherit or default
9250 (find_default_run_target): Check against delegate_can_run.
9251 * target.h (struct target_ops) <to_can_run>: Use
9252 TARGET_DEFAULT_RETURN.
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target-delegates.c: Rebuild.
9257 * target.c (target_disconnect): Unconditionally delegate.
9258 * target.h (struct target_ops) <to_disconnect>: Use
9259 TARGET_DEFAULT_NORETURN.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * record.c (record_stop): Unconditionally delegate.
9264 * target-delegates.c: Rebuild.
9265 * target.c (target_stop_recording): Unconditionally delegate.
9266 * target.h (struct target_ops) <to_stop_recording>: Use
9267 TARGET_DEFAULT_IGNORE.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target-delegates.c: Rebuild.
9272 * target.c (target_enable_btrace): Unconditionally delegate.
9273 * target.h (struct target_ops) <to_enable_btrace>: Use
9274 TARGET_DEFAULT_NORETURN.
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9278 * target-delegates.c: Rebuild.
9279 * target.c (target_read_btrace): Unconditionally delegate.
9280 * target.h (struct target_ops) <to_read_btrace>: Use
9281 TARGET_DEFAULT_NORETURN.
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9285 * target-delegates.c: Rebuild.
9286 * target.c (target_teardown_btrace): Unconditionally delegate.
9287 * target.h (struct target_ops) <to_teardown_btrace>: Use
9288 TARGET_DEFAULT_NORETURN.
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9292 * target-delegates.c: Rebuild.
9293 * target.c (target_disable_btrace): Unconditionally delegate.
9294 * target.h (struct target_ops) <to_disable_btrace>: Use
9295 TARGET_DEFAULT_NORETURN.
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9299 * target-delegates.c: Rebuild.
9300 * target.c (default_search_memory): New function.
9301 (simple_search_memory): Update comment.
9302 (target_search_memory): Unconditionally delegate.
9303 * target.h (struct target_ops) <to_search_memory>: Use
9304 TARGET_DEFAULT_FUNC.
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * auxv.c (default_auxv_parse): No longer static.
9309 (target_auxv_parse): Unconditionally delegate.
9310 * auxv.h (default_auxv_parse): Declare.
9311 * target-delegates.c: Rebuild.
9312 * target.c: Include auxv.h.
9313 * target.h (struct target_ops) <to_auxv_parse>: Use
9314 TARGET_DEFAULT_FUNC.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target-delegates.c: Rebuild.
9319 * target.c (target_memory_map): Unconditionally delegate.
9320 * target.h (struct target_ops) <to_memory_map>: Use
9321 TARGET_DEFAULT_RETURN.
9323 2014-02-19 Tom Tromey <tromey@redhat.com>
9325 * target-delegates.c: Rebuild.
9326 * target.c (target_thread_alive): Unconditionally delegate.
9327 * target.h (struct target_ops) <to_thread_alive>: Use
9328 TARGET_DEFAULT_RETURN.
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9332 * target-delegates.c: Rebuild.
9333 * target.c (target_save_record): Unconditionally delegate.
9334 * target.h (struct target_ops) <to_save_record>: Use
9335 TARGET_DEFAULT_NORETURN.
9337 2014-02-19 Tom Tromey <tromey@redhat.com>
9339 * target-delegates.c: Rebuild.
9340 * target.c (target_delete_record): Unconditionally delegate.
9341 * target.h (struct target_ops) <to_delete_record>: Use
9342 TARGET_DEFAULT_NORETURN.
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9346 * target-delegates.c: Rebuild.
9347 * target.c (target_record_is_replaying): Unconditionally
9349 * target.h (struct target_ops) <to_record_is_replaying>: Use
9350 TARGET_DEFAULT_RETURN.
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9354 * target-delegates.c: Rebuild.
9355 * target.c (target_goto_record_begin): Unconditionally delegate.
9356 * target.h (struct target_ops) <to_goto_record_begin>: Use
9357 TARGET_DEFAULT_NORETURN.
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9361 * target-delegates.c: Rebuild.
9362 * target.c (target_goto_record_end): Unconditionally delegate.
9363 * target.h (struct target_ops) <to_goto_record_end>: Use
9364 TARGET_DEFAULT_NORETURN.
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9368 * target-delegates.c: Rebuild.
9369 * target.c (target_goto_record): Unconditionally delegate.
9370 * target.h (struct target_ops) <to_goto_record>: Use
9371 TARGET_DEFAULT_NORETURN.
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9375 * target-delegates.c: Rebuild.
9376 * target.c (target_insn_history): Unconditionally delegate.
9377 * target.h (struct target_ops) <to_insn_history>: Use
9378 TARGET_DEFAULT_NORETURN.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * target-delegates.c: Rebuild.
9383 * target.c (target_insn_history_from): Unconditionally delegate.
9384 * target.h (struct target_ops) <to_insn_history_from>: Use
9385 TARGET_DEFAULT_NORETURN.
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target-delegates.c: Rebuild.
9390 * target.c (target_insn_history_range): Unconditionally delegate.
9391 * target.h (struct target_ops) <to_insn_history_range>: Use
9392 TARGET_DEFAULT_NORETURN.
9394 2014-02-19 Tom Tromey <tromey@redhat.com>
9396 * target-delegates.c: Rebuild.
9397 * target.c (target_call_history): Unconditionally delegate.
9398 * target.h (struct target_ops) <to_call_history>: Use
9399 TARGET_DEFAULT_NORETURN.
9401 2014-02-19 Tom Tromey <tromey@redhat.com>
9403 * target-delegates.c: Rebuild.
9404 * target.c (target_call_history_from): Unconditionally delegate.
9405 * target.h (struct target_ops) <to_call_history_from>: Use
9406 TARGET_DEFAULT_NORETURN.
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9410 * target-delegates.c: Rebuild.
9411 * target.c (target_call_history_range): Unconditionally delegate.
9412 * target.h (struct target_ops) <to_call_history_range>: Use
9413 TARGET_DEFAULT_NORETURN.
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9417 * target-delegates.c: Rebuild.
9418 * target.c (target_verify_memory): Unconditionally delegate.
9419 * target.h (struct target_ops) <to_verify_memory>: Use
9420 TARGET_DEFAULT_NORETURN.
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target-delegates.c: Rebuild.
9425 * target.c (target_core_of_thread): Unconditionally delegate.
9426 * target.h (struct target_ops) <to_core_of_thread>: Use
9427 TARGET_DEFAULT_RETURN.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target-delegates.c: Rebuild.
9432 * target.c (target_flash_done): Unconditionally delegate.
9433 * target.h (struct target_ops) <to_flash_done>: Use
9434 TARGET_DEFAULT_NORETURN.
9436 2014-02-19 Tom Tromey <tromey@redhat.com>
9438 * target-delegates.c: Rebuild.
9439 * target.c (target_flash_erase): Unconditionally delegate.
9440 * target.h (struct target_ops) <to_flash_erase>: Use
9441 TARGET_DEFAULT_NORETURN.
9443 2014-02-19 Tom Tromey <tromey@redhat.com>
9445 * target-delegates.c: Rebuild.
9446 * target.c (target_get_section_table): Unconditionally delegate.
9447 * target.h (struct target_ops) <to_get_section_table>: Use
9448 TARGET_DEFAULT_RETURN.
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9452 * target-delegates.c: Rebuild.
9453 * target.c (target_pid_to_str): Unconditionally delegate.
9454 (init_dummy_target): Don't initialize to_pid_to_str.
9455 (default_pid_to_str): Rename from dummy_pid_to_str.
9456 * target.h (struct target_ops) <to_pid_to_str>: Use
9457 TARGET_DEFAULT_FUNC.
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9461 * target-delegates.c: Rebuild.
9462 * target.c (target_find_new_threads): Unconditionally delegate.
9463 * target.h (struct target_ops) <to_find_new_threads>: Use
9464 TARGET_DEFAULT_RETURN.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target-delegates.c: Rebuild.
9469 * target.c (target_program_signals): Unconditionally delegate.
9470 * target.h (struct target_ops) <to_program_signals>: Use
9471 TARGET_DEFAULT_IGNORE.
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9475 * target-delegates.c: Rebuild.
9476 * target.c (target_pass_signals): Unconditionally delegate.
9477 * target.h (struct target_ops) <to_pass_signals>: Use
9478 TARGET_DEFAULT_IGNORE.
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9482 * target-delegates.c: Rebuild.
9483 * target.c (default_mourn_inferior): New function.
9484 (target_mourn_inferior): Unconditionally delegate.
9485 * target.h (struct target_ops) <to_mourn_inferior>: Use
9486 TARGET_DEFAULT_FUNC.
9488 2014-02-19 Tom Tromey <tromey@redhat.com>
9490 * target-delegates.c: Rebuild.
9491 * target.c (default_follow_fork): New function.
9492 (target_follow_fork): Unconditionally delegate.
9493 * target.h (struct target_ops) <to_follow_fork>: Use
9494 TARGET_DEFAULT_FUNC.
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9498 * target-delegates.c: Rebuild.
9499 * target.c (target_kill): Unconditionally delegate.
9500 * target.h (struct target_ops) <to_kill>: Use
9501 TARGET_DEFAULT_NORETURN.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target-delegates.c: Rebuild.
9506 * target.c (target_masked_watch_num_registers): Unconditionally
9508 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9509 Use TARGET_DEFAULT_RETURN.
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9513 * target-delegates.c: Rebuild.
9514 * target.c (target_remove_mask_watchpoint): Unconditionally
9516 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9517 TARGET_DEFAULT_RETURN.
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * target-delegates.c: Rebuild.
9522 * target.c (target_insert_mask_watchpoint): Unconditionally
9524 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9525 TARGET_DEFAULT_RETURN.
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9529 * target-delegates.c: Rebuild.
9530 * target.c (target_ranged_break_num_registers): Unconditionally
9532 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9533 Use TARGET_DEFAULT_RETURN.
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target-delegates.c: Rebuild.
9538 * target.c (target_fetch_registers): Unconditionally delegate.
9539 * target.h (struct target_ops) <to_fetch_registers>: Use
9540 TARGET_DEFAULT_NORETURN.
9542 2014-02-19 Tom Tromey <tromey@redhat.com>
9544 * target-delegates.c: Rebuild.
9545 * target.c (update_current_target): Don't inherit or default
9547 * target.h (struct target_ops) <to_stop>: Use
9548 TARGET_DEFAULT_IGNORE.
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9552 * target-delegates.c: Rebuild.
9553 * target.c (update_current_target): Don't inherit or default
9554 to_can_run_breakpoint_commands.
9555 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9556 Use TARGET_DEFAULT_RETURN.
9558 2014-02-19 Tom Tromey <tromey@redhat.com>
9560 * target-delegates.c: Rebuild.
9561 * target.c (update_current_target): Don't inherit or default
9562 to_supports_evaluation_of_breakpoint_conditions.
9563 * target.h (struct target_ops)
9564 <to_supports_evaluation_of_breakpoint_conditions>: Use
9565 TARGET_DEFAULT_RETURN.
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9569 * target-delegates.c: Rebuild.
9570 * target.c (update_current_target): Don't inherit or default
9571 to_augmented_libraries_svr4_read.
9572 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9573 Use TARGET_DEFAULT_RETURN.
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9577 * target-delegates.c: Rebuild.
9578 * target.c (update_current_target): Don't inherit or default
9580 * target.h (struct target_ops) <to_can_use_agent>: Use
9581 TARGET_DEFAULT_RETURN.
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_use_agent>: Use
9589 TARGET_DEFAULT_NORETURN.
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
9596 (return_null): Remove.
9597 * target.h (struct target_ops) <to_traceframe_info>: Use
9598 TARGET_DEFAULT_RETURN.
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9602 * target-delegates.c: Rebuild.
9603 * target.c (update_current_target): Don't inherit or default
9604 to_static_tracepoint_markers_by_strid.
9605 * target.h (struct target_ops)
9606 <to_static_tracepoint_markers_by_strid>: Use
9607 TARGET_DEFAULT_NORETURN.
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9611 * target-delegates.c: Rebuild.
9612 * target.c (update_current_target): Don't inherit or default
9613 to_static_tracepoint_marker_at.
9614 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9615 Use TARGET_DEFAULT_RETURN.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target-delegates.c: Rebuild.
9620 * target.c (update_current_target): Don't inherit or default
9622 * target.h (struct target_ops) <to_set_permissions>: Use
9623 TARGET_DEFAULT_IGNORE.
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9627 * target-delegates.c: Rebuild.
9628 * target.c (update_current_target): Don't inherit or default
9630 * target.h (struct target_ops) <to_get_tib_address>: Use
9631 TARGET_DEFAULT_NORETURN.
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * target-delegates.c: Rebuild.
9636 * target.c (update_current_target): Don't inherit or default
9638 * target.h (struct target_ops) <to_set_trace_notes>: 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 initialize
9645 to_set_trace_buffer_size.
9646 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9647 TARGET_DEFAULT_IGNORE.
9649 2014-02-19 Tom Tromey <tromey@redhat.com>
9651 * target-delegates.c: Rebuild.
9652 * target.c (update_current_target): Don't inherit or default
9653 to_set_circular_trace_buffer.
9654 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9655 TARGET_DEFAULT_IGNORE.
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9659 * target-delegates.c: Rebuild.
9660 * target.c (update_current_target): Don't inherit or default
9661 to_set_disconnected_tracing.
9662 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9663 TARGET_DEFAULT_IGNORE.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * target-delegates.c: Rebuild.
9668 * target.c (update_current_target): Don't inherit or default
9669 to_get_min_fast_tracepoint_insn_len.
9670 (return_minus_one): Remove.
9671 * target.h (struct target_ops)
9672 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9674 2014-02-19 Tom Tromey <tromey@redhat.com>
9676 * target-delegates.c: Rebuild.
9677 * target.c (update_current_target): Don't inherit or default
9678 to_get_raw_trace_data.
9679 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9680 TARGET_DEFAULT_NORETURN.
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9684 * target-delegates.c: Rebuild.
9685 * target.c (update_current_target): Don't inherit or default
9686 to_upload_trace_state_variables.
9687 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9688 Use TARGET_DEFAULT_RETURN.
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_upload_tracepoints.
9695 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9696 TARGET_DEFAULT_RETURN.
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
9703 * target.h (struct target_ops) <to_save_trace_data>: Use
9704 TARGET_DEFAULT_NORETURN.
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_trace_state_variable_value.
9711 * target.h (struct target_ops)
9712 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9716 * target-delegates.c: Rebuild.
9717 * target.c (update_current_target): Don't inherit or default
9719 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9723 * target-delegates.c: Rebuild.
9724 * target.c (update_current_target): Don't inherit or default
9726 * target.h (struct target_ops) <to_trace_stop>: Use
9727 TARGET_DEFAULT_NORETURN.
9729 2014-02-19 Tom Tromey <tromey@redhat.com>
9731 * target-delegates.c: Rebuild.
9732 * target.c (update_current_target): Don't inherit or default
9733 to_get_tracepoint_status.
9734 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9735 TARGET_DEFAULT_NORETURN.
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9739 * target-delegates.c: Rebuild.
9740 * target.c (update_current_target): Don't inherit or default
9741 to_get_trace_status.
9742 * target.h (struct target_ops) <to_get_trace_status>: Use
9743 TARGET_DEFAULT_RETURN.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target-delegates.c: Rebuild.
9748 * target.c (update_current_target): Don't inherit or default
9750 * target.h (struct target_ops) <to_trace_start>: Use
9751 TARGET_DEFAULT_NORETURN.
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9755 * target-delegates.c: Rebuild.
9756 * target.c (update_current_target): Don't inherit or default
9757 to_trace_set_readonly_regions.
9758 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9759 Use TARGET_DEFAULT_NORETURN.
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9763 * target-delegates.c: Rebuild.
9764 * target.c (update_current_target): Don't inherit or default
9765 to_disable_tracepoint.
9766 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9767 TARGET_DEFAULT_NORETURN.
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9771 * target-delegates.c: Rebuild.
9772 * target.c (update_current_target): Don't inherit or default
9773 to_enable_tracepoint.
9774 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9775 TARGET_DEFAULT_NORETURN.
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9779 * target-delegates.c: Rebuild.
9780 * target.c (update_current_target): Don't inherit or default
9781 to_download_trace_state_variable.
9782 * target.h (struct target_ops) <to_download_trace_state_variable>:
9783 Use TARGET_DEFAULT_NORETURN.
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * target-delegates.c: Rebuild.
9788 * target.c (update_current_target): Don't inherit or default
9789 to_can_download_tracepoint.
9790 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9791 TARGET_DEFAULT_RETURN.
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9795 * target-delegates.c: Rebuild.
9796 * target.c (update_current_target): Don't inherit or default
9797 to_download_tracepoint.
9798 * target.h (struct target_ops) <to_download_tracepoint>: Use
9799 TARGET_DEFAULT_NORETURN.
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9803 * target-delegates.c: Rebuild.
9804 * target.c (update_current_target): Don't inherit or default
9806 * target.h (struct target_ops) <to_trace_init>: Use
9807 TARGET_DEFAULT_RETURN.
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9811 * target-delegates.c: Rebuild.
9812 * target.c (update_current_target): Don't inherit or default
9813 to_supports_string_tracing.
9814 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9815 TARGET_DEFAULT_RETURN.
9817 2014-02-19 Tom Tromey <tromey@redhat.com>
9819 * target-delegates.c: Rebuild.
9820 * target.c (update_current_target): Don't inherit or default
9821 to_supports_enable_disable_tracepoint.
9822 * target.h (struct target_ops)
9823 <to_supports_enable_disable_tracepoint>: Use
9824 TARGET_DEFAULT_RETURN.
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_supports_multi_process.
9831 * target.h (struct target_ops) <to_supports_multi_process>: 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_get_ada_task_ptid.
9839 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9840 TARGET_DEFAULT_FUNC.
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
9846 to_thread_architecture.
9847 * target.h (struct target_ops) <to_thread_architecture>: Use
9848 TARGET_DEFAULT_FUNC.
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_execution_direction.
9855 * target.h (struct target_ops) <to_execution_direction>: Use
9856 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
9863 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9864 TARGET_DEFAULT_RETURN.
9865 (target_can_execute_reverse): Unconditionally delegate.
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
9872 (dummy_goto_bookmark): Remove.
9873 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9874 * target.h (struct target_ops) <to_goto_bookmark>: Use
9875 TARGET_DEFAULT_NORETURN.
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target-delegates.c: Rebuild.
9880 * target.c (update_current_target): Don't inherit or default
9882 (dummy_get_bookmark): Remove.
9883 (init_dummy_target): Don't inherit or default to_get_bookmark.
9884 * target.h (struct target_ops) <to_get_bookmark>: Use
9885 TARGET_DEFAULT_NORETURN
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9889 * target-delegates.c: Rebuild.
9890 * target.c (update_current_target): Don't inherit or default
9891 to_make_corefile_notes.
9892 (init_dummy_target): Don't initialize to_make_corefile_notes.
9893 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9894 TARGET_DEFAULT_FUNC.
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9898 * target-delegates.c: Rebuild.
9899 * target.c (update_current_target): Don't inherit or default
9900 to_find_memory_regions.
9901 (init_dummy_target): Don't initialize to_find_memory_regions.
9902 * target.h (struct target_ops) <to_find_memory_regions>: Use
9903 TARGET_DEFAULT_FUNC.
9905 2014-02-19 Tom Tromey <tromey@redhat.com>
9907 * target-delegates.c: Rebuild.
9908 * target.c (update_current_target): Don't inherit or default
9910 * target.h (struct target_ops) <to_log_command>: Use
9911 TARGET_DEFAULT_IGNORE.
9912 (target_log_command): Unconditionally delegate.
9914 2014-02-19 Tom Tromey <tromey@redhat.com>
9916 * target-delegates.c: Rebuild.
9917 * target.c (update_current_target): Don't inherit or default
9918 to_pid_to_exec_file.
9919 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9920 TARGET_DEFAULT_RETURN.
9922 2014-02-19 Tom Tromey <tromey@redhat.com>
9924 * target-delegates.c: Rebuild.
9925 * target.c (update_current_target): Don't inherit or default
9927 (target_thread_name): Unconditionally delegate.
9928 * target.h (struct target_ops) <to_thread_name>: Use
9929 TARGET_DEFAULT_RETURN.
9931 2014-02-19 Tom Tromey <tromey@redhat.com>
9933 * target-delegates.c: Rebuild.
9934 * target.c (update_current_target): Don't inherit or default
9935 to_extra_thread_info.
9936 * target.h (struct target_ops) <to_extra_thread_info>: Use
9937 TARGET_DEFAULT_RETURN.
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9941 * target-delegates.c: Rebuild.
9942 * target.c (update_current_target): Don't inherit or default
9944 * target.h (struct target_ops) <to_has_exited>: Use
9945 TARGET_DEFAULT_RETURN..
9947 2014-02-19 Tom Tromey <tromey@redhat.com>
9949 * target-delegates.c: Rebuild.
9950 * target.c (update_current_target): Don't inherit or default
9951 to_set_syscall_catchpoint.
9952 (return_one): Remove.
9953 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9954 TARGET_DEFAULT_RETURN.
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9958 * target-delegates.c: Rebuild.
9959 * target.c (update_current_target): Don't inherit or default
9960 to_insert_exec_catchpoint.
9961 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9962 TARGET_DEFAULT_RETURN.
9964 2014-01-08 Tom Tromey <tromey@redhat.com>
9966 * target-delegates.c: Rebuild.
9967 * target.c (update_current_target): Don't inherit or default
9968 to_insert_exec_catchpoint.
9969 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9970 TARGET_DEFAULT_RETURN.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (update_current_target): Don't inherit or default
9976 to_remove_vfork_catchpoint.
9977 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: 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
9984 to_insert_vfork_catchpoint.
9985 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: 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_remove_fork_catchpoint.
9993 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9994 TARGET_DEFAULT_RETURN.
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9998 * target-delegates.c: Rebuild.
9999 * target.c (update_current_target): Don't inherit or default
10000 to_insert_fork_catchpoint.
10001 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10002 TARGET_DEFAULT_RETURN.
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10006 * target-delegates.c: Rebuild.
10007 * target.c (update_current_target): Don't inherit or default
10008 to_post_startup_inferior.
10009 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10010 TARGET_DEFAULT_IGNORE.
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10014 * target-delegates.c: Rebuild.
10015 * target.c (update_current_target): Don't inherit or default
10017 * target.h (struct target_ops) <to_load>: Use
10018 TARGET_DEFAULT_NORETURN.
10020 2014-02-19 Tom Tromey <tromey@redhat.com>
10022 * target-delegates.c: Rebuild.
10023 * target.c (update_current_target): Don't inherit or default
10025 * target.h (struct target_ops) <to_terminal_info>: Use
10026 TARGET_DEFAULT_FUNC.
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10030 * target-delegates.c: Rebuild.
10031 * target.c (update_current_target): Don't inherit or default
10032 to_terminal_save_ours.
10033 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10034 TARGET_DEFAULT_IGNORE.
10036 2014-02-19 Tom Tromey <tromey@redhat.com>
10038 * target-delegates.c: Rebuild.
10039 * target.c (update_current_target): Don't inherit or default
10041 * target.h (struct target_ops) <to_terminal_ours>: Use
10042 TARGET_DEFAULT_IGNORE.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target-delegates.c: Rebuild.
10047 * target.c (update_current_target): Don't inherit or default
10048 to_terminal_ours_for_output.
10049 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10050 TARGET_DEFAULT_IGNORE.
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10054 * target-delegates.c: Rebuild.
10055 * target.c (update_current_target): Don't inherit or default
10056 to_terminal_inferior.
10057 * target.h (struct target_ops) <to_terminal_inferior>: Use
10058 TARGET_DEFAULT_IGNORE.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target-delegates.c: Rebuild.
10063 * target.c (update_current_target): Don't inherit or default
10065 * target.h (struct target_ops) <to_terminal_init>: Use
10066 TARGET_DEFAULT_IGNORE.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target-delegates.c: Rebuild.
10071 * target.c (update_current_target): Don't inherit or default
10072 to_can_accel_watchpoint_condition.
10073 * target.h (struct target_ops)
10074 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target-delegates.c: Rebuild.
10079 * target.c (update_current_target): Don't inherit or default
10080 to_region_ok_for_hw_watchpoint.
10081 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10082 Use TARGET_DEFAULT_FUNC.
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10086 * target-delegates.c: Rebuild.
10087 * target.c (update_current_target): Don't inherit or default
10088 to_watchpoint_addr_within_range.
10089 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10090 Use TARGET_DEFAULT_FUNC.
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * target-delegates.c: Rebuild.
10095 * target.c (update_current_target): Don't inherit or default
10096 to_remove_watchpoint.
10097 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10098 TARGET_DEFAULT_NORETURN.
10100 2014-02-19 Tom Tromey <tromey@redhat.com>
10102 * target-delegates.c: Rebuild.
10103 * target.c (update_current_target): Don't inherit or default
10104 to_insert_watchpoint.
10105 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10106 TARGET_DEFAULT_RETURN.
10108 2014-02-19 Tom Tromey <tromey@redhat.com>
10110 * target-delegates.c: Rebuild.
10111 * target.c (update_current_target): Don't inherit or default
10112 to_remove_hw_breakpoint.
10113 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10114 TARGET_DEFAULT_RETURN.
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10118 * target-delegates.c: Rebuild.
10119 * target.c (update_current_target): Don't inherit or default
10120 to_insert_hw_breakpoint.
10121 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10122 TARGET_DEFAULT_RETURN.
10124 2014-02-19 Tom Tromey <tromey@redhat.com>
10126 * target-delegates.c: Rebuild.
10127 * target.c (update_current_target): Don't inherit or default
10128 to_can_use_hw_breakpoint.
10129 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10130 TARGET_DEFAULT_RETURN.
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10134 * target-delegates.c: Rebuild.
10135 * target.c (update_current_target): Don't inherit or default
10137 * target.h (struct target_ops) <to_files_info>: Use
10138 TARGET_DEFAULT_IGNORE.
10140 2014-02-19 Tom Tromey <tromey@redhat.com>
10142 * target-delegates.c: Rebuild.
10143 * target.c (update_current_target): Don't inherit or default
10145 * target.h (struct target_ops) <to_store>: Use
10146 TARGET_DEFAULT_NORETURN.
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10150 * target-delegates.c: Rebuild.
10151 * target.c (update_current_target): Don't inherit or default
10153 * target.h (struct target_ops) <to_post_attach>: Use
10154 TARGET_DEFAULT_IGNORE.
10156 2014-02-19 Tom Tromey <tromey@redhat.com>
10158 * target-delegates.c: Rebuild.
10159 * target.c (update_current_target): Don't inherit or default
10161 (default_rcmd): New function.
10162 (do_monitor_command): Unconditionally delegate.
10163 * target.h (struct target_ops) <to_rmcd>: Use
10164 TARGET_DEFAULT_FUNC.
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10168 * target-delegates.c: Rebuild.
10169 * target.c (init_dummy_target): Don't initialize to_attach.
10170 (target_attach): Unconditionally delegate.
10171 * target.h (struct target_ops) <to_attach>: Use
10172 TARGET_DEFAULT_FUNC.
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10176 * target-delegates.c: Rebuild.
10177 * target.c (target_detach): Unconditionally delegate.
10178 (init_dummy_target): Don't initialize to_detach.
10179 * target.h (struct target_ops) <to_detach>: Use
10180 TARGET_DEFAULT_IGNORE.
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10184 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10186 (target_augmented_libraries_svr4_read): Add argument.
10187 * target.c (update_current_target): Update.
10188 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10193 * target.h (struct target_ops) <to_call_history_range>: Add
10195 * target.c (target_call_history_range): Add argument.
10196 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10198 (record_btrace_call_history_from): Update.
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target.h (struct target_ops) <to_call_history_from>: Add
10204 * target.c (target_call_history_from): Add argument.
10205 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10210 * target.h (struct target_ops) <to_call_history>: Add argument.
10211 * target.c (target_call_history): Add argument.
10212 * record-btrace.c (record_btrace_call_history): Add 'self'
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10217 * target.h (struct target_ops) <to_insn_history_range>: Add
10219 * target.c (target_insn_history_range): Add argument.
10220 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10222 (record_btrace_insn_history_from): Update.
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10226 * target.h (struct target_ops) <to_insn_history_from>: Add
10228 * target.c (target_insn_history_from): Add argument.
10229 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10234 * target.h (struct target_ops) <to_insn_history>: Add argument.
10235 * target.c (target_insn_history): Add argument.
10236 * record-btrace.c (record_btrace_insn_history): Add 'self'
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10241 * target.h (struct target_ops) <to_goto_record>: Add argument.
10242 * target.c (target_goto_record): Add argument.
10243 * record-full.c (record_full_goto): Add 'self' argument.
10244 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10249 * target.c (target_goto_record_end): Add argument.
10250 * record-full.c (record_full_goto_end): Add 'self' argument.
10251 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10253 2014-02-19 Tom Tromey <tromey@redhat.com>
10255 * target.h (struct target_ops) <to_goto_record_begin>: Add
10257 * target.c (target_goto_record_begin): Add argument.
10258 * record-full.c (record_full_goto_begin): Add 'self' argument.
10259 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target.h (struct target_ops) <to_record_is_replaying>: Add
10266 * target.c (target_record_is_replaying): Add argument.
10267 * record-full.c (record_full_is_replaying): Add 'self' argument.
10268 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10270 (record_btrace_xfer_partial, record_btrace_store_registers)
10271 (record_btrace_prepare_to_store, record_btrace_resume)
10272 (record_btrace_wait, record_btrace_decr_pc_after_break)
10273 (record_btrace_find_new_threads, record_btrace_thread_alive):
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10278 * target.h (struct target_ops) <to_delete_record>: Add argument.
10279 * target.c (target_delete_record): Add argument.
10280 * record-full.c (record_full_delete): Add 'self' argument.
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10284 * target.h (struct target_ops) <to_save_record>: Add argument.
10285 * target.c (target_save_record): Add argument.
10286 * record-full.c (record_full_save): Add 'self' argument.
10287 (record_full_save): Add 'self' argument.
10289 2014-02-19 Tom Tromey <tromey@redhat.com>
10291 * target.h (struct target_ops) <to_info_record>: Add argument.
10292 * target.c (target_info_record): Add argument.
10293 * record.c (info_record_command): Add argument.
10294 * record-full.c (record_full_info): Add 'self' argument.
10295 * record-btrace.c (record_btrace_info): Add 'self' argument.
10297 2014-02-19 Tom Tromey <tromey@redhat.com>
10299 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10300 * target.c (target_stop_recording): Add argument.
10301 * record.c (record_stop): Add argument.
10302 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10305 2014-02-19 Tom Tromey <tromey@redhat.com>
10307 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10308 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10309 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10311 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10312 (_initialize_amd64_linux_nat): Use it.
10313 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10314 (_initialize_i386_linux_nat): Use it.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10319 * target.c (target_teardown_btrace): Add argument.
10320 * remote.c (remote_teardown_btrace): Add 'self' argument.
10321 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10323 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10326 2014-02-19 Tom Tromey <tromey@redhat.com>
10328 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10329 * target.c (target_disable_btrace): Add argument.
10330 * remote.c (remote_disable_btrace): Add 'self' argument.
10331 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10333 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10338 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10339 * target.c (target_enable_btrace): Add argument.
10340 * remote.c (remote_enable_btrace): Add 'self' argument.
10341 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10343 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10346 2014-02-19 Tom Tromey <tromey@redhat.com>
10348 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10349 (target_can_use_agent): Add argument.
10350 * target.c (update_current_target): Update.
10351 * remote.c (remote_can_use_agent): Add 'self' argument.
10352 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10354 2014-02-19 Tom Tromey <tromey@redhat.com>
10356 * target.h (struct target_ops) <to_use_agent>: Add argument.
10357 (target_use_agent): Add argument.
10358 * target.c (update_current_target): Update.
10359 * remote.c (remote_use_agent): Add 'self' argument.
10360 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10362 2014-02-19 Tom Tromey <tromey@redhat.com>
10364 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10365 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10366 (target_traceframe_info): Add argument.
10367 * target.c (update_current_target): Update.
10368 * remote.c (remote_traceframe_info): Add 'self' argument.
10369 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10371 2014-02-19 Tom Tromey <tromey@redhat.com>
10373 * target.h (target_static_tracepoint_markers_by_strid): Add
10375 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10377 * target.c (update_current_target): Update.
10378 * remote.c (struct target_ops)
10379 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10380 * linux-nat.c (struct target_ops)
10381 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10387 (target_static_tracepoint_marker_at): Add argument.
10388 * target.c (update_current_target): Update.
10389 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10392 2014-02-19 Tom Tromey <tromey@redhat.com>
10394 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10395 (target_set_permissions): Add argument.
10396 * target.c (update_current_target): Update.
10397 * remote.c (remote_set_permissions): Add 'self' argument.
10398 (remote_start_remote): Update.
10400 2014-02-19 Tom Tromey <tromey@redhat.com>
10402 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10403 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10404 (target_get_tib_address): Add argument.
10405 * target.c (update_current_target): Update.
10406 * remote.c (remote_get_tib_address): Add 'self' argument.
10408 2014-02-19 Tom Tromey <tromey@redhat.com>
10410 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10411 (target_set_trace_notes): Add argument.
10412 * target.c (update_current_target): Update.
10413 * remote.c (remote_set_trace_notes): Add 'self' argument.
10415 2014-02-19 Tom Tromey <tromey@redhat.com>
10417 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10419 (target_set_trace_buffer_size): Add argument.
10420 * target.c (update_current_target): Update.
10421 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10425 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10427 (target_set_circular_trace_buffer): Add argument.
10428 * target.c (update_current_target): Update.
10429 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10432 2014-02-19 Tom Tromey <tromey@redhat.com>
10434 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10436 (target_set_disconnected_tracing): Add argument.
10437 * target.c (update_current_target): Update.
10438 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10440 2014-02-19 Tom Tromey <tromey@redhat.com>
10442 * target.h (struct target_ops)
10443 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10444 (target_get_min_fast_tracepoint_insn_len): Add argument.
10445 * target.c (update_current_target): Update.
10446 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10451 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10453 (target_get_raw_trace_data): Add argument.
10454 * target.c (update_current_target): Update.
10455 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10459 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10461 (target_upload_trace_state_variables): Add argument.
10462 * target.c (update_current_target): Update.
10463 * remote.c (remote_upload_trace_state_variables): Add 'self'
10465 (remote_start_remote): Update.
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10469 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10471 (target_upload_tracepoints): Add argument.
10472 * target.c (update_current_target): Update.
10473 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10474 (remote_start_remote): Update.
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10478 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10479 (target_save_trace_data): Add argument.
10480 * target.c (update_current_target): Update.
10481 * remote.c (remote_save_trace_data): Add 'self' argument.
10483 2014-02-19 Tom Tromey <tromey@redhat.com>
10485 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10487 * target.h (struct target_ops)
10488 <to_get_trace_state_variable_value>: Add argument.
10489 (target_get_trace_state_variable_value): Add argument.
10490 * target.c (update_current_target): Update.
10491 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10493 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10497 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10498 * target.h (struct target_ops) <to_trace_find>: Add argument.
10499 (target_trace_find): Add argument.
10500 * target.c (update_current_target): Update.
10501 * remote.c (remote_trace_find): Add 'self' argument.
10502 * ctf.c (ctf_trace_find): Add 'self' argument.
10504 2014-02-19 Tom Tromey <tromey@redhat.com>
10506 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10507 (target_trace_stop): Add argument.
10508 * target.c (update_current_target): Update.
10509 * remote.c (remote_trace_stop): Add 'self' argument.
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10513 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10514 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10516 (target_get_tracepoint_status): Add argument.
10517 * target.c (update_current_target): Update.
10518 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10520 2014-02-19 Tom Tromey <tromey@redhat.com>
10522 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10523 * target.h (struct target_ops) <to_get_trace_status>: Add
10525 (target_get_trace_status): Add argument.
10526 * target.c (update_current_target): Update.
10527 * remote.c (remote_get_trace_status): Add 'self' argument.
10528 (remote_start_remote, remote_can_download_tracepoint): Update.
10529 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10533 * target.h (struct target_ops) <to_trace_start>: Add argument.
10534 (target_trace_start): Add argument.
10535 * target.c (update_current_target): Update.
10536 * remote.c (remote_trace_start): Add 'self' argument.
10538 2014-02-19 Tom Tromey <tromey@redhat.com>
10540 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10542 (target_trace_set_readonly_regions): Add argument.
10543 * target.c (update_current_target): Update.
10544 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10549 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10551 (target_disable_tracepoint): Add argument.
10552 * target.c (update_current_target): Update.
10553 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10555 2014-02-19 Tom Tromey <tromey@redhat.com>
10557 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10559 (target_enable_tracepoint): Add argument.
10560 * target.c (update_current_target): Update.
10561 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10563 2014-02-19 Tom Tromey <tromey@redhat.com>
10565 * target.h (struct target_ops) <to_download_trace_state_variable>:
10567 (target_download_trace_state_variable): Add argument.
10568 * target.c (update_current_target): Update.
10569 * remote.c (remote_download_trace_state_variable): Add 'self'
10572 2014-02-19 Tom Tromey <tromey@redhat.com>
10574 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10576 (target_can_download_tracepoint): Add argument.
10577 * target.c (update_current_target): Update.
10578 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10580 2014-02-19 Tom Tromey <tromey@redhat.com>
10582 * target.h (struct target_ops) <to_download_tracepoint>: Add
10584 (target_download_tracepoint): Add argument.
10585 * target.c (update_current_target): Update.
10586 * remote.c (remote_download_tracepoint): Add 'self' argument.
10588 2014-02-19 Tom Tromey <tromey@redhat.com>
10590 * target.h (struct target_ops) <to_trace_init>: Add argument.
10591 (target_trace_init): Add argument.
10592 * target.c (update_current_target): Update.
10593 * remote.c (remote_trace_init): Add 'self' argument.
10595 2014-02-19 Tom Tromey <tromey@redhat.com>
10597 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10598 * target.c (target_fileio_readlink): Add argument.
10599 * remote.c (remote_hostio_readlink): Add 'self' argument.
10600 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10602 2014-02-19 Tom Tromey <tromey@redhat.com>
10604 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10605 * target.c (target_fileio_unlink): Add argument.
10606 * remote.c (remote_hostio_unlink): Add 'self' argument.
10607 (remote_file_delete): Update.
10608 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10610 2014-02-19 Tom Tromey <tromey@redhat.com>
10612 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10613 * target.c (target_fileio_close): Add argument.
10614 * remote.c (remote_hostio_close): Add 'self' argument.
10615 (remote_hostio_close_cleanup): Update.
10616 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10618 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10620 2014-02-19 Tom Tromey <tromey@redhat.com>
10622 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10623 * target.c (target_fileio_pread): Add argument.
10624 * remote.c (remote_hostio_pread): Add 'self' argument.
10625 (remote_bfd_iovec_pread, remote_file_get): Update.
10626 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10628 2014-02-19 Tom Tromey <tromey@redhat.com>
10630 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10631 * target.c (target_fileio_pwrite): Add argument.
10632 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10633 (remote_file_put): Update.
10634 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10636 2014-02-19 Tom Tromey <tromey@redhat.com>
10638 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10639 * target.c (target_fileio_open): Add argument.
10640 * remote.c (remote_hostio_open): Add 'self' argument.
10641 (remote_bfd_iovec_open): Add 'self' argument.
10642 (remote_file_put): Add 'self' argument.
10643 (remote_file_get): Add 'self' argument.
10644 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10648 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10650 (target_can_run_breakpoint_commands): Add argument.
10651 * target.c (update_current_target): Update.
10652 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10654 (remote_insert_breakpoint): Add 'self' argument.
10655 (remote_insert_hw_breakpoint): Add 'self' argument.
10656 (remote_can_run_breakpoint_commands): Add 'self' argument.
10658 2014-02-19 Tom Tromey <tromey@redhat.com>
10660 * target.h (struct target_ops)
10661 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10662 (target_supports_evaluation_of_breakpoint_conditions): Add
10664 * target.c (update_current_target): Update.
10665 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10667 (remote_insert_breakpoint): Add 'self' argument.
10668 (remote_insert_hw_breakpoint): Add 'self' argument.
10669 (remote_supports_cond_breakpoints): Add 'self' argument.
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10673 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10675 (target_supports_string_tracing): Add argument.
10676 * target.c (update_current_target): Update.
10677 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10679 2014-02-19 Tom Tromey <tromey@redhat.com>
10681 * target.h (struct target_ops)
10682 <to_supports_disable_randomization>: Add argument.
10683 * target.c (find_default_supports_disable_randomization): Add
10685 (target_supports_disable_randomization): Add argument.
10686 (find_default_supports_disable_randomization): Add 'self'
10688 * remote.c (extended_remote_supports_disable_randomization): Add
10690 (remote_supports_disable_randomization): Add 'self' argument.
10691 (extended_remote_create_inferior): Update.
10692 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10697 * target.h (struct target_ops)
10698 <to_supports_enable_disable_tracepoint>: Add argument.
10699 (target_supports_enable_disable_tracepoint): Add argument.
10700 * target.c (update_current_target): Update.
10701 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * target.h (struct target_ops) <to_supports_multi_process>: Add
10708 (target_supports_multi_process): Add argument.
10709 * target.c (update_current_target): Update.
10710 * remote.c (remote_supports_multi_process): Add 'self' argument.
10711 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10713 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10716 2014-02-19 Tom Tromey <tromey@redhat.com>
10718 * target.h (struct target_ops) <to_execution_direction>: Add
10720 (target_execution_direction): Add argument.
10721 * target.c (default_execution_direction): Add 'self' argument.
10722 * record-full.c (record_full_execution_direction): Add 'self'
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10727 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10729 (target_can_execute_reverse): Add argument.
10730 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10731 * record-full.c (record_full_can_execute_reverse): Add 'self'
10733 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10739 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10741 (target_get_ada_task_ptid): Add argument.
10742 * target.c (update_current_target): Update.
10743 (default_get_ada_task_ptid): Add 'self' argument.
10744 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10745 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10746 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10748 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10750 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10752 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10754 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10755 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10760 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10761 (target_goto_bookmark): Add argument.
10762 * target.c (dummy_goto_bookmark): Add 'self' argument.
10763 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10765 2014-02-19 Tom Tromey <tromey@redhat.com>
10767 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10768 (target_get_bookmark): Add argument.
10769 * target.c (dummy_get_bookmark): Add 'self' argument.
10770 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10772 2014-02-19 Tom Tromey <tromey@redhat.com>
10774 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10776 (target_make_corefile_notes): Add argument.
10777 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10778 * procfs.c (procfs_make_note_section): Add 'self' argument.
10779 (procfs_make_note_section): Add 'self' argument.
10780 (procfs_make_note_section): Add 'self' argument.
10781 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10783 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10784 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10785 * exec.c (exec_make_note_section): Add 'self' argument.
10786 (exec_make_note_section): Add 'self' argument.
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10790 * target.h (struct target_ops) <to_find_memory_regions>: Add
10792 (target_find_memory_regions): Add argument.
10793 * target.c (dummy_find_memory_regions): Add 'self' argument.
10794 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10795 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10796 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10797 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10798 * exec. (exec_do_find_memory_regions): New global.
10799 (exec_set_find_memory_regions): Rewrite.
10800 (exec_find_memory_regions): New function.
10801 (init_exec_ops): Use exec_find_memory_regions.
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10805 * target.h (struct target_ops) <to_supports_non_stop>: Add
10807 * target.c (find_default_supports_non_stop): Add argument.
10808 (target_supports_non_stop): Add argument.
10809 (find_default_supports_non_stop): Add 'self' argument.
10810 * remote.c (remote_supports_non_stop): Add 'self' argument.
10811 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10813 2014-02-19 Tom Tromey <tromey@redhat.com>
10815 * target.h (struct target_ops) <to_log_command>: Add argument.
10816 (target_log_command): Add argument.
10817 * serial.h (serial_log_command): Add 'self' argument.
10818 * serial.c (serial_log_command): Add 'self' argument.
10820 2014-02-19 Tom Tromey <tromey@redhat.com>
10822 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10823 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10825 (target_pid_to_exec_file): Add argument.
10826 * target.c (debug_to_pid_to_exec_file): Add argument.
10827 (update_current_target): Update.
10828 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10829 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10830 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10831 (linux_handle_extended_wait): Update.
10832 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10833 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10834 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10835 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10837 2014-02-19 Tom Tromey <tromey@redhat.com>
10839 * target.h (struct target_ops) <to_rcmd>: Add argument.
10840 (target_rcmd): Add argument.
10841 * target.c (debug_to_rcmd): Add argument.
10842 (update_current_target, do_monitor_command): Update.
10843 * remote.c (remote_rcmd): Add 'self' argument.
10844 * monitor.c (monitor_rcmd): Add 'self' argument.
10846 2014-02-19 Tom Tromey <tromey@redhat.com>
10848 * windows-nat.c (windows_stop): Add 'self' argument.
10849 * target.h (struct target_ops) <to_stop>: Add argument.
10850 * target.c (target_stop): Add argument.
10851 (debug_to_stop): Add argument.
10852 (update_current_target): Update.
10853 * remote.c (remote_stop): Add 'self' argument.
10854 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10855 (gdbsim_cntrl_c): Update.
10856 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10857 * procfs.c (procfs_stop): Add 'self' argument.
10858 * nto-procfs.c (procfs_stop): Add 'self' argument.
10859 * monitor.c (monitor_stop): Add 'self' argument.
10860 (monitor_open): Update.
10861 * linux-nat.c (linux_nat_stop): Add argument.
10862 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10863 * gnu-nat.c (gnu_stop): Add 'self' argument.
10864 * darwin-nat.c (darwin_stop): Add 'self' argument.
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10868 * target.h (struct target_ops) <to_thread_name>: Add argument.
10869 * target.c (target_thread_name): Add argument.
10870 (update_current_target): Update.
10871 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10873 2014-02-19 Tom Tromey <tromey@redhat.com>
10875 * target.h (struct target_ops) <to_extra_thread_info>: Add
10877 (target_extra_thread_info): Add argument.
10878 * target.c (update_current_target): Update.
10879 * remote.c (remote_threads_extra_info): Add 'self' argument.
10880 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10882 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10883 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10884 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10886 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10888 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10890 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10893 2014-02-19 Tom Tromey <tromey@redhat.com>
10895 * target.h (struct target_ops) <to_program_signals>: Add argument.
10896 * target.c (target_program_signals): Add argument.
10897 * remote.c (remote_program_signals): Add 'self' argument.
10899 2014-02-19 Tom Tromey <tromey@redhat.com>
10901 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10902 * target.c (target_pass_signals): Add argument.
10903 * remote.c (remote_pass_signals): Add 'self' argument.
10904 (remote_start_remote): Update.
10905 * procfs.c (procfs_pass_signals): Add 'self' argument.
10906 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10907 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10908 (linux_nat_create_inferior, linux_nat_attach): Update.
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10912 * windows-nat.c (windows_can_run): Add 'self' argument.
10913 * target.h (struct target_ops) <to_can_run>: Add argument.
10914 (target_can_run): Add argument.
10915 * target.c (debug_to_can_run): Add argument.
10916 (update_current_target): Update.
10917 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10918 * inf-child.c (inf_child_can_run): Add 'self' argument.
10919 * go32-nat.c (go32_can_run): Add 'self' argument.
10921 2014-02-19 Tom Tromey <tromey@redhat.com>
10923 * target.h (struct target_ops) <to_has_exited>: Add argument.
10924 (target_has_exited): Add argument.
10925 * target.c (debug_to_has_exited): Add argument.
10926 (update_current_target): Update.
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10930 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10932 (target_set_syscall_catchpoint): Add argument.
10933 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10935 * target.c (update_current_target): Update.
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10939 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10941 (target_remove_exec_catchpoint): Add argument.
10942 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10943 (update_current_target): Update.
10944 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10949 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10951 (target_insert_exec_catchpoint): Add argument.
10952 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10953 (update_current_target): Update.
10954 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10957 2014-02-19 Tom Tromey <tromey@redhat.com>
10959 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10961 (target_remove_vfork_catchpoint): Add argument.
10962 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10963 (update_current_target): Update.
10964 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10967 2014-02-19 Tom Tromey <tromey@redhat.com>
10969 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10971 (target_insert_vfork_catchpoint): Add argument.
10972 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10973 (update_current_target): Update.
10974 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10977 2014-02-19 Tom Tromey <tromey@redhat.com>
10979 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10981 (target_remove_fork_catchpoint): Add argument.
10982 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10983 (update_current_target): Update.
10984 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10989 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10991 (target_insert_fork_catchpoint): Add argument.
10992 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10993 (update_current_target): Update.
10994 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10997 2014-02-19 Tom Tromey <tromey@redhat.com>
10999 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11001 (target_post_startup_inferior): Add argument.
11002 * target.c (debug_to_post_startup_inferior): Add argument.
11003 (update_current_target): Update.
11004 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11006 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11008 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11010 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11012 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11014 (super_post_startup_inferior): Likewise.
11015 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11017 (super_post_startup_inferior): Likewise.
11018 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11019 Add 'self' argument.
11020 (super_post_startup_inferior): Likewise.
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11024 * target.h (struct target_ops) <to_load>: Add argument.
11025 * target.c (target_load): Add argument.
11026 (debug_to_load): Add argument.
11027 (update_current_target): Update.
11028 * remote.c (remote_load): Add 'self' argument.
11029 * remote-sim.c (gdbsim_load): Add 'self' argument.
11030 * remote-mips.c (mips_load): Add 'self' argument.
11031 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11032 * monitor.c (monitor_load): Add 'self' argument.
11033 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11035 2014-02-19 Tom Tromey <tromey@redhat.com>
11037 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11038 (target_terminal_info): Add argument.
11039 * target.c (debug_to_terminal_info): Add argument.
11040 (default_terminal_info): Likewise.
11041 * inflow.c (child_terminal_info): Add 'self' argument.
11042 * inferior.h (child_terminal_info): Add 'self' argument.
11043 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11045 2014-02-19 Tom Tromey <tromey@redhat.com>
11047 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11049 (target_terminal_save_ours): Add argument.
11050 * target.c (debug_to_terminal_save_ours): Add argument.
11051 (update_current_target): Update.
11052 * inflow.c (terminal_save_ours): Add 'self' argument.
11053 * inferior.h (terminal_save_ours): Add 'self' argument.
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11057 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11058 (target_terminal_ours): Add argument.
11059 * target.c (debug_to_terminal_ours): Add argument.
11060 (update_current_target): Update.
11061 * remote.c (remote_terminal_ours): Add 'self' argument.
11062 (remote_close): Update.
11063 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11064 * inflow.c (terminal_ours): Add 'self' argument.
11065 * inferior.h (terminal_ours): Add 'self' argument.
11066 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11068 2014-02-19 Pedro Alves <palves@redhat.com>
11069 Tom Tromey <tromey@redhat.com>
11071 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11073 (target_terminal_ours_for_output): Add argument.
11074 * target.c (debug_to_terminal_ours_for_output): Add argument.
11075 (update_current_target): Update.
11076 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11077 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11078 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11080 2014-02-19 Tom Tromey <tromey@redhat.com>
11082 * target.h (struct target_ops) <to_terminal_inferior>: Add
11084 * target.c (target_terminal_inferior): Add argument.
11085 (update_current_target): Update.
11086 * remote.c (remote_terminal_inferior): Add 'self' argument.
11087 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11088 * inflow.c (terminal_inferior): Add 'self' argument.
11089 * inferior.h (terminal_inferior): Add 'self' argument.
11090 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11091 (go32_terminal_inferior): Add 'self' argument.
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11095 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11096 (target_terminal_init): Add argument.
11097 * target.c (debug_to_terminal_init): Add argument.
11098 (update_current_target): Update.
11099 * inflow.c (terminal_init_inferior): Add 'self' argument.
11100 * inferior.h (terminal_init_inferior): Add 'self' argument.
11101 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11102 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11104 2014-02-19 Tom Tromey <tromey@redhat.com>
11106 * target.h (struct target_ops)
11107 <to_can_accel_watchpoint_condition>: Add argument.
11108 (target_can_accel_watchpoint_condition): Add argument.
11109 * target.c (debug_to_can_accel_watchpoint_condition): Add
11111 (update_current_target): Update.
11112 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11117 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11119 (target_region_ok_for_hw_watchpoint): Add argument.
11120 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11121 (default_region_ok_for_hw_watchpoint): Add argument.
11122 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11123 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11125 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11127 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11129 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11131 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11133 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11135 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11136 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11138 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11139 Add 'self' argument.
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11143 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11145 (target_insert_watchpoint): Add argument.
11146 * target.c (debug_to_insert_watchpoint): Add argument.
11147 (update_current_target): Update.
11148 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11149 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11150 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11151 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11152 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11153 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11155 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11156 (procfs_insert_hw_watchpoint): Add 'self' argument.
11157 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11159 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11161 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11163 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11164 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11166 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11169 2014-02-19 Tom Tromey <tromey@redhat.com>
11171 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11173 (target_remove_watchpoint): Add argument.
11174 * target.c (debug_to_remove_watchpoint): Add argument.
11175 (update_current_target): Update.
11176 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11177 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11178 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11179 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11180 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11181 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11183 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11184 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11186 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11188 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11190 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11191 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11193 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11196 2014-02-19 Tom Tromey <tromey@redhat.com>
11198 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11200 (target_remove_hw_breakpoint): Add argument.
11201 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11202 (update_current_target): Update.
11203 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11204 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11206 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11207 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11209 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11212 2014-02-19 Tom Tromey <tromey@redhat.com>
11214 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11216 (target_insert_hw_breakpoint): Add argument.
11217 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11218 (update_current_target): Update.
11219 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11220 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11222 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11223 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11224 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11226 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11231 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11233 (target_can_use_hardware_watchpoint): Add argument.
11234 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11235 (update_current_target): Update.
11236 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11238 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11240 * remote.c (remote_check_watch_resources): Add 'self' argument.
11241 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11242 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11244 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11245 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11247 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11249 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11251 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11253 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11255 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11257 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11258 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11260 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11265 * target.h (struct target_ops) <to_post_attach>: Add argument.
11266 (target_post_attach): Add argument.
11267 * target.c (debug_to_post_attach): Add argument.
11268 (update_current_target): Update.
11269 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11270 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11271 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11272 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11273 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * windows-nat.c (windows_close): Add 'self' argument.
11278 * tracepoint.c (tfile_close): Add 'self' argument.
11279 * target.h (struct target_ops) <to_close>: Add argument.
11280 * target.c (target_close): Add argument.
11281 (update_current_target): Update.
11282 * remote.c (remote_close): Add 'self' argument.
11283 * remote-sim.c (gdbsim_close): Add 'self' argument.
11284 * remote-mips.c (mips_close): Add 'self' argument.
11285 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11286 * record-full.c (record_full_close): Add 'self' argument.
11287 * record-btrace.c (record_btrace_close): Add 'self' argument.
11288 * monitor.h (monitor_close): Add 'self' argument.
11289 * monitor.c (monitor_close): Add 'self' argument.
11290 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11291 * linux-nat.c (linux_nat_close): Add argument.
11292 * go32-nat.c (go32_close): Add 'self' argument.
11293 * exec.c (exec_close_1): Add 'self' argument.
11294 * ctf.c (ctf_close): Add 'self' argument.
11295 * corelow.c (core_close): Add 'self' argument.
11296 (core_close_cleanup): Update.
11297 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11298 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11302 * remote.c (remote_load): New function.
11303 (init_remote_ops): Use it.
11305 2014-02-19 Tom Tromey <tromey@redhat.com>
11307 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11309 * common/linux-btrace.h (linux_supports_btrace): Update.
11310 * remote.c (remote_supports_btrace): Add "self" argument.
11311 * target-delegates.c: Rebuild.
11312 * target.c (target_supports_btrace): Remove.
11313 * target.h (struct target_ops) <to_supports_btrace>: Add
11314 target_ops argument.
11315 (target_supports_btrace): New define.
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * record-full.c (record_full_beneath_to_resume_ops)
11320 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11321 (record_full_beneath_to_wait)
11322 (record_full_beneath_to_store_registers_ops)
11323 (record_full_beneath_to_store_registers)
11324 (record_full_beneath_to_xfer_partial_ops)
11325 (record_full_beneath_to_xfer_partial)
11326 (record_full_beneath_to_insert_breakpoint_ops)
11327 (record_full_beneath_to_insert_breakpoint)
11328 (record_full_beneath_to_remove_breakpoint_ops)
11329 (record_full_beneath_to_remove_breakpoint)
11330 (record_full_beneath_to_stopped_by_watchpoint)
11331 (record_full_beneath_to_stopped_data_address)
11332 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11333 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11334 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11335 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11336 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11337 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11338 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11339 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11340 (record_full_resume, record_full_wait_1)
11341 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11342 (record_full_store_registers, record_full_xfer_partial)
11343 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11344 (record_full_async, record_full_core_xfer_partial): Use target
11346 * target-delegates.c: Rebuild.
11347 * target.c (current_xfer_partial): Remove.
11348 (update_current_target): Do not INHERIT or de_fault
11349 to_insert_breakpoint, to_remove_breakpoint,
11350 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11351 to_is_async_p, to_async. Do not set to_xfer_partial field.
11352 (default_xfer_partial): Simplify.
11353 (current_xfer_partial): Remove.
11354 (target_wait, target_resume): Simplify.
11355 (find_default_can_async_p, find_default_is_async_p): Update.
11356 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11357 to_xfer_partial, to_stopped_by_watchpoint,
11358 to_stopped_data_address.
11359 (target_store_registers): Simplify.
11360 (forward_target_remove_breakpoint)
11361 (forward_target_insert_breakpoint): Remove.
11362 (target_remove_breakpoint, target_insert_breakpoint)
11363 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11364 * target.h (struct target_ops) <to_resume, to_wait,
11365 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11366 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11367 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11369 (forward_target_remove_breakpoint)
11370 (forward_target_insert_breakpoint): Remove.
11371 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11373 (record_btrace_insert_breakpoint): Delegate directly.
11375 2014-02-19 Tom Tromey <tromey@redhat.com>
11378 * target-delegates.c: New file.
11379 * target.c: Include target-delegates.c.
11380 (init_dummy_target): Call install_dummy_methods.
11381 (complete_target_initialization): Call install_delegators.
11382 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11383 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11384 * make-target-delegates: New file.
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11388 * record.c (find_record_target): Use find_target_at.
11389 * target.c (find_target_at): New function.
11390 * target.h (find_target_at): Declare.
11392 2014-02-19 Tom Tromey <tromey@redhat.com>
11394 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11395 Add 'ops' argument.
11396 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11398 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11399 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11401 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11403 * linux-nat.c (save_sigtrap): Update.
11404 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11405 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11406 (linux_nat_close): Update.
11407 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11409 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11411 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11412 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11413 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11414 (tmp_to_async): Add 'ops' argument.
11415 (record_full_stopped_by_watchpoint, record_full_async)
11416 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11418 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11419 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11420 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11421 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11422 (remote_is_async_p, remote_async): Add 'ops' argument.
11423 (remote_stopped_data_address): Update.
11424 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11425 * target.c (update_current_target)
11426 (find_default_can_async_p, find_default_is_async_p): Update.
11427 (init_dummy_target): Update.
11428 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11429 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11430 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11431 (target_can_async_p, target_is_async_p, target_async)
11432 (target_stopped_by_watchpoint): Update.
11434 2014-02-19 Yao Qi <yao@codesourcery.com>
11437 * gdbarch.sh: Remove startup_gdbarch.
11438 * gdbarch.c: Regenerated.
11439 * gdbarch.h: Likewise.
11441 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11443 * rl78-tdep.c (rl78_g10_register_name): New function.
11444 (rl78_return_value): Add g10 support.
11445 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11448 2014-02-17 Doug Evans <xdje42@gmail.com>
11450 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11451 (SUBDIR_GUILE_SRCS): Ditto.
11452 (scm-gsmob.o): Ditto.
11454 2014-02-17 Yao Qi <yao@codesourcery.com>
11456 * gnu-nat.c (ILL_RPC): Declare defined function.
11458 2014-02-17 Yao Qi <yao@codesourcery.com>
11460 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11461 mach_msg_type_number_t.
11462 (gnu_write_inferior): Likewise.
11464 2014-02-17 Yao Qi <yao@codesourcery.com>
11466 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11468 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11469 (inf_validate_procs, inf_signal): Likewise.
11470 (S_exception_raise_request): Likewise.
11471 (do_mach_notify_dead_name): Likewise.
11472 (steal_exc_port): Likewise.
11473 (gnu_read_inferior): Change 'copy_count''s type to
11474 mach_msg_type_number_t.
11475 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11478 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11480 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11481 flag. Adjust all users; in particular...
11482 (gnu_wait): ..., don't decrement its value in here...
11483 (gnu_create_inferior): ..., and instead set the flag in here,
11484 around the startup_inferior call, and call that one with
11485 START_INFERIOR_TRAPS_EXPECTED.
11487 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11488 (ILL_RPC): ... new macro.
11489 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11490 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11491 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11492 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11493 functions with ILL_RPC macro.
11494 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11495 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11496 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11497 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11498 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11499 (S_proc_getlogin_reply, S_proc_getsid_reply)
11500 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11501 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11502 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11503 (S_proc_getnports_reply, S_proc_is_important_reply)
11504 (S_proc_get_code_reply): New stub functions, generated with
11507 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11508 collected the type check structures.
11510 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11512 2014-02-14 Doug Evans <dje@google.com>
11514 * target.c (target_write_partial): Fix result type.
11516 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11518 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11519 the proper offsets to access fpregset_t.
11521 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11523 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11524 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11525 * h8300-tdep.c (setmachinelist): Remove global.
11526 * hppa-tdep.c (hppa_sigtramp): Remove global.
11527 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11528 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11529 * ravenscar-thread.c (update_target_observer): Remove global.
11530 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11532 2014-02-12 Tom Tromey <tromey@redhat.com>
11534 * common/rsp-low.c: Update comments.
11535 * common/rsp-low.h: Update comments.
11537 2014-02-12 Tom Tromey <tromey@redhat.com>
11539 * common/rsp-low.c (convert_ascii_to_int): Remove.
11540 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11542 2014-02-12 Tom Tromey <tromey@redhat.com>
11544 * common/rsp-low.h (unhexify): Don't declare.
11545 * common/rsp-low.c (unhexify): Remove.
11547 2014-02-12 Tom Tromey <tromey@redhat.com>
11549 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11550 * common/rsp-low.c (convert_int_to_ascii): Remove.
11552 2014-02-12 Tom Tromey <tromey@redhat.com>
11554 * common/rsp-low.h (hexify): Don't declare.
11555 * common/rsp-low.c (hexify): Remove.
11557 2014-02-12 Tom Tromey <tromey@redhat.com>
11559 * common/rsp-low.c (hexify): Never take strlen of argument.
11561 2014-02-12 Tom Tromey <tromey@redhat.com>
11563 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11564 * remote.c (extended_remote_run, remote_rcmd)
11565 (remote_download_trace_state_variable, remote_save_trace_data)
11566 (remote_set_trace_notes): Update.
11567 * tracepoint.c (encode_source_string, tfile_write_status)
11568 (tfile_write_uploaded_tsv): Update.
11570 2014-02-12 Tom Tromey <tromey@redhat.com>
11572 * tracepoint.c: Include rsp-low.h.
11573 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11574 * remote.c: Include rsp-low.h.
11575 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11576 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11577 (remote_unescape_input): Move to common/rsp-low.c.
11578 * common/rsp-low.h: New file.
11579 * common/rsp-low.c: New file.
11580 * Makefile.in (SFILES): Add common/rsp-low.c.
11581 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11582 (COMMON_OBS): Add rsp-low.o.
11583 (rsp-low.o): New target.
11585 2014-02-12 Tom Tromey <tromey@redhat.com>
11587 * utils.h: Include print-utils.h.
11588 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11589 (int_string, core_addr_to_string, core_addr_to_string_nz)
11590 (hex_string, hex_string_custom): Don't declare.
11591 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11592 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11593 (hex_string_custom, int_string, core_addr_to_string)
11594 (core_addr_to_string_nz, host_address_to_string): Move to
11595 common/print-utils.c.
11596 * common/print-utils.h: New file.
11597 * common/print-utils.c: New file
11598 * Makefile.in (SFILES): Add common/print-utils.c.
11599 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11600 (COMMON_OBS): Add print-utils.o.
11601 (print-utils.o): New target.
11603 2014-02-12 Tom Tromey <tromey@redhat.com>
11605 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11607 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11609 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11611 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11613 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11614 if a PT_IO ptrace request returns sucessfully but indicates that 0
11615 bytes were transferred.
11617 2014-02-12 Pedro Alves <palves@redhat.com>
11618 Kevin Buettner <kevinb@redhat.com>
11620 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11621 TYPE_INSTANCE_FLAG_CODE_SPACE.
11623 2014-02-12 Pedro Alves <palves@redhat.com>
11625 * h8300-tdep.c (pseudo_from_raw_register)
11626 (raw_from_pseudo_register): New functions.
11627 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11630 2014-02-12 Pedro Alves <palves@redhat.com>
11632 * h8300-tdep.c (h8300_register_sim_regno): New function.
11633 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11634 gdbarch_register_sim_regno hook.
11636 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11638 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11640 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11642 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11644 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11646 * obsd-tdep.h (obsd_init_abi): New prototype.
11647 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11648 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11649 (obsd_init_abi): New functions.
11650 * i386obsd-tdep.c: Include "obsd-tdep.h".
11651 (i386obsd_init_abi): Call obsd_init_abi.
11652 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11653 (amd64obsd_init_abi): Call obsd_init_abi.
11654 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11655 obsd-tdep.c to gdb_target_obs.
11657 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11659 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11660 double float arguments to 16-byte in the argument slots.
11662 2014-02-11 Doug Evans <xdje42@gmail.com>
11664 * configure.ac: Don't crash if pkg-config is not found and guile
11665 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11667 * configure: Regenerate.
11669 2014-02-11 Yao Qi <yao@codesourcery.com>
11671 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11672 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11673 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11674 * gnu-nat.c (gnu_xfer_memory): Likewise.
11675 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11676 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11677 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11678 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11680 2014-02-11 Yao Qi <yao@codesourcery.com>
11682 * target.h (enum target_xfer_error): Rename to ...
11683 (enum target_xfer_status): ... it. New. All users updated.
11684 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11686 (TARGET_XFER_STATUS_ERROR_P): New macro.
11687 (target_xfer_error_to_string): Remove declaration.
11688 (target_xfer_status_to_string): Declare.
11689 (target_xfer_partial_ftype): Adjust it.
11690 (struct target_ops) <to_xfer_partial>: Return
11691 target_xfer_status. Add argument xfered_len. Update
11693 * target.c (target_xfer_error_to_string): Rename to ...
11694 (target_xfer_status_to_string): ... it. New. All callers
11696 (target_read_live_memory): Likewise. Call target_xfer_partial
11697 instead of target_read.
11698 (memory_xfer_live_readonly_partial): Return
11699 target_xfer_status. Add argument xfered_len.
11700 (raw_memory_xfer_partial): Likewise.
11701 (memory_xfer_partial_1): Likewise.
11702 (memory_xfer_partial): Likewise.
11703 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11704 properly. Update debug message.
11705 (default_xfer_partial, current_xfer_partial): Likewise.
11706 (target_write_partial): Likewise.
11707 (target_read_partial): Likewise. All callers updated.
11708 (read_whatever_is_readable): Likewise.
11709 (target_write_with_progress): Likewise.
11710 (target_read_alloc_1): Likewise.
11712 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11713 * auxv.c (procfs_xfer_auxv): Likewise.
11714 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11715 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11716 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11717 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11718 * corefile.c (read_memory): Adjust.
11719 * corelow.c (core_xfer_partial): Likewise.
11720 * ctf.c (ctf_xfer_partial): Likewise.
11721 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11723 (darwin_xfer_partial): Likewise.
11724 * exec.c (section_table_xfer_memory_partial): Likewise. All
11726 (exec_xfer_partial): Likewise.
11727 * exec.h (section_table_xfer_memory_partial): Update
11729 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11731 (gnu_xfer_partial): Likewise.
11732 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11733 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11734 (ia64_hpux_xfer_solib_got): Likewise.
11735 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11736 type of 'partial_len' to ULONGEST.
11737 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11738 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11739 (linux_nat_xfer_partial): Likewise.
11740 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11741 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11742 * monitor.c (monitor_xfer_memory): Likewise.
11743 (monitor_xfer_partial): Likewise.
11744 * procfs.c (procfs_xfer_partial): Likewise.
11745 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11746 * record-full.c (record_full_xfer_partial): Likewise.
11747 (record_full_core_xfer_partial): Likewise.
11748 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11749 (gdbsim_xfer_partial): Likewise.
11750 * remote.c (remote_write_bytes_aux): Likewise. All callers
11752 (remote_write_bytes, remote_read_bytes): Likewise. All
11754 (remote_flash_erase): Likewise. All callers updated.
11755 (remote_write_qxfer): Likewise. All callers updated.
11756 (remote_read_qxfer): Likewise. All callers updated.
11757 (remote_xfer_partial): Likewise.
11758 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11759 (rs6000_xfer_shared_libraries): Likewise.
11760 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11761 (sol_thread_xfer_partial): Likewise.
11762 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11763 (sparc_xfer_partial): Likewise.
11764 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11766 (spu_xfer_partial): Likewise.
11767 * spu-multiarch.c (spu_xfer_partial): Likewise.
11768 * tracepoint.c (tfile_xfer_partial): Likewise.
11769 * windows-nat.c (windows_xfer_memory): Likewise.
11770 (windows_xfer_shared_libraries): Likewise.
11771 (windows_xfer_partial): Likewise.
11772 * valprint.c: Replace 'target_xfer_error' with
11773 'target_xfer_status' in comments.
11775 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11777 Checked in by Joel Brobecker <brobecker@adacore.com>.
11778 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11780 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11782 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11783 function parameters.
11785 2014-02-10 Will Newton <will.newton@linaro.org>
11787 * elfread.c (elf_rel_plt_read): Look for a .got section if
11788 looking up .got.plt fails.
11789 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11790 on address passed to elf_gnu_ifunc_record_cache.
11791 (elf_gnu_ifunc_resolve_addr): Likewise.
11792 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11794 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11796 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11797 (X_RETTURN): New macro.
11798 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11800 * sparc64-tdep.c (sparc64_init_abi): Hook
11801 sparc_in_function_epilogue_p.
11803 2014-02-10 Gary Benson <gbenson@redhat.com>
11805 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11806 Rename name_matcher to symbol_matcher.
11808 2014-02-10 Gary Benson <gbenson@redhat.com>
11810 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11811 Use expand_symtabs_file_matcher_ftype and
11812 expand_symtabs_symbol_matcher_ftype.
11814 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11816 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11817 (struct ada_symbol_cache): New.
11818 (ada_free_symbol_cache): Forward declare.
11819 (struct ada_pspace_data): New.
11820 (ada_pspace_data_handle): New static global.
11821 (get_ada_pspace_data, ada_pspace_data_cleanup)
11822 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11823 (cache_space, cache): Delete, now folded inside struct
11825 (ada_get_symbol_cache): New function.
11826 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11828 (_initialize_ada_language): Remove initialization of cache_space.
11829 Move call to observer_attach_inferior_exit up, grouping it
11830 with the other observer registrations inside this function.
11831 Rename command to be more general. Add call to
11832 register_program_space_data_with_cleanup.
11834 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11836 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11837 ada_new_objfile_observer.
11838 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11839 (_initialize_tasks): Update uses of ada_new_objfile_observer
11840 and ada_tasks_normal_stop_observer.
11842 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11844 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11845 returned by the 'Length attribute to integer.
11847 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11849 * ada-lang.c (_initialize_ada_language): Initialize
11850 cache_space obstack.
11852 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11854 * ada-lang.c (HASH_SIZE): New macro.
11855 (struct cache_entry): New type.
11856 (cache_space, cache): New static globals.
11857 (ada_clear_symbol_cache, find_entry): New functions.
11858 (lookup_cached_symbol, cache_symbol): Implement.
11859 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11860 (_initialize_ada_language): Attach ada_new_objfile_observer
11861 and ada_free_objfile_observer.
11863 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11865 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11866 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11867 struct block * parameter.
11868 (ada_lookup_symbol_list_worker): Constify local variable "block".
11869 Remove cast which is no longer necessary.
11871 2014-02-10 Doug Evans <xdje42@gmail.com>
11873 Add Guile as an extension language.
11874 * NEWS: Mention Guile scripting.
11875 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11876 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11877 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11878 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11879 (CLIBS): Add GUILE_LIBS.
11880 (install-guile): New rule.
11881 (guile.o): New rule.
11882 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11883 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11884 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11885 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11886 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11887 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11888 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11889 * configure.ac: New option --with-guile.
11890 * configure: Regenerate.
11891 * config.in: Regenerate.
11892 * auto-load.c: Remove #include "python/python.h". Add #include
11893 "gdb/section-scripts.h".
11894 (source_section_scripts): Handle Guile scripts.
11895 (_initialize_auto_load): Add name of Guile objfile script to
11896 scripts-directory help text.
11897 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11898 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11899 (struct breakpoint): New member scm_bp_object.
11900 * defs.h (enum command_control_type): New value guile_control.
11901 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11903 (show_user): Update comment.
11904 (_initialize_cli_cmds): Update help text for "show user". Update help
11905 text for max-user-call-depth.
11906 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11908 (multi_line_command_p): Add guile_control.
11909 (print_command_lines): Handle guile_control.
11910 (execute_control_command, recurse_read_control_structure): Ditto.
11911 (process_next_line): Recognize "guile" commands.
11912 * disasm.c (gdb_disassemble_info): Make non-static.
11913 * disasm.h: #include "dis-asm.h".
11914 (struct gdbarch): Add forward decl.
11915 (gdb_disassemble_info): Declare.
11916 * extension.c: #include "guile/guile.h".
11917 (extension_languages): Add guile.
11918 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11919 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11920 * gdbtypes.c (get_unsigned_type_max): New function.
11921 (get_signed_type_minmax): New function.
11922 * gdbtypes.h (get_unsigned_type_max): Declare.
11923 (get_signed_type_minmax): Declare.
11924 * guile/README: New file.
11925 * guile/guile-internal.h: New file.
11926 * guile/guile.c: New file.
11927 * guile/guile.h: New file.
11928 * guile/scm-arch.c: New file.
11929 * guile/scm-auto-load.c: New file.
11930 * guile/scm-block.c: New file.
11931 * guile/scm-breakpoint.c: New file.
11932 * guile/scm-disasm.c: New file.
11933 * guile/scm-exception.c: New file.
11934 * guile/scm-frame.c: New file.
11935 * guile/scm-gsmob.c: New file.
11936 * guile/scm-iterator.c: New file.
11937 * guile/scm-lazy-string.c: New file.
11938 * guile/scm-math.c: New file.
11939 * guile/scm-objfile.c: New file.
11940 * guile/scm-ports.c: New file.
11941 * guile/scm-pretty-print.c: New file.
11942 * guile/scm-safe-call.c: New file.
11943 * guile/scm-string.c: New file.
11944 * guile/scm-symbol.c: New file.
11945 * guile/scm-symtab.c: New file.
11946 * guile/scm-type.c: New file.
11947 * guile/scm-utils.c: New file.
11948 * guile/scm-value.c: New file.
11949 * guile/lib/gdb.scm: New file.
11950 * guile/lib/gdb/boot.scm: New file.
11951 * guile/lib/gdb/experimental.scm: New file.
11952 * guile/lib/gdb/init.scm: New file.
11953 * guile/lib/gdb/iterator.scm: New file.
11954 * guile/lib/gdb/printing.scm: New file.
11955 * guile/lib/gdb/types.scm: New file.
11956 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11957 (VPATH): Add $(GUILE_SRCDIR).
11958 (GUILE_DIR): New variable.
11959 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11960 (all): Add stamp-guile dependency.
11961 (stamp-guile): New rule.
11962 (clean-guile, install-guile, uninstall-guile): New rules.
11963 (install-only): Add install-guile dependency.
11964 (uninstall): Add uninstall-guile dependency.
11965 (clean): Add clean-guile dependency.
11967 2014-02-09 Doug Evans <xdje42@gmail.com>
11969 Revert this patch (which I approved, mea culpa).
11971 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11973 * Makefile.in (all-lib): Remove.
11974 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11976 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11978 Fix Python stack corruption.
11979 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11982 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11984 * Makefile.in (all-lib): Remove.
11985 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11987 2014-02-07 Doug Evans <dje@google.com>
11989 * extension-priv.h (extension_language_script_ops): Add comment.
11990 (extension_language_ops): Add comment.
11991 (active_ext_lang_state): Fix typo in comment.
11993 2014-02-07 Pedro Alves <palves@redhat.com>
11995 PR breakpoints/16292
11996 * infrun.c (handle_signal_stop) <signal arrives while stepping
11997 over a breakpoint>: Switch back to the stepping thread.
11999 2014-02-07 Yao Qi <yao@codesourcery.com>
12001 * target.c (target_xfer_partial): Return zero if LEN is zero.
12003 2014-02-07 Yao Qi <yao@codesourcery.com>
12005 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12006 (ld_so_xfer_auxv): Likewise.
12007 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12008 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12009 * corelow.c (core_xfer_partial): Likewise.
12010 * ctf.c (ctf_xfer_partial): Likewise.
12011 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12012 (darwin_xfer_partial): Likewise.
12013 * exec.c (exec_xfer_partial): Likewise.
12014 * gnu-nat.c (gnu_xfer_partial): Likewise.
12015 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12016 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12017 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12018 * linux-nat.c (linux_xfer_siginfo): Likewise.
12019 (linux_proc_xfer_spu): Likewise.
12020 * procfs.c (procfs_xfer_partial): Likewise.
12021 * record-full.c (record_full_xfer_partial): Likewise.
12022 (record_full_core_xfer_partial): Likewise.
12023 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12024 * remote.c (remote_write_qxfer): Likewise.
12025 (remote_write_qxfer, remote_read_qxfer): Likewise.
12026 (remote_xfer_partial): Likewise.
12027 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12028 (rs6000_xfer_shared_libraries): Likewise.
12029 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12030 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12031 (spu_xfer_partial): Likewise.
12032 * target.c (memory_xfer_partial_1): Likewise.
12033 * tracepoint.c (tfile_xfer_partial): Likewise.
12034 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12035 (windows_xfer_partial): Likewise.
12037 2014-02-07 Yao Qi <yao@codesourcery.com>
12039 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12041 (core_xfer_shared_libraries_aix): Likewise.
12042 * gdbarch.c, gdbarch.h: Regenerated.
12043 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12044 ULONGEST. Change 'len_avail' type to ULONGEST.
12045 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12046 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12048 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12050 2014-02-07 Yao Qi <yao@codesourcery.com>
12052 * corefile.c (memory_error): Get 'exception' from ERR and pass
12053 'exception' to throw_error.
12055 2014-02-06 Doug Evans <xdje42@gmail.com>
12057 * configure.ac (libpython checking): Remove all but python.o from
12058 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12059 * configure: Regenerate.
12061 * Makefile.in (SFILES): Add extension.c.
12062 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12063 (COMMON_OBS): Add extension.o.
12064 * extension.h: New file.
12065 * extension-priv.h: New file.
12066 * extension.c: New file.
12068 * python/python-internal.h: #include "extension.h".
12069 (gdbpy_auto_load_enabled): Declare.
12070 (gdbpy_apply_val_pretty_printer): Declare.
12071 (gdbpy_apply_frame_filter): Declare.
12072 (gdbpy_preserve_values): Declare.
12073 (gdbpy_breakpoint_cond_says_stop): Declare.
12074 (gdbpy_breakpoint_has_cond): Declare.
12075 (void source_python_script_for_objfile): Delete.
12076 * python/python.c: #include "extension-priv.h".
12077 Delete inclusion of "observer.h".
12078 (extension_language_python): Moved here and renamed from
12079 script_language_python in py-auto-load.c.
12080 Redefined to be of type extension_language_defn.
12081 (python_extension_script_ops): New global.
12082 (python_extension_ops): New global.
12083 (struct python_env): New member previous_active.
12084 (restore_python_env): Call restore_active_ext_lang.
12085 (ensure_python_env): Call set_active_ext_lang.
12086 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12088 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12090 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12092 (gdbpy_eval_from_control_command): Renamed from
12093 eval_python_from_control_command, made static. New arg extlang.
12094 (gdbpy_source_script) Renamed from source_python_script, made static.
12096 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12097 result to int. New arg extlang.
12098 (gdbpy_source_objfile_script): Renamed from
12099 source_python_script_for_objfile, made static. New arg extlang.
12100 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12101 static. New args extlang, extlang_printers. Change result type to
12103 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12104 static. New arg extlang. Rename arg printers to extlang_printers
12105 and change type to ext_lang_type_printers *.
12106 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12107 static. Replace argument arg with extlang, extlang_printers.
12108 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12109 (!HAVE_PYTHON, source_python_script): Delete.
12110 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12111 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12112 (!HAVE_PYTHON, start_type_printers): Delete.
12113 (!HAVE_PYTHON, apply_type_printers): Delete.
12114 (!HAVE_PYTHON, free_type_printers): Delete.
12115 (_initialize_python): Delete call to observer_attach_before_prompt.
12116 (finalize_python): Set/restore active extension language.
12117 (gdbpy_finish_initialization) Renamed from
12118 finish_python_initialization, made static. New arg extlang.
12119 (gdbpy_initialized): New function.
12120 * python/python.h: #include "extension.h". Delete #include
12121 "value.h", "mi/mi-cmds.h".
12122 (extension_language_python): Declare.
12123 (GDBPY_AUTO_FILE_NAME): Delete.
12124 (enum py_bt_status): Moved to extension.h and renamed to
12125 ext_lang_bt_status.
12126 (enum frame_filter_flags): Moved to extension.h.
12127 (enum py_frame_args): Moved to extension.h and renamed to
12128 ext_lang_frame_args.
12129 (finish_python_initialization): Delete.
12130 (eval_python_from_control_command): Delete.
12131 (source_python_script): Delete.
12132 (apply_val_pretty_printer): Delete.
12133 (apply_frame_filter): Delete.
12134 (preserve_python_values): Delete.
12135 (gdbpy_script_language_defn): Delete.
12136 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12137 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12139 * auto-load.c: #include "extension.h".
12140 (GDB_AUTO_FILE_NAME): Delete.
12141 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12142 (script_language_gdb): Delete, moved to extension.c and renamed to
12143 extension_language_gdb.
12144 (source_gdb_script_for_objfile): Delete.
12145 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12146 (loaded_script): Change type of language member to
12147 struct extension_language_defn *.
12148 (init_loaded_scripts_info): Initialize
12149 unsupported_script_warning_printed.
12150 (maybe_add_script): Make static. Change type of language arg to
12151 struct extension_language_defn *.
12152 (clear_section_scripts): Reset unsupported_script_warning_printed.
12153 (auto_load_objfile_script_1): Rewrite to use extension language API.
12154 (auto_load_objfile_script): Make public. Remove support-compiled-in
12155 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12156 (source_section_scripts): Rewrite to use extension language API.
12157 (load_auto_scripts_for_objfile): Rewrite to use
12158 auto_load_scripts_for_objfile.
12159 (collect_matching_scripts_data): Change type of language member to
12160 struct extension_language_defn *.
12161 (auto_load_info_scripts): Change type of language arg to
12162 struct extension_language_defn *.
12163 (unsupported_script_warning_print): New function.
12164 (script_not_found_warning_print): Make static.
12165 (_initialize_auto_load): Rewrite construction of scripts-directory
12167 * auto-load.h (struct objfile): Add forward decl.
12168 (struct script_language): Delete.
12169 (struct auto_load_pspace_info): Add forward decl.
12170 (struct extension_language_defn): Add forward decl.
12171 (maybe_add_script): Delete.
12172 (auto_load_objfile_script): Declare.
12173 (script_not_found_warning_print): Delete.
12174 (auto_load_info_scripts): Update prototype.
12175 (auto_load_gdb_scripts_enabled): Declare.
12176 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12177 auto_load_python_scripts_enabled and made public.
12178 (script_language_python): Delete, moved to python.c.
12179 (gdbpy_script_language_defn): Delete.
12180 (info_auto_load_python_scripts): Update to use
12181 extension_language_python.
12183 * breakpoint.c (condition_command): Replace call to
12184 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12185 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12186 with call to breakpoint_ext_lang_cond_says_stop.
12187 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12188 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12189 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12190 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12192 (local_setattro): Print name of extension language with existing
12195 * valprint.c (val_print, value_print): Update to call
12196 apply_ext_lang_val_pretty_printer.
12197 * cp-valprint.c (cp_print_value): Update call to
12198 apply_ext_lang_val_pretty_printer.
12199 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12200 (gdbpy_apply_val_pretty_printer): Renamed from
12201 apply_val_pretty_printer. New arg extlang.
12202 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12204 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12205 extension language API.
12206 * cli/cli-script.c (execute_control_command): Update to call
12207 eval_ext_lang_from_control_command.
12209 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12210 enum ext_lang_bt_status values. Update call to
12211 apply_ext_lang_frame_filter.
12212 (mi_cmd_stack_list_locals): Ditto.
12213 (mi_cmd_stack_list_args): Ditto.
12214 (mi_cmd_stack_list_variables): Ditto.
12215 * mi/mi-main.c: Delete #include "python/python-internal.h".
12216 Add #include "extension.h".
12217 (mi_cmd_list_features): Replace reference to python internal variable
12218 gdb_python_initialized with call to ext_lang_initialized_p.
12220 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12221 Update to use enum ext_lang_frame_args. Update to call
12222 apply_ext_lang_frame_filter.
12223 * python/py-framefilter.c (extract_sym): Update to use enum
12224 ext_lang_bt_status.
12225 (extract_value, py_print_type, py_print_value): Ditto.
12226 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12227 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12228 (py_print_frame): Ditto.
12229 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12230 New arg extlang. Update to use enum ext_lang_bt_status.
12232 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12233 finish_python_initialization. Replace with call to
12234 finish_ext_lang_initialization.
12236 * typeprint.c (do_free_global_table): Update to call
12237 free_ext_lang_type_printers.
12238 (create_global_typedef_table): Update to call
12239 start_ext_lang_type_printers.
12240 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12241 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12242 (type_print_options): Change type of global_printers from "void *"
12243 to "struct ext_lang_type_printers *".
12245 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12246 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12247 (gdbpy_preserve_values): Renamed from preserve_python_values.
12249 (!HAVE_PYTHON, preserve_python_values): Delete.
12251 * utils.c (quit_flag): Delete, moved to extension.c.
12252 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12255 * eval.c: Delete #include "python/python.h".
12256 * main.c: Delete #include "python/python.h".
12258 * defs.h: Update comment.
12260 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12264 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12266 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12269 2014-02-05 Yao Qi <yao@codesourcery.com>
12271 * remote.c (remote_pass_signals): Remove local 'buf' and use
12273 (remote_program_signals): Likewise.
12275 2014-02-05 Yao Qi <yao@codesourcery.com>
12277 * ctf.c: Include "inferior.h" and "gdbthread.h".
12278 (CTF_PID): A new macro.
12279 (ctf_open): Call inferior_appeared and add_thread_silent.
12280 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12281 (ctf_thread_alive): New function.
12282 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12284 2014-02-05 Yao Qi <yao@codesourcery.com>
12288 2013-05-24 Yao Qi <yao@codesourcery.com>
12290 * tracepoint.c (TFILE_PID): Remove.
12291 (tfile_open): Don't add thread and inferior.
12292 (tfile_close): Don't set 'inferior_ptid'. Don't call
12293 exit_inferior_silent.
12294 (tfile_thread_alive): Remove.
12295 (init_tfile_ops): Don't set field 'to_thread_alive' of
12298 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12300 * remote.c (remote_start_remote): Call remote_check_symbols even
12301 if only symbol-file (not file) has been given.
12303 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12305 * gdbarch.sh (skip_entrypoint): New callback.
12306 * gdbarch.c, gdbarch.h: Regenerate.
12307 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12308 * infrun.c (fill_in_stop_func): Likewise.
12309 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12310 (ppc_elfv2_elf_make_msymbol_special): New function.
12311 (ppc_elfv2_skip_entrypoint): Likewise.
12312 (ppc_linux_init_abi): Install them for ELFv2.
12314 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12316 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12317 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12318 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12319 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12320 structures returned in GPRs.
12322 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12324 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12325 offset to the stack parameter list for the ELFv2 ABI.
12327 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12329 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12330 set_gdbarch_convert_from_func_ptr_addr and
12331 set_gdbarch_elf_make_msymbol_special for ELFv1.
12332 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12333 function descriptors on ELFv1.
12334 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12335 set up r12 at function entry.
12337 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12339 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12340 (struct gdbarch_tdep): New member elf_abi.
12342 * rs6000-tdep.c: Include "elf/ppc64.h".
12343 (rs6000_gdbarch_init): Detect ELF ABI version.
12345 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12347 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12348 within a register pair holding a DFP 128-bit value on little-endian.
12349 (ppc64_sysv_abi_return_value_base): Likewise.
12350 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12351 (dfp_pseudo_register_write): Likewise.
12353 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12355 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12356 offset on little-endian when passing _Decimal32.
12357 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12359 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12361 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12362 of the overlapped FP register within the VSX register on little-
12364 (efpr_pseudo_register_write): Likewise.
12366 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12368 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12369 offset on little-endian when passing small structures.
12371 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12373 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12374 (struct ppc64_sysv_argpos): New data structure.
12375 (ppc64_sysv_abi_push_float): Remove.
12376 (ppc64_sysv_abi_push_val): New function.
12377 (ppc64_sysv_abi_push_integer): Likewise.
12378 (ppc64_sysv_abi_push_freg): Likewise.
12379 (ppc64_sysv_abi_push_vreg): Likewise.
12380 (ppc64_sysv_abi_push_param): Likewise.
12381 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12382 (ppc64_sysv_abi_return_value_base): New function.
12383 (ppc64_sysv_abi_return_value): Refactor to use it.
12385 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12387 * NEWS: Document new target powerpc64le-*-linux*.
12389 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12391 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12392 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12394 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12395 register set used in ELF core dumps. Add floating-point register set.
12397 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12399 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12400 dwarf2_to_gdb[] table using symbolic constants. Adjust
12401 penultimate entry from number representing the PC register
12402 to symbolic constant representing the MDR register. Add
12403 constant for the PC register to the end of the table.
12405 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12407 * bsd-kvm.c: Include <sys/param.h>
12409 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12411 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12413 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12415 * ada-lang.h (clear_ada_sym_cache): Delete.
12417 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12419 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12421 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12423 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12424 the sigreturn register save area only if the syscall is
12427 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12429 * valops.c (value_slice): Minor reformatting.
12431 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12433 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12435 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12437 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12438 New static globals.
12439 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12440 (ada_ignore_descriptive_types_p): New static global.
12441 (find_parallel_type_by_descriptive_type): Return immediately
12442 if ada_ignore_descriptive_types_p is set.
12443 (_initialize_ada_language): Register new commands "maintenance
12444 set ada", "maintenance show ada", "maintenance set ada
12445 ignore-descriptive-types" and "maintenance show ada
12446 ignore-descriptive-types".
12447 * NEWS: Add entry for new "maint ada set/show
12448 ignore-descriptive-types" commands.
12450 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12452 * record-btrace.c (record_btrace_close): Call btrace_teardown
12455 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12457 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12460 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12462 * ada-typeprint (type_is_full_subrange_of_target_type):
12464 (print_range): Add parameter bounds_prefered_p. If not set,
12465 try printing range types using the name of their base type.
12466 (print_range_type): Add parameter bounds_prefered_p.
12467 Use it in call to print_range.
12468 (print_array_type, ada_print_type): Update calls to print_range
12469 and print_range_type.
12471 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12473 * ada-typeprint.c (print_array_type, print_choices, print_range)
12474 (print_range_bound, print_dynamic_range_bound, print_range_type):
12475 Remove declaration.
12477 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12479 * ada-typeprint.c (print_range): Add missing empty line
12480 after local declaration.
12482 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12484 * ada-valprint.c (print_optional_low_bound): Get index_type's
12485 target type for as long as it is a TYPE_CODE_RANGE.
12487 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12489 * procfs.c (procfs_make_note_section): Remove assertion and
12490 associated comment.
12492 2014-01-24 Yao Qi <yao@codesourcery.com>
12494 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12495 * corelow.c (get_core_siginfo): Likewise.
12497 2014-01-24 Yao Qi <yao@codesourcery.com>
12499 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12500 ULONGEST. Don't check 'len' is negative.
12501 (remote_write_bytes): Change type of 'len' to ULONGEST.
12503 2014-01-23 Tom Tromey <tromey@redhat.com>
12506 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12507 Handle exception from frame.block.
12508 (FrameVars.fetch_frame_locals): Likewise.
12510 2014-01-23 Tom Tromey <tromey@redhat.com>
12513 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12514 on a NULL pointer. Move "goto error" to correct place.
12516 2014-01-23 Tom Tromey <tromey@redhat.com>
12519 * python/py-framefilter.c (apply_frame_filter): Call
12520 ensure_python_env after computing gdbarch.
12522 2014-01-23 Yao Qi <yao@codesourcery.com>
12524 * target.c (raw_memory_xfer_partial): Change argument type
12525 from void * to gdb_byte *.
12526 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12528 2014-01-22 Doug Evans <dje@google.com>
12530 New gdbserver option --debug-format=timestamp.
12531 * NEWS: Mention it.
12533 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12535 * syscalls/s390x-linux.xml: New file.
12536 * syscalls/s390-linux.xml: New file.
12537 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12538 (XML_SYSCALL_FILENAME_S390X): Likewise.
12539 (op_svc): New enum value for SVC opcode.
12540 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12541 (s390_linux_get_syscall_number): New function.
12542 (s390_gdbarch_init): Register '*get_syscall_number' and the
12543 syscall xml file name.
12544 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12545 "s390-linux.xml" and "s390x-linux.xml".
12546 * NEWS: Announce new feature.
12548 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12550 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12552 2014-01-22 Pedro Alves <palves@redhat.com>
12554 * xtensa-config.c: Include defs.h.
12556 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12558 * common/common-utils.h: Add "ARI:" comment beside __func__
12561 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12563 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12564 documentation a bit.
12566 2014-01-21 Roland McGrath <mcgrathr@google.com>
12568 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12569 * configure: Regenerate.
12570 * aclocal.m4: Regenerate.
12571 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12572 New substituted variables.
12573 (install-strip): New target.
12574 (INSTALL_SCRIPT): New substituted variable.
12575 (FLAGS_TO_PASS): Add it.
12576 (install-only): Use $(INSTALL_SCRIPT) rather than
12577 $(INSTALL_PROGRAM) for gcore.
12579 2014-01-20 Tom Tromey <tromey@redhat.com>
12581 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12584 2014-01-20 Tom Tromey <tromey@redhat.com>
12586 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12587 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12588 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12589 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12590 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12591 (struct cmd_list_element) <flags>: Remove.
12592 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12593 doc_allocated>: New fields.
12594 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12596 * maint.c (maintenance_do_deprecate): Update.
12597 * top.c (execute_command): Update.
12599 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12601 * xtensa-linux-nat.c: Include asm/ptrace.h.
12603 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12605 * Makefile.in (SFILES): Add d-support.c.
12606 (COMMON_OBS): Add d-support.o.
12607 * d-lang.h (d_parse_symbol): Add comment, now defined in
12609 * d-lang.c (parse_call_convention)
12610 (parse_attributes, parse_function_types)
12611 (parse_function_args, parse_type, parse_identifier)
12612 (call_convention_p, d_parse_symbol): Move functions to ...
12613 * d-support.c: ... New file.
12615 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12617 * d-lang.h (d_parse_symbol): Add declaration.
12618 * d-lang.c (extract_identifiers)
12619 (extract_type_info): Remove functions.
12620 (parse_call_convention, parse_attributes)
12621 (parse_function_types, parse_function_args)
12622 (parse_type, parse_identifier, call_convention_p)
12623 (d_parse_symbol): New functions.
12624 (d_demangle): Use d_parse_symbol to demangle D symbols.
12626 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12628 * d-lang.h (struct builtin_d_type): New data type.
12629 (builtin_d_type): Add declaration.
12630 * d-lang.c (d_language_arch_info, build_d_types)
12631 (builtin_d_type): New functions.
12632 (enum d_primitive_types): New data type.
12633 (d_language_defn): Change c_language_arch_info to
12634 d_language_arch_info.
12635 (d_type_data): New static variable.
12636 (_initialize_d_language): Initialize d_type_data.
12638 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12640 * d-lang.h (d_main_name): Add declaration.
12641 * d-lang.c (d_main_name): New function.
12642 * symtab.c (find_main_name): Add call to d_main_name.
12644 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12646 * d-lang.c (d_language_defn): Change macro_expansion_c to
12647 macro_expansion_no.
12649 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12651 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12653 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12655 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12656 gdb_exception" declaration.
12657 * remote.c (getpkt_or_notif_sane): Likewise.
12659 2014-01-17 Doug Evans <dje@google.com>
12661 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12662 function, contents of dirnames_to_char_ptr_vec_append moved here.
12663 (delim_string_to_char_ptr_vec): New function.
12664 (dirnames_to_char_ptr_vec_append): Rewrite.
12665 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12667 2014-01-17 Doug Evans <dje@google.com>
12669 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12671 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12672 #include "common-utils.h".
12673 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12674 * common/vec.h (VEC_ASSERT_PASS): Update.
12675 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12676 (MACH_CHECK_ERROR): Update.
12678 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12680 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12682 * gdbarch.h: Regenerate.
12684 2014-01-16 Tom Tromey <tromey@redhat.com>
12686 * value.c (struct value) <regnum>: Move earlier.
12688 2014-01-16 Tom Tromey <tromey@redhat.com>
12690 * remote.c (extended_remote_create_inferior): Rename from
12691 extended_remote_create_inferior_1. Add "ops" argument. Remove
12692 old implementation.
12694 2014-01-16 Pedro Alves <palves@redhat.com>
12696 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12697 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12700 2014-01-16 Doug Evans <dje@google.com>
12702 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12704 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12706 * btrace.h (btrace_thread_flag): New.
12707 (struct btrace_thread_info) <flags>: New.
12708 * record-btrace.c (record_btrace_resume_thread)
12709 (record_btrace_find_thread_to_move, btrace_step_no_history)
12710 (btrace_step_stopped, record_btrace_start_replaying)
12711 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12712 (record_btrace_find_resume_thread): New.
12713 (record_btrace_resume, record_btrace_wait): Extend.
12714 (record_btrace_can_execute_reverse): New.
12715 (record_btrace_open): Fail in non-stop mode.
12716 (record_btrace_set_replay): Split into this, ...
12717 (record_btrace_stop_replaying): ... this, ...
12718 (record_btrace_clear_histories): ... and this.
12719 (init_record_btrace_ops): Init to_can_execute_reverse.
12720 * NEWS: Announce it.
12722 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12724 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12725 (forward_target_decr_pc_after_break)
12726 (target_decr_pc_after_break): New.
12727 * target.c (forward_target_decr_pc_after_break)
12728 (target_decr_pc_after_break): New.
12729 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12730 instead of gdbarch_decr_pc_after_break.
12731 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12732 instead of gdbarch_decr_pc_after_break.
12733 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12734 instead of gdbarch_decr_pc_after_break.
12735 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12736 instead of gdbarch_decr_pc_after_break.
12737 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12738 instead of gdbarch_decr_pc_after_break.
12739 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12740 instead of gdbarch_decr_pc_after_break.
12742 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12744 * btrace.c: Include regcache.h.
12745 (btrace_add_pc): New.
12746 (btrace_enable): Call btrace_add_pc.
12747 (btrace_is_empty): New.
12748 * btrace.h (btrace_is_empty): New.
12749 * record-btrace.c (require_btrace, record_btrace_info): Call
12752 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12754 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12755 Support delta reads.
12756 (linux_disable_btrace): Change return type.
12757 * common/linux-btrace.h (linux_read_btrace): Change parameters
12758 and return type to allow error reporting. Update users.
12759 (linux_disable_btrace): Change return type. Update users.
12760 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12762 (btrace_error): New.
12763 (btrace_block) <begin>: Comment on BEGIN == 0.
12764 * btrace.c (btrace_compute_ftrace): Start from the end of
12766 (btrace_stitch_trace, btrace_clear_history): New.
12767 (btrace_fetch): Read delta trace, return if replaying.
12768 (btrace_clear): Move clear history code to btrace_clear_history.
12769 (parse_xml_btrace): Throw an error if parsing failed.
12770 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12771 and return type to allow error reporting.
12772 (target_read_btrace): Change parameters and return type to allow
12774 * target.c (target_read_btrace): Update.
12775 * remote.c (remote_read_btrace): Support delta reads. Pass
12777 * NEWS: Announce it.
12779 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12781 * record.h (record_btrace_frame_unwind)
12782 (record_btrace_tailcall_frame_unwind): New declarations.
12783 * dwarf2-frame: Include record.h
12784 (dwarf2_frame_cfa): Throw an error for btrace frames.
12785 * record-btrace.c: Include hashtab.h.
12786 (btrace_get_bfun_name): New.
12787 (btrace_call_history): Call btrace_get_bfun_name.
12788 (struct btrace_frame_cache): New.
12790 (bfcache_hash, bfcache_eq, bfcache_new): New.
12791 (btrace_get_frame_function): New.
12792 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12793 (record_btrace_frame_this_id): Compute own id.
12794 (record_btrace_frame_prev_register): Provide PC, throw_error
12795 for all other registers.
12796 (record_btrace_frame_sniffer): Detect btrace frames.
12797 (record_btrace_tailcall_frame_sniffer): New.
12798 (record_btrace_frame_dealloc_cache): New.
12799 (record_btrace_frame_unwind): Add new functions.
12800 (record_btrace_tailcall_frame_unwind): New.
12801 (_initialize_record_btrace): Allocate cache.
12802 * btrace.c (btrace_clear): Call reinit_frame_cache.
12803 * NEWS: Announce it.
12805 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12807 * record-btrace.c (record_btrace_set_replay)
12808 (record_btrace_goto_begin, record_btrace_goto_end)
12809 (record_btrace_goto): New.
12810 (init_record_btrace_ops): Initialize them.
12811 * NEWS: Announce it.
12813 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12815 * record-btrace.c (record_btrace_find_new_threads)
12816 (record_btrace_thread_alive): New.
12817 (init_record_btrace_ops): Initialize to_find_new_threads and
12820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12822 * record-btrace.c (record_btrace_resume): New.
12823 (record_btrace_wait): New.
12824 (init_record_btrace_ops): Initialize to_wait and to_resume.
12826 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12828 * record-btrace.c (record_btrace_xfer_partial)
12829 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12830 (record_btrace_allow_memory_access): New.
12831 (init_record_btrace_ops): Initialize new methods.
12832 * target.c (raw_memory_xfer_partial): Bail out if target reports
12833 that this memory is not available.
12835 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12837 * target.h (target_ops) <to_insert_breakpoint>
12838 <to_remove_breakpoint>: Add target_ops parameter.
12839 (forward_target_insert_breakpoint): New.
12840 (forward_target_remove_breakpoint): New.
12841 (memory_remove_breakpoint, memory_insert_breakpoint):
12842 Add target_ops parameter.
12843 * target.c (target_insert_breakpoint): Split into this and ...
12844 (forward_target_insert_breakpoint): ... this.
12845 (target_remove_breakpoint): Split into this and ...
12846 (forward_target_remove_breakpoint): ... this.
12847 (debug_to_insert_breakpoint): Add target_ops parameter.
12848 Call forward_target_insert_breakpoint.
12849 (debug_to_remove_breakpoint): Add target_ops parameter.
12850 Call forward_target_remove_breakpoint.
12851 (update_current_target): Do not inherit or default to_insert_breakpoint
12852 and to_remove_breakpoint.
12853 * corelow.c (ignore): Add target_ops parameter.
12854 * exec.c (ignore): Add target_ops parameter.
12855 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12856 Add target_ops parameter.
12857 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12858 Add target_ops parameter.
12859 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12860 Add target_ops parameter.
12861 * record-full.c (record_full_beneath_to_insert_breakpoint)
12862 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12863 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12864 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12865 (record_full_core_remove_breakpoint): Add target_ops parameter.
12867 (record_full_beneath_to_insert_breakpoint_ops)
12868 (record_full_beneath_to_remove_breakpoint_ops)
12869 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12870 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12871 tmp_to_remove_breakpoint_ops,
12872 record_full_beneath_to_insert_breakpoint_ops, and
12873 record_full_beneath_to_remove_breakpoint_ops.
12874 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12875 (m32r_remove_breakpoint): Add target_ops parameter.
12876 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12877 Add target_ops parameter.
12878 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12879 Add target_ops parameter.
12881 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12882 Markus Metzger <markus.t.metzger@intel.com>
12884 * record-btrace.c: Include frame-unwind.h.
12885 (record_btrace_frame_unwind_stop_reason)
12886 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12887 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12889 (init_record_btrace_ops): Install it.
12891 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12893 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12896 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12898 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12901 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12903 * frame-unwind.c: Include target.h.
12904 (frame_unwind_try_unwinder): New function with code from ...
12905 (frame_unwind_find_by_frame): ... here. New variable
12906 unwinder_from_target, call also target_get_unwinder)
12907 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12908 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12909 * target.h (struct target_ops): New fields to_get_unwinder and
12910 to_get_tailcall_unwinder.
12911 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12913 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12915 * record-btrace.c (record_btrace_fetch_registers)
12916 (record_btrace_store_registers)
12917 (record_btrace_to_prepare_to_store): New.
12918 (init_record_btrace_ops): Add the above.
12920 2014-01-16 Tom Tromey <tromey@redhat.com>
12922 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12923 * target.h (struct target_ops) <to_prepare_to_store>: Add
12925 (target_prepare_to_store): Add argument.
12926 * target.c (debug_to_prepare_to_store): Add argument.
12927 (update_current_target): Update.
12928 * remote.c (remote_prepare_to_store): Add 'self' argument.
12929 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12930 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12931 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12932 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12934 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12935 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12936 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12937 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12938 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12940 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12942 * btrace.h (replay) <replay>: New.
12943 (btrace_is_replaying): New.
12944 * btrace.c (btrace_clear): Free replay iterator.
12945 (btrace_is_replaying): New.
12946 * record-btrace.c (record_btrace_is_replaying): New.
12947 (record_btrace_info): Print insn number if replaying.
12948 (record_btrace_insn_history): Start at replay position.
12949 (record_btrace_call_history): Start at replay position.
12950 (init_record_btrace_ops): Init to_record_is_replaying.
12952 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12954 * record-btrace.c (record_btrace_insn_history_range): Include
12956 (record_btrace_insn_history_from): Adjust range.
12957 (record_btrace_call_history_range): Include
12959 (record_btrace_call_history_from): Adjust range.
12960 * NEWS: Announce changes.
12962 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12964 * record.h (enum record_print_flag)
12965 <record_print_indent_calls>: New.
12966 * record.c (get_call_history_modifiers): Recognize /c modifier.
12967 (_initialize_record): Document /c modifier.
12968 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12969 Reorder fields. Optionally indent the function name. Update
12971 * NEWS: Announce changes.
12973 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12975 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12977 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12979 * btrace.c (ftrace_new_function): Start counting at one.
12980 * record-btrace.c (record_btrace_info): Adjust number of calls
12982 * NEWS: Announce it.
12984 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12986 * record-btrace.c (btrace_call_history_insn_range): Print
12987 insn range as [begin, end].
12989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12991 * btrace.h (struct btrace_func_link): New.
12992 (enum btrace_function_flag): New.
12993 (struct btrace_inst): Rename to ...
12994 (struct btrace_insn): ...this. Update all users.
12995 (struct btrace_func) <ibegin, iend>: Remove.
12996 (struct btrace_func_link): New.
12997 (struct btrace_func): Rename to ...
12998 (struct btrace_function): ...this. Update all users.
12999 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13000 (number, level, flags>: New.
13001 (struct btrace_insn_iterator): Rename to ...
13002 (struct btrace_insn_history): ...this.
13004 (struct btrace_insn_iterator, btrace_call_iterator): New.
13005 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13006 (struct btrace_target_info) <begin, end, level>
13007 <insn_history, call_history>: New.
13008 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13009 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13010 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13011 (btrace_call_number, btrace_call_begin, btrace_call_end)
13012 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13013 (btrace_find_function_by_number, btrace_set_insn_history)
13014 (btrace_set_call_history): New.
13015 * btrace.c (btrace_init_insn_iterator)
13016 (btrace_init_func_iterator, compute_itrace): Remove.
13017 (ftrace_print_function_name, ftrace_print_filename)
13018 (ftrace_skip_file): Change
13019 parameter to const.
13020 (ftrace_init_func): Remove.
13021 (ftrace_debug): Use new btrace_function fields.
13022 (ftrace_function_switched): Also consider gaining and
13023 losing symbol information).
13024 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13025 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13026 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13028 (ftrace_new_function): Move. Remove debug print.
13029 (ftrace_update_lines, ftrace_update_insns): New.
13030 (ftrace_update_function): Check for call, ret, and jump.
13031 (compute_ftrace): Renamed to ...
13032 (btrace_compute_ftrace): ...this. Rewritten to compute call
13034 (btrace_fetch, btrace_clear): Updated.
13035 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13036 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13037 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13038 (btrace_call_number, btrace_call_begin, btrace_call_end)
13039 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13040 (btrace_find_function_by_number, btrace_set_insn_history)
13041 (btrace_set_call_history): New.
13042 * record-btrace.c (require_btrace): Use new btrace thread
13044 (record_btrace_info, btrace_insn_history)
13045 (record_btrace_insn_history, record_btrace_insn_history_range):
13046 Use new btrace thread info fields and new iterator.
13047 (btrace_func_history_src_line): Rename to ...
13048 (btrace_call_history_src_line): ...this. Use new btrace
13049 thread info fields.
13050 (btrace_func_history): Rename to ...
13051 (btrace_call_history): ...this. Use new btrace thread info
13052 fields and new iterator.
13053 (record_btrace_call_history, record_btrace_call_history_range):
13054 Use new btrace thread info fields and new iterator.
13056 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13058 * frame.h (frame_id_build_unavailable_stack_special): New.
13059 * frame.c (frame_id_build_unavailable_stack_special): New.
13061 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13063 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13064 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13065 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13067 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13068 (i386_insn_is_jump, i386_jmp_p): New.
13069 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13070 insn_is_jump to gdbarch.
13071 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13072 * gdbarch.h: Regenerated.
13073 * gdbarch.c: Regenerated.
13074 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13075 (default_insn_is_jump): New.
13076 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13077 (default_insn_is_jump): New.
13079 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13081 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13083 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13084 (btrace_read_type) <btrace_read_new>: Change to ...
13085 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13087 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13089 * common/linux-btrace.c (linux_read_btrace): Free trace from
13090 previous iteration.
13092 2014-01-15 Doug Evans <dje@google.com>
13094 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13097 2014-01-15 Tom Tromey <tromey@redhat.com>
13099 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13100 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13101 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13102 (set_objfile_main_name): New function.
13103 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13104 language_of_main>: New fields.
13105 (set_objfile_main_name): Declare.
13106 * symtab.c (find_main_name): Loop over objfiles to find the main
13108 (set_main_name): Now static.
13109 (get_main_info): Add comment.
13110 * symtab.h (set_main_name): Don't declare.
13112 2014-01-15 Tom Tromey <tromey@redhat.com>
13114 * symtab.c (main_progspace_key): New global.
13115 (struct main_info): New.
13116 (name_of_main, language_of_main): Remove.
13117 (get_main_info, main_info_cleanup): New function.
13118 (set_main_name, main_name, main_language): Use get_main_info.
13119 (_initialize_symtab): Initialize main_progspace_key.
13121 2014-01-15 Tom Tromey <tromey@redhat.com>
13123 * dbxread.c (process_one_symbol): Update.
13124 * dwarf2read.c (read_partial_die): Update.
13125 * symfile.c (set_initial_language): Call main_language.
13126 * symtab.c (language_of_main): Now static.
13127 (set_main_name): Add 'lang' parameter.
13128 (find_main_name): Update.
13129 (main_language): New function.
13130 (symtab_observer_executable_changed): Update.
13131 * symtab.h (set_main_name): Update.
13132 (language_of_main): Remove.
13133 (main_language): Declare.
13135 2014-01-15 Tom Tromey <tromey@redhat.com>
13137 * symfile.c (init_entry_point_info): Use new "initialized" field.
13139 * objfiles.h (struct entry_point) <initialized>: New field.
13140 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13141 (struct objfile) <ei>: ...here. Remove.
13142 * objfiles.c (entry_point_address_query): Update.
13144 2014-01-15 Tom Tromey <tromey@redhat.com>
13146 * objfiles.c (entry_point_address_query): Relocate entry point
13148 (objfile_relocate1): Do not relocate entry point address.
13149 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13150 <the_bfd_section_index>: New field.
13151 * symfile.c (init_entry_point_info): Find the entry point's
13154 2014-01-15 Tom Tromey <tromey@redhat.com>
13156 * solib-frv.c (enable_break): Use entry_point_address_query.
13158 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13160 * NEWS: Add note on improved process record-replay on
13161 arm*-linux* targets.
13163 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13165 * arm-tdep.c (enum arm_record_result): New enum.
13166 (arm_record_unsupported_insn): New function.
13167 (arm_record_coproc_data_proc): Removed.
13168 (thumb2_record_ld_st_multiple): New function.
13169 (thumb2_record_ld_st_dual_ex_tbb): New function.
13170 (thumb2_record_data_proc_sreg_mimm): New function.
13171 (thumb2_record_ps_dest_generic): New function.
13172 (thumb2_record_branch_misc_cntrl): New function.
13173 (thumb2_record_str_single_data): New function.
13174 (thumb2_record_ld_mem_hints): New function.
13175 (thumb2_record_ld_word): New function.
13176 (thumb2_record_lmul_lmla_div): New function.
13177 (thumb2_record_decode_insn_handler): New function.
13178 (decode_insn): Add thumb32 instruction handlers.
13180 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13182 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13183 (struct arm_linux_record_tdep): Declare.
13184 (arm_canonicalize_syscall): New function.
13185 (arm_all_but_pc_registers_record): New function.
13186 (arm_linux_syscall_record): New function.
13187 (arm_linux_init_abi): Add syscall recording constructs.
13188 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13189 decoding. (arm_record_coproc_data_proc): Update arm syscall
13191 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13192 <arm_syscall_record>: New field.
13193 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13196 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13198 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13199 register for push instruction recording.
13201 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13203 * arm-tdep.c (thumb_record_misc): Update to correct logical
13204 error while recording ldm, ldmia and pop instructions.
13206 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13208 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13210 2014-01-15 Pedro Alves <palves@redhat.com>
13212 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13213 (go32_resume, go32_fetch_registers, store_register)
13214 (go32_store_registers, go32_prepare_to_store)
13215 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13216 (go32_create_inferior, go32_can_run, go32_terminal_init)
13217 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13220 2014-01-15 Tom Tromey <tromey@redhat.com>
13222 * target.h (async_callback_ftype): New typedef.
13223 (struct target_ops) <to_async>: Use it.
13225 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13227 * python/py-value.c (get_field_type): Remove unnecessary curly
13228 braces for single-statement if block.
13230 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13232 * python/py-type.c (convert_field): Add missing empty line
13233 after declarations.
13235 2014-01-14 Doug Evans <dje@google.com>
13237 * symfile.h (expand_symtabs_matching): Renamed from
13238 expand_partial_symbol_names. Update prototype.
13239 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13240 * symfile.c (expand_symtabs_matching): Renamed from
13241 expand_partial_symbol_names. New args file_matcher, kind.
13242 Rename arg fun to symbol_matcher.
13243 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13244 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13245 ada_expand_partial_symbol_name.
13246 (ada_make_symbol_completion_list): Update to call
13247 expand_symtabs_matching.
13248 (ada_add_global_exceptions): Call expand_symtabs_matching.
13249 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13250 call map_symbol_filenames.
13251 * symtab.c (sources_info): Update to call map_symbol_filenames.
13252 (search_symbols): Call expand_symtabs_matching.
13253 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13254 (default_make_symbol_completion_list_break_on): Update to call
13255 expand_symtabs_matching.
13256 (make_source_files_completion_list): Update to call
13257 map_symbol_filenames.
13259 2014-01-14 Doug Evans <dje@google.com>
13261 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13262 (expand_symtabs_symbol_matcher_ftype): New typedef.
13263 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13264 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13265 * symfile.c (expand_partial_symbol_names): Update to use
13266 expand_symtabs_symbol_matcher_ftype.
13267 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13268 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13269 Arg name_matcher renamed to symbol_matcher.
13270 * psymtab.c (recursively_search_psymtabs): Update to use
13271 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13273 (expand_symtabs_matching_via_partial): Update to use
13274 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13275 Arg name_matcher renamed to symbol_matcher.
13277 2014-01-14 Doug Evans <dje@google.com>
13279 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13280 (map_partial_symbol_filenames): Ditto.
13281 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13282 (map_partial_symbol_filenames): Ditto.
13283 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13284 (map_partial_symbol_filenames): Ditto.
13285 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13286 (map_partial_symbol_filenames): Ditto.
13287 * symtab.c: Delete #include "psymtab.h".
13289 2014-01-14 Pedro Alves <palves@redhat.com>
13290 Tom Tromey <tromey@redhat.com>
13292 * infrun.c (use_displaced_stepping): Use find_record_target
13293 instead of RECORD_IS_USED.
13294 (adjust_pc_after_break): Use record_full_is_used instead of
13296 * record-btrace.c (record_btrace_open): Call record_preopen
13297 instead of checking RECORD_IS_USED.
13298 * record-full.c (record_full_shortname)
13299 (record_full_core_shortname): New globals.
13300 (record_full_is_used): New function.
13301 (find_full_open): Call record_preopen instead of checking
13303 (init_record_full_ops): Set the target's shortname to
13304 record_full_shortname.
13305 (init_record_full_core_ops): Set the target's shortname to
13306 record_full_core_shortname.
13307 * record-full.h (record_full_is_used): Declare.
13308 * record.c (find_record_target): Make extern.
13309 (record_preopen): New function.
13310 * record.h (RECORD_IS_USED): Delete macro.
13311 (find_record_target, record_preopen): Declare functions.
13313 2014-01-14 Yao Qi <yao@codesourcery.com>
13315 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13316 'len''s type to ULONGEST.
13317 (core_xfer_shared_libraries_aix): Likewise.
13318 * gdbarch.c, gdbarch.h: Regenerated.
13319 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13320 Change type of 'len' to ULONGEST.
13321 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13322 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13324 2014-01-14 Yao Qi <yao@codesourcery.com>
13326 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13327 type of 'len' to ULONGEST.
13328 (linux_xfer_osdata_processgroups): Likewise.
13329 (linux_xfer_osdata_threads): Likewise.
13330 (linux_xfer_osdata_fds): Likewise.
13331 (linux_xfer_osdata_isockets): Likewise.
13332 (linux_xfer_osdata_shm): Likewise.
13333 (linux_xfer_osdata_sem): Likewise.
13334 (linux_xfer_osdata_msg): Likewise.
13335 (linux_common_xfer_osdata): Likewise.
13336 (struct osdata_type) <getter>: Likewise.
13337 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13340 2014-01-14 Yao Qi <yao@codesourcery.com>
13342 * target.h (target_xfer_partial_ftype): Update.
13343 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13345 * aix-thread.c (aix_thread_xfer_partial): Change type of
13346 argument 'len' to ULONGEST.
13347 * auxv.c (procfs_xfer_auxv): Likewise.
13348 (ld_so_xfer_auxv): Likewise.
13349 (memory_xfer_auxv): Likewise.
13350 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13351 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13352 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13353 * corelow.c (core_xfer_partial): Likewise.
13354 * ctf.c (ctf_xfer_partial): Likewise.
13355 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13357 (darwin_read_dyld_info): Likewise.
13358 (darwin_xfer_partial): Likewise.
13359 * exec.c (section_table_xfer_memory_partial): Likewise.
13360 (exec_xfer_partial): Likewise.
13361 * exec.h (section_table_xfer_memory_partial): Update
13363 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13364 instead of plongest.
13365 (gnu_xfer_partial): Likewise.
13366 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13367 (ia64_hpux_xfer_solib_got): Likewise.
13368 (ia64_hpux_xfer_partial): Likewise.
13369 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13370 * inf-ptrace.c (inf_ptrace_xfer_partial):
13371 * inf-ttrace.c (inf_ttrace_xfer_partial):
13372 * linux-nat.c (linux_xfer_siginfo): Likewise.
13373 (linux_nat_xfer_partial): Likewise.
13374 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13375 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13376 * monitor.c (monitor_xfer_memory): Likewise.
13377 (monitor_xfer_partial): Likewise.
13378 * procfs.c (procfs_xfer_partial): Likewise.
13379 * record-full.c (record_full_xfer_partial): Likewise.
13380 (record_full_core_xfer_partial): Likewise.
13381 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13382 instead of plongest.
13383 (gdbsim_xfer_partial): Likewise.
13384 * remote.c (remote_xfer_partial): Likewise.
13385 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13386 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13388 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13389 (rs6000_xfer_shared_libraries): Likewise.
13390 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13391 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13392 (sparc_xfer_partial): Likewise.
13393 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13394 (spu_xfer_partial): Likewise.
13395 * spu-multiarch.c (spu_xfer_partial): Likewise.
13396 * target.c (target_read_live_memory): Likewise.
13397 (memory_xfer_live_readonly_partial): Likewise.
13398 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13399 (target_xfer_partial, default_xfer_partial): Likewise.
13400 (current_xfer_partial): Likewise.
13401 * tracepoint.c (tfile_xfer_partial): Likewise.
13402 * windows-nat.c (windows_xfer_memory): Likewise. Call
13403 pulongest instead of plongest.
13404 (windows_xfer_partial): Likewise.
13405 (windows_xfer_shared_libraries): Likewise.
13407 2014-01-14 Yao Qi <yao@codesourcery.com>
13409 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13410 target_xfer_partial_ftype.
13412 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13416 * valops.c (value_struct_elt_bitpos): New function
13417 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13418 object to 'None' if the field name is an empty string ("").
13419 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13420 attribute to look for a field when 'name' is 'None'.
13421 (get_field_type): New function
13423 2014-01-13 Doug Evans <dje@google.com>
13426 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13427 (try_open_dwop_file): Ditto.
13428 * gdb_bfd.c: #include "vec.h".
13429 (bfdp): New typedef.
13430 (struct gdb_bfd_data): New member included_bfds.
13431 (gdb_bfd_unref): Unref all included bfds.
13432 (gdb_bfd_record_inclusion): New function.
13433 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13435 2014-01-13 Tom Tromey <tromey@redhat.com>
13437 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13439 2014-01-13 Tom Tromey <tromey@redhat.com>
13441 * defs.h (use_windows): Remove.
13442 * gdb.c (main): Update.
13443 * main.c (captured_main, gdb_main): Update.
13444 * main.h (struct captured_main_args) <use_windows>: Remove.
13445 * top.c (use_windows): Remove.
13447 2014-01-13 Tom Tromey <tromey@redhat.com>
13449 * defs.h (deprecated_flush_hook): Remove.
13451 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13454 * linux-thread-db.c (try_thread_db_load): Add parameter
13455 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13456 (try_thread_db_load_from_pdir_1): Move it there from here.
13457 (try_thread_db_load_from_sdir): Update caller.
13458 (try_thread_db_load_from_dir): Move it there from here.
13460 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13462 * regformats/regdat.sh: Always rewrite the register file.
13464 2014-01-13 Pedro Alves <palves@redhat.com>
13466 * Makefile.in (CHECK_HEADERS): New variable.
13467 (check-headers:): New rule.
13469 2014-01-13 Tom Tromey <tromey@redhat.com>
13471 * cli/cli-setshow.c (do_set_command): Update.
13472 * defs.h (deprecated_set_hook): Remove.
13473 * top.c (deprecated_set_hook): Remove.
13475 2014-01-13 Pedro Alves <palves@redhat.com>
13477 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13478 the tracepoint if the PC is a pseudo-register.
13480 2014-01-13 Tom Tromey <tromey@redhat.com>
13482 * defs.h (XCALLOC): Remove.
13483 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13484 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13485 * dwarf2loc.c (allocate_piece_closure): Likewise.
13486 * elfread.c (elf_symfile_segments): Likewise.
13487 (elf_symfile_segments): Likewise.
13488 * gdbtypes.c (copy_type_recursive): Likewise.
13489 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13490 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13491 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13493 * mt-tdep.c (mt_gdbarch_init): Likewise.
13494 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13496 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13497 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13498 * registry.c (registry_alloc_data): Likewise.
13499 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13500 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13501 * serial.c (serial_fdopen_ops): Likewise.
13502 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13504 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13505 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13508 2014-01-13 Tom Tromey <tromey@redhat.com>
13510 * defs.h (XMALLOC): Remove.
13511 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13512 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13513 * cli-out.c (struct ui_out *): Likewise.
13514 * cli/cli-dump.c (add_dump_command): Likewise.
13515 (add_dump_command): Likewise.
13516 * complaints.c (get_complaints): Likewise.
13517 (find_complaint): Likewise.
13518 * dwarf2-frame.c (execute_cfa_program): Likewise.
13519 * dwarf2read.c (abbrev_table_read_table): Likewise.
13520 * gdbarch.sh: Likewise.
13521 * gdbarch.c: Rebuild.
13522 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13523 * interps.c (interp_new): Likewise.
13524 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13525 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13526 * mi/mi-console.c (mi_console_file_new): Likewise.
13527 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13528 * mi/mi-out.c (mi_out_new): Likewise.
13529 * mi/mi-parse.c (mi_parse): Likewise.
13530 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13531 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13532 * observer.c (xalloc_observer_list_node): Likewise.
13533 * regcache.c (regcache_xmalloc_1): Likewise.
13534 * reggroups.c (reggroup_new): Likewise.
13535 (_initialize_reggroup): Likewise.
13536 * registry.c (register_data_with_cleanup): Likewise.
13537 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13538 * ser-base.c (serial_ttystate): Likewise.
13539 * ser-mingw.c (make_pipe_state): Likewise.
13540 * ser-pipe.c (pipe_open): Likewise.
13541 * serial.c (serial_open): Likewise.
13542 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13543 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13544 (tui_alloc_win_info): Likewise.
13545 (tui_add_content_elements): Likewise.
13546 * tui/tui-file.c (tui_file_new): Likewise.
13547 * tui/tui-out.c (tui_out_new): Likewise.
13548 * ui-file.c (mem_file_new): Likewise.
13549 * ui-out.c (push_level): Likewise.
13550 (make_cleanup_ui_out_end): Likewise.
13551 (append_header_to_list): Likewise.
13552 (ui_out_new): Likewise.
13553 * user-regs.c (user_reg_add_builtin): Likewise.
13555 2014-01-13 Tom Tromey <tromey@redhat.com>
13557 * defs.h (XZALLOC): Remove.
13558 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13559 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13560 (get_ada_tasks_inferior_data): Likewise.
13561 * auto-load.c (get_auto_load_pspace_data): Likewise.
13562 * auxv.c (get_auxv_inferior_data): Likewise.
13563 * bfd-target.c (target_bfd_reopen): Likewise.
13564 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13565 (deprecated_insert_raw_breakpoint): Likewise.
13566 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13567 * corelow.c (core_open): Likewise.
13568 * darwin-nat.c (darwin_check_new_threads): Likewise.
13569 (darwin_attach_pid): Likewise.
13570 * dummy-frame.c (dummy_frame_push): Likewise.
13571 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13572 * dwarf2loc.c (allocate_piece_closure): Likewise.
13573 * elfread.c (elf_symfile_segments): Likewise.
13574 * eval.c (ptrmath_type_p): Likewise.
13575 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13576 * gdbtypes.c (alloc_type_arch): Likewise.
13577 (alloc_type_instance): Likewise.
13578 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13579 * inf-child.c (inf_child_can_use_agent): Likewise.
13580 * inflow.c (get_inflow_inferior_data): Likewise.
13581 * infrun.c (save_infcall_suspend_state): Likewise.
13582 * jit.c (jit_reader_load): Likewise.
13583 (get_jit_objfile_data): Likewise.
13584 (get_jit_program_space_data): Likewise.
13585 (jit_object_open_impl): Likewise.
13586 (jit_symtab_open_impl): Likewise.
13587 (jit_block_open_impl): Likewise.
13588 (jit_frame_sniffer): Likewise.
13589 * linux-fork.c (add_fork): Likewise.
13590 * maint.c (make_command_stats_cleanup): Likewise.
13591 * objfiles.c (get_objfile_pspace_data): Likewise.
13592 * opencl-lang.c (struct lval_closure): Likewise.
13593 * osdata.c (osdata_start_osdata): Likewise.
13594 * progspace.c (new_address_space): Likewise.
13595 (add_program_space): Likewise.
13596 * remote-sim.c (get_sim_inferior_data): Likewise.
13597 * sh-tdep.c (sh_gdbarch_init): Likewise.
13598 * skip.c (Ignore): Likewise.
13599 (skip_delete_command): Likewise.
13600 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13601 (library_list_start_library): Likewise.
13602 (solib_aix_current_sos): Likewise.
13603 * solib-darwin.c (get_darwin_info): Likewise.
13604 (darwin_current_sos): Likewise.
13605 * solib-dsbt.c (get_dsbt_info): Likewise.
13606 * solib-ia64-hpux.c (new_so_list): Likewise.
13607 (ia64_hpux_get_solib_linkage_addr): Likewise.
13608 * solib-spu.c (append_ocl_sos): Likewise.
13609 (spu_current_sos): Likewise.
13610 * solib-svr4.c (get_svr4_info): Likewise.
13611 (svr4_keep_data_in_core): Likewise.
13612 (library_list_start_library): Likewise.
13613 (svr4_default_sos): Likewise.
13614 (svr4_read_so_list): Likewise.
13615 * solib-target.c (library_list_start_library): Likewise.
13616 (solib_target_current_sos): Likewise.
13617 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13618 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13619 * symfile.c (default_symfile_segments): Likewise.
13620 * target-descriptions.c (tdesc_data_init): Likewise.
13621 (tdesc_create_reg): Likewise.
13622 (struct tdesc_type *): Likewise.
13623 (tdesc_create_vector): Likewise.
13624 (tdesc_set_struct_size): Likewise.
13625 (struct tdesc_type *): Likewise.
13626 (tdesc_free_feature): Likewise.
13627 (tdesc_create_feature): Likewise.
13628 * windows-nat.c (windows_add_thread): Likewise.
13629 (windows_make_so): Likewise.
13630 * xml-support.c (gdb_xml_body_text): Likewise.
13631 (gdb_xml_create_parser_and_cleanup): Likewise.
13632 (xml_process_xincludes): Likewise.
13633 * xml-syscall.c (allocate_syscalls_info): Likewise.
13634 (syscall_create_syscall_desc): Likewise.
13636 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13638 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13639 function, with code from i386_stap_parse_special_token.
13640 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13641 (i386_stap_parse_special_token): Move code to the two functions
13642 above; simplify it.
13644 2014-01-09 Pedro Alves <palves@redhat.com>
13645 Hui Zhu <hui@codesourcery.com>
13648 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13649 bp_err_string. Don't mark the location shlib_disabled if the
13650 error thrown wasn't a generic or memory error. Catch errors
13651 thrown while inserting breakpoints in overlayed code. Output
13652 error message of software breakpoints.
13653 * remote.c (remote_insert_breakpoint): If this breakpoint has
13654 target-side commands but this stub doesn't support Z0 packets,
13655 throw NOT_SUPPORTED_ERROR error.
13656 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13657 * target.h (target_insert_breakpoint): Extend comment.
13658 (target_insert_hw_breakpoint): Add comment.
13660 2014-01-08 Pedro Alves <palves@redhat.com>
13662 * remote.c (remote_add_thread): Add threads silently if starting
13664 (remote_notice_new_inferior): If in all-stop, and starting up,
13665 don't call notice_new_inferior.
13666 (get_current_thread): New function, factored out from ...
13667 (add_current_inferior_and_thread): ... this. Adjust.
13668 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13669 found any thread, then select the remote's current thread as GDB's
13670 current thread too.
13672 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13674 * NEWS: Create a new section for the next release branch.
13675 Rename the section of the current branch, now that it has
13678 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13680 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13681 * version.in: Bump version to 7.7.50.DATE-cvs.
13683 2014-01-08 Yao Qi <yao@codesourcery.com>
13685 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13686 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13687 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13689 2014-01-08 Yao Qi <yao@codesourcery.com>
13691 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13692 return value of bfd_get_filename to symbol_file_add_from_bfd.
13694 2014-01-08 Pierre Muller <muller@sourceware.org>
13697 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13698 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13699 to prim_record_mininal_symbol_and_info.
13700 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13701 in call to prim_record_minimal_symbol_and_info.
13702 (read_pe_exported_syms): Set index field of section_data.
13704 2014-01-07 Andrew Pinski <apinski@cavium.com>
13706 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13707 * features/aarch64.c: Regenerate.
13709 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13711 * target.c (return_null): Define.
13712 (update_current_target): Use it instead of return_zero for
13713 functions that return a pointer.
13715 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13717 * source.c (add_path): Fix check for duplicated paths in the previously
13720 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13722 * ada-lang.c: Remove duplicated include statements.
13723 * alphabsd-nat.c: Ditto.
13724 * amd64-darwin-tdep.c: Ditto.
13725 * amd64fbsd-nat.c: Ditto.
13726 * auto-load.c: Ditto.
13728 * breakpoint.c: Ditto.
13729 * dbxread.c: Ditto.
13730 * fork-child.c: Ditto.
13731 * gdb_usleep.c: Ditto.
13732 * i386-darwin-tdep.c: Ditto.
13733 * i386fbsd-nat.c: Ditto.
13735 * inferior.c: Ditto.
13736 * jv-lang.c: Ditto.
13737 * linux-nat.c: Ditto.
13738 * linux-tdep.c: Ditto.
13739 * m68kbsd-nat.c: Ditto.
13740 * m68klinux-nat.c: Ditto.
13741 * microblaze-tdep.c: Ditto.
13742 * mips-linux-tdep.c: Ditto.
13743 * mn10300-tdep.c: Ditto.
13744 * nto-tdep.c: Ditto.
13745 * opencl-lang.c: Ditto.
13747 * printcmd.c: Ditto.
13748 * regcache.c: Ditto.
13749 * remote-m32r-sdi.c: Ditto.
13751 * symfile.c: Ditto.
13753 * tilegx-linux-nat.c: Ditto.
13754 * tilegx-tdep.c: Ditto.
13755 * tracepoint.c: Ditto.
13757 * vaxbsd-nat.c: Ditto.
13758 * windows-nat.c: Ditto.
13759 * xtensa-tdep.c: Ditto.
13761 2014-01-07 Yao Qi <yao@codesourcery.com>
13763 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13765 2014-01-07 Yao Qi <yao@codesourcery.com>
13766 Joel Brobecker <brobecker@adacore.com>
13768 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13769 (pdc_write_regs): Likewise.
13770 (fetch_regs_kernel_thread): Likewise.
13771 (store_regs_kernel_thread): Likewise.
13773 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13775 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13776 tagged type objects to their actual type.
13778 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13780 * ada-valprint.c (print_field_values): Add "language" parameter.
13781 Update calls to print_field_values and print_variant_part.
13782 Pass new parameter "language" in call to val_print instead
13783 of "current_language". Replace call to ada_val_print by call
13785 (print_variant_part): Add "language" parameter.
13786 (ada_val_print_struct_union): Update call to print_field_values.
13788 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13790 * ada-valprint.c (ui_memcpy): Delete.
13791 (ada_print_floating): Update documentation. Add empty line
13792 between between function documentation and implementation.
13793 Delete variable "buffer". Use ui_file_xstrdup in place of
13794 ui_file_put. Minor adjustments following this change.
13796 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13798 * ada-valprint.c (ada_val_print_string): New function,
13799 extracted from ada_val_print_array.
13800 (ada_val_print_array): Replace extracted code by call
13801 to ada_val_print_string followed by a return. Move
13802 "else" branch to the function's top block.
13804 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13806 * ada-valprint.c (ada_val_print_array): Move implementation
13807 down. Rename parameter "offset" and "val" into "offset_aligned"
13808 and "original_value" respectively. Add parameter "offset".
13810 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13812 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13813 re-organizing the code. Change the "???" message printed
13814 when target type is a TYPE_CODE_UNDEF into
13815 "<ref to undefined type>".
13817 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13819 * ada-valprint.c (print_record): Delete, implementation inlined...
13820 (ada_val_print_struct_union): ... here. Remove call to
13821 ada_check_typedef in inlined implementation.
13823 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13825 * ada-valprint.c (ada_val_print_gnat_array): New function,
13826 extracted from ada_val_print_1;
13827 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13828 (ada_val_print_flt, ada_val_print_struct_union)
13829 (ada_val_print_ref): Likewise.
13830 (ada_val_print_1): Delete variables i and elttype.
13831 Replace extracted-out code by call to corresponding
13834 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13836 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13838 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13840 * ada-valprint.c (ada_val_print_1): Replace calls to
13841 ada_val_print_1 by calls to val_print.
13843 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13845 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13846 Update calls to self accordingly. Replace calls to c_val_print
13847 by calls to val_print.
13849 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13851 * ada-valprint.c (print_record): Delete declaration.
13852 (adjust_type_signedness, ada_val_print_1): Likewise.
13853 (ada_val_print): Move function implementation down.
13854 (print_variant_part, print_field_values, print_record):
13855 Move function implementation up.
13857 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13859 * python/py-type.c (typy_get_name): New function.
13860 (type_object_getset): Add entry for attribute "name".
13861 * NEWS: Add entry mentioning this new attribute.
13863 2014-01-07 Yao Qi <yao@codesourcery.com>
13865 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13868 2014-01-07 Yao Qi <yao@codesourcery.com>
13870 * gnu-nat.c (info_port_rights): Add qualifier const to
13873 2014-01-07 Yao Qi <yao@codesourcery.com>
13875 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13877 2014-01-07 Yao Qi <yao@codesourcery.com>
13879 * gnu-nat.c (make_inf) Update declaration.
13880 (make_inf): Make it static.
13881 (inf_set_traced): Likewise.
13882 (inf_port_to_thread, inf_task_died_status): Likewise.
13884 2014-01-07 Yao Qi <yao@codesourcery.com>
13886 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13888 2014-01-07 Yao Qi <yao@codesourcery.com>
13890 * gnu-nat.c (_initialize_gnu_nat): Declare.
13892 2014-01-07 Yao Qi <yao@codesourcery.com>
13894 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13896 (struct gdbarch_info) <byte_order>: Change type to
13898 <byte_order_for_code>: Likewise.
13899 * gdbarch.c, gdbarch.h: Regenerated.
13901 2014-01-06 Sasha Smundak <asmundak@google.com>
13903 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13905 2014-01-06 Tom Tromey <tromey@redhat.com>
13907 * doublest.c (convert_doublest_to_floatformat): Use const, not
13909 * somread.c (som_symtab_read): Likewise.
13911 2014-01-07 Hui Zhu <hui@codesourcery.com>
13913 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13914 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13915 (gdb_bfd_fopen): Ditto.
13916 (gdb_bfd_openr): Ditto.
13917 (gdb_bfd_openw): Ditto.
13918 (gdb_bfd_openr_iovec): Ditto.
13919 (gdb_bfd_fdopenr): Ditto.
13920 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13921 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13923 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13925 * symfile-mem.c (symbol_file_add_from_memory): Removed
13926 gdb_bfd_stash_filename.
13928 2014-01-03 Doug Evans <dje@google.com>
13930 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13933 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13935 Update year range in copyright notice of all files.
13937 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13939 * top.c (print_gdb_version): Set copyright year to 2014.
13941 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13943 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13945 For older changes see ChangeLog-2013.
13951 version-control: never