1 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
3 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
4 isn't valid, release the tdesc arch data and return NULL.
6 2014-10-10 Pedro Alves <palves@redhat.com>
8 * linux-tdep.c: Include observer.h.
9 (linux_inferior_data): New global.
10 (struct linux_info): New structure.
11 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
12 (get_linux_inferior_data): New functions.
13 (linux_vsyscall_range): Rename to ...
14 (linux_vsyscall_range_raw): ... this.
15 (linux_vsyscall_range): New function; handles caching.
16 (_initialize_linux_tdep): Register linux_inferior_data. Install
17 inferior_exit and inferior_appeared observers.
19 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
20 Pedro Alves <palves@redhat.com>
23 * solib-svr4.c (svr4_read_so_list): Rename to ...
24 (svr4_current_sos_1): ... this and change the function comment.
25 (svr4_current_sos): New function.
27 2014-10-10 Pedro Alves <palves@redhat.com>
29 * arch-utils.c (default_vsyscall_range): New function.
30 * arch-utils.h (default_vsyscall_range): New declaration.
31 * gdbarch.sh (vsyscall_range): New hook.
32 * gdbarch.h, gdbarch.c: Regenerate.
33 * linux-tdep.c (linux_vsyscall_range): New function.
34 (linux_init_abi): Install linux_vsyscall_range as
35 vsyscall_range gdbarch hook.
36 * memrange.c (address_in_mem_range): New function.
37 * memrange.h (address_in_mem_range): New declaration.
38 * symfile-mem.c (find_vdso_size): Delete function.
39 (add_vsyscall_page): Use gdbarch_vsyscall_range.
41 2014-10-10 Pedro Alves <palves@redhat.com>
43 * infrun.c (normal_stop): Fix typo in comment.
45 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
48 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
49 typo when using logical AND to determine instruction type.
51 2014-10-09 Yao Qi <yao@codesourcery.com>
53 * infrun.c (handle_signal_stop): Remove local variable
56 2014-10-08 Stan Shebs <stan@codesourcery.com>
58 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
60 2014-10-08 Gary Benson <gbenson@redhat.com>
62 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
64 2014-10-08 Gary Benson <gbenson@redhat.com>
66 * common/common-defs.h: Include common-exceptions.h.
67 * exceptions.h: Do not include common-exceptions.h.
69 2014-10-08 Gary Benson <gbenson@redhat.com>
71 * common/common-defs.h: Include cleanups.h.
72 * common/common-exceptions.c: Do not include cleanups.h.
75 2014-10-08 Gary Benson <gbenson@redhat.com>
77 * ada-lang.c: Do not include exceptions.h.
78 * ada-valprint.c: Likewise.
79 * amd64-tdep.c: Likewise.
80 * auto-load.c: Likewise.
82 * break-catch-throw.c: Likewise.
83 * breakpoint.c: Likewise.
86 * cli/cli-cmds.c: Likewise.
87 * cli/cli-interp.c: Likewise.
88 * cli/cli-script.c: Likewise.
89 * completer.c: Likewise.
90 * corefile.c: Likewise.
91 * corelow.c: Likewise.
93 * cp-support.c: Likewise.
94 * cp-valprint.c: Likewise.
95 * darwin-nat.c: Likewise.
96 * dwarf2-frame-tailcall.c: Likewise.
97 * dwarf2-frame.c: Likewise.
98 * dwarf2loc.c: Likewise.
99 * dwarf2read.c: Likewise.
101 * event-loop.c: Likewise.
102 * event-top.c: Likewise.
103 * f-valprint.c: Likewise.
104 * frame-unwind.c: Likewise.
106 * gdbtypes.c: Likewise.
107 * gnu-v2-abi.c: Likewise.
108 * gnu-v3-abi.c: Likewise.
109 * guile/scm-auto-load.c: Likewise.
110 * guile/scm-breakpoint.c: Likewise.
111 * guile/scm-cmd.c: Likewise.
112 * guile/scm-frame.c: Likewise.
113 * guile/scm-lazy-string.c: Likewise.
114 * guile/scm-param.c: Likewise.
115 * guile/scm-symbol.c: Likewise.
116 * guile/scm-type.c: Likewise.
117 * hppa-hpux-tdep.c: Likewise.
118 * i386-tdep.c: Likewise.
119 * inf-loop.c: Likewise.
120 * infcall.c: Likewise.
121 * infcmd.c: Likewise.
122 * infrun.c: Likewise.
123 * interps.c: Likewise.
124 * interps.h: Likewise.
126 * linespec.c: Likewise.
127 * linux-nat.c: Likewise.
128 * linux-thread-db.c: Likewise.
129 * m32r-rom.c: Likewise.
131 * memory-map.c: Likewise.
132 * mi/mi-cmd-break.c: Likewise.
133 * mi/mi-cmd-stack.c: Likewise.
134 * mi/mi-interp.c: Likewise.
135 * mi/mi-main.c: Likewise.
136 * monitor.c: Likewise.
137 * nto-procfs.c: Likewise.
138 * objc-lang.c: Likewise.
139 * p-valprint.c: Likewise.
141 * ppc-linux-tdep.c: Likewise.
142 * printcmd.c: Likewise.
144 * python/py-auto-load.c: Likewise.
145 * python/py-breakpoint.c: Likewise.
146 * python/py-cmd.c: Likewise.
147 * python/py-finishbreakpoint.c: Likewise.
148 * python/py-frame.c: Likewise.
149 * python/py-framefilter.c: Likewise.
150 * python/py-function.c: Likewise.
151 * python/py-gdb-readline.c: Likewise.
152 * python/py-inferior.c: Likewise.
153 * python/py-infthread.c: Likewise.
154 * python/py-lazy-string.c: Likewise.
155 * python/py-linetable.c: Likewise.
156 * python/py-param.c: Likewise.
157 * python/py-prettyprint.c: Likewise.
158 * python/py-symbol.c: Likewise.
159 * python/py-type.c: Likewise.
160 * python/py-value.c: Likewise.
161 * python/python-internal.h: Likewise.
162 * python/python.c: Likewise.
163 * record-btrace.c: Likewise.
164 * record-full.c: Likewise.
165 * regcache.c: Likewise.
166 * remote-fileio.c: Likewise.
167 * remote-mips.c: Likewise.
168 * remote.c: Likewise.
169 * rs6000-aix-tdep.c: Likewise.
170 * rs6000-nat.c: Likewise.
172 * solib-darwin.c: Likewise.
173 * solib-dsbt.c: Likewise.
174 * solib-frv.c: Likewise.
175 * solib-ia64-hpux.c: Likewise.
176 * solib-spu.c: Likewise.
177 * solib-svr4.c: Likewise.
179 * spu-tdep.c: Likewise.
181 * stap-probe.c: Likewise.
182 * symfile-mem.c: Likewise.
183 * symmisc.c: Likewise.
184 * target.c: Likewise.
185 * thread.c: Likewise.
187 * tracepoint.c: Likewise.
188 * tui/tui-interp.c: Likewise.
189 * typeprint.c: Likewise.
191 * valarith.c: Likewise.
192 * valops.c: Likewise.
193 * valprint.c: Likewise.
195 * varobj.c: Likewise.
196 * windows-nat.c: Likewise.
197 * xml-support.c: Likewise.
199 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
201 * mips-tdep.c (add_offset_16): Rewrite to implement what the
203 (extended_mips16_next_pc): Update accordingly.
205 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
207 * mips-tdep.c (mips16_instruction_is_compact_branch): New
209 (micromips_instruction_is_compact_branch): Likewise.
210 (mips16_scan_prologue): Terminate scanning upon seeing a branch
211 or a compact jump, reaching a jump delay slot, or seeing a
212 second non-prologue instruction.
213 (micromips_scan_prologue): Also terminate scanning upon seeing a
214 compact branch or jump, or reaching a branch or jump delay slot.
215 (mips32_scan_prologue): Terminate scanning upon reaching a branch
216 or jump delay slot, or seeing a second non-prologue instruction.
217 (mips32_instruction_has_delay_slot): Retain instruction
218 examination code only, update arguments accordingly and move
219 instruction fetch pieces to...
220 (mips32_insn_at_pc_has_delay_slot): ... this new function.
221 (micromips_instruction_has_delay_slot): Likewise and to...
222 (micromips_insn_at_pc_has_delay_slot): ... this new function.
223 (mips16_instruction_has_delay_slot): Likewise and to...
224 (mips16_insn_at_pc_has_delay_slot): ... this new function.
225 (mips_single_step_through_delay): Update accordingly.
226 (mips_adjust_breakpoint_address): Likewise.
228 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
230 * mips-tdep.c (micromips_instruction_has_delay_slot): When
231 !mustbe32 also return 1 for 32-bit instructions.
232 (mips16_instruction_has_delay_slot): Likewise. Add an
235 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
237 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
240 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
242 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
244 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
245 for the breakpoint's address. Don't preinitialize `placed_size'.
246 (insert_bp_location): Set `reqstd_address' rather than
248 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
249 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
251 (bkpt_remove_location): Likewise.
252 (deprecated_insert_raw_breakpoint): Likewise.
253 (deprecated_remove_raw_breakpoint): Likewise.
254 (find_single_step_breakpoint): Likewise.
255 * mem-break.c (default_memory_insert_breakpoint): Use
256 `reqstd_address' for the breakpoint's address. Don't set
257 `placed_address' or `placed_size' if breakpoint contents couldn't
258 have been determined.
259 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
260 the breakpoint's address.
261 (remote_insert_hw_breakpoint): Likewise. Don't set
262 `placed_address' or `placed_size' if breakpoint couldn't have been
264 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
265 `reqstd_address' for the breakpoint's address.
266 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
267 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
268 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
269 * microblaze-linux-tdep.c
270 (microblaze_linux_memory_remove_breakpoint): Likewise.
271 * monitor.c (monitor_insert_breakpoint): Likewise.
272 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
273 (procfs_insert_hw_breakpoint): Likewise.
274 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
275 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
276 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
277 * remote-mips.c (mips_insert_breakpoint): Likewise.
278 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
280 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
282 * valops.c (value_assign): Check for bit field assignments
283 before calling architecture-specific register value
284 conversion functions.
286 2014-10-03 Pierre Muller <muller@sourceware.org>
288 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
290 2014-10-02 Pedro Alves <palves@redhat.com>
292 * breakpoint.c (breakpoints_should_be_inserted_now): Use
293 threads_are_executing.
294 * breakpoint.h (breakpoints_should_be_inserted_now): Add
296 * gdbthread.h (threads_are_executing): Declare.
297 (handle_signal_stop) <random signals>: Don't print about the
298 signal here if stopping.
299 (end_stepping_range): Don't notify observers here.
300 (normal_stop): Update the thread list. If stopped by a random
301 signal or a stepping range ended, notify observers.
302 * thread.c (threads_executing): New global.
303 (init_thread_list): Clear 'threads_executing'.
304 (set_executing): Set or clear 'threads_executing'.
305 (threads_are_executing): New function.
306 (update_threads_executing): New function.
307 (update_thread_list): Use it.
309 2014-10-02 Pedro Alves <palves@redhat.com>
312 * breakpoint.c (update_breakpoints_after_exec): Don't create
313 overlay, longjmp, std terminate nor exception breakpoints here.
315 2014-10-02 Pedro Alves <palves@redhat.com>
317 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
319 * inferior.c (find_inferior_for_program_space): Give preference to
320 the current inferior.
321 * inferior.h (find_inferior_for_program_space): Update comment.
322 * progspace.c (switch_to_program_space_and_thread): Prefer the
323 current inferior if it's bound to the program space requested. If
324 the inferior found doesn't have a PID yet, don't bother looking up
326 * progspace.h (switch_to_program_space_and_thread): Adjust
328 * thread.c (any_thread_of_process, any_live_thread_of_process):
329 Give preference to the current thread.
331 2014-10-01 Pedro Alves <palves@redhat.com>
333 * breakpoint.c (insert_bp_location): Error out if inserting a
334 software breakpoint at a read-only address.
335 * target.c (memory_xfer_check_region): New function, factored out
337 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
339 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
340 against the memory region attributes.
342 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
344 * NEWS: Announce new exit-code field in -list-thread-groups
346 * inferior.c (exit_inferior_1): Don't clear exit code.
347 (inferior_appeared): Clear exit code.
348 * mi/mi-main.c (print_one_inferior): Add printing of the exit
351 2014-10-01 Pedro Alves <palves@redhat.com>
353 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
354 GENERATED" along with emacs/vi read-only markers.
355 * regformats/aarch64.dat: Regenerate.
356 * regformats/arm-with-iwmmxt.dat: Regenerate.
357 * regformats/arm-with-neon.dat: Regenerate.
358 * regformats/arm-with-vfpv2.dat: Regenerate.
359 * regformats/arm-with-vfpv3.dat: Regenerate.
360 * regformats/i386/amd64-avx-linux.dat: Regenerate.
361 * regformats/i386/amd64-avx.dat: Regenerate.
362 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
363 * regformats/i386/amd64-avx512.dat: Regenerate.
364 * regformats/i386/amd64-linux.dat: Regenerate.
365 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
366 * regformats/i386/amd64-mpx.dat: Regenerate.
367 * regformats/i386/amd64.dat: Regenerate.
368 * regformats/i386/i386-avx-linux.dat: Regenerate.
369 * regformats/i386/i386-avx.dat: Regenerate.
370 * regformats/i386/i386-avx512-linux.dat: Regenerate.
371 * regformats/i386/i386-avx512.dat: Regenerate.
372 * regformats/i386/i386-linux.dat: Regenerate.
373 * regformats/i386/i386-mmx-linux.dat: Regenerate.
374 * regformats/i386/i386-mmx.dat: Regenerate.
375 * regformats/i386/i386-mpx-linux.dat: Regenerate.
376 * regformats/i386/i386-mpx.dat: Regenerate.
377 * regformats/i386/i386.dat: Regenerate.
378 * regformats/i386/x32-avx-linux.dat: Regenerate.
379 * regformats/i386/x32-avx.dat: Regenerate.
380 * regformats/i386/x32-avx512-linux.dat: Regenerate.
381 * regformats/i386/x32-avx512.dat: Regenerate.
382 * regformats/i386/x32-linux.dat: Regenerate.
383 * regformats/i386/x32.dat: Regenerate.
384 * regformats/microblaze-with-stack-protect.dat: Regenerate.
385 * regformats/mips-dsp-linux.dat: Regenerate.
386 * regformats/mips-linux.dat: Regenerate.
387 * regformats/mips64-dsp-linux.dat: Regenerate.
388 * regformats/mips64-linux.dat: Regenerate.
389 * regformats/nios2-linux.dat: Regenerate.
390 * regformats/rs6000/powerpc-32.dat: Regenerate.
391 * regformats/rs6000/powerpc-32l.dat: Regenerate.
392 * regformats/rs6000/powerpc-64l.dat: Regenerate.
393 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
394 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
395 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
396 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
397 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
398 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
399 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
400 * regformats/s390-linux32.dat: Regenerate.
401 * regformats/s390-linux32v1.dat: Regenerate.
402 * regformats/s390-linux32v2.dat: Regenerate.
403 * regformats/s390-linux64.dat: Regenerate.
404 * regformats/s390-linux64v1.dat: Regenerate.
405 * regformats/s390-linux64v2.dat: Regenerate.
406 * regformats/s390-te-linux64.dat: Regenerate.
407 * regformats/s390x-linux64.dat: Regenerate.
408 * regformats/s390x-linux64v1.dat: Regenerate.
409 * regformats/s390x-linux64v2.dat: Regenerate.
410 * regformats/s390x-te-linux64.dat: Regenerate.
411 * regformats/tic6x-c62x-linux.dat: Regenerate.
412 * regformats/tic6x-c62x.dat: Regenerate.
413 * regformats/tic6x-c64x-linux.dat: Regenerate.
414 * regformats/tic6x-c64x.dat: Regenerate.
415 * regformats/tic6x-c64xp-linux.dat: Regenerate.
416 * regformats/tic6x-c64xp.dat: Regenerate.
418 2014-10-01 Pedro Alves <palves@redhat.com>
420 * features/Makefile: Update comments.
421 (XMLTOC): List all xml files we build C files from.
422 (clean-cfiles): New rule.
424 2014-10-01 Pedro Alves <palves@redhat.com>
426 * features/i386/amd64-avx512-linux.c: Regenerate.
427 * features/i386/amd64-avx512.c: Regenerate.
428 * features/i386/x32-avx512-linux.c: Regenerate.
429 * features/i386/x32-avx512.c: Regenerate.
431 2014-10-01 Pedro Alves <palves@redhat.com>
433 * features/Makefile (WHICH): Remove arm-with-m,
434 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
436 2014-10-01 Pedro Alves <palves@redhat.com>
438 * features/Makefile (clean): New rule.
440 2014-10-01 Pedro Alves <palves@redhat.com>
442 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
443 (zmm14h): Add missing end quotes.
445 2014-10-01 Pedro Alves <palves@redhat.com>
447 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
448 * features/aarch64.c: Regenerate.
450 2014-09-30 Don Breazeal <donb@codesourcery.com>
452 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
453 code so as to work with follow_fork_inferior.
454 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
455 (inf_ttrace_create_inferior): Remove reference to
456 inf_ttrace_vfork_ppid.
457 (inf_ttrace_attach): Ditto.
458 (inf_ttrace_detach): Ditto.
459 (inf_ttrace_kill): Use current_inferior instead of
460 inf_ttrace_vfork_ppid.
461 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
462 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
463 inferior away from the parent.
464 * infrun.c (follow_fork): Call follow_fork_inferior instead of
466 (follow_fork_inferior): New function.
467 (follow_inferior_reset_breakpoints): Make function static.
468 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
469 * linux-nat.c (linux_child_follow_fork): Move target-independent
470 code to infrun.c:follow_fork_inferior.
472 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
474 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
475 * gdbarch.c: Regenerate.
476 * gdbarch.h: Likewise.
477 * corelow.c (sniff_core_bfd): Drop presence check for deleted
478 gdbarch method 'regset_from_core_section'.
479 (get_core_register_section): Remove handling for the case that
480 regset == NULL and regset_from_core_section is defined.
481 (get_core_registers): Drop check for deleted method.
482 * procfs.c (procfs_do_thread_registers): Adjust comment.
484 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
486 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
487 (linux_nat_make_corefile_notes): Remove.
488 (linux_target_install_ops): Do not set target method
489 'make_corefile_notes'.
490 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
492 (linux_corefile_thread_callback): Instead of args->collect, call
493 linux_collect_thread_registers.
494 (linux_make_corefile_notes): Remove 'collect' parameter. Return
495 NULL unless there is a regset iterator.
496 (linux_make_corefile_notes_1): Remove.
497 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
498 by linux_make_corefile_notes.
499 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
501 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
503 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
504 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
506 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
508 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
510 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
511 (xtensa_iterate_over_regset_sections): New.
512 (xtensa_gdbarch_init): Adjust gdbarch initialization.
514 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
516 * vax-tdep.c (vax_regset_from_core_section): Remove.
517 (vax_iterate_over_regset_sections): New.
518 (vax_gdbarch_init): Adjust gdbarch initialization.
520 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
522 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
523 (tilegx_regset_from_core_section): Remove.
524 (tilegx_iterate_over_regset_sections): New.
525 (tilegx_linux_init_abi): Adjust gdbarch initialization.
527 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
529 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
530 (sparc_iterate_over_regset_sections): New.
531 (sparc32_gdbarch_init): Adjust gdbarch initialization.
532 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
534 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
535 (sparc64fbsd_init_abi): Call fbsd_init_abi.
536 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
537 target method 'make_corefile_notes'.
539 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
541 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
542 'sizeof_gregset' and 'sizeof_fpregset'.
543 * sh-tdep.c (sh_regset_from_core_section): Remove.
544 (sh_iterate_over_regset_sections): New.
545 (sh_gdbarch_init): Adjust gdbarch initialization.
546 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
548 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
551 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
553 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
554 (score7_linux_iterate_over_regset_sections): New.
555 (score_gdbarch_init): Adjust gdbarch initialization.
557 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
559 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
561 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
562 method 'make_corefile_notes'.
563 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
564 (ppcfbsd_regset_from_core_section): Remove.
565 (ppcfbsd_iterate_over_regset_sections): New.
566 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
568 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
569 (ppcnbsd_iterate_over_regset_sections): New.
570 (ppcnbsd_init_abi): Adjust.
571 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
572 (ppcobsd_iterate_over_regset_sections): New.
573 (ppcobsd_init_abi): Adjust.
574 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
575 (rs6000_aix_iterate_over_regset_sections): New.
576 (rs6000_aix_init_osabi): Adjust.
578 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
580 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
581 (nios2_regset_from_core_section): Remove.
582 (nios2_iterate_over_regset_sections): New.
583 (nios2_linux_init_abi): Adjust gdbarch initialization.
585 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
587 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
588 (am33_iterate_over_regset_sections): New.
589 (am33_linux_init_osabi): Adjust gdbarch initialization.
591 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
593 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
594 (mips_linux_iterate_over_regset_sections): New.
595 (mips_linux_init_abi): Adjust gdbarch initialization.
596 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
597 (mips64obsd_iterate_over_regset_sections): New.
598 (mips64obsd_init_abi): Adjust.
599 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
600 (mipsnbsd_iterate_over_regset_sections): New.
601 (mipsnbsd_init_abi): Adjust.
603 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
605 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
606 (m88k_iterate_over_regset_sections): New.
607 (m88k_gdbarch_init): Adjust gdbarch initialization.
609 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
611 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
612 (ia64_linux_iterate_over_regset_sections): New.
613 (ia64_linux_init_abi): Adjust gdbarch initialization.
615 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
617 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
618 (m68kbsd_iterate_over_regset_sections): New.
619 (m68kbsd_init_abi): Adjust gdbarch initialization.
620 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
621 (m68k_linux_iterate_over_regset_sections): New.
622 (m68k_linux_init_abi): Adjust gdbarch initialization.
624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
626 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
627 (m32r_linux_regset_from_core_section): Remove.
628 (m32r_linux_iterate_over_regset_sections): New.
629 (m32r_linux_init_abi): Adjust gdbarch initialization.
631 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
633 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
634 (amd64obsd_iterate_over_regset_sections): New.
635 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
636 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
638 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
639 regset_from_core_section initialization.
640 * i386-tdep.c (i386_regset_from_core_section): Remove.
641 (i386_iterate_over_regset_sections): New.
642 (i386_gdbarch_init): Adjust gdbarch initialization.
643 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
644 (i386_iterate_over_regset_sections): New prototype.
645 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
647 (i386obsd_aout_iterate_over_regset_sections): New.
648 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
649 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
651 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
652 (amd64fbsd_init_abi): Call fbsd_init_abi.
653 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
654 (i386fbsd4_init_abi): Call fbsd_init_abi.
655 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
656 target method 'make_corefile_notes'.
657 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
659 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
661 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
662 (hppa_hpux_iterate_over_regset_sections): New.
663 (hppa_hpux_init_abi): Adjust gdbarch initialization.
664 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
665 (hppa_linux_iterate_over_regset_sections): New.
666 (hppa_linux_init_abi): Adjust.
667 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
668 (hppanbsd_iterate_over_regset_sections): New.
669 (hppanbsd_init_abi): Adjust.
670 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
671 (hppaobsd_iterate_over_regset_sections): New.
672 (hppaobsd_init_abi): Adjust.
674 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
676 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
677 (frv_linux_iterate_over_regset_sections): New.
678 (frv_linux_init_abi): Adjust gdbarch initialization.
680 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
682 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
683 (armbsd_iterate_over_regset_sections): New prototype.
684 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
685 (armbsd_iterate_over_regset_sections): New.
686 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
689 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
691 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
692 (alpha_linux_iterate_over_regset_sections): New.
693 (alpha_linux_init_abi): Adjust gdbarch initialization.
694 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
696 (alphanbsd_iterate_over_regset_sections): New prototype.
698 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
700 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
702 (aarch64_linux_iterate_over_regset_sections): New.
703 (aarch64_linux_init_abi): Adjust gdbarch initialization.
705 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
707 * fbsd-tdep.c: New file.
708 * fbsd-tdep.h: New file.
709 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
710 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
711 (ALLDEPFILES): Add fbsd-tdep.c.
713 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
715 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
717 * gdbarch.h: Regenerate.
718 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
720 (get_core_register_section): Add parameter 'regset' and use it, if
721 set. Add parameter 'min_size' and verify the bfd section size
723 (get_core_registers_cb): Add parameter 'regset' and pass it to
724 get_core_register section. For the "standard" register sections
725 ".reg" and ".reg2", set an appropriate default for human_name.
726 (get_core_registers): Don't abort when the gdbarch has an iterator
727 but no regset_from_core_section. Add NULL/0 for parameters
728 'regset'/'min_size' in calls to get_core_register_section.
729 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
730 'regset' and use it instead of calling the
731 regset_from_core_section gdbarch method.
732 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
733 * i386-tdep.c (i386_supply_xstateregset)
734 (i386_collect_xstateregset, i386_xstateregset): Moved to
736 (i386_regset_from_core_section): Drop handling for .reg-xfp and
738 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
739 core file support only if the regset iterator hasn't been set.
740 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
741 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
742 Moved from i386-tdep.c and renamed to *_linux*.
743 (i386_linux_iterate_over_regset_sections): Add regset parameter to
744 each callback invocation. Allow any .reg-xstate size when reading
746 * amd64-tdep.c (amd64_supply_xstateregset)
747 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
749 (amd64_regset_from_core_section): Remove.
750 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
751 install an amd64-specific regset_from_core_section gdbarch method.
752 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
753 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
754 Moved from amd64-tdep.c and renamed to *_linux*.
755 (amd64_linux_iterate_over_regset_sections): Add regset parameter
756 to each callback invocation. Allow any .reg-xstate size when
757 reading from a core file.
758 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
759 (arm_linux_iterate_over_regset_sections): Add regset parameter to
760 each callback invocation.
761 (arm_linux_init_abi): No longer set the regset_from_core_section
763 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
764 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
765 each callback invocation.
766 (ppc_linux_init_abi): No longer set the regset_from_core_section
768 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
769 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
770 (s390_regset_from_core_section): Remove.
771 (s390_iterate_over_regset_sections): Add regset parameter to each
773 (s390_gdbarch_init): No longer set the regset_from_core_section
774 gdbarch method. Drop initialization of deleted tdep fields.
776 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
778 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
779 (amd64_linux_iterate_over_regset_sections): New.
780 (amd64_linux_init_abi_common): Don't install the regset section
781 list, but the new iterator in gdbarch.
782 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
783 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
784 (arm_linux_iterate_over_regset_sections): ...here. New function.
785 (arm_linux_init_abi): Set iterator instead of section list.
786 * corelow.c (get_core_registers_cb): New function, logic moved
788 (get_core_registers): ...loop body here. Use new iterator method
789 instead of walking through the regset section list.
790 * gdbarch.sh: Remove 'core_regset_sections'. New method
791 'iterate_over_regset_sections'. New typedef
792 'iterate_over_regset_sections_cb'.
793 * gdbarch.c: Regenerate.
794 * gdbarch.h: Likewise.
795 * i386-linux-tdep.c (i386_linux_regset_sections)
796 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
798 (i386_linux_iterate_over_regset_sections): New.
799 (i386_linux_init_abi): Don't choose a regset section list, but
800 install new iterator in gdbarch.
801 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
802 (linux_collect_regset_section_cb): New function, logic moved
804 (linux_collect_thread_registers): ...loop body here. Use iterator
805 method instead of walking through list.
806 (linux_make_corefile_notes_1): Check for presence of iterator
807 method instead of regset section list.
808 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
809 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
810 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
811 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
812 (ppc_linux_iterate_over_regset_sections): ...here. New function.
813 (ppc_linux_init_abi): Don't choose from above regset section
814 lists, but install new iterator in gdbarch.
815 * regset.h (struct core_regset_section): Remove.
816 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
817 have_linux_v1, have_linux_v2, and have_tdb.
818 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
819 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
820 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
821 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
822 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
823 (s390_iterate_over_regset_sections): ...here. New function. Use
825 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
826 regset section lists, but install new iterator.
828 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
830 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
832 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
834 * progspace.c (print_program_space): Don't prune program spaces
835 before printing them.
837 2014-09-25 Pedro Alves <palves@redhat.com>
839 * infrun.c (user_visible_resume_ptid): Don't check
840 singlestep_breakpoints_inserted_p.
842 2014-09-25 Pedro Alves <palves@redhat.com>
844 * breakpoint.c (should_be_inserted): Add debug output.
846 2014-09-25 Pedro Alves <palves@redhat.com>
848 * infrun.c (stepping_past_instruction_at)
849 (clear_exit_convenience_vars): Point at infrun.h instead of
851 (handle_signal_stop): Fix typo.
853 2014-09-24 Yao Qi <yao@codesourcery.com>
855 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
858 2014-09-22 Gary Benson <gbenson@redhat.com>
860 * target.c (target_stop): Updated comment.
862 2014-09-22 Gary Benson <gbenson@redhat.com>
864 * target/target.h (target_stop_ptid): Renamed as...
865 (target_stop_and_wait): New function. Updated comment.
867 (target_continue_ptid): Renamed as...
868 (target_continue_no_signal): New function. Updated comment.
871 2014-09-22 Pedro Alves <palves@redhat.com>
873 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
875 * breakpoint.c (enum ugll_insert_mode): New enum.
876 (always_inserted_mode): Now a plain boolean.
877 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
878 (breakpoints_always_inserted_mode): Delete.
879 (breakpoints_should_be_inserted_now): New function.
880 (insert_breakpoints): Pass UGLL_INSERT to
881 update_global_location_list instead of calling
882 insert_breakpoint_locations manually.
883 (create_solib_event_breakpoint_1): New, factored out from ...
884 (create_solib_event_breakpoint): ... this.
885 (create_and_insert_solib_event_breakpoint): Use
886 create_solib_event_breakpoint_1 instead of calling
887 insert_breakpoint_locations manually.
888 (update_global_location_list): Change parameter type from boolean
889 to enum ugll_insert_mode. All callers adjusted. Adjust to use
890 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
891 (update_global_location_list_nothrow): Change parameter type from
892 boolean to enum ugll_insert_mode.
893 (_initialize_breakpoint): "breakpoint always-inserted" option is
894 now a boolean command. Update help text.
895 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
896 (breakpoints_should_be_inserted_now): New declaration.
897 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
898 Remove breakpoints_always_inserted_mode check.
899 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
900 * remote.c (remote_start_remote): Likewise.
902 2014-09-22 Pedro Alves <palves@redhat.com>
904 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
905 (insert_breakpoints): Don't call insert_breakpoint_locations here.
906 Instead, pass UGLL_INSERT to update_global_location_list.
907 (update_global_location_list): Change parameter type from boolean
908 to enum ugll_insert_mode. All callers adjusted. Adjust to use
909 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
910 (create_solib_event_breakpoint_1): New, factored out from ...
911 (create_solib_event_breakpoint): ... this.
912 (create_and_insert_solib_event_breakpoint): Use
913 create_solib_event_breakpoint_1 instead of calling
914 insert_breakpoint_locations manually.
915 (update_global_location_list): Handle UGLL_INSERT.
917 2014-09-22 Pedro Alves <palves@redhat.com>
919 * breakpoint.c (enum ugll_insert_mode): New enum.
920 (update_global_location_list)
921 (update_global_location_list_nothrow): Change parameter type from
922 boolean to enum ugll_insert_mode. All callers adjusted.
924 2014-09-19 Joel Brobecker <brobecker@adacore.com>
926 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
927 SystemTap support in GDB.
929 2014-09-19 Don Breazeal <donb@codesourcery.com>
931 * linux-nat.c (linux_handle_extended_wait): Call
932 linux_ptrace_get_extended_event.
933 (wait_lwp): Call linux_is_extended_waitstatus.
934 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
935 and linux_is_extended_waitstatus.
936 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
937 linux_ptrace_get_extended_event.
938 (linux_ptrace_get_extended_event): New function.
939 (linux_is_extended_waitstatus): New function.
940 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
941 (linux_is_extended_waitstatus): New declarations.
943 2014-09-19 Yao Qi <yao@codesourcery.com>
945 * dwarf2read.c (dwarf_decode_lines): Update declaration.
946 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
947 comments. Callers update.
948 (dwarf_decode_lines): Likewise.
949 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
950 comments. Skip the line table if 'lowpc' is greater than
951 'address'. Don't check
952 dwarf2_per_objfile->has_section_at_zero.
954 2014-09-18 Doug Evans <dje@google.com>
956 * NEWS: Mention new "producer" attribute of gdb.Symtab.
957 * python/py-symtab.c (stpy_get_producer): New function.
958 (symtab_object_getset): Add "producer" attribute.
960 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
963 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
964 (do_captured_read_memory_integer): Remove.
965 (safe_read_memory_integer): Use target_read_memory directly instead
966 of catching errors in do_captured_read_memory_integer.
968 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
970 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
973 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
975 * objc-lang.c (find_implementation_from_class): Remove dead code.
977 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
980 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
981 "fprintf_unfiltered (gdb_stdlog...)".
983 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
986 * breakpoint.h (struct watchpoint): New fields val_bitpos and
988 * breakpoint.c (watch_command_1): Use these fields to retain
989 bitfield information.
990 (extract_bitfield_from_watchpoint_value): New function.
991 (watchpoint_check): Use it.
992 (update_watchpoint): Use it. Optimize the address and length of a
993 HW watchpoint pointing to a bitfield.
994 * value.h (unpack_value_bitfield): New prototype.
995 * value.c (unpack_value_bitfield): Make extern.
997 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
999 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1001 * gnu-nat.c (inf_threads): New function.
1002 * gnu-nat.h (inf_threads_ftype): New typedef.
1003 (inf_threads): New declaration.
1004 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1005 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1006 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1007 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1008 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1009 (i386_gnu_dr_get_control): New functions.
1010 (reg_addr): New structure.
1011 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1012 i386 debugging register hooks.
1013 * NEWS: Mention this.
1015 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1017 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1018 vector data transfer instructions.
1019 (arm_record_coproc_data_proc): Updated.
1021 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1023 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1024 arm_record_exreg_ld_st_insn.
1025 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1028 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1030 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1031 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1032 processing instructions.
1034 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1036 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1037 for advance SIMD struct ld/st insn.
1038 (thumb2_record_decode_insn_handler): Replace stub handler with
1039 thumb2_record_asimd_struct_ld_st.
1041 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1043 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1044 for asimd, vfp and coprocessor insns.
1045 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1046 and coprocessor insns.
1047 (thumb2_record_coproc_insn): New function.
1048 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1050 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1053 2014-09-13 Doug Evans <xdje42@gmail.com>
1055 * NEWS: Mention new "queue-signal" command.
1056 * infcmd.c (queue_signal_command): New function.
1057 (_initialize_infcmd): Add new queue-signal command.
1059 2014-09-13 Doug Evans <xdje42@gmail.com>
1061 * linux-nat.c (wait_lwp): Add debugging printf.
1062 (linux_nat_wait_1): Ditto.
1064 2014-09-12 Pedro Alves <palves@redhat.com>
1066 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1067 (create_and_insert_solib_event_breakpoint): New functions.
1068 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1069 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1070 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1071 (remove_dbx_link_breakpoint): Delete function.
1072 (insert_dbx_link_bpt_in_file): Use
1073 create_and_insert_solib_event_breakpoint instead of
1074 deprecated_insert_raw_breakpoint.
1075 (procfs_wait): Don't check whether we hit __dbx_link here.
1076 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1078 * solib-irix.c (base_breakpoint): Delete global.
1079 (disable_break): Delete function.
1080 (enable_break): Use create_solib_event_breakpoint
1081 instead of deprecated_insert_raw_breakpoint.
1082 (irix_solib_handle_event): New function.
1083 (irix_solib_create_inferior_hook): Don't run the target or disable
1084 the mapping-complete breakpoint here.
1085 (_initialize_irix_solib): Install irix_solib_handle_event as
1086 so_ops->handle_event hook.
1088 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1089 Ulrich Weigand <uweigand@de.ibm.com>
1092 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1093 instead of read_memory_unsigned_integer.
1095 2014-09-12 Gary Benson <gbenson@redhat.com>
1097 * nat/linux-waitpid.c: Include common-defs.h.
1098 [GDBSERVER]: Add FIXME comment.
1099 [!GDBSERVER]: Don't include defs.h or signal.h.
1100 (linux_debug) [!GDBSERVER]: Remove empty block.
1102 2014-09-12 Gary Benson <gbenson@redhat.com>
1104 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1105 Don't include defs.h or server.h.
1107 2014-09-12 Gary Benson <gbenson@redhat.com>
1109 * nat/linux-btrace.c: Include common-defs.h.
1110 Don't include defs.h, server.h or gdbthread.h.
1111 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1113 2014-09-12 Gary Benson <gbenson@redhat.com>
1115 * common/agent.c: Include common-defs.h.
1116 Don't include defs.h or server.h.
1117 * common/buffer.c: Likewise.
1118 * common/common-debug.c: Likewise.
1119 * common/common-utils.c: Likewise.
1120 * common/errors.c: Likewise.
1121 * common/filestuff.c: Likewise.
1122 * common/format.c: Likewise.
1123 * common/gdb_vecs.c: Likewise.
1124 * common/print-utils.c: Likewise.
1125 * common/ptid.c: Likewise.
1126 * common/rsp-low.c: Likewise.
1127 * common/signals.c: Likewise.
1128 * common/vec.c: Likewise.
1129 * common/xml-utils.c: Likewise.
1130 * nat/linux-osdata.c: Likewise.
1131 * nat/linux-procfs.c: Likewise.
1132 * nat/linux-ptrace.c: Likewise.
1133 * nat/mips-linux-watch.c: Likewise.
1134 * target/waitstatus.c: Likewise.
1136 2014-09-12 Tom Tromey <tromey@redhat.com>
1137 Gary Benson <gbenson@redhat.com>
1139 * common/common-regcache.h: New file.
1140 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1141 * regcache.h: Include common-regcache.h.
1142 (regcache_read_pc): Don't declare.
1143 * regcache.c (get_thread_regcache_for_ptid): New function.
1144 * nat/linux-btrace.c: Don't include regcache.h.
1145 Include common-regcache.h.
1146 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1148 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1150 * regcache.h (struct regset): Declare.
1152 2014-09-11 Pedro Alves <palves@redhat.com>
1155 * main.c: Include "infrun.h".
1156 (catch_command_errors, catch_command_errors_const): Wait for the
1157 foreground command to complete.
1158 * top.c (maybe_wait_sync_command_done): New function, factored out
1160 (maybe_wait_sync_command_done): ... here.
1161 * top.h (maybe_wait_sync_command_done): New declaration.
1163 2014-09-11 Tom Tromey <tromey@redhat.com>
1164 Gary Benson <gbenson@redhat.com>
1166 * common/symbol.h: New file.
1167 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1168 * minsyms.c (find_minimal_symbol_address): New function.
1169 * common/agent.c: Include common/symbol.h.
1170 [!GDBSERVER]: Don't include objfiles.h.
1171 (agent_look_up_symbols): Use find_minimal_symbol_address.
1173 2014-09-11 Gary Benson <gbenson@redhat.com>
1175 * target/target.h (target_stop_ptid, target_continue_ptid):
1177 * target.c (target_stop_ptid, target_continue_ptid): New
1179 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1180 (agent_run_command): Always use target_stop_ptid and
1181 target_continue_ptid.
1183 2014-09-11 Tom Tromey <tromey@redhat.com>
1184 Gary Benson <gbenson@redhat.com>
1186 * target/target.h: New file.
1187 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1188 * target.h: Include target/target.h.
1189 (target_read_memory, target_write_memory): Don't declare.
1190 * target.c (target_read_uint32): New function.
1191 * common/agent.c: Include target/target.h.
1192 [!GDBSERVER]: Don't include target.h.
1193 (helper_thread_id): Type changed to uint32_t.
1194 (agent_get_helper_thread_id): Use target_read_uint32.
1195 (agent_run_command): Always use target_read_memory and
1196 target_write_memory.
1197 (agent_capability): Type changed to uint32_t.
1198 (agent_capability_check): Use target_read_uint32.
1200 2014-09-11 Gary Benson <gbenson@redhat.com>
1202 * common/common-debug.h (show_debug_regs): Declare.
1203 * common/common-debug.c (show_debug_regs): Define.
1204 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1205 all uses with show_debug_regs. Replace all uses that considered
1206 debug_hw_points as a multi-value integer with straight boolean
1208 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1209 with show_debug_regs.
1210 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1211 all uses with show_debug_regs.
1212 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1213 uses with show_debug_regs.
1215 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1217 * findvar.c (address_from_register): Handle targets requiring
1218 a special conversion routine even for plain pointer types.
1220 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1222 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1223 (store_register): Do not call exec_one_dummy_insn.
1225 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1227 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1228 dereference it first. Use value_enclosing_type instead of
1230 (ada_array_length): Likewise.
1232 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1234 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1235 Adjust function implementation and documentation accordingly.
1236 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1237 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1238 Update call to ada_value_ptr_subscript.
1240 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1242 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1243 instead of VAL's type.
1245 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1247 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1249 2014-09-09 Doug Evans <xdje42@gmail.com>
1252 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1253 last parameter to pkg-config, not first.
1254 * configure.ac: Pass --with-guile provided pkg-config path to
1255 GDB_GUILE_PROGRAM_NAMES.
1256 * configure: Regenerate.
1258 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1260 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1263 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1265 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1266 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1267 the list of sections determining GDB_OSABI_IRIX.
1269 2014-09-09 James Hogan <james.hogan@imgtec.com>
1271 * MAINTAINERS (Write After Approval): Add "James Hogan".
1273 2014-09-09 James Hogan <james.hogan@imgtec.com>
1275 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1277 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1279 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1281 2014-09-08 Doug Evans <xdje42@gmail.com>
1284 * guile.c: #include <signal.h>.
1285 (_initialize_guile): Block SIGCHLD while initializing Guile.
1287 Replaces the following, which is reverted.
1289 2014-07-26 Doug Evans <xdje42@gmail.com>
1292 * configure.ac: Add check for header gc/gc.h.
1293 Add check for function setenv.
1294 * configure: Regenerate.
1295 * config.in: Regenerate.
1296 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1298 2014-09-08 Doug Evans <xdje42@gmail.com>
1300 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1301 with named constant. Fix style of pointer comparison.
1302 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1304 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1307 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1308 decide whether we display the command on "show user".
1309 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1310 printing command name.
1311 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1312 * cli/cli-decode.c (cli_user_command_p): Create helper function
1313 to verify whether cmd_list_element is a user-defined command.
1315 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1318 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1319 Fix goto out of TRY_CATCH.
1321 2014-09-06 Doug Evans <xdje42@gmail.com>
1322 Tom Tromey <tromey@redhat.com>
1325 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1326 $_any_caller_matches.
1327 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1328 * python/lib/gdb/function/caller_is.py: New file.
1330 2014-09-06 Doug Evans <xdje42@gmail.com>
1332 * infcmd.c (program_info): Fix typo.
1334 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1337 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1338 'number'. New variable 'has_digit'. Rewrite code to deal with
1339 subexpressions on SDT probes.
1341 2014-09-04 Pedro Alves <palves@redhat.com>
1343 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1344 the input is only one character long.
1346 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1349 * f-valprint.c (f_val_print): Specify the correct print option to
1350 use when printing integer values.
1352 2014-09-04 Gary Benson <gbenson@redhat.com>
1354 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1355 Remove code to cope with LWPs wrapped as PIDs.
1356 Add assertions to ensure no wrapped LWPs are passed.
1358 2014-09-04 Pedro Alves <palves@redhat.com>
1360 * value.c (value_ranges_copy_adjusted): New function, factored out
1362 (value_contents_copy_raw): ... here.
1363 (unpack_value_bits_as_long_1): Rename back to ...
1364 (unpack_bits_as_long): ... this. Remove 'original_value' and
1365 'result' parameters. Change return type to LONGEST.
1366 (unpack_value_bits_as_long): Delete.
1367 (unpack_value_field_as_long_1): Delete.
1368 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1369 (unpack_value_bitfield): New function.
1370 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1371 (value_fetch_lazy): Use unpack_value_bitfield.
1372 * value.h (unpack_value_bits_as_long): Delete declaration.
1374 2014-09-03 Sasha Smundak <asmundak@google.com>
1376 * python/py-frame.c (frapy_read_register): New function.
1378 2014-09-03 James Hogan <james.hogan@imgtec.com>
1380 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1381 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1383 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1386 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1388 (add_cmd): Set "completer_handle_brkchars" to NULL.
1389 * cli/cli-decode.h (struct cmd_list_element)
1390 <completer_handle_brkchars>: New field.
1391 * command.h (completer_ftype_void): New typedef.
1392 (set_cmd_completer_handle_brkchars): New prototype.
1393 * completer.c (set_gdb_completion_word_break_characters): New
1395 (complete_line_internal): Call "completer_handle_brkchars"
1396 callback from command.
1397 * completer.h: Include "command.h".
1398 (set_gdb_completion_word_break_characters): New prototype.
1399 * python/py-cmd.c (cmdpy_completer_helper): New function.
1400 (cmdpy_completer_handle_brkchars): New function.
1401 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1402 (cmdpy_init): Set completer_handle_brkchars to
1403 cmdpy_completer_handle_brkchars.
1405 2014-09-03 Gary Benson <gbenson@redhat.com>
1407 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1408 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1409 Loop conditions changed to equivalent form.
1410 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1411 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1412 ALL_DEBUG_ADDRESS_REGISTERS.
1414 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1416 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1419 2014-09-02 Doug Evans <dje@google.com>
1421 * typeprint.c (find_global_typedef): Fix comment.
1423 2014-09-02 Gary Benson <gbenson@redhat.com>
1425 * i386-nat.h: Renamed as...
1426 * x86-nat.h: New file. All type, function and variable name
1427 prefixes changed from "i386_" to "x86_". All references updated.
1428 * i386-nat.c: Renamed as...
1429 * x86-nat.c: New file. All type, function and variable name
1430 prefixes changed from "i386_" to "x86_". All references updated.
1431 * common/i386-xstate.h: Renamed as...
1432 * common/x86-xstate.h: New file. All type, function and variable
1433 name prefixes changed from "i386_" to "x86_". All references
1435 * nat/i386-cpuid.h: Renamed as...
1436 * nat/x86-cpuid.h: New file. All type, function and variable name
1437 prefixes changed from "i386_" to "x86_". All references updated.
1438 * nat/i386-gcc-cpuid.h: Renamed as...
1439 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1440 name prefixes changed from "i386_" to "x86_". All references
1442 * nat/i386-dregs.h: Renamed as...
1443 * nat/x86-dregs.h: New file. All type, function and variable name
1444 prefixes changed from "i386_" to "x86_". All references updated.
1445 * nat/i386-dregs.c: Renamed as...
1446 * nat/x86-dregs.c: New file. All type, function and variable name
1447 prefixes changed from "i386_" to "x86_". All references updated.
1449 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1451 * varobj.c (_initialize_varobj): Move to the end of file.
1453 2014-08-29 Gary Benson <gbenson@redhat.com>
1455 * common/common-exceptions.h: New file.
1456 * common/common-exceptions.c: Likewise.
1457 * Makefile.in (SFILES): Add common/common-exceptions.c.
1458 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1459 (COMMON_OBS): Add common-exceptions.o.
1460 (common-exceptions.o): New rule.
1461 * exceptions.h (common-exceptions.h): Include.
1462 (gdb_setjmp.h): Do not include.
1463 (return_reason): Moved to common-exceptions.h.
1464 (enum return_reason): Likewise.
1465 (RETURN_MASK): Likewise.
1466 (typedef return_mask): Likewise.
1467 (enum errors): Likewise.
1468 (struct gdb_exception): Likewise.
1469 (exceptions_state_mc_init): Likewise.
1470 (exceptions_state_mc_action_iter): Likewise.
1471 (exceptions_state_mc_action_iter_1): Likewise.
1472 (TRY_CATCH): Likewise.
1473 (throw_exception): Likewise.
1474 (throw_verror): Likewise.
1475 (throw_vquit): Likewise.
1476 (throw_error): Likewise.
1477 (throw_quit): Likewise.
1478 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1479 (enum catcher_action): Likewise.
1480 (struct catcher): Likewise.
1481 (current_catcher): Likewise.
1482 (catcher_list_size): Likewise.
1483 (exceptions_state_mc_init): Likewise.
1484 (catcher_pop): Likewise.
1485 (exceptions_state_mc): Likewise.
1486 (exceptions_state_mc_action_iter): Likewise.
1487 (exceptions_state_mc_action_iter_1): Likewise.
1488 (throw_exception): Likewise.
1489 (exception_messages): Likewise.
1490 (exception_messages_size): Likewise.
1491 (throw_it): Likewise.
1492 (throw_verror): Likewise.
1493 (throw_vquit): Likewise.
1494 (throw_error): Likewise.
1495 (throw_quit): Likewise.
1496 (prepare_to_throw_exception): New function.
1498 2014-08-29 Gary Benson <gbenson@redhat.com>
1500 * common/gdb_setjmp.h: New file.
1501 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1502 * configure.ac: Move sigsetjmp check...
1503 * common/common.m4: ...here.
1504 * configure: Regenerate.
1505 * cp-support.c (SIGJMP_BUF): Delete.
1506 (SIGSETJMP): Likewise.
1507 (SIGLONGJMP): Likewise.
1508 * exceptions.h (gdb_setjmp.h): Include.
1509 (setjmp.h): Do not include.
1510 (EXCEPTIONS_SIGJMP_BUF): Delete.
1511 (EXCEPTIONS_SIGSETJMP): Likewise.
1512 (EXCEPTIONS_SIGLONGJMP): Likewise.
1513 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1515 * exceptions.c: Likewise.
1517 2014-08-29 Gary Benson <gbenson@redhat.com>
1519 * cleanups.h: Moved to...
1520 * common/cleanups.h: New file.
1521 * cleanups.c: Moved to...
1522 * common/cleanups.c: New file. Include common-defs.h and
1523 cleanups.h. Do not include defs.h.
1524 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1525 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1526 (cleanups.o): New rule.
1528 2014-08-29 Gary Benson <gbenson@redhat.com>
1530 * common/errors.h (internal_warning): New declaration.
1531 (internal_vwarning): Likewise.
1532 * common/errors.c (internal_warning): New function.
1533 * utils.h (internal_warning): Don't declare.
1534 (internal_vwarning): Likewise.
1535 * utils.c (internal_warning): Removed.
1537 2014-08-29 Gary Benson <gbenson@redhat.com>
1539 * main.c (captured_main): Use warning during startup.
1540 Prefix startup warning messages with command name.
1542 2014-08-29 Gary Benson <gbenson@redhat.com>
1544 * main.c (captured_main): Handle usage errors with error.
1546 2014-08-29 Gary Benson <gbenson@redhat.com>
1548 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1549 exit pair with a call to error. Wrap the message with _().
1551 2014-08-29 Gary Benson <gbenson@redhat.com>
1553 * main.c (captured_main): Replace a fprintf/exit
1554 pair with a call to error. Wrap the message with _().
1556 2014-08-29 Gary Benson <gbenson@redhat.com>
1558 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1559 pairs with calls to error. Wrap the message with _().
1561 2014-08-29 Gary Benson <gbenson@redhat.com>
1563 * utils.c (vwarning): Protect calls to target_terminal_ours
1566 2014-08-29 Gary Benson <gbenson@redhat.com>
1568 * exceptions.c (print_flush): Protect calls to
1569 target_terminal_ours and wrap_here.
1571 2014-08-29 Gary Benson <gbenson@redhat.com>
1573 * utils.h (filtered_printing_initialized): New declaration.
1574 * utils.c (abort_with_message): New function.
1575 (internal_vproblem): Use abort_with_message for first level
1576 recursive internal problems, and if gdb_stderr is not set up.
1577 Protect calls to target_terminal_ours, begin_line and query.
1579 2014-08-28 Doug Evans <dje@google.com>
1581 * symtab.c (in_prologue): Move definition to better spot.
1582 (skip_prologue_using_sal): Ditto.
1584 2014-08-28 Doug Evans <dje@google.com>
1586 * symtab.c (find_function_start_sal): Move definition to better spot.
1588 2014-08-28 Yao Qi <yao@codesourcery.com>
1590 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1591 found_stack_adjust in forward scan. Remove condition check
1592 on found_stack_adjust which is always true. Indent the code.
1594 2014-08-28 Yao Qi <yao@codesourcery.com>
1596 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1597 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1598 (dwarf_decode_lines): Remove argument
1599 want_line_info. Remove condition check on want_line_info.
1602 2014-08-27 Doug Evans <dje@google.com>
1604 * dwarf2read.c (dwarf_record_line): Fix typo.
1606 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1608 * target.h (struct target_ops::to_terminal_save_ours): Remove
1610 (target_terminal_save_ours): Remove macro.
1611 * target-delegates.c: Regenerate.
1612 * inf-child.c (inf_child_target): Don't set the nonexistent
1613 field to_terminal_save_ours.
1614 * inferior.h (child_terminal_save_ours): Remove declaration.
1615 * terminal.h (gdb_save_tty_state): New declaration.
1616 * inflow.c (child_terminal_save_ours): Rename to ...
1617 (gdb_save_tty_state): ... this.
1618 * tui/tui.c: Include terminal.h.
1619 (tui_enable): Use gdb_save_tty_state instead of
1620 target_terminal_save_ours.
1621 (tui_disable): Likewise.
1623 2014-08-25 Doug Evans <dje@google.com>
1625 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1626 Pass NULL instead of 0 for context pointer.
1628 2014-08-25 Yao Qi <yao@codesourcery.com>
1630 * dwarf2read.c: Fix grammatical error.
1632 2014-08-24 Yao Qi <yao@codesourcery.com>
1634 * dwarf2read.c (scan_partial_symbols): Update comments.
1635 Rename argument 'need_pc' with 'set_addrmap'.
1636 (add_partial_namespace): Rename argument 'need_pc' with
1638 (add_partial_module): Likewise.
1639 (add_partial_subprogram): Likewise. Update comments.
1640 (dwarf2_name): Fix typo.
1642 2014-08-22 Doug Evans <dje@google.com>
1645 * dwarf2read.c (dwarf_record_line_p): New function.
1646 (dwarf_decode_lines_1): Ignore subsequent line number entries
1647 for the same line if any entry had a non-zero discriminator.
1649 2014-08-22 Doug Evans <dje@google.com>
1651 * buildsym.h (record_line_ftype): New typedef.
1652 (record_line): Use it.
1653 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1654 (dwarf_decode_lines_1): Call them.
1656 2014-08-22 Yao Qi <yao@codesourcery.com>
1658 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1659 (ctf_end): Remove code.
1661 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1663 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1664 (linux_make_corefile_notes): call update_thread_list, protected against
1667 2014-08-21 Pedro Alves <palves@redhat.com>
1669 * infcmd.c (attach_command): Remove comment.
1671 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1673 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1674 unsigned LONGEST to ULONGEST.
1676 2014-08-20 Pedro Alves <palves@redhat.com>
1678 * Makefile.in (check-read1): New rule.
1680 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1682 * value.c (value_from_contents_and_address): Strip resolved_type's
1683 typedef layers before checking its TYPE_DATA_LOCATION.
1685 2014-08-20 Pedro Alves <palves@redhat.com>
1687 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1689 2014-08-20 Yao Qi <yao@codesourcery.com>
1691 * amd64-tdep.c (amd64_classify): Add a blank line after the
1692 example. Move "*/" to a new line.
1693 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1694 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1695 * dwarf2read.c (psymtab_include_file_name): Likewise.
1697 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1698 Pedro Alves <palves@redhat.com>
1702 * ada-lang.c (coerce_unspec_val_to_type): Use
1703 value_contents_copy_raw.
1704 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1705 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1706 * cp-valprint.c (cp_print_value_fields): Let the common printing
1707 code handle optimized out values.
1708 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1709 * d-valprint.c (dynamic_array_type): Use
1710 value_bits_any_optimized_out.
1711 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1712 check_any_valid fields.
1713 (check_pieced_value_bits): Delete and inline ...
1714 (check_pieced_synthetic_pointer): ... here.
1715 (check_pieced_value_validity): Delete.
1716 (check_pieced_value_invalid): Delete.
1717 (pieced_value_funcs): Remove check_validity and check_any_valid
1719 (read_pieced_value): Use mark_value_bits_optimized_out.
1720 (write_pieced_value): Switch to use
1721 mark_value_bytes_optimized_out.
1722 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1723 of assuming the whole value is optimized out.
1724 * findvar.c (read_frame_register_value): Remove special handling
1725 of optimized out registers.
1726 (value_from_register): Use mark_value_bytes_optimized_out.
1727 * frame-unwind.c (frame_unwind_got_optimized): Use
1728 mark_value_bytes_optimized_out.
1729 * jv-valprint.c (java_value_print): Adjust.
1730 (java_print_value_fields): Let the common printing code handle
1731 optimized out values.
1732 * mips-tdep.c (mips_print_register): Remove special handling of
1733 optimized out registers.
1734 * opencl-lang.c (lval_func_check_validity): Delete.
1735 (lval_func_check_any_valid): Delete.
1736 (opencl_value_funcs): Remove check_validity and check_any_valid
1738 * p-valprint.c (pascal_object_print_value_fields): Let the common
1739 printing code handle optimized out values.
1740 * stack.c (read_frame_arg): Remove special handling of optimized
1741 out values. Fetch both VAL and ENTRYVAL before comparing
1742 contents. Adjust to value_available_contents_eq rename.
1743 * valprint.c (valprint_check_validity)
1744 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1745 (val_print_array_elements): Adjust.
1746 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1747 (value_bits_any_optimized_out): New function.
1748 (value_entirely_covered_by_range_vector): New function, factored
1749 out from value_entirely_unavailable.
1750 (value_entirely_unavailable): Reimplement.
1751 (value_entirely_optimized_out): New function.
1752 (insert_into_bit_range_vector): New function, factored out from
1753 mark_value_bits_unavailable.
1754 (mark_value_bits_unavailable): Reimplement.
1755 (struct ranges_and_idx): New struct.
1756 (find_first_range_overlap_and_match): New function, factored out
1757 from value_available_contents_bits_eq.
1758 (value_available_contents_bits_eq): Rename to ...
1759 (value_contents_bits_eq): ... this. Check both unavailable
1760 contents and optimized out contents.
1761 (value_available_contents_eq): Rename to ...
1762 (value_contents_eq): ... this.
1763 (allocate_value_lazy): Remove reference to the old optimized_out
1765 (allocate_optimized_out_value): Use
1766 mark_value_bytes_optimized_out.
1767 (require_not_optimized_out): Adjust to check whether the
1768 optimized_out vec is empty.
1769 (ranges_copy_adjusted): New function, factored out from
1770 value_contents_copy_raw.
1771 (value_contents_copy_raw): Also copy the optimized out ranges.
1772 Assert the destination ranges aren't optimized out.
1773 (value_contents_copy): Update comment, remove call to
1774 require_not_optimized_out.
1775 (value_contents_equal): Adjust to check whether the optimized_out
1777 (set_value_optimized_out, value_optimized_out_const): Delete.
1778 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1780 (value_entirely_optimized_out, value_bits_valid): Delete.
1781 (value_copy): Take a VEC copy of the 'optimized_out' field.
1782 (value_primitive_field): Remove special handling of optimized out.
1783 (value_fetch_lazy): Assert that lazy values have no unavailable
1784 regions. Use value_bits_any_optimized_out. Remove some special
1785 handling for optimized out values.
1786 * value.h: Add intro comment about <optimized out> and
1788 (struct lval_funcs): Remove check_validity and check_any_valid
1790 (set_value_optimized_out, value_optimized_out_const): Remove.
1791 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1793 (value_bits_any_optimized_out): New declaration.
1794 (value_bits_valid): Delete declaration.
1795 (value_available_contents_eq): Rename to ...
1796 (value_contents_eq): ... this, and extend comments.
1798 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1800 Fix -fsanitize=address on unreadable inferior strings.
1801 * valprint.c (val_print_string): Fix access before BUFFER.
1803 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1805 * target.c (target_struct_size): Remove.
1806 (target_struct_allocsize): Remove.
1807 (DEFAULT_ALLOCSIZE): Remove.
1808 (target_ops_p): New typedef.
1809 (DEF_VEC_P (target_ops_p)): New vector type.
1810 (target_structs): Change type to VEC (target_ops_p).
1811 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1812 (find_default_run_target): Rewrite for loop following changes to
1815 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1817 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1818 Adjust code accordingly. Adjust function description comment.
1820 2014-08-19 Yao Qi <yao@codesourcery.com>
1822 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1825 2014-08-19 Alan Modra <amodra@gmail.com>
1827 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1828 * config.in: Regenerate.
1829 * configure: Regenerate.
1831 2014-08-19 Tom Tromey <tromey@redhat.com>
1832 Gary Benson <gbenson@redhat.com>
1834 * common/common-debug.h: New file.
1835 * common/common-debug.c: Likewise.
1836 * debug.c: Likewise.
1837 * Makefile.in (SFILES): Add common/common-debug.c.
1838 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1839 (COMMON_OBS): Add common-debug.o and debug.o.
1840 (common-debug.o): New rule.
1841 * common/common-defs.h: Include common-debug.h.
1842 * common/agent.c (debug_agent_printf): New function.
1843 (DEBUG_AGENT): Redefine.
1844 * nat/i386-dregs.c (debug_printf): Undefine.
1846 2014-08-19 Gary Benson <gbenson@redhat.com>
1848 * common/common-defs.h: Include print-utils.h.
1849 * utils.h: Do not include print-utils.h.
1851 2014-08-19 Tom Tromey <tromey@redhat.com>
1852 Gary Benson <gbenson@redhat.com>
1854 * common/common-types.h: New file.
1855 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1856 * common/common-defs.h: Include common-types.h.
1857 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1860 2014-08-19 Tom Tromey <tromey@redhat.com>
1861 Gary Benson <gbenson@redhat.com>
1863 * common/errors.h: New file.
1864 * common/errors.c: Likewise.
1865 * Makefile.in (SFILES): Add common/errors.c.
1866 (HFILES_NO_SRCDIR): Add common/errors.h.
1867 (COMMON_OBS): Add errors.o.
1868 (errors.o): New rule.
1869 * common/common-defs.h: Include errors.h.
1870 * utils.h (perror_with_name, error, verror, warning, vwarning):
1872 * common/common-utils.h: (malloc_failure, internal_error):
1875 2014-08-19 Gary Benson <gbenson@redhat.com>
1877 * utils.c (internal_vproblem): Always print the message.
1879 2014-08-18 Doug Evans <dje@google.com>
1881 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1883 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1885 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1886 Return 0 if TYPE is dynamic.
1887 (print_range): Add handling of dynamic ranges.
1889 2014-08-18 Keven Boell <keven.boell@intel.com>
1890 Joel Brobecker <brobecker@adacore.com>
1892 * gdbtypes.h (struct main_type): Add field "data_location".
1893 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1894 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1895 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1896 a dynamic data location.
1897 (resolve_dynamic_type): Add DW_AT_data_location handling.
1898 (copy_recursive, copy_type): Copy the data_location information
1900 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1901 * value.c (value_from_contents_and_address): Add
1902 DW_AT_data_location handling.
1904 2014-08-18 Keven Boell <keven.boell@intel.com>
1905 Joel Brobecker <brobecker@adacore.com>
1907 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1908 field "get_object_address".
1909 * dwarf2expr.c (execute_stack_op): Add handling for
1910 DW_OP_push_object_address.
1911 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1912 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1913 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1914 (dwarf_expr_get_obj_addr): New function.
1915 (dwarf_expr_ctx_funcs): Add get_object_address field.
1916 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1917 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1918 (dwarf2_evaluate_property): Add parameter "address". Use it.
1919 (needs_get_obj_addr): New function.
1920 (needs_frame_ctx_funcs): Add get_object_address field.
1921 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1922 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1923 (resolve_dynamic_array): Likewise.
1925 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1927 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1928 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1929 fixed value for records and unions for which some GNAT encodings
1932 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1934 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1935 rewrite to avoid "else if" and "else" constructs. Should be
1936 a no-op in practice.
1938 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1940 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1943 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1946 * eval.c: Update all calls to find_overload_match.
1947 * valarith.c: Likewise.
1948 (value_user_defined_cpp_op, value_user_defined_op): New
1949 argument NOSIDE. Update all callers.
1950 * valops.c (find_overload_match): New argument NOSIDE.
1951 * value.h (find_overload_match): Update signature.
1953 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1955 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1956 'items' methods instead of 'iteritems' method on dictionaries.
1958 2014-08-15 Doug Evans <dje@google.com>
1960 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1963 2014-08-15 Doug Evans <dje@google.com>
1965 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1967 2014-08-15 Doug Evans <dje@google.com>
1969 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1971 2014-08-15 Doug Evans <dje@google.com>
1973 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1976 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1978 * dcache.h: Include target.h, to avoid compile time warnings.
1980 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1982 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1983 frame_info" partial declaration.
1984 * gdbarch.h: Regenerate.
1986 2014-08-15 Yao Qi <yao@codesourcery.com>
1988 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1989 Add parameter 'decode_for_pst_p'. Callers update.
1991 2014-08-13 Yao Qi <yao@codesourcery.com>
1994 * configure.ac: Use local variable 'pos'.
1995 * configure: Regenerated.
1997 2014-08-11 Doug Evans <dje@google.com>
1999 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2000 message, it is redundant with "Reading symbols from ..." message.
2002 2014-08-10 Doug Evans <xdje42@gmail.com>
2004 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2006 2014-08-09 Yao Qi <yao@codesourcery.com>
2009 * remote.c (remote_xfer_partial): Remove dead code.
2011 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2013 * ia64-linux-tdep.c: Include "regset.h".
2014 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2015 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2016 (ia64_linux_supply_fpregset): New function.
2017 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2018 (ia64_linux_regset_from_core_section): New function.
2019 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2022 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2024 * m68klinux-tdep.c: Include "regset.h".
2025 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2026 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2027 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2028 (m68k_linux_regset_from_core_section): New function.
2029 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2032 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2034 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2035 function. Move logic to...
2036 (tilegx_linux_regmap): ... this new register map.
2037 (tilegx_linux_regset): Refer to register map, replace supply
2038 method by regcache_supply_regset, and add collect method.
2039 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2040 TILEGX_FIRST_EASY_REGNUM.
2042 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2044 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2045 that calls regcache_supply_regset and handles the EPC register
2046 separately. Move main logic to...
2047 (score7_linux_gregmap): ... this new register map.
2048 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2049 (score7_linux_gregset): Refer to register map. Add collect method.
2050 (score7_linux_regset_from_core_section): Replace
2051 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2052 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2053 (struct regset): Delete unused forward declaraction.
2054 (struct pt_regs): Delete structure definition.
2055 (elf_gregset_t): Delete typedef.
2057 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2059 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2060 (nios2_core_regset): Add collect method.
2062 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2064 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2065 platform-independent and don't write to read-only input buffer.
2066 (m32r_linux_collect_gregset): New function.
2067 (m32r_linux_gregset): Add collect method.
2069 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2071 * hppa-linux-tdep.c (greg_map): Rename to...
2072 (hppa_linux_gregmap): ... this. Also convert to
2073 regcache_map_entry format.
2074 (hppa_linux_supply_regset): Delete function.
2075 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2076 (hppa_linux_fpregmap): ... this new register map.
2077 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2078 register map, replace supply method by regcache_supply_regset, and
2079 add collect method regcache_collect_regset.
2081 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2083 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2084 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2085 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2086 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2087 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2088 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2089 (frv_linux_supply_gregset): Replace main logic by call to
2090 regcache_supply_regset, but keep clearing gr32-gr63.
2091 (frv_linux_supply_fpregset): Delete function.
2092 (frv_linux_gregset): Refer to appropriate register map and add
2093 regcache_collect_regset as the collect method.
2094 (frv_linux_fpregset): Likewise. Also exchange the supply method
2095 by regcache_supply_regset.
2097 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2099 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2100 by call to alpha_supply_int_regs.
2101 (alpha_linux_collect_gregset): New function.
2102 (alpha_linux_supply_fpregset): Replace logic by call to
2103 alpha_supply_fp_regs.
2104 (alpha_linux_collect_fpregset): New function.
2105 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2107 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2109 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2110 by call to regcache_collect_regset.
2111 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2112 instead of aarch64_linux_supply_gregset/_fpregset.
2113 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2114 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2115 header file instead.
2116 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2117 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2118 functions. Move logic to ...
2119 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2121 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2122 refer to new register maps, replace *_regset_from_core by
2123 regcache_supply_regset, and also use regcache_collect_regset.
2124 * aarch64-linux-tdep.h: Include "regset.h".
2125 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2127 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2128 macros, moved from C source file.
2129 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2130 variable declarations.
2132 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2134 * s390-linux-nat.c: Include "regset.h".
2135 (regmap_gregset): Delete macro.
2136 (s390_64_regmap_gregset): New register map for
2137 regcache_supply/_collect_regset.
2138 (s390_64_gregset): New regset.
2139 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2140 (regmap_fpregset): Delete macro.
2141 (s390_native_supply, s390_native_collect): Delete functions.
2142 (supply_gregset, fill_gregset): Replace s390-specific regmap
2143 handling by a call to regcache_supply/_collect_regset.
2144 (supply_fpregset, fill_fpregset): Call regcache_supply/
2145 _collect_regset instead of s390_native_supply/_collect.
2146 (fetch_regset, store_regset): Likewise. Also change the last
2147 parameter to a regset instead of a regmap.
2148 (s390_linux_fetch_inferior_registers)
2149 (390_linux_store_inferior_registers): Adjust last parameter in
2150 calls to fetch_regset and store_regset.
2151 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2152 (s390_gregmap): ... this. Also make static const and convert to
2153 regcache_map_entry format.
2154 (s390x_regmap_gregset): Delete.
2155 (s390_regmap_fpregset): Rename to...
2156 (s390_fpregmap): ... this. Make static const and convert to
2157 regcache_map_entry format.
2158 (s390_regmap_upper, s390_regmap_last_break)
2159 (s390x_regmap_last_break, s390_regmap_system_call)
2160 (s390_regmap_tdb): Likewise.
2161 (s390_supply_regset, s390_collect_regset): Remove functions.
2162 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2164 (s390_gregset, s390_fpregset, s390_upper_regset)
2165 (s390_last_break_regset, s390x_last_break_regset)
2166 (s390_system_call_regset, s390_tdb_regset): Make global and
2167 replace s390_supply/_collect_regset by regcache_supply/
2169 (s390x_gregset): Delete.
2170 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2171 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2172 (s390_regmap_fpregset, s390_regmap_last_break)
2173 (s390x_regmap_last_break, s390_regmap_system_call)
2174 (s390_regmap_tdb): Delete global variable declarations.
2175 (s390_gregset, s390_fpregset, s390_last_break_regset)
2176 (s390x_last_break_regset, s390_system_call_regset)
2177 (s390_tdb_regset): New global variable declarations.
2179 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2181 * regcache.c: Include "regset.h".
2182 (regcache_transfer_regset): New local function.
2183 (regcache_supply_regset, regcache_collect_regset): New functions.
2184 * regcache.h (struct regcache_map_entry): New structure.
2185 (REGCACHE_MAP_SKIP): New enum value.
2186 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2188 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2190 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2191 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2192 (ppc_linux_collect_gregset ): Likewise.
2193 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2194 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2195 (ppc_collect_vrregset): Likewise.
2196 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2199 2014-08-07 Yao Qi <yao@codesourcery.com>
2201 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2202 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2203 * remote.c (remote_read_bytes): Likewise.
2205 2014-08-07 Yao Qi <yao@codesourcery.com>
2207 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2209 2014-08-07 Yao Qi <yao@codesourcery.com>
2212 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2213 TARGET_XFER_OK instead of 0.
2215 2014-08-07 Gary Benson <gbenson@redhat.com>
2217 * common/common-defs.h: Include errno.h.
2218 * defs.h: Do not include errno.h.
2219 * ada-typeprint.c: Likewise.
2220 * c-typeprint.c: Likewise.
2221 * core-regset.c: Likewise.
2222 * corefile.c: Likewise.
2223 * corelow.c: Likewise.
2224 * event-loop.c: Likewise.
2225 * f-typeprint.c: Likewise.
2226 * gnu-nat.c: Likewise.
2227 * go32-nat.c: Likewise.
2228 * i386gnu-nat.c: Likewise.
2229 * m2-typeprint.c: Likewise.
2230 * nat/linux-btrace.c: Likewise.
2231 * p-typeprint.c: Likewise.
2232 * procfs.c: Likewise.
2233 * remote-sim.c: Likewise.
2234 * rs6000-nat.c: Likewise.
2235 * target.c: Likewise.
2236 * typeprint.c: Likewise.
2237 * ui-file.c: Likewise.
2238 * valops.c: Likewise.
2239 * valprint.c: Likewise.
2241 2014-08-07 Gary Benson <gbenson@redhat.com>
2243 * common/common-defs.h: Include string.h.
2244 * aarch64-tdep.c: Do not include string.h.
2245 * ada-exp.y: Likewise.
2246 * ada-lang.c: Likewise.
2247 * ada-lex.l: Likewise.
2248 * ada-typeprint.c: Likewise.
2249 * ada-valprint.c: Likewise.
2250 * aix-thread.c: Likewise.
2251 * alpha-linux-tdep.c: Likewise.
2252 * alpha-mdebug-tdep.c: Likewise.
2253 * alpha-nat.c: Likewise.
2254 * alpha-osf1-tdep.c: Likewise.
2255 * alpha-tdep.c: Likewise.
2256 * alphanbsd-tdep.c: Likewise.
2257 * amd64-dicos-tdep.c: Likewise.
2258 * amd64-linux-tdep.c: Likewise.
2259 * amd64-nat.c: Likewise.
2260 * amd64-sol2-tdep.c: Likewise.
2261 * amd64fbsd-tdep.c: Likewise.
2262 * amd64obsd-tdep.c: Likewise.
2263 * arch-utils.c: Likewise.
2264 * arm-linux-nat.c: Likewise.
2265 * arm-linux-tdep.c: Likewise.
2266 * arm-tdep.c: Likewise.
2267 * arm-wince-tdep.c: Likewise.
2268 * armbsd-tdep.c: Likewise.
2269 * armnbsd-nat.c: Likewise.
2270 * armnbsd-tdep.c: Likewise.
2271 * armobsd-tdep.c: Likewise.
2272 * avr-tdep.c: Likewise.
2273 * ax-gdb.c: Likewise.
2274 * ax-general.c: Likewise.
2275 * bcache.c: Likewise.
2276 * bfin-tdep.c: Likewise.
2277 * breakpoint.c: Likewise.
2278 * build-id.c: Likewise.
2279 * buildsym.c: Likewise.
2280 * c-exp.y: Likewise.
2281 * c-lang.c: Likewise.
2282 * c-typeprint.c: Likewise.
2283 * c-valprint.c: Likewise.
2284 * charset.c: Likewise.
2285 * cli-out.c: Likewise.
2286 * cli/cli-cmds.c: Likewise.
2287 * cli/cli-decode.c: Likewise.
2288 * cli/cli-dump.c: Likewise.
2289 * cli/cli-interp.c: Likewise.
2290 * cli/cli-logging.c: Likewise.
2291 * cli/cli-script.c: Likewise.
2292 * cli/cli-setshow.c: Likewise.
2293 * cli/cli-utils.c: Likewise.
2294 * coffread.c: Likewise.
2295 * common/agent.c: Likewise.
2296 * common/buffer.c: Likewise.
2297 * common/buffer.h: Likewise.
2298 * common/common-utils.c: Likewise.
2299 * common/filestuff.c: Likewise.
2300 * common/filestuff.c: Likewise.
2301 * common/format.c: Likewise.
2302 * common/print-utils.c: Likewise.
2303 * common/rsp-low.c: Likewise.
2304 * common/signals.c: Likewise.
2305 * common/vec.h: Likewise.
2306 * common/xml-utils.c: Likewise.
2307 * core-regset.c: Likewise.
2308 * corefile.c: Likewise.
2309 * corelow.c: Likewise.
2310 * cp-abi.c: Likewise.
2311 * cp-name-parser.y: Likewise.
2312 * cp-support.c: Likewise.
2313 * cp-valprint.c: Likewise.
2314 * cris-tdep.c: Likewise.
2315 * d-exp.y: Likewise.
2316 * darwin-nat.c: Likewise.
2317 * dbxread.c: Likewise.
2318 * dcache.c: Likewise.
2319 * demangle.c: Likewise.
2320 * dicos-tdep.c: Likewise.
2321 * disasm.c: Likewise.
2322 * doublest.c: Likewise.
2323 * dsrec.c: Likewise.
2324 * dummy-frame.c: Likewise.
2325 * dwarf2-frame.c: Likewise.
2326 * dwarf2loc.c: Likewise.
2327 * dwarf2read.c: Likewise.
2328 * elfread.c: Likewise.
2329 * environ.c: Likewise.
2331 * event-loop.c: Likewise.
2332 * exceptions.c: Likewise.
2334 * expprint.c: Likewise.
2335 * f-exp.y: Likewise.
2336 * f-lang.c: Likewise.
2337 * f-typeprint.c: Likewise.
2338 * f-valprint.c: Likewise.
2339 * fbsd-nat.c: Likewise.
2340 * findcmd.c: Likewise.
2341 * findvar.c: Likewise.
2342 * fork-child.c: Likewise.
2343 * frame.c: Likewise.
2344 * frv-linux-tdep.c: Likewise.
2345 * frv-tdep.c: Likewise.
2347 * gdb_bfd.c: Likewise.
2348 * gdbarch.c: Likewise.
2349 * gdbarch.sh: Likewise.
2350 * gdbtypes.c: Likewise.
2351 * gnu-nat.c: Likewise.
2352 * gnu-v2-abi.c: Likewise.
2353 * gnu-v3-abi.c: Likewise.
2354 * go-exp.y: Likewise.
2355 * go-lang.c: Likewise.
2356 * go32-nat.c: Likewise.
2357 * guile/guile.c: Likewise.
2358 * guile/scm-auto-load.c: Likewise.
2359 * hppa-hpux-tdep.c: Likewise.
2360 * hppa-linux-nat.c: Likewise.
2361 * hppanbsd-tdep.c: Likewise.
2362 * hppaobsd-tdep.c: Likewise.
2363 * i386-cygwin-tdep.c: Likewise.
2364 * i386-dicos-tdep.c: Likewise.
2365 * i386-linux-tdep.c: Likewise.
2366 * i386-nto-tdep.c: Likewise.
2367 * i386-sol2-tdep.c: Likewise.
2368 * i386-tdep.c: Likewise.
2369 * i386bsd-tdep.c: Likewise.
2370 * i386gnu-nat.c: Likewise.
2371 * i386nbsd-tdep.c: Likewise.
2372 * i386obsd-tdep.c: Likewise.
2373 * i387-tdep.c: Likewise.
2374 * ia64-libunwind-tdep.c: Likewise.
2375 * ia64-linux-nat.c: Likewise.
2376 * inf-child.c: Likewise.
2377 * inf-ptrace.c: Likewise.
2378 * inf-ttrace.c: Likewise.
2379 * infcall.c: Likewise.
2380 * infcmd.c: Likewise.
2381 * inflow.c: Likewise.
2382 * infrun.c: Likewise.
2383 * interps.c: Likewise.
2384 * iq2000-tdep.c: Likewise.
2385 * irix5-nat.c: Likewise.
2386 * jv-exp.y: Likewise.
2387 * jv-lang.c: Likewise.
2388 * jv-typeprint.c: Likewise.
2389 * jv-valprint.c: Likewise.
2390 * language.c: Likewise.
2391 * linux-fork.c: Likewise.
2392 * linux-nat.c: Likewise.
2393 * lm32-tdep.c: Likewise.
2394 * m2-exp.y: Likewise.
2395 * m2-typeprint.c: Likewise.
2396 * m32c-tdep.c: Likewise.
2397 * m32r-linux-nat.c: Likewise.
2398 * m32r-linux-tdep.c: Likewise.
2399 * m32r-rom.c: Likewise.
2400 * m32r-tdep.c: Likewise.
2401 * m68hc11-tdep.c: Likewise.
2402 * m68k-tdep.c: Likewise.
2403 * m68kbsd-tdep.c: Likewise.
2404 * m68klinux-nat.c: Likewise.
2405 * m68klinux-tdep.c: Likewise.
2406 * m88k-tdep.c: Likewise.
2407 * machoread.c: Likewise.
2408 * macrocmd.c: Likewise.
2410 * mdebugread.c: Likewise.
2411 * mem-break.c: Likewise.
2412 * memattr.c: Likewise.
2413 * memory-map.c: Likewise.
2414 * mep-tdep.c: Likewise.
2415 * mi/mi-cmd-break.c: Likewise.
2416 * mi/mi-cmd-disas.c: Likewise.
2417 * mi/mi-cmd-env.c: Likewise.
2418 * mi/mi-cmd-stack.c: Likewise.
2419 * mi/mi-cmd-var.c: Likewise.
2420 * mi/mi-cmds.c: Likewise.
2421 * mi/mi-console.c: Likewise.
2422 * mi/mi-getopt.c: Likewise.
2423 * mi/mi-interp.c: Likewise.
2424 * mi/mi-main.c: Likewise.
2425 * mi/mi-parse.c: Likewise.
2426 * microblaze-rom.c: Likewise.
2427 * microblaze-tdep.c: Likewise.
2428 * mingw-hdep.c: Likewise.
2429 * minidebug.c: Likewise.
2430 * minsyms.c: Likewise.
2431 * mips-irix-tdep.c: Likewise.
2432 * mips-linux-tdep.c: Likewise.
2433 * mips-tdep.c: Likewise.
2434 * mips64obsd-tdep.c: Likewise.
2435 * mipsnbsd-tdep.c: Likewise.
2436 * mipsread.c: Likewise.
2437 * mn10300-linux-tdep.c: Likewise.
2438 * mn10300-tdep.c: Likewise.
2439 * monitor.c: Likewise.
2440 * moxie-tdep.c: Likewise.
2441 * mt-tdep.c: Likewise.
2442 * nat/linux-btrace.c: Likewise.
2443 * nat/linux-osdata.c: Likewise.
2444 * nat/linux-procfs.c: Likewise.
2445 * nat/linux-ptrace.c: Likewise.
2446 * nat/linux-waitpid.c: Likewise.
2447 * nbsd-tdep.c: Likewise.
2448 * nios2-linux-tdep.c: Likewise.
2449 * nto-procfs.c: Likewise.
2450 * nto-tdep.c: Likewise.
2451 * objc-lang.c: Likewise.
2452 * objfiles.c: Likewise.
2453 * opencl-lang.c: Likewise.
2454 * osabi.c: Likewise.
2455 * osdata.c: Likewise.
2456 * p-exp.y: Likewise.
2457 * p-lang.c: Likewise.
2458 * p-typeprint.c: Likewise.
2459 * parse.c: Likewise.
2460 * posix-hdep.c: Likewise.
2461 * ppc-linux-nat.c: Likewise.
2462 * ppc-sysv-tdep.c: Likewise.
2463 * ppcfbsd-tdep.c: Likewise.
2464 * ppcnbsd-tdep.c: Likewise.
2465 * ppcobsd-tdep.c: Likewise.
2466 * printcmd.c: Likewise.
2467 * procfs.c: Likewise.
2468 * prologue-value.c: Likewise.
2469 * python/py-auto-load.c: Likewise.
2470 * python/py-gdb-readline.c: Likewise.
2471 * ravenscar-thread.c: Likewise.
2472 * regcache.c: Likewise.
2473 * registry.c: Likewise.
2474 * remote-fileio.c: Likewise.
2475 * remote-m32r-sdi.c: Likewise.
2476 * remote-mips.c: Likewise.
2477 * remote-notif.c: Likewise.
2478 * remote-sim.c: Likewise.
2479 * remote.c: Likewise.
2480 * reverse.c: Likewise.
2481 * rs6000-aix-tdep.c: Likewise.
2482 * ser-base.c: Likewise.
2483 * ser-go32.c: Likewise.
2484 * ser-mingw.c: Likewise.
2485 * ser-pipe.c: Likewise.
2486 * ser-tcp.c: Likewise.
2487 * ser-unix.c: Likewise.
2488 * serial.c: Likewise.
2489 * sh-tdep.c: Likewise.
2490 * sh64-tdep.c: Likewise.
2491 * shnbsd-tdep.c: Likewise.
2493 * sol-thread.c: Likewise.
2494 * solib-dsbt.c: Likewise.
2495 * solib-frv.c: Likewise.
2496 * solib-osf.c: Likewise.
2497 * solib-som.c: Likewise.
2498 * solib-spu.c: Likewise.
2499 * solib-target.c: Likewise.
2500 * solib.c: Likewise.
2501 * somread.c: Likewise.
2502 * source.c: Likewise.
2503 * sparc-nat.c: Likewise.
2504 * sparc-sol2-tdep.c: Likewise.
2505 * sparc-tdep.c: Likewise.
2506 * sparc64-tdep.c: Likewise.
2507 * sparc64fbsd-tdep.c: Likewise.
2508 * sparc64nbsd-tdep.c: Likewise.
2509 * sparcnbsd-tdep.c: Likewise.
2510 * spu-linux-nat.c: Likewise.
2511 * spu-multiarch.c: Likewise.
2512 * spu-tdep.c: Likewise.
2513 * stabsread.c: Likewise.
2514 * stack.c: Likewise.
2515 * std-regs.c: Likewise.
2516 * symfile.c: Likewise.
2517 * symmisc.c: Likewise.
2518 * symtab.c: Likewise.
2519 * target.c: Likewise.
2520 * thread.c: Likewise.
2521 * tilegx-linux-nat.c: Likewise.
2522 * tilegx-tdep.c: Likewise.
2524 * tracepoint.c: Likewise.
2525 * tui/tui-command.c: Likewise.
2526 * tui/tui-data.c: Likewise.
2527 * tui/tui-disasm.c: Likewise.
2528 * tui/tui-file.c: Likewise.
2529 * tui/tui-layout.c: Likewise.
2530 * tui/tui-out.c: Likewise.
2531 * tui/tui-regs.c: Likewise.
2532 * tui/tui-source.c: Likewise.
2533 * tui/tui-stack.c: Likewise.
2534 * tui/tui-win.c: Likewise.
2535 * tui/tui-windata.c: Likewise.
2536 * tui/tui-winsource.c: Likewise.
2537 * typeprint.c: Likewise.
2538 * ui-file.c: Likewise.
2539 * ui-out.c: Likewise.
2540 * user-regs.c: Likewise.
2541 * utils.c: Likewise.
2542 * v850-tdep.c: Likewise.
2543 * valarith.c: Likewise.
2544 * valops.c: Likewise.
2545 * valprint.c: Likewise.
2546 * value.c: Likewise.
2547 * varobj.c: Likewise.
2548 * vax-tdep.c: Likewise.
2549 * vaxnbsd-tdep.c: Likewise.
2550 * vaxobsd-tdep.c: Likewise.
2551 * windows-nat.c: Likewise.
2552 * xcoffread.c: Likewise.
2553 * xml-support.c: Likewise.
2554 * xstormy16-tdep.c: Likewise.
2555 * xtensa-linux-nat.c: Likewise.
2557 2014-08-07 Gary Benson <gbenson@redhat.com>
2559 * common/common-defs.h: Include gdb_assert.h.
2560 * aarch64-tdep.c: Do not include gdb_assert.h.
2561 * addrmap.c: Likewise.
2562 * aix-thread.c: Likewise.
2563 * alpha-linux-tdep.c: Likewise.
2564 * alpha-mdebug-tdep.c: Likewise.
2565 * alphanbsd-tdep.c: Likewise.
2566 * amd64-nat.c: Likewise.
2567 * amd64-tdep.c: Likewise.
2568 * amd64bsd-nat.c: Likewise.
2569 * amd64fbsd-nat.c: Likewise.
2570 * amd64fbsd-tdep.c: Likewise.
2571 * amd64nbsd-nat.c: Likewise.
2572 * amd64nbsd-tdep.c: Likewise.
2573 * amd64obsd-nat.c: Likewise.
2574 * amd64obsd-tdep.c: Likewise.
2575 * arch-utils.c: Likewise.
2576 * arm-tdep.c: Likewise.
2577 * armbsd-tdep.c: Likewise.
2579 * bcache.c: Likewise.
2580 * bfin-tdep.c: Likewise.
2581 * blockframe.c: Likewise.
2582 * breakpoint.c: Likewise.
2583 * bsd-kvm.c: Likewise.
2584 * bsd-uthread.c: Likewise.
2585 * buildsym.c: Likewise.
2586 * c-exp.y: Likewise.
2587 * c-lang.c: Likewise.
2588 * charset.c: Likewise.
2589 * cleanups.c: Likewise.
2590 * cli-out.c: Likewise.
2591 * cli/cli-decode.c: Likewise.
2592 * cli/cli-dump.c: Likewise.
2593 * cli/cli-logging.c: Likewise.
2594 * cli/cli-script.c: Likewise.
2595 * cli/cli-utils.c: Likewise.
2596 * coffread.c: Likewise.
2597 * common/common-utils.c: Likewise.
2598 * common/queue.h: Likewise.
2599 * common/signals.c: Likewise.
2600 * common/vec.h: Likewise.
2601 * complaints.c: Likewise.
2602 * completer.c: Likewise.
2603 * corelow.c: Likewise.
2604 * cp-abi.c: Likewise.
2605 * cp-name-parser.y: Likewise.
2606 * cp-namespace.c: Likewise.
2607 * cp-support.c: Likewise.
2608 * cris-tdep.c: Likewise.
2609 * dbxread.c: Likewise.
2610 * dictionary.c: Likewise.
2611 * doublest.c: Likewise.
2612 * dsrec.c: Likewise.
2613 * dummy-frame.c: Likewise.
2614 * dwarf2-frame-tailcall.c: Likewise.
2615 * dwarf2-frame.c: Likewise.
2616 * dwarf2expr.c: Likewise.
2617 * dwarf2loc.c: Likewise.
2618 * dwarf2read.c: Likewise.
2620 * event-loop.c: Likewise.
2621 * exceptions.c: Likewise.
2622 * expprint.c: Likewise.
2623 * f-valprint.c: Likewise.
2624 * fbsd-nat.c: Likewise.
2625 * findvar.c: Likewise.
2626 * frame-unwind.c: Likewise.
2627 * frame.c: Likewise.
2628 * frv-tdep.c: Likewise.
2629 * gcore.c: Likewise.
2630 * gdb-dlfcn.c: Likewise.
2631 * gdb_bfd.c: Likewise.
2632 * gdbarch.c: Likewise.
2633 * gdbarch.sh: Likewise.
2634 * gdbtypes.c: Likewise.
2635 * gnu-nat.c: Likewise.
2636 * gnu-v3-abi.c: Likewise.
2637 * go-lang.c: Likewise.
2638 * guile/scm-exception.c: Likewise.
2639 * guile/scm-gsmob.c: Likewise.
2640 * guile/scm-lazy-string.c: Likewise.
2641 * guile/scm-math.c: Likewise.
2642 * guile/scm-pretty-print.c: Likewise.
2643 * guile/scm-safe-call.c: Likewise.
2644 * guile/scm-utils.c: Likewise.
2645 * guile/scm-value.c: Likewise.
2646 * h8300-tdep.c: Likewise.
2647 * hppa-hpux-nat.c: Likewise.
2648 * hppa-tdep.c: Likewise.
2649 * hppanbsd-tdep.c: Likewise.
2650 * hppaobsd-tdep.c: Likewise.
2651 * i386-darwin-nat.c: Likewise.
2652 * i386-darwin-tdep.c: Likewise.
2653 * i386-nto-tdep.c: Likewise.
2654 * i386-tdep.c: Likewise.
2655 * i386bsd-nat.c: Likewise.
2656 * i386fbsd-tdep.c: Likewise.
2657 * i386gnu-nat.c: Likewise.
2658 * i386nbsd-tdep.c: Likewise.
2659 * i386obsd-tdep.c: Likewise.
2660 * i387-tdep.c: Likewise.
2661 * ia64-libunwind-tdep.c: Likewise.
2662 * ia64-tdep.c: Likewise.
2663 * inf-ptrace.c: Likewise.
2664 * inf-ttrace.c: Likewise.
2665 * infcall.c: Likewise.
2666 * infcmd.c: Likewise.
2667 * infrun.c: Likewise.
2668 * inline-frame.c: Likewise.
2669 * interps.c: Likewise.
2670 * jv-lang.c: Likewise.
2671 * jv-typeprint.c: Likewise.
2672 * linux-fork.c: Likewise.
2673 * linux-nat.c: Likewise.
2674 * linux-thread-db.c: Likewise.
2675 * m32c-tdep.c: Likewise.
2676 * m32r-linux-nat.c: Likewise.
2677 * m32r-tdep.c: Likewise.
2678 * m68k-tdep.c: Likewise.
2679 * m68kbsd-nat.c: Likewise.
2680 * m68kbsd-tdep.c: Likewise.
2681 * m88k-tdep.c: Likewise.
2682 * machoread.c: Likewise.
2683 * macroexp.c: Likewise.
2684 * macrotab.c: Likewise.
2685 * maint.c: Likewise.
2686 * mdebugread.c: Likewise.
2687 * memory-map.c: Likewise.
2688 * mep-tdep.c: Likewise.
2689 * mi/mi-common.c: Likewise.
2690 * microblaze-tdep.c: Likewise.
2691 * mingw-hdep.c: Likewise.
2692 * mips-linux-nat.c: Likewise.
2693 * mips-linux-tdep.c: Likewise.
2694 * mips-tdep.c: Likewise.
2695 * mips64obsd-tdep.c: Likewise.
2696 * mipsnbsd-tdep.c: Likewise.
2697 * mn10300-linux-tdep.c: Likewise.
2698 * mn10300-tdep.c: Likewise.
2699 * moxie-tdep.c: Likewise.
2700 * mt-tdep.c: Likewise.
2701 * nat/linux-btrace.c: Likewise.
2702 * nat/linux-osdata.c: Likewise.
2703 * nat/linux-ptrace.c: Likewise.
2704 * nat/mips-linux-watch.c: Likewise.
2705 * nios2-linux-tdep.c: Likewise.
2706 * nios2-tdep.c: Likewise.
2707 * objc-lang.c: Likewise.
2708 * objfiles.c: Likewise.
2709 * obsd-nat.c: Likewise.
2710 * opencl-lang.c: Likewise.
2711 * osabi.c: Likewise.
2712 * parse.c: Likewise.
2713 * ppc-linux-nat.c: Likewise.
2714 * ppc-sysv-tdep.c: Likewise.
2715 * ppcfbsd-nat.c: Likewise.
2716 * ppcfbsd-tdep.c: Likewise.
2717 * ppcnbsd-nat.c: Likewise.
2718 * ppcnbsd-tdep.c: Likewise.
2719 * ppcobsd-nat.c: Likewise.
2720 * ppcobsd-tdep.c: Likewise.
2721 * printcmd.c: Likewise.
2722 * procfs.c: Likewise.
2723 * prologue-value.c: Likewise.
2724 * psymtab.c: Likewise.
2725 * python/py-lazy-string.c: Likewise.
2726 * python/py-value.c: Likewise.
2727 * regcache.c: Likewise.
2728 * reggroups.c: Likewise.
2729 * registry.c: Likewise.
2730 * remote-sim.c: Likewise.
2731 * remote.c: Likewise.
2732 * rs6000-aix-tdep.c: Likewise.
2733 * rs6000-tdep.c: Likewise.
2734 * s390-linux-tdep.c: Likewise.
2735 * score-tdep.c: Likewise.
2736 * ser-base.c: Likewise.
2737 * ser-mingw.c: Likewise.
2738 * sh-tdep.c: Likewise.
2739 * sh64-tdep.c: Likewise.
2740 * solib-darwin.c: Likewise.
2741 * solib-spu.c: Likewise.
2742 * solib-svr4.c: Likewise.
2743 * source.c: Likewise.
2744 * sparc-nat.c: Likewise.
2745 * sparc-sol2-tdep.c: Likewise.
2746 * sparc-tdep.c: Likewise.
2747 * sparc64-sol2-tdep.c: Likewise.
2748 * sparc64-tdep.c: Likewise.
2749 * sparc64fbsd-tdep.c: Likewise.
2750 * sparc64nbsd-tdep.c: Likewise.
2751 * sparc64obsd-tdep.c: Likewise.
2752 * sparcnbsd-tdep.c: Likewise.
2753 * sparcobsd-tdep.c: Likewise.
2754 * spu-multiarch.c: Likewise.
2755 * spu-tdep.c: Likewise.
2756 * stabsread.c: Likewise.
2757 * stack.c: Likewise.
2758 * symfile.c: Likewise.
2759 * symtab.c: Likewise.
2760 * target-descriptions.c: Likewise.
2761 * target-memory.c: Likewise.
2762 * target.c: Likewise.
2763 * tic6x-linux-tdep.c: Likewise.
2764 * tic6x-tdep.c: Likewise.
2765 * tilegx-linux-nat.c: Likewise.
2766 * tilegx-tdep.c: Likewise.
2768 * tramp-frame.c: Likewise.
2769 * tui/tui-out.c: Likewise.
2770 * tui/tui-winsource.c: Likewise.
2771 * ui-out.c: Likewise.
2772 * user-regs.c: Likewise.
2773 * utils.c: Likewise.
2774 * v850-tdep.c: Likewise.
2775 * valops.c: Likewise.
2776 * value.c: Likewise.
2777 * varobj.c: Likewise.
2778 * vax-nat.c: Likewise.
2779 * xml-syscall.c: Likewise.
2780 * xml-tdesc.c: Likewise.
2781 * xstormy16-tdep.c: Likewise.
2782 * xtensa-linux-nat.c: Likewise.
2783 * xtensa-tdep.c: Likewise.
2785 2014-08-07 Gary Benson <gbenson@redhat.com>
2787 * common/common-defs.h: Include common-utils.h.
2788 * defs.h: Do not include common-utils.h.
2789 * common/gdb_assert.h: Likewise.
2790 * darwin-nat.h: Likewise.
2791 * nat/linux-btrace.c: Likewise.
2792 * target/waitstatus.h: Likewise.
2794 2014-08-07 Gary Benson <gbenson@redhat.com>
2796 * common/common-defs.h: Include ptid.h.
2797 * defs.h: Do not include ptid.h.
2798 * inferior.h: Likewise.
2799 * infrun.h: Likewise.
2800 * nat/linux-btrace.h: Likewise.
2801 * nat/linux-osdata.h: Likewise.
2802 * target/waitstatus.h: Likewise.
2804 2014-08-07 Gary Benson <gbenson@redhat.com>
2806 * common/common-defs.h: Include gdb_locale.h.
2807 * defs.h: Do not include gdb_locale.h.
2809 2014-08-07 Gary Benson <gbenson@redhat.com>
2811 * common/common-defs.h: Include gdb/signals.h.
2812 * defs.h: Do not include gdb/signals.h.
2814 2014-08-07 Gary Benson <gbenson@redhat.com>
2816 * common/common-defs.h: Include pathmax.h.
2817 * defs.h: Do not include pathmax.h.
2819 2014-08-07 Gary Benson <gbenson@redhat.com>
2821 * common/common-defs.h: Include libiberty.h.
2822 * defs.h: Do not include libiberty.h.
2823 * common/queue.h: Likewise.
2824 * cp-name-parser.y: Likewise.
2825 * mi/mi-cmd-catch.c: Likewise.
2826 * python/python.c: Likewise.
2828 2014-08-07 Gary Benson <gbenson@redhat.com>
2830 * common/common-defs.h: Include ansidecl.h.
2831 * defs.h: Do not include ansidecl.h.
2832 * common/buffer.h: Likewise.
2833 * common/common-utils.h: Likewise.
2835 2014-08-07 Gary Benson <gbenson@redhat.com>
2837 * common/common-defs.h: Include stddef.h.
2838 * defs.h: Do not include stddef.h.
2839 * common/common-utils.h: Likewise.
2840 * amd64fbsd-nat.c: Likewise.
2841 * bcache.c: Likewise.
2842 * charset.c: Likewise.
2843 * common/buffer.h: Likewise.
2844 * common/vec.h: Likewise.
2845 * i386bsd-nat.c: Likewise.
2846 * nat/linux-btrace.h: Likewise.
2847 * ppcfbsd-nat.c: Likewise.
2848 * ppcnbsd-tdep.h: Likewise.
2849 * ppcobsd-nat.c: Likewise.
2850 * ppcobsd-tdep.h: Likewise.
2851 * python/py-gdb-readline.c: Likewise.
2853 2014-08-07 Gary Benson <gbenson@redhat.com>
2855 * common/common-defs.h: Include stdarg.h.
2856 * defs.h: Do not include stdarg.h.
2857 * ada-lang.c: Likewise.
2858 * common/common-utils.h: Likewise.
2859 * guile/scm-string.c: Likewise.
2860 * guile/scm-utils.c: Likewise.
2861 * m32c-tdep.c: Likewise.
2863 2014-08-07 Gary Benson <gbenson@redhat.com>
2865 * common/common-defs.h: Include stdlib.h.
2866 * defs.h: Do not include stdlib.h.
2867 * addrmap.c: Likewise.
2868 * bcache.c: Likewise.
2869 * common/buffer.c: Likewise.
2870 * common/common-utils.c: Likewise.
2871 * cp-name-parser.y: Likewise.
2872 * go32-nat.c: Likewise.
2873 * mn10300-linux-tdep.c: Likewise.
2874 * nat/linux-osdata.c: Likewise.
2875 * tui/tui.c: Likewise.
2876 * windows-nat.c: Likewise.
2878 2014-08-07 Gary Benson <gbenson@redhat.com>
2880 * common/common-defs.h: Include stdio.h.
2881 * defs.h: Do not include stdio.h.
2882 * ada-lang.c: Likewise.
2883 * common/buffer.c: Likewise.
2884 * common/common-utils.c: Likewise.
2885 * cp-name-parser.y: Likewise.
2886 * gnu-nat.c: Likewise.
2887 * go32-nat.c: Likewise.
2888 * i386gnu-nat.c: Likewise.
2889 * proc-api.c: Likewise.
2890 * proc-events.c: Likewise.
2891 * proc-flags.c: Likewise.
2892 * proc-why.c: Likewise.
2893 * python/python-internal.h: Likewise.
2894 * target-memory.c: Likewise.
2895 * tui/tui-io.c: Likewise.
2896 * tui/tui.c: Likewise.
2898 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2900 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2901 (scan_dyntag_auxv): Same.
2903 2014-08-06 Yao Qi <yao@codesourcery.com>
2905 * amd64-linux-nat.c: Remove duplicated include
2907 * i386-linux-nat.c: Likewise.
2909 2014-08-06 Yao Qi <yao@codesourcery.com>
2911 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2912 operand" with "Special opcode" in comments.
2914 2014-08-05 Gary Benson <gbenson@redhat.com>
2916 * interps.c (initialize_interps): Remove prototype.
2917 (interpreter_initialized): Remove static global.
2918 (interp_add): Do not call initialize_interps.
2919 (initialize_interps): Remove function.
2921 2014-08-05 Gary Benson <gbenson@redhat.com>
2923 * utils.c (vwarning): Remove spurious va_end.
2925 2014-08-05 Alan Modra <amodra@gmail.com>
2927 * charset.c (convert_between_encodings): Cast result of obstack_base.
2928 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2929 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2930 (read_unwind_info): Use size_t for some locals.
2931 * jit.c (finalize_symtab): Likewise.
2932 * utils.c (hashtab_obstack_allocate): Likewise.
2933 * symmisc.c (print_objfile_statistics): Update format strings.
2935 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2937 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2938 (Changes in GDB 7.8): ... here.
2940 2014-08-04 Tom Tromey <tromey@redhat.com>
2942 * target.c (set_targetdebug): New function.
2943 (initialize_targets): Pass set_targetdebug when creating "set
2946 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2948 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2949 if detecting a variable-sized field that is not the last field.
2950 Fix struct type length computation.
2952 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2954 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2957 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2959 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2960 Remove "+ 8" offset in computation of CHAIN_VMA.
2962 2014-07-31 Doug Evans <dje@google.com>
2964 * inflow.c (child_terminal_inferior): Add comment.
2965 (child_terminal_ours_for_output): Add comment.
2966 (child_terminal_ours): Add comment.
2967 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2968 (linux_nat_terminal_ours): Add comment.
2970 2014-07-31 Gary Benson <gbenson@redhat.com>
2972 * common/btrace-common.h: Do not include defs.h or server.h.
2973 * nat/mips-linux-watch.h: Likewise.
2974 * gdb-dlfcn.h: Do not include defs.h.
2975 * tracefile.h: Likewise.
2977 2014-07-30 Roland McGrath <mcgrathr@google.com>
2979 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2981 2014-07-30 Tom Tromey <tromey@redhat.com>
2983 * bsd-kvm.c (bsd_kvm_open): Constify.
2984 * corelow.c (core_open): Constify.
2985 * ctf.c (ctf_open): Constify.
2986 * dbug-rom.c (dbug_open): Constify.
2987 * exec.c (exec_open): Constify.
2988 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2989 * microblaze-rom.c (picobug_open): Constify.
2990 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2992 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2993 * record-btrace.c (record_btrace_open): Constify.
2994 * record-full.c (record_full_core_open_1, record_full_open_1)
2995 (record_full_open): Constify.
2996 * remote-m32r-sdi.c (m32r_open): Constify.
2997 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2998 (rockhopper_open, lsi_open): Constify.
2999 * remote-sim.c (gdbsim_open): Constify.
3000 * remote.c (remote_open, extended_remote_open, remote_open_1):
3002 * target.h (struct target_ops) <to_open>: Make "arg" const.
3003 * tracefile-tfile.c (tfile_open): Constify.
3005 2014-07-30 Tom Tromey <tromey@redhat.com>
3007 * breakpoint.c (map_breakpoint_numbers): Update.
3008 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3009 (get_number_const): New function.
3010 (get_number): Rewrite using get_number_const.
3011 (init_number_or_range): Make "string" const.
3012 (number_is_in_list): Make "list" const.
3013 * cli/cli-utils.h (get_number_const): Declare.
3014 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3015 (init_number_or_range, number_is_in_list): Update.
3016 * printcmd.c (map_display_numbers): Update.
3017 * value.c (value_from_history_ref): Constify.
3018 * value.h (value_from_history_ref): Update.
3020 2014-07-30 Tom Tromey <tromey@redhat.com>
3022 * corefile.c (hook_type, call_extra_exec_file_hooks)
3023 (specify_exec_file_hook): Constify.
3024 * exec.c (exec_file_attach): Make "filename" const.
3025 * gdbcore.h (deprecated_exec_file_display_hook)
3026 (specify_exec_file_hook, exec_file_attach): Constify.
3027 * main.c (captured_main): Use catch_command_errors_const.
3029 2014-07-30 Tom Tromey <tromey@redhat.com>
3031 * target.c (open_target): New function.
3032 (add_target_with_completer, add_deprecated_target_alias): Use
3033 set_cmd_sfunc, set_cmd_context.
3034 (debug_to_open): Remove.
3035 (setup_target_debug): Update.
3037 2014-07-30 Yao Qi <yao@codesourcery.com>
3039 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3041 * parse.c (exp_iterate): Update comments.
3043 2014-07-30 Gary Benson <gbenson@redhat.com>
3045 * common/common-defs.h: New file.
3046 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3047 * defs.h: Include common-defs.h.
3048 Do not include config.h or build-gnulib/config.h.
3050 2014-07-30 Gary Benson <gbenson@redhat.com>
3052 * common/common-utils.h: Do not include config.h.
3053 * nat/linux-btrace.h: Likewise.
3055 2014-07-30 Gary Benson <gbenson@redhat.com>
3057 * btrace.c: Include defs.h.
3058 * common/ptid.c: Include defs.h or server.h as appropriate.
3059 * nat/mips-linux-watch.c: Likewise.
3061 2014-07-29 Tom Tromey <tromey@redhat.com>
3063 * target.c (target_is_pushed): Simplify.
3065 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3069 2014-07-29 Yao Qi <yao@codesourcery.com>
3072 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3074 2014-07-28 Doug Evans <xdje42@gmail.com>
3077 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3078 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3081 2014-07-28 Will Newton <will.newton@linaro.org>
3083 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3084 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3085 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3086 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3087 (THUMB2_EABI_SYSCALL): Likewise.
3088 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3090 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3091 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3093 2014-07-27 Doug Evans <xdje42@gmail.com>
3095 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3097 2014-07-27 Doug Evans <xdje42@gmail.com>
3099 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3101 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3102 Doug Evans <xdje42@gmail.com>
3105 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3106 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3107 * configure.ac: Try to use guild to compile an scm file, if it fails
3108 then disable guile support.
3109 * configure: Regenerate.
3110 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3112 (GUILE_COMPILED_FILES): New variable.
3113 (GUILE_FILES) Update.
3114 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3115 (stamp-guile): Compile scm files.
3116 * guile/guile.c (boot_guile_support): New function.
3117 (standard_throw_args_p): New function.
3118 (print_standard_throw_error, print_throw_error): New functions.
3119 (handle_boot_error): New function.
3120 (initialize_scheme_side): Rewrite to call boot_guile_support.
3121 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3122 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3124 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3125 Doug Evans <xdje42@gmail.com>
3128 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3129 * guile/lib/gdb/support.scm: New file.
3130 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3131 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3133 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3135 (%assert-type): Ditto, and renamed to assert-type.
3136 (%exception-print-style): Delete.
3138 2014-07-26 Doug Evans <xdje42@gmail.com>
3141 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3142 * configure: Regenerate.
3143 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3145 (PYTHON_FILES): New variable.
3146 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3147 (GUILE_FILES): New variable.
3148 (stamp-python, install-python, uninstall-python): Handle empty
3150 (stamp-guile, install-guile, uninstall-guile): Ditto.
3152 2014-07-26 Doug Evans <xdje42@gmail.com>
3155 * guile/lib/gdb.scm (pretty-printers): Export.
3156 (set-pretty-printers!): Export.
3157 * guile/lib/gdb/printing.scm (gdb module): Update.
3158 (prepend-pretty-printer!, append-pretty-printer!): Update.
3159 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3160 (pretty_printer_list_var): Delete.
3161 (pretty_printer_list): New static global.
3162 (gdbscm_pretty_printers): New function.
3163 (gdbscm_set_pretty_printers_x): New function.
3164 (ppscm_find_pretty_printer_from_gdb): Update.
3165 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3166 (gdbscm_initialize_pretty_printers): Update.
3168 2014-07-26 Doug Evans <xdje42@gmail.com>
3171 * configure.ac: Add check for header gc/gc.h.
3172 Add check for function setenv.
3173 * configure: Regenerate.
3174 * config.in: Regenerate.
3175 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3177 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3179 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3180 variation in gdbarch matching.
3182 2014-07-25 Tom Tromey <tromey@redhat.com>
3184 * exec.c (using_exec_ops): Remove.
3185 (exec_close_1): Update. Remove extraneous block, reindent.
3186 (add_target_sections): Use target_is_pushed.
3188 2014-07-25 Pedro Alves <palves@redhat.com>
3190 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3191 * monitor.c (monitor_create_inferior): Likewise.
3192 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3193 * remote-sim.c (gdbsim_create_inferior): Likewise.
3194 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3195 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3196 * windows-nat.c (do_initial_windows_stuff): Likewise.
3198 2014-07-25 Pedro Alves <palves@redhat.com>
3200 * NEWS: Mention signal passing and "signal" command changes.
3201 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3203 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3205 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3206 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3207 (jump_command): Adjust clear_proceed_status call.
3208 (signal_command): Warn if other thread that are resumed have
3209 signals that will be delivered. Adjust clear_proceed_status call.
3210 (until_next_command, finish_command)
3211 (proceed_after_attach_callback, attach_command_post_wait)
3212 (attach_command): Adjust clear_proceed_status call.
3213 * infrun.c (proceed_after_vfork_done): Likewise.
3214 (proceed_after_attach_callback): Adjust comment.
3215 (clear_proceed_status_thread): Clear stop_signal if not in pass
3217 (clear_proceed_status_callback): Delete.
3218 (clear_proceed_status): New 'step' parameter. Only clear the
3219 proceed status of threads the command being prepared is about to
3221 (proceed): If passed in an explicit signal, override stop_signal
3222 with it. Don't pass the last stop signal to the thread we're
3224 (init_wait_for_inferior): Adjust clear_proceed_status call.
3225 (switch_back_to_stepped_thread): Clear the signal if it should not
3227 * infrun.h (clear_proceed_status): New 'step' parameter.
3228 (user_visible_resume_ptid): Add comment.
3229 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3230 signal is in pass state.
3231 * remote.c (append_pending_thread_resumptions): Likewise.
3232 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3234 2014-07-25 Tom Tromey <tromey@redhat.com>
3236 * target.h (target_stopped_data_address)
3237 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3240 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3242 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3244 (avr_pointer_to_address): Likewise.
3246 2014-07-24 Tom Tromey <tromey@redhat.com>
3248 * monitor.c (compile_pattern): Update.
3249 * target.h (struct target_ops) <to_shortname, to_longname,
3252 2014-07-24 Tom Tromey <tromey@redhat.com>
3254 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3255 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3256 (add_info_alias, add_com): Make "doc" const.
3257 (print_doc_line): Make "str" const.
3258 (delete_cmd): Update.
3259 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3260 (print_doc_line): Update.
3261 * cli/cli-script.c (document_command): Update.
3262 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3263 (add_com, add_info, add_info_alias): Update.
3264 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3265 * python/py-cmd.c (cmdpy_destroyer): Update.
3267 2014-07-24 Tom Tromey <tromey@redhat.com>
3269 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3270 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3271 (help_cmd_list): Constify.
3272 (lookup_cmd): Update.
3273 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3275 (help_cmd_list, apropos_cmd): Update.
3276 * cli/cli-script.c (show_user): Update.
3277 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3278 * cli/cli-setshow.h (cmd_show_list): Update.
3279 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3280 (cmd_show_list): Update.
3281 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3282 * python/py-cmd.c (cmdpy_destroyer): Update.
3284 2014-07-24 Tom Tromey <tromey@redhat.com>
3286 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3287 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3289 * command.h (deprecate_cmd): Update.
3290 * maint.c (maintenance_do_deprecate): Add casts.
3292 2014-07-24 Tom Tromey <tromey@redhat.com>
3294 * cli/cli-decode.c (help_cmd): Make parameter "const".
3295 * cli/cli-decode.h (help_cmd): Update.
3297 2014-07-24 Tom Tromey <tromey@redhat.com>
3299 * stack.c (up_silently_base, down_silently_base): Make argument
3302 2014-07-24 Tom Tromey <tromey@redhat.com>
3304 * solib.c (solib_add): Make "pattern" const.
3305 * solib.h (solib_add): Update.
3307 2014-07-24 Tom Tromey <tromey@redhat.com>
3309 * remote.c (remote_serial_open, print_packet, putpkt)
3310 (putpkt_binary): Constify.
3311 * remote.h (putpkt): Update.
3313 2014-07-24 Tom Tromey <tromey@redhat.com>
3315 * monitor.c (monitor_open): Make "args" const.
3316 * monitor.h (monitor_open): Update.
3318 2014-07-24 Tom Tromey <tromey@redhat.com>
3320 * maint.c (match_bfd_flags): Make "string" const.
3321 (print_bfd_section_info): Remove casts.
3322 (print_objfile_section_info): Make "string" const.
3324 2014-07-24 Tom Tromey <tromey@redhat.com>
3326 * inf-child.c (inf_child_open_target): Make "arg" const.
3327 * inf-child.h (inf_child_open_target): Update.
3329 2014-07-24 Tom Tromey <tromey@redhat.com>
3331 * environ.c (unset_in_environ): Make "var" const.
3332 * environ.h (unset_in_environ): Update.
3334 2014-07-24 Tom Tromey <tromey@redhat.com>
3336 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3338 (scan_filename_with_cleanup): Likewise.
3339 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3340 Make arguments const.
3341 (restore_command): Update.
3343 2014-07-24 Pedro Alves <palves@redhat.com>
3345 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3347 2014-07-24 Tom Tromey <tromey@redhat.com>
3348 Gary Benson <gbenson@redhat.com>
3350 * nat/linux-ptrace.c (additional_flags): New global.
3351 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3352 additional_flags; don't check GDBSERVER.
3353 (linux_ptrace_set_additional_flags): New function.
3354 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3356 * linux-nat.c (_initialize_linux_nat): Call
3357 linux_ptrace_set_additional_flags.
3359 2014-07-24 Tom Tromey <tromey@redhat.com>
3361 * make-target-delegates (munge_type, write_debugmethod): New
3363 (debug_names): New global.
3364 ($TARGET_DEBUG_PRINTER): New global.
3365 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3367 Write debug methods. Generate init_debug_target.
3368 * target-debug.h: New file.
3369 * target-delegates.c: Rebuild.
3370 * target.c: Include target-debug.h.
3371 (debug_target): Hoist definition.
3372 (target_kill, target_get_section_table, target_memory_map)
3373 (target_flash_erase, target_flash_done, target_detach)
3374 (target_disconnect, target_wait, target_resume)
3375 (target_pass_signals, target_program_signals, target_follow_fork)
3376 (target_mourn_inferior, target_search_memory)
3377 (target_thread_address_space, target_close)
3378 (target_find_new_threads, target_core_of_thread)
3379 (target_verify_memory, target_insert_mask_watchpoint)
3380 (target_remove_mask_watchpoint): Remove targetdebug code.
3381 (debug_to_post_attach, debug_to_prepare_to_store)
3382 (debug_to_files_info, debug_to_insert_breakpoint)
3383 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3384 (debug_to_region_ok_for_hw_watchpoint)
3385 (debug_to_can_accel_watchpoint_condition)
3386 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3387 (debug_to_watchpoint_addr_within_range)
3388 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3389 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3390 (debug_to_terminal_init, debug_to_terminal_inferior)
3391 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3392 (debug_to_terminal_save_ours, debug_to_terminal_info)
3393 (debug_to_load, debug_to_post_startup_inferior)
3394 (debug_to_insert_fork_catchpoint)
3395 (debug_to_remove_fork_catchpoint)
3396 (debug_to_insert_vfork_catchpoint)
3397 (debug_to_remove_vfork_catchpoint)
3398 (debug_to_insert_exec_catchpoint)
3399 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3400 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3401 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3402 (setup_target_debug): Call init_debug_target.
3403 * target.h (TARGET_DEBUG_PRINTER): New macro.
3404 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3405 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3407 2014-07-24 Gary Benson <gbenson@redhat.com>
3409 * exceptions.h (throw_vfatal): Renamed to...
3410 (throw_vquit): New declaration.
3411 (throw_quit): Likewise.
3412 * exceptions.c (throw_vfatal): Renamed to...
3413 (throw_vquit): New function.
3414 (throw_quit): Likewise.
3415 (throw_error): Call throw_verror rather than throw_it.
3416 * utils.h (vfatal): Removed.
3418 * utils.c (vfatal): Removed.
3420 (internal_verror): Replaced call to fatal with call to throw_quit.
3421 (quit): Replaced calls to fatal with calls to throw_quit.
3423 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3425 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3428 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3430 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3431 less than zero in conditional expression.
3433 2014-07-23 Tom Tromey <tromey@redhat.com>
3435 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3436 ($INTRO_PART): Don't match whitespace.
3437 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3439 ($METHOD): Add $METHOD_TRAILER.
3441 (scan_target_h): New sub.
3442 Change main loop not to collect state.
3443 * target-delegates.c: Rebuild.
3445 2014-07-23 Gary Benson <gbenson@redhat.com>
3447 * cp-support.c (gdb_demangle): Fix build on systems without
3450 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3452 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3453 for reference entry value target data value.
3455 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3457 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3458 value_available_contents_eq.
3460 2014-07-22 Pedro Alves <palves@redhat.com>
3462 * value.c (allocate_optimized_out_value): Don't mark value as
3465 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3467 * MAINTAINERS (Write After Approval): Update my email address.
3469 2014-07-20 Doug Evans <dje@google.com>
3472 * remote.c (putpkt_binary): Add text to error message.
3474 2014-07-20 Yao Qi <yao@codesourcery.com>
3476 * eval.c: Remove "Chill" from comments.
3477 * gdbtypes.h: Likewise.
3478 * symtab.h: Likewise.
3480 2014-07-20 Yao Qi <yao@codesourcery.com>
3482 * std-operator.def: Update comments to TERNOP_SLICE.
3484 2014-07-20 Yao Qi <yao@codesourcery.com>
3486 * std-operator.def: Remove BINOP_RANGE.
3487 * breakpoint.c (watchpoint_exp_is_const): Update.
3488 * expprint.c (dump_subexp_body_standard): Likewise.
3489 * eval.c (init_array_element): Remove dead code.
3490 (evaluate_subexp_standard): Likewise.
3492 2014-07-20 Yao Qi <yao@codesourcery.com>
3494 * std-operator.def: Remove BINOP_IN.
3495 * breakpoint.c (watchpoint_exp_is_const): Update.
3496 * eval.c (evaluate_subexp_standard): Likewise.
3497 * expprint.c (dump_subexp_body_standard): Likewise.
3499 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3501 * microblaze-tdep.c (microblaze_register_names): Add
3502 the rshr and rslr register names.
3503 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3504 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3505 Use of tdesc_numbered_register. Use of
3506 microblaze_register_g_packet_guesses. Use of
3507 tdesc_use_registers. Use of set_gdbarch_register_type.
3508 (microblaze_register_g_packet_guesses): New.
3509 * microblaze-tdep.h (microblaze_reg_num): Add
3510 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3511 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3512 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3513 * features/microblaze-core.xml: New file.
3514 * features/microblaze-stack-protect.xml: New file.
3515 * features/microblaze-with-stack-protect.c: New file.
3516 * features/microblaze-with-stack-protect.xml: New file.
3517 * features/microblaze.xml: New file.
3518 * features/microblaze.c: New file.
3519 * features/Makefile (microblaze-with-stack-protect): Add
3520 microblaze-with-stack-protect microblaze and microblaze-expedite.
3521 * regformats/microblaze-with-stack-protect.dat: New file.
3522 * regformats/microblaze.dat: New file.
3523 * doc/gdb.texinfo (MicroBlaze Features): Added.
3525 2014-07-18 Tom Tromey <tromey@redhat.com>
3527 * exec.c (exec_ops): Now static.
3528 * exec.h (exec_ops): Don't declare.
3530 2014-07-18 Tom Tromey <tromey@redhat.com>
3532 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3533 to find_target_beneath.
3534 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3535 find_target_beneath.
3536 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3538 2014-07-18 Tom Tromey <tromey@redhat.com>
3541 * utils.c (quit): Use target_supports_terminal_ours.
3542 * target.h (target_supports_terminal_ours): Declare.
3543 * target.c (target_supports_delete_record): Don't check
3544 to_delete_record against NULL.
3545 (target_supports_terminal_ours): New function.
3547 2014-07-18 Tom Tromey <tromey@redhat.com>
3550 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3551 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3552 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3553 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3554 * windows-nat.c (windows_xfer_partial): Always delegate.
3555 * record-btrace.c (record_btrace_xfer_partial): Simplify
3557 (record_btrace_fetch_registers, record_btrace_store_registers)
3558 (record_btrace_prepare_to_store, record_btrace_resume)
3559 (record_btrace_wait, record_btrace_find_new_threads)
3560 (record_btrace_thread_alive): Likewise.
3561 * procfs.c (procfs_xfer_partial): Always delegate.
3562 * corelow.c (core_xfer_partial): Always delegate.
3563 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3565 2014-07-18 Tom Tromey <tromey@redhat.com>
3567 * exec.c (exec_make_note_section): Move earlier.
3569 2014-07-17 Doug Evans <dje@google.com>
3572 * maint.c (count_symtabs_and_blocks): Handle NULL
3573 current_program_space.
3574 (report_command_stats): Check global enabled flag in addition to
3575 recorded enabled flag.
3576 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3578 2014-07-16 Pedro Alves <palves@redhat.com>
3580 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3582 2014-07-16 Tom Tromey <tromey@redhat.com>
3584 * target.h (struct target_ops) <to_delete_record>: Reformat
3587 2014-07-16 Tom Tromey <tromey@redhat.com>
3589 * target-delegates.c: Rebuild.
3591 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3593 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3594 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3595 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3596 (avr_pointer_to_address): Likewise.
3597 (avr_address_class_type_flags): New function.
3598 (avr_address_class_type_flags_to_name): Likewise.
3599 (avr_address_class_name_to_type_flags): Likewise.
3600 (avr_gdbarch_init): Set address_class_type_flags,
3601 address_class_type_flags_to_name and
3602 address_class_name_to_type_flags.
3604 2014-07-15 Pedro Alves <palves@redhat.com>
3606 * linux-nat.c (kill_callback): Save errno and work with saved
3609 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3611 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3613 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3615 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3616 breakpoint support correctly.
3618 2014-07-14 Pedro Alves <palves@redhat.com>
3620 * utils.c (prompt_for_continue): Call target_terminal_ours.
3622 2014-07-14 Pedro Alves <palves@redhat.com>
3624 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3625 catch_errors. Don't re-enable stdin or notify observers where,
3627 (fetch_inferior_event_wrapper): Delete.
3629 2014-07-14 Pedro Alves <palves@redhat.com>
3632 * top.c: Include "inf-loop.h".
3633 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3635 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3637 (gdb_readline_wrapper): Store whether the target is async, and
3640 2014-07-14 Pedro Alves <palves@redhat.com>
3643 * top.c (gdb_readline_wrapper_line): Tweak comment.
3644 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3645 the input handler callback.
3647 2014-07-14 Pedro Alves <palves@redhat.com>
3650 * main.c: Include event-top.h.
3651 (handle_command_errors): New function.
3652 (catch_command_errors, catch_command_errors_const): Use it.
3654 2014-07-14 Pedro Alves <palves@redhat.com>
3656 * exceptions.c (catch_command_errors, catch_command_errors_const):
3658 * exceptions.h (catch_command_errors_ftype)
3659 (catch_command_errors_const_ftype): Moved to main.c.
3660 (catch_command_errors, catch_command_errors_const): Delete
3662 * main.c (catch_command_errors_ftype)
3663 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3664 (catch_command_errors, catch_command_errors_const)): Moved here
3665 from exceptions.c and make static.
3667 2014-07-14 Pedro Alves <palves@redhat.com>
3669 * exceptions.c (print_any_exception): Delete.
3670 (catch_exceptions_with_msg): Use exception_print instead of
3671 print_any_exception.
3672 (catch_errors): Use exception_fprintf instead of
3673 print_any_exception.
3674 (catch_command_errors, catch_command_errors_const): Use
3675 exception_print instead of print_any_exception.
3677 2014-07-14 Pedro Alves <palves@redhat.com>
3679 * infcall.c (run_inferior_call): Set 'sync_execution' while
3680 running the inferior call.
3682 2014-07-14 Pedro Alves <palves@redhat.com>
3684 * value.c (value_contents_equal): Delete function.
3685 * value.h (value_contents_equal): Delete declaration.
3687 2014-07-14 Tom Tromey <tromey@redhat.com>
3690 * gdbtypes.c (is_dynamic_type_internal): New function, from
3692 (is_dynamic_type): Rewrite.
3693 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3694 (resolve_dynamic_struct): Likewise.
3695 (resolve_dynamic_type_internal): New function, from
3696 resolve_dynamic_type.
3697 (resolve_dynamic_type): Rewrite.
3699 2014-07-14 Tom Tromey <tromey@redhat.com>
3701 * target.c (target_require_runnable): Also check record_stratum.
3704 2014-07-11 Yao Qi <yao@codesourcery.com>
3706 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3707 thumb_instruction_restores_sp return true.
3709 2014-07-11 Yao Qi <yao@codesourcery.com>
3711 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3712 (thumb_in_function_epilogue_p): Call
3713 thumb_instruction_restores_sp.
3715 2014-07-11 Yao Qi <yao@codesourcery.com>
3717 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3719 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3721 2014-07-11 Gary Benson <gbenson@redhat.com>
3723 * amd64-linux-nat.c (gdbcore.h): Remove include.
3724 (regset.h): Likewise.
3725 (nat/linux-btrace.h): Likewise.
3726 (btrace.h): Likewise.
3727 (gdb_assert.h): Likewise.
3728 (string.h): Likewise.
3729 (sys/uio.h): Likewise.
3730 (sys/debugreg.h): Likewise.
3731 (sys/syscall.h): Likewise.
3732 (sys/procfs.h): Likewise.
3733 (sys/user.h): Likewise.
3734 (asm/ptrace.h): Likewise.
3735 (i386-nat.h): Likewise.
3736 * i386-linux-nat.c (i386-nat.h): Likewise.
3737 (regset.h): Likewise.
3738 (target.h): Likewise.
3739 (linux-nat.h): Likewise.
3740 (nat/linux-btrace.h): Likewise.
3741 (btrace.h): Likewise.
3742 (gdb_assert.h): Likewise.
3743 (string.h): Likewise.
3744 (sys/uio.h): Likewise.
3745 (sys/user.h): Likewise.
3746 (sys/procfs.h): Likewise.
3747 (sys/reg.h): Likewise.
3748 (sys/debugreg.h): Likewise.
3749 (ORIG_EAX): Remove definition.
3751 2014-07-11 Gary Benson <gbenson@redhat.com>
3753 * i386-linux-nat.h: New file.
3754 * x86-linux-nat.h: Likewise.
3755 * x86-linux-nat.c: Likewise.
3756 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3757 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3758 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3759 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3760 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3761 (PTRACE_SETREGSET): Likewise.
3762 (arch_lwp_info): Now in x86-linux-nat.c.
3763 (have_ptrace_getregset): Now in x86-linux-nat.h.
3764 (x86_linux_dr_get): Now in x86-linux-nat.c.
3765 (x86_linux_dr_set): Likewise.
3766 (x86_linux_dr_get_addr): Likewise.
3767 (x86_linux_dr_get_control): Likewise.
3768 (x86_linux_dr_get_status): Likewise.
3769 (update_debug_registers_callback): Likewise.
3770 (x86_linux_dr_set_control): Likewise.
3771 (x86_linux_dr_set_addr): Likewise.
3772 (x86_linux_prepare_to_resume): Likewise.
3773 (x86_linux_new_thread): Likewise.
3774 (x86_linux_new_fork): Likewise.
3775 (x86_linux_get_thread_area): Likewise.
3776 (super_post_startup_inferior): Likewise.
3777 (x86_linux_child_post_startup_inferior): Likewise.
3778 (AMD64_LINUX_USER64_CS): Likewise.
3779 (AMD64_LINUX_X32_DS): Likewise.
3780 (x86_linux_read_description): Likewise.
3781 (x86_linux_enable_btrace): Likewise.
3782 (x86_linux_disable_btrace): Likewise.
3783 (x86_linux_teardown_btrace): Likewise.
3784 (x86_linux_read_btrace): Likewise.
3785 (x86_linux_create_target): Likewise.
3786 (x86_linux_add_target): Likewise.
3787 * i386-linux-nat.c (x86-linux-nat.h): New include.
3788 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3789 (PTRACE_SETREGSET): Likewise.
3790 (arch_lwp_info): Now in x86-linux-nat.c.
3791 (have_ptrace_getregset): Now in x86-linux-nat.h.
3792 (x86_linux_dr_get): Now in x86-linux-nat.c.
3793 (x86_linux_dr_set): Likewise.
3794 (x86_linux_dr_get_addr): Likewise.
3795 (x86_linux_dr_get_control): Likewise.
3796 (x86_linux_dr_get_status): Likewise.
3797 (update_debug_registers_callback): Likewise.
3798 (x86_linux_dr_set_control): Likewise.
3799 (x86_linux_dr_set_addr): Likewise.
3800 (x86_linux_prepare_to_resume): Likewise.
3801 (x86_linux_new_thread): Likewise.
3802 (x86_linux_new_fork): Likewise.
3803 (x86_linux_get_thread_area): Likewise.
3804 (super_post_startup_inferior): Likewise.
3805 (x86_linux_child_post_startup_inferior): Likewise.
3806 (AMD64_LINUX_USER64_CS): Likewise.
3807 (AMD64_LINUX_X32_DS): Likewise.
3808 (x86_linux_read_description): Likewise.
3809 (x86_linux_enable_btrace): Likewise.
3810 (x86_linux_disable_btrace): Likewise.
3811 (x86_linux_teardown_btrace): Likewise.
3812 (x86_linux_read_btrace): Likewise.
3813 (x86_linux_create_target): Likewise.
3814 (x86_linux_add_target): Likewise.
3816 2014-07-11 Gary Benson <gbenson@redhat.com>
3818 * amd64-linux-nat.c: Comment and whitespace changes.
3819 * i386-linux-nat.c: Comment and whitespace changes.
3821 2014-07-11 Gary Benson <gbenson@redhat.com>
3823 * amd64-linux-nat.c (x86_linux_create_target): New function.
3824 (x86_linux_add_target): Likewise.
3825 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3826 * i386-linux-nat.c (x86_linux_create_target): New function.
3827 (x86_linux_add_target): Likewise.
3828 (_initialize_i386_linux_nat): Delegate to the above new functions.
3830 2014-07-11 Gary Benson <gbenson@redhat.com>
3832 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3833 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3834 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3835 (ps_get_thread_area): Delegate to the above.
3837 2014-07-11 Gary Benson <gbenson@redhat.com>
3839 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3840 x86_linux_read_description. All uses updated. amd64-specific
3841 code conditionalized. Conditionalized i386-specific code added.
3842 Redundant cast removed.
3843 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3844 x86_linux_read_description. All uses updated. i386-specific
3845 code conditionalized. Conditionalized amd64-specific code added.
3846 One sizeof replaced with the actual type it is describing.
3848 2014-07-11 Gary Benson <gbenson@redhat.com>
3850 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3851 x86_linux_dr_get. All uses updated.
3852 (amd64_linux_dr_set): Renamed to
3853 x86_linux_dr_set. All uses updated.
3854 (amd64_linux_dr_get_addr): Renamed to
3855 x86_linux_dr_get_addr. All uses updated.
3856 (amd64_linux_dr_get_control): Renamed to
3857 x86_linux_dr_get_control. All uses updated.
3858 (amd64_linux_dr_get_status): Renamed to
3859 x86_linux_dr_get_status. All uses updated.
3860 (amd64_linux_dr_set_control): Renamed to
3861 x86_linux_dr_set_control. All uses updated.
3862 (amd64_linux_dr_set_addr): Renamed to
3863 x86_linux_dr_set_addr. All uses updated.
3864 (amd64_linux_prepare_to_resume): Renamed to
3865 x86_linux_prepare_to_resume. All uses updated.
3866 (amd64_linux_new_thread): Renamed to
3867 x86_linux_new_thread. All uses updated.
3868 (amd64_linux_new_fork): Renamed to
3869 x86_linux_new_fork. All uses updated.
3870 (amd64_linux_child_post_startup_inferior): Renamed to
3871 x86_linux_child_post_startup_inferior. All uses updated.
3872 (amd64_linux_enable_btrace): Renamed to
3873 x86_linux_enable_btrace. All uses updated.
3874 (amd64_linux_disable_btrace): Renamed to
3875 x86_linux_disable_btrace. All uses updated.
3876 (amd64_linux_teardown_btrace): Renamed to
3877 x86_linux_teardown_btrace. All uses updated.
3878 (amd64_linux_read_btrace): Renamed to
3879 x86_linux_read_btrace. All uses updated.
3880 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3881 x86_linux_dr_get. All uses updated.
3882 (i386_linux_dr_set): Renamed to
3883 x86_linux_dr_set. All uses updated.
3884 (i386_linux_dr_get_addr): Renamed to
3885 x86_linux_dr_get_addr. All uses updated.
3886 (i386_linux_dr_get_control): Renamed to
3887 x86_linux_dr_get_control. All uses updated.
3888 (i386_linux_dr_get_status): Renamed to
3889 x86_linux_dr_get_status. All uses updated.
3890 (i386_linux_dr_set_control): Renamed to
3891 x86_linux_dr_set_control. All uses updated.
3892 (i386_linux_dr_set_addr): Renamed to
3893 x86_linux_dr_set_addr. All uses updated.
3894 (i386_linux_prepare_to_resume): Renamed to
3895 x86_linux_prepare_to_resume. All uses updated.
3896 (i386_linux_new_thread): Renamed to
3897 x86_linux_new_thread. All uses updated.
3898 (i386_linux_new_fork): Renamed to
3899 x86_linux_new_fork. All uses updated.
3900 (i386_linux_child_post_startup_inferior): Renamed to
3901 x86_linux_child_post_startup_inferior. All uses updated.
3902 (i386_linux_enable_btrace): Renamed to
3903 x86_linux_enable_btrace. All uses updated.
3904 (i386_linux_disable_btrace): Renamed to
3905 x86_linux_disable_btrace. All uses updated.
3906 (i386_linux_teardown_btrace): Renamed to
3907 x86_linux_teardown_btrace. All uses updated.
3908 (i386_linux_read_btrace): Renamed to
3909 x86_linux_read_btrace. All uses updated.
3911 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3913 * remote.c (extended_remote_post_attach): New function.
3914 (init_extended_remote_ops): Install it as to_post_attach method.
3916 2014-07-09 Pedro Alves <palves@redhat.com>
3918 * infcmd.c (attach_command_post_wait): Don't call
3919 target_terminal_inferior here.
3920 (attach_command): Call it here instead.
3922 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3924 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3926 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3927 from varobj.c, with additional checks.
3928 (c_varobj_ops): Fill in is_path_expr_parent field.
3929 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3930 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3932 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3934 (varobj_default_is_path_expr_parent): New function.
3935 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3936 (varobj_default_is_path_expr_parent): Declare new function.
3938 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3940 * infcmd.c (finish_backward): Turn internal error into normal error.
3942 2014-07-07 Pedro Alves <palves@redhat.com>
3945 * remote.c (async_handle_remote_sigint)
3946 (async_handle_remote_sigint_twice): Call
3947 gdb_call_async_signal_handler instead of
3948 mark_async_signal_handler.
3950 2014-07-07 Tom Tromey <tromey@redhat.com>
3952 * target-delegates.c: Rebuild.
3953 * target.c (target_info_record): Remove.
3954 * record.c (info_record_command): Unconditionally call
3956 * target.h (struct target_ops) <to_info_record>: Use
3957 TARGET_DEFAULT_IGNORE.
3958 (target_info_record): Remove.
3960 2014-07-07 Tom Tromey <tromey@redhat.com>
3962 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3963 TARGET_DEFAULT_NORETURN.
3964 * target.c (generic_tls_error): New function.
3965 (target_translate_tls_address): Don't search target stack.
3966 * target-delegates.c: Rebuild.
3967 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3969 * linux-thread-db.c (thread_db_get_thread_local_address):
3970 Unconditionally call beneath target.
3972 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3974 * cli/cli-logging.c (pop_output_files): Assign targerr to
3977 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3979 * MAINTAINERS (Write After Approval): Update my email address.
3981 2014-07-02 Gary Benson <gbenson@redhat.com>
3983 * proc-service.c (ps_xfer_memory): Update comment.
3984 (ps_pstop): Remove unused function.
3985 (ps_pcontinue): Likewise.
3986 (ps_lstop): Likewise.
3987 (ps_lcontinue): Likewise.
3988 (ps_lgetxregsize): Likewise.
3989 (ps_lgetxregs): Likewise.
3990 (ps_lsetxregs): Likewise.
3991 (ps_plog): Likewise.
3992 (ps_ptread): Likewise.
3993 (ps_ptwrite): Likewise.
3995 2014-07-01 Mark Wielaard <mjw@redhat.com>
3997 * dwarf2read.c (add_array_cv_type): New function.
3998 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3999 (read_tag_volatile_type): Likewise.
4001 2014-07-01 Tom Tromey <tromey@redhat.com>
4003 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4004 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4005 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4006 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4007 * command.h (cmd_cfunc_ftype): Move earlier.
4008 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4009 (add_com, add_info): Use cmd_cfunc_ftype.
4011 2014-06-30 Tom Tromey <tromey@redhat.com>
4013 * symtab.c (operator_chars): Make parameters and return type
4015 (file_matches): Make "files" const.
4016 (struct search_symbols_data) <files>: Now const.
4017 (search_symbols): Make "regexp" and "files" parameters const.
4019 (symtab_symbol_info): Remove cast.
4020 (rbreak_command): Update.
4021 * symtab.h (search_symbols): Update.
4023 2014-06-27 Yao Qi <yao@codesourcery.com>
4025 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4026 Change parameter type to 'struct thread_info *'. Caller
4028 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4030 * dummy-frame.c (struct dummy_frame_id): New.
4031 (dummy_frame_id_eq): New function.
4032 (struct dummy_frame) <id>: Change its type to 'struct
4034 (dummy_frame_push): Add parameter ptid and save it in
4036 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4038 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4040 (lookup_dummy_frame): Change parameter type to 'struct
4041 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4042 instead of frame_id_eq.
4043 (dummy_frame_pop): Add parameter ptid. Callers updated.
4044 Update comments. Compose dummy_frame_id and pass it to
4046 (dummy_frame_discard): Add parameter ptid.
4047 (dummy_frame_sniffer): Compose dummy_frame_id and call
4048 dummy_frame_id_eq instead of frame_id_eq.
4049 (fprint_dummy_frames): Print ptid.
4050 * dummy-frame.h: Remove comments.
4051 (dummy_frame_push): Add ptid in declaration.
4052 (dummy_frame_pop, dummy_frame_discard): Likewise.
4054 2014-06-26 Tom Tromey <tromey@redhat.com>
4056 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4057 * command.h (error_no_arg): Update.
4059 2014-06-26 Tom Tromey <tromey@redhat.com>
4061 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4062 (do_show_command): Make "arg" const.
4063 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4065 2014-06-26 Tom Tromey <tromey@redhat.com>
4067 * record-full.c (record_full_get_bookmark): Make "args" const.
4068 (record_full_goto_bookmark): Make "raw_bookmark" const.
4069 * record.c (record_goto): New function.
4070 (cmd_record_goto): Use it. Now static.
4071 * record.h (record_goto): Declare.
4072 (cmd_record_goto): Remove declaration.
4073 * target-delegates.c: Rebuild.
4074 * target.h (struct target_ops) <to_get_bookmark,
4075 to_goto_bookmark>: Make parameter const.
4077 2014-06-26 Tom Tromey <tromey@redhat.com>
4079 * defs.h (generic_load): Update.
4080 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4081 * monitor.c (monitor_load): Make "args" const.
4082 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4083 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4085 (mips_load): Make "file" const.
4086 * remote-sim.c (gdbsim_load): Make "args" const.
4087 * remote.c (remote_load): Make "name" const.
4088 * symfile.c (generic_load): Make "args" const.
4089 * target-delegates.c: Rebuild.
4090 * target.c (target_load): Make "arg" const.
4091 (debug_to_load): Make "args" const.
4092 * target.h (struct target_ops) <to_load>: Make parameter const.
4093 (target_load): Update.
4095 2014-06-26 Tom Tromey <tromey@redhat.com>
4098 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4099 (dwarf2_physname, read_partial_die)
4100 (guess_partial_die_structure_name, fixup_partial_die)
4101 (guess_full_die_structure_name, anonymous_struct_prefix)
4102 (dwarf2_name): Use per-BFD obstack.
4104 2014-06-26 Yao Qi <yao@codesourcery.com>
4106 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4107 dummyframe and this_id into inner block below.
4109 2014-06-26 Yao Qi <yao@codesourcery.com>
4111 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4112 with "signal_pass[0]" in the initialization of signal_pass.
4114 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4116 * record-btrace.c (record_btrace_generating_corefile)
4117 (record_btrace_prepare_to_generate_core)
4118 (record_btrace_done_generating_core): New.
4119 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4120 (record_btrace_store_registers, record_btrace_prepare_to_store):
4121 Forward request when generating a core file.
4122 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4123 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4124 to_done_generating_core.
4126 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4128 * target.h (target_ops) <to_prepare_to_generate_core>
4129 <to_done_generating_core>: New.
4130 (target_prepare_to_generate_core, target_done_generating_core): New.
4131 * target.c (target_prepare_to_generate_core)
4132 (target_done_generating_core): New.
4133 * target-delegates.c: Regenerate.
4134 * gcore.c: (write_gcore_file): Rename to ...
4135 (write_gcore_file_1): ...this.
4136 (write_gcore_file): Call target_prepare_to_generate_core
4137 and target_done_generating_core.
4139 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4141 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4142 * gcore.c (write_gcore_file): Free memory returned from
4143 make_corefile_notes.
4144 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4145 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4147 2014-06-24 Yao Qi <yao@codesourcery.com>
4149 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4150 (arm_linux_init_abi): Set skip_trampoline_code with
4151 gdbarch_skip_trampoline_code instead of
4152 find_solib_trampoline_target.
4154 2014-06-24 Yao Qi <yao@codesourcery.com>
4156 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4157 arm_skip_bx_reg returns non-zero.
4159 2014-06-24 Yao Qi <yao@codesourcery.com>
4161 * arm-tdep.c (arm_skip_bx_reg): New function.
4162 (arm_skip_stub): Call arm_skip_bx_reg.
4164 2014-06-23 Don Breazeal <donb@codesourcery.com>
4166 * MAINTAINERS: Add myself as write-after-approval maintainer.
4168 2014-06-23 Pedro Alves <palves@redhat.com>
4170 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4171 DR_CONTROL before setting DR0..DR3.
4172 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4173 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4174 bits of DR_CONTROL related to the debug register slot being
4175 disabled. If all slots are vacant, clear local slowdown as well,
4176 and assert DR_CONTROL is 0.
4178 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4180 * python/lib/gdb/command/xmethods.py
4181 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4182 current progspace only if the string "progspace" matches LOCUS_RE.
4184 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4186 Fix --with-system-readline with readline-6.3 patch 5.
4187 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4188 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4191 2014-06-20 Tom Tromey <tromey@redhat.com>
4193 * dwarf2read.c (dw2_get_real_path): Use correct type in
4195 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4197 2014-06-20 Gary Benson <gbenson@redhat.com>
4199 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4200 * common/glibc_thread_db.h: Likewise.
4201 * common/i386-cpuid.h: Likewise.
4202 * common/i386-gcc-cpuid.h: Likewise.
4203 * common/linux-btrace.h: Likewise.
4204 * common/linux-osdata.h: Likewise.
4205 * common/linux-procfs.h: Likewise.
4206 * common/linux-ptrace.h: Likewise.
4207 * common/mips-linux-watch.h: Likewise.
4208 * common/linux-btrace.c: Moved to nat.
4209 * common/linux-osdata.c: Likewise.
4210 * common/linux-procfs.c: Likewise.
4211 * common/linux-ptrace.c: Likewise.
4212 * common/mips-linux-watch.c: Likewise.
4213 * nat/gdb_thread_db.h: Moved from common.
4214 * nat/glibc_thread_db.h: Likewise.
4215 * nat/i386-cpuid.h: Likewise.
4216 * nat/i386-gcc-cpuid.h: Likewise.
4217 * nat/linux-btrace.c: Likewise.
4218 * nat/linux-btrace.h: Likewise.
4219 * nat/linux-osdata.c: Likewise.
4220 * nat/linux-osdata.h: Likewise.
4221 * nat/linux-procfs.c: Likewise.
4222 * nat/linux-procfs.h: Likewise.
4223 * nat/linux-ptrace.c: Likewise.
4224 * nat/linux-ptrace.h: Likewise.
4225 * nat/mips-linux-watch.c: Likewise.
4226 * nat/mips-linux-watch.h: Likewise.
4227 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4228 (object file files): Reordered.
4229 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4230 of glibc_thread_db.h.
4232 2014-06-20 Gary Benson <gbenson@redhat.com>
4234 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4235 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4236 (i386_dr_low): Likewise.
4237 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4238 (i386_dr_low_set_addr): Likewise.
4239 (i386_dr_low_get_addr): Likewise.
4240 (i386_dr_low_can_set_control): Likewise.
4241 (i386_dr_low_set_control): Likewise.
4242 (i386_dr_low_get_control): Likewise.
4243 (i386_dr_low_get_status): Likewise.
4244 (i386_get_debug_register_length): Likewise.
4245 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4246 (i386_dr_low): Likewise.
4247 * nat/i386-dregs.c (i386-low.h): Remove include.
4248 (i386-nat.h): Likewise.
4249 (nat/i386-dregs.h): New include.
4250 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4251 (i386_dr_low_set_addr): Likewise.
4252 (i386_dr_low_get_addr): Likewise.
4253 (i386_dr_low_can_set_control): Likewise.
4254 (i386_dr_low_set_control): Likewise.
4255 (i386_dr_low_get_control): Likewise.
4256 (i386_dr_low_get_status): Likewise.
4257 (i386_get_debug_register_length): Likewise.
4258 (debug_hw_points): Likewise.
4260 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4262 * Makefile.in (SFILES): Add d-exp.y.
4263 (YYFILES): Add d-exp.c.
4264 (YYOBJ): Add d-exp.o.
4265 (local-maintainer-clean): Delete d-exp.c.
4266 * d-exp.y: New file.
4267 * d-lang.h (d_parse): New declaration.
4268 (d_error): New declaration.
4269 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4270 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4271 PREC_ORDER operators.
4272 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4274 2014-06-19 Yao Qi <yao@codesourcery.com>
4276 * gdbthread.h (any_running): Remove the declaration.
4277 * thread.c (any_running): Remove.
4279 2014-06-19 Yao Qi <yao@codesourcery.com>
4281 * gdbthread.h (struct thread_info) <state>: Change its type to
4282 'enum thread_state'. Update comments.
4284 2014-06-19 Pedro Alves <palves@redhat.com>
4286 * gdbthread.h (ALL_THREADS): Delete.
4287 (ALL_NON_EXITED_THREADS): New macro.
4288 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4289 instead of ALL_THREADS.
4290 * infrun.c (find_thread_needs_step_over)
4291 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4292 instead of ALL_THREADS.
4293 * record-btrace.c (record_btrace_open)
4294 (record_btrace_stop_recording, record_btrace_close)
4295 (record_btrace_is_replaying, record_btrace_resume)
4296 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4297 * remote.c (append_pending_thread_resumptions): Likewise.
4298 * thread.c (thread_apply_all_command): Likewise.
4300 2014-06-19 Gary Benson <gbenson@redhat.com>
4302 * i386-nat.c (i386_stopped_by_watchpoint):
4303 Use i386_dr_stopped_by_watchpoint.
4304 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4305 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4307 2014-06-19 Gary Benson <gbenson@redhat.com>
4309 * nat/i386-dregs.c: New file.
4310 * Makefile.in (i386-dregs.o): New rule.
4311 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4312 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4313 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4314 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4315 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4316 * config/i386/go32.mh (NATDEPFILES): Likewise.
4317 * config/i386/linux.mh (NATDEPFILES): Likewise.
4318 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4319 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4320 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4321 * i386-nat.h (debug_hw_points): New declaration.
4322 * i386-nat.c (breakpoint.h): Remove include.
4323 (command.h): Likewise.
4324 (target.h): Likewise.
4325 (gdb_assert.h): Likewise.
4326 (debug_hw_points): Made nonstatic.
4327 (debug_printf): Now in i386-dregs.c.
4328 (TARGET_HAS_DR_LEN_8): Likewise.
4329 (DR_CONTROL_SHIFT): Likewise.
4330 (DR_CONTROL_SIZE): Likewise.
4331 (DR_RW_EXECUTE): Likewise.
4332 (DR_RW_WRITE): Likewise.
4333 (DR_RW_READ): Likewise.
4334 (DR_RW_IORW): Likewise.
4335 (DR_LEN_1): Likewise.
4336 (DR_LEN_2): Likewise.
4337 (DR_LEN_4): Likewise.
4338 (DR_LEN_8): Likewise.
4339 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4340 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4341 (DR_ENABLE_SIZE): Likewise.
4342 (DR_LOCAL_SLOWDOWN): Likewise.
4343 (DR_GLOBAL_SLOWDOWN): Likewise.
4344 (DR_CONTROL_RESERVED): Likewise.
4345 (I386_DR_CONTROL_MASK): Likewise.
4346 (I386_DR_VACANT): Likewise.
4347 (I386_DR_LOCAL_ENABLE): Likewise.
4348 (I386_DR_GLOBAL_ENABLE): Likewise.
4349 (I386_DR_DISABLE): Likewise.
4350 (I386_DR_SET_RW_LEN): Likewise.
4351 (I386_DR_GET_RW_LEN): Likewise.
4352 (I386_DR_WATCH_HIT): Likewise.
4353 (i386_wp_op_t): Likewise.
4354 (i386_show_dr): Likewise.
4355 (i386_length_and_rw_bits): Likewise.
4356 (i386_insert_aligned_watchpoint): Likewise.
4357 (i386_remove_aligned_watchpoint): Likewise.
4358 (i386_handle_nonaligned_watchpoint): Likewise.
4359 (i386_update_inferior_debug_regs): Likewise.
4360 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4361 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4362 (i386_region_ok_for_watchpoint):
4363 Use i386_dr_region_ok_for_watchpoint.
4364 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4366 2014-06-19 Gary Benson <gbenson@redhat.com>
4368 * i386-nat.c (i386_insert_hw_breakpoint): Use
4369 i386_insert_watchpoint.
4370 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4372 2014-06-19 Gary Benson <gbenson@redhat.com>
4374 * i386-nat.c (i386_dr_show): Renamed to
4375 i386_show_dr and made static. All uses updated.
4376 (i386_dr_length_and_rw_bits): Renamed to
4377 i386_length_and_rw_bits and made static.
4379 (i386_dr_insert_aligned_watchpoint): Renamed to
4380 i386_insert_aligned_watchpoint and made static.
4382 (i386_dr_remove_aligned_watchpoint): Renamed to
4383 i386_remove_aligned_watchpoint and made static.
4385 (i386_dr_update_inferior_debug_regs): Renamed to
4386 i386_update_inferior_debug_regs and made static.
4388 * nat/i386-dregs.h (i386_dr_show): Removed.
4389 (i386_dr_length_and_rw_bits): Likewise.
4390 (i386_dr_insert_aligned_watchpoint): Likewise.
4391 (i386_dr_remove_aligned_watchpoint): Likewise.
4392 (i386_dr_update_inferior_debug_regs): Likewise.
4394 2014-06-19 Gary Benson <gbenson@redhat.com>
4396 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4397 * configure: Regenerate.
4398 * config.in: Likewise.
4399 * main.c (signal.h): New include.
4400 (setup_alternate_signal_stack): New function.
4401 (captured_main): Call the above.
4402 * cp-support.c (signal.h): New include.
4403 (catch_demangler_crashes): New flag.
4404 (SIGJMP_BUF): New define.
4405 (SIGSETJMP): Likewise.
4406 (SIGLONGJMP): Likewise.
4407 (gdb_demangle_jmp_buf): New static global.
4408 (gdb_demangle_attempt_core_dump): Likewise.
4409 (gdb_demangle_signal_handler): New function.
4410 (gdb_demangle): If catch_demangler_crashes is set, install the
4411 above signal handler before calling bfd_demangle, and restore
4412 the original signal handler afterwards. Display the offending
4413 symbol and call demangler_warning the first time a segmentation
4415 (_initialize_cp_support): New maint set/show command.
4417 2014-06-19 Gary Benson <gbenson@redhat.com>
4419 * utils.h (resource_limit_kind): New enum.
4420 (can_dump_core): New declaration.
4421 (warn_cant_dump_core): Likewise.
4422 (dump_core): Likewise.
4423 * utils.c (dump_core): Made nonstatic. Added new
4424 parameter "limit_kind".
4425 (can_dump_core): Made nonstatic. Moved printing code to...
4426 (warn_cant_dump_core): New function.
4427 (can_dump_core_warn): Likewise.
4428 (internal_vproblem): Replace calls to can_dump_core with
4429 calls to can_dump_core_warn. Supply new argument to each.
4431 2014-06-19 Gary Benson <gbenson@redhat.com>
4433 * utils.h (demangler_vwarning): New declaration.
4434 (demangler_warning): Likewise.
4435 * utils.c (struct internal_problem)
4436 <user_settable_should_quit>: New field.
4437 <user_settable_should_dump_core>: Likewise
4438 (internal_error_problem): Add values for above new fields.
4439 (internal_warning_problem): Likewise.
4440 (demangler_warning_problem): New static global.
4441 (demangler_vwarning): New function.
4442 (demangler_warning): Likewise.
4443 (add_internal_problem_command): Selectively add commands.
4444 (_initialize_utils): New internal problem command.
4445 * maint.c (maintenance_demangler_warning): New function.
4446 (_initialize_maint_cmds): New command.
4448 2014-06-18 Tom Tromey <tromey@redhat.com>
4450 * f-valprint.c (info_common_command_for_block): Update.
4451 * symtab.h (struct general_symbol_info) <common_block>: Now
4454 2014-06-18 Tom Tromey <tromey@redhat.com>
4456 * symtab.h (struct symtab) <blockvector>: Now const.
4457 * ada-lang.c (ada_add_global_exceptions): Update.
4458 * buildsym.c (augment_type_symtab): Update.
4459 * dwarf2read.c (dw2_lookup_symbol): Update.
4460 * jit.c (finalize_symtab): Update.
4461 * jv-lang.c (add_class_symtab_symbol): Update.
4462 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4464 * objfiles.c (objfile_relocate1): Update.
4465 * psymtab.c (lookup_symbol_aux_psymtabs)
4466 (maintenance_check_psymtabs): Update.
4467 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4469 * spu-tdep.c (spu_catch_start): Update.
4470 * symmisc.c (dump_symtab_1): Update.
4471 * symtab.c (lookup_global_symbol_from_objfile)
4472 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4473 (basic_lookup_transparent_type_quick)
4474 (basic_lookup_transparent_type, find_pc_sect_symtab)
4475 (find_pc_sect_line, search_symbols): Update.
4476 * block.c (find_block_in_blockvector): Make "bl" const.
4477 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4479 (blockvector_contains_pc): Make "bv" const.
4480 (block_for_pc_sect): Update.
4481 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4482 (blockvector_contains_pc): Update.
4483 * breakpoint.c (resolve_sal_pc): Update.
4484 * inline-frame.c (block_starting_point_at): Update.
4486 2014-06-18 Tom Tromey <tromey@redhat.com>
4488 * completer.c (complete_line): Make "line_buffer" const.
4489 * completer.h (complete_line): Update.
4491 2014-06-18 Tom Tromey <tromey@redhat.com>
4493 * symtab.c (add_macro_name): Remove unneeded cast.
4495 2014-06-18 Tom Tromey <tromey@redhat.com>
4497 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4498 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4500 2014-06-18 Tom Tromey <tromey@redhat.com>
4502 * probe.c (info_probes_for_ops): Make "arg" const.
4503 * probe.h (info_probes_for_ops): Update.
4505 2014-06-18 Tom Tromey <tromey@redhat.com>
4507 * varobj.c (varobj_create): Update.
4508 * valops.c (value_of_this): Update.
4509 * tracepoint.c (add_local_symbols, scope_info): Update.
4510 * symtab.h (struct general_symbol_info) <block>: Now const.
4511 * symtab.c (skip_prologue_sal)
4512 (default_make_symbol_completion_list_break_on)
4513 (skip_prologue_using_sal): Update.
4514 * stack.h (iterate_over_block_locals)
4515 (iterate_over_block_local_vars): Update.
4516 * stack.c (print_frame_args): Update.
4517 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4519 (get_selected_block): Make return type const.
4520 * python/py-frame.c (frapy_block): Update.
4521 * python/py-block.c (gdbpy_block_for_pc): Update.
4522 * p-exp.y (%union) <bval>: Now const.
4523 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4524 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4525 * m2-exp.y (%union) <bval>: Now const.
4526 * linespec.c (get_current_search_block): Make return type const.
4527 (create_sals_line_offset, find_label_symbols): Update.
4528 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4530 (block_starting_point_at): Make "block" const.
4531 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4532 (check_exception_resume): Update.
4533 * guile/scm-frame.c (gdbscm_frame_block): Update.
4534 * guile/scm-block.c (gdbscm_lookup_block): Update.
4535 * frame.h (get_frame_block): Update.
4536 (get_selected_block): Make return type const.
4537 * frame.c (frame_id_inner): Update.
4538 * f-valprint.c (info_common_command_for_block)
4539 (info_common_command): Update.
4540 * dwarf2loc.c (dwarf2_find_location_expression)
4541 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4542 (locexpr_describe_location_piece): Update.
4543 * c-exp.y (%union) <bval>: Now const.
4544 * breakpoint.c (resolve_sal_pc): Update.
4545 * blockframe.c (get_frame_block):Make return type const.
4546 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4547 (block_innermost_frame): Update.
4548 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4549 (block_for_pc, block_for_pc_sect): Update.
4550 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4552 (block_for_pc_sect, block_for_pc): Make return type const.
4553 * ax-gdb.c (gen_expr): Update.
4554 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4555 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4556 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4557 (ada_read_var_value): Update.
4558 * ada-exp.y (struct name_info) <block>: Now const.
4560 (block_lookup): Constify.
4562 2014-06-18 Gary Benson <gbenson@redhat.com>
4564 * nat/i386-dregs.h: New file.
4565 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4566 * i386-nat.h (i386-dregs.h): New include.
4567 (DR_FIRSTADDR): Now in i386-dregs.h.
4568 (DR_LASTADDR): Likewise.
4569 (DR_NADDR): Likewise.
4570 (DR_STATUS): Likewise.
4571 (DR_CONTROL): Likewise.
4572 (i386_debug_reg_state): Likewise.
4573 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4575 2014-06-18 Don Breazeal <donb@codesourcery.com>
4577 * breakpoint.c (set_longjmp_breakpoint): Call
4578 momentary_breakpoint_from_master with additional argument.
4579 (set_longjmp_breakpoint_for_call_dummy): Call
4580 momentary_breakpoint_from_master with additional argument.
4581 (set_std_terminate_breakpoint): Call
4582 momentary_breakpoint_from_master with additional argument.
4583 (momentary_breakpoint_from_master): Add argument to function
4584 definition and use it to initialize structure member flag.
4585 (clone_momentary_breakpoint): Call
4586 momentary_breakpoint_from_master with additional argument.
4587 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4588 member flags set in momentary_breakpoint_from_master.
4590 2014-06-18 Gary Benson <gbenson@redhat.com>
4592 * i386-nat.c (i386_show_dr): Renamed to
4593 i386_dr_show and made nonstatic. All uses updated.
4594 (i386_length_and_rw_bits): Renamed to
4595 i386_dr_length_and_rw_bits and made nonstatic.
4597 (i386_insert_aligned_watchpoint): Renamed to
4598 i386_dr_insert_aligned_watchpoint and made nonstatic.
4600 (i386_remove_aligned_watchpoint): Renamed to
4601 i386_dr_remove_aligned_watchpoint and made nonstatic.
4603 (i386_update_inferior_debug_regs): Renamed to
4604 i386_dr_update_inferior_debug_regs and made nonstatic.
4607 2014-06-18 Gary Benson <gbenson@redhat.com>
4609 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4610 (i386_dr_low_can_set_control): Likewise.
4611 (i386_dr_low_set_addr): Likewise.
4612 (i386_dr_low_set_control): Likewise.
4613 (i386_dr_low_get_addr): Likewise.
4614 (i386_dr_low_get_status): Likewise.
4615 (i386_dr_low_get_control): Likewise.
4616 (i386_insert_aligned_watchpoint): Use new macros.
4617 (i386_update_inferior_debug_regs): Likewise.
4618 (i386_stopped_data_address): Likewise.
4620 2014-06-18 Gary Benson <gbenson@redhat.com>
4622 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4623 New parameter. All uses updated.
4625 2014-06-18 Gary Benson <gbenson@redhat.com>
4627 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4630 2014-06-18 Gary Benson <gbenson@redhat.com>
4632 * i386-nat.c (debug_printf): New macro.
4633 (i386_get_debug_register_length): Likewise.
4634 (TARGET_HAS_DR_LEN_8): Use above macro.
4635 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4636 and printf_unfiltered. Use phex to format values.
4638 2014-06-18 Gary Benson <gbenson@redhat.com>
4640 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4643 2014-06-18 Gary Benson <gbenson@redhat.com>
4645 * i386-nat.c: Comment changes.
4647 2014-06-18 Gary Benson <gbenson@redhat.com>
4649 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4651 2014-06-18 Gary Benson <gbenson@redhat.com>
4653 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4654 (i386_insert_aligned_watchpoint): Likewise.
4655 (i386_remove_aligned_watchpoint): Likewise.
4656 (i386_handle_nonaligned_watchpoint): Likewise.
4658 2014-06-18 Gary Benson <gbenson@redhat.com>
4660 * i386-nat.c: Whitespace changes.
4662 2014-06-17 Samuel Bronson <naesten@gmail.com>
4664 * MAINTAINERS: Update Roland McGrath's email address.
4665 Thanks to Sergio Durigan Junior for pointing out that he left
4666 Red Hat a while ago, and giving me a current address.
4668 2014-06-17 Tom Tromey <tromey@redhat.com>
4670 * utils.h (savestring): Remove declaration.
4672 2014-06-17 Tom Tromey <tromey@redhat.com>
4674 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4676 2014-06-16 Keith Seitz <keiths@redhat.com>
4679 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4680 to update the varobj if inferior_ptid is null_ptid.
4682 2014-06-16 Tom Tromey <tromey@redhat.com>
4684 * target.h (struct target_ops) <to_info_proc>: Make parameter
4686 (target_info_proc): Update.
4687 * target.c (target_info_proc): Make "args" const.
4688 * procfs.c (procfs_info_proc): Update.
4689 * linux-tdep.c (linux_info_proc): Update.
4690 (linux_core_info_proc_mappings): Make "args" const.
4691 (linux_core_info_proc): Update.
4692 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4693 * gdbarch.c: Rebuild.
4694 * gdbarch.h: Rebuild.
4695 * corelow.c (core_info_proc): Update.
4697 2014-06-16 Tom Tromey <tromey@redhat.com>
4699 * target.h (struct target_ops) <to_disconnect>: Make parameter
4701 (target_disconnect): Update.
4702 * target.c (target_disconnect): Make "args" const.
4703 * target-delegates.c: Rebuild.
4704 * remote.c (remote_disconnect): Update.
4705 * record.h (record_disconnect): Update.
4706 * record.c (record_disconnect): Update.
4707 * inf-child.c (inf_child_disconnect): Update.
4709 2014-06-16 Tom Tromey <tromey@redhat.com>
4711 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4712 * target.c (debug_to_rcmd, default_rcmd): Update.
4713 * target-delegates.c: Rebuild.
4714 * remote.c (remote_rcmd): Update.
4715 * monitor.c (monitor_rcmd): Update.
4717 2014-06-16 Pedro Alves <palves@redhat.com>
4719 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4720 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4721 have OBJF_SHARED set.
4722 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4723 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4724 instead of OBJF_USERLOADED.
4725 * objfiles.h (OBJF_SHARED): Update comment.
4726 (userloaded_objfile_contains_address_p): Rename to ...
4727 (shared_objfile_contains_address_p): ... this, and update
4729 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4731 (remove_symbol_file_command): Skip objfiles that don't have
4734 2014-06-16 Tom Tromey <tromey@redhat.com>
4736 * minsyms.h (prim_record_minimal_symbol)
4737 (prim_record_minimal_symbol_and_info): Update comments.
4739 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4741 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4742 or --without-guile, according to how GDB was built.
4744 2014-06-13 Tom Tromey <tromey@redhat.com>
4746 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4748 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4750 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4752 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4753 help_list.Pass all_commands, not -1, to help_list.
4754 * cli/cli-dump.c (dump_command, append_command)
4755 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4756 (binary_dump_command, binary_append_command): Pass all_commands,
4757 not -1, to help_list.
4758 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4760 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4762 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4764 * top.c (set_history): Pass all_commands, not -1, to help_list.
4765 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4766 all_commands, not -1, to help_list.
4767 * symfile.c (overlay_command): Pass all_commands, not -1, to
4769 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4771 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4773 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4775 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4776 not -1, to help_list.
4777 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4778 not -1, to help_list.
4779 * maint.c (maintenance_command, maintenance_info_command)
4780 (maintenance_print_command, maintenance_set_cmd): Pass
4781 all_commands, not -1, to help_list.
4782 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4784 * language.c (set_check): Pass all_commands, not -1, to help_list.
4785 * infcmd.c (unset_command): Pass all_commands, not -1, to
4787 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4789 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4791 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4793 * breakpoint.c (save_command): Pass all_commands, not -1, to
4795 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4796 all_commands, not -1, to help_list.
4798 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4800 * regcache.c (struct register_to_invalidate): New structure.
4801 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4803 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4805 2014-06-12 Yao Qi <yao@codesourcery.com>
4807 * varobj.c (varobj_get_num_children): Call
4808 varobj_is_dynamic_p.
4809 (varobj_list_children): Likewise.
4810 (varobj_update): Likewise. Update comments.
4812 2014-06-12 Yao Qi <yao@codesourcery.com>
4814 * varobj.c (varobj_pretty_printed_p): Rename to ...
4815 (varobj_is_dynamic_p): ... this. New function.
4816 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4817 (varobj_is_dynamic_p): Declare.
4818 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4819 (mi_print_value_p, varobj_update_one): Likewise.
4821 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4822 Yao Qi <yao@codesourcery.com>
4824 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4825 (varobj_get_iterator): Wrap up code for pretty-printer by
4826 "#if HAVE_PYTHON" and "#endif".
4827 (update_dynamic_varobj_children): Likewise.
4829 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4830 Yao Qi <yao@codesourcery.com>
4832 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4833 gdb_python_initialized is false. Move some code from varobj.c.
4834 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4835 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4836 (struct varobj_item): Moved to varobj-iter.h".
4837 (varobj_clear_saved_item): New function.
4838 (update_dynamic_varobj_children): Move python-related code to
4840 (free_variable): Call varobj_clear_saved_item and
4843 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4844 Yao Qi <yao@codesourcery.com>
4846 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4847 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4848 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4849 (py-varobj.o): New rule.
4850 * python/py-varobj.c: New file.
4851 * python/python-internal.h (py_varobj_get_iterator): Declare.
4852 * varobj-iter.h: New file.
4853 * varobj.c: Include "varobj-iter.h"
4854 (struct varobj) <child_iter>: Change its type from "PyObject *"
4855 to "struct varobj_iter *".
4856 <saved_item>: Likewise.
4857 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4858 [HAVE_PYTHON] (varobj_get_iterator): New function.
4859 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4860 python-specific code to python/py-varobj.c.
4861 (install_visualizer): Call varobj_iter_delete instead of
4863 * varobj.h (varobj_ensure_python_env): Declare.
4865 2014-06-12 Yao Qi <yao@codesourcery.com>
4867 * varobj.c (struct varobj_item): New structure.
4868 (create_child_with_value): Update declaration.
4869 (varobj_add_child): Replace arguments 'name' and 'value' with
4870 'item'. All callers updated.
4871 (install_dynamic_child): Likewise.
4872 (update_dynamic_varobj_children): Likewise.
4873 (varobj_add_child): Likewise.
4874 (create_child_with_value): Likewise.
4876 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4878 * NEWS: Create a new section for the next release branch.
4879 Rename the section of the current branch, now that it has
4882 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4884 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4885 * version.in: Bump version to 7.8.50.DATE-cvs.
4887 2014-06-11 Pedro Alves <palves@redhat.com>
4890 * ser-mingw.c (net_windows_socket_check_pending): New function.
4891 (net_windows_select_thread): Ignore spurious wakeups. Use
4892 net_windows_socket_check_pending.
4893 (net_windows_wait_handle): Check for pending events with
4894 ioctlsocket, through net_windows_socket_check_pending, instead of
4895 checking the socket's event.
4897 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4899 * python/python-internal.h (gdb_PyObject_GetAttrString)
4900 (gdb_PyObject_HasAttrString): New inline function definitions.
4901 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4902 char * of the second argument to PyObject_GetAttrString.
4904 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4906 * serial.c (serial_write): Fix index of character to be printed
4907 in call to serial_logchar when serial debug traces are enabled.
4909 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4911 * gdbtypes (resolve_dynamic_range): Add function description.
4913 2014-06-09 Pedro Alves <palves@redhat.com>
4915 * linux-nat.c (linux_child_follow_fork): Initialize status with
4916 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4917 inner block. Only pass the signal to PTRACE_DETACH if in pass
4920 2014-06-09 Gary Benson <gbenson@redhat.com>
4922 * common/signals.c (gdb_signal_from_host): Reorder to separate
4923 the always-available ANSI-standard signals from the signals that
4925 (do_gdb_signal_to_host): Likewise.
4926 * proc-events.c (signal_table): Likewise.
4928 2014-06-08 Hui Zhu <hui@codesourcery.com>
4930 * common/linux-ptrace.c (linux_disable_event_reporting): New
4932 * common/linux-ptrace.h (linux_disable_event_reporting): New
4934 * linux-nat.c (linux_child_follow_fork): Do a single step before
4937 2014-06-07 Keith Seitz <keiths@redhat.com>
4941 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4942 from symbol_matches_domain in symtab.c. All local callers
4943 of symbol_matches_domain updated.
4944 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4945 search STRUCT_DOMAIN.
4946 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4947 independently. standard_lookup will do that automatically.
4948 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4949 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4950 (cp_lookup_symbol_in_namespace): Likewise.
4951 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4952 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4953 may return a STRUCT_DOMAIN match.
4954 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4955 * cp-support.c: Include language.h.
4956 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4958 * psymtab.c (match_partial_symbol): Compare the requested
4959 domain with the symbol's domain directly.
4960 (lookup_partial_symbol): Likewise.
4961 * symtab.c (lookup_symbol_in_language): Explain when/why
4962 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4963 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4964 appropriate languages.
4965 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4966 and moved to ada-lang.c
4967 (lookup_block_symbol): Explain that this function only returns
4968 symbol matching the requested DOMAIN.
4969 Compare the requested domain with the symbol's domain directly.
4970 (iterate_over_symbols): Compare the requested domain with the
4971 symbol's domain directly.
4972 * symtab.h (symbol_matches_domain): Remove.
4974 2014-06-06 Doug Evans <xdje42@gmail.com>
4976 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4977 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4978 (gdbscm_guile_version_is_at_least): Declare.
4979 (gdbscm_scm_string_to_int): Declare.
4980 * guile/guile.c (gdbscm_guile_major_version): New global.
4981 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4982 (guile_datadir): New static global.
4983 (gdbscm_guile_data_directory): New function.
4984 (initialize_scheme_side): Update.
4985 (misc_guile_functions): Add guile-data-directory.
4986 (initialize_gdb_module): Fetch guile version number.
4987 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4988 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4989 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4990 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4992 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4993 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4994 * guile/scm-value.c (gdbscm_value_to_string): Only call
4995 scm_port_conversion_strategy if Guile version >= 2.0.6.
4997 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4999 * main.c (print_gdb_help): Add -q and --silent.
5001 2014-06-06 Gary Benson <gbenson@redhat.com>
5003 * common/signals.c: Remove preprocessor conditionals for
5004 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5005 SIGSEGV and SIGTERM.
5006 * proc-events.c: Likewise.
5008 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5010 * symfile.c (symfile_free_objfile): Remove restriction to
5012 * symfile-mem.c (symbol_file_add_from_memory): Call
5013 add_target_sections_of_objfile.
5015 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5017 * guile/scm-value.c (gdbscm_history_append_x): Use
5018 'vlscm_get_value_smob_arg_unsafe' instead of
5019 'vlscm_scm_to_value'.
5021 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5024 * utils.c (printchar): Don't escape at all if quoter is NUL.
5025 Update function documentation to clarify effect of parameter
5027 * remote.c (escape_buffer): Pass '\\' as the quoter to
5028 fputstrn_unfiltered.
5029 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5030 generate the output.
5031 (mi_solib_unloaded): Same.
5033 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5035 * development.sh: Delete.
5036 * Makefile.in (config.status): Adjust dependency on development.sh.
5037 * configure.ac: Adjust development.sh source call.
5038 * configure: Regenerate.
5040 2014-06-04 Doug Evans <xdje42@gmail.com>
5042 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5043 is_scheme_bkpt, spec.
5044 (bpscm_make_breakpoint_smob): Initialize new members.
5045 (gdbscm_create_breakpoint_x): Split into two ...
5046 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5047 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5048 (scheme_function breakpoint_functions): Update.
5049 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5050 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5051 register-breakpoint!.
5053 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5056 * mem-break.c (z_type_supported): Return zero if
5057 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5059 2014-06-04 Tom Tromey <tromey@redhat.com>
5061 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5062 value_from_contents_and_address_unresolved.
5063 (ada_template_to_fixed_record_type_1): Likewise.
5064 (ada_which_variant_applies): Likewise.
5065 * value.h (value_from_contents_and_address_unresolved): Declare.
5066 * value.c (value_from_contents_and_address_unresolved): New
5068 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5069 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5070 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5072 2014-06-04 Tom Tromey <tromey@redhat.com>
5074 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5076 2014-06-04 Tom Tromey <tromey@redhat.com>
5078 * procfs.c (procfs_attach): Make "args" const.
5079 * windows-nat.c (windows_attach): Make "args" const.
5080 * nto-procfs.c (procfs_attach): Make "args" const.
5081 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5082 * go32-nat.c (go32_attach): Make "args" const.
5083 * gnu-nat.c (gnu_attach): Make "args" const.
5084 * darwin-nat.c (darwin_attach): Make "args" const.
5085 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5086 * linux-nat.c (linux_nat_attach): Make "args" const.
5087 * remote.c (extended_remote_attach_1, extended_remote_attach):
5089 * target.h (struct target_ops) <to_attach>: Make "args" const.
5090 (find_default_attach): Likewise.
5091 * utils.c (parse_pid_to_attach): Make "args" const.
5092 * utils.h (parse_pid_to_attach): Update.
5094 2014-06-04 Tom Tromey <tromey@redhat.com>
5096 * target-delegates.c: Rebuild.
5097 * target.c (default_thread_address_space): New function.
5098 (target_thread_address_space): Simplify.
5099 * target.h (struct target_ops) <to_thread_address_space>: Add
5100 TARGET_DEFAULT_FUNC.
5102 2014-06-04 Doug Evans <xdje42@gmail.com>
5104 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5106 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5108 * record-btrace.c: Include event-loop.h and inf-loop.h.
5109 (record_btrace_resume_exec_dir)
5110 (record_btrace_async_inferior_event_handler)
5111 (record_btrace_handle_async_inferior_event): New.
5112 (record_btrace_open): Create async event handler.
5113 (record_btrace_close): Delete async event handler.
5114 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5115 Mark async event handler.
5116 (record_btrace_execution_direction): New.
5117 (init_record_btrace_ops): Initialize to_execution_direction.
5119 2014-06-03 Doug Evans <xdje42@gmail.com>
5121 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5122 (gdbscm_make_parameter): Ditto.
5124 2014-06-03 Doug Evans <dje@google.com>
5126 * exec.c (exec_close_1): Call clear_section_table instead of
5127 resize_section_table.
5128 (clear_section_table): New function.
5129 (resize_section_table): Make static. Rename arg num_added to
5131 * exec.h (clear_section_table): Declare.
5132 (resize_section_table): Delete.
5133 * progspace.c (release_program_space): Call clear_section_table
5134 instead of resize_section_table.
5136 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5138 * NEWS (Python Scripting): Add entry about the new xmethods
5141 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5143 * python/py-xmethods.c: New file.
5144 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5145 (objfpy_dealloc): XDECREF on the new xmethods field.
5146 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5148 (objfpy_get_xmethods): New function.
5149 (objfile_getset): New entry 'xmethods'.
5150 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5151 (pspy_dealloc): XDECREF on the new xmethods field.
5152 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5154 (pspy_get_xmethods): New function.
5155 (pspace_getset): New entry 'xmethods'.
5156 * python/python-internal.h: Add declarations for new functions.
5157 * python/python.c (_initialize_python): Invoke
5158 gdbpy_initialize_xmethods.
5159 * python/lib/gdb/__init__.py (xmethods): New
5161 * python/lib/gdb/xmethod.py: New file.
5162 * python/lib/gdb/command/xmethods.py: New file.
5164 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5166 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5167 best match method returned by find_overload_match is an xmethod.
5168 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5169 the best matching operator returned by find_overload_match is an
5171 * valops.c: #include "extension.h".
5172 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5173 Return void. The list of matching source methods is returned in
5174 "fn_list" and a vector of matching debug method workers is
5175 returned in "xm_worker_vec". Update all callers.
5176 (value_find_oload_method_list): Likewise.
5177 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5178 non-NULL, then the index of the best matching method in this
5179 vector is returned. Update all callers.
5180 (find_overload_match): Include xmethods while performing overload
5183 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5185 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5186 * extension-priv.h (struct extension_language_ops): Add the
5188 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5189 get_matching_xmethod_workers, get_xmethod_argtypes,
5190 invoke_xmethod, free_xmethod_worker,
5191 free_xmethod_worker_vec): New functions.
5192 * extension.h: #include "common/vec.h".
5193 New function declarations.
5194 (struct xmethod_worker): New struct.
5195 (VEC (xmethod_worker_ptr)): New vector type.
5196 (xmethod_worker_ptr): New typedef.
5197 (xmethod_worker_vec): Likewise.
5198 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5200 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5201 (struct builtin_type): New field "xmethod".
5202 * valarith.c (value_ptradd): Assert that the value argument is not
5204 * valops.c (value_must_coerce_to_target): Return 0 for
5205 lval_xcallable values.
5206 * value.c (struct value): New field XM_WORKER in the field
5208 (value_address, value_raw_address): Return 0 for lval_xcallable
5210 (set_value_address): Assert that the value is not an
5212 (value_free): Free the associated xmethod worker when freeing
5213 lval_xcallable values.
5214 (set_value_component_location): Assert that the WHOLE value is not
5216 (value_of_xmethod, call_xmethod): New functions.
5217 * value.h: Declare "struct xmethod_worker".
5218 Declare new functions value_of_xmethod, call_xmethod.
5220 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5221 Pedro Alves <palves@redhat.com>
5223 PR breakpoints/17000
5224 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5225 New function, extracted from software_breakpoint_inserted_here_p.
5226 (software_breakpoint_inserted_here_p): Replace factored out code
5227 by call to find_non_raw_software_breakpoint_inserted_here.
5228 (bp_target_info_copy_insertion_state): New function.
5229 (bkpt_insert_location): Handle the case of a single-step
5230 breakpoint already inserted at the same address.
5231 (bkpt_remove_location): Handle the case of a single-step
5232 breakpoint still inserted at the same address.
5233 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5234 breakpoint already inserted at the same address.
5235 (deprecated_remove_raw_breakpoint): Handle the case of a
5236 non-raw breakpoint still inserted at the same address.
5237 (find_single_step_breakpoint): New function, extracted from
5238 single_step_breakpoint_inserted_here_p.
5239 (find_single_step_breakpoint): New function,
5240 factored out from single_step_breakpoint_inserted_here_p.
5241 (single_step_breakpoint_inserted_here_p): Reimplement.
5243 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5245 Pushed by Joel Brobecker <brobecker@adacore.com>
5246 * source.c (show_substitute_path_command): Fix display of matching
5249 2014-06-03 Gary Benson <gbenson@redhat.com>
5251 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5253 2014-06-02 Doug Evans <xdje42@gmail.com>
5255 Add parameter support for Guile.
5256 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5257 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5258 (scm-param.o): New rule.
5259 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5260 (gdbscm_misc_error): Declare.
5261 (gdbscm_canonicalize_command_name): Declare.
5262 (gdbscm_scm_to_host_string): Declare.
5263 (gdbscm_scm_from_host_string): Declare.
5264 (gdbscm_initialize_parameters): Declare.
5265 * guile/guile.c (initialize_gdb_module): Call
5266 gdbscm_initialize_parameters.
5267 * guile/lib/gdb.scm: Export parameter symbols.
5268 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5269 cmdscm_canonicalize_name and made public. All callers updated.
5270 * guile/scm-exception.c (gdbscm_misc_error): New function.
5271 * guile/scm-param.c: New file.
5272 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5273 (gdbscm_scm_to_host_string): New function.
5274 (gdbscm_scm_from_host_string): New function.
5275 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5277 2014-06-02 Doug Evans <xdje42@gmail.com>
5279 Add command support for Guile.
5280 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5281 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5282 (scm-cmd.o): New rule.
5283 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5284 (gdbscm_user_error_p): Declare.
5285 (gdbscm_parse_command_name): Declare.
5286 (gdbscm_valid_command_class_p): Declare.
5287 (gdbscm_initialize_commands): Declare.
5288 * guile/guile.c (initialize_gdb_module): Call
5289 gdbscm_initialize_commands.
5290 * guile/lib/gdb.scm: Export command symbols.
5291 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5292 (throw-user-error): New function.
5293 * guile/scm-cmd.c: New file.
5294 * guile/scm-exception.c (user_error_symbol): New static global.
5295 (gdbscm_user_error_p): New function.
5296 (gdbscm_initialize_exceptions): Set user_error_symbol.
5297 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5299 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5301 * top.c (command_loop): Handle comments here...
5302 (command_line_input): ... not here.
5304 2014-06-02 Doug Evans <xdje42@gmail.com>
5306 Add progspace support for Guile.
5307 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5308 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5309 (scm-progspace.o): New rule.
5310 * guile/guile-internal.h (pspace_smob): New typedef.
5311 (psscm_pspace_smob_pretty_printers): Declare.
5312 (psscm_pspace_smob_from_pspace): Declare.
5313 (psscm_scm_from_pspace): Declare.
5314 * guile/guile.c (initialize_gdb_module): Call
5315 gdbscm_initialize_pspaces.
5316 * guile/lib/gdb.scm: Export progspace symbols.
5317 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5319 (append-pretty-printer!): Ditto.
5320 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5322 * guile/scm-progspace.c: New file.
5324 2014-06-03 Alan Modra <amodra@gmail.com>
5326 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5327 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5329 2014-06-02 Doug Evans <dje@google.com>
5331 Add support for skeletonless type units.
5332 * dwarf2read.c (struct dwarf2_per_objfile): New member
5333 n_allocated_type_units.
5334 (struct dwarf2_per_objfile) <tu_stats>: New member
5335 nr_all_type_units_reallocs.
5336 (create_signatured_type_table_from_index): Initialize
5337 n_allocated_type_units
5338 (create_all_type_units): Ditto.
5339 (add_type_unit): Move up in file. New arg slot.
5340 All callers updated. Increase space for all_type_units more
5342 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5343 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5344 (lookup_dwp_signatured_type): Ditto.
5345 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5346 All callers updated.
5347 (build_type_psymtabs_1): Leave type_unit_groups as
5348 NULL if no TUs present.
5349 (print_tu_stats): New function.
5350 (process_skeletonless_type_unit): New function.
5351 (process_dwo_file_for_skeletonless_type_units): New
5353 (process_skeletonless_type_units): New function.
5354 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5355 Call print tu_stats if debugging enabled.
5357 2014-06-02 Pedro Alves <palves@redhat.com>
5359 * breakpoint.c (build_target_command_list): Don't build a command
5360 list if we have any duplicate location that isn't a dprintf.
5362 2014-06-02 Pedro Alves <palves@redhat.com>
5364 * breakpoint.c (dprintf_breakpoint_hit): New function.
5365 (initialize_breakpoint_ops): Install it as dprintf's
5366 breakpoint_hit method.
5368 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5370 * source.c (substitute_path_rule_matches): Simplify using
5371 filename_ncmp instead of FILENAME_CMP.
5373 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5375 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5377 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5379 * configure.ac: When Guile is available, check for the
5380 availability of 'scm_new_smob'.
5381 * configure, config.h.in: Regenerate.
5382 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5385 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5387 * frame.c (struct frame_info): Add stop_string field.
5388 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5389 (get_prev_frame_always): Old content moved into
5390 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5391 TRY_CATCH, handle MEMORY_ERROR exceptions.
5392 (frame_stop_reason_string): New function definition.
5393 * frame.h (unwind_stop_reason_to_string): Extend comment to
5394 mention frame_stop_reason_string.
5395 (frame_stop_reason_string): New function declaration.
5396 * stack.c (frame_info): Switch to frame_stop_reason_string.
5397 (backtrace_command_1): Switch to frame_stop_reason_string.
5398 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5399 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5400 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5402 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5404 * frame.c (frame_stop_reason_string): Rename to ...
5405 (unwind_stop_reason_to_string): this.
5406 * frame.h (frame_stop_reason_string): Rename to ...
5407 (unwind_stop_reason_to_string): this.
5408 * stack.c (frame_info): Update call to frame_stop_reason_string.
5409 (backtrace_command_1): Likewise.
5410 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5411 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5413 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5415 * frame.c (remove_prev_frame): New function.
5416 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5419 2014-05-29 Pedro Alves <palves@redhat.com>
5421 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5422 and make it const. When a single-step decays to a continue,
5423 clear 'step', not 'hw_step'. Pass whether the caller wanted
5424 to step to user_visible_resume_ptid, not what we ask the
5427 2014-05-29 Pedro Alves <palves@redhat.com>
5429 * infrun.c (process_event_stop_test, handle_step_into_function)
5430 (handle_step_into_function_backward): Adjust.
5431 Don't set the even thread's stop_step and call stop_waiting before
5432 calling end_stepping_range. Instead do that ...
5433 (end_stepping_range): ... here. Take an ecs pointer parameter.
5435 2014-05-29 Pedro Alves <palves@redhat.com>
5437 * infrun.c (stop_stepping): Rename to ...
5438 (stop_waiting): ... this.
5439 (proceed): Update comment.
5440 (process_event_stop_test, handle_inferior_event)
5441 (handle_signal_stop, handle_step_into_function)
5442 (handle_step_into_function_backward): Update.
5444 2014-05-29 Pedro Alves <palves@redhat.com>
5446 * infcall.c (run_inferior_call): Don't check whether the current
5447 thread is running after the proceed call.
5449 2014-05-29 Pedro Alves <palves@redhat.com>
5450 Tom Tromey <tromey@redhat.com>
5452 * NEWS: Mention "maint set target-async", "set mi-async", and that
5453 background execution commands are now always available.
5454 * target.h (target_async_permitted): Update comment.
5455 * target.c (target_async_permitted, target_async_permitted_1):
5457 (set_target_async_command): Rename to ...
5458 (maint_set_target_async_command): ... this.
5459 (show_target_async_command): Rename to ...
5460 (maint_show_target_async_command): ... this.
5461 (_initialize_target): Adjust.
5462 * infcmd.c (prepare_execution_command): Make extern.
5463 * inferior.h (prepare_execution_command): Declare.
5464 * infrun.c (set_observer_mode): Leave target async alone.
5465 * mi/mi-interp.c (mi_interpreter_init): Install
5466 mi_on_sync_execution_done as sync_execution_done observer.
5467 (mi_on_sync_execution_done): New function.
5468 (mi_execute_command_input_handler): Don't print the prompt if we
5469 just started a synchronous command with an async target.
5470 (mi_on_resume): Check sync_execution before printing prompt.
5471 * mi/mi-main.h (mi_async_p): Declare.
5472 * mi/mi-main.c: Include gdbcmd.h.
5473 (mi_async_p): New function.
5474 (mi_async, mi_async_1): New globals.
5475 (set_mi_async_command, show_mi_async_command, mi_async): New
5477 (exec_continue): Call prepare_execution_command.
5478 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5479 (mi_execute_async_cli_command): Use mi_async_p.
5480 (_initialize_mi_main): Install "set mi-async". Make
5481 "target-async" a deprecated alias.
5483 2014-05-29 Pedro Alves <palves@redhat.com>
5485 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5486 (_initialize_cli_interp): Adjust.
5487 * event-loop.c: Include "observer.h".
5488 (start_event_loop): Notify 'command_error' observers instead of
5489 calling display_gdb_prompt. Remove FIXME comment.
5490 * event-top.c (display_gdb_prompt): Remove call into the
5492 * inf-loop.c: Include "observer.h".
5493 (inferior_event_handler): Notify 'command_error' observers instead
5494 of calling display_gdb_prompt.
5495 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5496 observers instead of calling display_gdb_prompt.
5497 * interps.c (interp_set): Don't call display_gdb_prompt.
5498 (current_interp_display_prompt_p): Delete.
5499 * interps.h (interp_prompt_p): Delete declaration.
5500 (interp_prompt_p_ftype): Delete.
5501 (struct interp_procs) <prompt_proc_p>: Delete field.
5502 (current_interp_display_prompt_p): Delete declaration.
5503 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5504 (_initialize_mi_interp): Adjust.
5505 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5506 'command_error' observers.
5507 (tui_on_sync_execution_done, tui_on_command_error): New
5509 (tui_display_prompt_p): Delete.
5510 (_initialize_tui_interp): Adjust.
5512 2014-05-29 Pedro Alves <palves@redhat.com>
5515 * cli/cli-interp.c: Include infrun.h and observer.h.
5516 (cli_uiout, cli_interp): New globals.
5517 (cli_on_signal_received, cli_on_end_stepping_range)
5518 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5520 (cli_interpreter_init): Install them as 'end_stepping_range',
5521 'signal_received' 'signal_exited', 'exited' and 'no_history'
5523 (_initialize_cli_interp): Remove cli_interp local.
5524 * infrun.c (handle_inferior_event): Call the several stop reason
5525 observers instead of printing the stop reason directly.
5526 (end_stepping_range): New function.
5527 (print_end_stepping_range_reason, print_signal_exited_reason)
5528 (print_exited_reason, print_signal_received_reason)
5529 (print_no_history_reason): Make static, and add an uiout
5530 parameter. Print to that instead of to CURRENT_UIOUT.
5531 * infrun.h (print_end_stepping_range_reason)
5532 (print_signal_exited_reason, print_exited_reason)
5533 (print_signal_received_reason print_no_history_reason): New
5535 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5537 <cli_uiout>: New field.
5538 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5539 uiout for CLI output. Install 'signal_received',
5540 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5542 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5543 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5544 (mi_on_no_history): New functions.
5545 (ui_out_free_cleanup): Delete function.
5546 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5547 instead use the one already stored in the MI interpreter data.
5548 (mi_ui_out): Adjust.
5549 * tui/tui-interp.c: Include infrun.h and observer.h.
5550 (tui_interp): New global.
5551 (tui_on_signal_received, tui_on_end_stepping_range)
5552 (tui_on_signal_exited, tui_on_exited)
5553 (tui_on_no_history): New functions.
5554 (tui_init): Install them as 'end_stepping_range',
5555 'signal_received' 'signal_exited', 'exited' and 'no_history'
5557 (_initialize_tui_interp): Delete tui_interp local.
5559 2014-05-29 Pedro Alves <palves@redhat.com>
5562 * linux-nat.c (linux_nat_resume_callback): Rename the second
5563 parameter to 'except'. Skip LP if it points to EXCEPT.
5564 (linux_nat_resume): Don't mark the event lwp as not stopped
5565 before resuming sibling lwps. Instead ask
5566 linux_nat_resume_callback to skip the event lwp. Mark it as not
5567 stopped after actually resuming it.
5568 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5570 (wait_lwp): Mark the lwp as stopped here.
5571 (stop_wait_callback): Mark the lwp as not stopped right after
5572 resuming it. Don't mark lwps as stopped here.
5573 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5574 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5576 2014-05-29 Pedro Alves <palves@redhat.com>
5579 * infrun.c (resume): Determine how much to resume depending on
5580 whether the caller wanted a step, not whether we can hardware step
5581 the target. Mark all threads that we intend to run as running,
5582 unless we're calling an inferior function.
5583 (normal_stop): If the thread is running an infcall, don't finish
5585 * target.c (target_resume): Don't mark threads as running here.
5587 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5589 * serial.c (_initialize_serial): Remove support for
5590 the "set remotebaud" and "show remotebaud" commands.
5591 * NEWS: Add entry documenting the removal of that command.
5593 2014-05-28 Yao Qi <yao@codesourcery.com>
5595 * charset.c: Fix typo in comments.
5597 2014-05-27 Gary Benson <gbenson@redhat.com>
5599 * utils.c (internal_vproblem): Prompt for a bug report.
5601 2014-05-26 Andy Wingo <wingo@igalia.com>
5603 * guile/scm-arch.c (arscm_mark_arch_smob):
5604 * guile/scm-block.c (bkscm_mark_block_smob)
5605 (bkscm_mark_block_syms_progress_smob):
5606 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5607 * guile/scm-exception.c (exscm_mark_exception_smob):
5608 * guile/scm-frame.c (frscm_mark_frame_smob):
5609 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5610 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5611 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5612 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5613 (ppscm_mark_pretty_printer_worker_smob):
5614 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5615 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5616 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5617 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5619 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5622 2014-05-26 Andy Wingo <wingo@igalia.com>
5623 Doug Evans <xdje42@gmail.com>
5625 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5626 empty_base_class. All uses updated.
5627 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5628 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5630 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5631 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5632 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5633 (gdbscm_gsmob_has_property_p, add_property_name)
5634 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5635 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5636 (gdb-object-has-property?, gdb-object-properties): Remove.
5637 (gdb-object-kind): Renamed from gsmob-kind.
5639 2014-05-26 Andy Wingo <wingo@igalia.com>
5641 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5642 * configure: Regenerate.
5644 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5646 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5648 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5650 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5651 (replay_memory_access_read_only, replay_memory_access_read_write)
5652 (replay_memory_access_types, replay_memory_access)
5653 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5654 (cmd_set_record_btrace, cmd_show_record_btrace)
5655 (cmd_show_replay_memory_access): New.
5656 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5657 (record_btrace_remove_breakpoint): Replace
5658 record_btrace_allow_memory_access with replay_memory_access.
5659 (_initialize_record_btrace): Add commands.
5660 * NEWS: Announce it.
5662 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5664 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5666 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5668 * MAINTAINERS (Write After Approval): Move self back from
5671 2014-05-22 Pedro Alves <palves@redhat.com>
5673 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5674 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5675 (disable_randomization, enum exec_direction_kind)
5676 (execution_direction, stop_registers, start_remote)
5677 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5678 (wait_for_inferior, normal_stop, get_last_target_status)
5679 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5680 (insert_step_resume_breakpoint_at_sal)
5681 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5682 (set_step_info, print_stop_event, signal_stop_state)
5683 (signal_print_state, signal_pass_state, signal_stop_update)
5684 (signal_print_update, signal_pass_update)
5685 (update_signals_program_target, clear_exit_convenience_vars)
5686 (displaced_step_dump_bytes, update_observer_mode)
5687 (signal_catch_update, gdb_signal_from_command): Move
5689 * infrun.h: ... to this new file.
5690 * amd64-tdep.c: Include infrun.h.
5691 * annotate.c: Include infrun.h.
5692 * arch-utils.c: Include infrun.h.
5693 * arm-linux-tdep.c: Include infrun.h.
5694 * arm-tdep.c: Include infrun.h.
5695 * break-catch-sig.c: Include infrun.h.
5696 * breakpoint.c: Include infrun.h.
5697 * common/agent.c: Include infrun.h instead of inferior.h.
5698 * corelow.c: Include infrun.h.
5699 * event-top.c: Include infrun.h.
5700 * go32-nat.c: Include infrun.h.
5701 * i386-tdep.c: Include infrun.h.
5702 * inf-loop.c: Include infrun.h.
5703 * infcall.c: Include infrun.h.
5704 * infcmd.c: Include infrun.h.
5705 * infrun.c: Include infrun.h.
5706 * linux-fork.c: Include infrun.h.
5707 * linux-nat.c: Include infrun.h.
5708 * linux-thread-db.c: Include infrun.h.
5709 * monitor.c: Include infrun.h.
5710 * nto-tdep.c: Include infrun.h.
5711 * procfs.c: Include infrun.h.
5712 * record-btrace.c: Include infrun.h.
5713 * record-full.c: Include infrun.h.
5714 * remote-m32r-sdi.c: Include infrun.h.
5715 * remote-mips.c: Include infrun.h.
5716 * remote-notif.c: Include infrun.h.
5717 * remote-sim.c: Include infrun.h.
5718 * remote.c: Include infrun.h.
5719 * reverse.c: Include infrun.h.
5720 * rs6000-tdep.c: Include infrun.h.
5721 * s390-linux-tdep.c: Include infrun.h.
5722 * solib-irix.c: Include infrun.h.
5723 * solib-osf.c: Include infrun.h.
5724 * solib-svr4.c: Include infrun.h.
5725 * target.c: Include infrun.h.
5726 * top.c: Include infrun.h.
5727 * windows-nat.c: Include infrun.h.
5728 * mi/mi-interp.c: Include infrun.h.
5729 * mi/mi-main.c: Include infrun.h.
5730 * python/py-threadevent.c: Include infrun.h.
5732 2014-05-22 Pedro Alves <palves@redhat.com>
5734 * infrun.c (handle_inferior_event): Store the exit code for
5735 --return-child-result here, instead of ...
5736 (print_exited_reason): ... here.
5738 2014-05-21 Pedro Alves <palves@redhat.com>
5741 * gdbthread.h (struct thread_control_state): New field
5743 * infrun.c (follow_fork): Copy the new thread control field to the
5745 (clear_proceed_status_thread): Clear the new thread control field.
5746 (proceed): Set the new thread control field.
5747 * interps.h (command_interp): Declare.
5748 * interps.c (command_interpreter): New global.
5749 (command_interp): New function.
5750 (interp_exec): Set `command_interpreter' while here.
5751 * cli-out.c (cli_uiout_dtor): New function.
5752 (cli_ui_out_impl): Install it.
5753 * mi/mi-interp.c: Include cli-out.h.
5754 (mi_cmd_interpreter_exec): Add comment.
5755 (restore_current_uiout_cleanup): New function.
5756 (ui_out_free_cleanup): New function.
5757 (mi_on_normal_stop): If finishing an execution command started by
5758 a CLI command, or any kind of breakpoint-like event triggered,
5759 print the stop event to the output (CLI) stream.
5760 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5762 2014-05-21 Pedro Alves <palves@redhat.com>
5764 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5765 current source line having changed.
5766 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5767 * infrun.c (normal_stop): Adjust call to
5768 set_current_sal_from_frame.
5769 * source.c (clear_lines_listed_range): New function.
5770 (set_current_source_symtab_and_line, identify_source_line): Clear
5771 the lines listed range.
5772 (line_info): Handle the first "info line" after the current source
5773 line having changed.
5774 * stack.c (print_stack_frame): Remove center handling.
5775 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5778 2014-05-21 Pedro Alves <palves@redhat.com>
5780 * inf-child.c (inf_child_mourn_inferior): New function.
5781 * inf-child.h (inf_child_mourn_inferior): New declaration.
5782 * darwin-nat.c (darwin_mourn_inferior): Use
5783 inf_child_mourn_inferior.
5784 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5785 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5786 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5787 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5788 * windows-nat.c (windows_mourn_inferior): Likewise.
5790 2014-05-21 Doug Evans <xdje42@gmail.com>
5792 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5794 2014-05-21 Doug Evans <xdje42@gmail.com>
5796 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5797 (gdbscm_out_of_range_error): Ditto.
5798 (gdbscm_memory_error): Ditto.
5799 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5800 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5801 (gdbscm_out_of_range_error): Update.
5802 (gdbscm_memory_error): Update.
5803 (gdbscm_scm_to_target_string_unsafe): Delete.
5805 2014-05-21 Pedro Alves <palves@redhat.com>
5807 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5809 (inf_child_open_target): New function.
5810 (inf_child_open): Use inf_child_open_target to push the target
5811 instead of erroring out.
5812 (inf_child_disconnect, inf_child_close)
5813 (inf_child_maybe_unpush_target): New functions.
5814 (inf_child_target): Install inf_child_disconnect and
5815 inf_child_close. Store a pointer to the returned object.
5816 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5818 * target.c (auto_connect_native_target): New global.
5819 (show_default_run_target): New function.
5820 (find_default_run_target): Return NULL if automatically connecting
5821 to the native target is disabled.
5822 (_initialize_target): Install set/show auto-connect-native-target.
5823 * NEWS: Mention "set auto-connect-native-target", and "target
5825 * linux-nat.c (super_close): New global.
5826 (linux_nat_close): Call super_close.
5827 (linux_nat_add_target): Store a pointer to the base class's
5829 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5830 inf_child_maybe_unpush.
5831 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5833 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5834 the inferior. Use inf_child_maybe_unpush_target.
5835 (inf_ttrace_attach): Don't push the target if it is already
5837 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5838 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5839 after mourning the inferior. Use inf_child_maybe_unpush_target.
5840 (darwin_attach_pid): Don't push the target if it is already
5842 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5843 mourning the inferior. Use inf_child_maybe_unpush_target.
5844 (gnu_detach): Use inf_child_maybe_unpush_target.
5845 * go32-nat.c (go32_create_inferior): Don't push the target if it
5847 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5848 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5849 (procfs_open): Rename to ...
5850 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5851 comments. Can target_preopen before changing node. Call
5852 inf_child_open_target to push the target explicitly.
5853 (procfs_attach): Don't push the target if it is already pushed.
5854 (procfs_detach): Use inf_child_maybe_unpush_target.
5855 (procfs_create_inferior): Don't push the target if it is already
5857 (nto_native_ops): New global.
5858 (procfs_open): Reimplement.
5859 (procfs_native_open): New function.
5860 (init_procfs_targets): Install procfs_native_open as to_open of
5861 "target native". Store a pointer to the "native" target in
5863 * procfs.c (procfs_attach): Don't push the target if it is already
5865 (procfs_detach): Use inf_child_maybe_unpush_target.
5866 (procfs_mourn_inferior): Only unpush the target after mourning the
5867 inferior. Use inf_child_maybe_unpush_target.
5868 (procfs_init_inferior): Don't push the target if it is already
5870 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5871 if it is already pushed.
5873 2014-05-21 Pedro Alves <palves@redhat.com>
5875 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5876 and "procfs" targets are now called "native" instead.
5878 2014-05-21 Pedro Alves <palves@redhat.com>
5880 * go32-nat.c (go32_open): Delete.
5881 (go32_target): Don't override the to_open method.
5883 2014-05-21 Pedro Alves <palves@redhat.com>
5885 * nto-procfs.c (procfs_can_run): New function.
5886 (nto_procfs_ops): New global.
5887 (init_procfs_targets): New, based on procfs_target. Install
5888 "target native" in addition to "target procfs".
5889 (_initialize_procfs): Call init_procfs_targets instead of adding
5892 2014-05-21 Pedro Alves <palves@redhat.com>
5894 * windows-nat.c (windows_target): Don't override to_shortname,
5895 to_longname or to_doc.
5897 2014-05-21 Pedro Alves <palves@redhat.com>
5899 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5902 2014-05-21 Pedro Alves <palves@redhat.com>
5904 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5905 to_shortname, to_longname or to_doc.
5907 2014-05-21 Pedro Alves <palves@redhat.com>
5909 * go32-nat.c (go32_target): Don't override to_shortname,
5910 to_longname or to_doc.
5912 2014-05-21 Pedro Alves <palves@redhat.com>
5914 * inf-child.c (inf_child_open): Remove mention of "child".
5915 (inf_child_target): Rename target to "native" instead of "child".
5917 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5919 * Makefile.in (SFILES): Delete "regset.c".
5920 (COMMON_OBS): Delete "regset.o".
5922 * regset.h (regset_alloc): Delete prototype.
5924 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5926 * sparc-linux-tdep.c (sparc32_linux_gregset)
5927 (sparc32_linux_fpregset): New static regset structures.
5928 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5929 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5931 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5932 (sparc64_linux_fpregset): New static regset structures.
5933 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5934 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5935 New static regset structures.
5936 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5937 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5938 New static regset structures.
5939 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5940 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5941 New static regset structures.
5942 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5943 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5944 New static regset structures.
5945 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5947 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5949 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5950 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5951 register maps ("regmaps") from "*regset" to "*regmap". Do this
5952 for all regmap types and variables.
5953 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5954 (sparc32_linux_supply_core_gregset)
5955 (sparc32_linux_collect_core_gregset)
5956 (sparc32_linux_supply_core_fpregset)
5957 (sparc32_linux_collect_core_fpregset): Likewise.
5958 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5959 (sparc_gregmap, sparc_fpregmap): ... these.
5960 (sparc_supply_gregset, sparc_collect_gregset)
5961 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5962 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5963 (_initialize_sparc_nat): Rename regmaps.
5964 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5965 (sparc_gregmap, sparc_fpregmap): ... these.
5966 (sparc_supply_gregset, sparc_collect_gregset)
5967 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5968 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5970 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5971 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5973 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5975 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5976 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5977 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5979 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5980 (sparc32_bsd_fpregset): Rename to...
5981 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5982 (sparc32_bsd_fpregmap): ... these.
5983 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5984 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5985 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5986 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5987 (struct sparc_gregmap, struct sparc_fpregmap)
5988 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5989 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5990 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5991 (sparc32_supply_regset, sparc32_collect_gregset)
5992 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5994 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5995 (sparc64_linux_ptrace_gregmap): ... this.
5996 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5997 (_initialize_sparc64_linux_nat): Rename regmaps.
5998 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5999 (sparc64_linux_core_gregmap): ... this.
6000 (sparc64_linux_supply_core_gregset)
6001 (sparc64_linux_collect_core_gregset)
6002 (sparc64_linux_supply_core_fpregset)
6003 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6004 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6005 (sparc64_sol2_fpregset): Rename to...
6006 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6007 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6008 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6010 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6011 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6012 (sparc64_bsd_fpregset): Rename to...
6013 (struct sparc_gregmap, sparc64_sol2_gregmap)
6014 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6015 (sparc64_bsd_fpregmap): ... these.
6016 (sparc64_supply_gregset, sparc64_collect_gregset)
6017 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6019 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6020 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6021 (sparc64fbsd_gregmap): ... this.
6022 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6023 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6025 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6026 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6027 (sparc64nbsd_collect_fpregset): Likewise.
6028 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6029 (sparc64nbsd_gregmap): ... this.
6030 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6032 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6033 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6034 (sparc64obsd_gregmap): ... this.
6035 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6037 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6038 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6039 (sparc32nbsd_gregmap): ... this.
6040 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6043 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6045 * score-tdep.c (score7_linux_gregset): New static regset
6047 (score7_linux_regset_from_core_section): Remove dynamic regset
6049 (score_gdbarch_init): Drop allocation of tdep structure.
6050 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6052 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6054 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6056 (am33_regset_from_core_section): Remove dynamic regset
6059 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6061 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6062 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6064 (mips_linux_regset_from_core_section): Remove dynamic regset
6066 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6067 'gregset64', 'fpregset', and 'fpregset64'.
6068 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6069 deleted tdep fields.
6071 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6073 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6075 (amd64_regset_from_core_section): Remove dynamic regset
6077 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6079 (amd64obsd_regset_from_core_section): Remove dynamic regset
6081 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6083 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6084 x86-common regset supply function.
6085 * i386-tdep.c (i386_collect_gregset): Make static.
6086 (i386_gregset): New global regset structure.
6087 (i386_fpregset, i386_xstateregset): New static regset structures.
6088 (i386_regset_from_core_section): Remove dynamic regset
6090 (i386_gdbarch_init): Remove initialization of tdep fields
6091 'gregset', 'fpregset', and 'xstateregset'.
6092 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6093 'fpregset', and 'xstateregset'.
6094 (i386_collect_gregset): Remove prototype.
6095 (i386_gregset): New declaration.
6096 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6098 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6101 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6103 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6104 (arm_linux_vfpregset): New static regset structures.
6105 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6107 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6108 and 'vfpregset' fields.
6110 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6112 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6113 (aarch64_linux_fpregset): New static regset structures.
6114 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6115 of regset structures.
6116 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6119 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6121 * regset.h (struct regset): Remove gdbarch field.
6122 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6123 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6124 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6126 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6127 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6128 (ppc32_linux_vsxregset): Likewise.
6129 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6130 via the regcache instead of the regset.
6131 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6132 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6133 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6134 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6137 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6139 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6140 Constify structures.
6141 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6142 (alphanbsd_aout_gregset): Likewise.
6143 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6144 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6146 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6147 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6149 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6150 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6151 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6152 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6153 * m88k-tdep.c (m88k_gregset): Likewise.
6154 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6155 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6156 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6157 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6158 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6159 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6160 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6161 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6162 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6164 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6165 * sh-tdep.h (sh_corefile_gregset): Likewise.
6166 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6167 * vax-tdep.c (vax_gregset): Likewise.
6169 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6171 Fix TLS access for -static -pthread.
6172 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6173 (try_thread_db_load_1): Initialize it.
6174 (thread_db_get_thread_local_address): Call it if LM is zero.
6175 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6176 * target.h (struct target_ops) (to_get_thread_local_address): Add
6177 load_module_addr comment.
6179 2014-05-21 Pedro Alves <palves@redhat.com>
6181 * dcache.c (dcache_read_memory_partial): If reading the cache line
6182 fails, fallback to reading just the memory the caller wanted.
6184 2014-05-20 Doug Evans <dje@google.com>
6186 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6187 instead of get_current_arch.
6189 2014-05-20 Pedro Alves <palves@redhat.com>
6191 * NEWS: Mention that compare-sections now works with all targets.
6193 * remote.c (PACKET_qCRC): New enum value.
6194 (remote_verify_memory): Don't send qCRC if the target has no
6195 execution. Use packet_support/packet_ok. If the target doesn't
6196 support the qCRC packet, fallback to a deep memory copy.
6197 (compare_sections_command): Say "target image" instead of "remote
6199 (_initialize_remote): Add PACKET_qCRC to the list of config
6200 packets that have no associated command. Extend comment.
6201 * target.c (simple_verify_memory, default_verify_memory): New
6203 * target.h (struct target_ops) <to_verify_memory>: Default to
6204 default_verify_memory.
6205 (simple_verify_memory): New declaration.
6206 * target-delegates.c: Regenerate.
6208 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6210 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6212 2014-05-20 Hui Zhu <hui@codesourcery.com>
6213 Yao Qi <yao@codesourcery.com>
6216 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6217 and change address of sp and pc.
6219 2014-05-19 Tom Tromey <tromey@redhat.com>
6221 * gdbtypes.c (rank_function): Use XNEWVEC.
6222 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6224 2014-05-19 Doug Evans <dje@google.com>
6226 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6227 build_type_unit_groups and moved closer to only caller. Remove
6228 arguments. All references updated. Remove outdated .gdb_index
6230 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6231 build_type_psymtabs_1.
6233 2014-05-19 Doug Evans <dje@google.com>
6235 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6236 n_type_unit_groups, all_type_unit_groups. All uses removed.
6237 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6238 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6239 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6240 (add_type_unit_group_to_table): Delete.
6242 2014-05-19 Doug Evans <dje@google.com>
6244 * eval.c (evaluate_subexp_standard): Add some comments.
6246 2014-05-17 Doug Evans <xdje42@gmail.com>
6248 * progspace.c (remove_program_space): Delete, unused.
6249 * progspace.h (remove_program_space): Ditto.
6251 2014-05-17 Doug Evans <xdje42@gmail.com>
6253 * inferior.c (prune_inferiors): Fix comment.
6254 (remove_inferior_command): Call prune_program_spaces.
6256 2014-05-16 Doug Evans <dje@google.com>
6258 New command line option -D.
6260 * main.c (set_gdb_data_directory): New function.
6261 (captured_main): Recognize -D. Flag error for --data-directory "".
6262 Call set_gdb_data_directory.
6263 (print_gdb_help): Print --data-directory, -D.
6264 * main.h (set_gdb_data_directory): Declare.
6265 * top.c (staged_gdb_datadir): New static global.
6266 (set_gdb_datadir): Call set_gdb_data_directory
6267 (show_gdb_datadir): New function.
6268 (init_main): Update init of data-directory parameter.
6270 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6272 Import the "dirfd" gnulib module.
6273 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6274 * gnulib/aclocal.m4: Update.
6275 * gnulib/config.in: Update.
6276 * gnulib/configure: Update.
6277 * gnulib/import/Makefile.am: Update.
6278 * gnulib/import/Makefile.in: Update.
6279 * gnulib/import/dirfd.c: New.
6280 * gnulib/import/m4/dirfd.m4: New.
6281 * gnulib/import/m4/gnulib-cache.m4: Update.
6282 * gnulib/import/m4/gnulib-comp.m4: Update.
6284 2014-05-16 Pierre Muller <muller@sourceware.org>
6285 Yao Qi <yao@codesourcery.com>
6287 * valprint.c (print_wchar): Move the code on checking whether
6288 W is a printable wide char to the default branch of switch
6289 statement below. Call wchar_printable instead of gdb_iswprint.
6291 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6293 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6294 ldr.w and ldrd instructions.
6296 2014-05-15 Doug Evans <dje@google.com>
6298 * dwarf2read.c (read_structure_type): Delete outdated comments.
6300 2014-05-14 Tom Tromey <tromey@redhat.com>
6302 * macrocmd.c (print_macro_definition): Reindent.
6304 2014-05-13 Doug Evans <xdje42@gmail.com>
6306 * python/py-cmd.c (cmdpy_completer): Add comment.
6307 (completers): Make const.
6309 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6311 * infrun.c (resume): Remove should_resume (unused). Move up
6312 declaration of resume_ptid.
6314 2014-05-13 Tom Tromey <tromey@redhat.com>
6316 * language.h (unop_type_check): Remove.
6317 (binop_type_check): Don't declare.
6319 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6321 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6322 call to regcache_raw_collect.
6324 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6326 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6327 mi_console->quote as the quoting character.
6329 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6331 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6333 2014-04-29 Tom Tromey <tromey@redhat.com>
6335 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6336 "show debug varobj".
6338 2014-05-07 Kyle McMartin <kyle@redhat.com>
6340 Pushed by Joel Brobecker <brobecker@adacore.com>.
6341 * aarch64-tdep.c (aarch64_software_single_step): New function.
6342 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6343 with aarch64_software_single_step.
6345 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6349 2014-05-05 Keith Seitz <keiths@redhat.com>
6351 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6352 variable or history value is successfully parsed.
6354 2014-05-05 Yao Qi <yao@codesourcery.com>
6355 Pedro Alves <palves@redhat.com>
6357 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6358 address of blocks that intersects the requested range. Trim
6359 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6361 * ctf.c (ctf_xfer_partial): Likewise.
6363 2014-05-05 Yao Qi <yao@codesourcery.com>
6365 * printcmd.c (display_command): Remove the check to
6366 target_has_execution.
6368 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6370 * ppcobsd-nat.c: Include "obsd-nat.h".
6371 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6373 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6375 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6377 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6378 and 16-bit signed and unsigned arguments. Update comment.
6379 (stap_parse_probe_arguments): Extend code to handle such
6380 arguments. Use warning instead of complaint to notify about
6381 unrecognized bitness.
6383 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6385 PR breakpoints/16889
6386 * stap-probe.c (stap_parse_probe_arguments): Simplify
6387 check for non-prefixed probes (i.e., probes whose
6388 arguments do not start with "N@"). Always set the
6389 argument type to a sane value.
6391 2014-05-01 David Taylor <dtaylor@emc.com>
6393 * remote.c (compare_sections_command): Add -r option to compare
6394 all loadable read-only sections.
6396 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6398 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6399 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6401 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6402 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6403 Remove unused CORE_ADDR argument. Update all callers.
6405 2014-04-29 Pedro Alves <palves@redhat.com>
6407 * remote.c (struct packet_config) <detect>: Extend comment.
6408 (add_packet_config_cmd): Don't set the config's detect or support
6410 (init_all_packet_configs): Also initialize the config's 'detect'
6412 (reset_all_packet_configs_support): New function.
6413 (remote_open_1): Call reset_all_packet_configs_support instead of
6414 init_all_packet_configs.
6415 (_initialize_remote): Initialize all packet configs. Assert that
6416 all packets have an associated command, except a few known
6419 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6421 * dwarf2read.c (read_subrange_type): Handle dynamic
6422 DW_AT_lower_bound attributes.
6424 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6426 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6427 dynamic bounds before computing its upper bound.
6428 (ada_discrete_type_low_bound): Same as above with the lower bound.
6430 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6432 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6433 range types. Adjust the array handling implementation to
6434 take advantage of this change.
6435 (resolve_dynamic_range): New function, mostly extracted from
6436 resolve_dynamic_bounds.
6437 (resolve_dynamic_array): New function, mostly extracted from
6438 resolve_dynamic_bounds.
6439 (resolve_dynamic_bounds): Delete.
6440 (resolve_dynamic_type): Reimplement. Add handling of
6441 TYPE_CODE_RANGE types.
6443 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6445 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6446 handling of parallel ___XA types.
6448 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6450 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6451 unnecessary second call to static_unwrap_type.
6453 2014-04-27 Hui Zhu <hui@codesourcery.com>
6455 * stack.c (print_frame_info): Call do_gdb_disassembly with
6456 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6458 2014-04-26 Doug Evans <xdje42@gmail.com>
6460 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6462 2014-04-25 Pedro Alves <palves@redhat.com>
6465 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6466 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6467 and newline from built string.
6468 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6469 (linux_ptrace_attach_fail_reason): ... this.
6470 * linux-nat.c (linux_nat_attach): Adjust to use
6471 linux_ptrace_attach_fail_reason.
6473 2014-04-25 Pedro Alves <palves@redhat.com>
6475 * remote.c (struct remote_state): Remove multi_process_aware,
6476 non_stop_aware, cond_tracepoints, cond_breakpoints,
6477 breakpoint_commands, fast_tracepoints, static_tracepoints,
6478 install_in_trace, disconnected_tracing,
6479 enable_disable_tracepoints, string_tracing, and
6480 augmented_libraries_svr4_read fields.
6481 (remote_multi_process_p): Move further below in the file.
6482 (struct packet_config): Add comments.
6483 (update_packet_config): Delete function.
6484 (show_packet_config_cmd): Use packet_config_support.
6485 (add_packet_config_cmd): Use NULL as set callback.
6486 (packet_ok): "set remote foo-packet"-style commands no longer
6487 change config->supported -- adjust.
6488 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6489 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6490 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6491 (PACKET_QNonStop, PACKET_multiprocess_feature)
6492 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6493 (PACKET_DisconnectedTracing_feature)
6494 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6495 (set_remote_protocol_packet_cmd): Delete function.
6496 (packet_config_support, packet_support): New functions.
6497 (set_remote_protocol_Z_packet_cmd): Don't call
6498 update_packet_config.
6499 (remote_query_attached, remote_pass_signals)
6500 (remote_program_signals, remote_threads_info)
6501 (remote_threads_extra_info, remote_start_remote): Use
6503 (remote_start_remote): Use packet_config_support and
6505 (init_all_packet_configs): Set all packets to unknown support,
6506 instead of calling update_packet_config.
6507 (remote_check_symbols): Use packet_support.
6508 (remote_supported_packet): Unconditionally set the packet config's
6510 (remote_multi_process_feature, remote_non_stop_feature)
6511 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6512 (remote_breakpoint_commands_feature)
6513 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6514 (remote_install_in_trace_feature)
6515 (remote_disconnected_tracing_feature)
6516 (remote_enable_disable_tracepoint_feature)
6517 (remote_string_tracing_feature)
6518 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6519 (remote_protocol_features): Adjust to use remote_supported_packet
6520 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6521 "ConditionalTracepoints", "ConditionalBreakpoints",
6522 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6523 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6524 "EnableDisableTracepoints", and "tracenz".
6525 (remote_query_supported): Use packet_support.
6526 (remote_open_1): Adjust.
6527 (extended_remote_attach_1): Use packet_support. Switch on the
6528 result of packet_ok instead of checking whether the packet ended
6530 (remote_vcont_resume): Use packet_support.
6531 (remote_resume, remote_stop_ns, fetch_register_using_p)
6532 (remote_prepare_to_store, store_register_using_P)
6533 (check_binary_download, remote_write_bytes): Use packet_support.
6534 (remote_vkill): Use packet_support. Switch on the result of
6535 packet_ok instead of checking whether the packet ended up
6537 (extended_remote_supports_disable_randomization): Use
6539 (extended_remote_run): Switch on the result of packet_ok instead
6540 of checking whether the packet ended up disabled.
6541 (remote_insert_breakpoint, remote_remove_breakpoint)
6542 (remote_insert_watchpoint, remote_remove_watchpoint)
6543 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6545 (remote_search_memory): Use packet_config_support.
6546 (remote_get_thread_local_address, remote_get_tib_address)
6547 (remote_hostio_send_command, remote_can_execute_reverse): Use
6549 (remote_supports_cond_tracepoints)
6550 (remote_supports_cond_breakpoints)
6551 (remote_supports_fast_tracepoints)
6552 (remote_supports_static_tracepoints)
6553 (remote_supports_install_in_trace)
6554 (remote_supports_enable_disable_tracepoint)
6555 (remote_supports_string_tracing)
6556 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6557 the packet config says the feature is enabled or disabled.
6558 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6559 (remote_get_trace_status): Use packet_support.
6560 (remote_set_disconnected_tracing): Adjust to check whether the
6561 feature is enabled with packet_support.
6562 (remote_set_trace_buffer_size, remote_use_agent)
6563 (remote_can_use_agent, remote_supports_btrace): Use
6565 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6566 Use packet_config_support.
6567 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6568 the packet config says the feature is enabled or disabled.
6569 (set_range_stepping): Use packet_support.
6571 2014-04-25 Tom Tromey <tromey@redhat.com>
6573 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6576 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6578 * NEWS: Mention support for C99 variable length arrays.
6580 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6582 * ada-lang.c (standard_exc): Expand introductory comment.
6584 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6585 Walfred Tedeschi <walfred.tedeschi@intel.com>
6587 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6589 (amd64_linux_read_description): Add code to handle AVX512 xstate
6590 mask and return respective tdesc.
6591 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6592 and features/i386/x32-avx512-linux.c.
6593 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6594 (amd64_linux_core_read_description): Add code to handle AVX512
6595 xstate mask and return respective tdesc.
6596 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6597 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6599 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6600 (tdesc_amd64_avx512_linux): New prototype.
6601 (tdesc_x32_avx512_linux): Likewise.
6602 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6603 features/i386/x32-avx512.c.
6604 (amd64_ymm_avx512_names): New register names for pseudo
6606 (amd64_ymmh_avx512_names): New register names for raw registers
6608 (amd64_k_names): New register names for K registers.
6609 (amd64_zmmh_names): New register names for ZMM raw registers.
6610 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6611 (amd64_xmm_avx512_names): New register names for XMM16-31
6613 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6615 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6616 if feature is present.
6617 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6618 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6619 (AMD64_NUM_REGS): Adjust to new number of registers.
6620 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6621 registers supplied via XSTATE by AVX512 registers.
6622 (i386_linux_read_description): Add case for AVX512.
6623 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6624 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6625 (i386_linux_core_read_description): Add case for AVX512.
6626 (i386_linux_init_abi): Install supported register note section
6628 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6630 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6631 registers to be number of zmm7h + 1.
6632 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6633 * i386-tdep.c: Include features/i386/i386-avx512.c.
6634 (i386_zmm_names): Add ZMM pseudo register names array.
6635 (i386_zmmh_names): Add ZMM raw register names array.
6636 (i386_k_names): Add K raw register names array.
6637 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6638 registers. AVX512 has 16 more ZMM registers than there are YMM
6640 (i386_zmmh_regnum_p): Add function to look up register number of
6642 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6643 (i386_k_regnum_p): Likewise for K raw registers.
6644 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6645 registers added by AVX512.
6646 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6647 registers added by AVX512.
6648 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6650 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6651 (i386_pseudo_register_name): Add ZMM pseudo registers.
6652 (i386_zmm_type): Construct and return vector registers type for ZMM
6654 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6655 ZMM0-31 pseudo registers and K registers.
6656 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6657 and YMM16-31 registers from register cache.
6658 (i386_pseudo_register_write): Add code to write K, ZMM and
6660 (i386_register_reggroup_p): Add code to include/exclude AVX512
6661 registers in/from respective register groups.
6662 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6663 registers if feature is present in xcr0.
6664 (i386_gdbarch_init): Add code to initialize AVX512 feature
6665 variables in tdep structure, wire in pseudo registers and call
6666 initialize_tdesc_i386_avx512.
6667 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6669 (i386_regnum): Add AVX512 registers.
6670 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6671 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6672 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6673 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6675 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6676 (i386_ymm_avx512_regnum_p): Likewise.
6677 (i386_k_regnum_p): Likewise.
6678 (i386_zmm_regnum_p): Likewise.
6679 (i386_zmmh_regnum_p): Likewise.
6680 * i387-tdep.c : Update year in copyright notice.
6681 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6683 (XSAVE_YMM_AVX512_ADDR): New macro.
6684 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6686 (XSAVE_XMM_AVX512_ADDR): New macro.
6687 (xsave_avx512_k_offset): New table for K register offsets in
6689 (XSAVE_AVX512_K_ADDR): New macro.
6690 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6692 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6693 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6695 (i387_collect_xsave): Add code to collect AVX512 registers from
6697 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6698 of XMM16-31 registers.
6699 (I387_NUM_K_REGS): New define for number of K registers.
6700 (I387_K0_REGNUM): New define for K0 register number.
6701 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6702 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6703 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6705 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6706 (I387_XMM16_REGNUM): New define for XMM16 register number.
6707 (I387_YMM0_REGNUM): New define for YMM0 register number.
6708 (I387_KEND_REGNUM): New define for last K register number.
6709 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6710 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6712 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6714 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6716 * features/Makefile: Add AVX512 related files.
6717 * features/i386/32bit-avx512.xml: New file.
6718 * features/i386/64bit-avx512.xml: Likewise.
6719 * features/i386/amd64-avx512-linux.c: Likewise.
6720 * features/i386/amd64-avx512-linux.xml: Likewise.
6721 * features/i386/amd64-avx512.c: Likewise.
6722 * features/i386/amd64-avx512.xml: Likewise.
6723 * features/i386/i386-avx512-linux.c: Likewise.
6724 * features/i386/i386-avx512-linux.xml: Likewise.
6725 * features/i386/i386-avx512.c: Likewise.
6726 * features/i386/i386-avx512.xml: Likewise.
6727 * features/i386/x32-avx512-linux.c: Likewise.
6728 * features/i386/x32-avx512-linux.xml: Likewise.
6729 * features/i386/x32-avx512.c: Likewise.
6730 * features/i386/x32-avx512.xml: Likewise.
6731 * regformats/i386/amd64-avx512-linux.dat: New file.
6732 * regformats/i386/amd64-avx512.dat: Likewise.
6733 * regformats/i386/i386-avx512-linux.dat: Likewise.
6734 * regformats/i386/i386-avx512.dat: Likewise.
6735 * regformats/i386/x32-avx512-linux.dat: Likewise.
6736 * regformats/i386/x32-avx512.dat: Likewise.
6737 * NEWS: Add note about new support for AVX512.
6740 2014-04-23 Pedro Alves <palves@redhat.com>
6742 * breakpoint.c (insert_bp_location): Tolerate errors if the
6743 breakpoint is set in a user-loaded objfile.
6744 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6745 location is marked shlib_disabled. If the breakpoint is set in a
6746 user-loaded objfile is a GDB-side memory breakpoint, validate it
6747 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6748 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6750 * mem-break.c (memory_validate_breakpoint): New function.
6751 * objfiles.c (userloaded_objfile_contains_address_p): New
6753 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6754 * target.h (memory_validate_breakpoint): New declaration.
6756 2014-04-23 Pedro Alves <palves@redhat.com>
6758 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6759 the breakpoint is set in a shared library, only suppress
6760 errors for software breakpoints, not hardware breakpoints.
6762 2014-04-22 Pedro Alves <palves@redhat.com>
6764 * infrun.c (schedlock_applies): New function, factored out from
6765 find_thread_needs_step_over.
6766 (find_thread_needs_step_over): Use it.
6767 (switch_back_to_stepped_thread): Always clear trap_expected if the
6768 step over is finished. Return early if scheduler locking applies.
6769 Look for the stepping thread and a potential step-over thread with
6771 (currently_stepping_or_nexting_callback): Delete.
6773 2014-04-22 Nick Clifton <nickc@redhat.com>
6775 * NEWS: Mention that ARM sim now supports tracing.
6777 2014-04-22 Yao Qi <yao@codesourcery.com>
6779 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6781 * tracefile.c (tracefile_fetch_registers): ... it. New
6783 * tracefile.h (tracefile_fetch_registers): Declare.
6784 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6785 tracefile_fetch_registers.
6787 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6790 * windows-nat.c (thread_rec): Don't display a warning when
6791 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6792 fails for any reason, set th->suspended to -1, so that we don't
6793 try to resume such a thread. Also, don't return NULL in these
6794 cases, to avoid completely ruin the session due to "PC register is
6795 not available" error.
6796 (do_windows_fetch_inferior_registers): Check errors in
6797 GetThreadContext call.
6798 (windows_continue): Accept an additional argument KILLED; if not
6799 zero, ignore errors in the SetThreadContext call, since the
6800 inferior was killed and is shutting down.
6801 (windows_resume, get_windows_debug_event)
6802 (windows_create_inferior, windows_mourn_inferior)
6803 (windows_kill_inferior): All callers of windows_continue changed
6804 to adjust to its new calling sequence.
6806 2014-04-19 Yao Qi <yao@codesourcery.com>
6808 * ctf.c (ctf_open): Call post_create_inferior.
6810 2014-04-19 Yao Qi <yao@codesourcery.com>
6812 * ctf.c (handle_id): New static variable.
6813 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6814 value. Get the declaration of event "register" and get length
6815 of field "contents".
6817 2014-04-19 Yao Qi <yao@codesourcery.com>
6819 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6821 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6823 * valops.c (oload_method_static): Remove unnecessary argument
6824 METHOD. Update all callers.
6826 2014-04-18 Pedro alves <palves@redhat.com>
6827 Tom Tromey <tromey@redhat.com>
6830 * frame.c (get_prev_frame_1): Rename to ...
6831 (get_prev_frame_always): ... this, and make extern. Adjust.
6832 (skip_artificial_frames): Use get_prev_frame_always.
6833 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6834 (get_frame_unwind_stop_reason): Adjust to rename.
6835 * frame.h (get_prev_frame_always): Declare.
6836 * inline-frame.c: Include frame.h.
6837 (inline_frame_this_id): Use get_prev_frame_always.
6839 2014-04-18 Tristan Gingold <gingold@adacore.com>
6841 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6842 code by using bfd_mach_o_get_base_address.
6844 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6846 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6847 (spu_ax_pseudo_register_collect): New function.
6848 (spu_ax_pseudo_register_push_stack): Likewise.
6849 (spu_dwarf_reg_to_regnum): Likewise.
6850 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6852 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6854 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6855 Replace FRAME argument with FRAME_ID.
6856 * gdbarch.c, gdbarch.h: Regenerate.
6857 * findvar.c (default_value_from_register): Add GDBARCH argument;
6858 replace FRAME by FRAME_ID. No longer call get_frame_id.
6859 (value_from_register): Update call to gdbarch_value_from_register.
6860 * value.h (default_value_from_register): Update prototype.
6861 * s390-linux-tdep.c (s390_value_from_register): Update interface
6862 and call to default_value_from_register.
6863 * spu-tdep.c (spu_value_from_register): Likewise.
6865 * findvar.c (address_from_register): Remove TYPE argument.
6866 Do not call value_from_register; use gdbarch_value_from_register
6867 with null_frame_id instead.
6868 * value.h (address_from_register): Update prototype.
6869 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6870 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6871 address_from_register interface change.
6873 2014-04-17 Yao Qi <yao@codesourcery.com>
6875 * gdbtypes.h: Update comments to link to types and macros'
6878 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6880 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6882 2014-04-16 Keith Seitz <keiths@redhat.com>
6885 * dwarf2read.c (skip_one_die): Check that all relative-offset
6886 sibling DIEs fall within range of the current reader's buffer.
6887 (read_partial_die): Likewise.
6889 2014-04-16 Keith Seitz <keiths@redhat.com>
6892 * cp-namespace.c (lookup_symbol_file): If the type name of
6893 `this' is NULL, return immediately.
6895 2014-04-14 Keith Seitz <keiths@redhat.com>
6898 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6899 from symbol_matches_domain in symtab.c. All local callers
6900 of symbol_matches_domain updated.
6901 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6902 search STRUCT_DOMAIN.
6903 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6904 independently. standard_lookup will do that automatically.
6905 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6906 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6907 (cp_lookup_symbol_in_namespace): Likewise.
6908 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6909 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6910 may return a STRUCT_DOMAIN match.
6911 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6912 * cp-support.c: Include language.h.
6913 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6915 * psymtab.c (match_partial_symbol): Compare the requested
6916 domain with the symbol's domain directly.
6917 (lookup_partial_symbol): Likewise.
6918 * symtab.c (lookup_symbol_in_language): Explain when/why
6919 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6920 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6921 appropriate languages.
6922 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6923 and moved to ada-lang.c
6924 (lookup_block_symbol): Explain that this function only returns
6925 symbol matching the requested DOMAIN.
6926 Compare the requested domain with the symbol's domain directly.
6927 (iterate_over_symbols): Compare the requested domain with the
6928 symbol's domain directly.
6929 * symtab.h (symbol_matches_domain): Remove.
6931 2014-04-14 Tom Tromey <tromey@redhat.com>
6934 * c-exp.y (type_aggregate_p): New function.
6935 (qualified_name, classify_inner_name): Use it.
6936 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6937 and TYPE_TARGET_TYPE of an enum type.
6938 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6940 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6941 handle TYPE_DECLARED_CLASS.
6942 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6944 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6945 * valops.c (enum_constant_from_type): New function.
6946 (value_aggregate_elt): Use it.
6947 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6950 2014-04-14 Tom Tromey <tromey@redhat.com>
6952 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6953 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6955 * value.h (value_aggregate_elt): Update.
6957 2014-04-14 Tom Tromey <tromey@redhat.com>
6959 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6961 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6963 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6964 (evaluate_subexp_standard): Pass noside argument.
6965 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6966 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6967 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6968 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6969 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6973 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6974 points to a constant blob.
6976 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6978 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6979 property and store it as the high bound and flag the range accordingly.
6980 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6981 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6982 * gdbtypes.h (enum range_flags): New enum.
6983 (struct range_bounds): Add flags member.
6985 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6987 * c-typeprint.c (c_type_print_varspec_suffix): Added
6988 check for not yet resolved high bound. If unresolved, print
6989 "variable length" string to the console instead of random
6992 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6994 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6996 (ada_template_to_fixed_record_type_1): Likewise.
6997 (ada_to_fixed_type_1): Likewise.
6998 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6999 (cp_print_value): Likewise.
7000 * d-valprint.c (dynamic_array_type): Likewise.
7001 * findvar.c (address_of_variable): Likewise.
7002 * jv-valprint.c (java_value_print): Likewise.
7003 * valops.c (value_ind): Likewise.
7004 * value.c (coerce_ref): Likewise.
7006 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7008 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7009 value and retrieve the dynamic type size.
7011 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7013 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7014 passed to sizeof is dynamic evaluate the argument to compute the length.
7016 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7017 Joel Brobecker <brobecker@adacore.com>
7019 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7020 (dwarf2_evaluate_property): New function.
7021 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7022 * dwarf2read.c (attr_to_dynamic_prop): New function.
7023 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7025 * gdbtypes.c: Include dwarf2loc.h.
7026 (is_dynamic_type): New function.
7027 (resolve_dynamic_type): New function.
7028 (resolve_dynamic_bounds): New function.
7029 (get_type_length): New function.
7030 (check_typedef): Use get_type_length to compute type length.
7031 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7032 (TYPE_LOW_BOUND_KIND): New macro.
7033 (is_dynamic_type): New function prototype.
7034 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7035 to resolve dynamic properties of the type. Update comment.
7036 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7038 2014-04-14 Richard Henderson <rth@redhat.com>
7040 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7042 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7043 Doug Evans <xdje42@gmail.com>
7045 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7046 dereference TYPE_CODE_REF values.
7048 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7050 Revert the following changes due to regressions:
7052 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7053 (dwarf2_evaluate_property): New function.
7054 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7055 * dwarf2read.c (attr_to_dynamic_prop): New function.
7056 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7058 * gdbtypes.c: Include dwarf2loc.h.
7059 (is_dynamic_type): New function.
7060 (resolve_dynamic_type): New function.
7061 (resolve_dynamic_bounds): New function.
7062 (get_type_length): New function.
7063 (check_typedef): Use get_type_length to compute type length.
7064 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7065 (TYPE_LOW_BOUND_KIND): New macro.
7066 (is_dynamic_type): New function prototype.
7067 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7068 to resolve dynamic properties of the type. Update comment.
7069 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7071 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7072 passed to sizeof is dynamic evaluate the argument to compute the length.
7074 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7075 value and retrieve the dynamic type size.
7077 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7078 (ada_template_to_fixed_record_type_1): Likewise.
7079 (ada_to_fixed_type_1): Likewise.
7080 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7081 (cp_print_value): Likewise.
7082 * d-valprint.c (dynamic_array_type): Likewise.
7083 * eval.c (evaluate_subexp_with_coercion): Likewise.
7084 * findvar.c (address_of_variable): Likewise.
7085 * jv-valprint.c (java_value_print): Likewise.
7086 * valops.c (value_ind): Likewise.
7087 * value.c (coerce_ref): Likewise.
7089 * c-typeprint.c (c_type_print_varspec_suffix): Added
7090 check for not yet resolved high bound. If unresolved, print
7091 "variable length" string to the console instead of random
7094 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7095 property and store it as the high bound and flag the range accordingly.
7096 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7097 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7098 * gdbtypes.h (enum range_flags): New enum.
7099 (struct range_bounds): Add flags member.
7101 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7102 points to a constant blob.
7104 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7105 (evaluate_subexp_standard): Pass noside argument.
7106 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7107 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7108 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7109 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7110 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7112 2014-04-11 Keith Seitz <keiths@redhat.com>
7115 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7116 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7119 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7121 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7122 (evaluate_subexp_standard): Pass noside argument.
7123 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7124 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7125 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7126 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7127 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7131 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7132 points to a constant blob.
7134 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7136 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7137 property and store it as the high bound and flag the range accordingly.
7138 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7139 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7140 * gdbtypes.h (enum range_flags): New enum.
7141 (struct range_bounds): Add flags member.
7143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7145 * c-typeprint.c (c_type_print_varspec_suffix): Added
7146 check for not yet resolved high bound. If unresolved, print
7147 "variable length" string to the console instead of random
7150 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7152 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7153 (ada_template_to_fixed_record_type_1): Likewise.
7154 (ada_to_fixed_type_1): Likewise.
7155 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7156 (cp_print_value): Likewise.
7157 * d-valprint.c (dynamic_array_type): Likewise.
7158 * eval.c (evaluate_subexp_with_coercion): Likewise.
7159 * findvar.c (address_of_variable): Likewise.
7160 * jv-valprint.c (java_value_print): Likewise.
7161 * valops.c (value_ind): Likewise.
7162 * value.c (coerce_ref): Likewise.
7164 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7166 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7167 value and retrieve the dynamic type size.
7169 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7171 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7172 passed to sizeof is dynamic evaluate the argument to compute the length.
7174 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7176 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7177 (dwarf2_evaluate_property): New function.
7178 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7179 * dwarf2read.c (attr_to_dynamic_prop): New function.
7180 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7182 * gdbtypes.c: Include dwarf2loc.h.
7183 (is_dynamic_type): New function.
7184 (resolve_dynamic_type): New function.
7185 (resolve_dynamic_bounds): New function.
7186 (get_type_length): New function.
7187 (check_typedef): Use get_type_length to compute type length.
7188 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7189 (TYPE_LOW_BOUND_KIND): New macro.
7190 (is_dynamic_type): New function prototype.
7191 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7192 to resolve dynamic properties of the type. Update comment.
7193 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7195 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7197 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7198 declaring high/low bounds and change uses accordingly. Call
7199 create_range_type instead of create_static_range_type.
7200 * gdbtypes.c (create_range_type): New function.
7201 (create_range_type): Convert bounds into struct bound_prop and pass
7202 them to create_range_type.
7203 * gdbtypes.h (struct bound_prop): New struct.
7204 (create_range_type): New function prototype.
7205 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7206 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7207 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7209 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7211 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7213 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7214 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7215 * ada-lang.c: All uses of create_range_type updated.
7216 * coffread.c: All uses of create_range_type updated.
7217 * dwarf2read.c: All uses of create_range_type updated.
7218 * f-exp.y: All uses of create_range_type updated.
7219 * m2-valprint.c: All uses of create_range_type updated.
7220 * mdebugread.c: All uses of create_range_type updated.
7221 * stabsread.c: All uses of create_range_type updated.
7222 * valops.c: All uses of create_range_type updated.
7223 * valprint.c: All uses of create_range_type updated.
7225 2014-04-10 Pedro Alves <palves@redhat.com>
7227 * breakpoint.c (single_step_breakpoints)
7228 (single_step_gdbarch): Move up in the file.
7229 (one_breakpoint_xfer_memory): New function, factored out from ...
7230 (breakpoint_xfer_memory): ... here. Also process single-step
7233 2014-04-09 Tristan Gingold <gingold@adacore.com>
7235 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7237 (darwin_decode_exception_message): Free port only after use.
7239 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7241 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7242 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7243 when setting the size of call_length.
7245 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7247 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7248 dereference TYPE_CODE_REF values.
7250 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7252 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7253 end of warning message.
7255 2014-04-03 Doug Evans <dje@google.com>
7257 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7258 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7260 2014-04-02 Alan Modra <amodra@gmail.com>
7262 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7263 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7264 (struct symbol_file_add_from_memory_args): Add size field.
7265 (find_vdso_size): New function.
7266 (add_vsyscall_page): Attempt to find vdso size.
7268 2014-04-01 Doug Evans <dje@google.com>
7270 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7272 2014-04-01 Tristan Gingold <gingold@adacore.com>
7274 * darwin-nat.c (darwin_encode_reply): Add prototype.
7275 (darwin_decode_exception_message): Reply to unknown inferiors.
7276 (darwin_decode_message): Handle message by id. Ignore message
7277 to unknown inferior.
7278 (darwin_wait): Discard unknown messages, add debug trace.
7280 2014-03-31 Doug Evans <dje@google.com>
7282 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7285 2014-03-31 Doug Evans <dje@google.com>
7287 New option "set print symbol-loading".
7289 * solib.c (solib_read_symbols): Only print symbol loading messages
7291 (solib_add): If symbol loading is in "brief" mode, notify user
7292 symbols are being loaded.
7293 (reload_shared_libraries_1): Ditto.
7294 * symfile.c (print_symbol_loading_off): New static global.
7295 (print_symbol_loading_brief): New static global.
7296 (print_symbol_loading_full): New static global.
7297 (print_symbol_loading_enums): New static global.
7298 (print_symbol_loading): New static global.
7299 (print_symbol_loading_p): New function.
7300 (symbol_file_add_with_addrs): Only print symbol loading messages
7302 (_initialize_symfile): Register "print symbol-loading" set/show
7304 * symfile.h (print_symbol_loading_p): Declare.
7306 2014-03-30 Doug Evans <xdje42@gmail.com>
7308 * infrun.c (set_last_target_status): New function.
7309 (handle_inferior_event): Call it.
7311 2014-03-30 Doug Evans <xdje42@gmail.com>
7313 * inferior.h (enum stop_kind): Improve comment.
7315 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7317 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7318 a reference, strip the reference layer before calling
7319 the lang_ops value_has_mutated callback.
7321 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7323 Remove some globals from our parser.
7324 * language.c (unk_lang_parser): Add "struct parser_state"
7326 * language.h (struct language_defn) <la_parser>: Likewise.
7327 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7328 (initialize_expout): Add "struct parser_state" argument.
7329 Rewrite function to use the parser state.
7330 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7331 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7332 write_exp_elt_longcst, write_exp_elt_dblcst,
7333 write_exp_elt_decfloatcst, write_exp_elt_type,
7334 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7335 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7336 write_dollar_variable): Likewise.
7337 (parse_exp_in_context_1): Use parser state.
7338 (insert_type_address_space): Add "struct parser_state" argument.
7340 (increase_expout_size): New function.
7341 * parser-defs.h: Forward declare "struct language_defn" and
7342 "struct parser_state".
7343 (expout, expout_size, expout_ptr): Remove extern declarations.
7344 (parse_gdbarch, parse_language): Rewrite macro declarations to
7345 accept the parser state.
7346 (struct parser_state): New struct.
7347 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7348 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7349 write_exp_elt_decfloatcst, write_exp_elt_type,
7350 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7351 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7352 write_exp_msymbol, write_dollar_variable,
7353 mark_struct_expression, insert_type_address_space): Add "struct
7354 parser_state" argument.
7355 (increase_expout_size): New function.
7356 * utils.c (do_clear_parser_state): New function.
7357 (make_cleanup_clear_parser_state): Likewise.
7358 * utils.h (make_cleanup_clear_parser_state): New function
7360 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7361 Update calls to write_exp* in order to pass the parser state.
7362 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7363 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7364 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7365 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7366 * stap-probe.c (stap_parse_register_operand): Likewise.
7367 (stap_parse_single_operand): Likewise.
7368 (stap_parse_argument_1): Likewise.
7369 (stap_parse_argument): Use parser state.
7370 * stap-probe.h: Include "parser-defs.h".
7371 (struct stap_parse_info) <pstate>: New field.
7372 * c-exp.y (parse_type): Rewrite to use parser state.
7373 (yyparse): Redefine to c_parse_internal.
7374 (pstate): New global variable.
7375 (parse_number): Add "struct parser_state" argument.
7376 (write_destructor_name): Likewise.
7377 (type_exp): Update calls to write_exp* and similars in order to
7379 (exp1, exp, variable, qualified_name, space_identifier,
7380 typename, typebase): Likewise.
7381 (write_destructor_name, parse_number, lex_one_token,
7382 classify_name, classify_inner_name, c_parse): Add "struct
7383 parser_state" argument. Update function to use parser state.
7384 * c-lang.h: Forward declare "struct parser_state".
7385 (c_parse): Add "struct parser_state" argument.
7386 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7387 (yyparse): Redefine macro to ada_parse_internal.
7388 (pstate): New variable.
7389 (write_int, write_object_renaming, write_var_or_type,
7390 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7391 type_int, type_long, type_long_long, type_float, type_double,
7392 type_long_double, type_char, type_boolean, type_system_address):
7393 Add "struct parser_state" argument.
7394 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7395 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7396 var_or_type, aggregate, aggregate_component_list,
7397 positional_list, others, component_group,
7398 component_associations): Update calls to write_exp* and similar
7399 functions in order to use parser state.
7400 (ada_parse, write_var_from_sym, write_int,
7401 write_exp_op_with_string, write_object_renaming,
7402 find_primitive_type, write_selectors, write_ambiguous_var,
7403 write_var_or_type, write_name_assoc, type_int, type_long,
7404 type_long_long, type_float, type_double, type_long_double,
7405 type_char, type_boolean, type_system_address): Add "struct
7406 parser_state" argument. Adjust function to use parser state.
7407 * ada-lang.c (parse): Likewise.
7408 * ada-lang.h: Forward declare "struct parser_state".
7409 (ada_parse): Add "struct parser_state" argument.
7410 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7411 calls to both functions.
7412 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7414 (yyparse): Redefine macro to f_parse_internal.
7415 (pstate): New variable.
7416 (parse_number): Add "struct parser_state" argument.
7417 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7418 and similars in order to use parser state.
7419 (parse_number): Adjust code to use parser state.
7421 (f_parse): New function.
7422 * f-lang.h: Forward declare "struct parser_state".
7423 (f_parse): Add "struct parser_state" argument.
7424 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7426 (yyparse): Redefine macro for java_parse_internal.
7427 (pstate): New variable.
7428 (push_expression_name, push_expression_name, insert_exp): Add
7429 "struct parser_state" argument.
7430 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7431 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7432 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7433 PostIncrementExpression, PostDecrementExpression,
7434 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7435 UnaryExpressionNotPlusMinus, CastExpression,
7436 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7437 RelationalExpression, EqualityExpression, AndExpression,
7438 ExclusiveOrExpression, InclusiveOrExpression,
7439 ConditionalAndExpression, ConditionalOrExpression,
7440 ConditionalExpression, Assignment, LeftHandSide): Update
7441 calls to write_exp* and similars in order to use parser state.
7442 (parse_number): Ajust code to use parser state.
7444 (java_parse): New function.
7445 (push_variable): Add "struct parser_state" argument. Adjust
7446 code to user parser state.
7447 (push_fieldnames, push_qualified_expression_name,
7448 push_expression_name, insert_exp): Likewise.
7449 * jv-lang.h: Forward declare "struct parser_state".
7450 (java_parse): Add "struct parser_state" argument.
7451 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7453 (yyparse): Redefine macro to m2_parse_internal.
7454 (pstate): New variable.
7455 (type_exp, exp, fblock, variable, type): Update calls to
7456 write_exp* and similars to use parser state.
7458 (m2_parse): New function.
7459 * m2-lang.h: Forward declare "struct parser_state".
7460 (m2_parse): Add "struct parser_state" argument.
7461 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7462 * objc-lang.h: Forward declare "struct parser_state".
7463 (end_msglist): Add "struct parser_state" argument.
7464 * p-exp.y (parse_type): Rewrite macro to use parser state.
7465 (yyparse): Redefine macro to pascal_parse_internal.
7466 (pstate): New variable.
7467 (parse_number): Add "struct parser_state" argument.
7468 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7469 write_exp* and similars in order to use parser state.
7470 (parse_number, yylex): Adjust code to use parser state.
7471 (pascal_parse): New function.
7472 * p-lang.h: Forward declare "struct parser_state".
7473 (pascal_parse): Add "struct parser_state" argument.
7474 * go-exp.y (parse_type): Rewrite macro to use parser state.
7475 (yyparse): Redefine macro to go_parse_internal.
7476 (pstate): New variable.
7477 (parse_number): Add "struct parser_state" argument.
7478 (type_exp, exp1, exp, variable, type): Update calls to
7479 write_exp* and similars in order to use parser state.
7480 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7481 to use parser state.
7482 (go_parse): Likewise.
7483 * go-lang.h: Forward declare "struct parser_state".
7484 (go_parse): Add "struct parser_state" argument.
7486 2014-03-27 Doug Evans <dje@google.com>
7488 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7490 2014-03-27 Doug Evans <dje@google.com>
7492 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7493 Remove argument abbrev_section. All callers updated.
7495 2014-03-27 Doug Evans <dje@google.com>
7497 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7498 addr_base, ranges_base.
7500 2014-03-26 Keith Seitz <keiths@redhat.com>
7502 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7503 types, not VAR_DOMAIN.
7505 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7507 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7509 * features/nios2-linux.c: Regenerated.
7510 * features/nios2.c: Regenerated.
7512 2014-03-25 Pedro Alves <palves@redhat.com>
7514 * cli/cli-script.c (script_from_file): Force the interpreter to
7517 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7519 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7520 small stack allocation.
7522 2014-03-24 Tristan Gingold <gingold@adacore.com>
7524 * darwin-nat.c (exc_server): Remove unused prototype.
7525 (darwin_dump_message): Correctly display data on x86_64.
7526 (darwin_encode_reply): Fix style.
7527 Add comments and fix indentation.
7529 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7531 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7533 2014-03-22 Doug Evans <xdje42@gmail.com>
7535 * infcmd.c: Whitespace fixes.
7536 (interrupt_command): Merge two function comments into one.
7538 2014-03-22 Doug Evans <xdje42@gmail.com>
7540 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7543 2014-03-22 Yao Qi <yao@codesourcery.com>
7545 * remote.c (target_read_live_memory): Remove.
7546 (memory_xfer_live_readonly_partial): Rename it to
7547 remote_xfer_live_readonly_partial. Remove argument 'object'.
7548 All callers updated. Call remote_read_bytes_1
7549 instead of target_read_live_memory.
7550 * tracepoint.c (set_traceframe_number): Remove.
7551 (make_cleanup_restore_traceframe_number): Likewise .
7552 * tracepoint.h (set_traceframe_number): Remove declaration.
7553 (make_cleanup_restore_traceframe_number): Likewise.
7555 2014-03-22 Yao Qi <yao@codesourcery.com>
7557 * remote.c (remote_read_bytes): Move code on reading from the
7559 (remote_read_bytes_1): ... here. New function.
7561 2014-03-22 Yao Qi <yao@codesourcery.com>
7563 * ctf.c (ctf_xfer_partial): Check the return value of
7564 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7565 return TARGET_XFER_UNAVAILABLE.
7566 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7567 * target.c (target_read_live_memory): Move it to remote.c.
7568 (memory_xfer_live_readonly_partial): Likewise.
7569 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7570 * remote.c (target_read_live_memory): Moved from target.c.
7571 (memory_xfer_live_readonly_partial): Likewise.
7572 (remote_read_bytes): Factored out from
7573 memory_xfer_partial_1.
7575 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7577 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7580 2014-03-21 Pedro Alves <palves@redhat.com>
7582 * infrun.c (normal_stop): Extend comment.
7584 2014-03-21 Hui Zhu <hui@codesourcery.com>
7585 Pedro Alves <palves@redhat.com>
7587 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7589 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7590 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7591 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7593 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7595 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7596 `z' formatted output modifier.
7598 2014-03-20 Tom Tromey <tromey@redhat.com>
7599 Sergio Durigan Junior <sergiodj@redhat.com>
7601 * probe.c (parse_probes): Turn assert into an ordinary error.
7602 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7603 exceptions when parsing probes. Rearrange the code for clarity.
7605 2014-03-20 Tom Tromey <tromey@redhat.com>
7608 * top.c (execute_command): Only dispatch events if the command
7611 2014-03-20 Tom Tromey <tromey@redhat.com>
7614 * infcall.c: Include event-top.h.
7615 (run_inferior_call): Call async_disable_stdin if needed.
7617 2014-03-20 Pedro Alves <palves@redhat.com>
7619 * infrun.c (prepare_to_proceed): Delete.
7620 (thread_still_needs_step_over): New function.
7621 (find_thread_needs_step_over): New function.
7622 (proceed): If the current thread needs a step-over, set its
7623 steping_over_breakpoint flag. Adjust to use
7624 find_thread_needs_step_over instead of prepare_to_proceed.
7625 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7626 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7628 (switch_back_to_stepped_thread): Step over breakpoints of all
7629 threads not the stepping thread, before switching back to the
7632 2014-03-20 Pedro Alves <palves@redhat.com>
7634 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7636 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7637 * infrun.c (saved_singlestep_ptid)
7638 (stepping_past_singlestep_breakpoint): Delete.
7639 (resume): Remove stepping_past_singlestep_breakpoint handling.
7640 (proceed): Store the prev_pc of the stepping thread too.
7641 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7643 (enum infwait_states): Delete infwait_thread_hop_state.
7644 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7646 (handle_inferior_event): Adjust.
7647 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7648 handling and the thread-hop code. Before removing single-step
7649 breakpoints, check whether the thread hit a single-step breakpoint
7650 of another thread. If it did, the trap is not a random signal.
7651 (switch_back_to_stepped_thread): If the event thread hit a
7652 single-step breakpoint, unblock it before switching to the
7653 stepping thread. Handle the case of the stepped thread having
7655 (keep_going): Handle the case of the current thread moving past a
7656 single-step breakpoint.
7658 2014-03-20 Pedro Alves <palves@redhat.com>
7661 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7662 are being stepped over.
7663 (breakpoint_address_match): Make extern.
7664 * breakpoint.h (breakpoint_address_match): New declaration.
7665 * inferior.h (stepping_past_instruction_at): New declaration.
7666 * infrun.c (struct step_over_info): New type.
7667 (step_over_info): New global.
7668 (set_step_over_info, clear_step_over_info)
7669 (stepping_past_instruction_at): New functions.
7670 (handle_inferior_event): Clear the step-over info when
7671 trap_expected is cleared.
7672 (resume): Remove now stale comment.
7673 (clear_proceed_status): Clear step-over info.
7674 (proceed): Adjust step-over handling to set or clear the step-over
7675 info instead of removing all breakpoints.
7676 (handle_signal_stop): When setting up a thread-hop, don't remove
7678 (stop_stepping): Clear step-over info.
7679 (keep_going): Adjust step-over handling to set or clear step-over
7680 info and then always inserting breakpoints, instead of removing
7681 all breakpoints when stepping over one.
7683 2014-03-20 Pedro Alves <palves@redhat.com>
7685 * infrun.c (previous_inferior_ptid): Adjust comment.
7686 (deferred_step_ptid): Delete.
7687 (infrun_thread_ptid_changed, prepare_to_proceed)
7688 (init_wait_for_inferior): Adjust.
7689 (handle_signal_stop): Delete deferred_step_ptid handling.
7691 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7694 * defs.h (sync_quit_force_run): New declaration.
7695 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7696 * event-top.c (async_sigterm_handler): New declaration.
7697 (async_sigterm_token): New variable.
7698 (async_init_signals): Create also async_sigterm_token.
7699 (async_sigterm_handler): New function.
7700 (sync_quit_force_run): New variable.
7701 (handle_sigterm): Replace quit_force call by other calls.
7702 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7704 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7706 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7707 offset into SPE pseudo registers.
7709 2014-03-18 Pedro Alves <palves@redhat.com>
7712 * inferior.h (print_stop_event): Declare.
7713 * infrun.c (print_stop_event): New, factored out from ...
7714 (normal_stop): ... this.
7715 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7716 of bpstat_print/print_stack_frame.
7718 2014-03-17 Tom Tromey <tromey@redhat.com>
7720 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7722 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7724 * ada-lang.c (decode_constrained_packed_array): Perform a
7725 minimal coercion for reference with coerce_ref instead of
7728 2014-03-17 Tristan Gingold <gingold@adacore.com>
7730 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7731 (darwin_solib_create_inferior_hook): Emit a warning if version
7734 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7736 * python/py-value.c (get_field_flag): Cast flag_name argument to
7737 PyObject_GetAttrString to support Python 2.4.
7739 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7741 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7742 (Global Maintainers): Remove Jan Kratochvil.
7744 2014-03-14 Pedro Alves <palves@redhat.com>
7746 * inferior.h (terminal_ours_for_output): Rename to ...
7747 (child_terminal_ours_for_output): ... this.
7748 (terminal_save_ours): Rename to ...
7749 (child_terminal_save_ours): ... this.
7750 (terminal_ours): Rename to ...
7751 (child_terminal_ours): ... this.
7752 (terminal_inferior): Rename to ...
7753 (child_terminal_inferior): ... this.
7754 (terminal_init_inferior): Rename to ...
7755 (child_terminal_init_inferior): ... this.
7756 (terminal_init_inferior_with_pgrp): Rename to ...
7757 (child_terminal_init_inferior_with_pgrp): ... this.
7758 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7759 (child_terminal_init_with_pgrp): ... this.
7760 (terminal_save_ours): Rename to ...
7761 (child_terminal_save_ours): ... this.
7762 (terminal_init_inferior): Rename to ...
7763 (child_terminal_init): ... this. Adjust.
7764 (terminal_inferior): Rename to ...
7765 (child_terminal_inferior): ... this.
7766 (terminal_ours_for_output): Rename to ...
7767 (child_terminal_ours_for_output): ... this. Adjust.
7768 (terminal_ours): Rename to ...
7769 (child_terminal_ours): ... this.
7770 (terminal_ours_1): Rename to ...
7771 (child_terminal_ours_1): ... this. Adjust.
7772 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7773 * windows-nat.c (do_initial_windows_stuff): Adjust.
7774 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7775 (gnu_terminal_init): ... this. Adjust.
7776 (gnu_target): Adjust.
7777 * inf-child.c (inf_child_target): Adjust.
7779 2014-03-13 Doug Evans <xdje42@gmail.com>
7782 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7785 2014-03-13 Doug Evans <xdje42@gmail.com>
7787 * value.c (record_latest_value): Call release_value_or_incref
7788 instead of release_value.
7790 2014-03-13 Pedro Alves <palves@redhat.com>
7792 * procfs.c (procfs_target): Don't override to_shortname,
7793 to_longname or to_doc.
7795 2014-03-13 Pedro Alves <palves@redhat.com>
7797 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7798 Unix in user visible strings.
7800 2014-03-12 Stan Shebs <stan@codesourcery.com>
7802 * gdbtypes.h: Annotate comments for Doxygen, add a page
7803 block comment with some general info.
7805 2014-03-12 Pedro Alves <palves@redhat.com>
7807 * infcmd.c (prepare_execution_command): New function, factored out
7808 from several execution commands.
7809 (run_command_1, continue_command, step_1, jump_command)
7810 (signal_command, until_command, advance_command, finish_command)
7811 (attach_command): Use prepare_execution_command.
7813 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7815 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7818 (struct arm_linux_thread_points): Removed.
7819 (struct arm_linux_process_info): New.
7820 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7821 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7822 (arm_linux_find_breakpoints_by_tid): Removed.
7823 (struct arch_lwp_info): New.
7824 (arm_linux_find_process_pid): New functions.
7825 (arm_linux_add_process): New functions.
7826 (arm_linux_process_info_get): New functions.
7827 (arm_linux_forget_process): New function.
7828 (arm_linux_get_debug_reg_state): New function.
7829 (struct update_registers_data): New.
7830 (update_registers_callback): New function.
7831 (arm_linux_insert_hw_breakpoint1): Updated.
7832 (arm_linux_remove_hw_breakpoint1): Updated.
7833 (arm_linux_insert_hw_breakpoint): Updated.
7834 (arm_linux_remove_hw_breakpoint): Updated.
7835 (arm_linux_insert_watchpoint): Updated.
7836 (arm_linux_remove_watchpoint): Updated.
7837 (arm_linux_new_thread): Updated.
7838 (arm_linux_prepare_to_resume): New function.
7839 (arm_linux_new_fork): New function.
7840 (_initialize_arm_linux_nat): Updated.
7842 2014-03-12 Pedro Alves <palves@redhat.com>
7844 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7846 2014-03-12 Tom Tromey <tromey@redhat.com>
7848 * inf-child.c (return_zero): New function.
7849 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7850 * aix-thread.c (aix_thread_inferior_created): New function.
7851 (aix_thread_attach): Remove.
7852 (init_aix_thread_ops): Don't set to_attach.
7853 (_initialize_aix_thread): Register inferior_created observer.
7854 * corelow.c (init_core_ops): Don't set to_attach or
7856 * exec.c (init_exec_ops): Don't set to_attach or
7858 * infcmd.c (run_command_1): Use find_run_target. Make direct
7860 (attach_command): Use find_attach_target. Make direct target
7862 * record-btrace.c (init_record_btrace_ops): Don't set
7864 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7866 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7867 set to_create_inferior.
7868 * target.c (complete_target_initialization): Add assertion.
7869 (target_create_inferior): Remove.
7870 (find_default_attach, find_default_create_inferior): Remove.
7871 (find_attach_target, find_run_target): New functions.
7872 (find_default_is_async_p, find_default_can_async_p)
7873 (target_supports_non_stop, target_attach): Remove.
7874 (init_dummy_target): Don't set to_create_inferior or
7875 to_supports_non_stop.
7876 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7877 TARGET_DEFAULT_FUNC.
7878 <to_create_inferior>: Add comment.
7879 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7880 TARGET_DEFAULT_RETURN.
7881 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7882 (find_attach_target, find_run_target): Declare.
7883 (target_create_inferior): Remove.
7884 (target_has_execution_1): Update comment.
7885 (target_supports_non_stop): Remove.
7886 * target-delegates.c: Rebuild.
7888 2014-03-12 Pedro Alves <palves@redhat.com>
7890 * inf-child.h: Update comment to not mention Unix.
7892 2014-03-12 Pedro Alves <palves@redhat.com>
7894 * inf-child.c: Update top comment to not mention Unix. Add
7895 generic comment describing how this target is meant to be used.
7896 (inf_child_post_attach, inf_child_post_startup_inferior)
7897 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7900 2014-03-12 Pedro Alves <palves@redhat.com>
7902 * nto-procfs.c: Include inf-child.h.
7903 (procfs_ops): Delete global.
7904 (procfs_can_run): Delete method.
7905 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7906 target pointer instead of referencing procfs_ops.
7907 (procfs_prepare_to_store): Delete.
7908 (init_procfs_ops): Delete function.
7909 (procfs_target): New function, based on init_procfs_ops, but
7910 inherit inf_child_target.
7911 (_initialize_procfs): Use procfs_target.
7913 2014-03-12 Pedro Alves <palves@redhat.com>
7915 * windows-nat.c: Include inf-child.h.
7916 (windows_ops): Delete global.
7917 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7919 (init_windows_ops): Delete function.
7920 (windows_target): New function, based on init_windows_ops, but
7921 inherit inf_child_target.
7922 (_initialize_windows_nat): Use windows_target. Install x86
7923 specific target methods here.
7925 2014-03-10 Doug Evans <xdje42@gmail.com>
7927 * guile/guile.c (call_initialize_gdb_module): New function.
7928 (initialize_guile): Replace call to scm_init_guile with call to
7931 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7933 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7934 in call to TYPE_CODE macro.
7936 2014-03-10 Jerome Guitton <guitton@adacore.com>
7938 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7939 Resolve tagged types to full view.
7941 2014-03-10 Hui Zhu <hui@codesourcery.com>
7943 * target.h (target_insert_breakpoint): Remove "hardware" from its
7946 2014-03-07 Doug Evans <dje@google.com>
7948 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7950 2014-03-07 Doug Evans <dje@google.com>
7952 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7953 Remove unused local comp_dir_attr. Assert exactly one of
7954 stub_comp_unit_die, stub_comp_dir is non-NULL.
7956 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7958 * target.h (complete_target_initialization, add_target):
7961 2014-03-07 Pedro Alves <palves@redhat.com>
7963 * go32-nat.c: Include inf-child.h.
7964 (go32_ops): Delete global.
7965 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7967 (go32_create_inferior): Push the passed in target pointer instead
7968 of referencing go32_ops.
7969 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7970 (go32_target): New function, based on init_go32_ops, but inherit
7972 (_initialize_go32_nat): Use go32_target. Move parts of
7975 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7977 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7978 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7979 SYMBOL_VALUE_ADDRESS.
7980 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7982 2014-03-06 Yao Qi <yao@codesourcery.com>
7984 * breakpoint.c (get_tracepoint_by_number): Remove argument
7985 optional_p. All callers updated. Adjust comments. Update
7987 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7989 2014-03-06 Yao Qi <yao@codesourcery.com>
7991 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7992 early if get_number returns zero. Use 'p' instead of 'args'.
7994 2014-03-06 Yao Qi <yao@codesourcery.com>
7996 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7999 2014-03-06 Yao Qi <yao@codesourcery.com>
8001 PR breakpoints/16508
8002 * tracepoint.c (check_trace_running): New function.
8003 (trace_find_command): Move code to check_trace_running and
8004 call check_trace_running.
8005 (trace_find_pc_command): Likewise.
8006 (trace_find_tracepoint_command): Likewise.
8007 (trace_find_line_command): Likewise.
8008 (trace_find_range_command): Likewise.
8009 * tracepoint.h (check_trace_running): Likewise.
8010 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8012 2014-03-06 Yao Qi <yao@codesourcery.com>
8014 * target.h (struct target_ops) <to_traceframe_info>: Use
8015 TARGET_DEFAULT_NORETURN (tcomplain ()).
8016 * target-delegates.c: Regenerated.
8018 2014-03-05 Pedro Alves <palves@redhat.com>
8021 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8022 void. Update comment.
8023 (dcache_xfer_memory): Delete.
8024 (dcache_read_memory_partial): New, based on the read bits of
8026 (dcache_update): Add status parameter. Use ULONGEST for len, and
8027 adjust. Discard cache lines if the reason for the update was
8029 * dcache.h (dcache_xfer_memory): Delete declaration.
8030 (dcache_read_memory_partial): New declaration.
8031 (dcache_update): Update prototype.
8032 * target.c (raw_memory_xfer_partial): Update the dcache here.
8033 (memory_xfer_partial_1): Don't handle dcache writes here.
8035 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8037 * remote-sim.c (gdbsim_load): Add const to prog.
8039 2014-03-03 Tom Tromey <tromey@redhat.com>
8041 * elfread.c (probe_key): Change to bfd_data.
8042 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8043 now per-BFD, not per-objfile.
8044 * stap-probe.c (stap_probe_destroy): Update comment.
8045 (handle_stap_probe): Allocate on the per-BFD obstack.
8047 2014-03-03 Tom Tromey <tromey@redhat.com>
8049 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8050 * breakpoint.c (create_longjmp_master_breakpoint): Use
8052 (add_location_to_breakpoint, bkpt_probe_insert_location)
8053 (bkpt_probe_remove_location): Update.
8054 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8055 * elfread.c (elf_symfile_relocate_probe): Remove.
8056 (elf_probe_fns): Update.
8057 (insert_exception_resume_breakpoint): Change type of "probe"
8058 parameter to bound_probe.
8059 (check_exception_resume): Update.
8060 * objfiles.c (objfile_relocate1): Don't relocate probes.
8061 * probe.c (bound_probe_s): New typedef.
8062 (parse_probes): Use get_probe_address. Set sal's objfile.
8063 (find_probe_by_pc): Return a bound_probe.
8064 (collect_probes): Return a VEC(bound_probe_s).
8065 (compare_probes): Update.
8066 (gen_ui_out_table_header_info): Change type of "probes"
8068 (info_probes_for_ops): Update.
8069 (get_probe_address): New function.
8070 (probe_safe_evaluate_at_pc): Update.
8071 * probe.h (struct probe_ops) <get_probe_address>: New field.
8072 <set_semaphore, clear_semaphore>: Add objfile parameter.
8073 (struct probe) <objfile>: Remove field.
8075 <address>: Update comment.
8076 (struct bound_probe): New.
8077 (find_probe_by_pc): Return a bound_probe.
8078 (get_probe_address): Declare.
8079 * solib-svr4.c (struct probe_and_action) <address>: New field.
8080 (hash_probe_and_action, equal_probe_and_action): Update.
8081 (register_solib_event_probe): Add address parameter.
8082 (solib_event_probe_at): Update.
8083 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8085 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8086 (stap_get_probe_address): New function.
8087 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8088 (compile_probe_arg): Update.
8089 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8091 (handle_stap_probe): Don't relocate the probe.
8092 (stap_relocate): Remove.
8093 (stap_gen_info_probes_table_values): Update.
8094 (stap_probe_ops): Remove stap_relocate.
8095 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8096 (debug_sym_probe_fns): Update.
8097 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8098 * symtab.c (init_sal): Use memset.
8099 * symtab.h (struct symtab_and_line) <objfile>: New field.
8100 * tracepoint.c (start_tracing, stop_tracing): Update.
8102 2014-03-03 Tom Tromey <tromey@redhat.com>
8104 * probe.h (parse_probes, find_probe_by_pc)
8105 (find_probes_in_objfile): Fix comments.
8107 2014-03-02 Doug Evans <xdje42@gmail.com>
8109 * infrun.c (handle_signal_stop): Replace test for
8110 TARGET_WAITKIND_STOPPED with an assert.
8112 2014-03-02 Doug Evans <xdje42@gmail.com>
8114 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8116 2014-03-02 Doug Evans <xdje42@gmail.com>
8118 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8120 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8122 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8124 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8126 * i386obsd-nat.c: Include "obsd-nat.h".
8127 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8129 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8131 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8133 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8135 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8137 * mips64obsd-nat.c: Include "obsd-nath".
8138 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8140 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8142 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8144 * amd64obsd-nat.c: Include "obsd-nat,h.
8145 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8147 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8149 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8151 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8152 (find_overload_match): Update call to find_oload_champ.
8153 (find_oload_champ_namespace_loop): Likewise
8155 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8157 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8159 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8160 * config/sparc/obsd64.mh: New file.
8161 * sparc64obsd-nat.c: New file.
8163 * obsd-nat.h: New file.
8164 * obsd-nat.c: New file.
8165 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8166 (ALLDEPFILES): Add obsd-nat.c.
8168 2014-02-28 Tom Tromey <tromey@redhat.com>
8170 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8171 * cli-out.h (cli_ui_out_impl): Now const.
8172 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8173 * ui-out.c (struct ui_out) <impl>: Now const.
8174 (default_ui_out_impl): Now const.
8175 (ui_out_new): Make 'impl' parameter const.
8176 * ui-out.h (ui_out_new): Update.
8178 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8180 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8182 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8184 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8186 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8188 Additional PR 8882 fix.
8189 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8191 2014-02-27 Pedro Alves <palves@redhat.com>
8193 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8196 2014-02-27 Pedro Alves <palves@redhat.com>
8199 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8200 * nat/linux-waitpid.c: Include string.h.
8201 (status_to_str): Moved here and made extern.
8202 * nat/linux-waitpid.h (status_to_str): New declaration.
8204 2014-02-27 Hui Zhu <hui@codesourcery.com>
8207 * infrun.c (ptid_match): Move ...
8208 * common/ptid.c (ptid_match): ... here.
8209 * inferior.h (ptid_match): Move ...
8210 * common/ptid.h (ptid_match): ... here.
8212 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8214 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8215 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8218 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8220 * obsd-tdep.c (obsd_auxv_parse): New function.
8221 (obsd_init_abi): Set auxv_parse.
8223 * gdbarch.sh (auxv_parse): New.
8224 * gdbarch.h: Regenerated.
8225 * gdbarch.c: Regenerated.
8226 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8228 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8230 * guile/scm-value.c (gdbscm_history_append_x): New function.
8231 (value_functions): Add it.
8233 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8235 * dwarf2read.c (attr_value_as_address): New function.
8236 (dwarf2_find_base_address, read_call_site_scope): Use
8237 attr_value_as_address in place of DW_ADDR.
8238 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8239 the low and high addresses. Slight rework of the handling
8240 of the high pc being a constant form, and limit it to
8241 DWARF verson 4 or higher.
8242 (dwarf2_record_block_ranges): Likewise.
8243 (read_partial_die): Likewise.
8244 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8246 2014-02-26 Tom Tromey <tromey@redhat.com>
8248 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8250 2014-02-26 Tom Tromey <tromey@redhat.com>
8252 * elfread.c (elf_read_minimal_symbols): Return early if
8253 minimal symbols have already been read. Add "ei" parameter.
8254 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8255 * minsyms.c (prim_record_minimal_symbol_full): Update.
8256 * objfiles.h (struct objstats) <n_minsyms>: Move...
8257 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8258 * symmisc.c (print_objfile_statistics): Update.
8260 2014-02-26 Tom Tromey <tromey@redhat.com>
8262 * elfread.c (elf_read_minimal_symbols): New function, from
8264 (elf_symfile_read): Call it.
8266 2014-02-26 Tom Tromey <tromey@redhat.com>
8268 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8269 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8270 (lookup_minimal_symbol_solib_trampoline)
8271 (lookup_minimal_symbol_by_pc_section_1)
8272 (lookup_minimal_symbol_and_objfile): Update.
8273 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8274 Don't allocate a minimal symbol if minsyms have already been read.
8275 (build_minimal_symbol_hash_tables): Update.
8276 (install_minimal_symbols): Do nothing if minsyms already read.
8277 Use the per-BFD obstack.
8278 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8279 * objfiles.c (allocate_objfile): Call
8280 terminate_minimal_symbol_table later.
8281 (have_minimal_symbols): Update.
8282 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8283 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8284 Move from struct objfile.
8285 <minsyms_read>: New field.
8286 (struct objfile) <msymbols, minimal_symbol_count,
8287 msymbol_hash, msymbol_demangled_hash>: Move.
8288 (ALL_OBJFILE_MSYMBOLS): Update.
8289 * symfile.c (read_symbols): Set minsyms_read.
8290 (reread_symbols): Update.
8291 * symmisc.c (dump_objfile, dump_msymbols): Update.
8293 2014-02-26 Tom Tromey <tromey@redhat.com>
8295 * minsyms.c (msymbols_sort): Remove.
8296 * minsyms.h (msymbols_sort): Remove.
8297 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8298 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8299 * elfread.c (elf_symtab_read): Don't add section offsets.
8300 * xcoffread.c (record_minimal_symbol): Don't add section offset
8301 to minimal symbol address.
8302 * somread.c (text_offset, data_offset): Remove.
8303 (som_symtab_read): Don't add section offsets to minimal symbol
8305 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8306 Don't add section offsets to minimal symbols.
8307 * coffread.c (coff_symtab_read): Don't add section offsets
8308 to minimal symbol addresses.
8309 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8310 to minimal symbol addresses.
8311 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8312 section offset to minimal symbol addresses.
8313 * mdebugread.c (parse_partial_symbols): Don't add section
8314 offset to minimal symbol addresses.
8315 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8316 offset to minimal symbol addresses.
8318 2014-02-26 Tom Tromey <tromey@redhat.com>
8320 * ada-lang.c (ada_main_name): Update.
8321 (ada_add_standard_exceptions): Update.
8322 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8323 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8324 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8325 * auxv.c (ld_so_xfer_auxv): Update.
8326 * avr-tdep.c (avr_scan_prologue): Update.
8327 * ax-gdb.c (gen_var_ref): Update.
8328 * blockframe.c (get_pc_function_start)
8329 (find_pc_partial_function_gnu_ifunc): Update.
8330 * breakpoint.c (create_overlay_event_breakpoint)
8331 (create_longjmp_master_breakpoint)
8332 (create_std_terminate_master_breakpoint)
8333 (create_exception_master_breakpoint): Update.
8334 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8335 * c-valprint.c (c_val_print): Update.
8336 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8337 * common/agent.c (agent_look_up_symbols): Update.
8338 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8339 * dwarf2loc.c (call_site_to_target_addr): Update.
8340 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8341 * elfread.c (elf_gnu_ifunc_record_cache)
8342 (elf_gnu_ifunc_resolve_by_got): Update.
8343 * findvar.c (default_read_var_value): Update.
8344 * frame.c (inside_main_func): Update.
8345 * frv-tdep.c (frv_frame_this_id): Update.
8346 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8347 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8349 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8350 (hppa_hpux_find_dummy_bpaddr): Update.
8351 * hppa-tdep.c (hppa_symbol_address): Update.
8352 * infcmd.c (until_next_command): Update.
8353 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8355 * linespec.c (minsym_found, add_minsym): Update.
8356 * linux-nat.c (get_signo): Update.
8357 * linux-thread-db.c (inferior_has_bug): Update.
8358 * m32c-tdep.c (m32c_return_value)
8359 (m32c_m16c_address_to_pointer): Update.
8360 * m32r-tdep.c (m32r_frame_this_id): Update.
8361 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8362 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8363 * maint.c (maintenance_translate_address): Update.
8364 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8365 (frob_address): New function.
8366 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8367 frob_address. Rename parameter to "pc_in".
8368 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8370 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8372 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8373 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8374 * objc-lang.c (find_objc_msgsend): Update.
8375 * objfiles.c (objfile_relocate1): Update.
8376 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8377 * p-valprint.c (pascal_val_print): Update.
8378 * parse.c (write_exp_msymbol): Update.
8379 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8380 (ppc_elfv2_skip_entrypoint): Update.
8381 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8382 * printcmd.c (build_address_symbolic, msym_info)
8383 (address_info): Update.
8384 * proc-service.c (ps_pglobal_lookup): Update.
8385 * psymtab.c (find_pc_sect_psymtab_closer)
8386 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8387 Change msymbol parameter to bound_minimal_symbol.
8388 * ravenscar-thread.c (get_running_thread_id): Update.
8389 * remote.c (remote_check_symbols): Update.
8390 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8392 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8393 * solib-dsbt.c (lm_base): Update.
8394 * solib-frv.c (lm_base, main_got): Update.
8395 * solib-irix.c (locate_base): Update.
8396 * solib-som.c (som_solib_create_inferior_hook)
8397 (link_map_start): Update.
8398 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8399 * solib-svr4.c (elf_locate_base, enable_break): Update.
8400 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8401 (flush_ea_cache): Update.
8402 * stabsread.c (define_symbol, scan_file_globals): Update.
8403 * stack.c (find_frame_funname): Update.
8404 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8405 (debug_qf_find_pc_sect_symtab): Update.
8406 * symfile.c (simple_read_overlay_table)
8407 (simple_overlay_update): Update.
8408 * symfile.h (struct quick_symbol_functions)
8409 <find_pc_sect_symtab>: Change type of msymbol to
8410 bound_minimal_symbol.
8411 * symmisc.c (dump_msymbols): Update.
8412 * symtab.c (find_pc_sect_symtab_via_partial)
8413 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8414 (search_symbols, print_msymbol_info): Update.
8415 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8416 (MSYMBOL_VALUE_ADDRESS): Redefine.
8417 (BMSYMBOL_VALUE_ADDRESS): New macro.
8418 * tracepoint.c (scope_info): Update.
8419 * tui/tui-disasm.c (tui_find_disassembly_address)
8420 (tui_get_begin_asm_address): Update.
8421 * valops.c (find_function_in_inferior): Update.
8422 * value.c (value_static_field, value_fn_field): Update.
8424 2014-02-26 Tom Tromey <tromey@redhat.com>
8426 * ada-lang.c (ada_update_initial_language): Update.
8427 (ada_main_name, ada_has_this_exception_support): Update.
8428 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8429 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8430 * arm-tdep.c (arm_skip_stub): Update.
8431 * auxv.c (ld_so_xfer_auxv): Update.
8432 * avr-tdep.c (avr_scan_prologue): Update.
8433 * ax-gdb.c (gen_var_ref): Update.
8434 * breakpoint.c (struct breakpoint_objfile_data)
8435 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8436 type to bound_minimal_symbol.
8437 (create_overlay_event_breakpoint)
8438 (create_longjmp_master_breakpoint)
8439 (create_std_terminate_master_breakpoint)
8440 (create_exception_master_breakpoint): Update.
8441 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8442 * c-exp.y (classify_name): Update.
8443 * coffread.c (coff_symfile_read): Update.
8444 * common/agent.c (agent_look_up_symbols): Update.
8445 * d-lang.c (d_main_name): Update.
8446 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8447 * dec-thread.c (enable_dec_thread): Update.
8448 * dwarf2loc.c (call_site_to_target_addr): Update.
8449 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8450 * eval.c (evaluate_subexp_standard): Update.
8451 * findvar.c (struct minsym_lookup_data) <result>: Change type
8452 to bound_minimal_symbol.
8454 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8455 * frame.c (inside_main_func): Update.
8456 * frv-tdep.c (frv_frame_this_id): Update.
8457 * gcore.c (call_target_sbrk): Update.
8458 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8459 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8461 * go-lang.c (go_main_name): Update.
8462 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8463 (hppa_hpux_find_import_stub_for_addr): Update.
8464 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8465 Update. Change return type.
8466 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8468 * jit.c (jit_breakpoint_re_set_internal): Update.
8469 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8471 * linux-nat.c (get_signo): Update.
8472 * linux-thread-db.c (inferior_has_bug): Update
8473 * m32c-tdep.c (m32c_return_value)
8474 (m32c_m16c_address_to_pointer): Update.
8475 * m32r-tdep.c (m32r_frame_this_id): Update.
8476 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8477 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8478 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8479 lookup_minimal_symbol. Change return type.
8480 (lookup_minimal_symbol): Remove.
8481 (lookup_bound_minimal_symbol): Update.
8482 (lookup_minimal_symbol_text): Change return type.
8483 (lookup_minimal_symbol_solib_trampoline): Change return type.
8484 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8485 (lookup_minimal_symbol_solib_trampoline): Change return type.
8486 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8487 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8488 (value_nsstring, find_imps): Update.
8489 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8490 * p-lang.c (pascal_main_name): Update.
8491 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8492 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8493 * proc-service.c (ps_pglobal_lookup): Update.
8494 * ravenscar-thread.c (get_running_thread_msymbol): Change
8496 (has_ravenscar_runtime, get_running_thread_id): Update.
8497 * remote.c (remote_check_symbols): Update.
8498 * sol-thread.c (ps_pglobal_lookup): Update.
8499 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8500 * solib-dsbt.c (lm_base): Update.
8501 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8503 * solib-irix.c (locate_base): Update.
8504 * solib-som.c (som_solib_create_inferior_hook)
8505 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8507 * solib-spu.c (spu_enable_break): Update.
8508 * solib-svr4.c (elf_locate_base, enable_break): Update.
8509 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8510 (flush_ea_cache): Update.
8511 * stabsread.c (define_symbol): Update.
8512 * symfile.c (simple_read_overlay_table): Update.
8513 * symtab.c (find_pc_sect_line): Update.
8514 * tracepoint.c (scope_info): Update.
8515 * tui-disasm.c (tui_get_begin_asm_address): Update.
8516 * value.c (value_static_field): Update.
8518 2014-02-26 Tom Tromey <tromey@redhat.com>
8520 * minsyms.c (prim_record_minimal_symbol_full): Use
8521 SET_MSYMBOL_VALUE_ADDRESS.
8522 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8523 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8524 SET_MSYMBOL_VALUE_ADDRESS.
8525 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8526 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8528 2014-02-26 Tom Tromey <tromey@redhat.com>
8530 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8531 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8532 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8533 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8534 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8535 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8536 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8537 * ada-lang.c (ada_main_name): Update.
8538 (ada_lookup_simple_minsym): Update.
8539 (ada_make_symbol_completion_list): Update.
8540 (ada_add_standard_exceptions): Update.
8541 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8542 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8543 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8544 * arm-tdep.c (skip_prologue_function): Update.
8545 (arm_skip_stack_protector, arm_skip_stub): Update.
8546 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8547 (arm_wince_skip_main_prologue): Update.
8548 * auxv.c (ld_so_xfer_auxv): Update.
8549 * avr-tdep.c (avr_scan_prologue): Update.
8550 * ax-gdb.c (gen_var_ref): Update.
8551 * block.c (call_site_for_pc): Update.
8552 * blockframe.c (get_pc_function_start): Update.
8553 (find_pc_partial_function_gnu_ifunc): Update.
8554 * breakpoint.c (create_overlay_event_breakpoint): Update.
8555 (create_longjmp_master_breakpoint): Update.
8556 (create_std_terminate_master_breakpoint): Update.
8557 (create_exception_master_breakpoint): Update.
8558 (resolve_sal_pc): Update.
8559 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8560 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8562 * c-valprint.c (c_val_print): Update.
8563 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8564 * coffread.c (coff_symfile_read): Update.
8565 * common/agent.c (agent_look_up_symbols): Update.
8566 * dbxread.c (find_stab_function_addr): Update.
8567 (end_psymtab): Update.
8568 * dwarf2loc.c (call_site_to_target_addr): Update.
8569 (func_verify_no_selftailcall): Update.
8570 (tailcall_dump): Update.
8571 (call_site_find_chain_1): Update.
8572 (dwarf_expr_reg_to_entry_parameter): Update.
8573 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8574 (elf_gnu_ifunc_resolve_by_got): Update.
8575 * f-valprint.c (info_common_command): Update.
8576 * findvar.c (read_var_value): Update.
8577 * frame.c (get_prev_frame_1): Update.
8578 (inside_main_func): Update.
8579 * frv-tdep.c (frv_skip_main_prologue): Update.
8580 (frv_frame_this_id): Update.
8581 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8582 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8583 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8584 (gnuv3_skip_trampoline): Update.
8585 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8586 (hppa64_hpux_in_solib_call_trampoline): Update.
8587 (hppa_hpux_skip_trampoline_code): Update.
8588 (hppa64_hpux_search_dummy_call_sequence): Update.
8589 (hppa_hpux_find_import_stub_for_addr): Update.
8590 (hppa_hpux_find_dummy_bpaddr): Update.
8591 * hppa-tdep.c (hppa_symbol_address)
8592 (hppa_lookup_stub_minimal_symbol): Update.
8593 * i386-tdep.c (i386_skip_main_prologue): Update.
8594 (i386_pe_skip_trampoline_code): Update.
8595 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8596 * infcall.c (get_function_name): Update.
8597 * infcmd.c (until_next_command): Update.
8598 * jit.c (jit_breakpoint_re_set_internal): Update.
8599 (jit_inferior_init): Update.
8600 * linespec.c (minsym_found): Update.
8601 (add_minsym): Update.
8602 * linux-fork.c (info_checkpoints_command): Update.
8603 * linux-nat.c (get_signo): Update.
8604 * linux-thread-db.c (inferior_has_bug): Update.
8605 * m32c-tdep.c (m32c_return_value): Update.
8606 (m32c_m16c_address_to_pointer): Update.
8607 (m32c_m16c_pointer_to_address): Update.
8608 * m32r-tdep.c (m32r_frame_this_id): Update.
8609 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8610 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8611 * maint.c (maintenance_translate_address): Update.
8612 * minsyms.c (add_minsym_to_hash_table): Update.
8613 (add_minsym_to_demangled_hash_table): Update.
8614 (msymbol_objfile): Update.
8615 (lookup_minimal_symbol): Update.
8616 (iterate_over_minimal_symbols): Update.
8617 (lookup_minimal_symbol_text): Update.
8618 (lookup_minimal_symbol_by_pc_name): Update.
8619 (lookup_minimal_symbol_solib_trampoline): Update.
8620 (lookup_minimal_symbol_by_pc_section_1): Update.
8621 (lookup_minimal_symbol_and_objfile): Update.
8622 (prim_record_minimal_symbol_full): Update.
8623 (compare_minimal_symbols): Update.
8624 (compact_minimal_symbols): Update.
8625 (build_minimal_symbol_hash_tables): Update.
8626 (install_minimal_symbols): Update.
8627 (terminate_minimal_symbol_table): Update.
8628 (find_solib_trampoline_target): Update.
8629 (minimal_symbol_upper_bound): Update.
8630 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8631 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8632 (mips_skip_pic_trampoline_code): Update.
8633 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8634 * objc-lang.c (selectors_info): Update.
8635 (classes_info): Update.
8636 (find_methods): Update.
8637 (find_imps): Update.
8638 (find_objc_msgsend): Update.
8639 * objfiles.c (objfile_relocate1): Update.
8640 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8641 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8642 * p-valprint.c (pascal_val_print): Update.
8643 * parse.c (write_exp_msymbol): Update.
8644 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8645 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8646 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8647 * printcmd.c (build_address_symbolic): Update.
8649 (address_info): Update.
8650 * proc-service.c (ps_pglobal_lookup): Update.
8651 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8652 (find_pc_sect_psymtab): Update.
8653 * python/py-framefilter.c (py_print_frame): Update.
8654 * ravenscar-thread.c (get_running_thread_id): Update.
8655 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8657 * remote.c (remote_check_symbols): Update.
8658 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8659 (rs6000_skip_trampoline_code): Update.
8660 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8661 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8662 * solib-dsbt.c (lm_base): Update.
8663 * solib-frv.c (lm_base): Update.
8665 * solib-irix.c (locate_base): Update.
8666 * solib-som.c (som_solib_create_inferior_hook): Update.
8667 (som_solib_desire_dynamic_linker_symbols): Update.
8668 (link_map_start): Update.
8669 * solib-spu.c (spu_enable_break): Update.
8670 (ocl_enable_break): Update.
8671 * solib-svr4.c (elf_locate_base): Update.
8672 (enable_break): Update.
8673 * spu-tdep.c (spu_get_overlay_table): Update.
8674 (spu_catch_start): Update.
8675 (flush_ea_cache): Update.
8676 * stabsread.c (define_symbol): Update.
8677 (scan_file_globals): Update.
8678 * stack.c (find_frame_funname): Update.
8679 (frame_info): Update.
8680 * symfile.c (simple_read_overlay_table): Update.
8681 (simple_overlay_update): Update.
8682 * symmisc.c (dump_msymbols): Update.
8683 * symtab.c (fixup_section): Update.
8684 (find_pc_sect_line): Update.
8685 (skip_prologue_sal): Update.
8686 (search_symbols): Update.
8687 (print_msymbol_info): Update.
8688 (rbreak_command): Update.
8689 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8690 (completion_list_objc_symbol): Update.
8691 (default_make_symbol_completion_list_break_on): Update.
8692 * tracepoint.c (scope_info): Update.
8693 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8694 (tui_get_begin_asm_address): Update.
8695 * valops.c (find_function_in_inferior): Update.
8696 * value.c (value_static_field): Update.
8697 (value_fn_field): Update.
8699 2014-02-26 Tom Tromey <tromey@redhat.com>
8701 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8702 bound minimal symbols. Move code that knows about minsym
8704 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8706 * minsyms.h (minimal_symbol_upper_bound): Declare.
8707 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8708 minimal_symbol_upper_bound.
8710 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8712 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8713 Use the type's name if its basic type does not have a tag.
8715 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8717 * dwarf2read.c (read_subrange_type): Add comment.
8719 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8721 * dwarf2read.c (update_enumeration_type_from_children): New
8722 function, mostly extracted from process_structure_scope.
8723 (read_enumeration_type): Call update_enumeration_type_from_children.
8724 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8725 and flag_flag_enum fields.
8727 2014-02-26 Pedro Alves <palves@redhat.com>
8729 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8730 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8731 to_xfer_partial method.
8733 2014-02-26 Pedro Alves <palves@redhat.com>
8735 * target.c (complete_target_initialization): Don't install
8736 default_xfer_partial as to_xfer_partial hook.
8738 (update_current_target): Don't INHERIT nor de_fault
8739 deprecated_xfer_memory. Delete de_fault macro.
8740 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8741 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8742 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8745 2014-02-26 Pedro Alves <palves@redhat.com>
8747 * go32-nat.c (my_write_child): New function.
8748 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8749 (go32_xfer_partial): New function.
8750 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8751 Instead install a to_xfer_partial hook.
8753 2014-02-26 Pedro Alves <palves@redhat.com>
8755 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8756 to_xfer_partial helper. Rewrite.
8757 (procfs_xfer_partial): New function.
8758 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8759 Install a to_xfer_partial hook.
8761 2014-02-26 Pedro Alves <palves@redhat.com>
8763 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8764 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8765 (m32r_xfer_partial): New function.
8766 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8767 Install a to_xfer_partial hook.
8769 2014-02-26 Pedro Alves <palves@redhat.com>
8771 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8773 (mips_xfer_partial): New function.
8774 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8775 hook. Install a to_xfer_partial hook.
8777 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8779 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8780 * gdbtypes.c (create_array_type_with_stride): New function,
8781 renaming create_array_type, but with an added parameter
8782 called "bit_stride".
8783 (create_array_type): Re-implement using
8784 create_array_type_with_stride.
8785 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8786 and DW_AT_bit_stride attributes.
8788 2014-02-26 Pedro Alves <palves@redhat.com>
8790 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8791 task-specific breakpoints.
8793 2014-02-25 Pedro Alves <palves@redhat.com>
8795 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8796 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8798 2014-02-25 Stan Shebs <stan@codesourcery.com>
8800 * defs.h: Annotate comments for Doxygen.
8802 2014-02-25 Tom Tromey <tromey@redhat.com>
8804 * target.h (target_ignore): Don't declare.
8805 * target.c (target_ignore): Remove.
8807 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8810 * auto-load.c (auto_load_objfile_script_1): Change filename to
8813 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8815 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8816 documentation. Adjust prototype to match the target_ops
8817 to_xfer_partial method. Adjust implementation accordingly.
8819 2014-02-25 Hui Zhu <hui@codesourcery.com>
8821 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8824 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8826 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8827 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8828 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8829 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8830 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8831 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8832 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8833 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8835 (rl78_register_type): Use a data pointer type for SP and
8836 new pseudo registers mentioned above. Use a 16 bit integer
8837 type for all other register pairs.
8838 (rl78_register_name, rl78_g10_register_name): Update for
8839 new pseudo registers.
8840 (rl78_pseudo_register_read): Likewise.
8841 (rl78_pseudo_register_write): Likewise.
8842 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8843 to the newly added pseudo registers.
8845 2014-02-24 Doug Evans <dje@google.com>
8847 * value.c (record_latest_value): Fix comment.
8848 * printcmd.c (print_command_1): Remove code to handle -1 return from
8849 record_latest_value.
8851 2014-02-24 Pedro Alves <palves@redhat.com>
8853 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8854 deprecated_xfer_memory hook.
8855 (procfs_xfer_partial): Call procfs_xfer_memory instead
8856 of the deprecated_xfer_memory target hook.
8857 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8860 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8862 * windows-nat.c (windows_xfer_shared_libraries): Return
8863 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8864 requested object is TARGET_OBJECT_LIBRARIES.
8866 2014-02-24 Yao Qi <yao@codesourcery.com>
8868 * target.h (enum target_xfer_status)
8869 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8870 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8872 * corefile.c (memory_error_message): User updated.
8873 * exec.c (section_table_read_available_memory): Likewise.
8874 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8875 * target.c (target_xfer_status_to_string): Likewise.
8876 (raw_memory_xfer_partial): Likewise.
8877 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8878 * valops.c (read_value_memory): Likewise.
8879 * exec.h: Update comments.
8881 2014-02-24 Yao Qi <yao@codesourcery.com>
8883 * target.c (target_xfer_status_to_string): Rename argument err
8885 * target.h (target_xfer_status_to_string): Update declaration.
8886 Replace target_xfer_error_to_string with
8887 target_xfer_status_to_string in comment.
8889 2014-02-24 Yao Qi <yao@codesourcery.com>
8891 * mips-linux-nat.c (super_close): Update its type.
8892 (mips_linux_close): Pass 'self' to super_close.
8894 2014-02-24 Yao Qi <yao@codesourcery.com>
8896 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8897 * corefile.c (read_memory): Adjusted.
8898 * target.c (target_write_with_progress): Adjusted.
8900 2014-02-23 Yao Qi <yao@codesourcery.com>
8904 2013-10-25 Yao Qi <yao@codesourcery.com>
8906 * remote.c (remote_traceframe_info): Return early if
8907 traceframe is not selected.
8909 2013-07-19 Yao Qi <yao@codesourcery.com>
8911 * target.c (update_current_target): Change the default action
8912 of 'to_traceframe_info' from tcomplain to return_zero.
8913 * target.h (struct target_ops) <to_traceframe_info>: Add more
8916 2014-02-23 Yao Qi <yao@codesourcery.com>
8918 * valops.c (read_value_memory): Rewrite it. Call
8919 target_xfer_partial in a loop.
8920 * exec.h (section_table_available_memory): Remove declaration.
8921 Move comments to ...
8922 * exec.c (section_table_available_memory): ... here. Make it
8925 2014-02-23 Yao Qi <yao@codesourcery.com>
8927 * exec.c (section_table_read_available_memory): New function.
8928 * exec.h (section_table_read_available_memory): Declare.
8929 * ctf.c (ctf_xfer_partial): Call
8930 section_table_read_available_memory.
8931 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8933 2014-02-23 Yao Qi <yao@codesourcery.com>
8935 * ctf.c (ctf_xfer_partial): Move code to ...
8936 * exec.c (exec_read_partial_read_only): ... it. New function.
8937 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8938 * tracefile.c: Include "exec.h".
8939 * exec.h (exec_read_partial_read_only): Declare.
8941 2014-02-23 Yao Qi <yao@codesourcery.com>
8943 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8944 (tfile_has_memory): Remove.
8945 (init_tfile_ops): Don't set fields to_has_all_memory and
8946 to_has_memory of tfile_ops.
8947 * tracefile.c (tracefile_has_all_memory): New function.
8948 (tracefile_has_memory): New function.
8949 (init_tracefile_ops): Initialize fields to_has_all_memory and
8950 to_has_memory of 'ops'.
8952 2014-02-23 Yao Qi <yao@codesourcery.com>
8954 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8955 (ctf_thread_alive, ctf_get_trace_status): Remove.
8956 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8958 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8959 (tfile_has_stack, tfile_has_registers): Remove.
8960 (tfile_thread_alive): Remove.
8961 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8963 * tracefile.c (tracefile_has_stack): New function.
8964 (tracefile_has_registers): New function.
8965 (tracefile_thread_alive): New function.
8966 (tracefile_get_trace_status): New function.
8967 (init_tracefile_ops): New function.
8968 * tracefile.h (init_tracefile_ops): Declare.
8970 2014-02-23 Yao Qi <yao@codesourcery.com>
8972 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8973 (O_LARGEFILE): Likewise.
8974 (tfile_ops): Likewise.
8975 (TRACE_HEADER_SIZE): Likewise.
8976 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8977 (cur_data_size): Likewise.
8978 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8979 (tfile_close, tfile_files_info): Likewise.
8980 (tfile_get_trace_status): Likewise.
8981 (tfile_get_tracepoint_status): Likewise.
8982 (tfile_get_traceframe_address): Likewise.
8983 (tfile_trace_find, match_blocktype): Likewise.
8984 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8985 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8986 (tfile_get_trace_state_variable_value): Likewise.
8987 (tfile_has_all_memory, tfile_has_memory): Likewise.
8988 (tfile_has_stack, tfile_has_registers): Likewise.
8989 (tfile_thread_alive, build_traceframe_info): Likewise.
8990 (tfile_traceframe_info, init_tfile_ops): Likewise.
8991 (_initialize_tracepoint): Don't call init_tfile_ops
8992 and add_target_with_completer.
8993 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8994 exec.h, completer.h and filenames.h.
8995 (_initialize_tracefile_tfile): New function.
8997 2014-02-23 Yao Qi <yao@codesourcery.com>
8999 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9001 (HFILES_NO_SRCDIR): Add tracefile.h.
9002 * ctf.c: Include "tracefile.h".
9003 * tracefile.h: New file.
9004 * tracefile.c: New file
9005 * tracefile-tfile.c: New file.
9006 * tracepoint.c: Include "tracefile.h".
9007 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9008 (stop_reason_names): Add const.
9009 (trace_file_writer_xfree): Move it to tracefile.c.
9010 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9011 (trace_save_ctf): Likewise.
9012 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9013 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9014 (tfile_write_header, tfile_write_regblock_type): Likewise.
9015 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9016 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9017 (tfile_write_raw_data, tfile_end): Likewise.
9018 (tfile_trace_file_writer_new): Likewise.
9019 (free_uploaded_tp): Make it extern.
9020 (free_uploaded_tsv): Make it extern.
9021 (_initialize_tracepoint): Move code to register command 'tsave'
9023 * tracepoint.h (stop_reason_names): Declare.
9024 (struct trace_frame_write_ops): Move it to tracefile.h.
9025 (struct trace_file_write_ops): Likewise.
9026 (struct trace_file_writer): Likewise.
9027 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9029 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9032 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9034 (get_cores_used_by_process): New parameter num_cores, use it.
9035 (linux_xfer_osdata_processes): Pass num_cores to it.
9036 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9039 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9041 * target.c (memory_xfer_partial): Fix length arg in call to
9042 breakpoint_xfer_memory.
9044 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9047 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9048 number comes after the + or - signs. Adjust length of register
9049 name to be extracted.
9051 2014-02-20 Tom Tromey <tromey@redhat.com>
9053 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9054 (ada_varobj_ops): Mark "extern".
9056 2014-02-20 Tom Tromey <tromey@redhat.com>
9058 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9060 2014-02-20 Doug Evans <xdje42@gmail.com>
9062 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9063 All callers updated.
9064 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9065 All callers updated.
9066 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9067 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9069 2014-02-20 lin zuojian <manjian2006@gmail.com>
9070 Joel Brobecker <brobecker@adacore.com>
9071 Doug Evans <xdje42@gmail.com>
9074 * dwarf2read.c (struct die_info): New member in_process.
9075 (reset_die_in_process): New function.
9076 (process_die): Set it at the start, reset when returning.
9077 (inherit_abstract_dies): Only call process_die if origin_child_die
9078 not already being processed.
9080 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9082 * windows-nat.c (handle_unload_dll): Add function documentation.
9083 (do_initial_windows_stuff): Add comment explaining why we wait
9084 until after inferior initialization has finished before
9085 processing all DLLs.
9087 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9089 * windows-nat.c (get_module_name): Delete.
9090 (windows_get_exec_module_filename): New function, mostly
9091 inspired from get_module_name.
9092 (windows_pid_to_exec_file): Replace call to get_module_name
9093 by call to windows_get_exec_module_filename.
9095 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9097 * windows-nat.c (handle_load_dll): Rewrite this function's
9098 introductory comment. Remove code using get_module_name
9099 to get the DLL's name.
9101 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9103 * windows-nat.c (get_windows_debug_event): Ignore
9104 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9105 if windows_initialization_done == 0.
9106 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9107 Adjust implementation to always load all DLLs.
9108 (do_initial_windows_stuff): Replace call to
9109 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9111 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9113 * windows-nat.c (_initialize_windows_nat): Deprecate the
9114 "dll-symbols" command. Turn the "add-shared-symbol-files"
9115 and "assf" aliases into commands, and deprecate them as well.
9116 * NEWS: Add entry explaining that "dll-symbols" and its two
9117 aliases are now deprecated.
9119 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9121 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9122 new-line in debug string. Remove trailing spaces.
9124 2014-02-19 Stan Shebs <stan@codesourcery.com>
9126 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9128 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9130 * NEWS: Add entry for the new feature
9131 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9134 2014-02-19 Stan Shebs <stan@codesourcery.com>
9136 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9138 2014-02-19 Pedro Alves <palves@redhat.com>
9140 * common/ptid.h (struct ptid): Mention that process_stratum
9141 targets should prefer ptid.lwp.
9143 2014-02-19 Pedro Alves <palves@redhat.com>
9145 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9146 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9147 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9148 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9149 store remote thread ids rather than ptid.tid.
9150 (_initialize_remote): Adjust.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * target.c (target_get_unwinder): Rewrite.
9155 (target_get_tailcall_unwinder): Rewrite.
9156 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9157 (record_btrace_to_get_tailcall_unwinder): New function.
9158 (init_record_btrace_ops): Update.
9159 * target.h (struct target_ops) <to_get_unwinder,
9160 to_get_tailcall_unwinder>: Now function pointers. Use
9161 TARGET_DEFAULT_RETURN.
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9165 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9167 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9171 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9173 * target-delegates.c: Rebuild.
9174 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9175 TARGET_DEFAULT_FUNC.
9176 * target.c (default_target_decr_pc_after_break): Rename from
9177 forward_target_decr_pc_after_break. Simplify.
9178 (target_decr_pc_after_break): Rely on delegation.
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9182 * target.c (update_current_target): Do not INHERIT to_doc or
9183 to_magic. Do not de_fault to_open or to_close.
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * gcore.h (objfile_find_memory_regions): Declare.
9188 * gcore.c (objfile_find_memory_regions): No longer static. Add
9190 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9191 * exec.c: Include gcore.h.
9192 (exec_set_find_memory_regions): Remove.
9193 (exec_find_memory_regions): Remove.
9194 (exec_do_find_memory_regions): Remove.
9195 (init_exec_ops): Update.
9196 * defs.h (exec_set_find_memory_regions): Remove.
9198 2014-02-19 Tom Tromey <tromey@redhat.com>
9200 * target-delegates.c: Rebuild.
9201 * target.h (struct target_ops) <to_extra_thread_info,
9202 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9203 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9204 not 0, in TARGET_DEFAULT_RETURN.
9206 2014-02-19 Tom Tromey <tromey@redhat.com>
9208 * target.c (complete_target_initialization): Remove casts. Use
9209 return_zero_has_execution.
9210 (return_zero): Add "ignore" argument.
9211 (return_zero_has_execution): New function.
9212 (init_dummy_target): Remove casts. Use
9213 return_zero_has_execution.
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9217 * target.c (update_current_target): Update comments. Do not
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9222 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9224 * corelow.c (core_read_description): Delegate when needed.
9225 * remote.c (remote_read_description): Delegate when needed.
9226 * target-delegates.c: Rebuild.
9227 * target.c (target_read_description): Rewrite.
9228 * target.h (struct target_ops) <to_read_description>: Update
9229 comment. Use TARGET_DEFAULT_RETURN.
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9233 * target-delegates.c: Rebuild.
9234 * target.c (update_current_target): Don't inherit or default
9236 (find_default_run_target): Check against delegate_can_run.
9237 * target.h (struct target_ops) <to_can_run>: Use
9238 TARGET_DEFAULT_RETURN.
9240 2014-02-19 Tom Tromey <tromey@redhat.com>
9242 * target-delegates.c: Rebuild.
9243 * target.c (target_disconnect): Unconditionally delegate.
9244 * target.h (struct target_ops) <to_disconnect>: Use
9245 TARGET_DEFAULT_NORETURN.
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9249 * record.c (record_stop): Unconditionally delegate.
9250 * target-delegates.c: Rebuild.
9251 * target.c (target_stop_recording): Unconditionally delegate.
9252 * target.h (struct target_ops) <to_stop_recording>: Use
9253 TARGET_DEFAULT_IGNORE.
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9257 * target-delegates.c: Rebuild.
9258 * target.c (target_enable_btrace): Unconditionally delegate.
9259 * target.h (struct target_ops) <to_enable_btrace>: Use
9260 TARGET_DEFAULT_NORETURN.
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9264 * target-delegates.c: Rebuild.
9265 * target.c (target_read_btrace): Unconditionally delegate.
9266 * target.h (struct target_ops) <to_read_btrace>: Use
9267 TARGET_DEFAULT_NORETURN.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target-delegates.c: Rebuild.
9272 * target.c (target_teardown_btrace): Unconditionally delegate.
9273 * target.h (struct target_ops) <to_teardown_btrace>: Use
9274 TARGET_DEFAULT_NORETURN.
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9278 * target-delegates.c: Rebuild.
9279 * target.c (target_disable_btrace): Unconditionally delegate.
9280 * target.h (struct target_ops) <to_disable_btrace>: Use
9281 TARGET_DEFAULT_NORETURN.
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9285 * target-delegates.c: Rebuild.
9286 * target.c (default_search_memory): New function.
9287 (simple_search_memory): Update comment.
9288 (target_search_memory): Unconditionally delegate.
9289 * target.h (struct target_ops) <to_search_memory>: Use
9290 TARGET_DEFAULT_FUNC.
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9294 * auxv.c (default_auxv_parse): No longer static.
9295 (target_auxv_parse): Unconditionally delegate.
9296 * auxv.h (default_auxv_parse): Declare.
9297 * target-delegates.c: Rebuild.
9298 * target.c: Include auxv.h.
9299 * target.h (struct target_ops) <to_auxv_parse>: Use
9300 TARGET_DEFAULT_FUNC.
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * target-delegates.c: Rebuild.
9305 * target.c (target_memory_map): Unconditionally delegate.
9306 * target.h (struct target_ops) <to_memory_map>: Use
9307 TARGET_DEFAULT_RETURN.
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9311 * target-delegates.c: Rebuild.
9312 * target.c (target_thread_alive): Unconditionally delegate.
9313 * target.h (struct target_ops) <to_thread_alive>: Use
9314 TARGET_DEFAULT_RETURN.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target-delegates.c: Rebuild.
9319 * target.c (target_save_record): Unconditionally delegate.
9320 * target.h (struct target_ops) <to_save_record>: Use
9321 TARGET_DEFAULT_NORETURN.
9323 2014-02-19 Tom Tromey <tromey@redhat.com>
9325 * target-delegates.c: Rebuild.
9326 * target.c (target_delete_record): Unconditionally delegate.
9327 * target.h (struct target_ops) <to_delete_record>: Use
9328 TARGET_DEFAULT_NORETURN.
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9332 * target-delegates.c: Rebuild.
9333 * target.c (target_record_is_replaying): Unconditionally
9335 * target.h (struct target_ops) <to_record_is_replaying>: Use
9336 TARGET_DEFAULT_RETURN.
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9340 * target-delegates.c: Rebuild.
9341 * target.c (target_goto_record_begin): Unconditionally delegate.
9342 * target.h (struct target_ops) <to_goto_record_begin>: Use
9343 TARGET_DEFAULT_NORETURN.
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9347 * target-delegates.c: Rebuild.
9348 * target.c (target_goto_record_end): Unconditionally delegate.
9349 * target.h (struct target_ops) <to_goto_record_end>: Use
9350 TARGET_DEFAULT_NORETURN.
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9354 * target-delegates.c: Rebuild.
9355 * target.c (target_goto_record): Unconditionally delegate.
9356 * target.h (struct target_ops) <to_goto_record>: Use
9357 TARGET_DEFAULT_NORETURN.
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9361 * target-delegates.c: Rebuild.
9362 * target.c (target_insn_history): Unconditionally delegate.
9363 * target.h (struct target_ops) <to_insn_history>: Use
9364 TARGET_DEFAULT_NORETURN.
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9368 * target-delegates.c: Rebuild.
9369 * target.c (target_insn_history_from): Unconditionally delegate.
9370 * target.h (struct target_ops) <to_insn_history_from>: 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_range): Unconditionally delegate.
9377 * target.h (struct target_ops) <to_insn_history_range>: Use
9378 TARGET_DEFAULT_NORETURN.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * target-delegates.c: Rebuild.
9383 * target.c (target_call_history): Unconditionally delegate.
9384 * target.h (struct target_ops) <to_call_history>: Use
9385 TARGET_DEFAULT_NORETURN.
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target-delegates.c: Rebuild.
9390 * target.c (target_call_history_from): Unconditionally delegate.
9391 * target.h (struct target_ops) <to_call_history_from>: 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_range): Unconditionally delegate.
9398 * target.h (struct target_ops) <to_call_history_range>: Use
9399 TARGET_DEFAULT_NORETURN.
9401 2014-02-19 Tom Tromey <tromey@redhat.com>
9403 * target-delegates.c: Rebuild.
9404 * target.c (target_verify_memory): Unconditionally delegate.
9405 * target.h (struct target_ops) <to_verify_memory>: Use
9406 TARGET_DEFAULT_NORETURN.
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9410 * target-delegates.c: Rebuild.
9411 * target.c (target_core_of_thread): Unconditionally delegate.
9412 * target.h (struct target_ops) <to_core_of_thread>: Use
9413 TARGET_DEFAULT_RETURN.
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9417 * target-delegates.c: Rebuild.
9418 * target.c (target_flash_done): Unconditionally delegate.
9419 * target.h (struct target_ops) <to_flash_done>: Use
9420 TARGET_DEFAULT_NORETURN.
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target-delegates.c: Rebuild.
9425 * target.c (target_flash_erase): Unconditionally delegate.
9426 * target.h (struct target_ops) <to_flash_erase>: Use
9427 TARGET_DEFAULT_NORETURN.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target-delegates.c: Rebuild.
9432 * target.c (target_get_section_table): Unconditionally delegate.
9433 * target.h (struct target_ops) <to_get_section_table>: Use
9434 TARGET_DEFAULT_RETURN.
9436 2014-02-19 Tom Tromey <tromey@redhat.com>
9438 * target-delegates.c: Rebuild.
9439 * target.c (target_pid_to_str): Unconditionally delegate.
9440 (init_dummy_target): Don't initialize to_pid_to_str.
9441 (default_pid_to_str): Rename from dummy_pid_to_str.
9442 * target.h (struct target_ops) <to_pid_to_str>: Use
9443 TARGET_DEFAULT_FUNC.
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9447 * target-delegates.c: Rebuild.
9448 * target.c (target_find_new_threads): Unconditionally delegate.
9449 * target.h (struct target_ops) <to_find_new_threads>: Use
9450 TARGET_DEFAULT_RETURN.
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9454 * target-delegates.c: Rebuild.
9455 * target.c (target_program_signals): Unconditionally delegate.
9456 * target.h (struct target_ops) <to_program_signals>: Use
9457 TARGET_DEFAULT_IGNORE.
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9461 * target-delegates.c: Rebuild.
9462 * target.c (target_pass_signals): Unconditionally delegate.
9463 * target.h (struct target_ops) <to_pass_signals>: Use
9464 TARGET_DEFAULT_IGNORE.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target-delegates.c: Rebuild.
9469 * target.c (default_mourn_inferior): New function.
9470 (target_mourn_inferior): Unconditionally delegate.
9471 * target.h (struct target_ops) <to_mourn_inferior>: Use
9472 TARGET_DEFAULT_FUNC.
9474 2014-02-19 Tom Tromey <tromey@redhat.com>
9476 * target-delegates.c: Rebuild.
9477 * target.c (default_follow_fork): New function.
9478 (target_follow_fork): Unconditionally delegate.
9479 * target.h (struct target_ops) <to_follow_fork>: Use
9480 TARGET_DEFAULT_FUNC.
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9484 * target-delegates.c: Rebuild.
9485 * target.c (target_kill): Unconditionally delegate.
9486 * target.h (struct target_ops) <to_kill>: Use
9487 TARGET_DEFAULT_NORETURN.
9489 2014-02-19 Tom Tromey <tromey@redhat.com>
9491 * target-delegates.c: Rebuild.
9492 * target.c (target_masked_watch_num_registers): Unconditionally
9494 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9495 Use TARGET_DEFAULT_RETURN.
9497 2014-02-19 Tom Tromey <tromey@redhat.com>
9499 * target-delegates.c: Rebuild.
9500 * target.c (target_remove_mask_watchpoint): Unconditionally
9502 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9503 TARGET_DEFAULT_RETURN.
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9507 * target-delegates.c: Rebuild.
9508 * target.c (target_insert_mask_watchpoint): Unconditionally
9510 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9511 TARGET_DEFAULT_RETURN.
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9515 * target-delegates.c: Rebuild.
9516 * target.c (target_ranged_break_num_registers): Unconditionally
9518 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9519 Use TARGET_DEFAULT_RETURN.
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9523 * target-delegates.c: Rebuild.
9524 * target.c (target_fetch_registers): Unconditionally delegate.
9525 * target.h (struct target_ops) <to_fetch_registers>: Use
9526 TARGET_DEFAULT_NORETURN.
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9530 * target-delegates.c: Rebuild.
9531 * target.c (update_current_target): Don't inherit or default
9533 * target.h (struct target_ops) <to_stop>: Use
9534 TARGET_DEFAULT_IGNORE.
9536 2014-02-19 Tom Tromey <tromey@redhat.com>
9538 * target-delegates.c: Rebuild.
9539 * target.c (update_current_target): Don't inherit or default
9540 to_can_run_breakpoint_commands.
9541 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9542 Use TARGET_DEFAULT_RETURN.
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9546 * target-delegates.c: Rebuild.
9547 * target.c (update_current_target): Don't inherit or default
9548 to_supports_evaluation_of_breakpoint_conditions.
9549 * target.h (struct target_ops)
9550 <to_supports_evaluation_of_breakpoint_conditions>: Use
9551 TARGET_DEFAULT_RETURN.
9553 2014-02-19 Tom Tromey <tromey@redhat.com>
9555 * target-delegates.c: Rebuild.
9556 * target.c (update_current_target): Don't inherit or default
9557 to_augmented_libraries_svr4_read.
9558 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9559 Use TARGET_DEFAULT_RETURN.
9561 2014-02-19 Tom Tromey <tromey@redhat.com>
9563 * target-delegates.c: Rebuild.
9564 * target.c (update_current_target): Don't inherit or default
9566 * target.h (struct target_ops) <to_can_use_agent>: Use
9567 TARGET_DEFAULT_RETURN.
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9571 * target-delegates.c: Rebuild.
9572 * target.c (update_current_target): Don't inherit or default
9574 * target.h (struct target_ops) <to_use_agent>: Use
9575 TARGET_DEFAULT_NORETURN.
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9579 * target-delegates.c: Rebuild.
9580 * target.c (update_current_target): Don't inherit or default
9582 (return_null): Remove.
9583 * target.h (struct target_ops) <to_traceframe_info>: Use
9584 TARGET_DEFAULT_RETURN.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target-delegates.c: Rebuild.
9589 * target.c (update_current_target): Don't inherit or default
9590 to_static_tracepoint_markers_by_strid.
9591 * target.h (struct target_ops)
9592 <to_static_tracepoint_markers_by_strid>: Use
9593 TARGET_DEFAULT_NORETURN.
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9597 * target-delegates.c: Rebuild.
9598 * target.c (update_current_target): Don't inherit or default
9599 to_static_tracepoint_marker_at.
9600 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9601 Use TARGET_DEFAULT_RETURN.
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9605 * target-delegates.c: Rebuild.
9606 * target.c (update_current_target): Don't inherit or default
9608 * target.h (struct target_ops) <to_set_permissions>: Use
9609 TARGET_DEFAULT_IGNORE.
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9613 * target-delegates.c: Rebuild.
9614 * target.c (update_current_target): Don't inherit or default
9616 * target.h (struct target_ops) <to_get_tib_address>: Use
9617 TARGET_DEFAULT_NORETURN.
9619 2014-02-19 Tom Tromey <tromey@redhat.com>
9621 * target-delegates.c: Rebuild.
9622 * target.c (update_current_target): Don't inherit or default
9624 * target.h (struct target_ops) <to_set_trace_notes>: Use
9625 TARGET_DEFAULT_RETURN.
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9629 * target-delegates.c: Rebuild.
9630 * target.c (update_current_target): Don't initialize
9631 to_set_trace_buffer_size.
9632 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9633 TARGET_DEFAULT_IGNORE.
9635 2014-02-19 Tom Tromey <tromey@redhat.com>
9637 * target-delegates.c: Rebuild.
9638 * target.c (update_current_target): Don't inherit or default
9639 to_set_circular_trace_buffer.
9640 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9641 TARGET_DEFAULT_IGNORE.
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * target-delegates.c: Rebuild.
9646 * target.c (update_current_target): Don't inherit or default
9647 to_set_disconnected_tracing.
9648 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9649 TARGET_DEFAULT_IGNORE.
9651 2014-02-19 Tom Tromey <tromey@redhat.com>
9653 * target-delegates.c: Rebuild.
9654 * target.c (update_current_target): Don't inherit or default
9655 to_get_min_fast_tracepoint_insn_len.
9656 (return_minus_one): Remove.
9657 * target.h (struct target_ops)
9658 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9662 * target-delegates.c: Rebuild.
9663 * target.c (update_current_target): Don't inherit or default
9664 to_get_raw_trace_data.
9665 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9666 TARGET_DEFAULT_NORETURN.
9668 2014-02-19 Tom Tromey <tromey@redhat.com>
9670 * target-delegates.c: Rebuild.
9671 * target.c (update_current_target): Don't inherit or default
9672 to_upload_trace_state_variables.
9673 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9674 Use TARGET_DEFAULT_RETURN.
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9678 * target-delegates.c: Rebuild.
9679 * target.c (update_current_target): Don't inherit or default
9680 to_upload_tracepoints.
9681 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9682 TARGET_DEFAULT_RETURN.
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9686 * target-delegates.c: Rebuild.
9687 * target.c (update_current_target): Don't inherit or default
9689 * target.h (struct target_ops) <to_save_trace_data>: Use
9690 TARGET_DEFAULT_NORETURN.
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9694 * target-delegates.c: Rebuild.
9695 * target.c (update_current_target): Don't inherit or default
9696 to_get_trace_state_variable_value.
9697 * target.h (struct target_ops)
9698 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9700 2014-02-19 Tom Tromey <tromey@redhat.com>
9702 * target-delegates.c: Rebuild.
9703 * target.c (update_current_target): Don't inherit or default
9705 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9709 * target-delegates.c: Rebuild.
9710 * target.c (update_current_target): Don't inherit or default
9712 * target.h (struct target_ops) <to_trace_stop>: Use
9713 TARGET_DEFAULT_NORETURN.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target-delegates.c: Rebuild.
9718 * target.c (update_current_target): Don't inherit or default
9719 to_get_tracepoint_status.
9720 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9721 TARGET_DEFAULT_NORETURN.
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9725 * target-delegates.c: Rebuild.
9726 * target.c (update_current_target): Don't inherit or default
9727 to_get_trace_status.
9728 * target.h (struct target_ops) <to_get_trace_status>: Use
9729 TARGET_DEFAULT_RETURN.
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9733 * target-delegates.c: Rebuild.
9734 * target.c (update_current_target): Don't inherit or default
9736 * target.h (struct target_ops) <to_trace_start>: Use
9737 TARGET_DEFAULT_NORETURN.
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target-delegates.c: Rebuild.
9742 * target.c (update_current_target): Don't inherit or default
9743 to_trace_set_readonly_regions.
9744 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9745 Use TARGET_DEFAULT_NORETURN.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target-delegates.c: Rebuild.
9750 * target.c (update_current_target): Don't inherit or default
9751 to_disable_tracepoint.
9752 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9753 TARGET_DEFAULT_NORETURN.
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9757 * target-delegates.c: Rebuild.
9758 * target.c (update_current_target): Don't inherit or default
9759 to_enable_tracepoint.
9760 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9761 TARGET_DEFAULT_NORETURN.
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9765 * target-delegates.c: Rebuild.
9766 * target.c (update_current_target): Don't inherit or default
9767 to_download_trace_state_variable.
9768 * target.h (struct target_ops) <to_download_trace_state_variable>:
9769 Use TARGET_DEFAULT_NORETURN.
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9773 * target-delegates.c: Rebuild.
9774 * target.c (update_current_target): Don't inherit or default
9775 to_can_download_tracepoint.
9776 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9777 TARGET_DEFAULT_RETURN.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * target-delegates.c: Rebuild.
9782 * target.c (update_current_target): Don't inherit or default
9783 to_download_tracepoint.
9784 * target.h (struct target_ops) <to_download_tracepoint>: Use
9785 TARGET_DEFAULT_NORETURN.
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9789 * target-delegates.c: Rebuild.
9790 * target.c (update_current_target): Don't inherit or default
9792 * target.h (struct target_ops) <to_trace_init>: Use
9793 TARGET_DEFAULT_RETURN.
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9797 * target-delegates.c: Rebuild.
9798 * target.c (update_current_target): Don't inherit or default
9799 to_supports_string_tracing.
9800 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9801 TARGET_DEFAULT_RETURN.
9803 2014-02-19 Tom Tromey <tromey@redhat.com>
9805 * target-delegates.c: Rebuild.
9806 * target.c (update_current_target): Don't inherit or default
9807 to_supports_enable_disable_tracepoint.
9808 * target.h (struct target_ops)
9809 <to_supports_enable_disable_tracepoint>: Use
9810 TARGET_DEFAULT_RETURN.
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * target-delegates.c: Rebuild.
9815 * target.c (update_current_target): Don't inherit or default
9816 to_supports_multi_process.
9817 * target.h (struct target_ops) <to_supports_multi_process>: Use
9818 TARGET_DEFAULT_RETURN.
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * target-delegates.c: Rebuild.
9823 * target.c (update_current_target): Don't inherit or default
9824 to_get_ada_task_ptid.
9825 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9826 TARGET_DEFAULT_FUNC.
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9830 * target-delegates.c: Rebuild.
9831 * target.c (update_current_target): Don't inherit or default
9832 to_thread_architecture.
9833 * target.h (struct target_ops) <to_thread_architecture>: Use
9834 TARGET_DEFAULT_FUNC.
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9838 * target-delegates.c: Rebuild.
9839 * target.c (update_current_target): Don't inherit or default
9840 to_execution_direction.
9841 * target.h (struct target_ops) <to_execution_direction>: Use
9842 TARGET_DEFAULT_FUNC.
9844 2014-02-19 Tom Tromey <tromey@redhat.com>
9846 * target-delegates.c: Rebuild.
9847 * target.c (update_current_target): Don't inherit or default
9848 to_can_execute_reverse.
9849 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9850 TARGET_DEFAULT_RETURN.
9851 (target_can_execute_reverse): Unconditionally delegate.
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9855 * target-delegates.c: Rebuild.
9856 * target.c (update_current_target): Don't inherit or default
9858 (dummy_goto_bookmark): Remove.
9859 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9860 * target.h (struct target_ops) <to_goto_bookmark>: Use
9861 TARGET_DEFAULT_NORETURN.
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9865 * target-delegates.c: Rebuild.
9866 * target.c (update_current_target): Don't inherit or default
9868 (dummy_get_bookmark): Remove.
9869 (init_dummy_target): Don't inherit or default to_get_bookmark.
9870 * target.h (struct target_ops) <to_get_bookmark>: Use
9871 TARGET_DEFAULT_NORETURN
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9875 * target-delegates.c: Rebuild.
9876 * target.c (update_current_target): Don't inherit or default
9877 to_make_corefile_notes.
9878 (init_dummy_target): Don't initialize to_make_corefile_notes.
9879 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9880 TARGET_DEFAULT_FUNC.
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9884 * target-delegates.c: Rebuild.
9885 * target.c (update_current_target): Don't inherit or default
9886 to_find_memory_regions.
9887 (init_dummy_target): Don't initialize to_find_memory_regions.
9888 * target.h (struct target_ops) <to_find_memory_regions>: Use
9889 TARGET_DEFAULT_FUNC.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * target-delegates.c: Rebuild.
9894 * target.c (update_current_target): Don't inherit or default
9896 * target.h (struct target_ops) <to_log_command>: Use
9897 TARGET_DEFAULT_IGNORE.
9898 (target_log_command): Unconditionally delegate.
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9902 * target-delegates.c: Rebuild.
9903 * target.c (update_current_target): Don't inherit or default
9904 to_pid_to_exec_file.
9905 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9906 TARGET_DEFAULT_RETURN.
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * target-delegates.c: Rebuild.
9911 * target.c (update_current_target): Don't inherit or default
9913 (target_thread_name): Unconditionally delegate.
9914 * target.h (struct target_ops) <to_thread_name>: Use
9915 TARGET_DEFAULT_RETURN.
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9919 * target-delegates.c: Rebuild.
9920 * target.c (update_current_target): Don't inherit or default
9921 to_extra_thread_info.
9922 * target.h (struct target_ops) <to_extra_thread_info>: Use
9923 TARGET_DEFAULT_RETURN.
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9927 * target-delegates.c: Rebuild.
9928 * target.c (update_current_target): Don't inherit or default
9930 * target.h (struct target_ops) <to_has_exited>: Use
9931 TARGET_DEFAULT_RETURN..
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9935 * target-delegates.c: Rebuild.
9936 * target.c (update_current_target): Don't inherit or default
9937 to_set_syscall_catchpoint.
9938 (return_one): Remove.
9939 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9940 TARGET_DEFAULT_RETURN.
9942 2014-02-19 Tom Tromey <tromey@redhat.com>
9944 * target-delegates.c: Rebuild.
9945 * target.c (update_current_target): Don't inherit or default
9946 to_insert_exec_catchpoint.
9947 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9948 TARGET_DEFAULT_RETURN.
9950 2014-01-08 Tom Tromey <tromey@redhat.com>
9952 * target-delegates.c: Rebuild.
9953 * target.c (update_current_target): Don't inherit or default
9954 to_insert_exec_catchpoint.
9955 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9956 TARGET_DEFAULT_RETURN.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target-delegates.c: Rebuild.
9961 * target.c (update_current_target): Don't inherit or default
9962 to_remove_vfork_catchpoint.
9963 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9964 TARGET_DEFAULT_RETURN.
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9968 * target-delegates.c: Rebuild.
9969 * target.c (update_current_target): Don't inherit or default
9970 to_insert_vfork_catchpoint.
9971 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9972 TARGET_DEFAULT_RETURN.
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9976 * target-delegates.c: Rebuild.
9977 * target.c (update_current_target): Don't inherit or default
9978 to_remove_fork_catchpoint.
9979 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9980 TARGET_DEFAULT_RETURN.
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9984 * target-delegates.c: Rebuild.
9985 * target.c (update_current_target): Don't inherit or default
9986 to_insert_fork_catchpoint.
9987 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9988 TARGET_DEFAULT_RETURN.
9990 2014-02-19 Tom Tromey <tromey@redhat.com>
9992 * target-delegates.c: Rebuild.
9993 * target.c (update_current_target): Don't inherit or default
9994 to_post_startup_inferior.
9995 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9996 TARGET_DEFAULT_IGNORE.
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * target-delegates.c: Rebuild.
10001 * target.c (update_current_target): Don't inherit or default
10003 * target.h (struct target_ops) <to_load>: Use
10004 TARGET_DEFAULT_NORETURN.
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10008 * target-delegates.c: Rebuild.
10009 * target.c (update_current_target): Don't inherit or default
10011 * target.h (struct target_ops) <to_terminal_info>: Use
10012 TARGET_DEFAULT_FUNC.
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * target-delegates.c: Rebuild.
10017 * target.c (update_current_target): Don't inherit or default
10018 to_terminal_save_ours.
10019 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10020 TARGET_DEFAULT_IGNORE.
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10024 * target-delegates.c: Rebuild.
10025 * target.c (update_current_target): Don't inherit or default
10027 * target.h (struct target_ops) <to_terminal_ours>: Use
10028 TARGET_DEFAULT_IGNORE.
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10032 * target-delegates.c: Rebuild.
10033 * target.c (update_current_target): Don't inherit or default
10034 to_terminal_ours_for_output.
10035 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10036 TARGET_DEFAULT_IGNORE.
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10040 * target-delegates.c: Rebuild.
10041 * target.c (update_current_target): Don't inherit or default
10042 to_terminal_inferior.
10043 * target.h (struct target_ops) <to_terminal_inferior>: Use
10044 TARGET_DEFAULT_IGNORE.
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10048 * target-delegates.c: Rebuild.
10049 * target.c (update_current_target): Don't inherit or default
10051 * target.h (struct target_ops) <to_terminal_init>: Use
10052 TARGET_DEFAULT_IGNORE.
10054 2014-02-19 Tom Tromey <tromey@redhat.com>
10056 * target-delegates.c: Rebuild.
10057 * target.c (update_current_target): Don't inherit or default
10058 to_can_accel_watchpoint_condition.
10059 * target.h (struct target_ops)
10060 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10064 * target-delegates.c: Rebuild.
10065 * target.c (update_current_target): Don't inherit or default
10066 to_region_ok_for_hw_watchpoint.
10067 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10068 Use TARGET_DEFAULT_FUNC.
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10072 * target-delegates.c: Rebuild.
10073 * target.c (update_current_target): Don't inherit or default
10074 to_watchpoint_addr_within_range.
10075 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10076 Use TARGET_DEFAULT_FUNC.
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10082 to_remove_watchpoint.
10083 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10084 TARGET_DEFAULT_NORETURN.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: Rebuild.
10089 * target.c (update_current_target): Don't inherit or default
10090 to_insert_watchpoint.
10091 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10092 TARGET_DEFAULT_RETURN.
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10098 to_remove_hw_breakpoint.
10099 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10100 TARGET_DEFAULT_RETURN.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target-delegates.c: Rebuild.
10105 * target.c (update_current_target): Don't inherit or default
10106 to_insert_hw_breakpoint.
10107 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10108 TARGET_DEFAULT_RETURN.
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10112 * target-delegates.c: Rebuild.
10113 * target.c (update_current_target): Don't inherit or default
10114 to_can_use_hw_breakpoint.
10115 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10116 TARGET_DEFAULT_RETURN.
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10120 * target-delegates.c: Rebuild.
10121 * target.c (update_current_target): Don't inherit or default
10123 * target.h (struct target_ops) <to_files_info>: Use
10124 TARGET_DEFAULT_IGNORE.
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10128 * target-delegates.c: Rebuild.
10129 * target.c (update_current_target): Don't inherit or default
10131 * target.h (struct target_ops) <to_store>: Use
10132 TARGET_DEFAULT_NORETURN.
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10136 * target-delegates.c: Rebuild.
10137 * target.c (update_current_target): Don't inherit or default
10139 * target.h (struct target_ops) <to_post_attach>: Use
10140 TARGET_DEFAULT_IGNORE.
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target-delegates.c: Rebuild.
10145 * target.c (update_current_target): Don't inherit or default
10147 (default_rcmd): New function.
10148 (do_monitor_command): Unconditionally delegate.
10149 * target.h (struct target_ops) <to_rmcd>: Use
10150 TARGET_DEFAULT_FUNC.
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10154 * target-delegates.c: Rebuild.
10155 * target.c (init_dummy_target): Don't initialize to_attach.
10156 (target_attach): Unconditionally delegate.
10157 * target.h (struct target_ops) <to_attach>: Use
10158 TARGET_DEFAULT_FUNC.
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10162 * target-delegates.c: Rebuild.
10163 * target.c (target_detach): Unconditionally delegate.
10164 (init_dummy_target): Don't initialize to_detach.
10165 * target.h (struct target_ops) <to_detach>: Use
10166 TARGET_DEFAULT_IGNORE.
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10170 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10172 (target_augmented_libraries_svr4_read): Add argument.
10173 * target.c (update_current_target): Update.
10174 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10177 2014-02-19 Tom Tromey <tromey@redhat.com>
10179 * target.h (struct target_ops) <to_call_history_range>: Add
10181 * target.c (target_call_history_range): Add argument.
10182 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10184 (record_btrace_call_history_from): Update.
10186 2014-02-19 Tom Tromey <tromey@redhat.com>
10188 * target.h (struct target_ops) <to_call_history_from>: Add
10190 * target.c (target_call_history_from): Add argument.
10191 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target.h (struct target_ops) <to_call_history>: Add argument.
10197 * target.c (target_call_history): Add argument.
10198 * record-btrace.c (record_btrace_call_history): Add 'self'
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10203 * target.h (struct target_ops) <to_insn_history_range>: Add
10205 * target.c (target_insn_history_range): Add argument.
10206 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10208 (record_btrace_insn_history_from): Update.
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10212 * target.h (struct target_ops) <to_insn_history_from>: Add
10214 * target.c (target_insn_history_from): Add argument.
10215 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10220 * target.h (struct target_ops) <to_insn_history>: Add argument.
10221 * target.c (target_insn_history): Add argument.
10222 * record-btrace.c (record_btrace_insn_history): Add 'self'
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10227 * target.h (struct target_ops) <to_goto_record>: Add argument.
10228 * target.c (target_goto_record): Add argument.
10229 * record-full.c (record_full_goto): Add 'self' argument.
10230 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10234 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10235 * target.c (target_goto_record_end): Add argument.
10236 * record-full.c (record_full_goto_end): Add 'self' argument.
10237 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10241 * target.h (struct target_ops) <to_goto_record_begin>: Add
10243 * target.c (target_goto_record_begin): Add argument.
10244 * record-full.c (record_full_goto_begin): Add 'self' argument.
10245 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10248 2014-02-19 Tom Tromey <tromey@redhat.com>
10250 * target.h (struct target_ops) <to_record_is_replaying>: Add
10252 * target.c (target_record_is_replaying): Add argument.
10253 * record-full.c (record_full_is_replaying): Add 'self' argument.
10254 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10256 (record_btrace_xfer_partial, record_btrace_store_registers)
10257 (record_btrace_prepare_to_store, record_btrace_resume)
10258 (record_btrace_wait, record_btrace_decr_pc_after_break)
10259 (record_btrace_find_new_threads, record_btrace_thread_alive):
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target.h (struct target_ops) <to_delete_record>: Add argument.
10265 * target.c (target_delete_record): Add argument.
10266 * record-full.c (record_full_delete): Add 'self' argument.
10268 2014-02-19 Tom Tromey <tromey@redhat.com>
10270 * target.h (struct target_ops) <to_save_record>: Add argument.
10271 * target.c (target_save_record): Add argument.
10272 * record-full.c (record_full_save): Add 'self' argument.
10273 (record_full_save): Add 'self' argument.
10275 2014-02-19 Tom Tromey <tromey@redhat.com>
10277 * target.h (struct target_ops) <to_info_record>: Add argument.
10278 * target.c (target_info_record): Add argument.
10279 * record.c (info_record_command): Add argument.
10280 * record-full.c (record_full_info): Add 'self' argument.
10281 * record-btrace.c (record_btrace_info): Add 'self' argument.
10283 2014-02-19 Tom Tromey <tromey@redhat.com>
10285 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10286 * target.c (target_stop_recording): Add argument.
10287 * record.c (record_stop): Add argument.
10288 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10293 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10294 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10295 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10297 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10298 (_initialize_amd64_linux_nat): Use it.
10299 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10300 (_initialize_i386_linux_nat): Use it.
10302 2014-02-19 Tom Tromey <tromey@redhat.com>
10304 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10305 * target.c (target_teardown_btrace): Add argument.
10306 * remote.c (remote_teardown_btrace): Add 'self' argument.
10307 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10309 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10312 2014-02-19 Tom Tromey <tromey@redhat.com>
10314 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10315 * target.c (target_disable_btrace): Add argument.
10316 * remote.c (remote_disable_btrace): Add 'self' argument.
10317 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10319 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10324 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10325 * target.c (target_enable_btrace): Add argument.
10326 * remote.c (remote_enable_btrace): Add 'self' argument.
10327 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10329 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10332 2014-02-19 Tom Tromey <tromey@redhat.com>
10334 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10335 (target_can_use_agent): Add argument.
10336 * target.c (update_current_target): Update.
10337 * remote.c (remote_can_use_agent): Add 'self' argument.
10338 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10342 * target.h (struct target_ops) <to_use_agent>: Add argument.
10343 (target_use_agent): Add argument.
10344 * target.c (update_current_target): Update.
10345 * remote.c (remote_use_agent): Add 'self' argument.
10346 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10350 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10351 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10352 (target_traceframe_info): Add argument.
10353 * target.c (update_current_target): Update.
10354 * remote.c (remote_traceframe_info): Add 'self' argument.
10355 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10359 * target.h (target_static_tracepoint_markers_by_strid): Add
10361 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10363 * target.c (update_current_target): Update.
10364 * remote.c (struct target_ops)
10365 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10366 * linux-nat.c (struct target_ops)
10367 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10373 (target_static_tracepoint_marker_at): Add argument.
10374 * target.c (update_current_target): Update.
10375 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10378 2014-02-19 Tom Tromey <tromey@redhat.com>
10380 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10381 (target_set_permissions): Add argument.
10382 * target.c (update_current_target): Update.
10383 * remote.c (remote_set_permissions): Add 'self' argument.
10384 (remote_start_remote): Update.
10386 2014-02-19 Tom Tromey <tromey@redhat.com>
10388 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10389 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10390 (target_get_tib_address): Add argument.
10391 * target.c (update_current_target): Update.
10392 * remote.c (remote_get_tib_address): Add 'self' argument.
10394 2014-02-19 Tom Tromey <tromey@redhat.com>
10396 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10397 (target_set_trace_notes): Add argument.
10398 * target.c (update_current_target): Update.
10399 * remote.c (remote_set_trace_notes): Add 'self' argument.
10401 2014-02-19 Tom Tromey <tromey@redhat.com>
10403 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10405 (target_set_trace_buffer_size): Add argument.
10406 * target.c (update_current_target): Update.
10407 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10409 2014-02-19 Tom Tromey <tromey@redhat.com>
10411 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10413 (target_set_circular_trace_buffer): Add argument.
10414 * target.c (update_current_target): Update.
10415 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10418 2014-02-19 Tom Tromey <tromey@redhat.com>
10420 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10422 (target_set_disconnected_tracing): Add argument.
10423 * target.c (update_current_target): Update.
10424 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10426 2014-02-19 Tom Tromey <tromey@redhat.com>
10428 * target.h (struct target_ops)
10429 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10430 (target_get_min_fast_tracepoint_insn_len): Add argument.
10431 * target.c (update_current_target): Update.
10432 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10437 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10439 (target_get_raw_trace_data): Add argument.
10440 * target.c (update_current_target): Update.
10441 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10445 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10447 (target_upload_trace_state_variables): Add argument.
10448 * target.c (update_current_target): Update.
10449 * remote.c (remote_upload_trace_state_variables): Add 'self'
10451 (remote_start_remote): Update.
10453 2014-02-19 Tom Tromey <tromey@redhat.com>
10455 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10457 (target_upload_tracepoints): Add argument.
10458 * target.c (update_current_target): Update.
10459 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10460 (remote_start_remote): Update.
10462 2014-02-19 Tom Tromey <tromey@redhat.com>
10464 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10465 (target_save_trace_data): Add argument.
10466 * target.c (update_current_target): Update.
10467 * remote.c (remote_save_trace_data): Add 'self' argument.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10473 * target.h (struct target_ops)
10474 <to_get_trace_state_variable_value>: Add argument.
10475 (target_get_trace_state_variable_value): Add argument.
10476 * target.c (update_current_target): Update.
10477 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10479 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10483 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10484 * target.h (struct target_ops) <to_trace_find>: Add argument.
10485 (target_trace_find): Add argument.
10486 * target.c (update_current_target): Update.
10487 * remote.c (remote_trace_find): Add 'self' argument.
10488 * ctf.c (ctf_trace_find): Add 'self' argument.
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10493 (target_trace_stop): Add argument.
10494 * target.c (update_current_target): Update.
10495 * remote.c (remote_trace_stop): Add 'self' argument.
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10499 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10500 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10502 (target_get_tracepoint_status): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10508 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10509 * target.h (struct target_ops) <to_get_trace_status>: Add
10511 (target_get_trace_status): Add argument.
10512 * target.c (update_current_target): Update.
10513 * remote.c (remote_get_trace_status): Add 'self' argument.
10514 (remote_start_remote, remote_can_download_tracepoint): Update.
10515 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10519 * target.h (struct target_ops) <to_trace_start>: Add argument.
10520 (target_trace_start): Add argument.
10521 * target.c (update_current_target): Update.
10522 * remote.c (remote_trace_start): Add 'self' argument.
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10528 (target_trace_set_readonly_regions): Add argument.
10529 * target.c (update_current_target): Update.
10530 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10533 2014-02-19 Tom Tromey <tromey@redhat.com>
10535 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10537 (target_disable_tracepoint): Add argument.
10538 * target.c (update_current_target): Update.
10539 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10543 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10545 (target_enable_tracepoint): Add argument.
10546 * target.c (update_current_target): Update.
10547 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10549 2014-02-19 Tom Tromey <tromey@redhat.com>
10551 * target.h (struct target_ops) <to_download_trace_state_variable>:
10553 (target_download_trace_state_variable): Add argument.
10554 * target.c (update_current_target): Update.
10555 * remote.c (remote_download_trace_state_variable): Add 'self'
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10560 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10562 (target_can_download_tracepoint): Add argument.
10563 * target.c (update_current_target): Update.
10564 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * target.h (struct target_ops) <to_download_tracepoint>: Add
10570 (target_download_tracepoint): Add argument.
10571 * target.c (update_current_target): Update.
10572 * remote.c (remote_download_tracepoint): Add 'self' argument.
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10576 * target.h (struct target_ops) <to_trace_init>: Add argument.
10577 (target_trace_init): Add argument.
10578 * target.c (update_current_target): Update.
10579 * remote.c (remote_trace_init): Add 'self' argument.
10581 2014-02-19 Tom Tromey <tromey@redhat.com>
10583 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10584 * target.c (target_fileio_readlink): Add argument.
10585 * remote.c (remote_hostio_readlink): Add 'self' argument.
10586 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10588 2014-02-19 Tom Tromey <tromey@redhat.com>
10590 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10591 * target.c (target_fileio_unlink): Add argument.
10592 * remote.c (remote_hostio_unlink): Add 'self' argument.
10593 (remote_file_delete): Update.
10594 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10598 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10599 * target.c (target_fileio_close): Add argument.
10600 * remote.c (remote_hostio_close): Add 'self' argument.
10601 (remote_hostio_close_cleanup): Update.
10602 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10604 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10608 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10609 * target.c (target_fileio_pread): Add argument.
10610 * remote.c (remote_hostio_pread): Add 'self' argument.
10611 (remote_bfd_iovec_pread, remote_file_get): Update.
10612 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10616 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10617 * target.c (target_fileio_pwrite): Add argument.
10618 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10619 (remote_file_put): Update.
10620 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10625 * target.c (target_fileio_open): Add argument.
10626 * remote.c (remote_hostio_open): Add 'self' argument.
10627 (remote_bfd_iovec_open): Add 'self' argument.
10628 (remote_file_put): Add 'self' argument.
10629 (remote_file_get): Add 'self' argument.
10630 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10634 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10636 (target_can_run_breakpoint_commands): Add argument.
10637 * target.c (update_current_target): Update.
10638 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10640 (remote_insert_breakpoint): Add 'self' argument.
10641 (remote_insert_hw_breakpoint): Add 'self' argument.
10642 (remote_can_run_breakpoint_commands): Add 'self' argument.
10644 2014-02-19 Tom Tromey <tromey@redhat.com>
10646 * target.h (struct target_ops)
10647 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10648 (target_supports_evaluation_of_breakpoint_conditions): Add
10650 * target.c (update_current_target): Update.
10651 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10653 (remote_insert_breakpoint): Add 'self' argument.
10654 (remote_insert_hw_breakpoint): Add 'self' argument.
10655 (remote_supports_cond_breakpoints): Add 'self' argument.
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10659 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10661 (target_supports_string_tracing): Add argument.
10662 * target.c (update_current_target): Update.
10663 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10667 * target.h (struct target_ops)
10668 <to_supports_disable_randomization>: Add argument.
10669 * target.c (find_default_supports_disable_randomization): Add
10671 (target_supports_disable_randomization): Add argument.
10672 (find_default_supports_disable_randomization): Add 'self'
10674 * remote.c (extended_remote_supports_disable_randomization): Add
10676 (remote_supports_disable_randomization): Add 'self' argument.
10677 (extended_remote_create_inferior): Update.
10678 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10683 * target.h (struct target_ops)
10684 <to_supports_enable_disable_tracepoint>: Add argument.
10685 (target_supports_enable_disable_tracepoint): Add argument.
10686 * target.c (update_current_target): Update.
10687 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10690 2014-02-19 Tom Tromey <tromey@redhat.com>
10692 * target.h (struct target_ops) <to_supports_multi_process>: Add
10694 (target_supports_multi_process): Add argument.
10695 * target.c (update_current_target): Update.
10696 * remote.c (remote_supports_multi_process): Add 'self' argument.
10697 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10699 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10704 * target.h (struct target_ops) <to_execution_direction>: Add
10706 (target_execution_direction): Add argument.
10707 * target.c (default_execution_direction): Add 'self' argument.
10708 * record-full.c (record_full_execution_direction): Add 'self'
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10713 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10715 (target_can_execute_reverse): Add argument.
10716 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10717 * record-full.c (record_full_can_execute_reverse): Add 'self'
10719 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10722 2014-02-19 Tom Tromey <tromey@redhat.com>
10724 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10725 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10727 (target_get_ada_task_ptid): Add argument.
10728 * target.c (update_current_target): Update.
10729 (default_get_ada_task_ptid): Add 'self' argument.
10730 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10731 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10732 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10734 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10736 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10738 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10740 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10741 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10746 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10747 (target_goto_bookmark): Add argument.
10748 * target.c (dummy_goto_bookmark): Add 'self' argument.
10749 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10751 2014-02-19 Tom Tromey <tromey@redhat.com>
10753 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10754 (target_get_bookmark): Add argument.
10755 * target.c (dummy_get_bookmark): Add 'self' argument.
10756 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10760 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10762 (target_make_corefile_notes): Add argument.
10763 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10764 * procfs.c (procfs_make_note_section): Add 'self' argument.
10765 (procfs_make_note_section): Add 'self' argument.
10766 (procfs_make_note_section): Add 'self' argument.
10767 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10769 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10770 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10771 * exec.c (exec_make_note_section): Add 'self' argument.
10772 (exec_make_note_section): Add 'self' argument.
10774 2014-02-19 Tom Tromey <tromey@redhat.com>
10776 * target.h (struct target_ops) <to_find_memory_regions>: Add
10778 (target_find_memory_regions): Add argument.
10779 * target.c (dummy_find_memory_regions): Add 'self' argument.
10780 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10781 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10782 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10783 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10784 * exec. (exec_do_find_memory_regions): New global.
10785 (exec_set_find_memory_regions): Rewrite.
10786 (exec_find_memory_regions): New function.
10787 (init_exec_ops): Use exec_find_memory_regions.
10789 2014-02-19 Tom Tromey <tromey@redhat.com>
10791 * target.h (struct target_ops) <to_supports_non_stop>: Add
10793 * target.c (find_default_supports_non_stop): Add argument.
10794 (target_supports_non_stop): Add argument.
10795 (find_default_supports_non_stop): Add 'self' argument.
10796 * remote.c (remote_supports_non_stop): Add 'self' argument.
10797 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target.h (struct target_ops) <to_log_command>: Add argument.
10802 (target_log_command): Add argument.
10803 * serial.h (serial_log_command): Add 'self' argument.
10804 * serial.c (serial_log_command): Add 'self' argument.
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10808 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10809 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10811 (target_pid_to_exec_file): Add argument.
10812 * target.c (debug_to_pid_to_exec_file): Add argument.
10813 (update_current_target): Update.
10814 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10815 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10816 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10817 (linux_handle_extended_wait): Update.
10818 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10819 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10820 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10821 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10823 2014-02-19 Tom Tromey <tromey@redhat.com>
10825 * target.h (struct target_ops) <to_rcmd>: Add argument.
10826 (target_rcmd): Add argument.
10827 * target.c (debug_to_rcmd): Add argument.
10828 (update_current_target, do_monitor_command): Update.
10829 * remote.c (remote_rcmd): Add 'self' argument.
10830 * monitor.c (monitor_rcmd): Add 'self' argument.
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10834 * windows-nat.c (windows_stop): Add 'self' argument.
10835 * target.h (struct target_ops) <to_stop>: Add argument.
10836 * target.c (target_stop): Add argument.
10837 (debug_to_stop): Add argument.
10838 (update_current_target): Update.
10839 * remote.c (remote_stop): Add 'self' argument.
10840 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10841 (gdbsim_cntrl_c): Update.
10842 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10843 * procfs.c (procfs_stop): Add 'self' argument.
10844 * nto-procfs.c (procfs_stop): Add 'self' argument.
10845 * monitor.c (monitor_stop): Add 'self' argument.
10846 (monitor_open): Update.
10847 * linux-nat.c (linux_nat_stop): Add argument.
10848 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10849 * gnu-nat.c (gnu_stop): Add 'self' argument.
10850 * darwin-nat.c (darwin_stop): Add 'self' argument.
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10854 * target.h (struct target_ops) <to_thread_name>: Add argument.
10855 * target.c (target_thread_name): Add argument.
10856 (update_current_target): Update.
10857 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10859 2014-02-19 Tom Tromey <tromey@redhat.com>
10861 * target.h (struct target_ops) <to_extra_thread_info>: Add
10863 (target_extra_thread_info): Add argument.
10864 * target.c (update_current_target): Update.
10865 * remote.c (remote_threads_extra_info): Add 'self' argument.
10866 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10868 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10869 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10870 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10872 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10874 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10876 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10879 2014-02-19 Tom Tromey <tromey@redhat.com>
10881 * target.h (struct target_ops) <to_program_signals>: Add argument.
10882 * target.c (target_program_signals): Add argument.
10883 * remote.c (remote_program_signals): Add 'self' argument.
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10887 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10888 * target.c (target_pass_signals): Add argument.
10889 * remote.c (remote_pass_signals): Add 'self' argument.
10890 (remote_start_remote): Update.
10891 * procfs.c (procfs_pass_signals): Add 'self' argument.
10892 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10893 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10894 (linux_nat_create_inferior, linux_nat_attach): Update.
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10898 * windows-nat.c (windows_can_run): Add 'self' argument.
10899 * target.h (struct target_ops) <to_can_run>: Add argument.
10900 (target_can_run): Add argument.
10901 * target.c (debug_to_can_run): Add argument.
10902 (update_current_target): Update.
10903 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10904 * inf-child.c (inf_child_can_run): Add 'self' argument.
10905 * go32-nat.c (go32_can_run): Add 'self' argument.
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10909 * target.h (struct target_ops) <to_has_exited>: Add argument.
10910 (target_has_exited): Add argument.
10911 * target.c (debug_to_has_exited): Add argument.
10912 (update_current_target): Update.
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10916 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10918 (target_set_syscall_catchpoint): Add argument.
10919 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10921 * target.c (update_current_target): Update.
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10925 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10927 (target_remove_exec_catchpoint): Add argument.
10928 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10929 (update_current_target): Update.
10930 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10935 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10937 (target_insert_exec_catchpoint): Add argument.
10938 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10939 (update_current_target): Update.
10940 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10945 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10947 (target_remove_vfork_catchpoint): Add argument.
10948 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10949 (update_current_target): Update.
10950 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10953 2014-02-19 Tom Tromey <tromey@redhat.com>
10955 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10957 (target_insert_vfork_catchpoint): Add argument.
10958 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10959 (update_current_target): Update.
10960 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10965 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10967 (target_remove_fork_catchpoint): Add argument.
10968 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10969 (update_current_target): Update.
10970 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10973 2014-02-19 Tom Tromey <tromey@redhat.com>
10975 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10977 (target_insert_fork_catchpoint): Add argument.
10978 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10979 (update_current_target): Update.
10980 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10983 2014-02-19 Tom Tromey <tromey@redhat.com>
10985 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10987 (target_post_startup_inferior): Add argument.
10988 * target.c (debug_to_post_startup_inferior): Add argument.
10989 (update_current_target): Update.
10990 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10992 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10994 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10996 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10998 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11000 (super_post_startup_inferior): Likewise.
11001 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11003 (super_post_startup_inferior): Likewise.
11004 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11005 Add 'self' argument.
11006 (super_post_startup_inferior): Likewise.
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11010 * target.h (struct target_ops) <to_load>: Add argument.
11011 * target.c (target_load): Add argument.
11012 (debug_to_load): Add argument.
11013 (update_current_target): Update.
11014 * remote.c (remote_load): Add 'self' argument.
11015 * remote-sim.c (gdbsim_load): Add 'self' argument.
11016 * remote-mips.c (mips_load): Add 'self' argument.
11017 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11018 * monitor.c (monitor_load): Add 'self' argument.
11019 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11021 2014-02-19 Tom Tromey <tromey@redhat.com>
11023 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11024 (target_terminal_info): Add argument.
11025 * target.c (debug_to_terminal_info): Add argument.
11026 (default_terminal_info): Likewise.
11027 * inflow.c (child_terminal_info): Add 'self' argument.
11028 * inferior.h (child_terminal_info): Add 'self' argument.
11029 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11031 2014-02-19 Tom Tromey <tromey@redhat.com>
11033 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11035 (target_terminal_save_ours): Add argument.
11036 * target.c (debug_to_terminal_save_ours): Add argument.
11037 (update_current_target): Update.
11038 * inflow.c (terminal_save_ours): Add 'self' argument.
11039 * inferior.h (terminal_save_ours): Add 'self' argument.
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11043 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11044 (target_terminal_ours): Add argument.
11045 * target.c (debug_to_terminal_ours): Add argument.
11046 (update_current_target): Update.
11047 * remote.c (remote_terminal_ours): Add 'self' argument.
11048 (remote_close): Update.
11049 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11050 * inflow.c (terminal_ours): Add 'self' argument.
11051 * inferior.h (terminal_ours): Add 'self' argument.
11052 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11054 2014-02-19 Pedro Alves <palves@redhat.com>
11055 Tom Tromey <tromey@redhat.com>
11057 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11059 (target_terminal_ours_for_output): Add argument.
11060 * target.c (debug_to_terminal_ours_for_output): Add argument.
11061 (update_current_target): Update.
11062 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11063 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11064 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11066 2014-02-19 Tom Tromey <tromey@redhat.com>
11068 * target.h (struct target_ops) <to_terminal_inferior>: Add
11070 * target.c (target_terminal_inferior): Add argument.
11071 (update_current_target): Update.
11072 * remote.c (remote_terminal_inferior): Add 'self' argument.
11073 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11074 * inflow.c (terminal_inferior): Add 'self' argument.
11075 * inferior.h (terminal_inferior): Add 'self' argument.
11076 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11077 (go32_terminal_inferior): Add 'self' argument.
11079 2014-02-19 Tom Tromey <tromey@redhat.com>
11081 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11082 (target_terminal_init): Add argument.
11083 * target.c (debug_to_terminal_init): Add argument.
11084 (update_current_target): Update.
11085 * inflow.c (terminal_init_inferior): Add 'self' argument.
11086 * inferior.h (terminal_init_inferior): Add 'self' argument.
11087 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11088 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11092 * target.h (struct target_ops)
11093 <to_can_accel_watchpoint_condition>: Add argument.
11094 (target_can_accel_watchpoint_condition): Add argument.
11095 * target.c (debug_to_can_accel_watchpoint_condition): Add
11097 (update_current_target): Update.
11098 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11103 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11105 (target_region_ok_for_hw_watchpoint): Add argument.
11106 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11107 (default_region_ok_for_hw_watchpoint): Add argument.
11108 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11109 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11111 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11113 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11115 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11117 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11119 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11121 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11122 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11124 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11125 Add 'self' argument.
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11131 (target_insert_watchpoint): Add argument.
11132 * target.c (debug_to_insert_watchpoint): Add argument.
11133 (update_current_target): Update.
11134 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11135 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11136 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11137 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11138 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11139 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11141 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11142 (procfs_insert_hw_watchpoint): Add 'self' argument.
11143 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11145 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11147 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11149 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11150 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11152 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11155 2014-02-19 Tom Tromey <tromey@redhat.com>
11157 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11159 (target_remove_watchpoint): Add argument.
11160 * target.c (debug_to_remove_watchpoint): Add argument.
11161 (update_current_target): Update.
11162 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11163 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11164 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11165 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11166 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11167 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11169 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11170 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11172 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11174 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11176 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11177 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11179 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11184 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11186 (target_remove_hw_breakpoint): Add argument.
11187 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11188 (update_current_target): Update.
11189 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11190 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11192 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11193 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11195 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11200 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11202 (target_insert_hw_breakpoint): Add argument.
11203 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11204 (update_current_target): Update.
11205 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11206 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11208 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11209 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11210 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11212 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11215 2014-02-19 Tom Tromey <tromey@redhat.com>
11217 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11219 (target_can_use_hardware_watchpoint): Add argument.
11220 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11221 (update_current_target): Update.
11222 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11224 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11226 * remote.c (remote_check_watch_resources): Add 'self' argument.
11227 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11228 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11230 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11231 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11233 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11235 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11237 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11239 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11241 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11243 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11244 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11246 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11251 * target.h (struct target_ops) <to_post_attach>: Add argument.
11252 (target_post_attach): Add argument.
11253 * target.c (debug_to_post_attach): Add argument.
11254 (update_current_target): Update.
11255 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11256 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11257 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11258 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11259 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11261 2014-02-19 Tom Tromey <tromey@redhat.com>
11263 * windows-nat.c (windows_close): Add 'self' argument.
11264 * tracepoint.c (tfile_close): Add 'self' argument.
11265 * target.h (struct target_ops) <to_close>: Add argument.
11266 * target.c (target_close): Add argument.
11267 (update_current_target): Update.
11268 * remote.c (remote_close): Add 'self' argument.
11269 * remote-sim.c (gdbsim_close): Add 'self' argument.
11270 * remote-mips.c (mips_close): Add 'self' argument.
11271 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11272 * record-full.c (record_full_close): Add 'self' argument.
11273 * record-btrace.c (record_btrace_close): Add 'self' argument.
11274 * monitor.h (monitor_close): Add 'self' argument.
11275 * monitor.c (monitor_close): Add 'self' argument.
11276 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11277 * linux-nat.c (linux_nat_close): Add argument.
11278 * go32-nat.c (go32_close): Add 'self' argument.
11279 * exec.c (exec_close_1): Add 'self' argument.
11280 * ctf.c (ctf_close): Add 'self' argument.
11281 * corelow.c (core_close): Add 'self' argument.
11282 (core_close_cleanup): Update.
11283 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11284 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * remote.c (remote_load): New function.
11289 (init_remote_ops): Use it.
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11293 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11295 * common/linux-btrace.h (linux_supports_btrace): Update.
11296 * remote.c (remote_supports_btrace): Add "self" argument.
11297 * target-delegates.c: Rebuild.
11298 * target.c (target_supports_btrace): Remove.
11299 * target.h (struct target_ops) <to_supports_btrace>: Add
11300 target_ops argument.
11301 (target_supports_btrace): New define.
11303 2014-02-19 Tom Tromey <tromey@redhat.com>
11305 * record-full.c (record_full_beneath_to_resume_ops)
11306 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11307 (record_full_beneath_to_wait)
11308 (record_full_beneath_to_store_registers_ops)
11309 (record_full_beneath_to_store_registers)
11310 (record_full_beneath_to_xfer_partial_ops)
11311 (record_full_beneath_to_xfer_partial)
11312 (record_full_beneath_to_insert_breakpoint_ops)
11313 (record_full_beneath_to_insert_breakpoint)
11314 (record_full_beneath_to_remove_breakpoint_ops)
11315 (record_full_beneath_to_remove_breakpoint)
11316 (record_full_beneath_to_stopped_by_watchpoint)
11317 (record_full_beneath_to_stopped_data_address)
11318 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11319 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11320 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11321 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11322 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11323 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11324 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11325 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11326 (record_full_resume, record_full_wait_1)
11327 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11328 (record_full_store_registers, record_full_xfer_partial)
11329 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11330 (record_full_async, record_full_core_xfer_partial): Use target
11332 * target-delegates.c: Rebuild.
11333 * target.c (current_xfer_partial): Remove.
11334 (update_current_target): Do not INHERIT or de_fault
11335 to_insert_breakpoint, to_remove_breakpoint,
11336 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11337 to_is_async_p, to_async. Do not set to_xfer_partial field.
11338 (default_xfer_partial): Simplify.
11339 (current_xfer_partial): Remove.
11340 (target_wait, target_resume): Simplify.
11341 (find_default_can_async_p, find_default_is_async_p): Update.
11342 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11343 to_xfer_partial, to_stopped_by_watchpoint,
11344 to_stopped_data_address.
11345 (target_store_registers): Simplify.
11346 (forward_target_remove_breakpoint)
11347 (forward_target_insert_breakpoint): Remove.
11348 (target_remove_breakpoint, target_insert_breakpoint)
11349 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11350 * target.h (struct target_ops) <to_resume, to_wait,
11351 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11352 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11353 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11355 (forward_target_remove_breakpoint)
11356 (forward_target_insert_breakpoint): Remove.
11357 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11359 (record_btrace_insert_breakpoint): Delegate directly.
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11364 * target-delegates.c: New file.
11365 * target.c: Include target-delegates.c.
11366 (init_dummy_target): Call install_dummy_methods.
11367 (complete_target_initialization): Call install_delegators.
11368 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11369 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11370 * make-target-delegates: New file.
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11374 * record.c (find_record_target): Use find_target_at.
11375 * target.c (find_target_at): New function.
11376 * target.h (find_target_at): Declare.
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11380 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11381 Add 'ops' argument.
11382 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11384 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11385 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11387 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11389 * linux-nat.c (save_sigtrap): Update.
11390 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11391 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11392 (linux_nat_close): Update.
11393 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11395 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11397 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11398 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11399 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11400 (tmp_to_async): Add 'ops' argument.
11401 (record_full_stopped_by_watchpoint, record_full_async)
11402 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11404 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11405 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11406 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11407 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11408 (remote_is_async_p, remote_async): Add 'ops' argument.
11409 (remote_stopped_data_address): Update.
11410 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11411 * target.c (update_current_target)
11412 (find_default_can_async_p, find_default_is_async_p): Update.
11413 (init_dummy_target): Update.
11414 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11415 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11416 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11417 (target_can_async_p, target_is_async_p, target_async)
11418 (target_stopped_by_watchpoint): Update.
11420 2014-02-19 Yao Qi <yao@codesourcery.com>
11423 * gdbarch.sh: Remove startup_gdbarch.
11424 * gdbarch.c: Regenerated.
11425 * gdbarch.h: Likewise.
11427 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11429 * rl78-tdep.c (rl78_g10_register_name): New function.
11430 (rl78_return_value): Add g10 support.
11431 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11434 2014-02-17 Doug Evans <xdje42@gmail.com>
11436 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11437 (SUBDIR_GUILE_SRCS): Ditto.
11438 (scm-gsmob.o): Ditto.
11440 2014-02-17 Yao Qi <yao@codesourcery.com>
11442 * gnu-nat.c (ILL_RPC): Declare defined function.
11444 2014-02-17 Yao Qi <yao@codesourcery.com>
11446 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11447 mach_msg_type_number_t.
11448 (gnu_write_inferior): Likewise.
11450 2014-02-17 Yao Qi <yao@codesourcery.com>
11452 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11454 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11455 (inf_validate_procs, inf_signal): Likewise.
11456 (S_exception_raise_request): Likewise.
11457 (do_mach_notify_dead_name): Likewise.
11458 (steal_exc_port): Likewise.
11459 (gnu_read_inferior): Change 'copy_count''s type to
11460 mach_msg_type_number_t.
11461 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11464 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11466 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11467 flag. Adjust all users; in particular...
11468 (gnu_wait): ..., don't decrement its value in here...
11469 (gnu_create_inferior): ..., and instead set the flag in here,
11470 around the startup_inferior call, and call that one with
11471 START_INFERIOR_TRAPS_EXPECTED.
11473 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11474 (ILL_RPC): ... new macro.
11475 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11476 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11477 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11478 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11479 functions with ILL_RPC macro.
11480 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11481 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11482 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11483 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11484 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11485 (S_proc_getlogin_reply, S_proc_getsid_reply)
11486 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11487 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11488 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11489 (S_proc_getnports_reply, S_proc_is_important_reply)
11490 (S_proc_get_code_reply): New stub functions, generated with
11493 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11494 collected the type check structures.
11496 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11498 2014-02-14 Doug Evans <dje@google.com>
11500 * target.c (target_write_partial): Fix result type.
11502 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11504 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11505 the proper offsets to access fpregset_t.
11507 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11509 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11510 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11511 * h8300-tdep.c (setmachinelist): Remove global.
11512 * hppa-tdep.c (hppa_sigtramp): Remove global.
11513 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11514 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11515 * ravenscar-thread.c (update_target_observer): Remove global.
11516 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11518 2014-02-12 Tom Tromey <tromey@redhat.com>
11520 * common/rsp-low.c: Update comments.
11521 * common/rsp-low.h: Update comments.
11523 2014-02-12 Tom Tromey <tromey@redhat.com>
11525 * common/rsp-low.c (convert_ascii_to_int): Remove.
11526 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11528 2014-02-12 Tom Tromey <tromey@redhat.com>
11530 * common/rsp-low.h (unhexify): Don't declare.
11531 * common/rsp-low.c (unhexify): Remove.
11533 2014-02-12 Tom Tromey <tromey@redhat.com>
11535 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11536 * common/rsp-low.c (convert_int_to_ascii): Remove.
11538 2014-02-12 Tom Tromey <tromey@redhat.com>
11540 * common/rsp-low.h (hexify): Don't declare.
11541 * common/rsp-low.c (hexify): Remove.
11543 2014-02-12 Tom Tromey <tromey@redhat.com>
11545 * common/rsp-low.c (hexify): Never take strlen of argument.
11547 2014-02-12 Tom Tromey <tromey@redhat.com>
11549 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11550 * remote.c (extended_remote_run, remote_rcmd)
11551 (remote_download_trace_state_variable, remote_save_trace_data)
11552 (remote_set_trace_notes): Update.
11553 * tracepoint.c (encode_source_string, tfile_write_status)
11554 (tfile_write_uploaded_tsv): Update.
11556 2014-02-12 Tom Tromey <tromey@redhat.com>
11558 * tracepoint.c: Include rsp-low.h.
11559 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11560 * remote.c: Include rsp-low.h.
11561 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11562 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11563 (remote_unescape_input): Move to common/rsp-low.c.
11564 * common/rsp-low.h: New file.
11565 * common/rsp-low.c: New file.
11566 * Makefile.in (SFILES): Add common/rsp-low.c.
11567 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11568 (COMMON_OBS): Add rsp-low.o.
11569 (rsp-low.o): New target.
11571 2014-02-12 Tom Tromey <tromey@redhat.com>
11573 * utils.h: Include print-utils.h.
11574 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11575 (int_string, core_addr_to_string, core_addr_to_string_nz)
11576 (hex_string, hex_string_custom): Don't declare.
11577 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11578 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11579 (hex_string_custom, int_string, core_addr_to_string)
11580 (core_addr_to_string_nz, host_address_to_string): Move to
11581 common/print-utils.c.
11582 * common/print-utils.h: New file.
11583 * common/print-utils.c: New file
11584 * Makefile.in (SFILES): Add common/print-utils.c.
11585 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11586 (COMMON_OBS): Add print-utils.o.
11587 (print-utils.o): New target.
11589 2014-02-12 Tom Tromey <tromey@redhat.com>
11591 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11593 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11595 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11597 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11599 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11600 if a PT_IO ptrace request returns sucessfully but indicates that 0
11601 bytes were transferred.
11603 2014-02-12 Pedro Alves <palves@redhat.com>
11604 Kevin Buettner <kevinb@redhat.com>
11606 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11607 TYPE_INSTANCE_FLAG_CODE_SPACE.
11609 2014-02-12 Pedro Alves <palves@redhat.com>
11611 * h8300-tdep.c (pseudo_from_raw_register)
11612 (raw_from_pseudo_register): New functions.
11613 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11616 2014-02-12 Pedro Alves <palves@redhat.com>
11618 * h8300-tdep.c (h8300_register_sim_regno): New function.
11619 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11620 gdbarch_register_sim_regno hook.
11622 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11624 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11626 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11628 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11630 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11632 * obsd-tdep.h (obsd_init_abi): New prototype.
11633 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11634 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11635 (obsd_init_abi): New functions.
11636 * i386obsd-tdep.c: Include "obsd-tdep.h".
11637 (i386obsd_init_abi): Call obsd_init_abi.
11638 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11639 (amd64obsd_init_abi): Call obsd_init_abi.
11640 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11641 obsd-tdep.c to gdb_target_obs.
11643 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11645 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11646 double float arguments to 16-byte in the argument slots.
11648 2014-02-11 Doug Evans <xdje42@gmail.com>
11650 * configure.ac: Don't crash if pkg-config is not found and guile
11651 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11653 * configure: Regenerate.
11655 2014-02-11 Yao Qi <yao@codesourcery.com>
11657 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11658 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11659 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11660 * gnu-nat.c (gnu_xfer_memory): Likewise.
11661 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11662 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11663 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11664 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11666 2014-02-11 Yao Qi <yao@codesourcery.com>
11668 * target.h (enum target_xfer_error): Rename to ...
11669 (enum target_xfer_status): ... it. New. All users updated.
11670 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11672 (TARGET_XFER_STATUS_ERROR_P): New macro.
11673 (target_xfer_error_to_string): Remove declaration.
11674 (target_xfer_status_to_string): Declare.
11675 (target_xfer_partial_ftype): Adjust it.
11676 (struct target_ops) <to_xfer_partial>: Return
11677 target_xfer_status. Add argument xfered_len. Update
11679 * target.c (target_xfer_error_to_string): Rename to ...
11680 (target_xfer_status_to_string): ... it. New. All callers
11682 (target_read_live_memory): Likewise. Call target_xfer_partial
11683 instead of target_read.
11684 (memory_xfer_live_readonly_partial): Return
11685 target_xfer_status. Add argument xfered_len.
11686 (raw_memory_xfer_partial): Likewise.
11687 (memory_xfer_partial_1): Likewise.
11688 (memory_xfer_partial): Likewise.
11689 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11690 properly. Update debug message.
11691 (default_xfer_partial, current_xfer_partial): Likewise.
11692 (target_write_partial): Likewise.
11693 (target_read_partial): Likewise. All callers updated.
11694 (read_whatever_is_readable): Likewise.
11695 (target_write_with_progress): Likewise.
11696 (target_read_alloc_1): Likewise.
11698 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11699 * auxv.c (procfs_xfer_auxv): Likewise.
11700 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11701 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11702 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11703 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11704 * corefile.c (read_memory): Adjust.
11705 * corelow.c (core_xfer_partial): Likewise.
11706 * ctf.c (ctf_xfer_partial): Likewise.
11707 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11709 (darwin_xfer_partial): Likewise.
11710 * exec.c (section_table_xfer_memory_partial): Likewise. All
11712 (exec_xfer_partial): Likewise.
11713 * exec.h (section_table_xfer_memory_partial): Update
11715 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11717 (gnu_xfer_partial): Likewise.
11718 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11719 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11720 (ia64_hpux_xfer_solib_got): Likewise.
11721 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11722 type of 'partial_len' to ULONGEST.
11723 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11724 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11725 (linux_nat_xfer_partial): Likewise.
11726 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11727 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11728 * monitor.c (monitor_xfer_memory): Likewise.
11729 (monitor_xfer_partial): Likewise.
11730 * procfs.c (procfs_xfer_partial): Likewise.
11731 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11732 * record-full.c (record_full_xfer_partial): Likewise.
11733 (record_full_core_xfer_partial): Likewise.
11734 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11735 (gdbsim_xfer_partial): Likewise.
11736 * remote.c (remote_write_bytes_aux): Likewise. All callers
11738 (remote_write_bytes, remote_read_bytes): Likewise. All
11740 (remote_flash_erase): Likewise. All callers updated.
11741 (remote_write_qxfer): Likewise. All callers updated.
11742 (remote_read_qxfer): Likewise. All callers updated.
11743 (remote_xfer_partial): Likewise.
11744 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11745 (rs6000_xfer_shared_libraries): Likewise.
11746 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11747 (sol_thread_xfer_partial): Likewise.
11748 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11749 (sparc_xfer_partial): Likewise.
11750 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11752 (spu_xfer_partial): Likewise.
11753 * spu-multiarch.c (spu_xfer_partial): Likewise.
11754 * tracepoint.c (tfile_xfer_partial): Likewise.
11755 * windows-nat.c (windows_xfer_memory): Likewise.
11756 (windows_xfer_shared_libraries): Likewise.
11757 (windows_xfer_partial): Likewise.
11758 * valprint.c: Replace 'target_xfer_error' with
11759 'target_xfer_status' in comments.
11761 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11763 Checked in by Joel Brobecker <brobecker@adacore.com>.
11764 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11766 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11768 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11769 function parameters.
11771 2014-02-10 Will Newton <will.newton@linaro.org>
11773 * elfread.c (elf_rel_plt_read): Look for a .got section if
11774 looking up .got.plt fails.
11775 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11776 on address passed to elf_gnu_ifunc_record_cache.
11777 (elf_gnu_ifunc_resolve_addr): Likewise.
11778 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11780 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11782 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11783 (X_RETTURN): New macro.
11784 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11786 * sparc64-tdep.c (sparc64_init_abi): Hook
11787 sparc_in_function_epilogue_p.
11789 2014-02-10 Gary Benson <gbenson@redhat.com>
11791 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11792 Rename name_matcher to symbol_matcher.
11794 2014-02-10 Gary Benson <gbenson@redhat.com>
11796 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11797 Use expand_symtabs_file_matcher_ftype and
11798 expand_symtabs_symbol_matcher_ftype.
11800 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11802 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11803 (struct ada_symbol_cache): New.
11804 (ada_free_symbol_cache): Forward declare.
11805 (struct ada_pspace_data): New.
11806 (ada_pspace_data_handle): New static global.
11807 (get_ada_pspace_data, ada_pspace_data_cleanup)
11808 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11809 (cache_space, cache): Delete, now folded inside struct
11811 (ada_get_symbol_cache): New function.
11812 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11814 (_initialize_ada_language): Remove initialization of cache_space.
11815 Move call to observer_attach_inferior_exit up, grouping it
11816 with the other observer registrations inside this function.
11817 Rename command to be more general. Add call to
11818 register_program_space_data_with_cleanup.
11820 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11822 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11823 ada_new_objfile_observer.
11824 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11825 (_initialize_tasks): Update uses of ada_new_objfile_observer
11826 and ada_tasks_normal_stop_observer.
11828 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11830 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11831 returned by the 'Length attribute to integer.
11833 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11835 * ada-lang.c (_initialize_ada_language): Initialize
11836 cache_space obstack.
11838 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11840 * ada-lang.c (HASH_SIZE): New macro.
11841 (struct cache_entry): New type.
11842 (cache_space, cache): New static globals.
11843 (ada_clear_symbol_cache, find_entry): New functions.
11844 (lookup_cached_symbol, cache_symbol): Implement.
11845 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11846 (_initialize_ada_language): Attach ada_new_objfile_observer
11847 and ada_free_objfile_observer.
11849 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11851 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11852 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11853 struct block * parameter.
11854 (ada_lookup_symbol_list_worker): Constify local variable "block".
11855 Remove cast which is no longer necessary.
11857 2014-02-10 Doug Evans <xdje42@gmail.com>
11859 Add Guile as an extension language.
11860 * NEWS: Mention Guile scripting.
11861 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11862 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11863 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11864 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11865 (CLIBS): Add GUILE_LIBS.
11866 (install-guile): New rule.
11867 (guile.o): New rule.
11868 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11869 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11870 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11871 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11872 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11873 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11874 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11875 * configure.ac: New option --with-guile.
11876 * configure: Regenerate.
11877 * config.in: Regenerate.
11878 * auto-load.c: Remove #include "python/python.h". Add #include
11879 "gdb/section-scripts.h".
11880 (source_section_scripts): Handle Guile scripts.
11881 (_initialize_auto_load): Add name of Guile objfile script to
11882 scripts-directory help text.
11883 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11884 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11885 (struct breakpoint): New member scm_bp_object.
11886 * defs.h (enum command_control_type): New value guile_control.
11887 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11889 (show_user): Update comment.
11890 (_initialize_cli_cmds): Update help text for "show user". Update help
11891 text for max-user-call-depth.
11892 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11894 (multi_line_command_p): Add guile_control.
11895 (print_command_lines): Handle guile_control.
11896 (execute_control_command, recurse_read_control_structure): Ditto.
11897 (process_next_line): Recognize "guile" commands.
11898 * disasm.c (gdb_disassemble_info): Make non-static.
11899 * disasm.h: #include "dis-asm.h".
11900 (struct gdbarch): Add forward decl.
11901 (gdb_disassemble_info): Declare.
11902 * extension.c: #include "guile/guile.h".
11903 (extension_languages): Add guile.
11904 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11905 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11906 * gdbtypes.c (get_unsigned_type_max): New function.
11907 (get_signed_type_minmax): New function.
11908 * gdbtypes.h (get_unsigned_type_max): Declare.
11909 (get_signed_type_minmax): Declare.
11910 * guile/README: New file.
11911 * guile/guile-internal.h: New file.
11912 * guile/guile.c: New file.
11913 * guile/guile.h: New file.
11914 * guile/scm-arch.c: New file.
11915 * guile/scm-auto-load.c: New file.
11916 * guile/scm-block.c: New file.
11917 * guile/scm-breakpoint.c: New file.
11918 * guile/scm-disasm.c: New file.
11919 * guile/scm-exception.c: New file.
11920 * guile/scm-frame.c: New file.
11921 * guile/scm-gsmob.c: New file.
11922 * guile/scm-iterator.c: New file.
11923 * guile/scm-lazy-string.c: New file.
11924 * guile/scm-math.c: New file.
11925 * guile/scm-objfile.c: New file.
11926 * guile/scm-ports.c: New file.
11927 * guile/scm-pretty-print.c: New file.
11928 * guile/scm-safe-call.c: New file.
11929 * guile/scm-string.c: New file.
11930 * guile/scm-symbol.c: New file.
11931 * guile/scm-symtab.c: New file.
11932 * guile/scm-type.c: New file.
11933 * guile/scm-utils.c: New file.
11934 * guile/scm-value.c: New file.
11935 * guile/lib/gdb.scm: New file.
11936 * guile/lib/gdb/boot.scm: New file.
11937 * guile/lib/gdb/experimental.scm: New file.
11938 * guile/lib/gdb/init.scm: New file.
11939 * guile/lib/gdb/iterator.scm: New file.
11940 * guile/lib/gdb/printing.scm: New file.
11941 * guile/lib/gdb/types.scm: New file.
11942 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11943 (VPATH): Add $(GUILE_SRCDIR).
11944 (GUILE_DIR): New variable.
11945 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11946 (all): Add stamp-guile dependency.
11947 (stamp-guile): New rule.
11948 (clean-guile, install-guile, uninstall-guile): New rules.
11949 (install-only): Add install-guile dependency.
11950 (uninstall): Add uninstall-guile dependency.
11951 (clean): Add clean-guile dependency.
11953 2014-02-09 Doug Evans <xdje42@gmail.com>
11955 Revert this patch (which I approved, mea culpa).
11957 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11959 * Makefile.in (all-lib): Remove.
11960 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11962 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11964 Fix Python stack corruption.
11965 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11968 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11970 * Makefile.in (all-lib): Remove.
11971 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11973 2014-02-07 Doug Evans <dje@google.com>
11975 * extension-priv.h (extension_language_script_ops): Add comment.
11976 (extension_language_ops): Add comment.
11977 (active_ext_lang_state): Fix typo in comment.
11979 2014-02-07 Pedro Alves <palves@redhat.com>
11981 PR breakpoints/16292
11982 * infrun.c (handle_signal_stop) <signal arrives while stepping
11983 over a breakpoint>: Switch back to the stepping thread.
11985 2014-02-07 Yao Qi <yao@codesourcery.com>
11987 * target.c (target_xfer_partial): Return zero if LEN is zero.
11989 2014-02-07 Yao Qi <yao@codesourcery.com>
11991 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11992 (ld_so_xfer_auxv): Likewise.
11993 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11994 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11995 * corelow.c (core_xfer_partial): Likewise.
11996 * ctf.c (ctf_xfer_partial): Likewise.
11997 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11998 (darwin_xfer_partial): Likewise.
11999 * exec.c (exec_xfer_partial): Likewise.
12000 * gnu-nat.c (gnu_xfer_partial): Likewise.
12001 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12002 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12003 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12004 * linux-nat.c (linux_xfer_siginfo): Likewise.
12005 (linux_proc_xfer_spu): Likewise.
12006 * procfs.c (procfs_xfer_partial): Likewise.
12007 * record-full.c (record_full_xfer_partial): Likewise.
12008 (record_full_core_xfer_partial): Likewise.
12009 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12010 * remote.c (remote_write_qxfer): Likewise.
12011 (remote_write_qxfer, remote_read_qxfer): Likewise.
12012 (remote_xfer_partial): Likewise.
12013 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12014 (rs6000_xfer_shared_libraries): Likewise.
12015 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12016 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12017 (spu_xfer_partial): Likewise.
12018 * target.c (memory_xfer_partial_1): Likewise.
12019 * tracepoint.c (tfile_xfer_partial): Likewise.
12020 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12021 (windows_xfer_partial): Likewise.
12023 2014-02-07 Yao Qi <yao@codesourcery.com>
12025 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12027 (core_xfer_shared_libraries_aix): Likewise.
12028 * gdbarch.c, gdbarch.h: Regenerated.
12029 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12030 ULONGEST. Change 'len_avail' type to ULONGEST.
12031 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12032 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12034 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12036 2014-02-07 Yao Qi <yao@codesourcery.com>
12038 * corefile.c (memory_error): Get 'exception' from ERR and pass
12039 'exception' to throw_error.
12041 2014-02-06 Doug Evans <xdje42@gmail.com>
12043 * configure.ac (libpython checking): Remove all but python.o from
12044 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12045 * configure: Regenerate.
12047 * Makefile.in (SFILES): Add extension.c.
12048 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12049 (COMMON_OBS): Add extension.o.
12050 * extension.h: New file.
12051 * extension-priv.h: New file.
12052 * extension.c: New file.
12054 * python/python-internal.h: #include "extension.h".
12055 (gdbpy_auto_load_enabled): Declare.
12056 (gdbpy_apply_val_pretty_printer): Declare.
12057 (gdbpy_apply_frame_filter): Declare.
12058 (gdbpy_preserve_values): Declare.
12059 (gdbpy_breakpoint_cond_says_stop): Declare.
12060 (gdbpy_breakpoint_has_cond): Declare.
12061 (void source_python_script_for_objfile): Delete.
12062 * python/python.c: #include "extension-priv.h".
12063 Delete inclusion of "observer.h".
12064 (extension_language_python): Moved here and renamed from
12065 script_language_python in py-auto-load.c.
12066 Redefined to be of type extension_language_defn.
12067 (python_extension_script_ops): New global.
12068 (python_extension_ops): New global.
12069 (struct python_env): New member previous_active.
12070 (restore_python_env): Call restore_active_ext_lang.
12071 (ensure_python_env): Call set_active_ext_lang.
12072 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12074 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12076 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12078 (gdbpy_eval_from_control_command): Renamed from
12079 eval_python_from_control_command, made static. New arg extlang.
12080 (gdbpy_source_script) Renamed from source_python_script, made static.
12082 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12083 result to int. New arg extlang.
12084 (gdbpy_source_objfile_script): Renamed from
12085 source_python_script_for_objfile, made static. New arg extlang.
12086 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12087 static. New args extlang, extlang_printers. Change result type to
12089 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12090 static. New arg extlang. Rename arg printers to extlang_printers
12091 and change type to ext_lang_type_printers *.
12092 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12093 static. Replace argument arg with extlang, extlang_printers.
12094 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12095 (!HAVE_PYTHON, source_python_script): Delete.
12096 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12097 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12098 (!HAVE_PYTHON, start_type_printers): Delete.
12099 (!HAVE_PYTHON, apply_type_printers): Delete.
12100 (!HAVE_PYTHON, free_type_printers): Delete.
12101 (_initialize_python): Delete call to observer_attach_before_prompt.
12102 (finalize_python): Set/restore active extension language.
12103 (gdbpy_finish_initialization) Renamed from
12104 finish_python_initialization, made static. New arg extlang.
12105 (gdbpy_initialized): New function.
12106 * python/python.h: #include "extension.h". Delete #include
12107 "value.h", "mi/mi-cmds.h".
12108 (extension_language_python): Declare.
12109 (GDBPY_AUTO_FILE_NAME): Delete.
12110 (enum py_bt_status): Moved to extension.h and renamed to
12111 ext_lang_bt_status.
12112 (enum frame_filter_flags): Moved to extension.h.
12113 (enum py_frame_args): Moved to extension.h and renamed to
12114 ext_lang_frame_args.
12115 (finish_python_initialization): Delete.
12116 (eval_python_from_control_command): Delete.
12117 (source_python_script): Delete.
12118 (apply_val_pretty_printer): Delete.
12119 (apply_frame_filter): Delete.
12120 (preserve_python_values): Delete.
12121 (gdbpy_script_language_defn): Delete.
12122 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12123 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12125 * auto-load.c: #include "extension.h".
12126 (GDB_AUTO_FILE_NAME): Delete.
12127 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12128 (script_language_gdb): Delete, moved to extension.c and renamed to
12129 extension_language_gdb.
12130 (source_gdb_script_for_objfile): Delete.
12131 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12132 (loaded_script): Change type of language member to
12133 struct extension_language_defn *.
12134 (init_loaded_scripts_info): Initialize
12135 unsupported_script_warning_printed.
12136 (maybe_add_script): Make static. Change type of language arg to
12137 struct extension_language_defn *.
12138 (clear_section_scripts): Reset unsupported_script_warning_printed.
12139 (auto_load_objfile_script_1): Rewrite to use extension language API.
12140 (auto_load_objfile_script): Make public. Remove support-compiled-in
12141 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12142 (source_section_scripts): Rewrite to use extension language API.
12143 (load_auto_scripts_for_objfile): Rewrite to use
12144 auto_load_scripts_for_objfile.
12145 (collect_matching_scripts_data): Change type of language member to
12146 struct extension_language_defn *.
12147 (auto_load_info_scripts): Change type of language arg to
12148 struct extension_language_defn *.
12149 (unsupported_script_warning_print): New function.
12150 (script_not_found_warning_print): Make static.
12151 (_initialize_auto_load): Rewrite construction of scripts-directory
12153 * auto-load.h (struct objfile): Add forward decl.
12154 (struct script_language): Delete.
12155 (struct auto_load_pspace_info): Add forward decl.
12156 (struct extension_language_defn): Add forward decl.
12157 (maybe_add_script): Delete.
12158 (auto_load_objfile_script): Declare.
12159 (script_not_found_warning_print): Delete.
12160 (auto_load_info_scripts): Update prototype.
12161 (auto_load_gdb_scripts_enabled): Declare.
12162 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12163 auto_load_python_scripts_enabled and made public.
12164 (script_language_python): Delete, moved to python.c.
12165 (gdbpy_script_language_defn): Delete.
12166 (info_auto_load_python_scripts): Update to use
12167 extension_language_python.
12169 * breakpoint.c (condition_command): Replace call to
12170 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12171 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12172 with call to breakpoint_ext_lang_cond_says_stop.
12173 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12174 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12175 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12176 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12178 (local_setattro): Print name of extension language with existing
12181 * valprint.c (val_print, value_print): Update to call
12182 apply_ext_lang_val_pretty_printer.
12183 * cp-valprint.c (cp_print_value): Update call to
12184 apply_ext_lang_val_pretty_printer.
12185 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12186 (gdbpy_apply_val_pretty_printer): Renamed from
12187 apply_val_pretty_printer. New arg extlang.
12188 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12190 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12191 extension language API.
12192 * cli/cli-script.c (execute_control_command): Update to call
12193 eval_ext_lang_from_control_command.
12195 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12196 enum ext_lang_bt_status values. Update call to
12197 apply_ext_lang_frame_filter.
12198 (mi_cmd_stack_list_locals): Ditto.
12199 (mi_cmd_stack_list_args): Ditto.
12200 (mi_cmd_stack_list_variables): Ditto.
12201 * mi/mi-main.c: Delete #include "python/python-internal.h".
12202 Add #include "extension.h".
12203 (mi_cmd_list_features): Replace reference to python internal variable
12204 gdb_python_initialized with call to ext_lang_initialized_p.
12206 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12207 Update to use enum ext_lang_frame_args. Update to call
12208 apply_ext_lang_frame_filter.
12209 * python/py-framefilter.c (extract_sym): Update to use enum
12210 ext_lang_bt_status.
12211 (extract_value, py_print_type, py_print_value): Ditto.
12212 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12213 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12214 (py_print_frame): Ditto.
12215 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12216 New arg extlang. Update to use enum ext_lang_bt_status.
12218 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12219 finish_python_initialization. Replace with call to
12220 finish_ext_lang_initialization.
12222 * typeprint.c (do_free_global_table): Update to call
12223 free_ext_lang_type_printers.
12224 (create_global_typedef_table): Update to call
12225 start_ext_lang_type_printers.
12226 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12227 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12228 (type_print_options): Change type of global_printers from "void *"
12229 to "struct ext_lang_type_printers *".
12231 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12232 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12233 (gdbpy_preserve_values): Renamed from preserve_python_values.
12235 (!HAVE_PYTHON, preserve_python_values): Delete.
12237 * utils.c (quit_flag): Delete, moved to extension.c.
12238 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12241 * eval.c: Delete #include "python/python.h".
12242 * main.c: Delete #include "python/python.h".
12244 * defs.h: Update comment.
12246 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12250 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12252 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12255 2014-02-05 Yao Qi <yao@codesourcery.com>
12257 * remote.c (remote_pass_signals): Remove local 'buf' and use
12259 (remote_program_signals): Likewise.
12261 2014-02-05 Yao Qi <yao@codesourcery.com>
12263 * ctf.c: Include "inferior.h" and "gdbthread.h".
12264 (CTF_PID): A new macro.
12265 (ctf_open): Call inferior_appeared and add_thread_silent.
12266 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12267 (ctf_thread_alive): New function.
12268 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12270 2014-02-05 Yao Qi <yao@codesourcery.com>
12274 2013-05-24 Yao Qi <yao@codesourcery.com>
12276 * tracepoint.c (TFILE_PID): Remove.
12277 (tfile_open): Don't add thread and inferior.
12278 (tfile_close): Don't set 'inferior_ptid'. Don't call
12279 exit_inferior_silent.
12280 (tfile_thread_alive): Remove.
12281 (init_tfile_ops): Don't set field 'to_thread_alive' of
12284 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12286 * remote.c (remote_start_remote): Call remote_check_symbols even
12287 if only symbol-file (not file) has been given.
12289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12291 * gdbarch.sh (skip_entrypoint): New callback.
12292 * gdbarch.c, gdbarch.h: Regenerate.
12293 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12294 * infrun.c (fill_in_stop_func): Likewise.
12295 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12296 (ppc_elfv2_elf_make_msymbol_special): New function.
12297 (ppc_elfv2_skip_entrypoint): Likewise.
12298 (ppc_linux_init_abi): Install them for ELFv2.
12300 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12302 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12303 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12304 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12305 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12306 structures returned in GPRs.
12308 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12310 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12311 offset to the stack parameter list for the ELFv2 ABI.
12313 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12315 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12316 set_gdbarch_convert_from_func_ptr_addr and
12317 set_gdbarch_elf_make_msymbol_special for ELFv1.
12318 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12319 function descriptors on ELFv1.
12320 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12321 set up r12 at function entry.
12323 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12325 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12326 (struct gdbarch_tdep): New member elf_abi.
12328 * rs6000-tdep.c: Include "elf/ppc64.h".
12329 (rs6000_gdbarch_init): Detect ELF ABI version.
12331 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12333 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12334 within a register pair holding a DFP 128-bit value on little-endian.
12335 (ppc64_sysv_abi_return_value_base): Likewise.
12336 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12337 (dfp_pseudo_register_write): Likewise.
12339 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12341 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12342 offset on little-endian when passing _Decimal32.
12343 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12345 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12347 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12348 of the overlapped FP register within the VSX register on little-
12350 (efpr_pseudo_register_write): Likewise.
12352 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12354 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12355 offset on little-endian when passing small structures.
12357 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12359 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12360 (struct ppc64_sysv_argpos): New data structure.
12361 (ppc64_sysv_abi_push_float): Remove.
12362 (ppc64_sysv_abi_push_val): New function.
12363 (ppc64_sysv_abi_push_integer): Likewise.
12364 (ppc64_sysv_abi_push_freg): Likewise.
12365 (ppc64_sysv_abi_push_vreg): Likewise.
12366 (ppc64_sysv_abi_push_param): Likewise.
12367 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12368 (ppc64_sysv_abi_return_value_base): New function.
12369 (ppc64_sysv_abi_return_value): Refactor to use it.
12371 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12373 * NEWS: Document new target powerpc64le-*-linux*.
12375 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12377 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12378 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12380 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12381 register set used in ELF core dumps. Add floating-point register set.
12383 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12385 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12386 dwarf2_to_gdb[] table using symbolic constants. Adjust
12387 penultimate entry from number representing the PC register
12388 to symbolic constant representing the MDR register. Add
12389 constant for the PC register to the end of the table.
12391 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12393 * bsd-kvm.c: Include <sys/param.h>
12395 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12397 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12399 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12401 * ada-lang.h (clear_ada_sym_cache): Delete.
12403 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12405 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12407 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12409 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12410 the sigreturn register save area only if the syscall is
12413 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12415 * valops.c (value_slice): Minor reformatting.
12417 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12419 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12421 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12423 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12424 New static globals.
12425 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12426 (ada_ignore_descriptive_types_p): New static global.
12427 (find_parallel_type_by_descriptive_type): Return immediately
12428 if ada_ignore_descriptive_types_p is set.
12429 (_initialize_ada_language): Register new commands "maintenance
12430 set ada", "maintenance show ada", "maintenance set ada
12431 ignore-descriptive-types" and "maintenance show ada
12432 ignore-descriptive-types".
12433 * NEWS: Add entry for new "maint ada set/show
12434 ignore-descriptive-types" commands.
12436 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12438 * record-btrace.c (record_btrace_close): Call btrace_teardown
12441 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12443 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12446 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12448 * ada-typeprint (type_is_full_subrange_of_target_type):
12450 (print_range): Add parameter bounds_prefered_p. If not set,
12451 try printing range types using the name of their base type.
12452 (print_range_type): Add parameter bounds_prefered_p.
12453 Use it in call to print_range.
12454 (print_array_type, ada_print_type): Update calls to print_range
12455 and print_range_type.
12457 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12459 * ada-typeprint.c (print_array_type, print_choices, print_range)
12460 (print_range_bound, print_dynamic_range_bound, print_range_type):
12461 Remove declaration.
12463 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12465 * ada-typeprint.c (print_range): Add missing empty line
12466 after local declaration.
12468 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12470 * ada-valprint.c (print_optional_low_bound): Get index_type's
12471 target type for as long as it is a TYPE_CODE_RANGE.
12473 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12475 * procfs.c (procfs_make_note_section): Remove assertion and
12476 associated comment.
12478 2014-01-24 Yao Qi <yao@codesourcery.com>
12480 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12481 * corelow.c (get_core_siginfo): Likewise.
12483 2014-01-24 Yao Qi <yao@codesourcery.com>
12485 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12486 ULONGEST. Don't check 'len' is negative.
12487 (remote_write_bytes): Change type of 'len' to ULONGEST.
12489 2014-01-23 Tom Tromey <tromey@redhat.com>
12492 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12493 Handle exception from frame.block.
12494 (FrameVars.fetch_frame_locals): Likewise.
12496 2014-01-23 Tom Tromey <tromey@redhat.com>
12499 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12500 on a NULL pointer. Move "goto error" to correct place.
12502 2014-01-23 Tom Tromey <tromey@redhat.com>
12505 * python/py-framefilter.c (apply_frame_filter): Call
12506 ensure_python_env after computing gdbarch.
12508 2014-01-23 Yao Qi <yao@codesourcery.com>
12510 * target.c (raw_memory_xfer_partial): Change argument type
12511 from void * to gdb_byte *.
12512 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12514 2014-01-22 Doug Evans <dje@google.com>
12516 New gdbserver option --debug-format=timestamp.
12517 * NEWS: Mention it.
12519 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12521 * syscalls/s390x-linux.xml: New file.
12522 * syscalls/s390-linux.xml: New file.
12523 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12524 (XML_SYSCALL_FILENAME_S390X): Likewise.
12525 (op_svc): New enum value for SVC opcode.
12526 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12527 (s390_linux_get_syscall_number): New function.
12528 (s390_gdbarch_init): Register '*get_syscall_number' and the
12529 syscall xml file name.
12530 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12531 "s390-linux.xml" and "s390x-linux.xml".
12532 * NEWS: Announce new feature.
12534 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12536 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12538 2014-01-22 Pedro Alves <palves@redhat.com>
12540 * xtensa-config.c: Include defs.h.
12542 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12544 * common/common-utils.h: Add "ARI:" comment beside __func__
12547 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12549 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12550 documentation a bit.
12552 2014-01-21 Roland McGrath <mcgrathr@google.com>
12554 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12555 * configure: Regenerate.
12556 * aclocal.m4: Regenerate.
12557 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12558 New substituted variables.
12559 (install-strip): New target.
12560 (INSTALL_SCRIPT): New substituted variable.
12561 (FLAGS_TO_PASS): Add it.
12562 (install-only): Use $(INSTALL_SCRIPT) rather than
12563 $(INSTALL_PROGRAM) for gcore.
12565 2014-01-20 Tom Tromey <tromey@redhat.com>
12567 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12570 2014-01-20 Tom Tromey <tromey@redhat.com>
12572 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12573 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12574 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12575 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12576 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12577 (struct cmd_list_element) <flags>: Remove.
12578 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12579 doc_allocated>: New fields.
12580 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12582 * maint.c (maintenance_do_deprecate): Update.
12583 * top.c (execute_command): Update.
12585 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12587 * xtensa-linux-nat.c: Include asm/ptrace.h.
12589 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12591 * Makefile.in (SFILES): Add d-support.c.
12592 (COMMON_OBS): Add d-support.o.
12593 * d-lang.h (d_parse_symbol): Add comment, now defined in
12595 * d-lang.c (parse_call_convention)
12596 (parse_attributes, parse_function_types)
12597 (parse_function_args, parse_type, parse_identifier)
12598 (call_convention_p, d_parse_symbol): Move functions to ...
12599 * d-support.c: ... New file.
12601 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12603 * d-lang.h (d_parse_symbol): Add declaration.
12604 * d-lang.c (extract_identifiers)
12605 (extract_type_info): Remove functions.
12606 (parse_call_convention, parse_attributes)
12607 (parse_function_types, parse_function_args)
12608 (parse_type, parse_identifier, call_convention_p)
12609 (d_parse_symbol): New functions.
12610 (d_demangle): Use d_parse_symbol to demangle D symbols.
12612 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12614 * d-lang.h (struct builtin_d_type): New data type.
12615 (builtin_d_type): Add declaration.
12616 * d-lang.c (d_language_arch_info, build_d_types)
12617 (builtin_d_type): New functions.
12618 (enum d_primitive_types): New data type.
12619 (d_language_defn): Change c_language_arch_info to
12620 d_language_arch_info.
12621 (d_type_data): New static variable.
12622 (_initialize_d_language): Initialize d_type_data.
12624 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12626 * d-lang.h (d_main_name): Add declaration.
12627 * d-lang.c (d_main_name): New function.
12628 * symtab.c (find_main_name): Add call to d_main_name.
12630 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12632 * d-lang.c (d_language_defn): Change macro_expansion_c to
12633 macro_expansion_no.
12635 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12637 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12639 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12641 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12642 gdb_exception" declaration.
12643 * remote.c (getpkt_or_notif_sane): Likewise.
12645 2014-01-17 Doug Evans <dje@google.com>
12647 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12648 function, contents of dirnames_to_char_ptr_vec_append moved here.
12649 (delim_string_to_char_ptr_vec): New function.
12650 (dirnames_to_char_ptr_vec_append): Rewrite.
12651 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12653 2014-01-17 Doug Evans <dje@google.com>
12655 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12657 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12658 #include "common-utils.h".
12659 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12660 * common/vec.h (VEC_ASSERT_PASS): Update.
12661 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12662 (MACH_CHECK_ERROR): Update.
12664 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12666 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12668 * gdbarch.h: Regenerate.
12670 2014-01-16 Tom Tromey <tromey@redhat.com>
12672 * value.c (struct value) <regnum>: Move earlier.
12674 2014-01-16 Tom Tromey <tromey@redhat.com>
12676 * remote.c (extended_remote_create_inferior): Rename from
12677 extended_remote_create_inferior_1. Add "ops" argument. Remove
12678 old implementation.
12680 2014-01-16 Pedro Alves <palves@redhat.com>
12682 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12683 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12686 2014-01-16 Doug Evans <dje@google.com>
12688 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12690 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12692 * btrace.h (btrace_thread_flag): New.
12693 (struct btrace_thread_info) <flags>: New.
12694 * record-btrace.c (record_btrace_resume_thread)
12695 (record_btrace_find_thread_to_move, btrace_step_no_history)
12696 (btrace_step_stopped, record_btrace_start_replaying)
12697 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12698 (record_btrace_find_resume_thread): New.
12699 (record_btrace_resume, record_btrace_wait): Extend.
12700 (record_btrace_can_execute_reverse): New.
12701 (record_btrace_open): Fail in non-stop mode.
12702 (record_btrace_set_replay): Split into this, ...
12703 (record_btrace_stop_replaying): ... this, ...
12704 (record_btrace_clear_histories): ... and this.
12705 (init_record_btrace_ops): Init to_can_execute_reverse.
12706 * NEWS: Announce it.
12708 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12710 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12711 (forward_target_decr_pc_after_break)
12712 (target_decr_pc_after_break): New.
12713 * target.c (forward_target_decr_pc_after_break)
12714 (target_decr_pc_after_break): New.
12715 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12716 instead of gdbarch_decr_pc_after_break.
12717 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12718 instead of gdbarch_decr_pc_after_break.
12719 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12720 instead of gdbarch_decr_pc_after_break.
12721 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12722 instead of gdbarch_decr_pc_after_break.
12723 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12724 instead of gdbarch_decr_pc_after_break.
12725 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12726 instead of gdbarch_decr_pc_after_break.
12728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12730 * btrace.c: Include regcache.h.
12731 (btrace_add_pc): New.
12732 (btrace_enable): Call btrace_add_pc.
12733 (btrace_is_empty): New.
12734 * btrace.h (btrace_is_empty): New.
12735 * record-btrace.c (require_btrace, record_btrace_info): Call
12738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12740 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12741 Support delta reads.
12742 (linux_disable_btrace): Change return type.
12743 * common/linux-btrace.h (linux_read_btrace): Change parameters
12744 and return type to allow error reporting. Update users.
12745 (linux_disable_btrace): Change return type. Update users.
12746 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12748 (btrace_error): New.
12749 (btrace_block) <begin>: Comment on BEGIN == 0.
12750 * btrace.c (btrace_compute_ftrace): Start from the end of
12752 (btrace_stitch_trace, btrace_clear_history): New.
12753 (btrace_fetch): Read delta trace, return if replaying.
12754 (btrace_clear): Move clear history code to btrace_clear_history.
12755 (parse_xml_btrace): Throw an error if parsing failed.
12756 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12757 and return type to allow error reporting.
12758 (target_read_btrace): Change parameters and return type to allow
12760 * target.c (target_read_btrace): Update.
12761 * remote.c (remote_read_btrace): Support delta reads. Pass
12763 * NEWS: Announce it.
12765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12767 * record.h (record_btrace_frame_unwind)
12768 (record_btrace_tailcall_frame_unwind): New declarations.
12769 * dwarf2-frame: Include record.h
12770 (dwarf2_frame_cfa): Throw an error for btrace frames.
12771 * record-btrace.c: Include hashtab.h.
12772 (btrace_get_bfun_name): New.
12773 (btrace_call_history): Call btrace_get_bfun_name.
12774 (struct btrace_frame_cache): New.
12776 (bfcache_hash, bfcache_eq, bfcache_new): New.
12777 (btrace_get_frame_function): New.
12778 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12779 (record_btrace_frame_this_id): Compute own id.
12780 (record_btrace_frame_prev_register): Provide PC, throw_error
12781 for all other registers.
12782 (record_btrace_frame_sniffer): Detect btrace frames.
12783 (record_btrace_tailcall_frame_sniffer): New.
12784 (record_btrace_frame_dealloc_cache): New.
12785 (record_btrace_frame_unwind): Add new functions.
12786 (record_btrace_tailcall_frame_unwind): New.
12787 (_initialize_record_btrace): Allocate cache.
12788 * btrace.c (btrace_clear): Call reinit_frame_cache.
12789 * NEWS: Announce it.
12791 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12793 * record-btrace.c (record_btrace_set_replay)
12794 (record_btrace_goto_begin, record_btrace_goto_end)
12795 (record_btrace_goto): New.
12796 (init_record_btrace_ops): Initialize them.
12797 * NEWS: Announce it.
12799 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12801 * record-btrace.c (record_btrace_find_new_threads)
12802 (record_btrace_thread_alive): New.
12803 (init_record_btrace_ops): Initialize to_find_new_threads and
12806 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12808 * record-btrace.c (record_btrace_resume): New.
12809 (record_btrace_wait): New.
12810 (init_record_btrace_ops): Initialize to_wait and to_resume.
12812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12814 * record-btrace.c (record_btrace_xfer_partial)
12815 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12816 (record_btrace_allow_memory_access): New.
12817 (init_record_btrace_ops): Initialize new methods.
12818 * target.c (raw_memory_xfer_partial): Bail out if target reports
12819 that this memory is not available.
12821 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12823 * target.h (target_ops) <to_insert_breakpoint>
12824 <to_remove_breakpoint>: Add target_ops parameter.
12825 (forward_target_insert_breakpoint): New.
12826 (forward_target_remove_breakpoint): New.
12827 (memory_remove_breakpoint, memory_insert_breakpoint):
12828 Add target_ops parameter.
12829 * target.c (target_insert_breakpoint): Split into this and ...
12830 (forward_target_insert_breakpoint): ... this.
12831 (target_remove_breakpoint): Split into this and ...
12832 (forward_target_remove_breakpoint): ... this.
12833 (debug_to_insert_breakpoint): Add target_ops parameter.
12834 Call forward_target_insert_breakpoint.
12835 (debug_to_remove_breakpoint): Add target_ops parameter.
12836 Call forward_target_remove_breakpoint.
12837 (update_current_target): Do not inherit or default to_insert_breakpoint
12838 and to_remove_breakpoint.
12839 * corelow.c (ignore): Add target_ops parameter.
12840 * exec.c (ignore): Add target_ops parameter.
12841 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12842 Add target_ops parameter.
12843 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12844 Add target_ops parameter.
12845 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12846 Add target_ops parameter.
12847 * record-full.c (record_full_beneath_to_insert_breakpoint)
12848 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12849 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12850 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12851 (record_full_core_remove_breakpoint): Add target_ops parameter.
12853 (record_full_beneath_to_insert_breakpoint_ops)
12854 (record_full_beneath_to_remove_breakpoint_ops)
12855 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12856 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12857 tmp_to_remove_breakpoint_ops,
12858 record_full_beneath_to_insert_breakpoint_ops, and
12859 record_full_beneath_to_remove_breakpoint_ops.
12860 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12861 (m32r_remove_breakpoint): Add target_ops parameter.
12862 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12863 Add target_ops parameter.
12864 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12865 Add target_ops parameter.
12867 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12868 Markus Metzger <markus.t.metzger@intel.com>
12870 * record-btrace.c: Include frame-unwind.h.
12871 (record_btrace_frame_unwind_stop_reason)
12872 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12873 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12875 (init_record_btrace_ops): Install it.
12877 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12879 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12882 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12884 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12887 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12889 * frame-unwind.c: Include target.h.
12890 (frame_unwind_try_unwinder): New function with code from ...
12891 (frame_unwind_find_by_frame): ... here. New variable
12892 unwinder_from_target, call also target_get_unwinder)
12893 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12894 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12895 * target.h (struct target_ops): New fields to_get_unwinder and
12896 to_get_tailcall_unwinder.
12897 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12899 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12901 * record-btrace.c (record_btrace_fetch_registers)
12902 (record_btrace_store_registers)
12903 (record_btrace_to_prepare_to_store): New.
12904 (init_record_btrace_ops): Add the above.
12906 2014-01-16 Tom Tromey <tromey@redhat.com>
12908 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12909 * target.h (struct target_ops) <to_prepare_to_store>: Add
12911 (target_prepare_to_store): Add argument.
12912 * target.c (debug_to_prepare_to_store): Add argument.
12913 (update_current_target): Update.
12914 * remote.c (remote_prepare_to_store): Add 'self' argument.
12915 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12916 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12917 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12918 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12920 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12921 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12922 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12923 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12924 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12926 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12928 * btrace.h (replay) <replay>: New.
12929 (btrace_is_replaying): New.
12930 * btrace.c (btrace_clear): Free replay iterator.
12931 (btrace_is_replaying): New.
12932 * record-btrace.c (record_btrace_is_replaying): New.
12933 (record_btrace_info): Print insn number if replaying.
12934 (record_btrace_insn_history): Start at replay position.
12935 (record_btrace_call_history): Start at replay position.
12936 (init_record_btrace_ops): Init to_record_is_replaying.
12938 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12940 * record-btrace.c (record_btrace_insn_history_range): Include
12942 (record_btrace_insn_history_from): Adjust range.
12943 (record_btrace_call_history_range): Include
12945 (record_btrace_call_history_from): Adjust range.
12946 * NEWS: Announce changes.
12948 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12950 * record.h (enum record_print_flag)
12951 <record_print_indent_calls>: New.
12952 * record.c (get_call_history_modifiers): Recognize /c modifier.
12953 (_initialize_record): Document /c modifier.
12954 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12955 Reorder fields. Optionally indent the function name. Update
12957 * NEWS: Announce changes.
12959 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12961 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12963 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12965 * btrace.c (ftrace_new_function): Start counting at one.
12966 * record-btrace.c (record_btrace_info): Adjust number of calls
12968 * NEWS: Announce it.
12970 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12972 * record-btrace.c (btrace_call_history_insn_range): Print
12973 insn range as [begin, end].
12975 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12977 * btrace.h (struct btrace_func_link): New.
12978 (enum btrace_function_flag): New.
12979 (struct btrace_inst): Rename to ...
12980 (struct btrace_insn): ...this. Update all users.
12981 (struct btrace_func) <ibegin, iend>: Remove.
12982 (struct btrace_func_link): New.
12983 (struct btrace_func): Rename to ...
12984 (struct btrace_function): ...this. Update all users.
12985 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12986 (number, level, flags>: New.
12987 (struct btrace_insn_iterator): Rename to ...
12988 (struct btrace_insn_history): ...this.
12990 (struct btrace_insn_iterator, btrace_call_iterator): New.
12991 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12992 (struct btrace_target_info) <begin, end, level>
12993 <insn_history, call_history>: New.
12994 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12995 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12996 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12997 (btrace_call_number, btrace_call_begin, btrace_call_end)
12998 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12999 (btrace_find_function_by_number, btrace_set_insn_history)
13000 (btrace_set_call_history): New.
13001 * btrace.c (btrace_init_insn_iterator)
13002 (btrace_init_func_iterator, compute_itrace): Remove.
13003 (ftrace_print_function_name, ftrace_print_filename)
13004 (ftrace_skip_file): Change
13005 parameter to const.
13006 (ftrace_init_func): Remove.
13007 (ftrace_debug): Use new btrace_function fields.
13008 (ftrace_function_switched): Also consider gaining and
13009 losing symbol information).
13010 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13011 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13012 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13014 (ftrace_new_function): Move. Remove debug print.
13015 (ftrace_update_lines, ftrace_update_insns): New.
13016 (ftrace_update_function): Check for call, ret, and jump.
13017 (compute_ftrace): Renamed to ...
13018 (btrace_compute_ftrace): ...this. Rewritten to compute call
13020 (btrace_fetch, btrace_clear): Updated.
13021 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13022 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13023 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13024 (btrace_call_number, btrace_call_begin, btrace_call_end)
13025 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13026 (btrace_find_function_by_number, btrace_set_insn_history)
13027 (btrace_set_call_history): New.
13028 * record-btrace.c (require_btrace): Use new btrace thread
13030 (record_btrace_info, btrace_insn_history)
13031 (record_btrace_insn_history, record_btrace_insn_history_range):
13032 Use new btrace thread info fields and new iterator.
13033 (btrace_func_history_src_line): Rename to ...
13034 (btrace_call_history_src_line): ...this. Use new btrace
13035 thread info fields.
13036 (btrace_func_history): Rename to ...
13037 (btrace_call_history): ...this. Use new btrace thread info
13038 fields and new iterator.
13039 (record_btrace_call_history, record_btrace_call_history_range):
13040 Use new btrace thread info fields and new iterator.
13042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13044 * frame.h (frame_id_build_unavailable_stack_special): New.
13045 * frame.c (frame_id_build_unavailable_stack_special): New.
13047 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13049 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13050 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13051 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13053 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13054 (i386_insn_is_jump, i386_jmp_p): New.
13055 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13056 insn_is_jump to gdbarch.
13057 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13058 * gdbarch.h: Regenerated.
13059 * gdbarch.c: Regenerated.
13060 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13061 (default_insn_is_jump): New.
13062 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13063 (default_insn_is_jump): New.
13065 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13067 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13069 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13070 (btrace_read_type) <btrace_read_new>: Change to ...
13071 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13073 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13075 * common/linux-btrace.c (linux_read_btrace): Free trace from
13076 previous iteration.
13078 2014-01-15 Doug Evans <dje@google.com>
13080 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13083 2014-01-15 Tom Tromey <tromey@redhat.com>
13085 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13086 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13087 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13088 (set_objfile_main_name): New function.
13089 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13090 language_of_main>: New fields.
13091 (set_objfile_main_name): Declare.
13092 * symtab.c (find_main_name): Loop over objfiles to find the main
13094 (set_main_name): Now static.
13095 (get_main_info): Add comment.
13096 * symtab.h (set_main_name): Don't declare.
13098 2014-01-15 Tom Tromey <tromey@redhat.com>
13100 * symtab.c (main_progspace_key): New global.
13101 (struct main_info): New.
13102 (name_of_main, language_of_main): Remove.
13103 (get_main_info, main_info_cleanup): New function.
13104 (set_main_name, main_name, main_language): Use get_main_info.
13105 (_initialize_symtab): Initialize main_progspace_key.
13107 2014-01-15 Tom Tromey <tromey@redhat.com>
13109 * dbxread.c (process_one_symbol): Update.
13110 * dwarf2read.c (read_partial_die): Update.
13111 * symfile.c (set_initial_language): Call main_language.
13112 * symtab.c (language_of_main): Now static.
13113 (set_main_name): Add 'lang' parameter.
13114 (find_main_name): Update.
13115 (main_language): New function.
13116 (symtab_observer_executable_changed): Update.
13117 * symtab.h (set_main_name): Update.
13118 (language_of_main): Remove.
13119 (main_language): Declare.
13121 2014-01-15 Tom Tromey <tromey@redhat.com>
13123 * symfile.c (init_entry_point_info): Use new "initialized" field.
13125 * objfiles.h (struct entry_point) <initialized>: New field.
13126 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13127 (struct objfile) <ei>: ...here. Remove.
13128 * objfiles.c (entry_point_address_query): Update.
13130 2014-01-15 Tom Tromey <tromey@redhat.com>
13132 * objfiles.c (entry_point_address_query): Relocate entry point
13134 (objfile_relocate1): Do not relocate entry point address.
13135 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13136 <the_bfd_section_index>: New field.
13137 * symfile.c (init_entry_point_info): Find the entry point's
13140 2014-01-15 Tom Tromey <tromey@redhat.com>
13142 * solib-frv.c (enable_break): Use entry_point_address_query.
13144 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13146 * NEWS: Add note on improved process record-replay on
13147 arm*-linux* targets.
13149 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13151 * arm-tdep.c (enum arm_record_result): New enum.
13152 (arm_record_unsupported_insn): New function.
13153 (arm_record_coproc_data_proc): Removed.
13154 (thumb2_record_ld_st_multiple): New function.
13155 (thumb2_record_ld_st_dual_ex_tbb): New function.
13156 (thumb2_record_data_proc_sreg_mimm): New function.
13157 (thumb2_record_ps_dest_generic): New function.
13158 (thumb2_record_branch_misc_cntrl): New function.
13159 (thumb2_record_str_single_data): New function.
13160 (thumb2_record_ld_mem_hints): New function.
13161 (thumb2_record_ld_word): New function.
13162 (thumb2_record_lmul_lmla_div): New function.
13163 (thumb2_record_decode_insn_handler): New function.
13164 (decode_insn): Add thumb32 instruction handlers.
13166 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13168 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13169 (struct arm_linux_record_tdep): Declare.
13170 (arm_canonicalize_syscall): New function.
13171 (arm_all_but_pc_registers_record): New function.
13172 (arm_linux_syscall_record): New function.
13173 (arm_linux_init_abi): Add syscall recording constructs.
13174 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13175 decoding. (arm_record_coproc_data_proc): Update arm syscall
13177 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13178 <arm_syscall_record>: New field.
13179 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13182 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13184 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13185 register for push instruction recording.
13187 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13189 * arm-tdep.c (thumb_record_misc): Update to correct logical
13190 error while recording ldm, ldmia and pop instructions.
13192 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13194 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13196 2014-01-15 Pedro Alves <palves@redhat.com>
13198 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13199 (go32_resume, go32_fetch_registers, store_register)
13200 (go32_store_registers, go32_prepare_to_store)
13201 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13202 (go32_create_inferior, go32_can_run, go32_terminal_init)
13203 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13206 2014-01-15 Tom Tromey <tromey@redhat.com>
13208 * target.h (async_callback_ftype): New typedef.
13209 (struct target_ops) <to_async>: Use it.
13211 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13213 * python/py-value.c (get_field_type): Remove unnecessary curly
13214 braces for single-statement if block.
13216 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13218 * python/py-type.c (convert_field): Add missing empty line
13219 after declarations.
13221 2014-01-14 Doug Evans <dje@google.com>
13223 * symfile.h (expand_symtabs_matching): Renamed from
13224 expand_partial_symbol_names. Update prototype.
13225 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13226 * symfile.c (expand_symtabs_matching): Renamed from
13227 expand_partial_symbol_names. New args file_matcher, kind.
13228 Rename arg fun to symbol_matcher.
13229 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13230 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13231 ada_expand_partial_symbol_name.
13232 (ada_make_symbol_completion_list): Update to call
13233 expand_symtabs_matching.
13234 (ada_add_global_exceptions): Call expand_symtabs_matching.
13235 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13236 call map_symbol_filenames.
13237 * symtab.c (sources_info): Update to call map_symbol_filenames.
13238 (search_symbols): Call expand_symtabs_matching.
13239 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13240 (default_make_symbol_completion_list_break_on): Update to call
13241 expand_symtabs_matching.
13242 (make_source_files_completion_list): Update to call
13243 map_symbol_filenames.
13245 2014-01-14 Doug Evans <dje@google.com>
13247 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13248 (expand_symtabs_symbol_matcher_ftype): New typedef.
13249 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13250 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13251 * symfile.c (expand_partial_symbol_names): Update to use
13252 expand_symtabs_symbol_matcher_ftype.
13253 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13254 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13255 Arg name_matcher renamed to symbol_matcher.
13256 * psymtab.c (recursively_search_psymtabs): Update to use
13257 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13259 (expand_symtabs_matching_via_partial): Update to use
13260 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13261 Arg name_matcher renamed to symbol_matcher.
13263 2014-01-14 Doug Evans <dje@google.com>
13265 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13266 (map_partial_symbol_filenames): Ditto.
13267 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13268 (map_partial_symbol_filenames): Ditto.
13269 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13270 (map_partial_symbol_filenames): Ditto.
13271 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13272 (map_partial_symbol_filenames): Ditto.
13273 * symtab.c: Delete #include "psymtab.h".
13275 2014-01-14 Pedro Alves <palves@redhat.com>
13276 Tom Tromey <tromey@redhat.com>
13278 * infrun.c (use_displaced_stepping): Use find_record_target
13279 instead of RECORD_IS_USED.
13280 (adjust_pc_after_break): Use record_full_is_used instead of
13282 * record-btrace.c (record_btrace_open): Call record_preopen
13283 instead of checking RECORD_IS_USED.
13284 * record-full.c (record_full_shortname)
13285 (record_full_core_shortname): New globals.
13286 (record_full_is_used): New function.
13287 (find_full_open): Call record_preopen instead of checking
13289 (init_record_full_ops): Set the target's shortname to
13290 record_full_shortname.
13291 (init_record_full_core_ops): Set the target's shortname to
13292 record_full_core_shortname.
13293 * record-full.h (record_full_is_used): Declare.
13294 * record.c (find_record_target): Make extern.
13295 (record_preopen): New function.
13296 * record.h (RECORD_IS_USED): Delete macro.
13297 (find_record_target, record_preopen): Declare functions.
13299 2014-01-14 Yao Qi <yao@codesourcery.com>
13301 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13302 'len''s type to ULONGEST.
13303 (core_xfer_shared_libraries_aix): Likewise.
13304 * gdbarch.c, gdbarch.h: Regenerated.
13305 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13306 Change type of 'len' to ULONGEST.
13307 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13308 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13310 2014-01-14 Yao Qi <yao@codesourcery.com>
13312 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13313 type of 'len' to ULONGEST.
13314 (linux_xfer_osdata_processgroups): Likewise.
13315 (linux_xfer_osdata_threads): Likewise.
13316 (linux_xfer_osdata_fds): Likewise.
13317 (linux_xfer_osdata_isockets): Likewise.
13318 (linux_xfer_osdata_shm): Likewise.
13319 (linux_xfer_osdata_sem): Likewise.
13320 (linux_xfer_osdata_msg): Likewise.
13321 (linux_common_xfer_osdata): Likewise.
13322 (struct osdata_type) <getter>: Likewise.
13323 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13326 2014-01-14 Yao Qi <yao@codesourcery.com>
13328 * target.h (target_xfer_partial_ftype): Update.
13329 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13331 * aix-thread.c (aix_thread_xfer_partial): Change type of
13332 argument 'len' to ULONGEST.
13333 * auxv.c (procfs_xfer_auxv): Likewise.
13334 (ld_so_xfer_auxv): Likewise.
13335 (memory_xfer_auxv): Likewise.
13336 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13337 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13338 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13339 * corelow.c (core_xfer_partial): Likewise.
13340 * ctf.c (ctf_xfer_partial): Likewise.
13341 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13343 (darwin_read_dyld_info): Likewise.
13344 (darwin_xfer_partial): Likewise.
13345 * exec.c (section_table_xfer_memory_partial): Likewise.
13346 (exec_xfer_partial): Likewise.
13347 * exec.h (section_table_xfer_memory_partial): Update
13349 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13350 instead of plongest.
13351 (gnu_xfer_partial): Likewise.
13352 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13353 (ia64_hpux_xfer_solib_got): Likewise.
13354 (ia64_hpux_xfer_partial): Likewise.
13355 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13356 * inf-ptrace.c (inf_ptrace_xfer_partial):
13357 * inf-ttrace.c (inf_ttrace_xfer_partial):
13358 * linux-nat.c (linux_xfer_siginfo): Likewise.
13359 (linux_nat_xfer_partial): Likewise.
13360 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13361 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13362 * monitor.c (monitor_xfer_memory): Likewise.
13363 (monitor_xfer_partial): Likewise.
13364 * procfs.c (procfs_xfer_partial): Likewise.
13365 * record-full.c (record_full_xfer_partial): Likewise.
13366 (record_full_core_xfer_partial): Likewise.
13367 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13368 instead of plongest.
13369 (gdbsim_xfer_partial): Likewise.
13370 * remote.c (remote_xfer_partial): Likewise.
13371 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13372 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13374 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13375 (rs6000_xfer_shared_libraries): Likewise.
13376 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13377 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13378 (sparc_xfer_partial): Likewise.
13379 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13380 (spu_xfer_partial): Likewise.
13381 * spu-multiarch.c (spu_xfer_partial): Likewise.
13382 * target.c (target_read_live_memory): Likewise.
13383 (memory_xfer_live_readonly_partial): Likewise.
13384 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13385 (target_xfer_partial, default_xfer_partial): Likewise.
13386 (current_xfer_partial): Likewise.
13387 * tracepoint.c (tfile_xfer_partial): Likewise.
13388 * windows-nat.c (windows_xfer_memory): Likewise. Call
13389 pulongest instead of plongest.
13390 (windows_xfer_partial): Likewise.
13391 (windows_xfer_shared_libraries): Likewise.
13393 2014-01-14 Yao Qi <yao@codesourcery.com>
13395 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13396 target_xfer_partial_ftype.
13398 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13402 * valops.c (value_struct_elt_bitpos): New function
13403 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13404 object to 'None' if the field name is an empty string ("").
13405 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13406 attribute to look for a field when 'name' is 'None'.
13407 (get_field_type): New function
13409 2014-01-13 Doug Evans <dje@google.com>
13412 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13413 (try_open_dwop_file): Ditto.
13414 * gdb_bfd.c: #include "vec.h".
13415 (bfdp): New typedef.
13416 (struct gdb_bfd_data): New member included_bfds.
13417 (gdb_bfd_unref): Unref all included bfds.
13418 (gdb_bfd_record_inclusion): New function.
13419 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13421 2014-01-13 Tom Tromey <tromey@redhat.com>
13423 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13425 2014-01-13 Tom Tromey <tromey@redhat.com>
13427 * defs.h (use_windows): Remove.
13428 * gdb.c (main): Update.
13429 * main.c (captured_main, gdb_main): Update.
13430 * main.h (struct captured_main_args) <use_windows>: Remove.
13431 * top.c (use_windows): Remove.
13433 2014-01-13 Tom Tromey <tromey@redhat.com>
13435 * defs.h (deprecated_flush_hook): Remove.
13437 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13440 * linux-thread-db.c (try_thread_db_load): Add parameter
13441 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13442 (try_thread_db_load_from_pdir_1): Move it there from here.
13443 (try_thread_db_load_from_sdir): Update caller.
13444 (try_thread_db_load_from_dir): Move it there from here.
13446 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13448 * regformats/regdat.sh: Always rewrite the register file.
13450 2014-01-13 Pedro Alves <palves@redhat.com>
13452 * Makefile.in (CHECK_HEADERS): New variable.
13453 (check-headers:): New rule.
13455 2014-01-13 Tom Tromey <tromey@redhat.com>
13457 * cli/cli-setshow.c (do_set_command): Update.
13458 * defs.h (deprecated_set_hook): Remove.
13459 * top.c (deprecated_set_hook): Remove.
13461 2014-01-13 Pedro Alves <palves@redhat.com>
13463 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13464 the tracepoint if the PC is a pseudo-register.
13466 2014-01-13 Tom Tromey <tromey@redhat.com>
13468 * defs.h (XCALLOC): Remove.
13469 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13470 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13471 * dwarf2loc.c (allocate_piece_closure): Likewise.
13472 * elfread.c (elf_symfile_segments): Likewise.
13473 (elf_symfile_segments): Likewise.
13474 * gdbtypes.c (copy_type_recursive): Likewise.
13475 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13476 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13477 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13479 * mt-tdep.c (mt_gdbarch_init): Likewise.
13480 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13482 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13483 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13484 * registry.c (registry_alloc_data): Likewise.
13485 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13486 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13487 * serial.c (serial_fdopen_ops): Likewise.
13488 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13490 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13491 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13494 2014-01-13 Tom Tromey <tromey@redhat.com>
13496 * defs.h (XMALLOC): Remove.
13497 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13498 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13499 * cli-out.c (struct ui_out *): Likewise.
13500 * cli/cli-dump.c (add_dump_command): Likewise.
13501 (add_dump_command): Likewise.
13502 * complaints.c (get_complaints): Likewise.
13503 (find_complaint): Likewise.
13504 * dwarf2-frame.c (execute_cfa_program): Likewise.
13505 * dwarf2read.c (abbrev_table_read_table): Likewise.
13506 * gdbarch.sh: Likewise.
13507 * gdbarch.c: Rebuild.
13508 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13509 * interps.c (interp_new): Likewise.
13510 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13511 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13512 * mi/mi-console.c (mi_console_file_new): Likewise.
13513 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13514 * mi/mi-out.c (mi_out_new): Likewise.
13515 * mi/mi-parse.c (mi_parse): Likewise.
13516 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13517 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13518 * observer.c (xalloc_observer_list_node): Likewise.
13519 * regcache.c (regcache_xmalloc_1): Likewise.
13520 * reggroups.c (reggroup_new): Likewise.
13521 (_initialize_reggroup): Likewise.
13522 * registry.c (register_data_with_cleanup): Likewise.
13523 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13524 * ser-base.c (serial_ttystate): Likewise.
13525 * ser-mingw.c (make_pipe_state): Likewise.
13526 * ser-pipe.c (pipe_open): Likewise.
13527 * serial.c (serial_open): Likewise.
13528 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13529 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13530 (tui_alloc_win_info): Likewise.
13531 (tui_add_content_elements): Likewise.
13532 * tui/tui-file.c (tui_file_new): Likewise.
13533 * tui/tui-out.c (tui_out_new): Likewise.
13534 * ui-file.c (mem_file_new): Likewise.
13535 * ui-out.c (push_level): Likewise.
13536 (make_cleanup_ui_out_end): Likewise.
13537 (append_header_to_list): Likewise.
13538 (ui_out_new): Likewise.
13539 * user-regs.c (user_reg_add_builtin): Likewise.
13541 2014-01-13 Tom Tromey <tromey@redhat.com>
13543 * defs.h (XZALLOC): Remove.
13544 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13545 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13546 (get_ada_tasks_inferior_data): Likewise.
13547 * auto-load.c (get_auto_load_pspace_data): Likewise.
13548 * auxv.c (get_auxv_inferior_data): Likewise.
13549 * bfd-target.c (target_bfd_reopen): Likewise.
13550 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13551 (deprecated_insert_raw_breakpoint): Likewise.
13552 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13553 * corelow.c (core_open): Likewise.
13554 * darwin-nat.c (darwin_check_new_threads): Likewise.
13555 (darwin_attach_pid): Likewise.
13556 * dummy-frame.c (dummy_frame_push): Likewise.
13557 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13558 * dwarf2loc.c (allocate_piece_closure): Likewise.
13559 * elfread.c (elf_symfile_segments): Likewise.
13560 * eval.c (ptrmath_type_p): Likewise.
13561 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13562 * gdbtypes.c (alloc_type_arch): Likewise.
13563 (alloc_type_instance): Likewise.
13564 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13565 * inf-child.c (inf_child_can_use_agent): Likewise.
13566 * inflow.c (get_inflow_inferior_data): Likewise.
13567 * infrun.c (save_infcall_suspend_state): Likewise.
13568 * jit.c (jit_reader_load): Likewise.
13569 (get_jit_objfile_data): Likewise.
13570 (get_jit_program_space_data): Likewise.
13571 (jit_object_open_impl): Likewise.
13572 (jit_symtab_open_impl): Likewise.
13573 (jit_block_open_impl): Likewise.
13574 (jit_frame_sniffer): Likewise.
13575 * linux-fork.c (add_fork): Likewise.
13576 * maint.c (make_command_stats_cleanup): Likewise.
13577 * objfiles.c (get_objfile_pspace_data): Likewise.
13578 * opencl-lang.c (struct lval_closure): Likewise.
13579 * osdata.c (osdata_start_osdata): Likewise.
13580 * progspace.c (new_address_space): Likewise.
13581 (add_program_space): Likewise.
13582 * remote-sim.c (get_sim_inferior_data): Likewise.
13583 * sh-tdep.c (sh_gdbarch_init): Likewise.
13584 * skip.c (Ignore): Likewise.
13585 (skip_delete_command): Likewise.
13586 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13587 (library_list_start_library): Likewise.
13588 (solib_aix_current_sos): Likewise.
13589 * solib-darwin.c (get_darwin_info): Likewise.
13590 (darwin_current_sos): Likewise.
13591 * solib-dsbt.c (get_dsbt_info): Likewise.
13592 * solib-ia64-hpux.c (new_so_list): Likewise.
13593 (ia64_hpux_get_solib_linkage_addr): Likewise.
13594 * solib-spu.c (append_ocl_sos): Likewise.
13595 (spu_current_sos): Likewise.
13596 * solib-svr4.c (get_svr4_info): Likewise.
13597 (svr4_keep_data_in_core): Likewise.
13598 (library_list_start_library): Likewise.
13599 (svr4_default_sos): Likewise.
13600 (svr4_read_so_list): Likewise.
13601 * solib-target.c (library_list_start_library): Likewise.
13602 (solib_target_current_sos): Likewise.
13603 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13604 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13605 * symfile.c (default_symfile_segments): Likewise.
13606 * target-descriptions.c (tdesc_data_init): Likewise.
13607 (tdesc_create_reg): Likewise.
13608 (struct tdesc_type *): Likewise.
13609 (tdesc_create_vector): Likewise.
13610 (tdesc_set_struct_size): Likewise.
13611 (struct tdesc_type *): Likewise.
13612 (tdesc_free_feature): Likewise.
13613 (tdesc_create_feature): Likewise.
13614 * windows-nat.c (windows_add_thread): Likewise.
13615 (windows_make_so): Likewise.
13616 * xml-support.c (gdb_xml_body_text): Likewise.
13617 (gdb_xml_create_parser_and_cleanup): Likewise.
13618 (xml_process_xincludes): Likewise.
13619 * xml-syscall.c (allocate_syscalls_info): Likewise.
13620 (syscall_create_syscall_desc): Likewise.
13622 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13624 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13625 function, with code from i386_stap_parse_special_token.
13626 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13627 (i386_stap_parse_special_token): Move code to the two functions
13628 above; simplify it.
13630 2014-01-09 Pedro Alves <palves@redhat.com>
13631 Hui Zhu <hui@codesourcery.com>
13634 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13635 bp_err_string. Don't mark the location shlib_disabled if the
13636 error thrown wasn't a generic or memory error. Catch errors
13637 thrown while inserting breakpoints in overlayed code. Output
13638 error message of software breakpoints.
13639 * remote.c (remote_insert_breakpoint): If this breakpoint has
13640 target-side commands but this stub doesn't support Z0 packets,
13641 throw NOT_SUPPORTED_ERROR error.
13642 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13643 * target.h (target_insert_breakpoint): Extend comment.
13644 (target_insert_hw_breakpoint): Add comment.
13646 2014-01-08 Pedro Alves <palves@redhat.com>
13648 * remote.c (remote_add_thread): Add threads silently if starting
13650 (remote_notice_new_inferior): If in all-stop, and starting up,
13651 don't call notice_new_inferior.
13652 (get_current_thread): New function, factored out from ...
13653 (add_current_inferior_and_thread): ... this. Adjust.
13654 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13655 found any thread, then select the remote's current thread as GDB's
13656 current thread too.
13658 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13660 * NEWS: Create a new section for the next release branch.
13661 Rename the section of the current branch, now that it has
13664 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13666 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13667 * version.in: Bump version to 7.7.50.DATE-cvs.
13669 2014-01-08 Yao Qi <yao@codesourcery.com>
13671 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13672 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13673 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13675 2014-01-08 Yao Qi <yao@codesourcery.com>
13677 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13678 return value of bfd_get_filename to symbol_file_add_from_bfd.
13680 2014-01-08 Pierre Muller <muller@sourceware.org>
13683 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13684 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13685 to prim_record_mininal_symbol_and_info.
13686 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13687 in call to prim_record_minimal_symbol_and_info.
13688 (read_pe_exported_syms): Set index field of section_data.
13690 2014-01-07 Andrew Pinski <apinski@cavium.com>
13692 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13693 * features/aarch64.c: Regenerate.
13695 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13697 * target.c (return_null): Define.
13698 (update_current_target): Use it instead of return_zero for
13699 functions that return a pointer.
13701 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13703 * source.c (add_path): Fix check for duplicated paths in the previously
13706 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13708 * ada-lang.c: Remove duplicated include statements.
13709 * alphabsd-nat.c: Ditto.
13710 * amd64-darwin-tdep.c: Ditto.
13711 * amd64fbsd-nat.c: Ditto.
13712 * auto-load.c: Ditto.
13714 * breakpoint.c: Ditto.
13715 * dbxread.c: Ditto.
13716 * fork-child.c: Ditto.
13717 * gdb_usleep.c: Ditto.
13718 * i386-darwin-tdep.c: Ditto.
13719 * i386fbsd-nat.c: Ditto.
13721 * inferior.c: Ditto.
13722 * jv-lang.c: Ditto.
13723 * linux-nat.c: Ditto.
13724 * linux-tdep.c: Ditto.
13725 * m68kbsd-nat.c: Ditto.
13726 * m68klinux-nat.c: Ditto.
13727 * microblaze-tdep.c: Ditto.
13728 * mips-linux-tdep.c: Ditto.
13729 * mn10300-tdep.c: Ditto.
13730 * nto-tdep.c: Ditto.
13731 * opencl-lang.c: Ditto.
13733 * printcmd.c: Ditto.
13734 * regcache.c: Ditto.
13735 * remote-m32r-sdi.c: Ditto.
13737 * symfile.c: Ditto.
13739 * tilegx-linux-nat.c: Ditto.
13740 * tilegx-tdep.c: Ditto.
13741 * tracepoint.c: Ditto.
13743 * vaxbsd-nat.c: Ditto.
13744 * windows-nat.c: Ditto.
13745 * xtensa-tdep.c: Ditto.
13747 2014-01-07 Yao Qi <yao@codesourcery.com>
13749 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13751 2014-01-07 Yao Qi <yao@codesourcery.com>
13752 Joel Brobecker <brobecker@adacore.com>
13754 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13755 (pdc_write_regs): Likewise.
13756 (fetch_regs_kernel_thread): Likewise.
13757 (store_regs_kernel_thread): Likewise.
13759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13761 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13762 tagged type objects to their actual type.
13764 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13766 * ada-valprint.c (print_field_values): Add "language" parameter.
13767 Update calls to print_field_values and print_variant_part.
13768 Pass new parameter "language" in call to val_print instead
13769 of "current_language". Replace call to ada_val_print by call
13771 (print_variant_part): Add "language" parameter.
13772 (ada_val_print_struct_union): Update call to print_field_values.
13774 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13776 * ada-valprint.c (ui_memcpy): Delete.
13777 (ada_print_floating): Update documentation. Add empty line
13778 between between function documentation and implementation.
13779 Delete variable "buffer". Use ui_file_xstrdup in place of
13780 ui_file_put. Minor adjustments following this change.
13782 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13784 * ada-valprint.c (ada_val_print_string): New function,
13785 extracted from ada_val_print_array.
13786 (ada_val_print_array): Replace extracted code by call
13787 to ada_val_print_string followed by a return. Move
13788 "else" branch to the function's top block.
13790 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13792 * ada-valprint.c (ada_val_print_array): Move implementation
13793 down. Rename parameter "offset" and "val" into "offset_aligned"
13794 and "original_value" respectively. Add parameter "offset".
13796 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13798 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13799 re-organizing the code. Change the "???" message printed
13800 when target type is a TYPE_CODE_UNDEF into
13801 "<ref to undefined type>".
13803 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13805 * ada-valprint.c (print_record): Delete, implementation inlined...
13806 (ada_val_print_struct_union): ... here. Remove call to
13807 ada_check_typedef in inlined implementation.
13809 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13811 * ada-valprint.c (ada_val_print_gnat_array): New function,
13812 extracted from ada_val_print_1;
13813 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13814 (ada_val_print_flt, ada_val_print_struct_union)
13815 (ada_val_print_ref): Likewise.
13816 (ada_val_print_1): Delete variables i and elttype.
13817 Replace extracted-out code by call to corresponding
13820 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13822 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13824 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13826 * ada-valprint.c (ada_val_print_1): Replace calls to
13827 ada_val_print_1 by calls to val_print.
13829 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13831 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13832 Update calls to self accordingly. Replace calls to c_val_print
13833 by calls to val_print.
13835 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13837 * ada-valprint.c (print_record): Delete declaration.
13838 (adjust_type_signedness, ada_val_print_1): Likewise.
13839 (ada_val_print): Move function implementation down.
13840 (print_variant_part, print_field_values, print_record):
13841 Move function implementation up.
13843 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13845 * python/py-type.c (typy_get_name): New function.
13846 (type_object_getset): Add entry for attribute "name".
13847 * NEWS: Add entry mentioning this new attribute.
13849 2014-01-07 Yao Qi <yao@codesourcery.com>
13851 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13854 2014-01-07 Yao Qi <yao@codesourcery.com>
13856 * gnu-nat.c (info_port_rights): Add qualifier const to
13859 2014-01-07 Yao Qi <yao@codesourcery.com>
13861 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13863 2014-01-07 Yao Qi <yao@codesourcery.com>
13865 * gnu-nat.c (make_inf) Update declaration.
13866 (make_inf): Make it static.
13867 (inf_set_traced): Likewise.
13868 (inf_port_to_thread, inf_task_died_status): Likewise.
13870 2014-01-07 Yao Qi <yao@codesourcery.com>
13872 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13874 2014-01-07 Yao Qi <yao@codesourcery.com>
13876 * gnu-nat.c (_initialize_gnu_nat): Declare.
13878 2014-01-07 Yao Qi <yao@codesourcery.com>
13880 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13882 (struct gdbarch_info) <byte_order>: Change type to
13884 <byte_order_for_code>: Likewise.
13885 * gdbarch.c, gdbarch.h: Regenerated.
13887 2014-01-06 Sasha Smundak <asmundak@google.com>
13889 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13891 2014-01-06 Tom Tromey <tromey@redhat.com>
13893 * doublest.c (convert_doublest_to_floatformat): Use const, not
13895 * somread.c (som_symtab_read): Likewise.
13897 2014-01-07 Hui Zhu <hui@codesourcery.com>
13899 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13900 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13901 (gdb_bfd_fopen): Ditto.
13902 (gdb_bfd_openr): Ditto.
13903 (gdb_bfd_openw): Ditto.
13904 (gdb_bfd_openr_iovec): Ditto.
13905 (gdb_bfd_fdopenr): Ditto.
13906 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13907 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13909 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13911 * symfile-mem.c (symbol_file_add_from_memory): Removed
13912 gdb_bfd_stash_filename.
13914 2014-01-03 Doug Evans <dje@google.com>
13916 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13919 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13921 Update year range in copyright notice of all files.
13923 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13925 * top.c (print_gdb_version): Set copyright year to 2014.
13927 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13929 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13931 For older changes see ChangeLog-2013.
13937 version-control: never