1 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
3 * mips-tdep.c (add_offset_16): Rewrite to implement what the
5 (extended_mips16_next_pc): Update accordingly.
7 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
9 * mips-tdep.c (mips16_instruction_is_compact_branch): New
11 (micromips_instruction_is_compact_branch): Likewise.
12 (mips16_scan_prologue): Terminate scanning upon seeing a branch
13 or a compact jump, reaching a jump delay slot, or seeing a
14 second non-prologue instruction.
15 (micromips_scan_prologue): Also terminate scanning upon seeing a
16 compact branch or jump, or reaching a branch or jump delay slot.
17 (mips32_scan_prologue): Terminate scanning upon reaching a branch
18 or jump delay slot, or seeing a second non-prologue instruction.
19 (mips32_instruction_has_delay_slot): Retain instruction
20 examination code only, update arguments accordingly and move
21 instruction fetch pieces to...
22 (mips32_insn_at_pc_has_delay_slot): ... this new function.
23 (micromips_instruction_has_delay_slot): Likewise and to...
24 (micromips_insn_at_pc_has_delay_slot): ... this new function.
25 (mips16_instruction_has_delay_slot): Likewise and to...
26 (mips16_insn_at_pc_has_delay_slot): ... this new function.
27 (mips_single_step_through_delay): Update accordingly.
28 (mips_adjust_breakpoint_address): Likewise.
30 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
32 * mips-tdep.c (micromips_instruction_has_delay_slot): When
33 !mustbe32 also return 1 for 32-bit instructions.
34 (mips16_instruction_has_delay_slot): Likewise. Add an
37 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
39 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
42 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
44 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
46 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
47 for the breakpoint's address. Don't preinitialize `placed_size'.
48 (insert_bp_location): Set `reqstd_address' rather than
50 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
51 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
53 (bkpt_remove_location): Likewise.
54 (deprecated_insert_raw_breakpoint): Likewise.
55 (deprecated_remove_raw_breakpoint): Likewise.
56 (find_single_step_breakpoint): Likewise.
57 * mem-break.c (default_memory_insert_breakpoint): Use
58 `reqstd_address' for the breakpoint's address. Don't set
59 `placed_address' or `placed_size' if breakpoint contents couldn't
61 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
62 the breakpoint's address.
63 (remote_insert_hw_breakpoint): Likewise. Don't set
64 `placed_address' or `placed_size' if breakpoint couldn't have been
66 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
67 `reqstd_address' for the breakpoint's address.
68 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
69 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
70 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
71 * microblaze-linux-tdep.c
72 (microblaze_linux_memory_remove_breakpoint): Likewise.
73 * monitor.c (monitor_insert_breakpoint): Likewise.
74 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
75 (procfs_insert_hw_breakpoint): Likewise.
76 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
77 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
78 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
79 * remote-mips.c (mips_insert_breakpoint): Likewise.
80 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
82 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
84 * valops.c (value_assign): Check for bit field assignments
85 before calling architecture-specific register value
88 2014-10-03 Pierre Muller <muller@sourceware.org>
90 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
92 2014-10-02 Pedro Alves <palves@redhat.com>
94 * breakpoint.c (breakpoints_should_be_inserted_now): Use
95 threads_are_executing.
96 * breakpoint.h (breakpoints_should_be_inserted_now): Add
98 * gdbthread.h (threads_are_executing): Declare.
99 (handle_signal_stop) <random signals>: Don't print about the
100 signal here if stopping.
101 (end_stepping_range): Don't notify observers here.
102 (normal_stop): Update the thread list. If stopped by a random
103 signal or a stepping range ended, notify observers.
104 * thread.c (threads_executing): New global.
105 (init_thread_list): Clear 'threads_executing'.
106 (set_executing): Set or clear 'threads_executing'.
107 (threads_are_executing): New function.
108 (update_threads_executing): New function.
109 (update_thread_list): Use it.
111 2014-10-02 Pedro Alves <palves@redhat.com>
114 * breakpoint.c (update_breakpoints_after_exec): Don't create
115 overlay, longjmp, std terminate nor exception breakpoints here.
117 2014-10-02 Pedro Alves <palves@redhat.com>
119 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
121 * inferior.c (find_inferior_for_program_space): Give preference to
122 the current inferior.
123 * inferior.h (find_inferior_for_program_space): Update comment.
124 * progspace.c (switch_to_program_space_and_thread): Prefer the
125 current inferior if it's bound to the program space requested. If
126 the inferior found doesn't have a PID yet, don't bother looking up
128 * progspace.h (switch_to_program_space_and_thread): Adjust
130 * thread.c (any_thread_of_process, any_live_thread_of_process):
131 Give preference to the current thread.
133 2014-10-01 Pedro Alves <palves@redhat.com>
135 * breakpoint.c (insert_bp_location): Error out if inserting a
136 software breakpoint at a read-only address.
137 * target.c (memory_xfer_check_region): New function, factored out
139 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
141 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
142 against the memory region attributes.
144 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
146 * NEWS: Announce new exit-code field in -list-thread-groups
148 * inferior.c (exit_inferior_1): Don't clear exit code.
149 (inferior_appeared): Clear exit code.
150 * mi/mi-main.c (print_one_inferior): Add printing of the exit
153 2014-10-01 Pedro Alves <palves@redhat.com>
155 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
156 GENERATED" along with emacs/vi read-only markers.
157 * regformats/aarch64.dat: Regenerate.
158 * regformats/arm-with-iwmmxt.dat: Regenerate.
159 * regformats/arm-with-neon.dat: Regenerate.
160 * regformats/arm-with-vfpv2.dat: Regenerate.
161 * regformats/arm-with-vfpv3.dat: Regenerate.
162 * regformats/i386/amd64-avx-linux.dat: Regenerate.
163 * regformats/i386/amd64-avx.dat: Regenerate.
164 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
165 * regformats/i386/amd64-avx512.dat: Regenerate.
166 * regformats/i386/amd64-linux.dat: Regenerate.
167 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
168 * regformats/i386/amd64-mpx.dat: Regenerate.
169 * regformats/i386/amd64.dat: Regenerate.
170 * regformats/i386/i386-avx-linux.dat: Regenerate.
171 * regformats/i386/i386-avx.dat: Regenerate.
172 * regformats/i386/i386-avx512-linux.dat: Regenerate.
173 * regformats/i386/i386-avx512.dat: Regenerate.
174 * regformats/i386/i386-linux.dat: Regenerate.
175 * regformats/i386/i386-mmx-linux.dat: Regenerate.
176 * regformats/i386/i386-mmx.dat: Regenerate.
177 * regformats/i386/i386-mpx-linux.dat: Regenerate.
178 * regformats/i386/i386-mpx.dat: Regenerate.
179 * regformats/i386/i386.dat: Regenerate.
180 * regformats/i386/x32-avx-linux.dat: Regenerate.
181 * regformats/i386/x32-avx.dat: Regenerate.
182 * regformats/i386/x32-avx512-linux.dat: Regenerate.
183 * regformats/i386/x32-avx512.dat: Regenerate.
184 * regformats/i386/x32-linux.dat: Regenerate.
185 * regformats/i386/x32.dat: Regenerate.
186 * regformats/microblaze-with-stack-protect.dat: Regenerate.
187 * regformats/mips-dsp-linux.dat: Regenerate.
188 * regformats/mips-linux.dat: Regenerate.
189 * regformats/mips64-dsp-linux.dat: Regenerate.
190 * regformats/mips64-linux.dat: Regenerate.
191 * regformats/nios2-linux.dat: Regenerate.
192 * regformats/rs6000/powerpc-32.dat: Regenerate.
193 * regformats/rs6000/powerpc-32l.dat: Regenerate.
194 * regformats/rs6000/powerpc-64l.dat: Regenerate.
195 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
196 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
197 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
198 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
199 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
200 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
201 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
202 * regformats/s390-linux32.dat: Regenerate.
203 * regformats/s390-linux32v1.dat: Regenerate.
204 * regformats/s390-linux32v2.dat: Regenerate.
205 * regformats/s390-linux64.dat: Regenerate.
206 * regformats/s390-linux64v1.dat: Regenerate.
207 * regformats/s390-linux64v2.dat: Regenerate.
208 * regformats/s390-te-linux64.dat: Regenerate.
209 * regformats/s390x-linux64.dat: Regenerate.
210 * regformats/s390x-linux64v1.dat: Regenerate.
211 * regformats/s390x-linux64v2.dat: Regenerate.
212 * regformats/s390x-te-linux64.dat: Regenerate.
213 * regformats/tic6x-c62x-linux.dat: Regenerate.
214 * regformats/tic6x-c62x.dat: Regenerate.
215 * regformats/tic6x-c64x-linux.dat: Regenerate.
216 * regformats/tic6x-c64x.dat: Regenerate.
217 * regformats/tic6x-c64xp-linux.dat: Regenerate.
218 * regformats/tic6x-c64xp.dat: Regenerate.
220 2014-10-01 Pedro Alves <palves@redhat.com>
222 * features/Makefile: Update comments.
223 (XMLTOC): List all xml files we build C files from.
224 (clean-cfiles): New rule.
226 2014-10-01 Pedro Alves <palves@redhat.com>
228 * features/i386/amd64-avx512-linux.c: Regenerate.
229 * features/i386/amd64-avx512.c: Regenerate.
230 * features/i386/x32-avx512-linux.c: Regenerate.
231 * features/i386/x32-avx512.c: Regenerate.
233 2014-10-01 Pedro Alves <palves@redhat.com>
235 * features/Makefile (WHICH): Remove arm-with-m,
236 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
238 2014-10-01 Pedro Alves <palves@redhat.com>
240 * features/Makefile (clean): New rule.
242 2014-10-01 Pedro Alves <palves@redhat.com>
244 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
245 (zmm14h): Add missing end quotes.
247 2014-10-01 Pedro Alves <palves@redhat.com>
249 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
250 * features/aarch64.c: Regenerate.
252 2014-09-30 Don Breazeal <donb@codesourcery.com>
254 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
255 code so as to work with follow_fork_inferior.
256 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
257 (inf_ttrace_create_inferior): Remove reference to
258 inf_ttrace_vfork_ppid.
259 (inf_ttrace_attach): Ditto.
260 (inf_ttrace_detach): Ditto.
261 (inf_ttrace_kill): Use current_inferior instead of
262 inf_ttrace_vfork_ppid.
263 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
264 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
265 inferior away from the parent.
266 * infrun.c (follow_fork): Call follow_fork_inferior instead of
268 (follow_fork_inferior): New function.
269 (follow_inferior_reset_breakpoints): Make function static.
270 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
271 * linux-nat.c (linux_child_follow_fork): Move target-independent
272 code to infrun.c:follow_fork_inferior.
274 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
276 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
277 * gdbarch.c: Regenerate.
278 * gdbarch.h: Likewise.
279 * corelow.c (sniff_core_bfd): Drop presence check for deleted
280 gdbarch method 'regset_from_core_section'.
281 (get_core_register_section): Remove handling for the case that
282 regset == NULL and regset_from_core_section is defined.
283 (get_core_registers): Drop check for deleted method.
284 * procfs.c (procfs_do_thread_registers): Adjust comment.
286 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
288 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
289 (linux_nat_make_corefile_notes): Remove.
290 (linux_target_install_ops): Do not set target method
291 'make_corefile_notes'.
292 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
294 (linux_corefile_thread_callback): Instead of args->collect, call
295 linux_collect_thread_registers.
296 (linux_make_corefile_notes): Remove 'collect' parameter. Return
297 NULL unless there is a regset iterator.
298 (linux_make_corefile_notes_1): Remove.
299 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
300 by linux_make_corefile_notes.
301 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
303 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
305 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
306 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
308 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
310 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
312 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
313 (xtensa_iterate_over_regset_sections): New.
314 (xtensa_gdbarch_init): Adjust gdbarch initialization.
316 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
318 * vax-tdep.c (vax_regset_from_core_section): Remove.
319 (vax_iterate_over_regset_sections): New.
320 (vax_gdbarch_init): Adjust gdbarch initialization.
322 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
324 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
325 (tilegx_regset_from_core_section): Remove.
326 (tilegx_iterate_over_regset_sections): New.
327 (tilegx_linux_init_abi): Adjust gdbarch initialization.
329 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
331 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
332 (sparc_iterate_over_regset_sections): New.
333 (sparc32_gdbarch_init): Adjust gdbarch initialization.
334 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
336 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
337 (sparc64fbsd_init_abi): Call fbsd_init_abi.
338 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
339 target method 'make_corefile_notes'.
341 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
343 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
344 'sizeof_gregset' and 'sizeof_fpregset'.
345 * sh-tdep.c (sh_regset_from_core_section): Remove.
346 (sh_iterate_over_regset_sections): New.
347 (sh_gdbarch_init): Adjust gdbarch initialization.
348 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
350 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
353 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
355 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
356 (score7_linux_iterate_over_regset_sections): New.
357 (score_gdbarch_init): Adjust gdbarch initialization.
359 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
361 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
363 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
364 method 'make_corefile_notes'.
365 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
366 (ppcfbsd_regset_from_core_section): Remove.
367 (ppcfbsd_iterate_over_regset_sections): New.
368 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
370 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
371 (ppcnbsd_iterate_over_regset_sections): New.
372 (ppcnbsd_init_abi): Adjust.
373 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
374 (ppcobsd_iterate_over_regset_sections): New.
375 (ppcobsd_init_abi): Adjust.
376 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
377 (rs6000_aix_iterate_over_regset_sections): New.
378 (rs6000_aix_init_osabi): Adjust.
380 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
382 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
383 (nios2_regset_from_core_section): Remove.
384 (nios2_iterate_over_regset_sections): New.
385 (nios2_linux_init_abi): Adjust gdbarch initialization.
387 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
389 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
390 (am33_iterate_over_regset_sections): New.
391 (am33_linux_init_osabi): Adjust gdbarch initialization.
393 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
395 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
396 (mips_linux_iterate_over_regset_sections): New.
397 (mips_linux_init_abi): Adjust gdbarch initialization.
398 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
399 (mips64obsd_iterate_over_regset_sections): New.
400 (mips64obsd_init_abi): Adjust.
401 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
402 (mipsnbsd_iterate_over_regset_sections): New.
403 (mipsnbsd_init_abi): Adjust.
405 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
407 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
408 (m88k_iterate_over_regset_sections): New.
409 (m88k_gdbarch_init): Adjust gdbarch initialization.
411 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
413 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
414 (ia64_linux_iterate_over_regset_sections): New.
415 (ia64_linux_init_abi): Adjust gdbarch initialization.
417 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
419 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
420 (m68kbsd_iterate_over_regset_sections): New.
421 (m68kbsd_init_abi): Adjust gdbarch initialization.
422 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
423 (m68k_linux_iterate_over_regset_sections): New.
424 (m68k_linux_init_abi): Adjust gdbarch initialization.
426 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
428 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
429 (m32r_linux_regset_from_core_section): Remove.
430 (m32r_linux_iterate_over_regset_sections): New.
431 (m32r_linux_init_abi): Adjust gdbarch initialization.
433 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
435 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
436 (amd64obsd_iterate_over_regset_sections): New.
437 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
438 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
440 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
441 regset_from_core_section initialization.
442 * i386-tdep.c (i386_regset_from_core_section): Remove.
443 (i386_iterate_over_regset_sections): New.
444 (i386_gdbarch_init): Adjust gdbarch initialization.
445 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
446 (i386_iterate_over_regset_sections): New prototype.
447 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
449 (i386obsd_aout_iterate_over_regset_sections): New.
450 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
451 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
453 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
454 (amd64fbsd_init_abi): Call fbsd_init_abi.
455 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
456 (i386fbsd4_init_abi): Call fbsd_init_abi.
457 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
458 target method 'make_corefile_notes'.
459 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
461 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
463 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
464 (hppa_hpux_iterate_over_regset_sections): New.
465 (hppa_hpux_init_abi): Adjust gdbarch initialization.
466 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
467 (hppa_linux_iterate_over_regset_sections): New.
468 (hppa_linux_init_abi): Adjust.
469 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
470 (hppanbsd_iterate_over_regset_sections): New.
471 (hppanbsd_init_abi): Adjust.
472 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
473 (hppaobsd_iterate_over_regset_sections): New.
474 (hppaobsd_init_abi): Adjust.
476 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
478 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
479 (frv_linux_iterate_over_regset_sections): New.
480 (frv_linux_init_abi): Adjust gdbarch initialization.
482 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
484 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
485 (armbsd_iterate_over_regset_sections): New prototype.
486 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
487 (armbsd_iterate_over_regset_sections): New.
488 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
491 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
493 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
494 (alpha_linux_iterate_over_regset_sections): New.
495 (alpha_linux_init_abi): Adjust gdbarch initialization.
496 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
498 (alphanbsd_iterate_over_regset_sections): New prototype.
500 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
502 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
504 (aarch64_linux_iterate_over_regset_sections): New.
505 (aarch64_linux_init_abi): Adjust gdbarch initialization.
507 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
509 * fbsd-tdep.c: New file.
510 * fbsd-tdep.h: New file.
511 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
512 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
513 (ALLDEPFILES): Add fbsd-tdep.c.
515 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
517 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
519 * gdbarch.h: Regenerate.
520 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
522 (get_core_register_section): Add parameter 'regset' and use it, if
523 set. Add parameter 'min_size' and verify the bfd section size
525 (get_core_registers_cb): Add parameter 'regset' and pass it to
526 get_core_register section. For the "standard" register sections
527 ".reg" and ".reg2", set an appropriate default for human_name.
528 (get_core_registers): Don't abort when the gdbarch has an iterator
529 but no regset_from_core_section. Add NULL/0 for parameters
530 'regset'/'min_size' in calls to get_core_register_section.
531 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
532 'regset' and use it instead of calling the
533 regset_from_core_section gdbarch method.
534 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
535 * i386-tdep.c (i386_supply_xstateregset)
536 (i386_collect_xstateregset, i386_xstateregset): Moved to
538 (i386_regset_from_core_section): Drop handling for .reg-xfp and
540 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
541 core file support only if the regset iterator hasn't been set.
542 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
543 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
544 Moved from i386-tdep.c and renamed to *_linux*.
545 (i386_linux_iterate_over_regset_sections): Add regset parameter to
546 each callback invocation. Allow any .reg-xstate size when reading
548 * amd64-tdep.c (amd64_supply_xstateregset)
549 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
551 (amd64_regset_from_core_section): Remove.
552 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
553 install an amd64-specific regset_from_core_section gdbarch method.
554 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
555 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
556 Moved from amd64-tdep.c and renamed to *_linux*.
557 (amd64_linux_iterate_over_regset_sections): Add regset parameter
558 to each callback invocation. Allow any .reg-xstate size when
559 reading from a core file.
560 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
561 (arm_linux_iterate_over_regset_sections): Add regset parameter to
562 each callback invocation.
563 (arm_linux_init_abi): No longer set the regset_from_core_section
565 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
566 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
567 each callback invocation.
568 (ppc_linux_init_abi): No longer set the regset_from_core_section
570 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
571 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
572 (s390_regset_from_core_section): Remove.
573 (s390_iterate_over_regset_sections): Add regset parameter to each
575 (s390_gdbarch_init): No longer set the regset_from_core_section
576 gdbarch method. Drop initialization of deleted tdep fields.
578 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
580 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
581 (amd64_linux_iterate_over_regset_sections): New.
582 (amd64_linux_init_abi_common): Don't install the regset section
583 list, but the new iterator in gdbarch.
584 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
585 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
586 (arm_linux_iterate_over_regset_sections): ...here. New function.
587 (arm_linux_init_abi): Set iterator instead of section list.
588 * corelow.c (get_core_registers_cb): New function, logic moved
590 (get_core_registers): ...loop body here. Use new iterator method
591 instead of walking through the regset section list.
592 * gdbarch.sh: Remove 'core_regset_sections'. New method
593 'iterate_over_regset_sections'. New typedef
594 'iterate_over_regset_sections_cb'.
595 * gdbarch.c: Regenerate.
596 * gdbarch.h: Likewise.
597 * i386-linux-tdep.c (i386_linux_regset_sections)
598 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
600 (i386_linux_iterate_over_regset_sections): New.
601 (i386_linux_init_abi): Don't choose a regset section list, but
602 install new iterator in gdbarch.
603 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
604 (linux_collect_regset_section_cb): New function, logic moved
606 (linux_collect_thread_registers): ...loop body here. Use iterator
607 method instead of walking through list.
608 (linux_make_corefile_notes_1): Check for presence of iterator
609 method instead of regset section list.
610 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
611 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
612 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
613 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
614 (ppc_linux_iterate_over_regset_sections): ...here. New function.
615 (ppc_linux_init_abi): Don't choose from above regset section
616 lists, but install new iterator in gdbarch.
617 * regset.h (struct core_regset_section): Remove.
618 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
619 have_linux_v1, have_linux_v2, and have_tdb.
620 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
621 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
622 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
623 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
624 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
625 (s390_iterate_over_regset_sections): ...here. New function. Use
627 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
628 regset section lists, but install new iterator.
630 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
632 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
634 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
636 * progspace.c (print_program_space): Don't prune program spaces
637 before printing them.
639 2014-09-25 Pedro Alves <palves@redhat.com>
641 * infrun.c (user_visible_resume_ptid): Don't check
642 singlestep_breakpoints_inserted_p.
644 2014-09-25 Pedro Alves <palves@redhat.com>
646 * breakpoint.c (should_be_inserted): Add debug output.
648 2014-09-25 Pedro Alves <palves@redhat.com>
650 * infrun.c (stepping_past_instruction_at)
651 (clear_exit_convenience_vars): Point at infrun.h instead of
653 (handle_signal_stop): Fix typo.
655 2014-09-24 Yao Qi <yao@codesourcery.com>
657 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
660 2014-09-22 Gary Benson <gbenson@redhat.com>
662 * target.c (target_stop): Updated comment.
664 2014-09-22 Gary Benson <gbenson@redhat.com>
666 * target/target.h (target_stop_ptid): Renamed as...
667 (target_stop_and_wait): New function. Updated comment.
669 (target_continue_ptid): Renamed as...
670 (target_continue_no_signal): New function. Updated comment.
673 2014-09-22 Pedro Alves <palves@redhat.com>
675 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
677 * breakpoint.c (enum ugll_insert_mode): New enum.
678 (always_inserted_mode): Now a plain boolean.
679 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
680 (breakpoints_always_inserted_mode): Delete.
681 (breakpoints_should_be_inserted_now): New function.
682 (insert_breakpoints): Pass UGLL_INSERT to
683 update_global_location_list instead of calling
684 insert_breakpoint_locations manually.
685 (create_solib_event_breakpoint_1): New, factored out from ...
686 (create_solib_event_breakpoint): ... this.
687 (create_and_insert_solib_event_breakpoint): Use
688 create_solib_event_breakpoint_1 instead of calling
689 insert_breakpoint_locations manually.
690 (update_global_location_list): Change parameter type from boolean
691 to enum ugll_insert_mode. All callers adjusted. Adjust to use
692 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
693 (update_global_location_list_nothrow): Change parameter type from
694 boolean to enum ugll_insert_mode.
695 (_initialize_breakpoint): "breakpoint always-inserted" option is
696 now a boolean command. Update help text.
697 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
698 (breakpoints_should_be_inserted_now): New declaration.
699 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
700 Remove breakpoints_always_inserted_mode check.
701 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
702 * remote.c (remote_start_remote): Likewise.
704 2014-09-22 Pedro Alves <palves@redhat.com>
706 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
707 (insert_breakpoints): Don't call insert_breakpoint_locations here.
708 Instead, pass UGLL_INSERT to update_global_location_list.
709 (update_global_location_list): Change parameter type from boolean
710 to enum ugll_insert_mode. All callers adjusted. Adjust to use
711 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
712 (create_solib_event_breakpoint_1): New, factored out from ...
713 (create_solib_event_breakpoint): ... this.
714 (create_and_insert_solib_event_breakpoint): Use
715 create_solib_event_breakpoint_1 instead of calling
716 insert_breakpoint_locations manually.
717 (update_global_location_list): Handle UGLL_INSERT.
719 2014-09-22 Pedro Alves <palves@redhat.com>
721 * breakpoint.c (enum ugll_insert_mode): New enum.
722 (update_global_location_list)
723 (update_global_location_list_nothrow): Change parameter type from
724 boolean to enum ugll_insert_mode. All callers adjusted.
726 2014-09-19 Joel Brobecker <brobecker@adacore.com>
728 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
729 SystemTap support in GDB.
731 2014-09-19 Don Breazeal <donb@codesourcery.com>
733 * linux-nat.c (linux_handle_extended_wait): Call
734 linux_ptrace_get_extended_event.
735 (wait_lwp): Call linux_is_extended_waitstatus.
736 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
737 and linux_is_extended_waitstatus.
738 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
739 linux_ptrace_get_extended_event.
740 (linux_ptrace_get_extended_event): New function.
741 (linux_is_extended_waitstatus): New function.
742 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
743 (linux_is_extended_waitstatus): New declarations.
745 2014-09-19 Yao Qi <yao@codesourcery.com>
747 * dwarf2read.c (dwarf_decode_lines): Update declaration.
748 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
749 comments. Callers update.
750 (dwarf_decode_lines): Likewise.
751 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
752 comments. Skip the line table if 'lowpc' is greater than
753 'address'. Don't check
754 dwarf2_per_objfile->has_section_at_zero.
756 2014-09-18 Doug Evans <dje@google.com>
758 * NEWS: Mention new "producer" attribute of gdb.Symtab.
759 * python/py-symtab.c (stpy_get_producer): New function.
760 (symtab_object_getset): Add "producer" attribute.
762 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
765 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
766 (do_captured_read_memory_integer): Remove.
767 (safe_read_memory_integer): Use target_read_memory directly instead
768 of catching errors in do_captured_read_memory_integer.
770 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
772 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
775 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
777 * objc-lang.c (find_implementation_from_class): Remove dead code.
779 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
782 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
783 "fprintf_unfiltered (gdb_stdlog...)".
785 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
788 * breakpoint.h (struct watchpoint): New fields val_bitpos and
790 * breakpoint.c (watch_command_1): Use these fields to retain
791 bitfield information.
792 (extract_bitfield_from_watchpoint_value): New function.
793 (watchpoint_check): Use it.
794 (update_watchpoint): Use it. Optimize the address and length of a
795 HW watchpoint pointing to a bitfield.
796 * value.h (unpack_value_bitfield): New prototype.
797 * value.c (unpack_value_bitfield): Make extern.
799 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
801 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
803 * gnu-nat.c (inf_threads): New function.
804 * gnu-nat.h (inf_threads_ftype): New typedef.
805 (inf_threads): New declaration.
806 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
807 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
808 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
809 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
810 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
811 (i386_gnu_dr_get_control): New functions.
812 (reg_addr): New structure.
813 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
814 i386 debugging register hooks.
815 * NEWS: Mention this.
817 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
819 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
820 vector data transfer instructions.
821 (arm_record_coproc_data_proc): Updated.
823 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
825 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
826 arm_record_exreg_ld_st_insn.
827 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
830 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
832 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
833 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
834 processing instructions.
836 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
838 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
839 for advance SIMD struct ld/st insn.
840 (thumb2_record_decode_insn_handler): Replace stub handler with
841 thumb2_record_asimd_struct_ld_st.
843 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
845 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
846 for asimd, vfp and coprocessor insns.
847 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
848 and coprocessor insns.
849 (thumb2_record_coproc_insn): New function.
850 (thumb2_record_decode_insn_handler): Update coprocessor insns record
852 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
855 2014-09-13 Doug Evans <xdje42@gmail.com>
857 * NEWS: Mention new "queue-signal" command.
858 * infcmd.c (queue_signal_command): New function.
859 (_initialize_infcmd): Add new queue-signal command.
861 2014-09-13 Doug Evans <xdje42@gmail.com>
863 * linux-nat.c (wait_lwp): Add debugging printf.
864 (linux_nat_wait_1): Ditto.
866 2014-09-12 Pedro Alves <palves@redhat.com>
868 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
869 (create_and_insert_solib_event_breakpoint): New functions.
870 * breakpoint.h (create_and_insert_solib_event_breakpoint)
871 (remove_solib_event_breakpoints_at_next_stop): New declarations.
872 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
873 (remove_dbx_link_breakpoint): Delete function.
874 (insert_dbx_link_bpt_in_file): Use
875 create_and_insert_solib_event_breakpoint instead of
876 deprecated_insert_raw_breakpoint.
877 (procfs_wait): Don't check whether we hit __dbx_link here.
878 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
880 * solib-irix.c (base_breakpoint): Delete global.
881 (disable_break): Delete function.
882 (enable_break): Use create_solib_event_breakpoint
883 instead of deprecated_insert_raw_breakpoint.
884 (irix_solib_handle_event): New function.
885 (irix_solib_create_inferior_hook): Don't run the target or disable
886 the mapping-complete breakpoint here.
887 (_initialize_irix_solib): Install irix_solib_handle_event as
888 so_ops->handle_event hook.
890 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
891 Ulrich Weigand <uweigand@de.ibm.com>
894 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
895 instead of read_memory_unsigned_integer.
897 2014-09-12 Gary Benson <gbenson@redhat.com>
899 * nat/linux-waitpid.c: Include common-defs.h.
900 [GDBSERVER]: Add FIXME comment.
901 [!GDBSERVER]: Don't include defs.h or signal.h.
902 (linux_debug) [!GDBSERVER]: Remove empty block.
904 2014-09-12 Gary Benson <gbenson@redhat.com>
906 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
907 Don't include defs.h or server.h.
909 2014-09-12 Gary Benson <gbenson@redhat.com>
911 * nat/linux-btrace.c: Include common-defs.h.
912 Don't include defs.h, server.h or gdbthread.h.
913 * nat/linux-btrace.h (struct target_ops): New forward declaration.
915 2014-09-12 Gary Benson <gbenson@redhat.com>
917 * common/agent.c: Include common-defs.h.
918 Don't include defs.h or server.h.
919 * common/buffer.c: Likewise.
920 * common/common-debug.c: Likewise.
921 * common/common-utils.c: Likewise.
922 * common/errors.c: Likewise.
923 * common/filestuff.c: Likewise.
924 * common/format.c: Likewise.
925 * common/gdb_vecs.c: Likewise.
926 * common/print-utils.c: Likewise.
927 * common/ptid.c: Likewise.
928 * common/rsp-low.c: Likewise.
929 * common/signals.c: Likewise.
930 * common/vec.c: Likewise.
931 * common/xml-utils.c: Likewise.
932 * nat/linux-osdata.c: Likewise.
933 * nat/linux-procfs.c: Likewise.
934 * nat/linux-ptrace.c: Likewise.
935 * nat/mips-linux-watch.c: Likewise.
936 * target/waitstatus.c: Likewise.
938 2014-09-12 Tom Tromey <tromey@redhat.com>
939 Gary Benson <gbenson@redhat.com>
941 * common/common-regcache.h: New file.
942 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
943 * regcache.h: Include common-regcache.h.
944 (regcache_read_pc): Don't declare.
945 * regcache.c (get_thread_regcache_for_ptid): New function.
946 * nat/linux-btrace.c: Don't include regcache.h.
947 Include common-regcache.h.
948 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
950 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
952 * regcache.h (struct regset): Declare.
954 2014-09-11 Pedro Alves <palves@redhat.com>
957 * main.c: Include "infrun.h".
958 (catch_command_errors, catch_command_errors_const): Wait for the
959 foreground command to complete.
960 * top.c (maybe_wait_sync_command_done): New function, factored out
962 (maybe_wait_sync_command_done): ... here.
963 * top.h (maybe_wait_sync_command_done): New declaration.
965 2014-09-11 Tom Tromey <tromey@redhat.com>
966 Gary Benson <gbenson@redhat.com>
968 * common/symbol.h: New file.
969 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
970 * minsyms.c (find_minimal_symbol_address): New function.
971 * common/agent.c: Include common/symbol.h.
972 [!GDBSERVER]: Don't include objfiles.h.
973 (agent_look_up_symbols): Use find_minimal_symbol_address.
975 2014-09-11 Gary Benson <gbenson@redhat.com>
977 * target/target.h (target_stop_ptid, target_continue_ptid):
979 * target.c (target_stop_ptid, target_continue_ptid): New
981 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
982 (agent_run_command): Always use target_stop_ptid and
983 target_continue_ptid.
985 2014-09-11 Tom Tromey <tromey@redhat.com>
986 Gary Benson <gbenson@redhat.com>
988 * target/target.h: New file.
989 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
990 * target.h: Include target/target.h.
991 (target_read_memory, target_write_memory): Don't declare.
992 * target.c (target_read_uint32): New function.
993 * common/agent.c: Include target/target.h.
994 [!GDBSERVER]: Don't include target.h.
995 (helper_thread_id): Type changed to uint32_t.
996 (agent_get_helper_thread_id): Use target_read_uint32.
997 (agent_run_command): Always use target_read_memory and
999 (agent_capability): Type changed to uint32_t.
1000 (agent_capability_check): Use target_read_uint32.
1002 2014-09-11 Gary Benson <gbenson@redhat.com>
1004 * common/common-debug.h (show_debug_regs): Declare.
1005 * common/common-debug.c (show_debug_regs): Define.
1006 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1007 all uses with show_debug_regs. Replace all uses that considered
1008 debug_hw_points as a multi-value integer with straight boolean
1010 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1011 with show_debug_regs.
1012 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1013 all uses with show_debug_regs.
1014 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1015 uses with show_debug_regs.
1017 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1019 * findvar.c (address_from_register): Handle targets requiring
1020 a special conversion routine even for plain pointer types.
1022 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1024 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1025 (store_register): Do not call exec_one_dummy_insn.
1027 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1029 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1030 dereference it first. Use value_enclosing_type instead of
1032 (ada_array_length): Likewise.
1034 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1036 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1037 Adjust function implementation and documentation accordingly.
1038 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1039 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1040 Update call to ada_value_ptr_subscript.
1042 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1044 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1045 instead of VAL's type.
1047 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1049 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1051 2014-09-09 Doug Evans <xdje42@gmail.com>
1054 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1055 last parameter to pkg-config, not first.
1056 * configure.ac: Pass --with-guile provided pkg-config path to
1057 GDB_GUILE_PROGRAM_NAMES.
1058 * configure: Regenerate.
1060 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1062 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1065 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1067 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1068 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1069 the list of sections determining GDB_OSABI_IRIX.
1071 2014-09-09 James Hogan <james.hogan@imgtec.com>
1073 * MAINTAINERS (Write After Approval): Add "James Hogan".
1075 2014-09-09 James Hogan <james.hogan@imgtec.com>
1077 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1079 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1081 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1083 2014-09-08 Doug Evans <xdje42@gmail.com>
1086 * guile.c: #include <signal.h>.
1087 (_initialize_guile): Block SIGCHLD while initializing Guile.
1089 Replaces the following, which is reverted.
1091 2014-07-26 Doug Evans <xdje42@gmail.com>
1094 * configure.ac: Add check for header gc/gc.h.
1095 Add check for function setenv.
1096 * configure: Regenerate.
1097 * config.in: Regenerate.
1098 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1100 2014-09-08 Doug Evans <xdje42@gmail.com>
1102 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1103 with named constant. Fix style of pointer comparison.
1104 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1106 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1109 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1110 decide whether we display the command on "show user".
1111 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1112 printing command name.
1113 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1114 * cli/cli-decode.c (cli_user_command_p): Create helper function
1115 to verify whether cmd_list_element is a user-defined command.
1117 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1120 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1121 Fix goto out of TRY_CATCH.
1123 2014-09-06 Doug Evans <xdje42@gmail.com>
1124 Tom Tromey <tromey@redhat.com>
1127 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1128 $_any_caller_matches.
1129 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1130 * python/lib/gdb/function/caller_is.py: New file.
1132 2014-09-06 Doug Evans <xdje42@gmail.com>
1134 * infcmd.c (program_info): Fix typo.
1136 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1139 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1140 'number'. New variable 'has_digit'. Rewrite code to deal with
1141 subexpressions on SDT probes.
1143 2014-09-04 Pedro Alves <palves@redhat.com>
1145 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1146 the input is only one character long.
1148 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1151 * f-valprint.c (f_val_print): Specify the correct print option to
1152 use when printing integer values.
1154 2014-09-04 Gary Benson <gbenson@redhat.com>
1156 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1157 Remove code to cope with LWPs wrapped as PIDs.
1158 Add assertions to ensure no wrapped LWPs are passed.
1160 2014-09-04 Pedro Alves <palves@redhat.com>
1162 * value.c (value_ranges_copy_adjusted): New function, factored out
1164 (value_contents_copy_raw): ... here.
1165 (unpack_value_bits_as_long_1): Rename back to ...
1166 (unpack_bits_as_long): ... this. Remove 'original_value' and
1167 'result' parameters. Change return type to LONGEST.
1168 (unpack_value_bits_as_long): Delete.
1169 (unpack_value_field_as_long_1): Delete.
1170 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1171 (unpack_value_bitfield): New function.
1172 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1173 (value_fetch_lazy): Use unpack_value_bitfield.
1174 * value.h (unpack_value_bits_as_long): Delete declaration.
1176 2014-09-03 Sasha Smundak <asmundak@google.com>
1178 * python/py-frame.c (frapy_read_register): New function.
1180 2014-09-03 James Hogan <james.hogan@imgtec.com>
1182 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1183 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1185 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1188 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1190 (add_cmd): Set "completer_handle_brkchars" to NULL.
1191 * cli/cli-decode.h (struct cmd_list_element)
1192 <completer_handle_brkchars>: New field.
1193 * command.h (completer_ftype_void): New typedef.
1194 (set_cmd_completer_handle_brkchars): New prototype.
1195 * completer.c (set_gdb_completion_word_break_characters): New
1197 (complete_line_internal): Call "completer_handle_brkchars"
1198 callback from command.
1199 * completer.h: Include "command.h".
1200 (set_gdb_completion_word_break_characters): New prototype.
1201 * python/py-cmd.c (cmdpy_completer_helper): New function.
1202 (cmdpy_completer_handle_brkchars): New function.
1203 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1204 (cmdpy_init): Set completer_handle_brkchars to
1205 cmdpy_completer_handle_brkchars.
1207 2014-09-03 Gary Benson <gbenson@redhat.com>
1209 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1210 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1211 Loop conditions changed to equivalent form.
1212 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1213 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1214 ALL_DEBUG_ADDRESS_REGISTERS.
1216 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1218 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1221 2014-09-02 Doug Evans <dje@google.com>
1223 * typeprint.c (find_global_typedef): Fix comment.
1225 2014-09-02 Gary Benson <gbenson@redhat.com>
1227 * i386-nat.h: Renamed as...
1228 * x86-nat.h: New file. All type, function and variable name
1229 prefixes changed from "i386_" to "x86_". All references updated.
1230 * i386-nat.c: Renamed as...
1231 * x86-nat.c: New file. All type, function and variable name
1232 prefixes changed from "i386_" to "x86_". All references updated.
1233 * common/i386-xstate.h: Renamed as...
1234 * common/x86-xstate.h: New file. All type, function and variable
1235 name prefixes changed from "i386_" to "x86_". All references
1237 * nat/i386-cpuid.h: Renamed as...
1238 * nat/x86-cpuid.h: New file. All type, function and variable name
1239 prefixes changed from "i386_" to "x86_". All references updated.
1240 * nat/i386-gcc-cpuid.h: Renamed as...
1241 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1242 name prefixes changed from "i386_" to "x86_". All references
1244 * nat/i386-dregs.h: Renamed as...
1245 * nat/x86-dregs.h: New file. All type, function and variable name
1246 prefixes changed from "i386_" to "x86_". All references updated.
1247 * nat/i386-dregs.c: Renamed as...
1248 * nat/x86-dregs.c: New file. All type, function and variable name
1249 prefixes changed from "i386_" to "x86_". All references updated.
1251 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1253 * varobj.c (_initialize_varobj): Move to the end of file.
1255 2014-08-29 Gary Benson <gbenson@redhat.com>
1257 * common/common-exceptions.h: New file.
1258 * common/common-exceptions.c: Likewise.
1259 * Makefile.in (SFILES): Add common/common-exceptions.c.
1260 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1261 (COMMON_OBS): Add common-exceptions.o.
1262 (common-exceptions.o): New rule.
1263 * exceptions.h (common-exceptions.h): Include.
1264 (gdb_setjmp.h): Do not include.
1265 (return_reason): Moved to common-exceptions.h.
1266 (enum return_reason): Likewise.
1267 (RETURN_MASK): Likewise.
1268 (typedef return_mask): Likewise.
1269 (enum errors): Likewise.
1270 (struct gdb_exception): Likewise.
1271 (exceptions_state_mc_init): Likewise.
1272 (exceptions_state_mc_action_iter): Likewise.
1273 (exceptions_state_mc_action_iter_1): Likewise.
1274 (TRY_CATCH): Likewise.
1275 (throw_exception): Likewise.
1276 (throw_verror): Likewise.
1277 (throw_vquit): Likewise.
1278 (throw_error): Likewise.
1279 (throw_quit): Likewise.
1280 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1281 (enum catcher_action): Likewise.
1282 (struct catcher): Likewise.
1283 (current_catcher): Likewise.
1284 (catcher_list_size): Likewise.
1285 (exceptions_state_mc_init): Likewise.
1286 (catcher_pop): Likewise.
1287 (exceptions_state_mc): Likewise.
1288 (exceptions_state_mc_action_iter): Likewise.
1289 (exceptions_state_mc_action_iter_1): Likewise.
1290 (throw_exception): Likewise.
1291 (exception_messages): Likewise.
1292 (exception_messages_size): Likewise.
1293 (throw_it): Likewise.
1294 (throw_verror): Likewise.
1295 (throw_vquit): Likewise.
1296 (throw_error): Likewise.
1297 (throw_quit): Likewise.
1298 (prepare_to_throw_exception): New function.
1300 2014-08-29 Gary Benson <gbenson@redhat.com>
1302 * common/gdb_setjmp.h: New file.
1303 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1304 * configure.ac: Move sigsetjmp check...
1305 * common/common.m4: ...here.
1306 * configure: Regenerate.
1307 * cp-support.c (SIGJMP_BUF): Delete.
1308 (SIGSETJMP): Likewise.
1309 (SIGLONGJMP): Likewise.
1310 * exceptions.h (gdb_setjmp.h): Include.
1311 (setjmp.h): Do not include.
1312 (EXCEPTIONS_SIGJMP_BUF): Delete.
1313 (EXCEPTIONS_SIGSETJMP): Likewise.
1314 (EXCEPTIONS_SIGLONGJMP): Likewise.
1315 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1317 * exceptions.c: Likewise.
1319 2014-08-29 Gary Benson <gbenson@redhat.com>
1321 * cleanups.h: Moved to...
1322 * common/cleanups.h: New file.
1323 * cleanups.c: Moved to...
1324 * common/cleanups.c: New file. Include common-defs.h and
1325 cleanups.h. Do not include defs.h.
1326 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1327 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1328 (cleanups.o): New rule.
1330 2014-08-29 Gary Benson <gbenson@redhat.com>
1332 * common/errors.h (internal_warning): New declaration.
1333 (internal_vwarning): Likewise.
1334 * common/errors.c (internal_warning): New function.
1335 * utils.h (internal_warning): Don't declare.
1336 (internal_vwarning): Likewise.
1337 * utils.c (internal_warning): Removed.
1339 2014-08-29 Gary Benson <gbenson@redhat.com>
1341 * main.c (captured_main): Use warning during startup.
1342 Prefix startup warning messages with command name.
1344 2014-08-29 Gary Benson <gbenson@redhat.com>
1346 * main.c (captured_main): Handle usage errors with error.
1348 2014-08-29 Gary Benson <gbenson@redhat.com>
1350 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1351 exit pair with a call to error. Wrap the message with _().
1353 2014-08-29 Gary Benson <gbenson@redhat.com>
1355 * main.c (captured_main): Replace a fprintf/exit
1356 pair with a call to error. Wrap the message with _().
1358 2014-08-29 Gary Benson <gbenson@redhat.com>
1360 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1361 pairs with calls to error. Wrap the message with _().
1363 2014-08-29 Gary Benson <gbenson@redhat.com>
1365 * utils.c (vwarning): Protect calls to target_terminal_ours
1368 2014-08-29 Gary Benson <gbenson@redhat.com>
1370 * exceptions.c (print_flush): Protect calls to
1371 target_terminal_ours and wrap_here.
1373 2014-08-29 Gary Benson <gbenson@redhat.com>
1375 * utils.h (filtered_printing_initialized): New declaration.
1376 * utils.c (abort_with_message): New function.
1377 (internal_vproblem): Use abort_with_message for first level
1378 recursive internal problems, and if gdb_stderr is not set up.
1379 Protect calls to target_terminal_ours, begin_line and query.
1381 2014-08-28 Doug Evans <dje@google.com>
1383 * symtab.c (in_prologue): Move definition to better spot.
1384 (skip_prologue_using_sal): Ditto.
1386 2014-08-28 Doug Evans <dje@google.com>
1388 * symtab.c (find_function_start_sal): Move definition to better spot.
1390 2014-08-28 Yao Qi <yao@codesourcery.com>
1392 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1393 found_stack_adjust in forward scan. Remove condition check
1394 on found_stack_adjust which is always true. Indent the code.
1396 2014-08-28 Yao Qi <yao@codesourcery.com>
1398 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1399 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1400 (dwarf_decode_lines): Remove argument
1401 want_line_info. Remove condition check on want_line_info.
1404 2014-08-27 Doug Evans <dje@google.com>
1406 * dwarf2read.c (dwarf_record_line): Fix typo.
1408 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1410 * target.h (struct target_ops::to_terminal_save_ours): Remove
1412 (target_terminal_save_ours): Remove macro.
1413 * target-delegates.c: Regenerate.
1414 * inf-child.c (inf_child_target): Don't set the nonexistent
1415 field to_terminal_save_ours.
1416 * inferior.h (child_terminal_save_ours): Remove declaration.
1417 * terminal.h (gdb_save_tty_state): New declaration.
1418 * inflow.c (child_terminal_save_ours): Rename to ...
1419 (gdb_save_tty_state): ... this.
1420 * tui/tui.c: Include terminal.h.
1421 (tui_enable): Use gdb_save_tty_state instead of
1422 target_terminal_save_ours.
1423 (tui_disable): Likewise.
1425 2014-08-25 Doug Evans <dje@google.com>
1427 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1428 Pass NULL instead of 0 for context pointer.
1430 2014-08-25 Yao Qi <yao@codesourcery.com>
1432 * dwarf2read.c: Fix grammatical error.
1434 2014-08-24 Yao Qi <yao@codesourcery.com>
1436 * dwarf2read.c (scan_partial_symbols): Update comments.
1437 Rename argument 'need_pc' with 'set_addrmap'.
1438 (add_partial_namespace): Rename argument 'need_pc' with
1440 (add_partial_module): Likewise.
1441 (add_partial_subprogram): Likewise. Update comments.
1442 (dwarf2_name): Fix typo.
1444 2014-08-22 Doug Evans <dje@google.com>
1447 * dwarf2read.c (dwarf_record_line_p): New function.
1448 (dwarf_decode_lines_1): Ignore subsequent line number entries
1449 for the same line if any entry had a non-zero discriminator.
1451 2014-08-22 Doug Evans <dje@google.com>
1453 * buildsym.h (record_line_ftype): New typedef.
1454 (record_line): Use it.
1455 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1456 (dwarf_decode_lines_1): Call them.
1458 2014-08-22 Yao Qi <yao@codesourcery.com>
1460 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1461 (ctf_end): Remove code.
1463 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1465 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1466 (linux_make_corefile_notes): call update_thread_list, protected against
1469 2014-08-21 Pedro Alves <palves@redhat.com>
1471 * infcmd.c (attach_command): Remove comment.
1473 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1475 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1476 unsigned LONGEST to ULONGEST.
1478 2014-08-20 Pedro Alves <palves@redhat.com>
1480 * Makefile.in (check-read1): New rule.
1482 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1484 * value.c (value_from_contents_and_address): Strip resolved_type's
1485 typedef layers before checking its TYPE_DATA_LOCATION.
1487 2014-08-20 Pedro Alves <palves@redhat.com>
1489 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1491 2014-08-20 Yao Qi <yao@codesourcery.com>
1493 * amd64-tdep.c (amd64_classify): Add a blank line after the
1494 example. Move "*/" to a new line.
1495 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1496 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1497 * dwarf2read.c (psymtab_include_file_name): Likewise.
1499 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1500 Pedro Alves <palves@redhat.com>
1504 * ada-lang.c (coerce_unspec_val_to_type): Use
1505 value_contents_copy_raw.
1506 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1507 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1508 * cp-valprint.c (cp_print_value_fields): Let the common printing
1509 code handle optimized out values.
1510 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1511 * d-valprint.c (dynamic_array_type): Use
1512 value_bits_any_optimized_out.
1513 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1514 check_any_valid fields.
1515 (check_pieced_value_bits): Delete and inline ...
1516 (check_pieced_synthetic_pointer): ... here.
1517 (check_pieced_value_validity): Delete.
1518 (check_pieced_value_invalid): Delete.
1519 (pieced_value_funcs): Remove check_validity and check_any_valid
1521 (read_pieced_value): Use mark_value_bits_optimized_out.
1522 (write_pieced_value): Switch to use
1523 mark_value_bytes_optimized_out.
1524 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1525 of assuming the whole value is optimized out.
1526 * findvar.c (read_frame_register_value): Remove special handling
1527 of optimized out registers.
1528 (value_from_register): Use mark_value_bytes_optimized_out.
1529 * frame-unwind.c (frame_unwind_got_optimized): Use
1530 mark_value_bytes_optimized_out.
1531 * jv-valprint.c (java_value_print): Adjust.
1532 (java_print_value_fields): Let the common printing code handle
1533 optimized out values.
1534 * mips-tdep.c (mips_print_register): Remove special handling of
1535 optimized out registers.
1536 * opencl-lang.c (lval_func_check_validity): Delete.
1537 (lval_func_check_any_valid): Delete.
1538 (opencl_value_funcs): Remove check_validity and check_any_valid
1540 * p-valprint.c (pascal_object_print_value_fields): Let the common
1541 printing code handle optimized out values.
1542 * stack.c (read_frame_arg): Remove special handling of optimized
1543 out values. Fetch both VAL and ENTRYVAL before comparing
1544 contents. Adjust to value_available_contents_eq rename.
1545 * valprint.c (valprint_check_validity)
1546 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1547 (val_print_array_elements): Adjust.
1548 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1549 (value_bits_any_optimized_out): New function.
1550 (value_entirely_covered_by_range_vector): New function, factored
1551 out from value_entirely_unavailable.
1552 (value_entirely_unavailable): Reimplement.
1553 (value_entirely_optimized_out): New function.
1554 (insert_into_bit_range_vector): New function, factored out from
1555 mark_value_bits_unavailable.
1556 (mark_value_bits_unavailable): Reimplement.
1557 (struct ranges_and_idx): New struct.
1558 (find_first_range_overlap_and_match): New function, factored out
1559 from value_available_contents_bits_eq.
1560 (value_available_contents_bits_eq): Rename to ...
1561 (value_contents_bits_eq): ... this. Check both unavailable
1562 contents and optimized out contents.
1563 (value_available_contents_eq): Rename to ...
1564 (value_contents_eq): ... this.
1565 (allocate_value_lazy): Remove reference to the old optimized_out
1567 (allocate_optimized_out_value): Use
1568 mark_value_bytes_optimized_out.
1569 (require_not_optimized_out): Adjust to check whether the
1570 optimized_out vec is empty.
1571 (ranges_copy_adjusted): New function, factored out from
1572 value_contents_copy_raw.
1573 (value_contents_copy_raw): Also copy the optimized out ranges.
1574 Assert the destination ranges aren't optimized out.
1575 (value_contents_copy): Update comment, remove call to
1576 require_not_optimized_out.
1577 (value_contents_equal): Adjust to check whether the optimized_out
1579 (set_value_optimized_out, value_optimized_out_const): Delete.
1580 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1582 (value_entirely_optimized_out, value_bits_valid): Delete.
1583 (value_copy): Take a VEC copy of the 'optimized_out' field.
1584 (value_primitive_field): Remove special handling of optimized out.
1585 (value_fetch_lazy): Assert that lazy values have no unavailable
1586 regions. Use value_bits_any_optimized_out. Remove some special
1587 handling for optimized out values.
1588 * value.h: Add intro comment about <optimized out> and
1590 (struct lval_funcs): Remove check_validity and check_any_valid
1592 (set_value_optimized_out, value_optimized_out_const): Remove.
1593 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1595 (value_bits_any_optimized_out): New declaration.
1596 (value_bits_valid): Delete declaration.
1597 (value_available_contents_eq): Rename to ...
1598 (value_contents_eq): ... this, and extend comments.
1600 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1602 Fix -fsanitize=address on unreadable inferior strings.
1603 * valprint.c (val_print_string): Fix access before BUFFER.
1605 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1607 * target.c (target_struct_size): Remove.
1608 (target_struct_allocsize): Remove.
1609 (DEFAULT_ALLOCSIZE): Remove.
1610 (target_ops_p): New typedef.
1611 (DEF_VEC_P (target_ops_p)): New vector type.
1612 (target_structs): Change type to VEC (target_ops_p).
1613 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1614 (find_default_run_target): Rewrite for loop following changes to
1617 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1619 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1620 Adjust code accordingly. Adjust function description comment.
1622 2014-08-19 Yao Qi <yao@codesourcery.com>
1624 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1627 2014-08-19 Alan Modra <amodra@gmail.com>
1629 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1630 * config.in: Regenerate.
1631 * configure: Regenerate.
1633 2014-08-19 Tom Tromey <tromey@redhat.com>
1634 Gary Benson <gbenson@redhat.com>
1636 * common/common-debug.h: New file.
1637 * common/common-debug.c: Likewise.
1638 * debug.c: Likewise.
1639 * Makefile.in (SFILES): Add common/common-debug.c.
1640 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1641 (COMMON_OBS): Add common-debug.o and debug.o.
1642 (common-debug.o): New rule.
1643 * common/common-defs.h: Include common-debug.h.
1644 * common/agent.c (debug_agent_printf): New function.
1645 (DEBUG_AGENT): Redefine.
1646 * nat/i386-dregs.c (debug_printf): Undefine.
1648 2014-08-19 Gary Benson <gbenson@redhat.com>
1650 * common/common-defs.h: Include print-utils.h.
1651 * utils.h: Do not include print-utils.h.
1653 2014-08-19 Tom Tromey <tromey@redhat.com>
1654 Gary Benson <gbenson@redhat.com>
1656 * common/common-types.h: New file.
1657 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1658 * common/common-defs.h: Include common-types.h.
1659 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1662 2014-08-19 Tom Tromey <tromey@redhat.com>
1663 Gary Benson <gbenson@redhat.com>
1665 * common/errors.h: New file.
1666 * common/errors.c: Likewise.
1667 * Makefile.in (SFILES): Add common/errors.c.
1668 (HFILES_NO_SRCDIR): Add common/errors.h.
1669 (COMMON_OBS): Add errors.o.
1670 (errors.o): New rule.
1671 * common/common-defs.h: Include errors.h.
1672 * utils.h (perror_with_name, error, verror, warning, vwarning):
1674 * common/common-utils.h: (malloc_failure, internal_error):
1677 2014-08-19 Gary Benson <gbenson@redhat.com>
1679 * utils.c (internal_vproblem): Always print the message.
1681 2014-08-18 Doug Evans <dje@google.com>
1683 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1685 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1687 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1688 Return 0 if TYPE is dynamic.
1689 (print_range): Add handling of dynamic ranges.
1691 2014-08-18 Keven Boell <keven.boell@intel.com>
1692 Joel Brobecker <brobecker@adacore.com>
1694 * gdbtypes.h (struct main_type): Add field "data_location".
1695 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1696 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1697 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1698 a dynamic data location.
1699 (resolve_dynamic_type): Add DW_AT_data_location handling.
1700 (copy_recursive, copy_type): Copy the data_location information
1702 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1703 * value.c (value_from_contents_and_address): Add
1704 DW_AT_data_location handling.
1706 2014-08-18 Keven Boell <keven.boell@intel.com>
1707 Joel Brobecker <brobecker@adacore.com>
1709 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1710 field "get_object_address".
1711 * dwarf2expr.c (execute_stack_op): Add handling for
1712 DW_OP_push_object_address.
1713 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1714 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1715 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1716 (dwarf_expr_get_obj_addr): New function.
1717 (dwarf_expr_ctx_funcs): Add get_object_address field.
1718 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1719 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1720 (dwarf2_evaluate_property): Add parameter "address". Use it.
1721 (needs_get_obj_addr): New function.
1722 (needs_frame_ctx_funcs): Add get_object_address field.
1723 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1724 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1725 (resolve_dynamic_array): Likewise.
1727 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1729 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1730 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1731 fixed value for records and unions for which some GNAT encodings
1734 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1736 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1737 rewrite to avoid "else if" and "else" constructs. Should be
1738 a no-op in practice.
1740 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1742 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1745 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1748 * eval.c: Update all calls to find_overload_match.
1749 * valarith.c: Likewise.
1750 (value_user_defined_cpp_op, value_user_defined_op): New
1751 argument NOSIDE. Update all callers.
1752 * valops.c (find_overload_match): New argument NOSIDE.
1753 * value.h (find_overload_match): Update signature.
1755 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1757 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1758 'items' methods instead of 'iteritems' method on dictionaries.
1760 2014-08-15 Doug Evans <dje@google.com>
1762 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1765 2014-08-15 Doug Evans <dje@google.com>
1767 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1769 2014-08-15 Doug Evans <dje@google.com>
1771 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1773 2014-08-15 Doug Evans <dje@google.com>
1775 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1778 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1780 * dcache.h: Include target.h, to avoid compile time warnings.
1782 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1784 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1785 frame_info" partial declaration.
1786 * gdbarch.h: Regenerate.
1788 2014-08-15 Yao Qi <yao@codesourcery.com>
1790 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1791 Add parameter 'decode_for_pst_p'. Callers update.
1793 2014-08-13 Yao Qi <yao@codesourcery.com>
1796 * configure.ac: Use local variable 'pos'.
1797 * configure: Regenerated.
1799 2014-08-11 Doug Evans <dje@google.com>
1801 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1802 message, it is redundant with "Reading symbols from ..." message.
1804 2014-08-10 Doug Evans <xdje42@gmail.com>
1806 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1808 2014-08-09 Yao Qi <yao@codesourcery.com>
1811 * remote.c (remote_xfer_partial): Remove dead code.
1813 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1815 * ia64-linux-tdep.c: Include "regset.h".
1816 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1817 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1818 (ia64_linux_supply_fpregset): New function.
1819 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1820 (ia64_linux_regset_from_core_section): New function.
1821 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1824 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1826 * m68klinux-tdep.c: Include "regset.h".
1827 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1828 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1829 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1830 (m68k_linux_regset_from_core_section): New function.
1831 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1834 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1836 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1837 function. Move logic to...
1838 (tilegx_linux_regmap): ... this new register map.
1839 (tilegx_linux_regset): Refer to register map, replace supply
1840 method by regcache_supply_regset, and add collect method.
1841 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1842 TILEGX_FIRST_EASY_REGNUM.
1844 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1846 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1847 that calls regcache_supply_regset and handles the EPC register
1848 separately. Move main logic to...
1849 (score7_linux_gregmap): ... this new register map.
1850 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1851 (score7_linux_gregset): Refer to register map. Add collect method.
1852 (score7_linux_regset_from_core_section): Replace
1853 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1854 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1855 (struct regset): Delete unused forward declaraction.
1856 (struct pt_regs): Delete structure definition.
1857 (elf_gregset_t): Delete typedef.
1859 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1861 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1862 (nios2_core_regset): Add collect method.
1864 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1866 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1867 platform-independent and don't write to read-only input buffer.
1868 (m32r_linux_collect_gregset): New function.
1869 (m32r_linux_gregset): Add collect method.
1871 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1873 * hppa-linux-tdep.c (greg_map): Rename to...
1874 (hppa_linux_gregmap): ... this. Also convert to
1875 regcache_map_entry format.
1876 (hppa_linux_supply_regset): Delete function.
1877 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1878 (hppa_linux_fpregmap): ... this new register map.
1879 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1880 register map, replace supply method by regcache_supply_regset, and
1881 add collect method regcache_collect_regset.
1883 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1885 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1886 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1887 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1888 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1889 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1890 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1891 (frv_linux_supply_gregset): Replace main logic by call to
1892 regcache_supply_regset, but keep clearing gr32-gr63.
1893 (frv_linux_supply_fpregset): Delete function.
1894 (frv_linux_gregset): Refer to appropriate register map and add
1895 regcache_collect_regset as the collect method.
1896 (frv_linux_fpregset): Likewise. Also exchange the supply method
1897 by regcache_supply_regset.
1899 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1901 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1902 by call to alpha_supply_int_regs.
1903 (alpha_linux_collect_gregset): New function.
1904 (alpha_linux_supply_fpregset): Replace logic by call to
1905 alpha_supply_fp_regs.
1906 (alpha_linux_collect_fpregset): New function.
1907 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1909 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1911 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1912 by call to regcache_collect_regset.
1913 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1914 instead of aarch64_linux_supply_gregset/_fpregset.
1915 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1916 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1917 header file instead.
1918 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1919 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1920 functions. Move logic to ...
1921 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1923 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1924 refer to new register maps, replace *_regset_from_core by
1925 regcache_supply_regset, and also use regcache_collect_regset.
1926 * aarch64-linux-tdep.h: Include "regset.h".
1927 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1929 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1930 macros, moved from C source file.
1931 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1932 variable declarations.
1934 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1936 * s390-linux-nat.c: Include "regset.h".
1937 (regmap_gregset): Delete macro.
1938 (s390_64_regmap_gregset): New register map for
1939 regcache_supply/_collect_regset.
1940 (s390_64_gregset): New regset.
1941 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1942 (regmap_fpregset): Delete macro.
1943 (s390_native_supply, s390_native_collect): Delete functions.
1944 (supply_gregset, fill_gregset): Replace s390-specific regmap
1945 handling by a call to regcache_supply/_collect_regset.
1946 (supply_fpregset, fill_fpregset): Call regcache_supply/
1947 _collect_regset instead of s390_native_supply/_collect.
1948 (fetch_regset, store_regset): Likewise. Also change the last
1949 parameter to a regset instead of a regmap.
1950 (s390_linux_fetch_inferior_registers)
1951 (390_linux_store_inferior_registers): Adjust last parameter in
1952 calls to fetch_regset and store_regset.
1953 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1954 (s390_gregmap): ... this. Also make static const and convert to
1955 regcache_map_entry format.
1956 (s390x_regmap_gregset): Delete.
1957 (s390_regmap_fpregset): Rename to...
1958 (s390_fpregmap): ... this. Make static const and convert to
1959 regcache_map_entry format.
1960 (s390_regmap_upper, s390_regmap_last_break)
1961 (s390x_regmap_last_break, s390_regmap_system_call)
1962 (s390_regmap_tdb): Likewise.
1963 (s390_supply_regset, s390_collect_regset): Remove functions.
1964 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1966 (s390_gregset, s390_fpregset, s390_upper_regset)
1967 (s390_last_break_regset, s390x_last_break_regset)
1968 (s390_system_call_regset, s390_tdb_regset): Make global and
1969 replace s390_supply/_collect_regset by regcache_supply/
1971 (s390x_gregset): Delete.
1972 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1973 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1974 (s390_regmap_fpregset, s390_regmap_last_break)
1975 (s390x_regmap_last_break, s390_regmap_system_call)
1976 (s390_regmap_tdb): Delete global variable declarations.
1977 (s390_gregset, s390_fpregset, s390_last_break_regset)
1978 (s390x_last_break_regset, s390_system_call_regset)
1979 (s390_tdb_regset): New global variable declarations.
1981 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1983 * regcache.c: Include "regset.h".
1984 (regcache_transfer_regset): New local function.
1985 (regcache_supply_regset, regcache_collect_regset): New functions.
1986 * regcache.h (struct regcache_map_entry): New structure.
1987 (REGCACHE_MAP_SKIP): New enum value.
1988 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1990 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1992 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1993 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1994 (ppc_linux_collect_gregset ): Likewise.
1995 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1996 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1997 (ppc_collect_vrregset): Likewise.
1998 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2001 2014-08-07 Yao Qi <yao@codesourcery.com>
2003 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2004 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2005 * remote.c (remote_read_bytes): Likewise.
2007 2014-08-07 Yao Qi <yao@codesourcery.com>
2009 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2011 2014-08-07 Yao Qi <yao@codesourcery.com>
2014 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2015 TARGET_XFER_OK instead of 0.
2017 2014-08-07 Gary Benson <gbenson@redhat.com>
2019 * common/common-defs.h: Include errno.h.
2020 * defs.h: Do not include errno.h.
2021 * ada-typeprint.c: Likewise.
2022 * c-typeprint.c: Likewise.
2023 * core-regset.c: Likewise.
2024 * corefile.c: Likewise.
2025 * corelow.c: Likewise.
2026 * event-loop.c: Likewise.
2027 * f-typeprint.c: Likewise.
2028 * gnu-nat.c: Likewise.
2029 * go32-nat.c: Likewise.
2030 * i386gnu-nat.c: Likewise.
2031 * m2-typeprint.c: Likewise.
2032 * nat/linux-btrace.c: Likewise.
2033 * p-typeprint.c: Likewise.
2034 * procfs.c: Likewise.
2035 * remote-sim.c: Likewise.
2036 * rs6000-nat.c: Likewise.
2037 * target.c: Likewise.
2038 * typeprint.c: Likewise.
2039 * ui-file.c: Likewise.
2040 * valops.c: Likewise.
2041 * valprint.c: Likewise.
2043 2014-08-07 Gary Benson <gbenson@redhat.com>
2045 * common/common-defs.h: Include string.h.
2046 * aarch64-tdep.c: Do not include string.h.
2047 * ada-exp.y: Likewise.
2048 * ada-lang.c: Likewise.
2049 * ada-lex.l: Likewise.
2050 * ada-typeprint.c: Likewise.
2051 * ada-valprint.c: Likewise.
2052 * aix-thread.c: Likewise.
2053 * alpha-linux-tdep.c: Likewise.
2054 * alpha-mdebug-tdep.c: Likewise.
2055 * alpha-nat.c: Likewise.
2056 * alpha-osf1-tdep.c: Likewise.
2057 * alpha-tdep.c: Likewise.
2058 * alphanbsd-tdep.c: Likewise.
2059 * amd64-dicos-tdep.c: Likewise.
2060 * amd64-linux-tdep.c: Likewise.
2061 * amd64-nat.c: Likewise.
2062 * amd64-sol2-tdep.c: Likewise.
2063 * amd64fbsd-tdep.c: Likewise.
2064 * amd64obsd-tdep.c: Likewise.
2065 * arch-utils.c: Likewise.
2066 * arm-linux-nat.c: Likewise.
2067 * arm-linux-tdep.c: Likewise.
2068 * arm-tdep.c: Likewise.
2069 * arm-wince-tdep.c: Likewise.
2070 * armbsd-tdep.c: Likewise.
2071 * armnbsd-nat.c: Likewise.
2072 * armnbsd-tdep.c: Likewise.
2073 * armobsd-tdep.c: Likewise.
2074 * avr-tdep.c: Likewise.
2075 * ax-gdb.c: Likewise.
2076 * ax-general.c: Likewise.
2077 * bcache.c: Likewise.
2078 * bfin-tdep.c: Likewise.
2079 * breakpoint.c: Likewise.
2080 * build-id.c: Likewise.
2081 * buildsym.c: Likewise.
2082 * c-exp.y: Likewise.
2083 * c-lang.c: Likewise.
2084 * c-typeprint.c: Likewise.
2085 * c-valprint.c: Likewise.
2086 * charset.c: Likewise.
2087 * cli-out.c: Likewise.
2088 * cli/cli-cmds.c: Likewise.
2089 * cli/cli-decode.c: Likewise.
2090 * cli/cli-dump.c: Likewise.
2091 * cli/cli-interp.c: Likewise.
2092 * cli/cli-logging.c: Likewise.
2093 * cli/cli-script.c: Likewise.
2094 * cli/cli-setshow.c: Likewise.
2095 * cli/cli-utils.c: Likewise.
2096 * coffread.c: Likewise.
2097 * common/agent.c: Likewise.
2098 * common/buffer.c: Likewise.
2099 * common/buffer.h: Likewise.
2100 * common/common-utils.c: Likewise.
2101 * common/filestuff.c: Likewise.
2102 * common/filestuff.c: Likewise.
2103 * common/format.c: Likewise.
2104 * common/print-utils.c: Likewise.
2105 * common/rsp-low.c: Likewise.
2106 * common/signals.c: Likewise.
2107 * common/vec.h: Likewise.
2108 * common/xml-utils.c: Likewise.
2109 * core-regset.c: Likewise.
2110 * corefile.c: Likewise.
2111 * corelow.c: Likewise.
2112 * cp-abi.c: Likewise.
2113 * cp-name-parser.y: Likewise.
2114 * cp-support.c: Likewise.
2115 * cp-valprint.c: Likewise.
2116 * cris-tdep.c: Likewise.
2117 * d-exp.y: Likewise.
2118 * darwin-nat.c: Likewise.
2119 * dbxread.c: Likewise.
2120 * dcache.c: Likewise.
2121 * demangle.c: Likewise.
2122 * dicos-tdep.c: Likewise.
2123 * disasm.c: Likewise.
2124 * doublest.c: Likewise.
2125 * dsrec.c: Likewise.
2126 * dummy-frame.c: Likewise.
2127 * dwarf2-frame.c: Likewise.
2128 * dwarf2loc.c: Likewise.
2129 * dwarf2read.c: Likewise.
2130 * elfread.c: Likewise.
2131 * environ.c: Likewise.
2133 * event-loop.c: Likewise.
2134 * exceptions.c: Likewise.
2136 * expprint.c: Likewise.
2137 * f-exp.y: Likewise.
2138 * f-lang.c: Likewise.
2139 * f-typeprint.c: Likewise.
2140 * f-valprint.c: Likewise.
2141 * fbsd-nat.c: Likewise.
2142 * findcmd.c: Likewise.
2143 * findvar.c: Likewise.
2144 * fork-child.c: Likewise.
2145 * frame.c: Likewise.
2146 * frv-linux-tdep.c: Likewise.
2147 * frv-tdep.c: Likewise.
2149 * gdb_bfd.c: Likewise.
2150 * gdbarch.c: Likewise.
2151 * gdbarch.sh: Likewise.
2152 * gdbtypes.c: Likewise.
2153 * gnu-nat.c: Likewise.
2154 * gnu-v2-abi.c: Likewise.
2155 * gnu-v3-abi.c: Likewise.
2156 * go-exp.y: Likewise.
2157 * go-lang.c: Likewise.
2158 * go32-nat.c: Likewise.
2159 * guile/guile.c: Likewise.
2160 * guile/scm-auto-load.c: Likewise.
2161 * hppa-hpux-tdep.c: Likewise.
2162 * hppa-linux-nat.c: Likewise.
2163 * hppanbsd-tdep.c: Likewise.
2164 * hppaobsd-tdep.c: Likewise.
2165 * i386-cygwin-tdep.c: Likewise.
2166 * i386-dicos-tdep.c: Likewise.
2167 * i386-linux-tdep.c: Likewise.
2168 * i386-nto-tdep.c: Likewise.
2169 * i386-sol2-tdep.c: Likewise.
2170 * i386-tdep.c: Likewise.
2171 * i386bsd-tdep.c: Likewise.
2172 * i386gnu-nat.c: Likewise.
2173 * i386nbsd-tdep.c: Likewise.
2174 * i386obsd-tdep.c: Likewise.
2175 * i387-tdep.c: Likewise.
2176 * ia64-libunwind-tdep.c: Likewise.
2177 * ia64-linux-nat.c: Likewise.
2178 * inf-child.c: Likewise.
2179 * inf-ptrace.c: Likewise.
2180 * inf-ttrace.c: Likewise.
2181 * infcall.c: Likewise.
2182 * infcmd.c: Likewise.
2183 * inflow.c: Likewise.
2184 * infrun.c: Likewise.
2185 * interps.c: Likewise.
2186 * iq2000-tdep.c: Likewise.
2187 * irix5-nat.c: Likewise.
2188 * jv-exp.y: Likewise.
2189 * jv-lang.c: Likewise.
2190 * jv-typeprint.c: Likewise.
2191 * jv-valprint.c: Likewise.
2192 * language.c: Likewise.
2193 * linux-fork.c: Likewise.
2194 * linux-nat.c: Likewise.
2195 * lm32-tdep.c: Likewise.
2196 * m2-exp.y: Likewise.
2197 * m2-typeprint.c: Likewise.
2198 * m32c-tdep.c: Likewise.
2199 * m32r-linux-nat.c: Likewise.
2200 * m32r-linux-tdep.c: Likewise.
2201 * m32r-rom.c: Likewise.
2202 * m32r-tdep.c: Likewise.
2203 * m68hc11-tdep.c: Likewise.
2204 * m68k-tdep.c: Likewise.
2205 * m68kbsd-tdep.c: Likewise.
2206 * m68klinux-nat.c: Likewise.
2207 * m68klinux-tdep.c: Likewise.
2208 * m88k-tdep.c: Likewise.
2209 * machoread.c: Likewise.
2210 * macrocmd.c: Likewise.
2212 * mdebugread.c: Likewise.
2213 * mem-break.c: Likewise.
2214 * memattr.c: Likewise.
2215 * memory-map.c: Likewise.
2216 * mep-tdep.c: Likewise.
2217 * mi/mi-cmd-break.c: Likewise.
2218 * mi/mi-cmd-disas.c: Likewise.
2219 * mi/mi-cmd-env.c: Likewise.
2220 * mi/mi-cmd-stack.c: Likewise.
2221 * mi/mi-cmd-var.c: Likewise.
2222 * mi/mi-cmds.c: Likewise.
2223 * mi/mi-console.c: Likewise.
2224 * mi/mi-getopt.c: Likewise.
2225 * mi/mi-interp.c: Likewise.
2226 * mi/mi-main.c: Likewise.
2227 * mi/mi-parse.c: Likewise.
2228 * microblaze-rom.c: Likewise.
2229 * microblaze-tdep.c: Likewise.
2230 * mingw-hdep.c: Likewise.
2231 * minidebug.c: Likewise.
2232 * minsyms.c: Likewise.
2233 * mips-irix-tdep.c: Likewise.
2234 * mips-linux-tdep.c: Likewise.
2235 * mips-tdep.c: Likewise.
2236 * mips64obsd-tdep.c: Likewise.
2237 * mipsnbsd-tdep.c: Likewise.
2238 * mipsread.c: Likewise.
2239 * mn10300-linux-tdep.c: Likewise.
2240 * mn10300-tdep.c: Likewise.
2241 * monitor.c: Likewise.
2242 * moxie-tdep.c: Likewise.
2243 * mt-tdep.c: Likewise.
2244 * nat/linux-btrace.c: Likewise.
2245 * nat/linux-osdata.c: Likewise.
2246 * nat/linux-procfs.c: Likewise.
2247 * nat/linux-ptrace.c: Likewise.
2248 * nat/linux-waitpid.c: Likewise.
2249 * nbsd-tdep.c: Likewise.
2250 * nios2-linux-tdep.c: Likewise.
2251 * nto-procfs.c: Likewise.
2252 * nto-tdep.c: Likewise.
2253 * objc-lang.c: Likewise.
2254 * objfiles.c: Likewise.
2255 * opencl-lang.c: Likewise.
2256 * osabi.c: Likewise.
2257 * osdata.c: Likewise.
2258 * p-exp.y: Likewise.
2259 * p-lang.c: Likewise.
2260 * p-typeprint.c: Likewise.
2261 * parse.c: Likewise.
2262 * posix-hdep.c: Likewise.
2263 * ppc-linux-nat.c: Likewise.
2264 * ppc-sysv-tdep.c: Likewise.
2265 * ppcfbsd-tdep.c: Likewise.
2266 * ppcnbsd-tdep.c: Likewise.
2267 * ppcobsd-tdep.c: Likewise.
2268 * printcmd.c: Likewise.
2269 * procfs.c: Likewise.
2270 * prologue-value.c: Likewise.
2271 * python/py-auto-load.c: Likewise.
2272 * python/py-gdb-readline.c: Likewise.
2273 * ravenscar-thread.c: Likewise.
2274 * regcache.c: Likewise.
2275 * registry.c: Likewise.
2276 * remote-fileio.c: Likewise.
2277 * remote-m32r-sdi.c: Likewise.
2278 * remote-mips.c: Likewise.
2279 * remote-notif.c: Likewise.
2280 * remote-sim.c: Likewise.
2281 * remote.c: Likewise.
2282 * reverse.c: Likewise.
2283 * rs6000-aix-tdep.c: Likewise.
2284 * ser-base.c: Likewise.
2285 * ser-go32.c: Likewise.
2286 * ser-mingw.c: Likewise.
2287 * ser-pipe.c: Likewise.
2288 * ser-tcp.c: Likewise.
2289 * ser-unix.c: Likewise.
2290 * serial.c: Likewise.
2291 * sh-tdep.c: Likewise.
2292 * sh64-tdep.c: Likewise.
2293 * shnbsd-tdep.c: Likewise.
2295 * sol-thread.c: Likewise.
2296 * solib-dsbt.c: Likewise.
2297 * solib-frv.c: Likewise.
2298 * solib-osf.c: Likewise.
2299 * solib-som.c: Likewise.
2300 * solib-spu.c: Likewise.
2301 * solib-target.c: Likewise.
2302 * solib.c: Likewise.
2303 * somread.c: Likewise.
2304 * source.c: Likewise.
2305 * sparc-nat.c: Likewise.
2306 * sparc-sol2-tdep.c: Likewise.
2307 * sparc-tdep.c: Likewise.
2308 * sparc64-tdep.c: Likewise.
2309 * sparc64fbsd-tdep.c: Likewise.
2310 * sparc64nbsd-tdep.c: Likewise.
2311 * sparcnbsd-tdep.c: Likewise.
2312 * spu-linux-nat.c: Likewise.
2313 * spu-multiarch.c: Likewise.
2314 * spu-tdep.c: Likewise.
2315 * stabsread.c: Likewise.
2316 * stack.c: Likewise.
2317 * std-regs.c: Likewise.
2318 * symfile.c: Likewise.
2319 * symmisc.c: Likewise.
2320 * symtab.c: Likewise.
2321 * target.c: Likewise.
2322 * thread.c: Likewise.
2323 * tilegx-linux-nat.c: Likewise.
2324 * tilegx-tdep.c: Likewise.
2326 * tracepoint.c: Likewise.
2327 * tui/tui-command.c: Likewise.
2328 * tui/tui-data.c: Likewise.
2329 * tui/tui-disasm.c: Likewise.
2330 * tui/tui-file.c: Likewise.
2331 * tui/tui-layout.c: Likewise.
2332 * tui/tui-out.c: Likewise.
2333 * tui/tui-regs.c: Likewise.
2334 * tui/tui-source.c: Likewise.
2335 * tui/tui-stack.c: Likewise.
2336 * tui/tui-win.c: Likewise.
2337 * tui/tui-windata.c: Likewise.
2338 * tui/tui-winsource.c: Likewise.
2339 * typeprint.c: Likewise.
2340 * ui-file.c: Likewise.
2341 * ui-out.c: Likewise.
2342 * user-regs.c: Likewise.
2343 * utils.c: Likewise.
2344 * v850-tdep.c: Likewise.
2345 * valarith.c: Likewise.
2346 * valops.c: Likewise.
2347 * valprint.c: Likewise.
2348 * value.c: Likewise.
2349 * varobj.c: Likewise.
2350 * vax-tdep.c: Likewise.
2351 * vaxnbsd-tdep.c: Likewise.
2352 * vaxobsd-tdep.c: Likewise.
2353 * windows-nat.c: Likewise.
2354 * xcoffread.c: Likewise.
2355 * xml-support.c: Likewise.
2356 * xstormy16-tdep.c: Likewise.
2357 * xtensa-linux-nat.c: Likewise.
2359 2014-08-07 Gary Benson <gbenson@redhat.com>
2361 * common/common-defs.h: Include gdb_assert.h.
2362 * aarch64-tdep.c: Do not include gdb_assert.h.
2363 * addrmap.c: Likewise.
2364 * aix-thread.c: Likewise.
2365 * alpha-linux-tdep.c: Likewise.
2366 * alpha-mdebug-tdep.c: Likewise.
2367 * alphanbsd-tdep.c: Likewise.
2368 * amd64-nat.c: Likewise.
2369 * amd64-tdep.c: Likewise.
2370 * amd64bsd-nat.c: Likewise.
2371 * amd64fbsd-nat.c: Likewise.
2372 * amd64fbsd-tdep.c: Likewise.
2373 * amd64nbsd-nat.c: Likewise.
2374 * amd64nbsd-tdep.c: Likewise.
2375 * amd64obsd-nat.c: Likewise.
2376 * amd64obsd-tdep.c: Likewise.
2377 * arch-utils.c: Likewise.
2378 * arm-tdep.c: Likewise.
2379 * armbsd-tdep.c: Likewise.
2381 * bcache.c: Likewise.
2382 * bfin-tdep.c: Likewise.
2383 * blockframe.c: Likewise.
2384 * breakpoint.c: Likewise.
2385 * bsd-kvm.c: Likewise.
2386 * bsd-uthread.c: Likewise.
2387 * buildsym.c: Likewise.
2388 * c-exp.y: Likewise.
2389 * c-lang.c: Likewise.
2390 * charset.c: Likewise.
2391 * cleanups.c: Likewise.
2392 * cli-out.c: Likewise.
2393 * cli/cli-decode.c: Likewise.
2394 * cli/cli-dump.c: Likewise.
2395 * cli/cli-logging.c: Likewise.
2396 * cli/cli-script.c: Likewise.
2397 * cli/cli-utils.c: Likewise.
2398 * coffread.c: Likewise.
2399 * common/common-utils.c: Likewise.
2400 * common/queue.h: Likewise.
2401 * common/signals.c: Likewise.
2402 * common/vec.h: Likewise.
2403 * complaints.c: Likewise.
2404 * completer.c: Likewise.
2405 * corelow.c: Likewise.
2406 * cp-abi.c: Likewise.
2407 * cp-name-parser.y: Likewise.
2408 * cp-namespace.c: Likewise.
2409 * cp-support.c: Likewise.
2410 * cris-tdep.c: Likewise.
2411 * dbxread.c: Likewise.
2412 * dictionary.c: Likewise.
2413 * doublest.c: Likewise.
2414 * dsrec.c: Likewise.
2415 * dummy-frame.c: Likewise.
2416 * dwarf2-frame-tailcall.c: Likewise.
2417 * dwarf2-frame.c: Likewise.
2418 * dwarf2expr.c: Likewise.
2419 * dwarf2loc.c: Likewise.
2420 * dwarf2read.c: Likewise.
2422 * event-loop.c: Likewise.
2423 * exceptions.c: Likewise.
2424 * expprint.c: Likewise.
2425 * f-valprint.c: Likewise.
2426 * fbsd-nat.c: Likewise.
2427 * findvar.c: Likewise.
2428 * frame-unwind.c: Likewise.
2429 * frame.c: Likewise.
2430 * frv-tdep.c: Likewise.
2431 * gcore.c: Likewise.
2432 * gdb-dlfcn.c: Likewise.
2433 * gdb_bfd.c: Likewise.
2434 * gdbarch.c: Likewise.
2435 * gdbarch.sh: Likewise.
2436 * gdbtypes.c: Likewise.
2437 * gnu-nat.c: Likewise.
2438 * gnu-v3-abi.c: Likewise.
2439 * go-lang.c: Likewise.
2440 * guile/scm-exception.c: Likewise.
2441 * guile/scm-gsmob.c: Likewise.
2442 * guile/scm-lazy-string.c: Likewise.
2443 * guile/scm-math.c: Likewise.
2444 * guile/scm-pretty-print.c: Likewise.
2445 * guile/scm-safe-call.c: Likewise.
2446 * guile/scm-utils.c: Likewise.
2447 * guile/scm-value.c: Likewise.
2448 * h8300-tdep.c: Likewise.
2449 * hppa-hpux-nat.c: Likewise.
2450 * hppa-tdep.c: Likewise.
2451 * hppanbsd-tdep.c: Likewise.
2452 * hppaobsd-tdep.c: Likewise.
2453 * i386-darwin-nat.c: Likewise.
2454 * i386-darwin-tdep.c: Likewise.
2455 * i386-nto-tdep.c: Likewise.
2456 * i386-tdep.c: Likewise.
2457 * i386bsd-nat.c: Likewise.
2458 * i386fbsd-tdep.c: Likewise.
2459 * i386gnu-nat.c: Likewise.
2460 * i386nbsd-tdep.c: Likewise.
2461 * i386obsd-tdep.c: Likewise.
2462 * i387-tdep.c: Likewise.
2463 * ia64-libunwind-tdep.c: Likewise.
2464 * ia64-tdep.c: Likewise.
2465 * inf-ptrace.c: Likewise.
2466 * inf-ttrace.c: Likewise.
2467 * infcall.c: Likewise.
2468 * infcmd.c: Likewise.
2469 * infrun.c: Likewise.
2470 * inline-frame.c: Likewise.
2471 * interps.c: Likewise.
2472 * jv-lang.c: Likewise.
2473 * jv-typeprint.c: Likewise.
2474 * linux-fork.c: Likewise.
2475 * linux-nat.c: Likewise.
2476 * linux-thread-db.c: Likewise.
2477 * m32c-tdep.c: Likewise.
2478 * m32r-linux-nat.c: Likewise.
2479 * m32r-tdep.c: Likewise.
2480 * m68k-tdep.c: Likewise.
2481 * m68kbsd-nat.c: Likewise.
2482 * m68kbsd-tdep.c: Likewise.
2483 * m88k-tdep.c: Likewise.
2484 * machoread.c: Likewise.
2485 * macroexp.c: Likewise.
2486 * macrotab.c: Likewise.
2487 * maint.c: Likewise.
2488 * mdebugread.c: Likewise.
2489 * memory-map.c: Likewise.
2490 * mep-tdep.c: Likewise.
2491 * mi/mi-common.c: Likewise.
2492 * microblaze-tdep.c: Likewise.
2493 * mingw-hdep.c: Likewise.
2494 * mips-linux-nat.c: Likewise.
2495 * mips-linux-tdep.c: Likewise.
2496 * mips-tdep.c: Likewise.
2497 * mips64obsd-tdep.c: Likewise.
2498 * mipsnbsd-tdep.c: Likewise.
2499 * mn10300-linux-tdep.c: Likewise.
2500 * mn10300-tdep.c: Likewise.
2501 * moxie-tdep.c: Likewise.
2502 * mt-tdep.c: Likewise.
2503 * nat/linux-btrace.c: Likewise.
2504 * nat/linux-osdata.c: Likewise.
2505 * nat/linux-ptrace.c: Likewise.
2506 * nat/mips-linux-watch.c: Likewise.
2507 * nios2-linux-tdep.c: Likewise.
2508 * nios2-tdep.c: Likewise.
2509 * objc-lang.c: Likewise.
2510 * objfiles.c: Likewise.
2511 * obsd-nat.c: Likewise.
2512 * opencl-lang.c: Likewise.
2513 * osabi.c: Likewise.
2514 * parse.c: Likewise.
2515 * ppc-linux-nat.c: Likewise.
2516 * ppc-sysv-tdep.c: Likewise.
2517 * ppcfbsd-nat.c: Likewise.
2518 * ppcfbsd-tdep.c: Likewise.
2519 * ppcnbsd-nat.c: Likewise.
2520 * ppcnbsd-tdep.c: Likewise.
2521 * ppcobsd-nat.c: Likewise.
2522 * ppcobsd-tdep.c: Likewise.
2523 * printcmd.c: Likewise.
2524 * procfs.c: Likewise.
2525 * prologue-value.c: Likewise.
2526 * psymtab.c: Likewise.
2527 * python/py-lazy-string.c: Likewise.
2528 * python/py-value.c: Likewise.
2529 * regcache.c: Likewise.
2530 * reggroups.c: Likewise.
2531 * registry.c: Likewise.
2532 * remote-sim.c: Likewise.
2533 * remote.c: Likewise.
2534 * rs6000-aix-tdep.c: Likewise.
2535 * rs6000-tdep.c: Likewise.
2536 * s390-linux-tdep.c: Likewise.
2537 * score-tdep.c: Likewise.
2538 * ser-base.c: Likewise.
2539 * ser-mingw.c: Likewise.
2540 * sh-tdep.c: Likewise.
2541 * sh64-tdep.c: Likewise.
2542 * solib-darwin.c: Likewise.
2543 * solib-spu.c: Likewise.
2544 * solib-svr4.c: Likewise.
2545 * source.c: Likewise.
2546 * sparc-nat.c: Likewise.
2547 * sparc-sol2-tdep.c: Likewise.
2548 * sparc-tdep.c: Likewise.
2549 * sparc64-sol2-tdep.c: Likewise.
2550 * sparc64-tdep.c: Likewise.
2551 * sparc64fbsd-tdep.c: Likewise.
2552 * sparc64nbsd-tdep.c: Likewise.
2553 * sparc64obsd-tdep.c: Likewise.
2554 * sparcnbsd-tdep.c: Likewise.
2555 * sparcobsd-tdep.c: Likewise.
2556 * spu-multiarch.c: Likewise.
2557 * spu-tdep.c: Likewise.
2558 * stabsread.c: Likewise.
2559 * stack.c: Likewise.
2560 * symfile.c: Likewise.
2561 * symtab.c: Likewise.
2562 * target-descriptions.c: Likewise.
2563 * target-memory.c: Likewise.
2564 * target.c: Likewise.
2565 * tic6x-linux-tdep.c: Likewise.
2566 * tic6x-tdep.c: Likewise.
2567 * tilegx-linux-nat.c: Likewise.
2568 * tilegx-tdep.c: Likewise.
2570 * tramp-frame.c: Likewise.
2571 * tui/tui-out.c: Likewise.
2572 * tui/tui-winsource.c: Likewise.
2573 * ui-out.c: Likewise.
2574 * user-regs.c: Likewise.
2575 * utils.c: Likewise.
2576 * v850-tdep.c: Likewise.
2577 * valops.c: Likewise.
2578 * value.c: Likewise.
2579 * varobj.c: Likewise.
2580 * vax-nat.c: Likewise.
2581 * xml-syscall.c: Likewise.
2582 * xml-tdesc.c: Likewise.
2583 * xstormy16-tdep.c: Likewise.
2584 * xtensa-linux-nat.c: Likewise.
2585 * xtensa-tdep.c: Likewise.
2587 2014-08-07 Gary Benson <gbenson@redhat.com>
2589 * common/common-defs.h: Include common-utils.h.
2590 * defs.h: Do not include common-utils.h.
2591 * common/gdb_assert.h: Likewise.
2592 * darwin-nat.h: Likewise.
2593 * nat/linux-btrace.c: Likewise.
2594 * target/waitstatus.h: Likewise.
2596 2014-08-07 Gary Benson <gbenson@redhat.com>
2598 * common/common-defs.h: Include ptid.h.
2599 * defs.h: Do not include ptid.h.
2600 * inferior.h: Likewise.
2601 * infrun.h: Likewise.
2602 * nat/linux-btrace.h: Likewise.
2603 * nat/linux-osdata.h: Likewise.
2604 * target/waitstatus.h: Likewise.
2606 2014-08-07 Gary Benson <gbenson@redhat.com>
2608 * common/common-defs.h: Include gdb_locale.h.
2609 * defs.h: Do not include gdb_locale.h.
2611 2014-08-07 Gary Benson <gbenson@redhat.com>
2613 * common/common-defs.h: Include gdb/signals.h.
2614 * defs.h: Do not include gdb/signals.h.
2616 2014-08-07 Gary Benson <gbenson@redhat.com>
2618 * common/common-defs.h: Include pathmax.h.
2619 * defs.h: Do not include pathmax.h.
2621 2014-08-07 Gary Benson <gbenson@redhat.com>
2623 * common/common-defs.h: Include libiberty.h.
2624 * defs.h: Do not include libiberty.h.
2625 * common/queue.h: Likewise.
2626 * cp-name-parser.y: Likewise.
2627 * mi/mi-cmd-catch.c: Likewise.
2628 * python/python.c: Likewise.
2630 2014-08-07 Gary Benson <gbenson@redhat.com>
2632 * common/common-defs.h: Include ansidecl.h.
2633 * defs.h: Do not include ansidecl.h.
2634 * common/buffer.h: Likewise.
2635 * common/common-utils.h: Likewise.
2637 2014-08-07 Gary Benson <gbenson@redhat.com>
2639 * common/common-defs.h: Include stddef.h.
2640 * defs.h: Do not include stddef.h.
2641 * common/common-utils.h: Likewise.
2642 * amd64fbsd-nat.c: Likewise.
2643 * bcache.c: Likewise.
2644 * charset.c: Likewise.
2645 * common/buffer.h: Likewise.
2646 * common/vec.h: Likewise.
2647 * i386bsd-nat.c: Likewise.
2648 * nat/linux-btrace.h: Likewise.
2649 * ppcfbsd-nat.c: Likewise.
2650 * ppcnbsd-tdep.h: Likewise.
2651 * ppcobsd-nat.c: Likewise.
2652 * ppcobsd-tdep.h: Likewise.
2653 * python/py-gdb-readline.c: Likewise.
2655 2014-08-07 Gary Benson <gbenson@redhat.com>
2657 * common/common-defs.h: Include stdarg.h.
2658 * defs.h: Do not include stdarg.h.
2659 * ada-lang.c: Likewise.
2660 * common/common-utils.h: Likewise.
2661 * guile/scm-string.c: Likewise.
2662 * guile/scm-utils.c: Likewise.
2663 * m32c-tdep.c: Likewise.
2665 2014-08-07 Gary Benson <gbenson@redhat.com>
2667 * common/common-defs.h: Include stdlib.h.
2668 * defs.h: Do not include stdlib.h.
2669 * addrmap.c: Likewise.
2670 * bcache.c: Likewise.
2671 * common/buffer.c: Likewise.
2672 * common/common-utils.c: Likewise.
2673 * cp-name-parser.y: Likewise.
2674 * go32-nat.c: Likewise.
2675 * mn10300-linux-tdep.c: Likewise.
2676 * nat/linux-osdata.c: Likewise.
2677 * tui/tui.c: Likewise.
2678 * windows-nat.c: Likewise.
2680 2014-08-07 Gary Benson <gbenson@redhat.com>
2682 * common/common-defs.h: Include stdio.h.
2683 * defs.h: Do not include stdio.h.
2684 * ada-lang.c: Likewise.
2685 * common/buffer.c: Likewise.
2686 * common/common-utils.c: Likewise.
2687 * cp-name-parser.y: Likewise.
2688 * gnu-nat.c: Likewise.
2689 * go32-nat.c: Likewise.
2690 * i386gnu-nat.c: Likewise.
2691 * proc-api.c: Likewise.
2692 * proc-events.c: Likewise.
2693 * proc-flags.c: Likewise.
2694 * proc-why.c: Likewise.
2695 * python/python-internal.h: Likewise.
2696 * target-memory.c: Likewise.
2697 * tui/tui-io.c: Likewise.
2698 * tui/tui.c: Likewise.
2700 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2702 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2703 (scan_dyntag_auxv): Same.
2705 2014-08-06 Yao Qi <yao@codesourcery.com>
2707 * amd64-linux-nat.c: Remove duplicated include
2709 * i386-linux-nat.c: Likewise.
2711 2014-08-06 Yao Qi <yao@codesourcery.com>
2713 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2714 operand" with "Special opcode" in comments.
2716 2014-08-05 Gary Benson <gbenson@redhat.com>
2718 * interps.c (initialize_interps): Remove prototype.
2719 (interpreter_initialized): Remove static global.
2720 (interp_add): Do not call initialize_interps.
2721 (initialize_interps): Remove function.
2723 2014-08-05 Gary Benson <gbenson@redhat.com>
2725 * utils.c (vwarning): Remove spurious va_end.
2727 2014-08-05 Alan Modra <amodra@gmail.com>
2729 * charset.c (convert_between_encodings): Cast result of obstack_base.
2730 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2731 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2732 (read_unwind_info): Use size_t for some locals.
2733 * jit.c (finalize_symtab): Likewise.
2734 * utils.c (hashtab_obstack_allocate): Likewise.
2735 * symmisc.c (print_objfile_statistics): Update format strings.
2737 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2739 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2740 (Changes in GDB 7.8): ... here.
2742 2014-08-04 Tom Tromey <tromey@redhat.com>
2744 * target.c (set_targetdebug): New function.
2745 (initialize_targets): Pass set_targetdebug when creating "set
2748 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2750 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2751 if detecting a variable-sized field that is not the last field.
2752 Fix struct type length computation.
2754 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2756 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2759 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2761 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2762 Remove "+ 8" offset in computation of CHAIN_VMA.
2764 2014-07-31 Doug Evans <dje@google.com>
2766 * inflow.c (child_terminal_inferior): Add comment.
2767 (child_terminal_ours_for_output): Add comment.
2768 (child_terminal_ours): Add comment.
2769 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2770 (linux_nat_terminal_ours): Add comment.
2772 2014-07-31 Gary Benson <gbenson@redhat.com>
2774 * common/btrace-common.h: Do not include defs.h or server.h.
2775 * nat/mips-linux-watch.h: Likewise.
2776 * gdb-dlfcn.h: Do not include defs.h.
2777 * tracefile.h: Likewise.
2779 2014-07-30 Roland McGrath <mcgrathr@google.com>
2781 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2783 2014-07-30 Tom Tromey <tromey@redhat.com>
2785 * bsd-kvm.c (bsd_kvm_open): Constify.
2786 * corelow.c (core_open): Constify.
2787 * ctf.c (ctf_open): Constify.
2788 * dbug-rom.c (dbug_open): Constify.
2789 * exec.c (exec_open): Constify.
2790 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2791 * microblaze-rom.c (picobug_open): Constify.
2792 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2794 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2795 * record-btrace.c (record_btrace_open): Constify.
2796 * record-full.c (record_full_core_open_1, record_full_open_1)
2797 (record_full_open): Constify.
2798 * remote-m32r-sdi.c (m32r_open): Constify.
2799 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2800 (rockhopper_open, lsi_open): Constify.
2801 * remote-sim.c (gdbsim_open): Constify.
2802 * remote.c (remote_open, extended_remote_open, remote_open_1):
2804 * target.h (struct target_ops) <to_open>: Make "arg" const.
2805 * tracefile-tfile.c (tfile_open): Constify.
2807 2014-07-30 Tom Tromey <tromey@redhat.com>
2809 * breakpoint.c (map_breakpoint_numbers): Update.
2810 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2811 (get_number_const): New function.
2812 (get_number): Rewrite using get_number_const.
2813 (init_number_or_range): Make "string" const.
2814 (number_is_in_list): Make "list" const.
2815 * cli/cli-utils.h (get_number_const): Declare.
2816 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2817 (init_number_or_range, number_is_in_list): Update.
2818 * printcmd.c (map_display_numbers): Update.
2819 * value.c (value_from_history_ref): Constify.
2820 * value.h (value_from_history_ref): Update.
2822 2014-07-30 Tom Tromey <tromey@redhat.com>
2824 * corefile.c (hook_type, call_extra_exec_file_hooks)
2825 (specify_exec_file_hook): Constify.
2826 * exec.c (exec_file_attach): Make "filename" const.
2827 * gdbcore.h (deprecated_exec_file_display_hook)
2828 (specify_exec_file_hook, exec_file_attach): Constify.
2829 * main.c (captured_main): Use catch_command_errors_const.
2831 2014-07-30 Tom Tromey <tromey@redhat.com>
2833 * target.c (open_target): New function.
2834 (add_target_with_completer, add_deprecated_target_alias): Use
2835 set_cmd_sfunc, set_cmd_context.
2836 (debug_to_open): Remove.
2837 (setup_target_debug): Update.
2839 2014-07-30 Yao Qi <yao@codesourcery.com>
2841 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2843 * parse.c (exp_iterate): Update comments.
2845 2014-07-30 Gary Benson <gbenson@redhat.com>
2847 * common/common-defs.h: New file.
2848 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2849 * defs.h: Include common-defs.h.
2850 Do not include config.h or build-gnulib/config.h.
2852 2014-07-30 Gary Benson <gbenson@redhat.com>
2854 * common/common-utils.h: Do not include config.h.
2855 * nat/linux-btrace.h: Likewise.
2857 2014-07-30 Gary Benson <gbenson@redhat.com>
2859 * btrace.c: Include defs.h.
2860 * common/ptid.c: Include defs.h or server.h as appropriate.
2861 * nat/mips-linux-watch.c: Likewise.
2863 2014-07-29 Tom Tromey <tromey@redhat.com>
2865 * target.c (target_is_pushed): Simplify.
2867 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2871 2014-07-29 Yao Qi <yao@codesourcery.com>
2874 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2876 2014-07-28 Doug Evans <xdje42@gmail.com>
2879 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2880 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2883 2014-07-28 Will Newton <will.newton@linaro.org>
2885 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2886 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2887 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2888 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2889 (THUMB2_EABI_SYSCALL): Likewise.
2890 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2892 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2893 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2895 2014-07-27 Doug Evans <xdje42@gmail.com>
2897 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2899 2014-07-27 Doug Evans <xdje42@gmail.com>
2901 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2903 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2904 Doug Evans <xdje42@gmail.com>
2907 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2908 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2909 * configure.ac: Try to use guild to compile an scm file, if it fails
2910 then disable guile support.
2911 * configure: Regenerate.
2912 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2914 (GUILE_COMPILED_FILES): New variable.
2915 (GUILE_FILES) Update.
2916 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2917 (stamp-guile): Compile scm files.
2918 * guile/guile.c (boot_guile_support): New function.
2919 (standard_throw_args_p): New function.
2920 (print_standard_throw_error, print_throw_error): New functions.
2921 (handle_boot_error): New function.
2922 (initialize_scheme_side): Rewrite to call boot_guile_support.
2923 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2924 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2926 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2927 Doug Evans <xdje42@gmail.com>
2930 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2931 * guile/lib/gdb/support.scm: New file.
2932 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2933 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2935 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2937 (%assert-type): Ditto, and renamed to assert-type.
2938 (%exception-print-style): Delete.
2940 2014-07-26 Doug Evans <xdje42@gmail.com>
2943 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2944 * configure: Regenerate.
2945 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2947 (PYTHON_FILES): New variable.
2948 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2949 (GUILE_FILES): New variable.
2950 (stamp-python, install-python, uninstall-python): Handle empty
2952 (stamp-guile, install-guile, uninstall-guile): Ditto.
2954 2014-07-26 Doug Evans <xdje42@gmail.com>
2957 * guile/lib/gdb.scm (pretty-printers): Export.
2958 (set-pretty-printers!): Export.
2959 * guile/lib/gdb/printing.scm (gdb module): Update.
2960 (prepend-pretty-printer!, append-pretty-printer!): Update.
2961 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2962 (pretty_printer_list_var): Delete.
2963 (pretty_printer_list): New static global.
2964 (gdbscm_pretty_printers): New function.
2965 (gdbscm_set_pretty_printers_x): New function.
2966 (ppscm_find_pretty_printer_from_gdb): Update.
2967 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2968 (gdbscm_initialize_pretty_printers): Update.
2970 2014-07-26 Doug Evans <xdje42@gmail.com>
2973 * configure.ac: Add check for header gc/gc.h.
2974 Add check for function setenv.
2975 * configure: Regenerate.
2976 * config.in: Regenerate.
2977 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2979 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2981 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2982 variation in gdbarch matching.
2984 2014-07-25 Tom Tromey <tromey@redhat.com>
2986 * exec.c (using_exec_ops): Remove.
2987 (exec_close_1): Update. Remove extraneous block, reindent.
2988 (add_target_sections): Use target_is_pushed.
2990 2014-07-25 Pedro Alves <palves@redhat.com>
2992 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2993 * monitor.c (monitor_create_inferior): Likewise.
2994 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2995 * remote-sim.c (gdbsim_create_inferior): Likewise.
2996 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2997 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2998 * windows-nat.c (do_initial_windows_stuff): Likewise.
3000 2014-07-25 Pedro Alves <palves@redhat.com>
3002 * NEWS: Mention signal passing and "signal" command changes.
3003 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3005 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3007 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3008 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3009 (jump_command): Adjust clear_proceed_status call.
3010 (signal_command): Warn if other thread that are resumed have
3011 signals that will be delivered. Adjust clear_proceed_status call.
3012 (until_next_command, finish_command)
3013 (proceed_after_attach_callback, attach_command_post_wait)
3014 (attach_command): Adjust clear_proceed_status call.
3015 * infrun.c (proceed_after_vfork_done): Likewise.
3016 (proceed_after_attach_callback): Adjust comment.
3017 (clear_proceed_status_thread): Clear stop_signal if not in pass
3019 (clear_proceed_status_callback): Delete.
3020 (clear_proceed_status): New 'step' parameter. Only clear the
3021 proceed status of threads the command being prepared is about to
3023 (proceed): If passed in an explicit signal, override stop_signal
3024 with it. Don't pass the last stop signal to the thread we're
3026 (init_wait_for_inferior): Adjust clear_proceed_status call.
3027 (switch_back_to_stepped_thread): Clear the signal if it should not
3029 * infrun.h (clear_proceed_status): New 'step' parameter.
3030 (user_visible_resume_ptid): Add comment.
3031 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3032 signal is in pass state.
3033 * remote.c (append_pending_thread_resumptions): Likewise.
3034 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3036 2014-07-25 Tom Tromey <tromey@redhat.com>
3038 * target.h (target_stopped_data_address)
3039 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3042 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3044 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3046 (avr_pointer_to_address): Likewise.
3048 2014-07-24 Tom Tromey <tromey@redhat.com>
3050 * monitor.c (compile_pattern): Update.
3051 * target.h (struct target_ops) <to_shortname, to_longname,
3054 2014-07-24 Tom Tromey <tromey@redhat.com>
3056 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3057 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3058 (add_info_alias, add_com): Make "doc" const.
3059 (print_doc_line): Make "str" const.
3060 (delete_cmd): Update.
3061 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3062 (print_doc_line): Update.
3063 * cli/cli-script.c (document_command): Update.
3064 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3065 (add_com, add_info, add_info_alias): Update.
3066 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3067 * python/py-cmd.c (cmdpy_destroyer): Update.
3069 2014-07-24 Tom Tromey <tromey@redhat.com>
3071 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3072 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3073 (help_cmd_list): Constify.
3074 (lookup_cmd): Update.
3075 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3077 (help_cmd_list, apropos_cmd): Update.
3078 * cli/cli-script.c (show_user): Update.
3079 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3080 * cli/cli-setshow.h (cmd_show_list): Update.
3081 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3082 (cmd_show_list): Update.
3083 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3084 * python/py-cmd.c (cmdpy_destroyer): Update.
3086 2014-07-24 Tom Tromey <tromey@redhat.com>
3088 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3089 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3091 * command.h (deprecate_cmd): Update.
3092 * maint.c (maintenance_do_deprecate): Add casts.
3094 2014-07-24 Tom Tromey <tromey@redhat.com>
3096 * cli/cli-decode.c (help_cmd): Make parameter "const".
3097 * cli/cli-decode.h (help_cmd): Update.
3099 2014-07-24 Tom Tromey <tromey@redhat.com>
3101 * stack.c (up_silently_base, down_silently_base): Make argument
3104 2014-07-24 Tom Tromey <tromey@redhat.com>
3106 * solib.c (solib_add): Make "pattern" const.
3107 * solib.h (solib_add): Update.
3109 2014-07-24 Tom Tromey <tromey@redhat.com>
3111 * remote.c (remote_serial_open, print_packet, putpkt)
3112 (putpkt_binary): Constify.
3113 * remote.h (putpkt): Update.
3115 2014-07-24 Tom Tromey <tromey@redhat.com>
3117 * monitor.c (monitor_open): Make "args" const.
3118 * monitor.h (monitor_open): Update.
3120 2014-07-24 Tom Tromey <tromey@redhat.com>
3122 * maint.c (match_bfd_flags): Make "string" const.
3123 (print_bfd_section_info): Remove casts.
3124 (print_objfile_section_info): Make "string" const.
3126 2014-07-24 Tom Tromey <tromey@redhat.com>
3128 * inf-child.c (inf_child_open_target): Make "arg" const.
3129 * inf-child.h (inf_child_open_target): Update.
3131 2014-07-24 Tom Tromey <tromey@redhat.com>
3133 * environ.c (unset_in_environ): Make "var" const.
3134 * environ.h (unset_in_environ): Update.
3136 2014-07-24 Tom Tromey <tromey@redhat.com>
3138 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3140 (scan_filename_with_cleanup): Likewise.
3141 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3142 Make arguments const.
3143 (restore_command): Update.
3145 2014-07-24 Pedro Alves <palves@redhat.com>
3147 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3149 2014-07-24 Tom Tromey <tromey@redhat.com>
3150 Gary Benson <gbenson@redhat.com>
3152 * nat/linux-ptrace.c (additional_flags): New global.
3153 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3154 additional_flags; don't check GDBSERVER.
3155 (linux_ptrace_set_additional_flags): New function.
3156 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3158 * linux-nat.c (_initialize_linux_nat): Call
3159 linux_ptrace_set_additional_flags.
3161 2014-07-24 Tom Tromey <tromey@redhat.com>
3163 * make-target-delegates (munge_type, write_debugmethod): New
3165 (debug_names): New global.
3166 ($TARGET_DEBUG_PRINTER): New global.
3167 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3169 Write debug methods. Generate init_debug_target.
3170 * target-debug.h: New file.
3171 * target-delegates.c: Rebuild.
3172 * target.c: Include target-debug.h.
3173 (debug_target): Hoist definition.
3174 (target_kill, target_get_section_table, target_memory_map)
3175 (target_flash_erase, target_flash_done, target_detach)
3176 (target_disconnect, target_wait, target_resume)
3177 (target_pass_signals, target_program_signals, target_follow_fork)
3178 (target_mourn_inferior, target_search_memory)
3179 (target_thread_address_space, target_close)
3180 (target_find_new_threads, target_core_of_thread)
3181 (target_verify_memory, target_insert_mask_watchpoint)
3182 (target_remove_mask_watchpoint): Remove targetdebug code.
3183 (debug_to_post_attach, debug_to_prepare_to_store)
3184 (debug_to_files_info, debug_to_insert_breakpoint)
3185 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3186 (debug_to_region_ok_for_hw_watchpoint)
3187 (debug_to_can_accel_watchpoint_condition)
3188 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3189 (debug_to_watchpoint_addr_within_range)
3190 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3191 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3192 (debug_to_terminal_init, debug_to_terminal_inferior)
3193 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3194 (debug_to_terminal_save_ours, debug_to_terminal_info)
3195 (debug_to_load, debug_to_post_startup_inferior)
3196 (debug_to_insert_fork_catchpoint)
3197 (debug_to_remove_fork_catchpoint)
3198 (debug_to_insert_vfork_catchpoint)
3199 (debug_to_remove_vfork_catchpoint)
3200 (debug_to_insert_exec_catchpoint)
3201 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3202 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3203 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3204 (setup_target_debug): Call init_debug_target.
3205 * target.h (TARGET_DEBUG_PRINTER): New macro.
3206 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3207 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3209 2014-07-24 Gary Benson <gbenson@redhat.com>
3211 * exceptions.h (throw_vfatal): Renamed to...
3212 (throw_vquit): New declaration.
3213 (throw_quit): Likewise.
3214 * exceptions.c (throw_vfatal): Renamed to...
3215 (throw_vquit): New function.
3216 (throw_quit): Likewise.
3217 (throw_error): Call throw_verror rather than throw_it.
3218 * utils.h (vfatal): Removed.
3220 * utils.c (vfatal): Removed.
3222 (internal_verror): Replaced call to fatal with call to throw_quit.
3223 (quit): Replaced calls to fatal with calls to throw_quit.
3225 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3227 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3230 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3232 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3233 less than zero in conditional expression.
3235 2014-07-23 Tom Tromey <tromey@redhat.com>
3237 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3238 ($INTRO_PART): Don't match whitespace.
3239 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3241 ($METHOD): Add $METHOD_TRAILER.
3243 (scan_target_h): New sub.
3244 Change main loop not to collect state.
3245 * target-delegates.c: Rebuild.
3247 2014-07-23 Gary Benson <gbenson@redhat.com>
3249 * cp-support.c (gdb_demangle): Fix build on systems without
3252 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3254 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3255 for reference entry value target data value.
3257 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3259 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3260 value_available_contents_eq.
3262 2014-07-22 Pedro Alves <palves@redhat.com>
3264 * value.c (allocate_optimized_out_value): Don't mark value as
3267 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3269 * MAINTAINERS (Write After Approval): Update my email address.
3271 2014-07-20 Doug Evans <dje@google.com>
3274 * remote.c (putpkt_binary): Add text to error message.
3276 2014-07-20 Yao Qi <yao@codesourcery.com>
3278 * eval.c: Remove "Chill" from comments.
3279 * gdbtypes.h: Likewise.
3280 * symtab.h: Likewise.
3282 2014-07-20 Yao Qi <yao@codesourcery.com>
3284 * std-operator.def: Update comments to TERNOP_SLICE.
3286 2014-07-20 Yao Qi <yao@codesourcery.com>
3288 * std-operator.def: Remove BINOP_RANGE.
3289 * breakpoint.c (watchpoint_exp_is_const): Update.
3290 * expprint.c (dump_subexp_body_standard): Likewise.
3291 * eval.c (init_array_element): Remove dead code.
3292 (evaluate_subexp_standard): Likewise.
3294 2014-07-20 Yao Qi <yao@codesourcery.com>
3296 * std-operator.def: Remove BINOP_IN.
3297 * breakpoint.c (watchpoint_exp_is_const): Update.
3298 * eval.c (evaluate_subexp_standard): Likewise.
3299 * expprint.c (dump_subexp_body_standard): Likewise.
3301 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3303 * microblaze-tdep.c (microblaze_register_names): Add
3304 the rshr and rslr register names.
3305 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3306 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3307 Use of tdesc_numbered_register. Use of
3308 microblaze_register_g_packet_guesses. Use of
3309 tdesc_use_registers. Use of set_gdbarch_register_type.
3310 (microblaze_register_g_packet_guesses): New.
3311 * microblaze-tdep.h (microblaze_reg_num): Add
3312 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3313 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3314 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3315 * features/microblaze-core.xml: New file.
3316 * features/microblaze-stack-protect.xml: New file.
3317 * features/microblaze-with-stack-protect.c: New file.
3318 * features/microblaze-with-stack-protect.xml: New file.
3319 * features/microblaze.xml: New file.
3320 * features/microblaze.c: New file.
3321 * features/Makefile (microblaze-with-stack-protect): Add
3322 microblaze-with-stack-protect microblaze and microblaze-expedite.
3323 * regformats/microblaze-with-stack-protect.dat: New file.
3324 * regformats/microblaze.dat: New file.
3325 * doc/gdb.texinfo (MicroBlaze Features): Added.
3327 2014-07-18 Tom Tromey <tromey@redhat.com>
3329 * exec.c (exec_ops): Now static.
3330 * exec.h (exec_ops): Don't declare.
3332 2014-07-18 Tom Tromey <tromey@redhat.com>
3334 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3335 to find_target_beneath.
3336 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3337 find_target_beneath.
3338 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3340 2014-07-18 Tom Tromey <tromey@redhat.com>
3343 * utils.c (quit): Use target_supports_terminal_ours.
3344 * target.h (target_supports_terminal_ours): Declare.
3345 * target.c (target_supports_delete_record): Don't check
3346 to_delete_record against NULL.
3347 (target_supports_terminal_ours): New function.
3349 2014-07-18 Tom Tromey <tromey@redhat.com>
3352 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3353 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3354 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3355 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3356 * windows-nat.c (windows_xfer_partial): Always delegate.
3357 * record-btrace.c (record_btrace_xfer_partial): Simplify
3359 (record_btrace_fetch_registers, record_btrace_store_registers)
3360 (record_btrace_prepare_to_store, record_btrace_resume)
3361 (record_btrace_wait, record_btrace_find_new_threads)
3362 (record_btrace_thread_alive): Likewise.
3363 * procfs.c (procfs_xfer_partial): Always delegate.
3364 * corelow.c (core_xfer_partial): Always delegate.
3365 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3367 2014-07-18 Tom Tromey <tromey@redhat.com>
3369 * exec.c (exec_make_note_section): Move earlier.
3371 2014-07-17 Doug Evans <dje@google.com>
3374 * maint.c (count_symtabs_and_blocks): Handle NULL
3375 current_program_space.
3376 (report_command_stats): Check global enabled flag in addition to
3377 recorded enabled flag.
3378 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3380 2014-07-16 Pedro Alves <palves@redhat.com>
3382 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3384 2014-07-16 Tom Tromey <tromey@redhat.com>
3386 * target.h (struct target_ops) <to_delete_record>: Reformat
3389 2014-07-16 Tom Tromey <tromey@redhat.com>
3391 * target-delegates.c: Rebuild.
3393 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3395 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3396 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3397 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3398 (avr_pointer_to_address): Likewise.
3399 (avr_address_class_type_flags): New function.
3400 (avr_address_class_type_flags_to_name): Likewise.
3401 (avr_address_class_name_to_type_flags): Likewise.
3402 (avr_gdbarch_init): Set address_class_type_flags,
3403 address_class_type_flags_to_name and
3404 address_class_name_to_type_flags.
3406 2014-07-15 Pedro Alves <palves@redhat.com>
3408 * linux-nat.c (kill_callback): Save errno and work with saved
3411 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3413 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3415 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3417 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3418 breakpoint support correctly.
3420 2014-07-14 Pedro Alves <palves@redhat.com>
3422 * utils.c (prompt_for_continue): Call target_terminal_ours.
3424 2014-07-14 Pedro Alves <palves@redhat.com>
3426 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3427 catch_errors. Don't re-enable stdin or notify observers where,
3429 (fetch_inferior_event_wrapper): Delete.
3431 2014-07-14 Pedro Alves <palves@redhat.com>
3434 * top.c: Include "inf-loop.h".
3435 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3437 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3439 (gdb_readline_wrapper): Store whether the target is async, and
3442 2014-07-14 Pedro Alves <palves@redhat.com>
3445 * top.c (gdb_readline_wrapper_line): Tweak comment.
3446 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3447 the input handler callback.
3449 2014-07-14 Pedro Alves <palves@redhat.com>
3452 * main.c: Include event-top.h.
3453 (handle_command_errors): New function.
3454 (catch_command_errors, catch_command_errors_const): Use it.
3456 2014-07-14 Pedro Alves <palves@redhat.com>
3458 * exceptions.c (catch_command_errors, catch_command_errors_const):
3460 * exceptions.h (catch_command_errors_ftype)
3461 (catch_command_errors_const_ftype): Moved to main.c.
3462 (catch_command_errors, catch_command_errors_const): Delete
3464 * main.c (catch_command_errors_ftype)
3465 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3466 (catch_command_errors, catch_command_errors_const)): Moved here
3467 from exceptions.c and make static.
3469 2014-07-14 Pedro Alves <palves@redhat.com>
3471 * exceptions.c (print_any_exception): Delete.
3472 (catch_exceptions_with_msg): Use exception_print instead of
3473 print_any_exception.
3474 (catch_errors): Use exception_fprintf instead of
3475 print_any_exception.
3476 (catch_command_errors, catch_command_errors_const): Use
3477 exception_print instead of print_any_exception.
3479 2014-07-14 Pedro Alves <palves@redhat.com>
3481 * infcall.c (run_inferior_call): Set 'sync_execution' while
3482 running the inferior call.
3484 2014-07-14 Pedro Alves <palves@redhat.com>
3486 * value.c (value_contents_equal): Delete function.
3487 * value.h (value_contents_equal): Delete declaration.
3489 2014-07-14 Tom Tromey <tromey@redhat.com>
3492 * gdbtypes.c (is_dynamic_type_internal): New function, from
3494 (is_dynamic_type): Rewrite.
3495 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3496 (resolve_dynamic_struct): Likewise.
3497 (resolve_dynamic_type_internal): New function, from
3498 resolve_dynamic_type.
3499 (resolve_dynamic_type): Rewrite.
3501 2014-07-14 Tom Tromey <tromey@redhat.com>
3503 * target.c (target_require_runnable): Also check record_stratum.
3506 2014-07-11 Yao Qi <yao@codesourcery.com>
3508 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3509 thumb_instruction_restores_sp return true.
3511 2014-07-11 Yao Qi <yao@codesourcery.com>
3513 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3514 (thumb_in_function_epilogue_p): Call
3515 thumb_instruction_restores_sp.
3517 2014-07-11 Yao Qi <yao@codesourcery.com>
3519 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3521 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3523 2014-07-11 Gary Benson <gbenson@redhat.com>
3525 * amd64-linux-nat.c (gdbcore.h): Remove include.
3526 (regset.h): Likewise.
3527 (nat/linux-btrace.h): Likewise.
3528 (btrace.h): Likewise.
3529 (gdb_assert.h): Likewise.
3530 (string.h): Likewise.
3531 (sys/uio.h): Likewise.
3532 (sys/debugreg.h): Likewise.
3533 (sys/syscall.h): Likewise.
3534 (sys/procfs.h): Likewise.
3535 (sys/user.h): Likewise.
3536 (asm/ptrace.h): Likewise.
3537 (i386-nat.h): Likewise.
3538 * i386-linux-nat.c (i386-nat.h): Likewise.
3539 (regset.h): Likewise.
3540 (target.h): Likewise.
3541 (linux-nat.h): Likewise.
3542 (nat/linux-btrace.h): Likewise.
3543 (btrace.h): Likewise.
3544 (gdb_assert.h): Likewise.
3545 (string.h): Likewise.
3546 (sys/uio.h): Likewise.
3547 (sys/user.h): Likewise.
3548 (sys/procfs.h): Likewise.
3549 (sys/reg.h): Likewise.
3550 (sys/debugreg.h): Likewise.
3551 (ORIG_EAX): Remove definition.
3553 2014-07-11 Gary Benson <gbenson@redhat.com>
3555 * i386-linux-nat.h: New file.
3556 * x86-linux-nat.h: Likewise.
3557 * x86-linux-nat.c: Likewise.
3558 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3559 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3560 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3561 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3562 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3563 (PTRACE_SETREGSET): Likewise.
3564 (arch_lwp_info): Now in x86-linux-nat.c.
3565 (have_ptrace_getregset): Now in x86-linux-nat.h.
3566 (x86_linux_dr_get): Now in x86-linux-nat.c.
3567 (x86_linux_dr_set): Likewise.
3568 (x86_linux_dr_get_addr): Likewise.
3569 (x86_linux_dr_get_control): Likewise.
3570 (x86_linux_dr_get_status): Likewise.
3571 (update_debug_registers_callback): Likewise.
3572 (x86_linux_dr_set_control): Likewise.
3573 (x86_linux_dr_set_addr): Likewise.
3574 (x86_linux_prepare_to_resume): Likewise.
3575 (x86_linux_new_thread): Likewise.
3576 (x86_linux_new_fork): Likewise.
3577 (x86_linux_get_thread_area): Likewise.
3578 (super_post_startup_inferior): Likewise.
3579 (x86_linux_child_post_startup_inferior): Likewise.
3580 (AMD64_LINUX_USER64_CS): Likewise.
3581 (AMD64_LINUX_X32_DS): Likewise.
3582 (x86_linux_read_description): Likewise.
3583 (x86_linux_enable_btrace): Likewise.
3584 (x86_linux_disable_btrace): Likewise.
3585 (x86_linux_teardown_btrace): Likewise.
3586 (x86_linux_read_btrace): Likewise.
3587 (x86_linux_create_target): Likewise.
3588 (x86_linux_add_target): Likewise.
3589 * i386-linux-nat.c (x86-linux-nat.h): New include.
3590 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3591 (PTRACE_SETREGSET): Likewise.
3592 (arch_lwp_info): Now in x86-linux-nat.c.
3593 (have_ptrace_getregset): Now in x86-linux-nat.h.
3594 (x86_linux_dr_get): Now in x86-linux-nat.c.
3595 (x86_linux_dr_set): Likewise.
3596 (x86_linux_dr_get_addr): Likewise.
3597 (x86_linux_dr_get_control): Likewise.
3598 (x86_linux_dr_get_status): Likewise.
3599 (update_debug_registers_callback): Likewise.
3600 (x86_linux_dr_set_control): Likewise.
3601 (x86_linux_dr_set_addr): Likewise.
3602 (x86_linux_prepare_to_resume): Likewise.
3603 (x86_linux_new_thread): Likewise.
3604 (x86_linux_new_fork): Likewise.
3605 (x86_linux_get_thread_area): Likewise.
3606 (super_post_startup_inferior): Likewise.
3607 (x86_linux_child_post_startup_inferior): Likewise.
3608 (AMD64_LINUX_USER64_CS): Likewise.
3609 (AMD64_LINUX_X32_DS): Likewise.
3610 (x86_linux_read_description): Likewise.
3611 (x86_linux_enable_btrace): Likewise.
3612 (x86_linux_disable_btrace): Likewise.
3613 (x86_linux_teardown_btrace): Likewise.
3614 (x86_linux_read_btrace): Likewise.
3615 (x86_linux_create_target): Likewise.
3616 (x86_linux_add_target): Likewise.
3618 2014-07-11 Gary Benson <gbenson@redhat.com>
3620 * amd64-linux-nat.c: Comment and whitespace changes.
3621 * i386-linux-nat.c: Comment and whitespace changes.
3623 2014-07-11 Gary Benson <gbenson@redhat.com>
3625 * amd64-linux-nat.c (x86_linux_create_target): New function.
3626 (x86_linux_add_target): Likewise.
3627 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3628 * i386-linux-nat.c (x86_linux_create_target): New function.
3629 (x86_linux_add_target): Likewise.
3630 (_initialize_i386_linux_nat): Delegate to the above new functions.
3632 2014-07-11 Gary Benson <gbenson@redhat.com>
3634 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3635 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3636 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3637 (ps_get_thread_area): Delegate to the above.
3639 2014-07-11 Gary Benson <gbenson@redhat.com>
3641 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3642 x86_linux_read_description. All uses updated. amd64-specific
3643 code conditionalized. Conditionalized i386-specific code added.
3644 Redundant cast removed.
3645 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3646 x86_linux_read_description. All uses updated. i386-specific
3647 code conditionalized. Conditionalized amd64-specific code added.
3648 One sizeof replaced with the actual type it is describing.
3650 2014-07-11 Gary Benson <gbenson@redhat.com>
3652 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3653 x86_linux_dr_get. All uses updated.
3654 (amd64_linux_dr_set): Renamed to
3655 x86_linux_dr_set. All uses updated.
3656 (amd64_linux_dr_get_addr): Renamed to
3657 x86_linux_dr_get_addr. All uses updated.
3658 (amd64_linux_dr_get_control): Renamed to
3659 x86_linux_dr_get_control. All uses updated.
3660 (amd64_linux_dr_get_status): Renamed to
3661 x86_linux_dr_get_status. All uses updated.
3662 (amd64_linux_dr_set_control): Renamed to
3663 x86_linux_dr_set_control. All uses updated.
3664 (amd64_linux_dr_set_addr): Renamed to
3665 x86_linux_dr_set_addr. All uses updated.
3666 (amd64_linux_prepare_to_resume): Renamed to
3667 x86_linux_prepare_to_resume. All uses updated.
3668 (amd64_linux_new_thread): Renamed to
3669 x86_linux_new_thread. All uses updated.
3670 (amd64_linux_new_fork): Renamed to
3671 x86_linux_new_fork. All uses updated.
3672 (amd64_linux_child_post_startup_inferior): Renamed to
3673 x86_linux_child_post_startup_inferior. All uses updated.
3674 (amd64_linux_enable_btrace): Renamed to
3675 x86_linux_enable_btrace. All uses updated.
3676 (amd64_linux_disable_btrace): Renamed to
3677 x86_linux_disable_btrace. All uses updated.
3678 (amd64_linux_teardown_btrace): Renamed to
3679 x86_linux_teardown_btrace. All uses updated.
3680 (amd64_linux_read_btrace): Renamed to
3681 x86_linux_read_btrace. All uses updated.
3682 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3683 x86_linux_dr_get. All uses updated.
3684 (i386_linux_dr_set): Renamed to
3685 x86_linux_dr_set. All uses updated.
3686 (i386_linux_dr_get_addr): Renamed to
3687 x86_linux_dr_get_addr. All uses updated.
3688 (i386_linux_dr_get_control): Renamed to
3689 x86_linux_dr_get_control. All uses updated.
3690 (i386_linux_dr_get_status): Renamed to
3691 x86_linux_dr_get_status. All uses updated.
3692 (i386_linux_dr_set_control): Renamed to
3693 x86_linux_dr_set_control. All uses updated.
3694 (i386_linux_dr_set_addr): Renamed to
3695 x86_linux_dr_set_addr. All uses updated.
3696 (i386_linux_prepare_to_resume): Renamed to
3697 x86_linux_prepare_to_resume. All uses updated.
3698 (i386_linux_new_thread): Renamed to
3699 x86_linux_new_thread. All uses updated.
3700 (i386_linux_new_fork): Renamed to
3701 x86_linux_new_fork. All uses updated.
3702 (i386_linux_child_post_startup_inferior): Renamed to
3703 x86_linux_child_post_startup_inferior. All uses updated.
3704 (i386_linux_enable_btrace): Renamed to
3705 x86_linux_enable_btrace. All uses updated.
3706 (i386_linux_disable_btrace): Renamed to
3707 x86_linux_disable_btrace. All uses updated.
3708 (i386_linux_teardown_btrace): Renamed to
3709 x86_linux_teardown_btrace. All uses updated.
3710 (i386_linux_read_btrace): Renamed to
3711 x86_linux_read_btrace. All uses updated.
3713 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3715 * remote.c (extended_remote_post_attach): New function.
3716 (init_extended_remote_ops): Install it as to_post_attach method.
3718 2014-07-09 Pedro Alves <palves@redhat.com>
3720 * infcmd.c (attach_command_post_wait): Don't call
3721 target_terminal_inferior here.
3722 (attach_command): Call it here instead.
3724 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3726 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3728 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3729 from varobj.c, with additional checks.
3730 (c_varobj_ops): Fill in is_path_expr_parent field.
3731 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3732 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3734 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3736 (varobj_default_is_path_expr_parent): New function.
3737 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3738 (varobj_default_is_path_expr_parent): Declare new function.
3740 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3742 * infcmd.c (finish_backward): Turn internal error into normal error.
3744 2014-07-07 Pedro Alves <palves@redhat.com>
3747 * remote.c (async_handle_remote_sigint)
3748 (async_handle_remote_sigint_twice): Call
3749 gdb_call_async_signal_handler instead of
3750 mark_async_signal_handler.
3752 2014-07-07 Tom Tromey <tromey@redhat.com>
3754 * target-delegates.c: Rebuild.
3755 * target.c (target_info_record): Remove.
3756 * record.c (info_record_command): Unconditionally call
3758 * target.h (struct target_ops) <to_info_record>: Use
3759 TARGET_DEFAULT_IGNORE.
3760 (target_info_record): Remove.
3762 2014-07-07 Tom Tromey <tromey@redhat.com>
3764 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3765 TARGET_DEFAULT_NORETURN.
3766 * target.c (generic_tls_error): New function.
3767 (target_translate_tls_address): Don't search target stack.
3768 * target-delegates.c: Rebuild.
3769 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3771 * linux-thread-db.c (thread_db_get_thread_local_address):
3772 Unconditionally call beneath target.
3774 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3776 * cli/cli-logging.c (pop_output_files): Assign targerr to
3779 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3781 * MAINTAINERS (Write After Approval): Update my email address.
3783 2014-07-02 Gary Benson <gbenson@redhat.com>
3785 * proc-service.c (ps_xfer_memory): Update comment.
3786 (ps_pstop): Remove unused function.
3787 (ps_pcontinue): Likewise.
3788 (ps_lstop): Likewise.
3789 (ps_lcontinue): Likewise.
3790 (ps_lgetxregsize): Likewise.
3791 (ps_lgetxregs): Likewise.
3792 (ps_lsetxregs): Likewise.
3793 (ps_plog): Likewise.
3794 (ps_ptread): Likewise.
3795 (ps_ptwrite): Likewise.
3797 2014-07-01 Mark Wielaard <mjw@redhat.com>
3799 * dwarf2read.c (add_array_cv_type): New function.
3800 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3801 (read_tag_volatile_type): Likewise.
3803 2014-07-01 Tom Tromey <tromey@redhat.com>
3805 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3806 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3807 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3808 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3809 * command.h (cmd_cfunc_ftype): Move earlier.
3810 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3811 (add_com, add_info): Use cmd_cfunc_ftype.
3813 2014-06-30 Tom Tromey <tromey@redhat.com>
3815 * symtab.c (operator_chars): Make parameters and return type
3817 (file_matches): Make "files" const.
3818 (struct search_symbols_data) <files>: Now const.
3819 (search_symbols): Make "regexp" and "files" parameters const.
3821 (symtab_symbol_info): Remove cast.
3822 (rbreak_command): Update.
3823 * symtab.h (search_symbols): Update.
3825 2014-06-27 Yao Qi <yao@codesourcery.com>
3827 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3828 Change parameter type to 'struct thread_info *'. Caller
3830 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3832 * dummy-frame.c (struct dummy_frame_id): New.
3833 (dummy_frame_id_eq): New function.
3834 (struct dummy_frame) <id>: Change its type to 'struct
3836 (dummy_frame_push): Add parameter ptid and save it in
3838 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3840 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3842 (lookup_dummy_frame): Change parameter type to 'struct
3843 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3844 instead of frame_id_eq.
3845 (dummy_frame_pop): Add parameter ptid. Callers updated.
3846 Update comments. Compose dummy_frame_id and pass it to
3848 (dummy_frame_discard): Add parameter ptid.
3849 (dummy_frame_sniffer): Compose dummy_frame_id and call
3850 dummy_frame_id_eq instead of frame_id_eq.
3851 (fprint_dummy_frames): Print ptid.
3852 * dummy-frame.h: Remove comments.
3853 (dummy_frame_push): Add ptid in declaration.
3854 (dummy_frame_pop, dummy_frame_discard): Likewise.
3856 2014-06-26 Tom Tromey <tromey@redhat.com>
3858 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3859 * command.h (error_no_arg): Update.
3861 2014-06-26 Tom Tromey <tromey@redhat.com>
3863 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3864 (do_show_command): Make "arg" const.
3865 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3867 2014-06-26 Tom Tromey <tromey@redhat.com>
3869 * record-full.c (record_full_get_bookmark): Make "args" const.
3870 (record_full_goto_bookmark): Make "raw_bookmark" const.
3871 * record.c (record_goto): New function.
3872 (cmd_record_goto): Use it. Now static.
3873 * record.h (record_goto): Declare.
3874 (cmd_record_goto): Remove declaration.
3875 * target-delegates.c: Rebuild.
3876 * target.h (struct target_ops) <to_get_bookmark,
3877 to_goto_bookmark>: Make parameter const.
3879 2014-06-26 Tom Tromey <tromey@redhat.com>
3881 * defs.h (generic_load): Update.
3882 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3883 * monitor.c (monitor_load): Make "args" const.
3884 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3885 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3887 (mips_load): Make "file" const.
3888 * remote-sim.c (gdbsim_load): Make "args" const.
3889 * remote.c (remote_load): Make "name" const.
3890 * symfile.c (generic_load): Make "args" const.
3891 * target-delegates.c: Rebuild.
3892 * target.c (target_load): Make "arg" const.
3893 (debug_to_load): Make "args" const.
3894 * target.h (struct target_ops) <to_load>: Make parameter const.
3895 (target_load): Update.
3897 2014-06-26 Tom Tromey <tromey@redhat.com>
3900 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3901 (dwarf2_physname, read_partial_die)
3902 (guess_partial_die_structure_name, fixup_partial_die)
3903 (guess_full_die_structure_name, anonymous_struct_prefix)
3904 (dwarf2_name): Use per-BFD obstack.
3906 2014-06-26 Yao Qi <yao@codesourcery.com>
3908 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3909 dummyframe and this_id into inner block below.
3911 2014-06-26 Yao Qi <yao@codesourcery.com>
3913 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3914 with "signal_pass[0]" in the initialization of signal_pass.
3916 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3918 * record-btrace.c (record_btrace_generating_corefile)
3919 (record_btrace_prepare_to_generate_core)
3920 (record_btrace_done_generating_core): New.
3921 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3922 (record_btrace_store_registers, record_btrace_prepare_to_store):
3923 Forward request when generating a core file.
3924 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3925 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3926 to_done_generating_core.
3928 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3930 * target.h (target_ops) <to_prepare_to_generate_core>
3931 <to_done_generating_core>: New.
3932 (target_prepare_to_generate_core, target_done_generating_core): New.
3933 * target.c (target_prepare_to_generate_core)
3934 (target_done_generating_core): New.
3935 * target-delegates.c: Regenerate.
3936 * gcore.c: (write_gcore_file): Rename to ...
3937 (write_gcore_file_1): ...this.
3938 (write_gcore_file): Call target_prepare_to_generate_core
3939 and target_done_generating_core.
3941 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3943 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3944 * gcore.c (write_gcore_file): Free memory returned from
3945 make_corefile_notes.
3946 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3947 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3949 2014-06-24 Yao Qi <yao@codesourcery.com>
3951 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3952 (arm_linux_init_abi): Set skip_trampoline_code with
3953 gdbarch_skip_trampoline_code instead of
3954 find_solib_trampoline_target.
3956 2014-06-24 Yao Qi <yao@codesourcery.com>
3958 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3959 arm_skip_bx_reg returns non-zero.
3961 2014-06-24 Yao Qi <yao@codesourcery.com>
3963 * arm-tdep.c (arm_skip_bx_reg): New function.
3964 (arm_skip_stub): Call arm_skip_bx_reg.
3966 2014-06-23 Don Breazeal <donb@codesourcery.com>
3968 * MAINTAINERS: Add myself as write-after-approval maintainer.
3970 2014-06-23 Pedro Alves <palves@redhat.com>
3972 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3973 DR_CONTROL before setting DR0..DR3.
3974 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3975 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3976 bits of DR_CONTROL related to the debug register slot being
3977 disabled. If all slots are vacant, clear local slowdown as well,
3978 and assert DR_CONTROL is 0.
3980 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3982 * python/lib/gdb/command/xmethods.py
3983 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3984 current progspace only if the string "progspace" matches LOCUS_RE.
3986 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3988 Fix --with-system-readline with readline-6.3 patch 5.
3989 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3990 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3993 2014-06-20 Tom Tromey <tromey@redhat.com>
3995 * dwarf2read.c (dw2_get_real_path): Use correct type in
3997 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3999 2014-06-20 Gary Benson <gbenson@redhat.com>
4001 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4002 * common/glibc_thread_db.h: Likewise.
4003 * common/i386-cpuid.h: Likewise.
4004 * common/i386-gcc-cpuid.h: Likewise.
4005 * common/linux-btrace.h: Likewise.
4006 * common/linux-osdata.h: Likewise.
4007 * common/linux-procfs.h: Likewise.
4008 * common/linux-ptrace.h: Likewise.
4009 * common/mips-linux-watch.h: Likewise.
4010 * common/linux-btrace.c: Moved to nat.
4011 * common/linux-osdata.c: Likewise.
4012 * common/linux-procfs.c: Likewise.
4013 * common/linux-ptrace.c: Likewise.
4014 * common/mips-linux-watch.c: Likewise.
4015 * nat/gdb_thread_db.h: Moved from common.
4016 * nat/glibc_thread_db.h: Likewise.
4017 * nat/i386-cpuid.h: Likewise.
4018 * nat/i386-gcc-cpuid.h: Likewise.
4019 * nat/linux-btrace.c: Likewise.
4020 * nat/linux-btrace.h: Likewise.
4021 * nat/linux-osdata.c: Likewise.
4022 * nat/linux-osdata.h: Likewise.
4023 * nat/linux-procfs.c: Likewise.
4024 * nat/linux-procfs.h: Likewise.
4025 * nat/linux-ptrace.c: Likewise.
4026 * nat/linux-ptrace.h: Likewise.
4027 * nat/mips-linux-watch.c: Likewise.
4028 * nat/mips-linux-watch.h: Likewise.
4029 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4030 (object file files): Reordered.
4031 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4032 of glibc_thread_db.h.
4034 2014-06-20 Gary Benson <gbenson@redhat.com>
4036 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4037 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4038 (i386_dr_low): Likewise.
4039 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4040 (i386_dr_low_set_addr): Likewise.
4041 (i386_dr_low_get_addr): Likewise.
4042 (i386_dr_low_can_set_control): Likewise.
4043 (i386_dr_low_set_control): Likewise.
4044 (i386_dr_low_get_control): Likewise.
4045 (i386_dr_low_get_status): Likewise.
4046 (i386_get_debug_register_length): Likewise.
4047 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4048 (i386_dr_low): Likewise.
4049 * nat/i386-dregs.c (i386-low.h): Remove include.
4050 (i386-nat.h): Likewise.
4051 (nat/i386-dregs.h): New include.
4052 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4053 (i386_dr_low_set_addr): Likewise.
4054 (i386_dr_low_get_addr): Likewise.
4055 (i386_dr_low_can_set_control): Likewise.
4056 (i386_dr_low_set_control): Likewise.
4057 (i386_dr_low_get_control): Likewise.
4058 (i386_dr_low_get_status): Likewise.
4059 (i386_get_debug_register_length): Likewise.
4060 (debug_hw_points): Likewise.
4062 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4064 * Makefile.in (SFILES): Add d-exp.y.
4065 (YYFILES): Add d-exp.c.
4066 (YYOBJ): Add d-exp.o.
4067 (local-maintainer-clean): Delete d-exp.c.
4068 * d-exp.y: New file.
4069 * d-lang.h (d_parse): New declaration.
4070 (d_error): New declaration.
4071 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4072 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4073 PREC_ORDER operators.
4074 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4076 2014-06-19 Yao Qi <yao@codesourcery.com>
4078 * gdbthread.h (any_running): Remove the declaration.
4079 * thread.c (any_running): Remove.
4081 2014-06-19 Yao Qi <yao@codesourcery.com>
4083 * gdbthread.h (struct thread_info) <state>: Change its type to
4084 'enum thread_state'. Update comments.
4086 2014-06-19 Pedro Alves <palves@redhat.com>
4088 * gdbthread.h (ALL_THREADS): Delete.
4089 (ALL_NON_EXITED_THREADS): New macro.
4090 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4091 instead of ALL_THREADS.
4092 * infrun.c (find_thread_needs_step_over)
4093 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4094 instead of ALL_THREADS.
4095 * record-btrace.c (record_btrace_open)
4096 (record_btrace_stop_recording, record_btrace_close)
4097 (record_btrace_is_replaying, record_btrace_resume)
4098 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4099 * remote.c (append_pending_thread_resumptions): Likewise.
4100 * thread.c (thread_apply_all_command): Likewise.
4102 2014-06-19 Gary Benson <gbenson@redhat.com>
4104 * i386-nat.c (i386_stopped_by_watchpoint):
4105 Use i386_dr_stopped_by_watchpoint.
4106 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4107 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4109 2014-06-19 Gary Benson <gbenson@redhat.com>
4111 * nat/i386-dregs.c: New file.
4112 * Makefile.in (i386-dregs.o): New rule.
4113 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4114 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4115 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4116 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4117 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4118 * config/i386/go32.mh (NATDEPFILES): Likewise.
4119 * config/i386/linux.mh (NATDEPFILES): Likewise.
4120 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4121 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4122 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4123 * i386-nat.h (debug_hw_points): New declaration.
4124 * i386-nat.c (breakpoint.h): Remove include.
4125 (command.h): Likewise.
4126 (target.h): Likewise.
4127 (gdb_assert.h): Likewise.
4128 (debug_hw_points): Made nonstatic.
4129 (debug_printf): Now in i386-dregs.c.
4130 (TARGET_HAS_DR_LEN_8): Likewise.
4131 (DR_CONTROL_SHIFT): Likewise.
4132 (DR_CONTROL_SIZE): Likewise.
4133 (DR_RW_EXECUTE): Likewise.
4134 (DR_RW_WRITE): Likewise.
4135 (DR_RW_READ): Likewise.
4136 (DR_RW_IORW): Likewise.
4137 (DR_LEN_1): Likewise.
4138 (DR_LEN_2): Likewise.
4139 (DR_LEN_4): Likewise.
4140 (DR_LEN_8): Likewise.
4141 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4142 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4143 (DR_ENABLE_SIZE): Likewise.
4144 (DR_LOCAL_SLOWDOWN): Likewise.
4145 (DR_GLOBAL_SLOWDOWN): Likewise.
4146 (DR_CONTROL_RESERVED): Likewise.
4147 (I386_DR_CONTROL_MASK): Likewise.
4148 (I386_DR_VACANT): Likewise.
4149 (I386_DR_LOCAL_ENABLE): Likewise.
4150 (I386_DR_GLOBAL_ENABLE): Likewise.
4151 (I386_DR_DISABLE): Likewise.
4152 (I386_DR_SET_RW_LEN): Likewise.
4153 (I386_DR_GET_RW_LEN): Likewise.
4154 (I386_DR_WATCH_HIT): Likewise.
4155 (i386_wp_op_t): Likewise.
4156 (i386_show_dr): Likewise.
4157 (i386_length_and_rw_bits): Likewise.
4158 (i386_insert_aligned_watchpoint): Likewise.
4159 (i386_remove_aligned_watchpoint): Likewise.
4160 (i386_handle_nonaligned_watchpoint): Likewise.
4161 (i386_update_inferior_debug_regs): Likewise.
4162 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4163 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4164 (i386_region_ok_for_watchpoint):
4165 Use i386_dr_region_ok_for_watchpoint.
4166 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4168 2014-06-19 Gary Benson <gbenson@redhat.com>
4170 * i386-nat.c (i386_insert_hw_breakpoint): Use
4171 i386_insert_watchpoint.
4172 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4174 2014-06-19 Gary Benson <gbenson@redhat.com>
4176 * i386-nat.c (i386_dr_show): Renamed to
4177 i386_show_dr and made static. All uses updated.
4178 (i386_dr_length_and_rw_bits): Renamed to
4179 i386_length_and_rw_bits and made static.
4181 (i386_dr_insert_aligned_watchpoint): Renamed to
4182 i386_insert_aligned_watchpoint and made static.
4184 (i386_dr_remove_aligned_watchpoint): Renamed to
4185 i386_remove_aligned_watchpoint and made static.
4187 (i386_dr_update_inferior_debug_regs): Renamed to
4188 i386_update_inferior_debug_regs and made static.
4190 * nat/i386-dregs.h (i386_dr_show): Removed.
4191 (i386_dr_length_and_rw_bits): Likewise.
4192 (i386_dr_insert_aligned_watchpoint): Likewise.
4193 (i386_dr_remove_aligned_watchpoint): Likewise.
4194 (i386_dr_update_inferior_debug_regs): Likewise.
4196 2014-06-19 Gary Benson <gbenson@redhat.com>
4198 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4199 * configure: Regenerate.
4200 * config.in: Likewise.
4201 * main.c (signal.h): New include.
4202 (setup_alternate_signal_stack): New function.
4203 (captured_main): Call the above.
4204 * cp-support.c (signal.h): New include.
4205 (catch_demangler_crashes): New flag.
4206 (SIGJMP_BUF): New define.
4207 (SIGSETJMP): Likewise.
4208 (SIGLONGJMP): Likewise.
4209 (gdb_demangle_jmp_buf): New static global.
4210 (gdb_demangle_attempt_core_dump): Likewise.
4211 (gdb_demangle_signal_handler): New function.
4212 (gdb_demangle): If catch_demangler_crashes is set, install the
4213 above signal handler before calling bfd_demangle, and restore
4214 the original signal handler afterwards. Display the offending
4215 symbol and call demangler_warning the first time a segmentation
4217 (_initialize_cp_support): New maint set/show command.
4219 2014-06-19 Gary Benson <gbenson@redhat.com>
4221 * utils.h (resource_limit_kind): New enum.
4222 (can_dump_core): New declaration.
4223 (warn_cant_dump_core): Likewise.
4224 (dump_core): Likewise.
4225 * utils.c (dump_core): Made nonstatic. Added new
4226 parameter "limit_kind".
4227 (can_dump_core): Made nonstatic. Moved printing code to...
4228 (warn_cant_dump_core): New function.
4229 (can_dump_core_warn): Likewise.
4230 (internal_vproblem): Replace calls to can_dump_core with
4231 calls to can_dump_core_warn. Supply new argument to each.
4233 2014-06-19 Gary Benson <gbenson@redhat.com>
4235 * utils.h (demangler_vwarning): New declaration.
4236 (demangler_warning): Likewise.
4237 * utils.c (struct internal_problem)
4238 <user_settable_should_quit>: New field.
4239 <user_settable_should_dump_core>: Likewise
4240 (internal_error_problem): Add values for above new fields.
4241 (internal_warning_problem): Likewise.
4242 (demangler_warning_problem): New static global.
4243 (demangler_vwarning): New function.
4244 (demangler_warning): Likewise.
4245 (add_internal_problem_command): Selectively add commands.
4246 (_initialize_utils): New internal problem command.
4247 * maint.c (maintenance_demangler_warning): New function.
4248 (_initialize_maint_cmds): New command.
4250 2014-06-18 Tom Tromey <tromey@redhat.com>
4252 * f-valprint.c (info_common_command_for_block): Update.
4253 * symtab.h (struct general_symbol_info) <common_block>: Now
4256 2014-06-18 Tom Tromey <tromey@redhat.com>
4258 * symtab.h (struct symtab) <blockvector>: Now const.
4259 * ada-lang.c (ada_add_global_exceptions): Update.
4260 * buildsym.c (augment_type_symtab): Update.
4261 * dwarf2read.c (dw2_lookup_symbol): Update.
4262 * jit.c (finalize_symtab): Update.
4263 * jv-lang.c (add_class_symtab_symbol): Update.
4264 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4266 * objfiles.c (objfile_relocate1): Update.
4267 * psymtab.c (lookup_symbol_aux_psymtabs)
4268 (maintenance_check_psymtabs): Update.
4269 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4271 * spu-tdep.c (spu_catch_start): Update.
4272 * symmisc.c (dump_symtab_1): Update.
4273 * symtab.c (lookup_global_symbol_from_objfile)
4274 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4275 (basic_lookup_transparent_type_quick)
4276 (basic_lookup_transparent_type, find_pc_sect_symtab)
4277 (find_pc_sect_line, search_symbols): Update.
4278 * block.c (find_block_in_blockvector): Make "bl" const.
4279 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4281 (blockvector_contains_pc): Make "bv" const.
4282 (block_for_pc_sect): Update.
4283 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4284 (blockvector_contains_pc): Update.
4285 * breakpoint.c (resolve_sal_pc): Update.
4286 * inline-frame.c (block_starting_point_at): Update.
4288 2014-06-18 Tom Tromey <tromey@redhat.com>
4290 * completer.c (complete_line): Make "line_buffer" const.
4291 * completer.h (complete_line): Update.
4293 2014-06-18 Tom Tromey <tromey@redhat.com>
4295 * symtab.c (add_macro_name): Remove unneeded cast.
4297 2014-06-18 Tom Tromey <tromey@redhat.com>
4299 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4300 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4302 2014-06-18 Tom Tromey <tromey@redhat.com>
4304 * probe.c (info_probes_for_ops): Make "arg" const.
4305 * probe.h (info_probes_for_ops): Update.
4307 2014-06-18 Tom Tromey <tromey@redhat.com>
4309 * varobj.c (varobj_create): Update.
4310 * valops.c (value_of_this): Update.
4311 * tracepoint.c (add_local_symbols, scope_info): Update.
4312 * symtab.h (struct general_symbol_info) <block>: Now const.
4313 * symtab.c (skip_prologue_sal)
4314 (default_make_symbol_completion_list_break_on)
4315 (skip_prologue_using_sal): Update.
4316 * stack.h (iterate_over_block_locals)
4317 (iterate_over_block_local_vars): Update.
4318 * stack.c (print_frame_args): Update.
4319 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4321 (get_selected_block): Make return type const.
4322 * python/py-frame.c (frapy_block): Update.
4323 * python/py-block.c (gdbpy_block_for_pc): Update.
4324 * p-exp.y (%union) <bval>: Now const.
4325 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4326 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4327 * m2-exp.y (%union) <bval>: Now const.
4328 * linespec.c (get_current_search_block): Make return type const.
4329 (create_sals_line_offset, find_label_symbols): Update.
4330 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4332 (block_starting_point_at): Make "block" const.
4333 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4334 (check_exception_resume): Update.
4335 * guile/scm-frame.c (gdbscm_frame_block): Update.
4336 * guile/scm-block.c (gdbscm_lookup_block): Update.
4337 * frame.h (get_frame_block): Update.
4338 (get_selected_block): Make return type const.
4339 * frame.c (frame_id_inner): Update.
4340 * f-valprint.c (info_common_command_for_block)
4341 (info_common_command): Update.
4342 * dwarf2loc.c (dwarf2_find_location_expression)
4343 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4344 (locexpr_describe_location_piece): Update.
4345 * c-exp.y (%union) <bval>: Now const.
4346 * breakpoint.c (resolve_sal_pc): Update.
4347 * blockframe.c (get_frame_block):Make return type const.
4348 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4349 (block_innermost_frame): Update.
4350 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4351 (block_for_pc, block_for_pc_sect): Update.
4352 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4354 (block_for_pc_sect, block_for_pc): Make return type const.
4355 * ax-gdb.c (gen_expr): Update.
4356 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4357 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4358 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4359 (ada_read_var_value): Update.
4360 * ada-exp.y (struct name_info) <block>: Now const.
4362 (block_lookup): Constify.
4364 2014-06-18 Gary Benson <gbenson@redhat.com>
4366 * nat/i386-dregs.h: New file.
4367 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4368 * i386-nat.h (i386-dregs.h): New include.
4369 (DR_FIRSTADDR): Now in i386-dregs.h.
4370 (DR_LASTADDR): Likewise.
4371 (DR_NADDR): Likewise.
4372 (DR_STATUS): Likewise.
4373 (DR_CONTROL): Likewise.
4374 (i386_debug_reg_state): Likewise.
4375 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4377 2014-06-18 Don Breazeal <donb@codesourcery.com>
4379 * breakpoint.c (set_longjmp_breakpoint): Call
4380 momentary_breakpoint_from_master with additional argument.
4381 (set_longjmp_breakpoint_for_call_dummy): Call
4382 momentary_breakpoint_from_master with additional argument.
4383 (set_std_terminate_breakpoint): Call
4384 momentary_breakpoint_from_master with additional argument.
4385 (momentary_breakpoint_from_master): Add argument to function
4386 definition and use it to initialize structure member flag.
4387 (clone_momentary_breakpoint): Call
4388 momentary_breakpoint_from_master with additional argument.
4389 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4390 member flags set in momentary_breakpoint_from_master.
4392 2014-06-18 Gary Benson <gbenson@redhat.com>
4394 * i386-nat.c (i386_show_dr): Renamed to
4395 i386_dr_show and made nonstatic. All uses updated.
4396 (i386_length_and_rw_bits): Renamed to
4397 i386_dr_length_and_rw_bits and made nonstatic.
4399 (i386_insert_aligned_watchpoint): Renamed to
4400 i386_dr_insert_aligned_watchpoint and made nonstatic.
4402 (i386_remove_aligned_watchpoint): Renamed to
4403 i386_dr_remove_aligned_watchpoint and made nonstatic.
4405 (i386_update_inferior_debug_regs): Renamed to
4406 i386_dr_update_inferior_debug_regs and made nonstatic.
4409 2014-06-18 Gary Benson <gbenson@redhat.com>
4411 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4412 (i386_dr_low_can_set_control): Likewise.
4413 (i386_dr_low_set_addr): Likewise.
4414 (i386_dr_low_set_control): Likewise.
4415 (i386_dr_low_get_addr): Likewise.
4416 (i386_dr_low_get_status): Likewise.
4417 (i386_dr_low_get_control): Likewise.
4418 (i386_insert_aligned_watchpoint): Use new macros.
4419 (i386_update_inferior_debug_regs): Likewise.
4420 (i386_stopped_data_address): Likewise.
4422 2014-06-18 Gary Benson <gbenson@redhat.com>
4424 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4425 New parameter. All uses updated.
4427 2014-06-18 Gary Benson <gbenson@redhat.com>
4429 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4432 2014-06-18 Gary Benson <gbenson@redhat.com>
4434 * i386-nat.c (debug_printf): New macro.
4435 (i386_get_debug_register_length): Likewise.
4436 (TARGET_HAS_DR_LEN_8): Use above macro.
4437 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4438 and printf_unfiltered. Use phex to format values.
4440 2014-06-18 Gary Benson <gbenson@redhat.com>
4442 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4445 2014-06-18 Gary Benson <gbenson@redhat.com>
4447 * i386-nat.c: Comment changes.
4449 2014-06-18 Gary Benson <gbenson@redhat.com>
4451 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4453 2014-06-18 Gary Benson <gbenson@redhat.com>
4455 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4456 (i386_insert_aligned_watchpoint): Likewise.
4457 (i386_remove_aligned_watchpoint): Likewise.
4458 (i386_handle_nonaligned_watchpoint): Likewise.
4460 2014-06-18 Gary Benson <gbenson@redhat.com>
4462 * i386-nat.c: Whitespace changes.
4464 2014-06-17 Samuel Bronson <naesten@gmail.com>
4466 * MAINTAINERS: Update Roland McGrath's email address.
4467 Thanks to Sergio Durigan Junior for pointing out that he left
4468 Red Hat a while ago, and giving me a current address.
4470 2014-06-17 Tom Tromey <tromey@redhat.com>
4472 * utils.h (savestring): Remove declaration.
4474 2014-06-17 Tom Tromey <tromey@redhat.com>
4476 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4478 2014-06-16 Keith Seitz <keiths@redhat.com>
4481 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4482 to update the varobj if inferior_ptid is null_ptid.
4484 2014-06-16 Tom Tromey <tromey@redhat.com>
4486 * target.h (struct target_ops) <to_info_proc>: Make parameter
4488 (target_info_proc): Update.
4489 * target.c (target_info_proc): Make "args" const.
4490 * procfs.c (procfs_info_proc): Update.
4491 * linux-tdep.c (linux_info_proc): Update.
4492 (linux_core_info_proc_mappings): Make "args" const.
4493 (linux_core_info_proc): Update.
4494 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4495 * gdbarch.c: Rebuild.
4496 * gdbarch.h: Rebuild.
4497 * corelow.c (core_info_proc): Update.
4499 2014-06-16 Tom Tromey <tromey@redhat.com>
4501 * target.h (struct target_ops) <to_disconnect>: Make parameter
4503 (target_disconnect): Update.
4504 * target.c (target_disconnect): Make "args" const.
4505 * target-delegates.c: Rebuild.
4506 * remote.c (remote_disconnect): Update.
4507 * record.h (record_disconnect): Update.
4508 * record.c (record_disconnect): Update.
4509 * inf-child.c (inf_child_disconnect): Update.
4511 2014-06-16 Tom Tromey <tromey@redhat.com>
4513 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4514 * target.c (debug_to_rcmd, default_rcmd): Update.
4515 * target-delegates.c: Rebuild.
4516 * remote.c (remote_rcmd): Update.
4517 * monitor.c (monitor_rcmd): Update.
4519 2014-06-16 Pedro Alves <palves@redhat.com>
4521 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4522 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4523 have OBJF_SHARED set.
4524 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4525 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4526 instead of OBJF_USERLOADED.
4527 * objfiles.h (OBJF_SHARED): Update comment.
4528 (userloaded_objfile_contains_address_p): Rename to ...
4529 (shared_objfile_contains_address_p): ... this, and update
4531 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4533 (remove_symbol_file_command): Skip objfiles that don't have
4536 2014-06-16 Tom Tromey <tromey@redhat.com>
4538 * minsyms.h (prim_record_minimal_symbol)
4539 (prim_record_minimal_symbol_and_info): Update comments.
4541 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4543 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4544 or --without-guile, according to how GDB was built.
4546 2014-06-13 Tom Tromey <tromey@redhat.com>
4548 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4550 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4552 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4554 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4555 help_list.Pass all_commands, not -1, to help_list.
4556 * cli/cli-dump.c (dump_command, append_command)
4557 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4558 (binary_dump_command, binary_append_command): Pass all_commands,
4559 not -1, to help_list.
4560 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4562 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4564 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4566 * top.c (set_history): Pass all_commands, not -1, to help_list.
4567 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4568 all_commands, not -1, to help_list.
4569 * symfile.c (overlay_command): Pass all_commands, not -1, to
4571 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4573 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4575 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4577 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4578 not -1, to help_list.
4579 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4580 not -1, to help_list.
4581 * maint.c (maintenance_command, maintenance_info_command)
4582 (maintenance_print_command, maintenance_set_cmd): Pass
4583 all_commands, not -1, to help_list.
4584 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4586 * language.c (set_check): Pass all_commands, not -1, to help_list.
4587 * infcmd.c (unset_command): Pass all_commands, not -1, to
4589 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4591 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4593 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4595 * breakpoint.c (save_command): Pass all_commands, not -1, to
4597 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4598 all_commands, not -1, to help_list.
4600 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4602 * regcache.c (struct register_to_invalidate): New structure.
4603 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4605 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4607 2014-06-12 Yao Qi <yao@codesourcery.com>
4609 * varobj.c (varobj_get_num_children): Call
4610 varobj_is_dynamic_p.
4611 (varobj_list_children): Likewise.
4612 (varobj_update): Likewise. Update comments.
4614 2014-06-12 Yao Qi <yao@codesourcery.com>
4616 * varobj.c (varobj_pretty_printed_p): Rename to ...
4617 (varobj_is_dynamic_p): ... this. New function.
4618 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4619 (varobj_is_dynamic_p): Declare.
4620 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4621 (mi_print_value_p, varobj_update_one): Likewise.
4623 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4624 Yao Qi <yao@codesourcery.com>
4626 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4627 (varobj_get_iterator): Wrap up code for pretty-printer by
4628 "#if HAVE_PYTHON" and "#endif".
4629 (update_dynamic_varobj_children): Likewise.
4631 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4632 Yao Qi <yao@codesourcery.com>
4634 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4635 gdb_python_initialized is false. Move some code from varobj.c.
4636 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4637 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4638 (struct varobj_item): Moved to varobj-iter.h".
4639 (varobj_clear_saved_item): New function.
4640 (update_dynamic_varobj_children): Move python-related code to
4642 (free_variable): Call varobj_clear_saved_item and
4645 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4646 Yao Qi <yao@codesourcery.com>
4648 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4649 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4650 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4651 (py-varobj.o): New rule.
4652 * python/py-varobj.c: New file.
4653 * python/python-internal.h (py_varobj_get_iterator): Declare.
4654 * varobj-iter.h: New file.
4655 * varobj.c: Include "varobj-iter.h"
4656 (struct varobj) <child_iter>: Change its type from "PyObject *"
4657 to "struct varobj_iter *".
4658 <saved_item>: Likewise.
4659 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4660 [HAVE_PYTHON] (varobj_get_iterator): New function.
4661 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4662 python-specific code to python/py-varobj.c.
4663 (install_visualizer): Call varobj_iter_delete instead of
4665 * varobj.h (varobj_ensure_python_env): Declare.
4667 2014-06-12 Yao Qi <yao@codesourcery.com>
4669 * varobj.c (struct varobj_item): New structure.
4670 (create_child_with_value): Update declaration.
4671 (varobj_add_child): Replace arguments 'name' and 'value' with
4672 'item'. All callers updated.
4673 (install_dynamic_child): Likewise.
4674 (update_dynamic_varobj_children): Likewise.
4675 (varobj_add_child): Likewise.
4676 (create_child_with_value): Likewise.
4678 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4680 * NEWS: Create a new section for the next release branch.
4681 Rename the section of the current branch, now that it has
4684 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4686 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4687 * version.in: Bump version to 7.8.50.DATE-cvs.
4689 2014-06-11 Pedro Alves <palves@redhat.com>
4692 * ser-mingw.c (net_windows_socket_check_pending): New function.
4693 (net_windows_select_thread): Ignore spurious wakeups. Use
4694 net_windows_socket_check_pending.
4695 (net_windows_wait_handle): Check for pending events with
4696 ioctlsocket, through net_windows_socket_check_pending, instead of
4697 checking the socket's event.
4699 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4701 * python/python-internal.h (gdb_PyObject_GetAttrString)
4702 (gdb_PyObject_HasAttrString): New inline function definitions.
4703 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4704 char * of the second argument to PyObject_GetAttrString.
4706 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4708 * serial.c (serial_write): Fix index of character to be printed
4709 in call to serial_logchar when serial debug traces are enabled.
4711 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4713 * gdbtypes (resolve_dynamic_range): Add function description.
4715 2014-06-09 Pedro Alves <palves@redhat.com>
4717 * linux-nat.c (linux_child_follow_fork): Initialize status with
4718 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4719 inner block. Only pass the signal to PTRACE_DETACH if in pass
4722 2014-06-09 Gary Benson <gbenson@redhat.com>
4724 * common/signals.c (gdb_signal_from_host): Reorder to separate
4725 the always-available ANSI-standard signals from the signals that
4727 (do_gdb_signal_to_host): Likewise.
4728 * proc-events.c (signal_table): Likewise.
4730 2014-06-08 Hui Zhu <hui@codesourcery.com>
4732 * common/linux-ptrace.c (linux_disable_event_reporting): New
4734 * common/linux-ptrace.h (linux_disable_event_reporting): New
4736 * linux-nat.c (linux_child_follow_fork): Do a single step before
4739 2014-06-07 Keith Seitz <keiths@redhat.com>
4743 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4744 from symbol_matches_domain in symtab.c. All local callers
4745 of symbol_matches_domain updated.
4746 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4747 search STRUCT_DOMAIN.
4748 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4749 independently. standard_lookup will do that automatically.
4750 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4751 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4752 (cp_lookup_symbol_in_namespace): Likewise.
4753 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4754 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4755 may return a STRUCT_DOMAIN match.
4756 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4757 * cp-support.c: Include language.h.
4758 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4760 * psymtab.c (match_partial_symbol): Compare the requested
4761 domain with the symbol's domain directly.
4762 (lookup_partial_symbol): Likewise.
4763 * symtab.c (lookup_symbol_in_language): Explain when/why
4764 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4765 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4766 appropriate languages.
4767 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4768 and moved to ada-lang.c
4769 (lookup_block_symbol): Explain that this function only returns
4770 symbol matching the requested DOMAIN.
4771 Compare the requested domain with the symbol's domain directly.
4772 (iterate_over_symbols): Compare the requested domain with the
4773 symbol's domain directly.
4774 * symtab.h (symbol_matches_domain): Remove.
4776 2014-06-06 Doug Evans <xdje42@gmail.com>
4778 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4779 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4780 (gdbscm_guile_version_is_at_least): Declare.
4781 (gdbscm_scm_string_to_int): Declare.
4782 * guile/guile.c (gdbscm_guile_major_version): New global.
4783 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4784 (guile_datadir): New static global.
4785 (gdbscm_guile_data_directory): New function.
4786 (initialize_scheme_side): Update.
4787 (misc_guile_functions): Add guile-data-directory.
4788 (initialize_gdb_module): Fetch guile version number.
4789 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4790 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4791 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4792 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4794 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4795 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4796 * guile/scm-value.c (gdbscm_value_to_string): Only call
4797 scm_port_conversion_strategy if Guile version >= 2.0.6.
4799 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4801 * main.c (print_gdb_help): Add -q and --silent.
4803 2014-06-06 Gary Benson <gbenson@redhat.com>
4805 * common/signals.c: Remove preprocessor conditionals for
4806 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4807 SIGSEGV and SIGTERM.
4808 * proc-events.c: Likewise.
4810 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4812 * symfile.c (symfile_free_objfile): Remove restriction to
4814 * symfile-mem.c (symbol_file_add_from_memory): Call
4815 add_target_sections_of_objfile.
4817 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4819 * guile/scm-value.c (gdbscm_history_append_x): Use
4820 'vlscm_get_value_smob_arg_unsafe' instead of
4821 'vlscm_scm_to_value'.
4823 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4826 * utils.c (printchar): Don't escape at all if quoter is NUL.
4827 Update function documentation to clarify effect of parameter
4829 * remote.c (escape_buffer): Pass '\\' as the quoter to
4830 fputstrn_unfiltered.
4831 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4832 generate the output.
4833 (mi_solib_unloaded): Same.
4835 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4837 * development.sh: Delete.
4838 * Makefile.in (config.status): Adjust dependency on development.sh.
4839 * configure.ac: Adjust development.sh source call.
4840 * configure: Regenerate.
4842 2014-06-04 Doug Evans <xdje42@gmail.com>
4844 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4845 is_scheme_bkpt, spec.
4846 (bpscm_make_breakpoint_smob): Initialize new members.
4847 (gdbscm_create_breakpoint_x): Split into two ...
4848 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4849 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4850 (scheme_function breakpoint_functions): Update.
4851 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4852 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4853 register-breakpoint!.
4855 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4858 * mem-break.c (z_type_supported): Return zero if
4859 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4861 2014-06-04 Tom Tromey <tromey@redhat.com>
4863 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4864 value_from_contents_and_address_unresolved.
4865 (ada_template_to_fixed_record_type_1): Likewise.
4866 (ada_which_variant_applies): Likewise.
4867 * value.h (value_from_contents_and_address_unresolved): Declare.
4868 * value.c (value_from_contents_and_address_unresolved): New
4870 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4871 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4872 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4874 2014-06-04 Tom Tromey <tromey@redhat.com>
4876 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4878 2014-06-04 Tom Tromey <tromey@redhat.com>
4880 * procfs.c (procfs_attach): Make "args" const.
4881 * windows-nat.c (windows_attach): Make "args" const.
4882 * nto-procfs.c (procfs_attach): Make "args" const.
4883 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4884 * go32-nat.c (go32_attach): Make "args" const.
4885 * gnu-nat.c (gnu_attach): Make "args" const.
4886 * darwin-nat.c (darwin_attach): Make "args" const.
4887 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4888 * linux-nat.c (linux_nat_attach): Make "args" const.
4889 * remote.c (extended_remote_attach_1, extended_remote_attach):
4891 * target.h (struct target_ops) <to_attach>: Make "args" const.
4892 (find_default_attach): Likewise.
4893 * utils.c (parse_pid_to_attach): Make "args" const.
4894 * utils.h (parse_pid_to_attach): Update.
4896 2014-06-04 Tom Tromey <tromey@redhat.com>
4898 * target-delegates.c: Rebuild.
4899 * target.c (default_thread_address_space): New function.
4900 (target_thread_address_space): Simplify.
4901 * target.h (struct target_ops) <to_thread_address_space>: Add
4902 TARGET_DEFAULT_FUNC.
4904 2014-06-04 Doug Evans <xdje42@gmail.com>
4906 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4908 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4910 * record-btrace.c: Include event-loop.h and inf-loop.h.
4911 (record_btrace_resume_exec_dir)
4912 (record_btrace_async_inferior_event_handler)
4913 (record_btrace_handle_async_inferior_event): New.
4914 (record_btrace_open): Create async event handler.
4915 (record_btrace_close): Delete async event handler.
4916 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4917 Mark async event handler.
4918 (record_btrace_execution_direction): New.
4919 (init_record_btrace_ops): Initialize to_execution_direction.
4921 2014-06-03 Doug Evans <xdje42@gmail.com>
4923 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4924 (gdbscm_make_parameter): Ditto.
4926 2014-06-03 Doug Evans <dje@google.com>
4928 * exec.c (exec_close_1): Call clear_section_table instead of
4929 resize_section_table.
4930 (clear_section_table): New function.
4931 (resize_section_table): Make static. Rename arg num_added to
4933 * exec.h (clear_section_table): Declare.
4934 (resize_section_table): Delete.
4935 * progspace.c (release_program_space): Call clear_section_table
4936 instead of resize_section_table.
4938 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4940 * NEWS (Python Scripting): Add entry about the new xmethods
4943 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4945 * python/py-xmethods.c: New file.
4946 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4947 (objfpy_dealloc): XDECREF on the new xmethods field.
4948 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4950 (objfpy_get_xmethods): New function.
4951 (objfile_getset): New entry 'xmethods'.
4952 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4953 (pspy_dealloc): XDECREF on the new xmethods field.
4954 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4956 (pspy_get_xmethods): New function.
4957 (pspace_getset): New entry 'xmethods'.
4958 * python/python-internal.h: Add declarations for new functions.
4959 * python/python.c (_initialize_python): Invoke
4960 gdbpy_initialize_xmethods.
4961 * python/lib/gdb/__init__.py (xmethods): New
4963 * python/lib/gdb/xmethod.py: New file.
4964 * python/lib/gdb/command/xmethods.py: New file.
4966 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4968 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4969 best match method returned by find_overload_match is an xmethod.
4970 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4971 the best matching operator returned by find_overload_match is an
4973 * valops.c: #include "extension.h".
4974 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4975 Return void. The list of matching source methods is returned in
4976 "fn_list" and a vector of matching debug method workers is
4977 returned in "xm_worker_vec". Update all callers.
4978 (value_find_oload_method_list): Likewise.
4979 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4980 non-NULL, then the index of the best matching method in this
4981 vector is returned. Update all callers.
4982 (find_overload_match): Include xmethods while performing overload
4985 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4987 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4988 * extension-priv.h (struct extension_language_ops): Add the
4990 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4991 get_matching_xmethod_workers, get_xmethod_argtypes,
4992 invoke_xmethod, free_xmethod_worker,
4993 free_xmethod_worker_vec): New functions.
4994 * extension.h: #include "common/vec.h".
4995 New function declarations.
4996 (struct xmethod_worker): New struct.
4997 (VEC (xmethod_worker_ptr)): New vector type.
4998 (xmethod_worker_ptr): New typedef.
4999 (xmethod_worker_vec): Likewise.
5000 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5002 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5003 (struct builtin_type): New field "xmethod".
5004 * valarith.c (value_ptradd): Assert that the value argument is not
5006 * valops.c (value_must_coerce_to_target): Return 0 for
5007 lval_xcallable values.
5008 * value.c (struct value): New field XM_WORKER in the field
5010 (value_address, value_raw_address): Return 0 for lval_xcallable
5012 (set_value_address): Assert that the value is not an
5014 (value_free): Free the associated xmethod worker when freeing
5015 lval_xcallable values.
5016 (set_value_component_location): Assert that the WHOLE value is not
5018 (value_of_xmethod, call_xmethod): New functions.
5019 * value.h: Declare "struct xmethod_worker".
5020 Declare new functions value_of_xmethod, call_xmethod.
5022 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5023 Pedro Alves <palves@redhat.com>
5025 PR breakpoints/17000
5026 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5027 New function, extracted from software_breakpoint_inserted_here_p.
5028 (software_breakpoint_inserted_here_p): Replace factored out code
5029 by call to find_non_raw_software_breakpoint_inserted_here.
5030 (bp_target_info_copy_insertion_state): New function.
5031 (bkpt_insert_location): Handle the case of a single-step
5032 breakpoint already inserted at the same address.
5033 (bkpt_remove_location): Handle the case of a single-step
5034 breakpoint still inserted at the same address.
5035 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5036 breakpoint already inserted at the same address.
5037 (deprecated_remove_raw_breakpoint): Handle the case of a
5038 non-raw breakpoint still inserted at the same address.
5039 (find_single_step_breakpoint): New function, extracted from
5040 single_step_breakpoint_inserted_here_p.
5041 (find_single_step_breakpoint): New function,
5042 factored out from single_step_breakpoint_inserted_here_p.
5043 (single_step_breakpoint_inserted_here_p): Reimplement.
5045 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5047 Pushed by Joel Brobecker <brobecker@adacore.com>
5048 * source.c (show_substitute_path_command): Fix display of matching
5051 2014-06-03 Gary Benson <gbenson@redhat.com>
5053 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5055 2014-06-02 Doug Evans <xdje42@gmail.com>
5057 Add parameter support for Guile.
5058 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5059 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5060 (scm-param.o): New rule.
5061 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5062 (gdbscm_misc_error): Declare.
5063 (gdbscm_canonicalize_command_name): Declare.
5064 (gdbscm_scm_to_host_string): Declare.
5065 (gdbscm_scm_from_host_string): Declare.
5066 (gdbscm_initialize_parameters): Declare.
5067 * guile/guile.c (initialize_gdb_module): Call
5068 gdbscm_initialize_parameters.
5069 * guile/lib/gdb.scm: Export parameter symbols.
5070 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5071 cmdscm_canonicalize_name and made public. All callers updated.
5072 * guile/scm-exception.c (gdbscm_misc_error): New function.
5073 * guile/scm-param.c: New file.
5074 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5075 (gdbscm_scm_to_host_string): New function.
5076 (gdbscm_scm_from_host_string): New function.
5077 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5079 2014-06-02 Doug Evans <xdje42@gmail.com>
5081 Add command support for Guile.
5082 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5083 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5084 (scm-cmd.o): New rule.
5085 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5086 (gdbscm_user_error_p): Declare.
5087 (gdbscm_parse_command_name): Declare.
5088 (gdbscm_valid_command_class_p): Declare.
5089 (gdbscm_initialize_commands): Declare.
5090 * guile/guile.c (initialize_gdb_module): Call
5091 gdbscm_initialize_commands.
5092 * guile/lib/gdb.scm: Export command symbols.
5093 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5094 (throw-user-error): New function.
5095 * guile/scm-cmd.c: New file.
5096 * guile/scm-exception.c (user_error_symbol): New static global.
5097 (gdbscm_user_error_p): New function.
5098 (gdbscm_initialize_exceptions): Set user_error_symbol.
5099 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5101 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5103 * top.c (command_loop): Handle comments here...
5104 (command_line_input): ... not here.
5106 2014-06-02 Doug Evans <xdje42@gmail.com>
5108 Add progspace support for Guile.
5109 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5110 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5111 (scm-progspace.o): New rule.
5112 * guile/guile-internal.h (pspace_smob): New typedef.
5113 (psscm_pspace_smob_pretty_printers): Declare.
5114 (psscm_pspace_smob_from_pspace): Declare.
5115 (psscm_scm_from_pspace): Declare.
5116 * guile/guile.c (initialize_gdb_module): Call
5117 gdbscm_initialize_pspaces.
5118 * guile/lib/gdb.scm: Export progspace symbols.
5119 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5121 (append-pretty-printer!): Ditto.
5122 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5124 * guile/scm-progspace.c: New file.
5126 2014-06-03 Alan Modra <amodra@gmail.com>
5128 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5129 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5131 2014-06-02 Doug Evans <dje@google.com>
5133 Add support for skeletonless type units.
5134 * dwarf2read.c (struct dwarf2_per_objfile): New member
5135 n_allocated_type_units.
5136 (struct dwarf2_per_objfile) <tu_stats>: New member
5137 nr_all_type_units_reallocs.
5138 (create_signatured_type_table_from_index): Initialize
5139 n_allocated_type_units
5140 (create_all_type_units): Ditto.
5141 (add_type_unit): Move up in file. New arg slot.
5142 All callers updated. Increase space for all_type_units more
5144 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5145 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5146 (lookup_dwp_signatured_type): Ditto.
5147 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5148 All callers updated.
5149 (build_type_psymtabs_1): Leave type_unit_groups as
5150 NULL if no TUs present.
5151 (print_tu_stats): New function.
5152 (process_skeletonless_type_unit): New function.
5153 (process_dwo_file_for_skeletonless_type_units): New
5155 (process_skeletonless_type_units): New function.
5156 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5157 Call print tu_stats if debugging enabled.
5159 2014-06-02 Pedro Alves <palves@redhat.com>
5161 * breakpoint.c (build_target_command_list): Don't build a command
5162 list if we have any duplicate location that isn't a dprintf.
5164 2014-06-02 Pedro Alves <palves@redhat.com>
5166 * breakpoint.c (dprintf_breakpoint_hit): New function.
5167 (initialize_breakpoint_ops): Install it as dprintf's
5168 breakpoint_hit method.
5170 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5172 * source.c (substitute_path_rule_matches): Simplify using
5173 filename_ncmp instead of FILENAME_CMP.
5175 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5177 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5179 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5181 * configure.ac: When Guile is available, check for the
5182 availability of 'scm_new_smob'.
5183 * configure, config.h.in: Regenerate.
5184 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5187 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5189 * frame.c (struct frame_info): Add stop_string field.
5190 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5191 (get_prev_frame_always): Old content moved into
5192 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5193 TRY_CATCH, handle MEMORY_ERROR exceptions.
5194 (frame_stop_reason_string): New function definition.
5195 * frame.h (unwind_stop_reason_to_string): Extend comment to
5196 mention frame_stop_reason_string.
5197 (frame_stop_reason_string): New function declaration.
5198 * stack.c (frame_info): Switch to frame_stop_reason_string.
5199 (backtrace_command_1): Switch to frame_stop_reason_string.
5200 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5201 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5202 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5204 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5206 * frame.c (frame_stop_reason_string): Rename to ...
5207 (unwind_stop_reason_to_string): this.
5208 * frame.h (frame_stop_reason_string): Rename to ...
5209 (unwind_stop_reason_to_string): this.
5210 * stack.c (frame_info): Update call to frame_stop_reason_string.
5211 (backtrace_command_1): Likewise.
5212 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5213 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5215 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5217 * frame.c (remove_prev_frame): New function.
5218 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5221 2014-05-29 Pedro Alves <palves@redhat.com>
5223 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5224 and make it const. When a single-step decays to a continue,
5225 clear 'step', not 'hw_step'. Pass whether the caller wanted
5226 to step to user_visible_resume_ptid, not what we ask the
5229 2014-05-29 Pedro Alves <palves@redhat.com>
5231 * infrun.c (process_event_stop_test, handle_step_into_function)
5232 (handle_step_into_function_backward): Adjust.
5233 Don't set the even thread's stop_step and call stop_waiting before
5234 calling end_stepping_range. Instead do that ...
5235 (end_stepping_range): ... here. Take an ecs pointer parameter.
5237 2014-05-29 Pedro Alves <palves@redhat.com>
5239 * infrun.c (stop_stepping): Rename to ...
5240 (stop_waiting): ... this.
5241 (proceed): Update comment.
5242 (process_event_stop_test, handle_inferior_event)
5243 (handle_signal_stop, handle_step_into_function)
5244 (handle_step_into_function_backward): Update.
5246 2014-05-29 Pedro Alves <palves@redhat.com>
5248 * infcall.c (run_inferior_call): Don't check whether the current
5249 thread is running after the proceed call.
5251 2014-05-29 Pedro Alves <palves@redhat.com>
5252 Tom Tromey <tromey@redhat.com>
5254 * NEWS: Mention "maint set target-async", "set mi-async", and that
5255 background execution commands are now always available.
5256 * target.h (target_async_permitted): Update comment.
5257 * target.c (target_async_permitted, target_async_permitted_1):
5259 (set_target_async_command): Rename to ...
5260 (maint_set_target_async_command): ... this.
5261 (show_target_async_command): Rename to ...
5262 (maint_show_target_async_command): ... this.
5263 (_initialize_target): Adjust.
5264 * infcmd.c (prepare_execution_command): Make extern.
5265 * inferior.h (prepare_execution_command): Declare.
5266 * infrun.c (set_observer_mode): Leave target async alone.
5267 * mi/mi-interp.c (mi_interpreter_init): Install
5268 mi_on_sync_execution_done as sync_execution_done observer.
5269 (mi_on_sync_execution_done): New function.
5270 (mi_execute_command_input_handler): Don't print the prompt if we
5271 just started a synchronous command with an async target.
5272 (mi_on_resume): Check sync_execution before printing prompt.
5273 * mi/mi-main.h (mi_async_p): Declare.
5274 * mi/mi-main.c: Include gdbcmd.h.
5275 (mi_async_p): New function.
5276 (mi_async, mi_async_1): New globals.
5277 (set_mi_async_command, show_mi_async_command, mi_async): New
5279 (exec_continue): Call prepare_execution_command.
5280 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5281 (mi_execute_async_cli_command): Use mi_async_p.
5282 (_initialize_mi_main): Install "set mi-async". Make
5283 "target-async" a deprecated alias.
5285 2014-05-29 Pedro Alves <palves@redhat.com>
5287 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5288 (_initialize_cli_interp): Adjust.
5289 * event-loop.c: Include "observer.h".
5290 (start_event_loop): Notify 'command_error' observers instead of
5291 calling display_gdb_prompt. Remove FIXME comment.
5292 * event-top.c (display_gdb_prompt): Remove call into the
5294 * inf-loop.c: Include "observer.h".
5295 (inferior_event_handler): Notify 'command_error' observers instead
5296 of calling display_gdb_prompt.
5297 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5298 observers instead of calling display_gdb_prompt.
5299 * interps.c (interp_set): Don't call display_gdb_prompt.
5300 (current_interp_display_prompt_p): Delete.
5301 * interps.h (interp_prompt_p): Delete declaration.
5302 (interp_prompt_p_ftype): Delete.
5303 (struct interp_procs) <prompt_proc_p>: Delete field.
5304 (current_interp_display_prompt_p): Delete declaration.
5305 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5306 (_initialize_mi_interp): Adjust.
5307 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5308 'command_error' observers.
5309 (tui_on_sync_execution_done, tui_on_command_error): New
5311 (tui_display_prompt_p): Delete.
5312 (_initialize_tui_interp): Adjust.
5314 2014-05-29 Pedro Alves <palves@redhat.com>
5317 * cli/cli-interp.c: Include infrun.h and observer.h.
5318 (cli_uiout, cli_interp): New globals.
5319 (cli_on_signal_received, cli_on_end_stepping_range)
5320 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5322 (cli_interpreter_init): Install them as 'end_stepping_range',
5323 'signal_received' 'signal_exited', 'exited' and 'no_history'
5325 (_initialize_cli_interp): Remove cli_interp local.
5326 * infrun.c (handle_inferior_event): Call the several stop reason
5327 observers instead of printing the stop reason directly.
5328 (end_stepping_range): New function.
5329 (print_end_stepping_range_reason, print_signal_exited_reason)
5330 (print_exited_reason, print_signal_received_reason)
5331 (print_no_history_reason): Make static, and add an uiout
5332 parameter. Print to that instead of to CURRENT_UIOUT.
5333 * infrun.h (print_end_stepping_range_reason)
5334 (print_signal_exited_reason, print_exited_reason)
5335 (print_signal_received_reason print_no_history_reason): New
5337 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5339 <cli_uiout>: New field.
5340 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5341 uiout for CLI output. Install 'signal_received',
5342 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5344 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5345 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5346 (mi_on_no_history): New functions.
5347 (ui_out_free_cleanup): Delete function.
5348 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5349 instead use the one already stored in the MI interpreter data.
5350 (mi_ui_out): Adjust.
5351 * tui/tui-interp.c: Include infrun.h and observer.h.
5352 (tui_interp): New global.
5353 (tui_on_signal_received, tui_on_end_stepping_range)
5354 (tui_on_signal_exited, tui_on_exited)
5355 (tui_on_no_history): New functions.
5356 (tui_init): Install them as 'end_stepping_range',
5357 'signal_received' 'signal_exited', 'exited' and 'no_history'
5359 (_initialize_tui_interp): Delete tui_interp local.
5361 2014-05-29 Pedro Alves <palves@redhat.com>
5364 * linux-nat.c (linux_nat_resume_callback): Rename the second
5365 parameter to 'except'. Skip LP if it points to EXCEPT.
5366 (linux_nat_resume): Don't mark the event lwp as not stopped
5367 before resuming sibling lwps. Instead ask
5368 linux_nat_resume_callback to skip the event lwp. Mark it as not
5369 stopped after actually resuming it.
5370 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5372 (wait_lwp): Mark the lwp as stopped here.
5373 (stop_wait_callback): Mark the lwp as not stopped right after
5374 resuming it. Don't mark lwps as stopped here.
5375 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5376 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5378 2014-05-29 Pedro Alves <palves@redhat.com>
5381 * infrun.c (resume): Determine how much to resume depending on
5382 whether the caller wanted a step, not whether we can hardware step
5383 the target. Mark all threads that we intend to run as running,
5384 unless we're calling an inferior function.
5385 (normal_stop): If the thread is running an infcall, don't finish
5387 * target.c (target_resume): Don't mark threads as running here.
5389 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5391 * serial.c (_initialize_serial): Remove support for
5392 the "set remotebaud" and "show remotebaud" commands.
5393 * NEWS: Add entry documenting the removal of that command.
5395 2014-05-28 Yao Qi <yao@codesourcery.com>
5397 * charset.c: Fix typo in comments.
5399 2014-05-27 Gary Benson <gbenson@redhat.com>
5401 * utils.c (internal_vproblem): Prompt for a bug report.
5403 2014-05-26 Andy Wingo <wingo@igalia.com>
5405 * guile/scm-arch.c (arscm_mark_arch_smob):
5406 * guile/scm-block.c (bkscm_mark_block_smob)
5407 (bkscm_mark_block_syms_progress_smob):
5408 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5409 * guile/scm-exception.c (exscm_mark_exception_smob):
5410 * guile/scm-frame.c (frscm_mark_frame_smob):
5411 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5412 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5413 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5414 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5415 (ppscm_mark_pretty_printer_worker_smob):
5416 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5417 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5418 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5419 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5421 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5424 2014-05-26 Andy Wingo <wingo@igalia.com>
5425 Doug Evans <xdje42@gmail.com>
5427 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5428 empty_base_class. All uses updated.
5429 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5430 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5432 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5433 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5434 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5435 (gdbscm_gsmob_has_property_p, add_property_name)
5436 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5437 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5438 (gdb-object-has-property?, gdb-object-properties): Remove.
5439 (gdb-object-kind): Renamed from gsmob-kind.
5441 2014-05-26 Andy Wingo <wingo@igalia.com>
5443 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5444 * configure: Regenerate.
5446 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5448 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5450 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5452 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5453 (replay_memory_access_read_only, replay_memory_access_read_write)
5454 (replay_memory_access_types, replay_memory_access)
5455 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5456 (cmd_set_record_btrace, cmd_show_record_btrace)
5457 (cmd_show_replay_memory_access): New.
5458 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5459 (record_btrace_remove_breakpoint): Replace
5460 record_btrace_allow_memory_access with replay_memory_access.
5461 (_initialize_record_btrace): Add commands.
5462 * NEWS: Announce it.
5464 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5466 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5468 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5470 * MAINTAINERS (Write After Approval): Move self back from
5473 2014-05-22 Pedro Alves <palves@redhat.com>
5475 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5476 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5477 (disable_randomization, enum exec_direction_kind)
5478 (execution_direction, stop_registers, start_remote)
5479 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5480 (wait_for_inferior, normal_stop, get_last_target_status)
5481 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5482 (insert_step_resume_breakpoint_at_sal)
5483 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5484 (set_step_info, print_stop_event, signal_stop_state)
5485 (signal_print_state, signal_pass_state, signal_stop_update)
5486 (signal_print_update, signal_pass_update)
5487 (update_signals_program_target, clear_exit_convenience_vars)
5488 (displaced_step_dump_bytes, update_observer_mode)
5489 (signal_catch_update, gdb_signal_from_command): Move
5491 * infrun.h: ... to this new file.
5492 * amd64-tdep.c: Include infrun.h.
5493 * annotate.c: Include infrun.h.
5494 * arch-utils.c: Include infrun.h.
5495 * arm-linux-tdep.c: Include infrun.h.
5496 * arm-tdep.c: Include infrun.h.
5497 * break-catch-sig.c: Include infrun.h.
5498 * breakpoint.c: Include infrun.h.
5499 * common/agent.c: Include infrun.h instead of inferior.h.
5500 * corelow.c: Include infrun.h.
5501 * event-top.c: Include infrun.h.
5502 * go32-nat.c: Include infrun.h.
5503 * i386-tdep.c: Include infrun.h.
5504 * inf-loop.c: Include infrun.h.
5505 * infcall.c: Include infrun.h.
5506 * infcmd.c: Include infrun.h.
5507 * infrun.c: Include infrun.h.
5508 * linux-fork.c: Include infrun.h.
5509 * linux-nat.c: Include infrun.h.
5510 * linux-thread-db.c: Include infrun.h.
5511 * monitor.c: Include infrun.h.
5512 * nto-tdep.c: Include infrun.h.
5513 * procfs.c: Include infrun.h.
5514 * record-btrace.c: Include infrun.h.
5515 * record-full.c: Include infrun.h.
5516 * remote-m32r-sdi.c: Include infrun.h.
5517 * remote-mips.c: Include infrun.h.
5518 * remote-notif.c: Include infrun.h.
5519 * remote-sim.c: Include infrun.h.
5520 * remote.c: Include infrun.h.
5521 * reverse.c: Include infrun.h.
5522 * rs6000-tdep.c: Include infrun.h.
5523 * s390-linux-tdep.c: Include infrun.h.
5524 * solib-irix.c: Include infrun.h.
5525 * solib-osf.c: Include infrun.h.
5526 * solib-svr4.c: Include infrun.h.
5527 * target.c: Include infrun.h.
5528 * top.c: Include infrun.h.
5529 * windows-nat.c: Include infrun.h.
5530 * mi/mi-interp.c: Include infrun.h.
5531 * mi/mi-main.c: Include infrun.h.
5532 * python/py-threadevent.c: Include infrun.h.
5534 2014-05-22 Pedro Alves <palves@redhat.com>
5536 * infrun.c (handle_inferior_event): Store the exit code for
5537 --return-child-result here, instead of ...
5538 (print_exited_reason): ... here.
5540 2014-05-21 Pedro Alves <palves@redhat.com>
5543 * gdbthread.h (struct thread_control_state): New field
5545 * infrun.c (follow_fork): Copy the new thread control field to the
5547 (clear_proceed_status_thread): Clear the new thread control field.
5548 (proceed): Set the new thread control field.
5549 * interps.h (command_interp): Declare.
5550 * interps.c (command_interpreter): New global.
5551 (command_interp): New function.
5552 (interp_exec): Set `command_interpreter' while here.
5553 * cli-out.c (cli_uiout_dtor): New function.
5554 (cli_ui_out_impl): Install it.
5555 * mi/mi-interp.c: Include cli-out.h.
5556 (mi_cmd_interpreter_exec): Add comment.
5557 (restore_current_uiout_cleanup): New function.
5558 (ui_out_free_cleanup): New function.
5559 (mi_on_normal_stop): If finishing an execution command started by
5560 a CLI command, or any kind of breakpoint-like event triggered,
5561 print the stop event to the output (CLI) stream.
5562 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5564 2014-05-21 Pedro Alves <palves@redhat.com>
5566 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5567 current source line having changed.
5568 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5569 * infrun.c (normal_stop): Adjust call to
5570 set_current_sal_from_frame.
5571 * source.c (clear_lines_listed_range): New function.
5572 (set_current_source_symtab_and_line, identify_source_line): Clear
5573 the lines listed range.
5574 (line_info): Handle the first "info line" after the current source
5575 line having changed.
5576 * stack.c (print_stack_frame): Remove center handling.
5577 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5580 2014-05-21 Pedro Alves <palves@redhat.com>
5582 * inf-child.c (inf_child_mourn_inferior): New function.
5583 * inf-child.h (inf_child_mourn_inferior): New declaration.
5584 * darwin-nat.c (darwin_mourn_inferior): Use
5585 inf_child_mourn_inferior.
5586 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5587 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5588 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5589 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5590 * windows-nat.c (windows_mourn_inferior): Likewise.
5592 2014-05-21 Doug Evans <xdje42@gmail.com>
5594 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5596 2014-05-21 Doug Evans <xdje42@gmail.com>
5598 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5599 (gdbscm_out_of_range_error): Ditto.
5600 (gdbscm_memory_error): Ditto.
5601 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5602 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5603 (gdbscm_out_of_range_error): Update.
5604 (gdbscm_memory_error): Update.
5605 (gdbscm_scm_to_target_string_unsafe): Delete.
5607 2014-05-21 Pedro Alves <palves@redhat.com>
5609 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5611 (inf_child_open_target): New function.
5612 (inf_child_open): Use inf_child_open_target to push the target
5613 instead of erroring out.
5614 (inf_child_disconnect, inf_child_close)
5615 (inf_child_maybe_unpush_target): New functions.
5616 (inf_child_target): Install inf_child_disconnect and
5617 inf_child_close. Store a pointer to the returned object.
5618 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5620 * target.c (auto_connect_native_target): New global.
5621 (show_default_run_target): New function.
5622 (find_default_run_target): Return NULL if automatically connecting
5623 to the native target is disabled.
5624 (_initialize_target): Install set/show auto-connect-native-target.
5625 * NEWS: Mention "set auto-connect-native-target", and "target
5627 * linux-nat.c (super_close): New global.
5628 (linux_nat_close): Call super_close.
5629 (linux_nat_add_target): Store a pointer to the base class's
5631 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5632 inf_child_maybe_unpush.
5633 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5635 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5636 the inferior. Use inf_child_maybe_unpush_target.
5637 (inf_ttrace_attach): Don't push the target if it is already
5639 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5640 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5641 after mourning the inferior. Use inf_child_maybe_unpush_target.
5642 (darwin_attach_pid): Don't push the target if it is already
5644 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5645 mourning the inferior. Use inf_child_maybe_unpush_target.
5646 (gnu_detach): Use inf_child_maybe_unpush_target.
5647 * go32-nat.c (go32_create_inferior): Don't push the target if it
5649 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5650 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5651 (procfs_open): Rename to ...
5652 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5653 comments. Can target_preopen before changing node. Call
5654 inf_child_open_target to push the target explicitly.
5655 (procfs_attach): Don't push the target if it is already pushed.
5656 (procfs_detach): Use inf_child_maybe_unpush_target.
5657 (procfs_create_inferior): Don't push the target if it is already
5659 (nto_native_ops): New global.
5660 (procfs_open): Reimplement.
5661 (procfs_native_open): New function.
5662 (init_procfs_targets): Install procfs_native_open as to_open of
5663 "target native". Store a pointer to the "native" target in
5665 * procfs.c (procfs_attach): Don't push the target if it is already
5667 (procfs_detach): Use inf_child_maybe_unpush_target.
5668 (procfs_mourn_inferior): Only unpush the target after mourning the
5669 inferior. Use inf_child_maybe_unpush_target.
5670 (procfs_init_inferior): Don't push the target if it is already
5672 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5673 if it is already pushed.
5675 2014-05-21 Pedro Alves <palves@redhat.com>
5677 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5678 and "procfs" targets are now called "native" instead.
5680 2014-05-21 Pedro Alves <palves@redhat.com>
5682 * go32-nat.c (go32_open): Delete.
5683 (go32_target): Don't override the to_open method.
5685 2014-05-21 Pedro Alves <palves@redhat.com>
5687 * nto-procfs.c (procfs_can_run): New function.
5688 (nto_procfs_ops): New global.
5689 (init_procfs_targets): New, based on procfs_target. Install
5690 "target native" in addition to "target procfs".
5691 (_initialize_procfs): Call init_procfs_targets instead of adding
5694 2014-05-21 Pedro Alves <palves@redhat.com>
5696 * windows-nat.c (windows_target): Don't override to_shortname,
5697 to_longname or to_doc.
5699 2014-05-21 Pedro Alves <palves@redhat.com>
5701 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5704 2014-05-21 Pedro Alves <palves@redhat.com>
5706 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5707 to_shortname, to_longname or to_doc.
5709 2014-05-21 Pedro Alves <palves@redhat.com>
5711 * go32-nat.c (go32_target): Don't override to_shortname,
5712 to_longname or to_doc.
5714 2014-05-21 Pedro Alves <palves@redhat.com>
5716 * inf-child.c (inf_child_open): Remove mention of "child".
5717 (inf_child_target): Rename target to "native" instead of "child".
5719 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5721 * Makefile.in (SFILES): Delete "regset.c".
5722 (COMMON_OBS): Delete "regset.o".
5724 * regset.h (regset_alloc): Delete prototype.
5726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5728 * sparc-linux-tdep.c (sparc32_linux_gregset)
5729 (sparc32_linux_fpregset): New static regset structures.
5730 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5731 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5733 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5734 (sparc64_linux_fpregset): New static regset structures.
5735 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5736 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5737 New static regset structures.
5738 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5739 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5740 New static regset structures.
5741 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5742 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5743 New static regset structures.
5744 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5745 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5746 New static regset structures.
5747 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5749 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5751 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5752 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5753 register maps ("regmaps") from "*regset" to "*regmap". Do this
5754 for all regmap types and variables.
5755 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5756 (sparc32_linux_supply_core_gregset)
5757 (sparc32_linux_collect_core_gregset)
5758 (sparc32_linux_supply_core_fpregset)
5759 (sparc32_linux_collect_core_fpregset): Likewise.
5760 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5761 (sparc_gregmap, sparc_fpregmap): ... these.
5762 (sparc_supply_gregset, sparc_collect_gregset)
5763 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5764 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5765 (_initialize_sparc_nat): Rename regmaps.
5766 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5767 (sparc_gregmap, sparc_fpregmap): ... these.
5768 (sparc_supply_gregset, sparc_collect_gregset)
5769 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5770 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5772 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5773 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5775 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5777 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5778 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5779 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5781 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5782 (sparc32_bsd_fpregset): Rename to...
5783 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5784 (sparc32_bsd_fpregmap): ... these.
5785 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5786 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5787 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5788 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5789 (struct sparc_gregmap, struct sparc_fpregmap)
5790 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5791 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5792 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5793 (sparc32_supply_regset, sparc32_collect_gregset)
5794 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5796 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5797 (sparc64_linux_ptrace_gregmap): ... this.
5798 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5799 (_initialize_sparc64_linux_nat): Rename regmaps.
5800 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5801 (sparc64_linux_core_gregmap): ... this.
5802 (sparc64_linux_supply_core_gregset)
5803 (sparc64_linux_collect_core_gregset)
5804 (sparc64_linux_supply_core_fpregset)
5805 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5806 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5807 (sparc64_sol2_fpregset): Rename to...
5808 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5809 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5810 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5812 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5813 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5814 (sparc64_bsd_fpregset): Rename to...
5815 (struct sparc_gregmap, sparc64_sol2_gregmap)
5816 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5817 (sparc64_bsd_fpregmap): ... these.
5818 (sparc64_supply_gregset, sparc64_collect_gregset)
5819 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5821 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5822 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5823 (sparc64fbsd_gregmap): ... this.
5824 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5825 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5827 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5828 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5829 (sparc64nbsd_collect_fpregset): Likewise.
5830 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5831 (sparc64nbsd_gregmap): ... this.
5832 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5834 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5835 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5836 (sparc64obsd_gregmap): ... this.
5837 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5839 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5840 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5841 (sparc32nbsd_gregmap): ... this.
5842 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5845 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5847 * score-tdep.c (score7_linux_gregset): New static regset
5849 (score7_linux_regset_from_core_section): Remove dynamic regset
5851 (score_gdbarch_init): Drop allocation of tdep structure.
5852 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5854 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5856 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5858 (am33_regset_from_core_section): Remove dynamic regset
5861 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5863 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5864 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5866 (mips_linux_regset_from_core_section): Remove dynamic regset
5868 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5869 'gregset64', 'fpregset', and 'fpregset64'.
5870 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5871 deleted tdep fields.
5873 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5875 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5877 (amd64_regset_from_core_section): Remove dynamic regset
5879 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5881 (amd64obsd_regset_from_core_section): Remove dynamic regset
5883 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5885 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5886 x86-common regset supply function.
5887 * i386-tdep.c (i386_collect_gregset): Make static.
5888 (i386_gregset): New global regset structure.
5889 (i386_fpregset, i386_xstateregset): New static regset structures.
5890 (i386_regset_from_core_section): Remove dynamic regset
5892 (i386_gdbarch_init): Remove initialization of tdep fields
5893 'gregset', 'fpregset', and 'xstateregset'.
5894 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5895 'fpregset', and 'xstateregset'.
5896 (i386_collect_gregset): Remove prototype.
5897 (i386_gregset): New declaration.
5898 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5900 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5903 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5905 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5906 (arm_linux_vfpregset): New static regset structures.
5907 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5909 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5910 and 'vfpregset' fields.
5912 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5914 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5915 (aarch64_linux_fpregset): New static regset structures.
5916 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5917 of regset structures.
5918 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5921 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5923 * regset.h (struct regset): Remove gdbarch field.
5924 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5925 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5926 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5928 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5929 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5930 (ppc32_linux_vsxregset): Likewise.
5931 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5932 via the regcache instead of the regset.
5933 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5934 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5935 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5936 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5939 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5941 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5942 Constify structures.
5943 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5944 (alphanbsd_aout_gregset): Likewise.
5945 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5946 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5948 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5949 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5951 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5952 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5953 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5954 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5955 * m88k-tdep.c (m88k_gregset): Likewise.
5956 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5957 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5958 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5959 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5960 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5961 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5962 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5963 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5964 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5966 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5967 * sh-tdep.h (sh_corefile_gregset): Likewise.
5968 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5969 * vax-tdep.c (vax_gregset): Likewise.
5971 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5973 Fix TLS access for -static -pthread.
5974 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5975 (try_thread_db_load_1): Initialize it.
5976 (thread_db_get_thread_local_address): Call it if LM is zero.
5977 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5978 * target.h (struct target_ops) (to_get_thread_local_address): Add
5979 load_module_addr comment.
5981 2014-05-21 Pedro Alves <palves@redhat.com>
5983 * dcache.c (dcache_read_memory_partial): If reading the cache line
5984 fails, fallback to reading just the memory the caller wanted.
5986 2014-05-20 Doug Evans <dje@google.com>
5988 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5989 instead of get_current_arch.
5991 2014-05-20 Pedro Alves <palves@redhat.com>
5993 * NEWS: Mention that compare-sections now works with all targets.
5995 * remote.c (PACKET_qCRC): New enum value.
5996 (remote_verify_memory): Don't send qCRC if the target has no
5997 execution. Use packet_support/packet_ok. If the target doesn't
5998 support the qCRC packet, fallback to a deep memory copy.
5999 (compare_sections_command): Say "target image" instead of "remote
6001 (_initialize_remote): Add PACKET_qCRC to the list of config
6002 packets that have no associated command. Extend comment.
6003 * target.c (simple_verify_memory, default_verify_memory): New
6005 * target.h (struct target_ops) <to_verify_memory>: Default to
6006 default_verify_memory.
6007 (simple_verify_memory): New declaration.
6008 * target-delegates.c: Regenerate.
6010 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6012 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6014 2014-05-20 Hui Zhu <hui@codesourcery.com>
6015 Yao Qi <yao@codesourcery.com>
6018 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6019 and change address of sp and pc.
6021 2014-05-19 Tom Tromey <tromey@redhat.com>
6023 * gdbtypes.c (rank_function): Use XNEWVEC.
6024 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6026 2014-05-19 Doug Evans <dje@google.com>
6028 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6029 build_type_unit_groups and moved closer to only caller. Remove
6030 arguments. All references updated. Remove outdated .gdb_index
6032 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6033 build_type_psymtabs_1.
6035 2014-05-19 Doug Evans <dje@google.com>
6037 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6038 n_type_unit_groups, all_type_unit_groups. All uses removed.
6039 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6040 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6041 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6042 (add_type_unit_group_to_table): Delete.
6044 2014-05-19 Doug Evans <dje@google.com>
6046 * eval.c (evaluate_subexp_standard): Add some comments.
6048 2014-05-17 Doug Evans <xdje42@gmail.com>
6050 * progspace.c (remove_program_space): Delete, unused.
6051 * progspace.h (remove_program_space): Ditto.
6053 2014-05-17 Doug Evans <xdje42@gmail.com>
6055 * inferior.c (prune_inferiors): Fix comment.
6056 (remove_inferior_command): Call prune_program_spaces.
6058 2014-05-16 Doug Evans <dje@google.com>
6060 New command line option -D.
6062 * main.c (set_gdb_data_directory): New function.
6063 (captured_main): Recognize -D. Flag error for --data-directory "".
6064 Call set_gdb_data_directory.
6065 (print_gdb_help): Print --data-directory, -D.
6066 * main.h (set_gdb_data_directory): Declare.
6067 * top.c (staged_gdb_datadir): New static global.
6068 (set_gdb_datadir): Call set_gdb_data_directory
6069 (show_gdb_datadir): New function.
6070 (init_main): Update init of data-directory parameter.
6072 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6074 Import the "dirfd" gnulib module.
6075 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6076 * gnulib/aclocal.m4: Update.
6077 * gnulib/config.in: Update.
6078 * gnulib/configure: Update.
6079 * gnulib/import/Makefile.am: Update.
6080 * gnulib/import/Makefile.in: Update.
6081 * gnulib/import/dirfd.c: New.
6082 * gnulib/import/m4/dirfd.m4: New.
6083 * gnulib/import/m4/gnulib-cache.m4: Update.
6084 * gnulib/import/m4/gnulib-comp.m4: Update.
6086 2014-05-16 Pierre Muller <muller@sourceware.org>
6087 Yao Qi <yao@codesourcery.com>
6089 * valprint.c (print_wchar): Move the code on checking whether
6090 W is a printable wide char to the default branch of switch
6091 statement below. Call wchar_printable instead of gdb_iswprint.
6093 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6095 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6096 ldr.w and ldrd instructions.
6098 2014-05-15 Doug Evans <dje@google.com>
6100 * dwarf2read.c (read_structure_type): Delete outdated comments.
6102 2014-05-14 Tom Tromey <tromey@redhat.com>
6104 * macrocmd.c (print_macro_definition): Reindent.
6106 2014-05-13 Doug Evans <xdje42@gmail.com>
6108 * python/py-cmd.c (cmdpy_completer): Add comment.
6109 (completers): Make const.
6111 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6113 * infrun.c (resume): Remove should_resume (unused). Move up
6114 declaration of resume_ptid.
6116 2014-05-13 Tom Tromey <tromey@redhat.com>
6118 * language.h (unop_type_check): Remove.
6119 (binop_type_check): Don't declare.
6121 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6123 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6124 call to regcache_raw_collect.
6126 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6128 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6129 mi_console->quote as the quoting character.
6131 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6133 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6135 2014-04-29 Tom Tromey <tromey@redhat.com>
6137 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6138 "show debug varobj".
6140 2014-05-07 Kyle McMartin <kyle@redhat.com>
6142 Pushed by Joel Brobecker <brobecker@adacore.com>.
6143 * aarch64-tdep.c (aarch64_software_single_step): New function.
6144 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6145 with aarch64_software_single_step.
6147 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6151 2014-05-05 Keith Seitz <keiths@redhat.com>
6153 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6154 variable or history value is successfully parsed.
6156 2014-05-05 Yao Qi <yao@codesourcery.com>
6157 Pedro Alves <palves@redhat.com>
6159 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6160 address of blocks that intersects the requested range. Trim
6161 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6163 * ctf.c (ctf_xfer_partial): Likewise.
6165 2014-05-05 Yao Qi <yao@codesourcery.com>
6167 * printcmd.c (display_command): Remove the check to
6168 target_has_execution.
6170 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6172 * ppcobsd-nat.c: Include "obsd-nat.h".
6173 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6175 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6177 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6179 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6180 and 16-bit signed and unsigned arguments. Update comment.
6181 (stap_parse_probe_arguments): Extend code to handle such
6182 arguments. Use warning instead of complaint to notify about
6183 unrecognized bitness.
6185 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6187 PR breakpoints/16889
6188 * stap-probe.c (stap_parse_probe_arguments): Simplify
6189 check for non-prefixed probes (i.e., probes whose
6190 arguments do not start with "N@"). Always set the
6191 argument type to a sane value.
6193 2014-05-01 David Taylor <dtaylor@emc.com>
6195 * remote.c (compare_sections_command): Add -r option to compare
6196 all loadable read-only sections.
6198 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6200 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6201 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6203 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6204 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6205 Remove unused CORE_ADDR argument. Update all callers.
6207 2014-04-29 Pedro Alves <palves@redhat.com>
6209 * remote.c (struct packet_config) <detect>: Extend comment.
6210 (add_packet_config_cmd): Don't set the config's detect or support
6212 (init_all_packet_configs): Also initialize the config's 'detect'
6214 (reset_all_packet_configs_support): New function.
6215 (remote_open_1): Call reset_all_packet_configs_support instead of
6216 init_all_packet_configs.
6217 (_initialize_remote): Initialize all packet configs. Assert that
6218 all packets have an associated command, except a few known
6221 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6223 * dwarf2read.c (read_subrange_type): Handle dynamic
6224 DW_AT_lower_bound attributes.
6226 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6228 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6229 dynamic bounds before computing its upper bound.
6230 (ada_discrete_type_low_bound): Same as above with the lower bound.
6232 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6234 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6235 range types. Adjust the array handling implementation to
6236 take advantage of this change.
6237 (resolve_dynamic_range): New function, mostly extracted from
6238 resolve_dynamic_bounds.
6239 (resolve_dynamic_array): New function, mostly extracted from
6240 resolve_dynamic_bounds.
6241 (resolve_dynamic_bounds): Delete.
6242 (resolve_dynamic_type): Reimplement. Add handling of
6243 TYPE_CODE_RANGE types.
6245 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6247 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6248 handling of parallel ___XA types.
6250 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6252 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6253 unnecessary second call to static_unwrap_type.
6255 2014-04-27 Hui Zhu <hui@codesourcery.com>
6257 * stack.c (print_frame_info): Call do_gdb_disassembly with
6258 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6260 2014-04-26 Doug Evans <xdje42@gmail.com>
6262 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6264 2014-04-25 Pedro Alves <palves@redhat.com>
6267 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6268 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6269 and newline from built string.
6270 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6271 (linux_ptrace_attach_fail_reason): ... this.
6272 * linux-nat.c (linux_nat_attach): Adjust to use
6273 linux_ptrace_attach_fail_reason.
6275 2014-04-25 Pedro Alves <palves@redhat.com>
6277 * remote.c (struct remote_state): Remove multi_process_aware,
6278 non_stop_aware, cond_tracepoints, cond_breakpoints,
6279 breakpoint_commands, fast_tracepoints, static_tracepoints,
6280 install_in_trace, disconnected_tracing,
6281 enable_disable_tracepoints, string_tracing, and
6282 augmented_libraries_svr4_read fields.
6283 (remote_multi_process_p): Move further below in the file.
6284 (struct packet_config): Add comments.
6285 (update_packet_config): Delete function.
6286 (show_packet_config_cmd): Use packet_config_support.
6287 (add_packet_config_cmd): Use NULL as set callback.
6288 (packet_ok): "set remote foo-packet"-style commands no longer
6289 change config->supported -- adjust.
6290 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6291 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6292 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6293 (PACKET_QNonStop, PACKET_multiprocess_feature)
6294 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6295 (PACKET_DisconnectedTracing_feature)
6296 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6297 (set_remote_protocol_packet_cmd): Delete function.
6298 (packet_config_support, packet_support): New functions.
6299 (set_remote_protocol_Z_packet_cmd): Don't call
6300 update_packet_config.
6301 (remote_query_attached, remote_pass_signals)
6302 (remote_program_signals, remote_threads_info)
6303 (remote_threads_extra_info, remote_start_remote): Use
6305 (remote_start_remote): Use packet_config_support and
6307 (init_all_packet_configs): Set all packets to unknown support,
6308 instead of calling update_packet_config.
6309 (remote_check_symbols): Use packet_support.
6310 (remote_supported_packet): Unconditionally set the packet config's
6312 (remote_multi_process_feature, remote_non_stop_feature)
6313 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6314 (remote_breakpoint_commands_feature)
6315 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6316 (remote_install_in_trace_feature)
6317 (remote_disconnected_tracing_feature)
6318 (remote_enable_disable_tracepoint_feature)
6319 (remote_string_tracing_feature)
6320 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6321 (remote_protocol_features): Adjust to use remote_supported_packet
6322 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6323 "ConditionalTracepoints", "ConditionalBreakpoints",
6324 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6325 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6326 "EnableDisableTracepoints", and "tracenz".
6327 (remote_query_supported): Use packet_support.
6328 (remote_open_1): Adjust.
6329 (extended_remote_attach_1): Use packet_support. Switch on the
6330 result of packet_ok instead of checking whether the packet ended
6332 (remote_vcont_resume): Use packet_support.
6333 (remote_resume, remote_stop_ns, fetch_register_using_p)
6334 (remote_prepare_to_store, store_register_using_P)
6335 (check_binary_download, remote_write_bytes): Use packet_support.
6336 (remote_vkill): Use packet_support. Switch on the result of
6337 packet_ok instead of checking whether the packet ended up
6339 (extended_remote_supports_disable_randomization): Use
6341 (extended_remote_run): Switch on the result of packet_ok instead
6342 of checking whether the packet ended up disabled.
6343 (remote_insert_breakpoint, remote_remove_breakpoint)
6344 (remote_insert_watchpoint, remote_remove_watchpoint)
6345 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6347 (remote_search_memory): Use packet_config_support.
6348 (remote_get_thread_local_address, remote_get_tib_address)
6349 (remote_hostio_send_command, remote_can_execute_reverse): Use
6351 (remote_supports_cond_tracepoints)
6352 (remote_supports_cond_breakpoints)
6353 (remote_supports_fast_tracepoints)
6354 (remote_supports_static_tracepoints)
6355 (remote_supports_install_in_trace)
6356 (remote_supports_enable_disable_tracepoint)
6357 (remote_supports_string_tracing)
6358 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6359 the packet config says the feature is enabled or disabled.
6360 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6361 (remote_get_trace_status): Use packet_support.
6362 (remote_set_disconnected_tracing): Adjust to check whether the
6363 feature is enabled with packet_support.
6364 (remote_set_trace_buffer_size, remote_use_agent)
6365 (remote_can_use_agent, remote_supports_btrace): Use
6367 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6368 Use packet_config_support.
6369 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6370 the packet config says the feature is enabled or disabled.
6371 (set_range_stepping): Use packet_support.
6373 2014-04-25 Tom Tromey <tromey@redhat.com>
6375 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6378 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6380 * NEWS: Mention support for C99 variable length arrays.
6382 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6384 * ada-lang.c (standard_exc): Expand introductory comment.
6386 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6387 Walfred Tedeschi <walfred.tedeschi@intel.com>
6389 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6391 (amd64_linux_read_description): Add code to handle AVX512 xstate
6392 mask and return respective tdesc.
6393 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6394 and features/i386/x32-avx512-linux.c.
6395 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6396 (amd64_linux_core_read_description): Add code to handle AVX512
6397 xstate mask and return respective tdesc.
6398 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6399 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6401 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6402 (tdesc_amd64_avx512_linux): New prototype.
6403 (tdesc_x32_avx512_linux): Likewise.
6404 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6405 features/i386/x32-avx512.c.
6406 (amd64_ymm_avx512_names): New register names for pseudo
6408 (amd64_ymmh_avx512_names): New register names for raw registers
6410 (amd64_k_names): New register names for K registers.
6411 (amd64_zmmh_names): New register names for ZMM raw registers.
6412 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6413 (amd64_xmm_avx512_names): New register names for XMM16-31
6415 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6417 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6418 if feature is present.
6419 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6420 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6421 (AMD64_NUM_REGS): Adjust to new number of registers.
6422 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6423 registers supplied via XSTATE by AVX512 registers.
6424 (i386_linux_read_description): Add case for AVX512.
6425 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6426 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6427 (i386_linux_core_read_description): Add case for AVX512.
6428 (i386_linux_init_abi): Install supported register note section
6430 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6432 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6433 registers to be number of zmm7h + 1.
6434 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6435 * i386-tdep.c: Include features/i386/i386-avx512.c.
6436 (i386_zmm_names): Add ZMM pseudo register names array.
6437 (i386_zmmh_names): Add ZMM raw register names array.
6438 (i386_k_names): Add K raw register names array.
6439 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6440 registers. AVX512 has 16 more ZMM registers than there are YMM
6442 (i386_zmmh_regnum_p): Add function to look up register number of
6444 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6445 (i386_k_regnum_p): Likewise for K raw registers.
6446 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6447 registers added by AVX512.
6448 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6449 registers added by AVX512.
6450 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6452 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6453 (i386_pseudo_register_name): Add ZMM pseudo registers.
6454 (i386_zmm_type): Construct and return vector registers type for ZMM
6456 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6457 ZMM0-31 pseudo registers and K registers.
6458 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6459 and YMM16-31 registers from register cache.
6460 (i386_pseudo_register_write): Add code to write K, ZMM and
6462 (i386_register_reggroup_p): Add code to include/exclude AVX512
6463 registers in/from respective register groups.
6464 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6465 registers if feature is present in xcr0.
6466 (i386_gdbarch_init): Add code to initialize AVX512 feature
6467 variables in tdep structure, wire in pseudo registers and call
6468 initialize_tdesc_i386_avx512.
6469 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6471 (i386_regnum): Add AVX512 registers.
6472 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6473 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6474 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6475 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6477 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6478 (i386_ymm_avx512_regnum_p): Likewise.
6479 (i386_k_regnum_p): Likewise.
6480 (i386_zmm_regnum_p): Likewise.
6481 (i386_zmmh_regnum_p): Likewise.
6482 * i387-tdep.c : Update year in copyright notice.
6483 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6485 (XSAVE_YMM_AVX512_ADDR): New macro.
6486 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6488 (XSAVE_XMM_AVX512_ADDR): New macro.
6489 (xsave_avx512_k_offset): New table for K register offsets in
6491 (XSAVE_AVX512_K_ADDR): New macro.
6492 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6494 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6495 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6497 (i387_collect_xsave): Add code to collect AVX512 registers from
6499 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6500 of XMM16-31 registers.
6501 (I387_NUM_K_REGS): New define for number of K registers.
6502 (I387_K0_REGNUM): New define for K0 register number.
6503 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6504 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6505 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6507 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6508 (I387_XMM16_REGNUM): New define for XMM16 register number.
6509 (I387_YMM0_REGNUM): New define for YMM0 register number.
6510 (I387_KEND_REGNUM): New define for last K register number.
6511 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6512 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6514 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6516 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6518 * features/Makefile: Add AVX512 related files.
6519 * features/i386/32bit-avx512.xml: New file.
6520 * features/i386/64bit-avx512.xml: Likewise.
6521 * features/i386/amd64-avx512-linux.c: Likewise.
6522 * features/i386/amd64-avx512-linux.xml: Likewise.
6523 * features/i386/amd64-avx512.c: Likewise.
6524 * features/i386/amd64-avx512.xml: Likewise.
6525 * features/i386/i386-avx512-linux.c: Likewise.
6526 * features/i386/i386-avx512-linux.xml: Likewise.
6527 * features/i386/i386-avx512.c: Likewise.
6528 * features/i386/i386-avx512.xml: Likewise.
6529 * features/i386/x32-avx512-linux.c: Likewise.
6530 * features/i386/x32-avx512-linux.xml: Likewise.
6531 * features/i386/x32-avx512.c: Likewise.
6532 * features/i386/x32-avx512.xml: Likewise.
6533 * regformats/i386/amd64-avx512-linux.dat: New file.
6534 * regformats/i386/amd64-avx512.dat: Likewise.
6535 * regformats/i386/i386-avx512-linux.dat: Likewise.
6536 * regformats/i386/i386-avx512.dat: Likewise.
6537 * regformats/i386/x32-avx512-linux.dat: Likewise.
6538 * regformats/i386/x32-avx512.dat: Likewise.
6539 * NEWS: Add note about new support for AVX512.
6542 2014-04-23 Pedro Alves <palves@redhat.com>
6544 * breakpoint.c (insert_bp_location): Tolerate errors if the
6545 breakpoint is set in a user-loaded objfile.
6546 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6547 location is marked shlib_disabled. If the breakpoint is set in a
6548 user-loaded objfile is a GDB-side memory breakpoint, validate it
6549 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6550 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6552 * mem-break.c (memory_validate_breakpoint): New function.
6553 * objfiles.c (userloaded_objfile_contains_address_p): New
6555 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6556 * target.h (memory_validate_breakpoint): New declaration.
6558 2014-04-23 Pedro Alves <palves@redhat.com>
6560 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6561 the breakpoint is set in a shared library, only suppress
6562 errors for software breakpoints, not hardware breakpoints.
6564 2014-04-22 Pedro Alves <palves@redhat.com>
6566 * infrun.c (schedlock_applies): New function, factored out from
6567 find_thread_needs_step_over.
6568 (find_thread_needs_step_over): Use it.
6569 (switch_back_to_stepped_thread): Always clear trap_expected if the
6570 step over is finished. Return early if scheduler locking applies.
6571 Look for the stepping thread and a potential step-over thread with
6573 (currently_stepping_or_nexting_callback): Delete.
6575 2014-04-22 Nick Clifton <nickc@redhat.com>
6577 * NEWS: Mention that ARM sim now supports tracing.
6579 2014-04-22 Yao Qi <yao@codesourcery.com>
6581 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6583 * tracefile.c (tracefile_fetch_registers): ... it. New
6585 * tracefile.h (tracefile_fetch_registers): Declare.
6586 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6587 tracefile_fetch_registers.
6589 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6592 * windows-nat.c (thread_rec): Don't display a warning when
6593 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6594 fails for any reason, set th->suspended to -1, so that we don't
6595 try to resume such a thread. Also, don't return NULL in these
6596 cases, to avoid completely ruin the session due to "PC register is
6597 not available" error.
6598 (do_windows_fetch_inferior_registers): Check errors in
6599 GetThreadContext call.
6600 (windows_continue): Accept an additional argument KILLED; if not
6601 zero, ignore errors in the SetThreadContext call, since the
6602 inferior was killed and is shutting down.
6603 (windows_resume, get_windows_debug_event)
6604 (windows_create_inferior, windows_mourn_inferior)
6605 (windows_kill_inferior): All callers of windows_continue changed
6606 to adjust to its new calling sequence.
6608 2014-04-19 Yao Qi <yao@codesourcery.com>
6610 * ctf.c (ctf_open): Call post_create_inferior.
6612 2014-04-19 Yao Qi <yao@codesourcery.com>
6614 * ctf.c (handle_id): New static variable.
6615 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6616 value. Get the declaration of event "register" and get length
6617 of field "contents".
6619 2014-04-19 Yao Qi <yao@codesourcery.com>
6621 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6623 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6625 * valops.c (oload_method_static): Remove unnecessary argument
6626 METHOD. Update all callers.
6628 2014-04-18 Pedro alves <palves@redhat.com>
6629 Tom Tromey <tromey@redhat.com>
6632 * frame.c (get_prev_frame_1): Rename to ...
6633 (get_prev_frame_always): ... this, and make extern. Adjust.
6634 (skip_artificial_frames): Use get_prev_frame_always.
6635 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6636 (get_frame_unwind_stop_reason): Adjust to rename.
6637 * frame.h (get_prev_frame_always): Declare.
6638 * inline-frame.c: Include frame.h.
6639 (inline_frame_this_id): Use get_prev_frame_always.
6641 2014-04-18 Tristan Gingold <gingold@adacore.com>
6643 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6644 code by using bfd_mach_o_get_base_address.
6646 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6648 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6649 (spu_ax_pseudo_register_collect): New function.
6650 (spu_ax_pseudo_register_push_stack): Likewise.
6651 (spu_dwarf_reg_to_regnum): Likewise.
6652 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6654 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6656 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6657 Replace FRAME argument with FRAME_ID.
6658 * gdbarch.c, gdbarch.h: Regenerate.
6659 * findvar.c (default_value_from_register): Add GDBARCH argument;
6660 replace FRAME by FRAME_ID. No longer call get_frame_id.
6661 (value_from_register): Update call to gdbarch_value_from_register.
6662 * value.h (default_value_from_register): Update prototype.
6663 * s390-linux-tdep.c (s390_value_from_register): Update interface
6664 and call to default_value_from_register.
6665 * spu-tdep.c (spu_value_from_register): Likewise.
6667 * findvar.c (address_from_register): Remove TYPE argument.
6668 Do not call value_from_register; use gdbarch_value_from_register
6669 with null_frame_id instead.
6670 * value.h (address_from_register): Update prototype.
6671 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6672 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6673 address_from_register interface change.
6675 2014-04-17 Yao Qi <yao@codesourcery.com>
6677 * gdbtypes.h: Update comments to link to types and macros'
6680 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6682 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6684 2014-04-16 Keith Seitz <keiths@redhat.com>
6687 * dwarf2read.c (skip_one_die): Check that all relative-offset
6688 sibling DIEs fall within range of the current reader's buffer.
6689 (read_partial_die): Likewise.
6691 2014-04-16 Keith Seitz <keiths@redhat.com>
6694 * cp-namespace.c (lookup_symbol_file): If the type name of
6695 `this' is NULL, return immediately.
6697 2014-04-14 Keith Seitz <keiths@redhat.com>
6700 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6701 from symbol_matches_domain in symtab.c. All local callers
6702 of symbol_matches_domain updated.
6703 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6704 search STRUCT_DOMAIN.
6705 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6706 independently. standard_lookup will do that automatically.
6707 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6708 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6709 (cp_lookup_symbol_in_namespace): Likewise.
6710 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6711 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6712 may return a STRUCT_DOMAIN match.
6713 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6714 * cp-support.c: Include language.h.
6715 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6717 * psymtab.c (match_partial_symbol): Compare the requested
6718 domain with the symbol's domain directly.
6719 (lookup_partial_symbol): Likewise.
6720 * symtab.c (lookup_symbol_in_language): Explain when/why
6721 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6722 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6723 appropriate languages.
6724 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6725 and moved to ada-lang.c
6726 (lookup_block_symbol): Explain that this function only returns
6727 symbol matching the requested DOMAIN.
6728 Compare the requested domain with the symbol's domain directly.
6729 (iterate_over_symbols): Compare the requested domain with the
6730 symbol's domain directly.
6731 * symtab.h (symbol_matches_domain): Remove.
6733 2014-04-14 Tom Tromey <tromey@redhat.com>
6736 * c-exp.y (type_aggregate_p): New function.
6737 (qualified_name, classify_inner_name): Use it.
6738 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6739 and TYPE_TARGET_TYPE of an enum type.
6740 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6742 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6743 handle TYPE_DECLARED_CLASS.
6744 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6746 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6747 * valops.c (enum_constant_from_type): New function.
6748 (value_aggregate_elt): Use it.
6749 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6752 2014-04-14 Tom Tromey <tromey@redhat.com>
6754 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6755 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6757 * value.h (value_aggregate_elt): Update.
6759 2014-04-14 Tom Tromey <tromey@redhat.com>
6761 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6763 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6765 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6766 (evaluate_subexp_standard): Pass noside argument.
6767 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6768 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6769 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6770 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6771 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6773 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6775 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6776 points to a constant blob.
6778 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6780 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6781 property and store it as the high bound and flag the range accordingly.
6782 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6783 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6784 * gdbtypes.h (enum range_flags): New enum.
6785 (struct range_bounds): Add flags member.
6787 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6789 * c-typeprint.c (c_type_print_varspec_suffix): Added
6790 check for not yet resolved high bound. If unresolved, print
6791 "variable length" string to the console instead of random
6794 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6796 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6798 (ada_template_to_fixed_record_type_1): Likewise.
6799 (ada_to_fixed_type_1): Likewise.
6800 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6801 (cp_print_value): Likewise.
6802 * d-valprint.c (dynamic_array_type): Likewise.
6803 * findvar.c (address_of_variable): Likewise.
6804 * jv-valprint.c (java_value_print): Likewise.
6805 * valops.c (value_ind): Likewise.
6806 * value.c (coerce_ref): Likewise.
6808 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6810 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6811 value and retrieve the dynamic type size.
6813 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6815 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6816 passed to sizeof is dynamic evaluate the argument to compute the length.
6818 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6819 Joel Brobecker <brobecker@adacore.com>
6821 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6822 (dwarf2_evaluate_property): New function.
6823 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6824 * dwarf2read.c (attr_to_dynamic_prop): New function.
6825 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6827 * gdbtypes.c: Include dwarf2loc.h.
6828 (is_dynamic_type): New function.
6829 (resolve_dynamic_type): New function.
6830 (resolve_dynamic_bounds): New function.
6831 (get_type_length): New function.
6832 (check_typedef): Use get_type_length to compute type length.
6833 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6834 (TYPE_LOW_BOUND_KIND): New macro.
6835 (is_dynamic_type): New function prototype.
6836 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6837 to resolve dynamic properties of the type. Update comment.
6838 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6840 2014-04-14 Richard Henderson <rth@redhat.com>
6842 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6844 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6845 Doug Evans <xdje42@gmail.com>
6847 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6848 dereference TYPE_CODE_REF values.
6850 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6852 Revert the following changes due to regressions:
6854 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6855 (dwarf2_evaluate_property): New function.
6856 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6857 * dwarf2read.c (attr_to_dynamic_prop): New function.
6858 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6860 * gdbtypes.c: Include dwarf2loc.h.
6861 (is_dynamic_type): New function.
6862 (resolve_dynamic_type): New function.
6863 (resolve_dynamic_bounds): New function.
6864 (get_type_length): New function.
6865 (check_typedef): Use get_type_length to compute type length.
6866 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6867 (TYPE_LOW_BOUND_KIND): New macro.
6868 (is_dynamic_type): New function prototype.
6869 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6870 to resolve dynamic properties of the type. Update comment.
6871 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6873 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6874 passed to sizeof is dynamic evaluate the argument to compute the length.
6876 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6877 value and retrieve the dynamic type size.
6879 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6880 (ada_template_to_fixed_record_type_1): Likewise.
6881 (ada_to_fixed_type_1): Likewise.
6882 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6883 (cp_print_value): Likewise.
6884 * d-valprint.c (dynamic_array_type): Likewise.
6885 * eval.c (evaluate_subexp_with_coercion): Likewise.
6886 * findvar.c (address_of_variable): Likewise.
6887 * jv-valprint.c (java_value_print): Likewise.
6888 * valops.c (value_ind): Likewise.
6889 * value.c (coerce_ref): Likewise.
6891 * c-typeprint.c (c_type_print_varspec_suffix): Added
6892 check for not yet resolved high bound. If unresolved, print
6893 "variable length" string to the console instead of random
6896 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6897 property and store it as the high bound and flag the range accordingly.
6898 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6899 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6900 * gdbtypes.h (enum range_flags): New enum.
6901 (struct range_bounds): Add flags member.
6903 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6904 points to a constant blob.
6906 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6907 (evaluate_subexp_standard): Pass noside argument.
6908 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6909 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6910 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6911 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6912 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6914 2014-04-11 Keith Seitz <keiths@redhat.com>
6917 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6918 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6921 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6923 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6924 (evaluate_subexp_standard): Pass noside argument.
6925 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6926 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6927 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6928 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6929 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6931 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6933 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6934 points to a constant blob.
6936 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6938 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6939 property and store it as the high bound and flag the range accordingly.
6940 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6941 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6942 * gdbtypes.h (enum range_flags): New enum.
6943 (struct range_bounds): Add flags member.
6945 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6947 * c-typeprint.c (c_type_print_varspec_suffix): Added
6948 check for not yet resolved high bound. If unresolved, print
6949 "variable length" string to the console instead of random
6952 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6954 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6955 (ada_template_to_fixed_record_type_1): Likewise.
6956 (ada_to_fixed_type_1): Likewise.
6957 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6958 (cp_print_value): Likewise.
6959 * d-valprint.c (dynamic_array_type): Likewise.
6960 * eval.c (evaluate_subexp_with_coercion): Likewise.
6961 * findvar.c (address_of_variable): Likewise.
6962 * jv-valprint.c (java_value_print): Likewise.
6963 * valops.c (value_ind): Likewise.
6964 * value.c (coerce_ref): Likewise.
6966 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6968 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6969 value and retrieve the dynamic type size.
6971 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6973 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6974 passed to sizeof is dynamic evaluate the argument to compute the length.
6976 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6978 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6979 (dwarf2_evaluate_property): New function.
6980 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6981 * dwarf2read.c (attr_to_dynamic_prop): New function.
6982 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6984 * gdbtypes.c: Include dwarf2loc.h.
6985 (is_dynamic_type): New function.
6986 (resolve_dynamic_type): New function.
6987 (resolve_dynamic_bounds): New function.
6988 (get_type_length): New function.
6989 (check_typedef): Use get_type_length to compute type length.
6990 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6991 (TYPE_LOW_BOUND_KIND): New macro.
6992 (is_dynamic_type): New function prototype.
6993 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6994 to resolve dynamic properties of the type. Update comment.
6995 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6997 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6999 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7000 declaring high/low bounds and change uses accordingly. Call
7001 create_range_type instead of create_static_range_type.
7002 * gdbtypes.c (create_range_type): New function.
7003 (create_range_type): Convert bounds into struct bound_prop and pass
7004 them to create_range_type.
7005 * gdbtypes.h (struct bound_prop): New struct.
7006 (create_range_type): New function prototype.
7007 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7008 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7009 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7011 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7013 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7015 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7016 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7017 * ada-lang.c: All uses of create_range_type updated.
7018 * coffread.c: All uses of create_range_type updated.
7019 * dwarf2read.c: All uses of create_range_type updated.
7020 * f-exp.y: All uses of create_range_type updated.
7021 * m2-valprint.c: All uses of create_range_type updated.
7022 * mdebugread.c: All uses of create_range_type updated.
7023 * stabsread.c: All uses of create_range_type updated.
7024 * valops.c: All uses of create_range_type updated.
7025 * valprint.c: All uses of create_range_type updated.
7027 2014-04-10 Pedro Alves <palves@redhat.com>
7029 * breakpoint.c (single_step_breakpoints)
7030 (single_step_gdbarch): Move up in the file.
7031 (one_breakpoint_xfer_memory): New function, factored out from ...
7032 (breakpoint_xfer_memory): ... here. Also process single-step
7035 2014-04-09 Tristan Gingold <gingold@adacore.com>
7037 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7039 (darwin_decode_exception_message): Free port only after use.
7041 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7043 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7044 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7045 when setting the size of call_length.
7047 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7049 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7050 dereference TYPE_CODE_REF values.
7052 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7054 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7055 end of warning message.
7057 2014-04-03 Doug Evans <dje@google.com>
7059 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7060 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7062 2014-04-02 Alan Modra <amodra@gmail.com>
7064 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7065 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7066 (struct symbol_file_add_from_memory_args): Add size field.
7067 (find_vdso_size): New function.
7068 (add_vsyscall_page): Attempt to find vdso size.
7070 2014-04-01 Doug Evans <dje@google.com>
7072 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7074 2014-04-01 Tristan Gingold <gingold@adacore.com>
7076 * darwin-nat.c (darwin_encode_reply): Add prototype.
7077 (darwin_decode_exception_message): Reply to unknown inferiors.
7078 (darwin_decode_message): Handle message by id. Ignore message
7079 to unknown inferior.
7080 (darwin_wait): Discard unknown messages, add debug trace.
7082 2014-03-31 Doug Evans <dje@google.com>
7084 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7087 2014-03-31 Doug Evans <dje@google.com>
7089 New option "set print symbol-loading".
7091 * solib.c (solib_read_symbols): Only print symbol loading messages
7093 (solib_add): If symbol loading is in "brief" mode, notify user
7094 symbols are being loaded.
7095 (reload_shared_libraries_1): Ditto.
7096 * symfile.c (print_symbol_loading_off): New static global.
7097 (print_symbol_loading_brief): New static global.
7098 (print_symbol_loading_full): New static global.
7099 (print_symbol_loading_enums): New static global.
7100 (print_symbol_loading): New static global.
7101 (print_symbol_loading_p): New function.
7102 (symbol_file_add_with_addrs): Only print symbol loading messages
7104 (_initialize_symfile): Register "print symbol-loading" set/show
7106 * symfile.h (print_symbol_loading_p): Declare.
7108 2014-03-30 Doug Evans <xdje42@gmail.com>
7110 * infrun.c (set_last_target_status): New function.
7111 (handle_inferior_event): Call it.
7113 2014-03-30 Doug Evans <xdje42@gmail.com>
7115 * inferior.h (enum stop_kind): Improve comment.
7117 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7119 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7120 a reference, strip the reference layer before calling
7121 the lang_ops value_has_mutated callback.
7123 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7125 Remove some globals from our parser.
7126 * language.c (unk_lang_parser): Add "struct parser_state"
7128 * language.h (struct language_defn) <la_parser>: Likewise.
7129 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7130 (initialize_expout): Add "struct parser_state" argument.
7131 Rewrite function to use the parser state.
7132 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7133 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7134 write_exp_elt_longcst, write_exp_elt_dblcst,
7135 write_exp_elt_decfloatcst, write_exp_elt_type,
7136 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7137 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7138 write_dollar_variable): Likewise.
7139 (parse_exp_in_context_1): Use parser state.
7140 (insert_type_address_space): Add "struct parser_state" argument.
7142 (increase_expout_size): New function.
7143 * parser-defs.h: Forward declare "struct language_defn" and
7144 "struct parser_state".
7145 (expout, expout_size, expout_ptr): Remove extern declarations.
7146 (parse_gdbarch, parse_language): Rewrite macro declarations to
7147 accept the parser state.
7148 (struct parser_state): New struct.
7149 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7150 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7151 write_exp_elt_decfloatcst, write_exp_elt_type,
7152 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7153 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7154 write_exp_msymbol, write_dollar_variable,
7155 mark_struct_expression, insert_type_address_space): Add "struct
7156 parser_state" argument.
7157 (increase_expout_size): New function.
7158 * utils.c (do_clear_parser_state): New function.
7159 (make_cleanup_clear_parser_state): Likewise.
7160 * utils.h (make_cleanup_clear_parser_state): New function
7162 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7163 Update calls to write_exp* in order to pass the parser state.
7164 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7165 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7166 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7167 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7168 * stap-probe.c (stap_parse_register_operand): Likewise.
7169 (stap_parse_single_operand): Likewise.
7170 (stap_parse_argument_1): Likewise.
7171 (stap_parse_argument): Use parser state.
7172 * stap-probe.h: Include "parser-defs.h".
7173 (struct stap_parse_info) <pstate>: New field.
7174 * c-exp.y (parse_type): Rewrite to use parser state.
7175 (yyparse): Redefine to c_parse_internal.
7176 (pstate): New global variable.
7177 (parse_number): Add "struct parser_state" argument.
7178 (write_destructor_name): Likewise.
7179 (type_exp): Update calls to write_exp* and similars in order to
7181 (exp1, exp, variable, qualified_name, space_identifier,
7182 typename, typebase): Likewise.
7183 (write_destructor_name, parse_number, lex_one_token,
7184 classify_name, classify_inner_name, c_parse): Add "struct
7185 parser_state" argument. Update function to use parser state.
7186 * c-lang.h: Forward declare "struct parser_state".
7187 (c_parse): Add "struct parser_state" argument.
7188 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7189 (yyparse): Redefine macro to ada_parse_internal.
7190 (pstate): New variable.
7191 (write_int, write_object_renaming, write_var_or_type,
7192 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7193 type_int, type_long, type_long_long, type_float, type_double,
7194 type_long_double, type_char, type_boolean, type_system_address):
7195 Add "struct parser_state" argument.
7196 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7197 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7198 var_or_type, aggregate, aggregate_component_list,
7199 positional_list, others, component_group,
7200 component_associations): Update calls to write_exp* and similar
7201 functions in order to use parser state.
7202 (ada_parse, write_var_from_sym, write_int,
7203 write_exp_op_with_string, write_object_renaming,
7204 find_primitive_type, write_selectors, write_ambiguous_var,
7205 write_var_or_type, write_name_assoc, type_int, type_long,
7206 type_long_long, type_float, type_double, type_long_double,
7207 type_char, type_boolean, type_system_address): Add "struct
7208 parser_state" argument. Adjust function to use parser state.
7209 * ada-lang.c (parse): Likewise.
7210 * ada-lang.h: Forward declare "struct parser_state".
7211 (ada_parse): Add "struct parser_state" argument.
7212 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7213 calls to both functions.
7214 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7216 (yyparse): Redefine macro to f_parse_internal.
7217 (pstate): New variable.
7218 (parse_number): Add "struct parser_state" argument.
7219 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7220 and similars in order to use parser state.
7221 (parse_number): Adjust code to use parser state.
7223 (f_parse): New function.
7224 * f-lang.h: Forward declare "struct parser_state".
7225 (f_parse): Add "struct parser_state" argument.
7226 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7228 (yyparse): Redefine macro for java_parse_internal.
7229 (pstate): New variable.
7230 (push_expression_name, push_expression_name, insert_exp): Add
7231 "struct parser_state" argument.
7232 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7233 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7234 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7235 PostIncrementExpression, PostDecrementExpression,
7236 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7237 UnaryExpressionNotPlusMinus, CastExpression,
7238 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7239 RelationalExpression, EqualityExpression, AndExpression,
7240 ExclusiveOrExpression, InclusiveOrExpression,
7241 ConditionalAndExpression, ConditionalOrExpression,
7242 ConditionalExpression, Assignment, LeftHandSide): Update
7243 calls to write_exp* and similars in order to use parser state.
7244 (parse_number): Ajust code to use parser state.
7246 (java_parse): New function.
7247 (push_variable): Add "struct parser_state" argument. Adjust
7248 code to user parser state.
7249 (push_fieldnames, push_qualified_expression_name,
7250 push_expression_name, insert_exp): Likewise.
7251 * jv-lang.h: Forward declare "struct parser_state".
7252 (java_parse): Add "struct parser_state" argument.
7253 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7255 (yyparse): Redefine macro to m2_parse_internal.
7256 (pstate): New variable.
7257 (type_exp, exp, fblock, variable, type): Update calls to
7258 write_exp* and similars to use parser state.
7260 (m2_parse): New function.
7261 * m2-lang.h: Forward declare "struct parser_state".
7262 (m2_parse): Add "struct parser_state" argument.
7263 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7264 * objc-lang.h: Forward declare "struct parser_state".
7265 (end_msglist): Add "struct parser_state" argument.
7266 * p-exp.y (parse_type): Rewrite macro to use parser state.
7267 (yyparse): Redefine macro to pascal_parse_internal.
7268 (pstate): New variable.
7269 (parse_number): Add "struct parser_state" argument.
7270 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7271 write_exp* and similars in order to use parser state.
7272 (parse_number, yylex): Adjust code to use parser state.
7273 (pascal_parse): New function.
7274 * p-lang.h: Forward declare "struct parser_state".
7275 (pascal_parse): Add "struct parser_state" argument.
7276 * go-exp.y (parse_type): Rewrite macro to use parser state.
7277 (yyparse): Redefine macro to go_parse_internal.
7278 (pstate): New variable.
7279 (parse_number): Add "struct parser_state" argument.
7280 (type_exp, exp1, exp, variable, type): Update calls to
7281 write_exp* and similars in order to use parser state.
7282 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7283 to use parser state.
7284 (go_parse): Likewise.
7285 * go-lang.h: Forward declare "struct parser_state".
7286 (go_parse): Add "struct parser_state" argument.
7288 2014-03-27 Doug Evans <dje@google.com>
7290 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7292 2014-03-27 Doug Evans <dje@google.com>
7294 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7295 Remove argument abbrev_section. All callers updated.
7297 2014-03-27 Doug Evans <dje@google.com>
7299 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7300 addr_base, ranges_base.
7302 2014-03-26 Keith Seitz <keiths@redhat.com>
7304 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7305 types, not VAR_DOMAIN.
7307 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7309 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7311 * features/nios2-linux.c: Regenerated.
7312 * features/nios2.c: Regenerated.
7314 2014-03-25 Pedro Alves <palves@redhat.com>
7316 * cli/cli-script.c (script_from_file): Force the interpreter to
7319 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7321 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7322 small stack allocation.
7324 2014-03-24 Tristan Gingold <gingold@adacore.com>
7326 * darwin-nat.c (exc_server): Remove unused prototype.
7327 (darwin_dump_message): Correctly display data on x86_64.
7328 (darwin_encode_reply): Fix style.
7329 Add comments and fix indentation.
7331 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7333 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7335 2014-03-22 Doug Evans <xdje42@gmail.com>
7337 * infcmd.c: Whitespace fixes.
7338 (interrupt_command): Merge two function comments into one.
7340 2014-03-22 Doug Evans <xdje42@gmail.com>
7342 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7345 2014-03-22 Yao Qi <yao@codesourcery.com>
7347 * remote.c (target_read_live_memory): Remove.
7348 (memory_xfer_live_readonly_partial): Rename it to
7349 remote_xfer_live_readonly_partial. Remove argument 'object'.
7350 All callers updated. Call remote_read_bytes_1
7351 instead of target_read_live_memory.
7352 * tracepoint.c (set_traceframe_number): Remove.
7353 (make_cleanup_restore_traceframe_number): Likewise .
7354 * tracepoint.h (set_traceframe_number): Remove declaration.
7355 (make_cleanup_restore_traceframe_number): Likewise.
7357 2014-03-22 Yao Qi <yao@codesourcery.com>
7359 * remote.c (remote_read_bytes): Move code on reading from the
7361 (remote_read_bytes_1): ... here. New function.
7363 2014-03-22 Yao Qi <yao@codesourcery.com>
7365 * ctf.c (ctf_xfer_partial): Check the return value of
7366 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7367 return TARGET_XFER_UNAVAILABLE.
7368 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7369 * target.c (target_read_live_memory): Move it to remote.c.
7370 (memory_xfer_live_readonly_partial): Likewise.
7371 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7372 * remote.c (target_read_live_memory): Moved from target.c.
7373 (memory_xfer_live_readonly_partial): Likewise.
7374 (remote_read_bytes): Factored out from
7375 memory_xfer_partial_1.
7377 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7379 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7382 2014-03-21 Pedro Alves <palves@redhat.com>
7384 * infrun.c (normal_stop): Extend comment.
7386 2014-03-21 Hui Zhu <hui@codesourcery.com>
7387 Pedro Alves <palves@redhat.com>
7389 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7391 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7392 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7393 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7395 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7397 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7398 `z' formatted output modifier.
7400 2014-03-20 Tom Tromey <tromey@redhat.com>
7401 Sergio Durigan Junior <sergiodj@redhat.com>
7403 * probe.c (parse_probes): Turn assert into an ordinary error.
7404 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7405 exceptions when parsing probes. Rearrange the code for clarity.
7407 2014-03-20 Tom Tromey <tromey@redhat.com>
7410 * top.c (execute_command): Only dispatch events if the command
7413 2014-03-20 Tom Tromey <tromey@redhat.com>
7416 * infcall.c: Include event-top.h.
7417 (run_inferior_call): Call async_disable_stdin if needed.
7419 2014-03-20 Pedro Alves <palves@redhat.com>
7421 * infrun.c (prepare_to_proceed): Delete.
7422 (thread_still_needs_step_over): New function.
7423 (find_thread_needs_step_over): New function.
7424 (proceed): If the current thread needs a step-over, set its
7425 steping_over_breakpoint flag. Adjust to use
7426 find_thread_needs_step_over instead of prepare_to_proceed.
7427 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7428 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7430 (switch_back_to_stepped_thread): Step over breakpoints of all
7431 threads not the stepping thread, before switching back to the
7434 2014-03-20 Pedro Alves <palves@redhat.com>
7436 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7438 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7439 * infrun.c (saved_singlestep_ptid)
7440 (stepping_past_singlestep_breakpoint): Delete.
7441 (resume): Remove stepping_past_singlestep_breakpoint handling.
7442 (proceed): Store the prev_pc of the stepping thread too.
7443 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7445 (enum infwait_states): Delete infwait_thread_hop_state.
7446 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7448 (handle_inferior_event): Adjust.
7449 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7450 handling and the thread-hop code. Before removing single-step
7451 breakpoints, check whether the thread hit a single-step breakpoint
7452 of another thread. If it did, the trap is not a random signal.
7453 (switch_back_to_stepped_thread): If the event thread hit a
7454 single-step breakpoint, unblock it before switching to the
7455 stepping thread. Handle the case of the stepped thread having
7457 (keep_going): Handle the case of the current thread moving past a
7458 single-step breakpoint.
7460 2014-03-20 Pedro Alves <palves@redhat.com>
7463 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7464 are being stepped over.
7465 (breakpoint_address_match): Make extern.
7466 * breakpoint.h (breakpoint_address_match): New declaration.
7467 * inferior.h (stepping_past_instruction_at): New declaration.
7468 * infrun.c (struct step_over_info): New type.
7469 (step_over_info): New global.
7470 (set_step_over_info, clear_step_over_info)
7471 (stepping_past_instruction_at): New functions.
7472 (handle_inferior_event): Clear the step-over info when
7473 trap_expected is cleared.
7474 (resume): Remove now stale comment.
7475 (clear_proceed_status): Clear step-over info.
7476 (proceed): Adjust step-over handling to set or clear the step-over
7477 info instead of removing all breakpoints.
7478 (handle_signal_stop): When setting up a thread-hop, don't remove
7480 (stop_stepping): Clear step-over info.
7481 (keep_going): Adjust step-over handling to set or clear step-over
7482 info and then always inserting breakpoints, instead of removing
7483 all breakpoints when stepping over one.
7485 2014-03-20 Pedro Alves <palves@redhat.com>
7487 * infrun.c (previous_inferior_ptid): Adjust comment.
7488 (deferred_step_ptid): Delete.
7489 (infrun_thread_ptid_changed, prepare_to_proceed)
7490 (init_wait_for_inferior): Adjust.
7491 (handle_signal_stop): Delete deferred_step_ptid handling.
7493 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7496 * defs.h (sync_quit_force_run): New declaration.
7497 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7498 * event-top.c (async_sigterm_handler): New declaration.
7499 (async_sigterm_token): New variable.
7500 (async_init_signals): Create also async_sigterm_token.
7501 (async_sigterm_handler): New function.
7502 (sync_quit_force_run): New variable.
7503 (handle_sigterm): Replace quit_force call by other calls.
7504 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7506 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7508 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7509 offset into SPE pseudo registers.
7511 2014-03-18 Pedro Alves <palves@redhat.com>
7514 * inferior.h (print_stop_event): Declare.
7515 * infrun.c (print_stop_event): New, factored out from ...
7516 (normal_stop): ... this.
7517 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7518 of bpstat_print/print_stack_frame.
7520 2014-03-17 Tom Tromey <tromey@redhat.com>
7522 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7524 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7526 * ada-lang.c (decode_constrained_packed_array): Perform a
7527 minimal coercion for reference with coerce_ref instead of
7530 2014-03-17 Tristan Gingold <gingold@adacore.com>
7532 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7533 (darwin_solib_create_inferior_hook): Emit a warning if version
7536 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7538 * python/py-value.c (get_field_flag): Cast flag_name argument to
7539 PyObject_GetAttrString to support Python 2.4.
7541 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7543 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7544 (Global Maintainers): Remove Jan Kratochvil.
7546 2014-03-14 Pedro Alves <palves@redhat.com>
7548 * inferior.h (terminal_ours_for_output): Rename to ...
7549 (child_terminal_ours_for_output): ... this.
7550 (terminal_save_ours): Rename to ...
7551 (child_terminal_save_ours): ... this.
7552 (terminal_ours): Rename to ...
7553 (child_terminal_ours): ... this.
7554 (terminal_inferior): Rename to ...
7555 (child_terminal_inferior): ... this.
7556 (terminal_init_inferior): Rename to ...
7557 (child_terminal_init_inferior): ... this.
7558 (terminal_init_inferior_with_pgrp): Rename to ...
7559 (child_terminal_init_inferior_with_pgrp): ... this.
7560 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7561 (child_terminal_init_with_pgrp): ... this.
7562 (terminal_save_ours): Rename to ...
7563 (child_terminal_save_ours): ... this.
7564 (terminal_init_inferior): Rename to ...
7565 (child_terminal_init): ... this. Adjust.
7566 (terminal_inferior): Rename to ...
7567 (child_terminal_inferior): ... this.
7568 (terminal_ours_for_output): Rename to ...
7569 (child_terminal_ours_for_output): ... this. Adjust.
7570 (terminal_ours): Rename to ...
7571 (child_terminal_ours): ... this.
7572 (terminal_ours_1): Rename to ...
7573 (child_terminal_ours_1): ... this. Adjust.
7574 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7575 * windows-nat.c (do_initial_windows_stuff): Adjust.
7576 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7577 (gnu_terminal_init): ... this. Adjust.
7578 (gnu_target): Adjust.
7579 * inf-child.c (inf_child_target): Adjust.
7581 2014-03-13 Doug Evans <xdje42@gmail.com>
7584 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7587 2014-03-13 Doug Evans <xdje42@gmail.com>
7589 * value.c (record_latest_value): Call release_value_or_incref
7590 instead of release_value.
7592 2014-03-13 Pedro Alves <palves@redhat.com>
7594 * procfs.c (procfs_target): Don't override to_shortname,
7595 to_longname or to_doc.
7597 2014-03-13 Pedro Alves <palves@redhat.com>
7599 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7600 Unix in user visible strings.
7602 2014-03-12 Stan Shebs <stan@codesourcery.com>
7604 * gdbtypes.h: Annotate comments for Doxygen, add a page
7605 block comment with some general info.
7607 2014-03-12 Pedro Alves <palves@redhat.com>
7609 * infcmd.c (prepare_execution_command): New function, factored out
7610 from several execution commands.
7611 (run_command_1, continue_command, step_1, jump_command)
7612 (signal_command, until_command, advance_command, finish_command)
7613 (attach_command): Use prepare_execution_command.
7615 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7617 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7620 (struct arm_linux_thread_points): Removed.
7621 (struct arm_linux_process_info): New.
7622 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7623 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7624 (arm_linux_find_breakpoints_by_tid): Removed.
7625 (struct arch_lwp_info): New.
7626 (arm_linux_find_process_pid): New functions.
7627 (arm_linux_add_process): New functions.
7628 (arm_linux_process_info_get): New functions.
7629 (arm_linux_forget_process): New function.
7630 (arm_linux_get_debug_reg_state): New function.
7631 (struct update_registers_data): New.
7632 (update_registers_callback): New function.
7633 (arm_linux_insert_hw_breakpoint1): Updated.
7634 (arm_linux_remove_hw_breakpoint1): Updated.
7635 (arm_linux_insert_hw_breakpoint): Updated.
7636 (arm_linux_remove_hw_breakpoint): Updated.
7637 (arm_linux_insert_watchpoint): Updated.
7638 (arm_linux_remove_watchpoint): Updated.
7639 (arm_linux_new_thread): Updated.
7640 (arm_linux_prepare_to_resume): New function.
7641 (arm_linux_new_fork): New function.
7642 (_initialize_arm_linux_nat): Updated.
7644 2014-03-12 Pedro Alves <palves@redhat.com>
7646 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7648 2014-03-12 Tom Tromey <tromey@redhat.com>
7650 * inf-child.c (return_zero): New function.
7651 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7652 * aix-thread.c (aix_thread_inferior_created): New function.
7653 (aix_thread_attach): Remove.
7654 (init_aix_thread_ops): Don't set to_attach.
7655 (_initialize_aix_thread): Register inferior_created observer.
7656 * corelow.c (init_core_ops): Don't set to_attach or
7658 * exec.c (init_exec_ops): Don't set to_attach or
7660 * infcmd.c (run_command_1): Use find_run_target. Make direct
7662 (attach_command): Use find_attach_target. Make direct target
7664 * record-btrace.c (init_record_btrace_ops): Don't set
7666 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7668 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7669 set to_create_inferior.
7670 * target.c (complete_target_initialization): Add assertion.
7671 (target_create_inferior): Remove.
7672 (find_default_attach, find_default_create_inferior): Remove.
7673 (find_attach_target, find_run_target): New functions.
7674 (find_default_is_async_p, find_default_can_async_p)
7675 (target_supports_non_stop, target_attach): Remove.
7676 (init_dummy_target): Don't set to_create_inferior or
7677 to_supports_non_stop.
7678 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7679 TARGET_DEFAULT_FUNC.
7680 <to_create_inferior>: Add comment.
7681 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7682 TARGET_DEFAULT_RETURN.
7683 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7684 (find_attach_target, find_run_target): Declare.
7685 (target_create_inferior): Remove.
7686 (target_has_execution_1): Update comment.
7687 (target_supports_non_stop): Remove.
7688 * target-delegates.c: Rebuild.
7690 2014-03-12 Pedro Alves <palves@redhat.com>
7692 * inf-child.h: Update comment to not mention Unix.
7694 2014-03-12 Pedro Alves <palves@redhat.com>
7696 * inf-child.c: Update top comment to not mention Unix. Add
7697 generic comment describing how this target is meant to be used.
7698 (inf_child_post_attach, inf_child_post_startup_inferior)
7699 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7702 2014-03-12 Pedro Alves <palves@redhat.com>
7704 * nto-procfs.c: Include inf-child.h.
7705 (procfs_ops): Delete global.
7706 (procfs_can_run): Delete method.
7707 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7708 target pointer instead of referencing procfs_ops.
7709 (procfs_prepare_to_store): Delete.
7710 (init_procfs_ops): Delete function.
7711 (procfs_target): New function, based on init_procfs_ops, but
7712 inherit inf_child_target.
7713 (_initialize_procfs): Use procfs_target.
7715 2014-03-12 Pedro Alves <palves@redhat.com>
7717 * windows-nat.c: Include inf-child.h.
7718 (windows_ops): Delete global.
7719 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7721 (init_windows_ops): Delete function.
7722 (windows_target): New function, based on init_windows_ops, but
7723 inherit inf_child_target.
7724 (_initialize_windows_nat): Use windows_target. Install x86
7725 specific target methods here.
7727 2014-03-10 Doug Evans <xdje42@gmail.com>
7729 * guile/guile.c (call_initialize_gdb_module): New function.
7730 (initialize_guile): Replace call to scm_init_guile with call to
7733 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7735 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7736 in call to TYPE_CODE macro.
7738 2014-03-10 Jerome Guitton <guitton@adacore.com>
7740 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7741 Resolve tagged types to full view.
7743 2014-03-10 Hui Zhu <hui@codesourcery.com>
7745 * target.h (target_insert_breakpoint): Remove "hardware" from its
7748 2014-03-07 Doug Evans <dje@google.com>
7750 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7752 2014-03-07 Doug Evans <dje@google.com>
7754 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7755 Remove unused local comp_dir_attr. Assert exactly one of
7756 stub_comp_unit_die, stub_comp_dir is non-NULL.
7758 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7760 * target.h (complete_target_initialization, add_target):
7763 2014-03-07 Pedro Alves <palves@redhat.com>
7765 * go32-nat.c: Include inf-child.h.
7766 (go32_ops): Delete global.
7767 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7769 (go32_create_inferior): Push the passed in target pointer instead
7770 of referencing go32_ops.
7771 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7772 (go32_target): New function, based on init_go32_ops, but inherit
7774 (_initialize_go32_nat): Use go32_target. Move parts of
7777 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7779 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7780 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7781 SYMBOL_VALUE_ADDRESS.
7782 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7784 2014-03-06 Yao Qi <yao@codesourcery.com>
7786 * breakpoint.c (get_tracepoint_by_number): Remove argument
7787 optional_p. All callers updated. Adjust comments. Update
7789 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7791 2014-03-06 Yao Qi <yao@codesourcery.com>
7793 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7794 early if get_number returns zero. Use 'p' instead of 'args'.
7796 2014-03-06 Yao Qi <yao@codesourcery.com>
7798 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7801 2014-03-06 Yao Qi <yao@codesourcery.com>
7803 PR breakpoints/16508
7804 * tracepoint.c (check_trace_running): New function.
7805 (trace_find_command): Move code to check_trace_running and
7806 call check_trace_running.
7807 (trace_find_pc_command): Likewise.
7808 (trace_find_tracepoint_command): Likewise.
7809 (trace_find_line_command): Likewise.
7810 (trace_find_range_command): Likewise.
7811 * tracepoint.h (check_trace_running): Likewise.
7812 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7814 2014-03-06 Yao Qi <yao@codesourcery.com>
7816 * target.h (struct target_ops) <to_traceframe_info>: Use
7817 TARGET_DEFAULT_NORETURN (tcomplain ()).
7818 * target-delegates.c: Regenerated.
7820 2014-03-05 Pedro Alves <palves@redhat.com>
7823 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7824 void. Update comment.
7825 (dcache_xfer_memory): Delete.
7826 (dcache_read_memory_partial): New, based on the read bits of
7828 (dcache_update): Add status parameter. Use ULONGEST for len, and
7829 adjust. Discard cache lines if the reason for the update was
7831 * dcache.h (dcache_xfer_memory): Delete declaration.
7832 (dcache_read_memory_partial): New declaration.
7833 (dcache_update): Update prototype.
7834 * target.c (raw_memory_xfer_partial): Update the dcache here.
7835 (memory_xfer_partial_1): Don't handle dcache writes here.
7837 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7839 * remote-sim.c (gdbsim_load): Add const to prog.
7841 2014-03-03 Tom Tromey <tromey@redhat.com>
7843 * elfread.c (probe_key): Change to bfd_data.
7844 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7845 now per-BFD, not per-objfile.
7846 * stap-probe.c (stap_probe_destroy): Update comment.
7847 (handle_stap_probe): Allocate on the per-BFD obstack.
7849 2014-03-03 Tom Tromey <tromey@redhat.com>
7851 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7852 * breakpoint.c (create_longjmp_master_breakpoint): Use
7854 (add_location_to_breakpoint, bkpt_probe_insert_location)
7855 (bkpt_probe_remove_location): Update.
7856 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7857 * elfread.c (elf_symfile_relocate_probe): Remove.
7858 (elf_probe_fns): Update.
7859 (insert_exception_resume_breakpoint): Change type of "probe"
7860 parameter to bound_probe.
7861 (check_exception_resume): Update.
7862 * objfiles.c (objfile_relocate1): Don't relocate probes.
7863 * probe.c (bound_probe_s): New typedef.
7864 (parse_probes): Use get_probe_address. Set sal's objfile.
7865 (find_probe_by_pc): Return a bound_probe.
7866 (collect_probes): Return a VEC(bound_probe_s).
7867 (compare_probes): Update.
7868 (gen_ui_out_table_header_info): Change type of "probes"
7870 (info_probes_for_ops): Update.
7871 (get_probe_address): New function.
7872 (probe_safe_evaluate_at_pc): Update.
7873 * probe.h (struct probe_ops) <get_probe_address>: New field.
7874 <set_semaphore, clear_semaphore>: Add objfile parameter.
7875 (struct probe) <objfile>: Remove field.
7877 <address>: Update comment.
7878 (struct bound_probe): New.
7879 (find_probe_by_pc): Return a bound_probe.
7880 (get_probe_address): Declare.
7881 * solib-svr4.c (struct probe_and_action) <address>: New field.
7882 (hash_probe_and_action, equal_probe_and_action): Update.
7883 (register_solib_event_probe): Add address parameter.
7884 (solib_event_probe_at): Update.
7885 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7887 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7888 (stap_get_probe_address): New function.
7889 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7890 (compile_probe_arg): Update.
7891 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7893 (handle_stap_probe): Don't relocate the probe.
7894 (stap_relocate): Remove.
7895 (stap_gen_info_probes_table_values): Update.
7896 (stap_probe_ops): Remove stap_relocate.
7897 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7898 (debug_sym_probe_fns): Update.
7899 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7900 * symtab.c (init_sal): Use memset.
7901 * symtab.h (struct symtab_and_line) <objfile>: New field.
7902 * tracepoint.c (start_tracing, stop_tracing): Update.
7904 2014-03-03 Tom Tromey <tromey@redhat.com>
7906 * probe.h (parse_probes, find_probe_by_pc)
7907 (find_probes_in_objfile): Fix comments.
7909 2014-03-02 Doug Evans <xdje42@gmail.com>
7911 * infrun.c (handle_signal_stop): Replace test for
7912 TARGET_WAITKIND_STOPPED with an assert.
7914 2014-03-02 Doug Evans <xdje42@gmail.com>
7916 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7918 2014-03-02 Doug Evans <xdje42@gmail.com>
7920 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7922 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7924 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7926 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7928 * i386obsd-nat.c: Include "obsd-nat.h".
7929 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7931 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7933 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7935 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7937 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7939 * mips64obsd-nat.c: Include "obsd-nath".
7940 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7942 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7944 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7946 * amd64obsd-nat.c: Include "obsd-nat,h.
7947 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7949 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7951 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7953 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7954 (find_overload_match): Update call to find_oload_champ.
7955 (find_oload_champ_namespace_loop): Likewise
7957 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7959 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7961 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7962 * config/sparc/obsd64.mh: New file.
7963 * sparc64obsd-nat.c: New file.
7965 * obsd-nat.h: New file.
7966 * obsd-nat.c: New file.
7967 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7968 (ALLDEPFILES): Add obsd-nat.c.
7970 2014-02-28 Tom Tromey <tromey@redhat.com>
7972 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7973 * cli-out.h (cli_ui_out_impl): Now const.
7974 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7975 * ui-out.c (struct ui_out) <impl>: Now const.
7976 (default_ui_out_impl): Now const.
7977 (ui_out_new): Make 'impl' parameter const.
7978 * ui-out.h (ui_out_new): Update.
7980 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7982 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7984 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7986 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7988 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7990 Additional PR 8882 fix.
7991 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7993 2014-02-27 Pedro Alves <palves@redhat.com>
7995 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7998 2014-02-27 Pedro Alves <palves@redhat.com>
8001 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8002 * nat/linux-waitpid.c: Include string.h.
8003 (status_to_str): Moved here and made extern.
8004 * nat/linux-waitpid.h (status_to_str): New declaration.
8006 2014-02-27 Hui Zhu <hui@codesourcery.com>
8009 * infrun.c (ptid_match): Move ...
8010 * common/ptid.c (ptid_match): ... here.
8011 * inferior.h (ptid_match): Move ...
8012 * common/ptid.h (ptid_match): ... here.
8014 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8016 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8017 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8020 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8022 * obsd-tdep.c (obsd_auxv_parse): New function.
8023 (obsd_init_abi): Set auxv_parse.
8025 * gdbarch.sh (auxv_parse): New.
8026 * gdbarch.h: Regenerated.
8027 * gdbarch.c: Regenerated.
8028 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8030 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8032 * guile/scm-value.c (gdbscm_history_append_x): New function.
8033 (value_functions): Add it.
8035 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8037 * dwarf2read.c (attr_value_as_address): New function.
8038 (dwarf2_find_base_address, read_call_site_scope): Use
8039 attr_value_as_address in place of DW_ADDR.
8040 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8041 the low and high addresses. Slight rework of the handling
8042 of the high pc being a constant form, and limit it to
8043 DWARF verson 4 or higher.
8044 (dwarf2_record_block_ranges): Likewise.
8045 (read_partial_die): Likewise.
8046 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8048 2014-02-26 Tom Tromey <tromey@redhat.com>
8050 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8052 2014-02-26 Tom Tromey <tromey@redhat.com>
8054 * elfread.c (elf_read_minimal_symbols): Return early if
8055 minimal symbols have already been read. Add "ei" parameter.
8056 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8057 * minsyms.c (prim_record_minimal_symbol_full): Update.
8058 * objfiles.h (struct objstats) <n_minsyms>: Move...
8059 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8060 * symmisc.c (print_objfile_statistics): Update.
8062 2014-02-26 Tom Tromey <tromey@redhat.com>
8064 * elfread.c (elf_read_minimal_symbols): New function, from
8066 (elf_symfile_read): Call it.
8068 2014-02-26 Tom Tromey <tromey@redhat.com>
8070 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8071 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8072 (lookup_minimal_symbol_solib_trampoline)
8073 (lookup_minimal_symbol_by_pc_section_1)
8074 (lookup_minimal_symbol_and_objfile): Update.
8075 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8076 Don't allocate a minimal symbol if minsyms have already been read.
8077 (build_minimal_symbol_hash_tables): Update.
8078 (install_minimal_symbols): Do nothing if minsyms already read.
8079 Use the per-BFD obstack.
8080 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8081 * objfiles.c (allocate_objfile): Call
8082 terminate_minimal_symbol_table later.
8083 (have_minimal_symbols): Update.
8084 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8085 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8086 Move from struct objfile.
8087 <minsyms_read>: New field.
8088 (struct objfile) <msymbols, minimal_symbol_count,
8089 msymbol_hash, msymbol_demangled_hash>: Move.
8090 (ALL_OBJFILE_MSYMBOLS): Update.
8091 * symfile.c (read_symbols): Set minsyms_read.
8092 (reread_symbols): Update.
8093 * symmisc.c (dump_objfile, dump_msymbols): Update.
8095 2014-02-26 Tom Tromey <tromey@redhat.com>
8097 * minsyms.c (msymbols_sort): Remove.
8098 * minsyms.h (msymbols_sort): Remove.
8099 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8100 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8101 * elfread.c (elf_symtab_read): Don't add section offsets.
8102 * xcoffread.c (record_minimal_symbol): Don't add section offset
8103 to minimal symbol address.
8104 * somread.c (text_offset, data_offset): Remove.
8105 (som_symtab_read): Don't add section offsets to minimal symbol
8107 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8108 Don't add section offsets to minimal symbols.
8109 * coffread.c (coff_symtab_read): Don't add section offsets
8110 to minimal symbol addresses.
8111 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8112 to minimal symbol addresses.
8113 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8114 section offset to minimal symbol addresses.
8115 * mdebugread.c (parse_partial_symbols): Don't add section
8116 offset to minimal symbol addresses.
8117 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8118 offset to minimal symbol addresses.
8120 2014-02-26 Tom Tromey <tromey@redhat.com>
8122 * ada-lang.c (ada_main_name): Update.
8123 (ada_add_standard_exceptions): Update.
8124 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8125 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8126 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8127 * auxv.c (ld_so_xfer_auxv): Update.
8128 * avr-tdep.c (avr_scan_prologue): Update.
8129 * ax-gdb.c (gen_var_ref): Update.
8130 * blockframe.c (get_pc_function_start)
8131 (find_pc_partial_function_gnu_ifunc): Update.
8132 * breakpoint.c (create_overlay_event_breakpoint)
8133 (create_longjmp_master_breakpoint)
8134 (create_std_terminate_master_breakpoint)
8135 (create_exception_master_breakpoint): Update.
8136 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8137 * c-valprint.c (c_val_print): Update.
8138 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8139 * common/agent.c (agent_look_up_symbols): Update.
8140 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8141 * dwarf2loc.c (call_site_to_target_addr): Update.
8142 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8143 * elfread.c (elf_gnu_ifunc_record_cache)
8144 (elf_gnu_ifunc_resolve_by_got): Update.
8145 * findvar.c (default_read_var_value): Update.
8146 * frame.c (inside_main_func): Update.
8147 * frv-tdep.c (frv_frame_this_id): Update.
8148 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8149 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8151 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8152 (hppa_hpux_find_dummy_bpaddr): Update.
8153 * hppa-tdep.c (hppa_symbol_address): Update.
8154 * infcmd.c (until_next_command): Update.
8155 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8157 * linespec.c (minsym_found, add_minsym): Update.
8158 * linux-nat.c (get_signo): Update.
8159 * linux-thread-db.c (inferior_has_bug): Update.
8160 * m32c-tdep.c (m32c_return_value)
8161 (m32c_m16c_address_to_pointer): Update.
8162 * m32r-tdep.c (m32r_frame_this_id): Update.
8163 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8164 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8165 * maint.c (maintenance_translate_address): Update.
8166 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8167 (frob_address): New function.
8168 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8169 frob_address. Rename parameter to "pc_in".
8170 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8172 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8174 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8175 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8176 * objc-lang.c (find_objc_msgsend): Update.
8177 * objfiles.c (objfile_relocate1): Update.
8178 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8179 * p-valprint.c (pascal_val_print): Update.
8180 * parse.c (write_exp_msymbol): Update.
8181 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8182 (ppc_elfv2_skip_entrypoint): Update.
8183 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8184 * printcmd.c (build_address_symbolic, msym_info)
8185 (address_info): Update.
8186 * proc-service.c (ps_pglobal_lookup): Update.
8187 * psymtab.c (find_pc_sect_psymtab_closer)
8188 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8189 Change msymbol parameter to bound_minimal_symbol.
8190 * ravenscar-thread.c (get_running_thread_id): Update.
8191 * remote.c (remote_check_symbols): Update.
8192 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8194 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8195 * solib-dsbt.c (lm_base): Update.
8196 * solib-frv.c (lm_base, main_got): Update.
8197 * solib-irix.c (locate_base): Update.
8198 * solib-som.c (som_solib_create_inferior_hook)
8199 (link_map_start): Update.
8200 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8201 * solib-svr4.c (elf_locate_base, enable_break): Update.
8202 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8203 (flush_ea_cache): Update.
8204 * stabsread.c (define_symbol, scan_file_globals): Update.
8205 * stack.c (find_frame_funname): Update.
8206 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8207 (debug_qf_find_pc_sect_symtab): Update.
8208 * symfile.c (simple_read_overlay_table)
8209 (simple_overlay_update): Update.
8210 * symfile.h (struct quick_symbol_functions)
8211 <find_pc_sect_symtab>: Change type of msymbol to
8212 bound_minimal_symbol.
8213 * symmisc.c (dump_msymbols): Update.
8214 * symtab.c (find_pc_sect_symtab_via_partial)
8215 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8216 (search_symbols, print_msymbol_info): Update.
8217 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8218 (MSYMBOL_VALUE_ADDRESS): Redefine.
8219 (BMSYMBOL_VALUE_ADDRESS): New macro.
8220 * tracepoint.c (scope_info): Update.
8221 * tui/tui-disasm.c (tui_find_disassembly_address)
8222 (tui_get_begin_asm_address): Update.
8223 * valops.c (find_function_in_inferior): Update.
8224 * value.c (value_static_field, value_fn_field): Update.
8226 2014-02-26 Tom Tromey <tromey@redhat.com>
8228 * ada-lang.c (ada_update_initial_language): Update.
8229 (ada_main_name, ada_has_this_exception_support): Update.
8230 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8231 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8232 * arm-tdep.c (arm_skip_stub): Update.
8233 * auxv.c (ld_so_xfer_auxv): Update.
8234 * avr-tdep.c (avr_scan_prologue): Update.
8235 * ax-gdb.c (gen_var_ref): Update.
8236 * breakpoint.c (struct breakpoint_objfile_data)
8237 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8238 type to bound_minimal_symbol.
8239 (create_overlay_event_breakpoint)
8240 (create_longjmp_master_breakpoint)
8241 (create_std_terminate_master_breakpoint)
8242 (create_exception_master_breakpoint): Update.
8243 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8244 * c-exp.y (classify_name): Update.
8245 * coffread.c (coff_symfile_read): Update.
8246 * common/agent.c (agent_look_up_symbols): Update.
8247 * d-lang.c (d_main_name): Update.
8248 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8249 * dec-thread.c (enable_dec_thread): Update.
8250 * dwarf2loc.c (call_site_to_target_addr): Update.
8251 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8252 * eval.c (evaluate_subexp_standard): Update.
8253 * findvar.c (struct minsym_lookup_data) <result>: Change type
8254 to bound_minimal_symbol.
8256 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8257 * frame.c (inside_main_func): Update.
8258 * frv-tdep.c (frv_frame_this_id): Update.
8259 * gcore.c (call_target_sbrk): Update.
8260 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8261 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8263 * go-lang.c (go_main_name): Update.
8264 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8265 (hppa_hpux_find_import_stub_for_addr): Update.
8266 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8267 Update. Change return type.
8268 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8270 * jit.c (jit_breakpoint_re_set_internal): Update.
8271 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8273 * linux-nat.c (get_signo): Update.
8274 * linux-thread-db.c (inferior_has_bug): Update
8275 * m32c-tdep.c (m32c_return_value)
8276 (m32c_m16c_address_to_pointer): Update.
8277 * m32r-tdep.c (m32r_frame_this_id): Update.
8278 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8279 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8280 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8281 lookup_minimal_symbol. Change return type.
8282 (lookup_minimal_symbol): Remove.
8283 (lookup_bound_minimal_symbol): Update.
8284 (lookup_minimal_symbol_text): Change return type.
8285 (lookup_minimal_symbol_solib_trampoline): Change return type.
8286 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8287 (lookup_minimal_symbol_solib_trampoline): Change return type.
8288 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8289 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8290 (value_nsstring, find_imps): Update.
8291 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8292 * p-lang.c (pascal_main_name): Update.
8293 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8294 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8295 * proc-service.c (ps_pglobal_lookup): Update.
8296 * ravenscar-thread.c (get_running_thread_msymbol): Change
8298 (has_ravenscar_runtime, get_running_thread_id): Update.
8299 * remote.c (remote_check_symbols): Update.
8300 * sol-thread.c (ps_pglobal_lookup): Update.
8301 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8302 * solib-dsbt.c (lm_base): Update.
8303 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8305 * solib-irix.c (locate_base): Update.
8306 * solib-som.c (som_solib_create_inferior_hook)
8307 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8309 * solib-spu.c (spu_enable_break): Update.
8310 * solib-svr4.c (elf_locate_base, enable_break): Update.
8311 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8312 (flush_ea_cache): Update.
8313 * stabsread.c (define_symbol): Update.
8314 * symfile.c (simple_read_overlay_table): Update.
8315 * symtab.c (find_pc_sect_line): Update.
8316 * tracepoint.c (scope_info): Update.
8317 * tui-disasm.c (tui_get_begin_asm_address): Update.
8318 * value.c (value_static_field): Update.
8320 2014-02-26 Tom Tromey <tromey@redhat.com>
8322 * minsyms.c (prim_record_minimal_symbol_full): Use
8323 SET_MSYMBOL_VALUE_ADDRESS.
8324 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8325 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8326 SET_MSYMBOL_VALUE_ADDRESS.
8327 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8328 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8330 2014-02-26 Tom Tromey <tromey@redhat.com>
8332 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8333 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8334 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8335 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8336 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8337 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8338 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8339 * ada-lang.c (ada_main_name): Update.
8340 (ada_lookup_simple_minsym): Update.
8341 (ada_make_symbol_completion_list): Update.
8342 (ada_add_standard_exceptions): Update.
8343 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8344 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8345 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8346 * arm-tdep.c (skip_prologue_function): Update.
8347 (arm_skip_stack_protector, arm_skip_stub): Update.
8348 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8349 (arm_wince_skip_main_prologue): Update.
8350 * auxv.c (ld_so_xfer_auxv): Update.
8351 * avr-tdep.c (avr_scan_prologue): Update.
8352 * ax-gdb.c (gen_var_ref): Update.
8353 * block.c (call_site_for_pc): Update.
8354 * blockframe.c (get_pc_function_start): Update.
8355 (find_pc_partial_function_gnu_ifunc): Update.
8356 * breakpoint.c (create_overlay_event_breakpoint): Update.
8357 (create_longjmp_master_breakpoint): Update.
8358 (create_std_terminate_master_breakpoint): Update.
8359 (create_exception_master_breakpoint): Update.
8360 (resolve_sal_pc): Update.
8361 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8362 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8364 * c-valprint.c (c_val_print): Update.
8365 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8366 * coffread.c (coff_symfile_read): Update.
8367 * common/agent.c (agent_look_up_symbols): Update.
8368 * dbxread.c (find_stab_function_addr): Update.
8369 (end_psymtab): Update.
8370 * dwarf2loc.c (call_site_to_target_addr): Update.
8371 (func_verify_no_selftailcall): Update.
8372 (tailcall_dump): Update.
8373 (call_site_find_chain_1): Update.
8374 (dwarf_expr_reg_to_entry_parameter): Update.
8375 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8376 (elf_gnu_ifunc_resolve_by_got): Update.
8377 * f-valprint.c (info_common_command): Update.
8378 * findvar.c (read_var_value): Update.
8379 * frame.c (get_prev_frame_1): Update.
8380 (inside_main_func): Update.
8381 * frv-tdep.c (frv_skip_main_prologue): Update.
8382 (frv_frame_this_id): Update.
8383 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8384 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8385 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8386 (gnuv3_skip_trampoline): Update.
8387 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8388 (hppa64_hpux_in_solib_call_trampoline): Update.
8389 (hppa_hpux_skip_trampoline_code): Update.
8390 (hppa64_hpux_search_dummy_call_sequence): Update.
8391 (hppa_hpux_find_import_stub_for_addr): Update.
8392 (hppa_hpux_find_dummy_bpaddr): Update.
8393 * hppa-tdep.c (hppa_symbol_address)
8394 (hppa_lookup_stub_minimal_symbol): Update.
8395 * i386-tdep.c (i386_skip_main_prologue): Update.
8396 (i386_pe_skip_trampoline_code): Update.
8397 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8398 * infcall.c (get_function_name): Update.
8399 * infcmd.c (until_next_command): Update.
8400 * jit.c (jit_breakpoint_re_set_internal): Update.
8401 (jit_inferior_init): Update.
8402 * linespec.c (minsym_found): Update.
8403 (add_minsym): Update.
8404 * linux-fork.c (info_checkpoints_command): Update.
8405 * linux-nat.c (get_signo): Update.
8406 * linux-thread-db.c (inferior_has_bug): Update.
8407 * m32c-tdep.c (m32c_return_value): Update.
8408 (m32c_m16c_address_to_pointer): Update.
8409 (m32c_m16c_pointer_to_address): Update.
8410 * m32r-tdep.c (m32r_frame_this_id): Update.
8411 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8412 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8413 * maint.c (maintenance_translate_address): Update.
8414 * minsyms.c (add_minsym_to_hash_table): Update.
8415 (add_minsym_to_demangled_hash_table): Update.
8416 (msymbol_objfile): Update.
8417 (lookup_minimal_symbol): Update.
8418 (iterate_over_minimal_symbols): Update.
8419 (lookup_minimal_symbol_text): Update.
8420 (lookup_minimal_symbol_by_pc_name): Update.
8421 (lookup_minimal_symbol_solib_trampoline): Update.
8422 (lookup_minimal_symbol_by_pc_section_1): Update.
8423 (lookup_minimal_symbol_and_objfile): Update.
8424 (prim_record_minimal_symbol_full): Update.
8425 (compare_minimal_symbols): Update.
8426 (compact_minimal_symbols): Update.
8427 (build_minimal_symbol_hash_tables): Update.
8428 (install_minimal_symbols): Update.
8429 (terminate_minimal_symbol_table): Update.
8430 (find_solib_trampoline_target): Update.
8431 (minimal_symbol_upper_bound): Update.
8432 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8433 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8434 (mips_skip_pic_trampoline_code): Update.
8435 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8436 * objc-lang.c (selectors_info): Update.
8437 (classes_info): Update.
8438 (find_methods): Update.
8439 (find_imps): Update.
8440 (find_objc_msgsend): Update.
8441 * objfiles.c (objfile_relocate1): Update.
8442 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8443 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8444 * p-valprint.c (pascal_val_print): Update.
8445 * parse.c (write_exp_msymbol): Update.
8446 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8447 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8448 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8449 * printcmd.c (build_address_symbolic): Update.
8451 (address_info): Update.
8452 * proc-service.c (ps_pglobal_lookup): Update.
8453 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8454 (find_pc_sect_psymtab): Update.
8455 * python/py-framefilter.c (py_print_frame): Update.
8456 * ravenscar-thread.c (get_running_thread_id): Update.
8457 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8459 * remote.c (remote_check_symbols): Update.
8460 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8461 (rs6000_skip_trampoline_code): Update.
8462 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8463 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8464 * solib-dsbt.c (lm_base): Update.
8465 * solib-frv.c (lm_base): Update.
8467 * solib-irix.c (locate_base): Update.
8468 * solib-som.c (som_solib_create_inferior_hook): Update.
8469 (som_solib_desire_dynamic_linker_symbols): Update.
8470 (link_map_start): Update.
8471 * solib-spu.c (spu_enable_break): Update.
8472 (ocl_enable_break): Update.
8473 * solib-svr4.c (elf_locate_base): Update.
8474 (enable_break): Update.
8475 * spu-tdep.c (spu_get_overlay_table): Update.
8476 (spu_catch_start): Update.
8477 (flush_ea_cache): Update.
8478 * stabsread.c (define_symbol): Update.
8479 (scan_file_globals): Update.
8480 * stack.c (find_frame_funname): Update.
8481 (frame_info): Update.
8482 * symfile.c (simple_read_overlay_table): Update.
8483 (simple_overlay_update): Update.
8484 * symmisc.c (dump_msymbols): Update.
8485 * symtab.c (fixup_section): Update.
8486 (find_pc_sect_line): Update.
8487 (skip_prologue_sal): Update.
8488 (search_symbols): Update.
8489 (print_msymbol_info): Update.
8490 (rbreak_command): Update.
8491 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8492 (completion_list_objc_symbol): Update.
8493 (default_make_symbol_completion_list_break_on): Update.
8494 * tracepoint.c (scope_info): Update.
8495 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8496 (tui_get_begin_asm_address): Update.
8497 * valops.c (find_function_in_inferior): Update.
8498 * value.c (value_static_field): Update.
8499 (value_fn_field): Update.
8501 2014-02-26 Tom Tromey <tromey@redhat.com>
8503 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8504 bound minimal symbols. Move code that knows about minsym
8506 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8508 * minsyms.h (minimal_symbol_upper_bound): Declare.
8509 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8510 minimal_symbol_upper_bound.
8512 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8514 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8515 Use the type's name if its basic type does not have a tag.
8517 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8519 * dwarf2read.c (read_subrange_type): Add comment.
8521 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8523 * dwarf2read.c (update_enumeration_type_from_children): New
8524 function, mostly extracted from process_structure_scope.
8525 (read_enumeration_type): Call update_enumeration_type_from_children.
8526 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8527 and flag_flag_enum fields.
8529 2014-02-26 Pedro Alves <palves@redhat.com>
8531 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8532 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8533 to_xfer_partial method.
8535 2014-02-26 Pedro Alves <palves@redhat.com>
8537 * target.c (complete_target_initialization): Don't install
8538 default_xfer_partial as to_xfer_partial hook.
8540 (update_current_target): Don't INHERIT nor de_fault
8541 deprecated_xfer_memory. Delete de_fault macro.
8542 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8543 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8544 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8547 2014-02-26 Pedro Alves <palves@redhat.com>
8549 * go32-nat.c (my_write_child): New function.
8550 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8551 (go32_xfer_partial): New function.
8552 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8553 Instead install a to_xfer_partial hook.
8555 2014-02-26 Pedro Alves <palves@redhat.com>
8557 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8558 to_xfer_partial helper. Rewrite.
8559 (procfs_xfer_partial): New function.
8560 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8561 Install a to_xfer_partial hook.
8563 2014-02-26 Pedro Alves <palves@redhat.com>
8565 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8566 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8567 (m32r_xfer_partial): New function.
8568 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8569 Install a to_xfer_partial hook.
8571 2014-02-26 Pedro Alves <palves@redhat.com>
8573 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8575 (mips_xfer_partial): New function.
8576 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8577 hook. Install a to_xfer_partial hook.
8579 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8581 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8582 * gdbtypes.c (create_array_type_with_stride): New function,
8583 renaming create_array_type, but with an added parameter
8584 called "bit_stride".
8585 (create_array_type): Re-implement using
8586 create_array_type_with_stride.
8587 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8588 and DW_AT_bit_stride attributes.
8590 2014-02-26 Pedro Alves <palves@redhat.com>
8592 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8593 task-specific breakpoints.
8595 2014-02-25 Pedro Alves <palves@redhat.com>
8597 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8598 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8600 2014-02-25 Stan Shebs <stan@codesourcery.com>
8602 * defs.h: Annotate comments for Doxygen.
8604 2014-02-25 Tom Tromey <tromey@redhat.com>
8606 * target.h (target_ignore): Don't declare.
8607 * target.c (target_ignore): Remove.
8609 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8612 * auto-load.c (auto_load_objfile_script_1): Change filename to
8615 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8617 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8618 documentation. Adjust prototype to match the target_ops
8619 to_xfer_partial method. Adjust implementation accordingly.
8621 2014-02-25 Hui Zhu <hui@codesourcery.com>
8623 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8626 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8628 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8629 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8630 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8631 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8632 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8633 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8634 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8635 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8637 (rl78_register_type): Use a data pointer type for SP and
8638 new pseudo registers mentioned above. Use a 16 bit integer
8639 type for all other register pairs.
8640 (rl78_register_name, rl78_g10_register_name): Update for
8641 new pseudo registers.
8642 (rl78_pseudo_register_read): Likewise.
8643 (rl78_pseudo_register_write): Likewise.
8644 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8645 to the newly added pseudo registers.
8647 2014-02-24 Doug Evans <dje@google.com>
8649 * value.c (record_latest_value): Fix comment.
8650 * printcmd.c (print_command_1): Remove code to handle -1 return from
8651 record_latest_value.
8653 2014-02-24 Pedro Alves <palves@redhat.com>
8655 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8656 deprecated_xfer_memory hook.
8657 (procfs_xfer_partial): Call procfs_xfer_memory instead
8658 of the deprecated_xfer_memory target hook.
8659 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8662 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8664 * windows-nat.c (windows_xfer_shared_libraries): Return
8665 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8666 requested object is TARGET_OBJECT_LIBRARIES.
8668 2014-02-24 Yao Qi <yao@codesourcery.com>
8670 * target.h (enum target_xfer_status)
8671 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8672 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8674 * corefile.c (memory_error_message): User updated.
8675 * exec.c (section_table_read_available_memory): Likewise.
8676 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8677 * target.c (target_xfer_status_to_string): Likewise.
8678 (raw_memory_xfer_partial): Likewise.
8679 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8680 * valops.c (read_value_memory): Likewise.
8681 * exec.h: Update comments.
8683 2014-02-24 Yao Qi <yao@codesourcery.com>
8685 * target.c (target_xfer_status_to_string): Rename argument err
8687 * target.h (target_xfer_status_to_string): Update declaration.
8688 Replace target_xfer_error_to_string with
8689 target_xfer_status_to_string in comment.
8691 2014-02-24 Yao Qi <yao@codesourcery.com>
8693 * mips-linux-nat.c (super_close): Update its type.
8694 (mips_linux_close): Pass 'self' to super_close.
8696 2014-02-24 Yao Qi <yao@codesourcery.com>
8698 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8699 * corefile.c (read_memory): Adjusted.
8700 * target.c (target_write_with_progress): Adjusted.
8702 2014-02-23 Yao Qi <yao@codesourcery.com>
8706 2013-10-25 Yao Qi <yao@codesourcery.com>
8708 * remote.c (remote_traceframe_info): Return early if
8709 traceframe is not selected.
8711 2013-07-19 Yao Qi <yao@codesourcery.com>
8713 * target.c (update_current_target): Change the default action
8714 of 'to_traceframe_info' from tcomplain to return_zero.
8715 * target.h (struct target_ops) <to_traceframe_info>: Add more
8718 2014-02-23 Yao Qi <yao@codesourcery.com>
8720 * valops.c (read_value_memory): Rewrite it. Call
8721 target_xfer_partial in a loop.
8722 * exec.h (section_table_available_memory): Remove declaration.
8723 Move comments to ...
8724 * exec.c (section_table_available_memory): ... here. Make it
8727 2014-02-23 Yao Qi <yao@codesourcery.com>
8729 * exec.c (section_table_read_available_memory): New function.
8730 * exec.h (section_table_read_available_memory): Declare.
8731 * ctf.c (ctf_xfer_partial): Call
8732 section_table_read_available_memory.
8733 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8735 2014-02-23 Yao Qi <yao@codesourcery.com>
8737 * ctf.c (ctf_xfer_partial): Move code to ...
8738 * exec.c (exec_read_partial_read_only): ... it. New function.
8739 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8740 * tracefile.c: Include "exec.h".
8741 * exec.h (exec_read_partial_read_only): Declare.
8743 2014-02-23 Yao Qi <yao@codesourcery.com>
8745 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8746 (tfile_has_memory): Remove.
8747 (init_tfile_ops): Don't set fields to_has_all_memory and
8748 to_has_memory of tfile_ops.
8749 * tracefile.c (tracefile_has_all_memory): New function.
8750 (tracefile_has_memory): New function.
8751 (init_tracefile_ops): Initialize fields to_has_all_memory and
8752 to_has_memory of 'ops'.
8754 2014-02-23 Yao Qi <yao@codesourcery.com>
8756 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8757 (ctf_thread_alive, ctf_get_trace_status): Remove.
8758 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8760 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8761 (tfile_has_stack, tfile_has_registers): Remove.
8762 (tfile_thread_alive): Remove.
8763 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8765 * tracefile.c (tracefile_has_stack): New function.
8766 (tracefile_has_registers): New function.
8767 (tracefile_thread_alive): New function.
8768 (tracefile_get_trace_status): New function.
8769 (init_tracefile_ops): New function.
8770 * tracefile.h (init_tracefile_ops): Declare.
8772 2014-02-23 Yao Qi <yao@codesourcery.com>
8774 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8775 (O_LARGEFILE): Likewise.
8776 (tfile_ops): Likewise.
8777 (TRACE_HEADER_SIZE): Likewise.
8778 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8779 (cur_data_size): Likewise.
8780 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8781 (tfile_close, tfile_files_info): Likewise.
8782 (tfile_get_trace_status): Likewise.
8783 (tfile_get_tracepoint_status): Likewise.
8784 (tfile_get_traceframe_address): Likewise.
8785 (tfile_trace_find, match_blocktype): Likewise.
8786 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8787 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8788 (tfile_get_trace_state_variable_value): Likewise.
8789 (tfile_has_all_memory, tfile_has_memory): Likewise.
8790 (tfile_has_stack, tfile_has_registers): Likewise.
8791 (tfile_thread_alive, build_traceframe_info): Likewise.
8792 (tfile_traceframe_info, init_tfile_ops): Likewise.
8793 (_initialize_tracepoint): Don't call init_tfile_ops
8794 and add_target_with_completer.
8795 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8796 exec.h, completer.h and filenames.h.
8797 (_initialize_tracefile_tfile): New function.
8799 2014-02-23 Yao Qi <yao@codesourcery.com>
8801 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8803 (HFILES_NO_SRCDIR): Add tracefile.h.
8804 * ctf.c: Include "tracefile.h".
8805 * tracefile.h: New file.
8806 * tracefile.c: New file
8807 * tracefile-tfile.c: New file.
8808 * tracepoint.c: Include "tracefile.h".
8809 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8810 (stop_reason_names): Add const.
8811 (trace_file_writer_xfree): Move it to tracefile.c.
8812 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8813 (trace_save_ctf): Likewise.
8814 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8815 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8816 (tfile_write_header, tfile_write_regblock_type): Likewise.
8817 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8818 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8819 (tfile_write_raw_data, tfile_end): Likewise.
8820 (tfile_trace_file_writer_new): Likewise.
8821 (free_uploaded_tp): Make it extern.
8822 (free_uploaded_tsv): Make it extern.
8823 (_initialize_tracepoint): Move code to register command 'tsave'
8825 * tracepoint.h (stop_reason_names): Declare.
8826 (struct trace_frame_write_ops): Move it to tracefile.h.
8827 (struct trace_file_write_ops): Likewise.
8828 (struct trace_file_writer): Likewise.
8829 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8831 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8834 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8836 (get_cores_used_by_process): New parameter num_cores, use it.
8837 (linux_xfer_osdata_processes): Pass num_cores to it.
8838 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8841 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8843 * target.c (memory_xfer_partial): Fix length arg in call to
8844 breakpoint_xfer_memory.
8846 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8849 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8850 number comes after the + or - signs. Adjust length of register
8851 name to be extracted.
8853 2014-02-20 Tom Tromey <tromey@redhat.com>
8855 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8856 (ada_varobj_ops): Mark "extern".
8858 2014-02-20 Tom Tromey <tromey@redhat.com>
8860 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8862 2014-02-20 Doug Evans <xdje42@gmail.com>
8864 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8865 All callers updated.
8866 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8867 All callers updated.
8868 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8869 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8871 2014-02-20 lin zuojian <manjian2006@gmail.com>
8872 Joel Brobecker <brobecker@adacore.com>
8873 Doug Evans <xdje42@gmail.com>
8876 * dwarf2read.c (struct die_info): New member in_process.
8877 (reset_die_in_process): New function.
8878 (process_die): Set it at the start, reset when returning.
8879 (inherit_abstract_dies): Only call process_die if origin_child_die
8880 not already being processed.
8882 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8884 * windows-nat.c (handle_unload_dll): Add function documentation.
8885 (do_initial_windows_stuff): Add comment explaining why we wait
8886 until after inferior initialization has finished before
8887 processing all DLLs.
8889 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8891 * windows-nat.c (get_module_name): Delete.
8892 (windows_get_exec_module_filename): New function, mostly
8893 inspired from get_module_name.
8894 (windows_pid_to_exec_file): Replace call to get_module_name
8895 by call to windows_get_exec_module_filename.
8897 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8899 * windows-nat.c (handle_load_dll): Rewrite this function's
8900 introductory comment. Remove code using get_module_name
8901 to get the DLL's name.
8903 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8905 * windows-nat.c (get_windows_debug_event): Ignore
8906 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8907 if windows_initialization_done == 0.
8908 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8909 Adjust implementation to always load all DLLs.
8910 (do_initial_windows_stuff): Replace call to
8911 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8913 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8915 * windows-nat.c (_initialize_windows_nat): Deprecate the
8916 "dll-symbols" command. Turn the "add-shared-symbol-files"
8917 and "assf" aliases into commands, and deprecate them as well.
8918 * NEWS: Add entry explaining that "dll-symbols" and its two
8919 aliases are now deprecated.
8921 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8923 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8924 new-line in debug string. Remove trailing spaces.
8926 2014-02-19 Stan Shebs <stan@codesourcery.com>
8928 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8930 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8932 * NEWS: Add entry for the new feature
8933 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8936 2014-02-19 Stan Shebs <stan@codesourcery.com>
8938 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8940 2014-02-19 Pedro Alves <palves@redhat.com>
8942 * common/ptid.h (struct ptid): Mention that process_stratum
8943 targets should prefer ptid.lwp.
8945 2014-02-19 Pedro Alves <palves@redhat.com>
8947 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8948 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8949 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8950 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8951 store remote thread ids rather than ptid.tid.
8952 (_initialize_remote): Adjust.
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8956 * target.c (target_get_unwinder): Rewrite.
8957 (target_get_tailcall_unwinder): Rewrite.
8958 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8959 (record_btrace_to_get_tailcall_unwinder): New function.
8960 (init_record_btrace_ops): Update.
8961 * target.h (struct target_ops) <to_get_unwinder,
8962 to_get_tailcall_unwinder>: Now function pointers. Use
8963 TARGET_DEFAULT_RETURN.
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8969 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8973 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8975 * target-delegates.c: Rebuild.
8976 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8977 TARGET_DEFAULT_FUNC.
8978 * target.c (default_target_decr_pc_after_break): Rename from
8979 forward_target_decr_pc_after_break. Simplify.
8980 (target_decr_pc_after_break): Rely on delegation.
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8984 * target.c (update_current_target): Do not INHERIT to_doc or
8985 to_magic. Do not de_fault to_open or to_close.
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * gcore.h (objfile_find_memory_regions): Declare.
8990 * gcore.c (objfile_find_memory_regions): No longer static. Add
8992 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8993 * exec.c: Include gcore.h.
8994 (exec_set_find_memory_regions): Remove.
8995 (exec_find_memory_regions): Remove.
8996 (exec_do_find_memory_regions): Remove.
8997 (init_exec_ops): Update.
8998 * defs.h (exec_set_find_memory_regions): Remove.
9000 2014-02-19 Tom Tromey <tromey@redhat.com>
9002 * target-delegates.c: Rebuild.
9003 * target.h (struct target_ops) <to_extra_thread_info,
9004 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9005 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9006 not 0, in TARGET_DEFAULT_RETURN.
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * target.c (complete_target_initialization): Remove casts. Use
9011 return_zero_has_execution.
9012 (return_zero): Add "ignore" argument.
9013 (return_zero_has_execution): New function.
9014 (init_dummy_target): Remove casts. Use
9015 return_zero_has_execution.
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9019 * target.c (update_current_target): Update comments. Do not
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9026 * corelow.c (core_read_description): Delegate when needed.
9027 * remote.c (remote_read_description): Delegate when needed.
9028 * target-delegates.c: Rebuild.
9029 * target.c (target_read_description): Rewrite.
9030 * target.h (struct target_ops) <to_read_description>: Update
9031 comment. Use TARGET_DEFAULT_RETURN.
9033 2014-02-19 Tom Tromey <tromey@redhat.com>
9035 * target-delegates.c: Rebuild.
9036 * target.c (update_current_target): Don't inherit or default
9038 (find_default_run_target): Check against delegate_can_run.
9039 * target.h (struct target_ops) <to_can_run>: Use
9040 TARGET_DEFAULT_RETURN.
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9044 * target-delegates.c: Rebuild.
9045 * target.c (target_disconnect): Unconditionally delegate.
9046 * target.h (struct target_ops) <to_disconnect>: Use
9047 TARGET_DEFAULT_NORETURN.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * record.c (record_stop): Unconditionally delegate.
9052 * target-delegates.c: Rebuild.
9053 * target.c (target_stop_recording): Unconditionally delegate.
9054 * target.h (struct target_ops) <to_stop_recording>: Use
9055 TARGET_DEFAULT_IGNORE.
9057 2014-02-19 Tom Tromey <tromey@redhat.com>
9059 * target-delegates.c: Rebuild.
9060 * target.c (target_enable_btrace): Unconditionally delegate.
9061 * target.h (struct target_ops) <to_enable_btrace>: Use
9062 TARGET_DEFAULT_NORETURN.
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9066 * target-delegates.c: Rebuild.
9067 * target.c (target_read_btrace): Unconditionally delegate.
9068 * target.h (struct target_ops) <to_read_btrace>: Use
9069 TARGET_DEFAULT_NORETURN.
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9073 * target-delegates.c: Rebuild.
9074 * target.c (target_teardown_btrace): Unconditionally delegate.
9075 * target.h (struct target_ops) <to_teardown_btrace>: Use
9076 TARGET_DEFAULT_NORETURN.
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9080 * target-delegates.c: Rebuild.
9081 * target.c (target_disable_btrace): Unconditionally delegate.
9082 * target.h (struct target_ops) <to_disable_btrace>: Use
9083 TARGET_DEFAULT_NORETURN.
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9087 * target-delegates.c: Rebuild.
9088 * target.c (default_search_memory): New function.
9089 (simple_search_memory): Update comment.
9090 (target_search_memory): Unconditionally delegate.
9091 * target.h (struct target_ops) <to_search_memory>: Use
9092 TARGET_DEFAULT_FUNC.
9094 2014-02-19 Tom Tromey <tromey@redhat.com>
9096 * auxv.c (default_auxv_parse): No longer static.
9097 (target_auxv_parse): Unconditionally delegate.
9098 * auxv.h (default_auxv_parse): Declare.
9099 * target-delegates.c: Rebuild.
9100 * target.c: Include auxv.h.
9101 * target.h (struct target_ops) <to_auxv_parse>: Use
9102 TARGET_DEFAULT_FUNC.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * target-delegates.c: Rebuild.
9107 * target.c (target_memory_map): Unconditionally delegate.
9108 * target.h (struct target_ops) <to_memory_map>: Use
9109 TARGET_DEFAULT_RETURN.
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9113 * target-delegates.c: Rebuild.
9114 * target.c (target_thread_alive): Unconditionally delegate.
9115 * target.h (struct target_ops) <to_thread_alive>: Use
9116 TARGET_DEFAULT_RETURN.
9118 2014-02-19 Tom Tromey <tromey@redhat.com>
9120 * target-delegates.c: Rebuild.
9121 * target.c (target_save_record): Unconditionally delegate.
9122 * target.h (struct target_ops) <to_save_record>: Use
9123 TARGET_DEFAULT_NORETURN.
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9127 * target-delegates.c: Rebuild.
9128 * target.c (target_delete_record): Unconditionally delegate.
9129 * target.h (struct target_ops) <to_delete_record>: Use
9130 TARGET_DEFAULT_NORETURN.
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9134 * target-delegates.c: Rebuild.
9135 * target.c (target_record_is_replaying): Unconditionally
9137 * target.h (struct target_ops) <to_record_is_replaying>: Use
9138 TARGET_DEFAULT_RETURN.
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * target-delegates.c: Rebuild.
9143 * target.c (target_goto_record_begin): Unconditionally delegate.
9144 * target.h (struct target_ops) <to_goto_record_begin>: Use
9145 TARGET_DEFAULT_NORETURN.
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9149 * target-delegates.c: Rebuild.
9150 * target.c (target_goto_record_end): Unconditionally delegate.
9151 * target.h (struct target_ops) <to_goto_record_end>: Use
9152 TARGET_DEFAULT_NORETURN.
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9156 * target-delegates.c: Rebuild.
9157 * target.c (target_goto_record): Unconditionally delegate.
9158 * target.h (struct target_ops) <to_goto_record>: Use
9159 TARGET_DEFAULT_NORETURN.
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9163 * target-delegates.c: Rebuild.
9164 * target.c (target_insn_history): Unconditionally delegate.
9165 * target.h (struct target_ops) <to_insn_history>: Use
9166 TARGET_DEFAULT_NORETURN.
9168 2014-02-19 Tom Tromey <tromey@redhat.com>
9170 * target-delegates.c: Rebuild.
9171 * target.c (target_insn_history_from): Unconditionally delegate.
9172 * target.h (struct target_ops) <to_insn_history_from>: Use
9173 TARGET_DEFAULT_NORETURN.
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9177 * target-delegates.c: Rebuild.
9178 * target.c (target_insn_history_range): Unconditionally delegate.
9179 * target.h (struct target_ops) <to_insn_history_range>: Use
9180 TARGET_DEFAULT_NORETURN.
9182 2014-02-19 Tom Tromey <tromey@redhat.com>
9184 * target-delegates.c: Rebuild.
9185 * target.c (target_call_history): Unconditionally delegate.
9186 * target.h (struct target_ops) <to_call_history>: Use
9187 TARGET_DEFAULT_NORETURN.
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9191 * target-delegates.c: Rebuild.
9192 * target.c (target_call_history_from): Unconditionally delegate.
9193 * target.h (struct target_ops) <to_call_history_from>: Use
9194 TARGET_DEFAULT_NORETURN.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target-delegates.c: Rebuild.
9199 * target.c (target_call_history_range): Unconditionally delegate.
9200 * target.h (struct target_ops) <to_call_history_range>: Use
9201 TARGET_DEFAULT_NORETURN.
9203 2014-02-19 Tom Tromey <tromey@redhat.com>
9205 * target-delegates.c: Rebuild.
9206 * target.c (target_verify_memory): Unconditionally delegate.
9207 * target.h (struct target_ops) <to_verify_memory>: Use
9208 TARGET_DEFAULT_NORETURN.
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target-delegates.c: Rebuild.
9213 * target.c (target_core_of_thread): Unconditionally delegate.
9214 * target.h (struct target_ops) <to_core_of_thread>: Use
9215 TARGET_DEFAULT_RETURN.
9217 2014-02-19 Tom Tromey <tromey@redhat.com>
9219 * target-delegates.c: Rebuild.
9220 * target.c (target_flash_done): Unconditionally delegate.
9221 * target.h (struct target_ops) <to_flash_done>: Use
9222 TARGET_DEFAULT_NORETURN.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * target-delegates.c: Rebuild.
9227 * target.c (target_flash_erase): Unconditionally delegate.
9228 * target.h (struct target_ops) <to_flash_erase>: Use
9229 TARGET_DEFAULT_NORETURN.
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9233 * target-delegates.c: Rebuild.
9234 * target.c (target_get_section_table): Unconditionally delegate.
9235 * target.h (struct target_ops) <to_get_section_table>: Use
9236 TARGET_DEFAULT_RETURN.
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9240 * target-delegates.c: Rebuild.
9241 * target.c (target_pid_to_str): Unconditionally delegate.
9242 (init_dummy_target): Don't initialize to_pid_to_str.
9243 (default_pid_to_str): Rename from dummy_pid_to_str.
9244 * target.h (struct target_ops) <to_pid_to_str>: Use
9245 TARGET_DEFAULT_FUNC.
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9249 * target-delegates.c: Rebuild.
9250 * target.c (target_find_new_threads): Unconditionally delegate.
9251 * target.h (struct target_ops) <to_find_new_threads>: Use
9252 TARGET_DEFAULT_RETURN.
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target-delegates.c: Rebuild.
9257 * target.c (target_program_signals): Unconditionally delegate.
9258 * target.h (struct target_ops) <to_program_signals>: Use
9259 TARGET_DEFAULT_IGNORE.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target-delegates.c: Rebuild.
9264 * target.c (target_pass_signals): Unconditionally delegate.
9265 * target.h (struct target_ops) <to_pass_signals>: Use
9266 TARGET_DEFAULT_IGNORE.
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9270 * target-delegates.c: Rebuild.
9271 * target.c (default_mourn_inferior): New function.
9272 (target_mourn_inferior): Unconditionally delegate.
9273 * target.h (struct target_ops) <to_mourn_inferior>: Use
9274 TARGET_DEFAULT_FUNC.
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9278 * target-delegates.c: Rebuild.
9279 * target.c (default_follow_fork): New function.
9280 (target_follow_fork): Unconditionally delegate.
9281 * target.h (struct target_ops) <to_follow_fork>: Use
9282 TARGET_DEFAULT_FUNC.
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9286 * target-delegates.c: Rebuild.
9287 * target.c (target_kill): Unconditionally delegate.
9288 * target.h (struct target_ops) <to_kill>: Use
9289 TARGET_DEFAULT_NORETURN.
9291 2014-02-19 Tom Tromey <tromey@redhat.com>
9293 * target-delegates.c: Rebuild.
9294 * target.c (target_masked_watch_num_registers): Unconditionally
9296 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9297 Use TARGET_DEFAULT_RETURN.
9299 2014-02-19 Tom Tromey <tromey@redhat.com>
9301 * target-delegates.c: Rebuild.
9302 * target.c (target_remove_mask_watchpoint): Unconditionally
9304 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9305 TARGET_DEFAULT_RETURN.
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9309 * target-delegates.c: Rebuild.
9310 * target.c (target_insert_mask_watchpoint): Unconditionally
9312 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9313 TARGET_DEFAULT_RETURN.
9315 2014-02-19 Tom Tromey <tromey@redhat.com>
9317 * target-delegates.c: Rebuild.
9318 * target.c (target_ranged_break_num_registers): Unconditionally
9320 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9321 Use TARGET_DEFAULT_RETURN.
9323 2014-02-19 Tom Tromey <tromey@redhat.com>
9325 * target-delegates.c: Rebuild.
9326 * target.c (target_fetch_registers): Unconditionally delegate.
9327 * target.h (struct target_ops) <to_fetch_registers>: Use
9328 TARGET_DEFAULT_NORETURN.
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9332 * target-delegates.c: Rebuild.
9333 * target.c (update_current_target): Don't inherit or default
9335 * target.h (struct target_ops) <to_stop>: Use
9336 TARGET_DEFAULT_IGNORE.
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9340 * target-delegates.c: Rebuild.
9341 * target.c (update_current_target): Don't inherit or default
9342 to_can_run_breakpoint_commands.
9343 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9344 Use TARGET_DEFAULT_RETURN.
9346 2014-02-19 Tom Tromey <tromey@redhat.com>
9348 * target-delegates.c: Rebuild.
9349 * target.c (update_current_target): Don't inherit or default
9350 to_supports_evaluation_of_breakpoint_conditions.
9351 * target.h (struct target_ops)
9352 <to_supports_evaluation_of_breakpoint_conditions>: Use
9353 TARGET_DEFAULT_RETURN.
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9357 * target-delegates.c: Rebuild.
9358 * target.c (update_current_target): Don't inherit or default
9359 to_augmented_libraries_svr4_read.
9360 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9361 Use TARGET_DEFAULT_RETURN.
9363 2014-02-19 Tom Tromey <tromey@redhat.com>
9365 * target-delegates.c: Rebuild.
9366 * target.c (update_current_target): Don't inherit or default
9368 * target.h (struct target_ops) <to_can_use_agent>: Use
9369 TARGET_DEFAULT_RETURN.
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9373 * target-delegates.c: Rebuild.
9374 * target.c (update_current_target): Don't inherit or default
9376 * target.h (struct target_ops) <to_use_agent>: Use
9377 TARGET_DEFAULT_NORETURN.
9379 2014-02-19 Tom Tromey <tromey@redhat.com>
9381 * target-delegates.c: Rebuild.
9382 * target.c (update_current_target): Don't inherit or default
9384 (return_null): Remove.
9385 * target.h (struct target_ops) <to_traceframe_info>: Use
9386 TARGET_DEFAULT_RETURN.
9388 2014-02-19 Tom Tromey <tromey@redhat.com>
9390 * target-delegates.c: Rebuild.
9391 * target.c (update_current_target): Don't inherit or default
9392 to_static_tracepoint_markers_by_strid.
9393 * target.h (struct target_ops)
9394 <to_static_tracepoint_markers_by_strid>: Use
9395 TARGET_DEFAULT_NORETURN.
9397 2014-02-19 Tom Tromey <tromey@redhat.com>
9399 * target-delegates.c: Rebuild.
9400 * target.c (update_current_target): Don't inherit or default
9401 to_static_tracepoint_marker_at.
9402 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9403 Use TARGET_DEFAULT_RETURN.
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9407 * target-delegates.c: Rebuild.
9408 * target.c (update_current_target): Don't inherit or default
9410 * target.h (struct target_ops) <to_set_permissions>: Use
9411 TARGET_DEFAULT_IGNORE.
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9415 * target-delegates.c: Rebuild.
9416 * target.c (update_current_target): Don't inherit or default
9418 * target.h (struct target_ops) <to_get_tib_address>: Use
9419 TARGET_DEFAULT_NORETURN.
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9423 * target-delegates.c: Rebuild.
9424 * target.c (update_current_target): Don't inherit or default
9426 * target.h (struct target_ops) <to_set_trace_notes>: Use
9427 TARGET_DEFAULT_RETURN.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target-delegates.c: Rebuild.
9432 * target.c (update_current_target): Don't initialize
9433 to_set_trace_buffer_size.
9434 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9435 TARGET_DEFAULT_IGNORE.
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target-delegates.c: Rebuild.
9440 * target.c (update_current_target): Don't inherit or default
9441 to_set_circular_trace_buffer.
9442 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9443 TARGET_DEFAULT_IGNORE.
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9447 * target-delegates.c: Rebuild.
9448 * target.c (update_current_target): Don't inherit or default
9449 to_set_disconnected_tracing.
9450 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9451 TARGET_DEFAULT_IGNORE.
9453 2014-02-19 Tom Tromey <tromey@redhat.com>
9455 * target-delegates.c: Rebuild.
9456 * target.c (update_current_target): Don't inherit or default
9457 to_get_min_fast_tracepoint_insn_len.
9458 (return_minus_one): Remove.
9459 * target.h (struct target_ops)
9460 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target-delegates.c: Rebuild.
9465 * target.c (update_current_target): Don't inherit or default
9466 to_get_raw_trace_data.
9467 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9468 TARGET_DEFAULT_NORETURN.
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9472 * target-delegates.c: Rebuild.
9473 * target.c (update_current_target): Don't inherit or default
9474 to_upload_trace_state_variables.
9475 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9476 Use TARGET_DEFAULT_RETURN.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * target-delegates.c: Rebuild.
9481 * target.c (update_current_target): Don't inherit or default
9482 to_upload_tracepoints.
9483 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9484 TARGET_DEFAULT_RETURN.
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9488 * target-delegates.c: Rebuild.
9489 * target.c (update_current_target): Don't inherit or default
9491 * target.h (struct target_ops) <to_save_trace_data>: Use
9492 TARGET_DEFAULT_NORETURN.
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9496 * target-delegates.c: Rebuild.
9497 * target.c (update_current_target): Don't inherit or default
9498 to_get_trace_state_variable_value.
9499 * target.h (struct target_ops)
9500 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9502 2014-02-19 Tom Tromey <tromey@redhat.com>
9504 * target-delegates.c: Rebuild.
9505 * target.c (update_current_target): Don't inherit or default
9507 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9509 2014-02-19 Tom Tromey <tromey@redhat.com>
9511 * target-delegates.c: Rebuild.
9512 * target.c (update_current_target): Don't inherit or default
9514 * target.h (struct target_ops) <to_trace_stop>: Use
9515 TARGET_DEFAULT_NORETURN.
9517 2014-02-19 Tom Tromey <tromey@redhat.com>
9519 * target-delegates.c: Rebuild.
9520 * target.c (update_current_target): Don't inherit or default
9521 to_get_tracepoint_status.
9522 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9523 TARGET_DEFAULT_NORETURN.
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9527 * target-delegates.c: Rebuild.
9528 * target.c (update_current_target): Don't inherit or default
9529 to_get_trace_status.
9530 * target.h (struct target_ops) <to_get_trace_status>: Use
9531 TARGET_DEFAULT_RETURN.
9533 2014-02-19 Tom Tromey <tromey@redhat.com>
9535 * target-delegates.c: Rebuild.
9536 * target.c (update_current_target): Don't inherit or default
9538 * target.h (struct target_ops) <to_trace_start>: Use
9539 TARGET_DEFAULT_NORETURN.
9541 2014-02-19 Tom Tromey <tromey@redhat.com>
9543 * target-delegates.c: Rebuild.
9544 * target.c (update_current_target): Don't inherit or default
9545 to_trace_set_readonly_regions.
9546 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9547 Use TARGET_DEFAULT_NORETURN.
9549 2014-02-19 Tom Tromey <tromey@redhat.com>
9551 * target-delegates.c: Rebuild.
9552 * target.c (update_current_target): Don't inherit or default
9553 to_disable_tracepoint.
9554 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9555 TARGET_DEFAULT_NORETURN.
9557 2014-02-19 Tom Tromey <tromey@redhat.com>
9559 * target-delegates.c: Rebuild.
9560 * target.c (update_current_target): Don't inherit or default
9561 to_enable_tracepoint.
9562 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9563 TARGET_DEFAULT_NORETURN.
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9567 * target-delegates.c: Rebuild.
9568 * target.c (update_current_target): Don't inherit or default
9569 to_download_trace_state_variable.
9570 * target.h (struct target_ops) <to_download_trace_state_variable>:
9571 Use TARGET_DEFAULT_NORETURN.
9573 2014-02-19 Tom Tromey <tromey@redhat.com>
9575 * target-delegates.c: Rebuild.
9576 * target.c (update_current_target): Don't inherit or default
9577 to_can_download_tracepoint.
9578 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9579 TARGET_DEFAULT_RETURN.
9581 2014-02-19 Tom Tromey <tromey@redhat.com>
9583 * target-delegates.c: Rebuild.
9584 * target.c (update_current_target): Don't inherit or default
9585 to_download_tracepoint.
9586 * target.h (struct target_ops) <to_download_tracepoint>: Use
9587 TARGET_DEFAULT_NORETURN.
9589 2014-02-19 Tom Tromey <tromey@redhat.com>
9591 * target-delegates.c: Rebuild.
9592 * target.c (update_current_target): Don't inherit or default
9594 * target.h (struct target_ops) <to_trace_init>: Use
9595 TARGET_DEFAULT_RETURN.
9597 2014-02-19 Tom Tromey <tromey@redhat.com>
9599 * target-delegates.c: Rebuild.
9600 * target.c (update_current_target): Don't inherit or default
9601 to_supports_string_tracing.
9602 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9603 TARGET_DEFAULT_RETURN.
9605 2014-02-19 Tom Tromey <tromey@redhat.com>
9607 * target-delegates.c: Rebuild.
9608 * target.c (update_current_target): Don't inherit or default
9609 to_supports_enable_disable_tracepoint.
9610 * target.h (struct target_ops)
9611 <to_supports_enable_disable_tracepoint>: Use
9612 TARGET_DEFAULT_RETURN.
9614 2014-02-19 Tom Tromey <tromey@redhat.com>
9616 * target-delegates.c: Rebuild.
9617 * target.c (update_current_target): Don't inherit or default
9618 to_supports_multi_process.
9619 * target.h (struct target_ops) <to_supports_multi_process>: Use
9620 TARGET_DEFAULT_RETURN.
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9624 * target-delegates.c: Rebuild.
9625 * target.c (update_current_target): Don't inherit or default
9626 to_get_ada_task_ptid.
9627 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9628 TARGET_DEFAULT_FUNC.
9630 2014-02-19 Tom Tromey <tromey@redhat.com>
9632 * target-delegates.c: Rebuild.
9633 * target.c (update_current_target): Don't inherit or default
9634 to_thread_architecture.
9635 * target.h (struct target_ops) <to_thread_architecture>: Use
9636 TARGET_DEFAULT_FUNC.
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9640 * target-delegates.c: Rebuild.
9641 * target.c (update_current_target): Don't inherit or default
9642 to_execution_direction.
9643 * target.h (struct target_ops) <to_execution_direction>: Use
9644 TARGET_DEFAULT_FUNC.
9646 2014-02-19 Tom Tromey <tromey@redhat.com>
9648 * target-delegates.c: Rebuild.
9649 * target.c (update_current_target): Don't inherit or default
9650 to_can_execute_reverse.
9651 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9652 TARGET_DEFAULT_RETURN.
9653 (target_can_execute_reverse): Unconditionally delegate.
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9657 * target-delegates.c: Rebuild.
9658 * target.c (update_current_target): Don't inherit or default
9660 (dummy_goto_bookmark): Remove.
9661 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9662 * target.h (struct target_ops) <to_goto_bookmark>: Use
9663 TARGET_DEFAULT_NORETURN.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * target-delegates.c: Rebuild.
9668 * target.c (update_current_target): Don't inherit or default
9670 (dummy_get_bookmark): Remove.
9671 (init_dummy_target): Don't inherit or default to_get_bookmark.
9672 * target.h (struct target_ops) <to_get_bookmark>: Use
9673 TARGET_DEFAULT_NORETURN
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9677 * target-delegates.c: Rebuild.
9678 * target.c (update_current_target): Don't inherit or default
9679 to_make_corefile_notes.
9680 (init_dummy_target): Don't initialize to_make_corefile_notes.
9681 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9682 TARGET_DEFAULT_FUNC.
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9686 * target-delegates.c: Rebuild.
9687 * target.c (update_current_target): Don't inherit or default
9688 to_find_memory_regions.
9689 (init_dummy_target): Don't initialize to_find_memory_regions.
9690 * target.h (struct target_ops) <to_find_memory_regions>: Use
9691 TARGET_DEFAULT_FUNC.
9693 2014-02-19 Tom Tromey <tromey@redhat.com>
9695 * target-delegates.c: Rebuild.
9696 * target.c (update_current_target): Don't inherit or default
9698 * target.h (struct target_ops) <to_log_command>: Use
9699 TARGET_DEFAULT_IGNORE.
9700 (target_log_command): Unconditionally delegate.
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9704 * target-delegates.c: Rebuild.
9705 * target.c (update_current_target): Don't inherit or default
9706 to_pid_to_exec_file.
9707 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9708 TARGET_DEFAULT_RETURN.
9710 2014-02-19 Tom Tromey <tromey@redhat.com>
9712 * target-delegates.c: Rebuild.
9713 * target.c (update_current_target): Don't inherit or default
9715 (target_thread_name): Unconditionally delegate.
9716 * target.h (struct target_ops) <to_thread_name>: Use
9717 TARGET_DEFAULT_RETURN.
9719 2014-02-19 Tom Tromey <tromey@redhat.com>
9721 * target-delegates.c: Rebuild.
9722 * target.c (update_current_target): Don't inherit or default
9723 to_extra_thread_info.
9724 * target.h (struct target_ops) <to_extra_thread_info>: Use
9725 TARGET_DEFAULT_RETURN.
9727 2014-02-19 Tom Tromey <tromey@redhat.com>
9729 * target-delegates.c: Rebuild.
9730 * target.c (update_current_target): Don't inherit or default
9732 * target.h (struct target_ops) <to_has_exited>: Use
9733 TARGET_DEFAULT_RETURN..
9735 2014-02-19 Tom Tromey <tromey@redhat.com>
9737 * target-delegates.c: Rebuild.
9738 * target.c (update_current_target): Don't inherit or default
9739 to_set_syscall_catchpoint.
9740 (return_one): Remove.
9741 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9742 TARGET_DEFAULT_RETURN.
9744 2014-02-19 Tom Tromey <tromey@redhat.com>
9746 * target-delegates.c: Rebuild.
9747 * target.c (update_current_target): Don't inherit or default
9748 to_insert_exec_catchpoint.
9749 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9750 TARGET_DEFAULT_RETURN.
9752 2014-01-08 Tom Tromey <tromey@redhat.com>
9754 * target-delegates.c: Rebuild.
9755 * target.c (update_current_target): Don't inherit or default
9756 to_insert_exec_catchpoint.
9757 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9758 TARGET_DEFAULT_RETURN.
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9762 * target-delegates.c: Rebuild.
9763 * target.c (update_current_target): Don't inherit or default
9764 to_remove_vfork_catchpoint.
9765 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9766 TARGET_DEFAULT_RETURN.
9768 2014-02-19 Tom Tromey <tromey@redhat.com>
9770 * target-delegates.c: Rebuild.
9771 * target.c (update_current_target): Don't inherit or default
9772 to_insert_vfork_catchpoint.
9773 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9774 TARGET_DEFAULT_RETURN.
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9778 * target-delegates.c: Rebuild.
9779 * target.c (update_current_target): Don't inherit or default
9780 to_remove_fork_catchpoint.
9781 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9782 TARGET_DEFAULT_RETURN.
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9786 * target-delegates.c: Rebuild.
9787 * target.c (update_current_target): Don't inherit or default
9788 to_insert_fork_catchpoint.
9789 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9790 TARGET_DEFAULT_RETURN.
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9794 * target-delegates.c: Rebuild.
9795 * target.c (update_current_target): Don't inherit or default
9796 to_post_startup_inferior.
9797 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9798 TARGET_DEFAULT_IGNORE.
9800 2014-02-19 Tom Tromey <tromey@redhat.com>
9802 * target-delegates.c: Rebuild.
9803 * target.c (update_current_target): Don't inherit or default
9805 * target.h (struct target_ops) <to_load>: Use
9806 TARGET_DEFAULT_NORETURN.
9808 2014-02-19 Tom Tromey <tromey@redhat.com>
9810 * target-delegates.c: Rebuild.
9811 * target.c (update_current_target): Don't inherit or default
9813 * target.h (struct target_ops) <to_terminal_info>: Use
9814 TARGET_DEFAULT_FUNC.
9816 2014-02-19 Tom Tromey <tromey@redhat.com>
9818 * target-delegates.c: Rebuild.
9819 * target.c (update_current_target): Don't inherit or default
9820 to_terminal_save_ours.
9821 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9822 TARGET_DEFAULT_IGNORE.
9824 2014-02-19 Tom Tromey <tromey@redhat.com>
9826 * target-delegates.c: Rebuild.
9827 * target.c (update_current_target): Don't inherit or default
9829 * target.h (struct target_ops) <to_terminal_ours>: Use
9830 TARGET_DEFAULT_IGNORE.
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9834 * target-delegates.c: Rebuild.
9835 * target.c (update_current_target): Don't inherit or default
9836 to_terminal_ours_for_output.
9837 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9838 TARGET_DEFAULT_IGNORE.
9840 2014-02-19 Tom Tromey <tromey@redhat.com>
9842 * target-delegates.c: Rebuild.
9843 * target.c (update_current_target): Don't inherit or default
9844 to_terminal_inferior.
9845 * target.h (struct target_ops) <to_terminal_inferior>: Use
9846 TARGET_DEFAULT_IGNORE.
9848 2014-02-19 Tom Tromey <tromey@redhat.com>
9850 * target-delegates.c: Rebuild.
9851 * target.c (update_current_target): Don't inherit or default
9853 * target.h (struct target_ops) <to_terminal_init>: Use
9854 TARGET_DEFAULT_IGNORE.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * target-delegates.c: Rebuild.
9859 * target.c (update_current_target): Don't inherit or default
9860 to_can_accel_watchpoint_condition.
9861 * target.h (struct target_ops)
9862 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9864 2014-02-19 Tom Tromey <tromey@redhat.com>
9866 * target-delegates.c: Rebuild.
9867 * target.c (update_current_target): Don't inherit or default
9868 to_region_ok_for_hw_watchpoint.
9869 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9870 Use TARGET_DEFAULT_FUNC.
9872 2014-02-19 Tom Tromey <tromey@redhat.com>
9874 * target-delegates.c: Rebuild.
9875 * target.c (update_current_target): Don't inherit or default
9876 to_watchpoint_addr_within_range.
9877 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9878 Use TARGET_DEFAULT_FUNC.
9880 2014-02-19 Tom Tromey <tromey@redhat.com>
9882 * target-delegates.c: Rebuild.
9883 * target.c (update_current_target): Don't inherit or default
9884 to_remove_watchpoint.
9885 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9886 TARGET_DEFAULT_NORETURN.
9888 2014-02-19 Tom Tromey <tromey@redhat.com>
9890 * target-delegates.c: Rebuild.
9891 * target.c (update_current_target): Don't inherit or default
9892 to_insert_watchpoint.
9893 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9894 TARGET_DEFAULT_RETURN.
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9898 * target-delegates.c: Rebuild.
9899 * target.c (update_current_target): Don't inherit or default
9900 to_remove_hw_breakpoint.
9901 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9902 TARGET_DEFAULT_RETURN.
9904 2014-02-19 Tom Tromey <tromey@redhat.com>
9906 * target-delegates.c: Rebuild.
9907 * target.c (update_current_target): Don't inherit or default
9908 to_insert_hw_breakpoint.
9909 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9910 TARGET_DEFAULT_RETURN.
9912 2014-02-19 Tom Tromey <tromey@redhat.com>
9914 * target-delegates.c: Rebuild.
9915 * target.c (update_current_target): Don't inherit or default
9916 to_can_use_hw_breakpoint.
9917 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9918 TARGET_DEFAULT_RETURN.
9920 2014-02-19 Tom Tromey <tromey@redhat.com>
9922 * target-delegates.c: Rebuild.
9923 * target.c (update_current_target): Don't inherit or default
9925 * target.h (struct target_ops) <to_files_info>: Use
9926 TARGET_DEFAULT_IGNORE.
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9930 * target-delegates.c: Rebuild.
9931 * target.c (update_current_target): Don't inherit or default
9933 * target.h (struct target_ops) <to_store>: Use
9934 TARGET_DEFAULT_NORETURN.
9936 2014-02-19 Tom Tromey <tromey@redhat.com>
9938 * target-delegates.c: Rebuild.
9939 * target.c (update_current_target): Don't inherit or default
9941 * target.h (struct target_ops) <to_post_attach>: Use
9942 TARGET_DEFAULT_IGNORE.
9944 2014-02-19 Tom Tromey <tromey@redhat.com>
9946 * target-delegates.c: Rebuild.
9947 * target.c (update_current_target): Don't inherit or default
9949 (default_rcmd): New function.
9950 (do_monitor_command): Unconditionally delegate.
9951 * target.h (struct target_ops) <to_rmcd>: Use
9952 TARGET_DEFAULT_FUNC.
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9956 * target-delegates.c: Rebuild.
9957 * target.c (init_dummy_target): Don't initialize to_attach.
9958 (target_attach): Unconditionally delegate.
9959 * target.h (struct target_ops) <to_attach>: Use
9960 TARGET_DEFAULT_FUNC.
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9964 * target-delegates.c: Rebuild.
9965 * target.c (target_detach): Unconditionally delegate.
9966 (init_dummy_target): Don't initialize to_detach.
9967 * target.h (struct target_ops) <to_detach>: Use
9968 TARGET_DEFAULT_IGNORE.
9970 2014-02-19 Tom Tromey <tromey@redhat.com>
9972 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9974 (target_augmented_libraries_svr4_read): Add argument.
9975 * target.c (update_current_target): Update.
9976 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9981 * target.h (struct target_ops) <to_call_history_range>: Add
9983 * target.c (target_call_history_range): Add argument.
9984 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9986 (record_btrace_call_history_from): Update.
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9990 * target.h (struct target_ops) <to_call_history_from>: Add
9992 * target.c (target_call_history_from): Add argument.
9993 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9998 * target.h (struct target_ops) <to_call_history>: Add argument.
9999 * target.c (target_call_history): Add argument.
10000 * record-btrace.c (record_btrace_call_history): Add 'self'
10003 2014-02-19 Tom Tromey <tromey@redhat.com>
10005 * target.h (struct target_ops) <to_insn_history_range>: Add
10007 * target.c (target_insn_history_range): Add argument.
10008 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10010 (record_btrace_insn_history_from): Update.
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10014 * target.h (struct target_ops) <to_insn_history_from>: Add
10016 * target.c (target_insn_history_from): Add argument.
10017 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10020 2014-02-19 Tom Tromey <tromey@redhat.com>
10022 * target.h (struct target_ops) <to_insn_history>: Add argument.
10023 * target.c (target_insn_history): Add argument.
10024 * record-btrace.c (record_btrace_insn_history): Add 'self'
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10029 * target.h (struct target_ops) <to_goto_record>: Add argument.
10030 * target.c (target_goto_record): Add argument.
10031 * record-full.c (record_full_goto): Add 'self' argument.
10032 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10034 2014-02-19 Tom Tromey <tromey@redhat.com>
10036 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10037 * target.c (target_goto_record_end): Add argument.
10038 * record-full.c (record_full_goto_end): Add 'self' argument.
10039 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10043 * target.h (struct target_ops) <to_goto_record_begin>: Add
10045 * target.c (target_goto_record_begin): Add argument.
10046 * record-full.c (record_full_goto_begin): Add 'self' argument.
10047 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10052 * target.h (struct target_ops) <to_record_is_replaying>: Add
10054 * target.c (target_record_is_replaying): Add argument.
10055 * record-full.c (record_full_is_replaying): Add 'self' argument.
10056 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10058 (record_btrace_xfer_partial, record_btrace_store_registers)
10059 (record_btrace_prepare_to_store, record_btrace_resume)
10060 (record_btrace_wait, record_btrace_decr_pc_after_break)
10061 (record_btrace_find_new_threads, record_btrace_thread_alive):
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * target.h (struct target_ops) <to_delete_record>: Add argument.
10067 * target.c (target_delete_record): Add argument.
10068 * record-full.c (record_full_delete): Add 'self' argument.
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10072 * target.h (struct target_ops) <to_save_record>: Add argument.
10073 * target.c (target_save_record): Add argument.
10074 * record-full.c (record_full_save): Add 'self' argument.
10075 (record_full_save): Add 'self' argument.
10077 2014-02-19 Tom Tromey <tromey@redhat.com>
10079 * target.h (struct target_ops) <to_info_record>: Add argument.
10080 * target.c (target_info_record): Add argument.
10081 * record.c (info_record_command): Add argument.
10082 * record-full.c (record_full_info): Add 'self' argument.
10083 * record-btrace.c (record_btrace_info): Add 'self' argument.
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10087 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10088 * target.c (target_stop_recording): Add argument.
10089 * record.c (record_stop): Add argument.
10090 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10096 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10097 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10099 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10100 (_initialize_amd64_linux_nat): Use it.
10101 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10102 (_initialize_i386_linux_nat): Use it.
10104 2014-02-19 Tom Tromey <tromey@redhat.com>
10106 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10107 * target.c (target_teardown_btrace): Add argument.
10108 * remote.c (remote_teardown_btrace): Add 'self' argument.
10109 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10111 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10114 2014-02-19 Tom Tromey <tromey@redhat.com>
10116 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10117 * target.c (target_disable_btrace): Add argument.
10118 * remote.c (remote_disable_btrace): Add 'self' argument.
10119 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10121 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10124 2014-02-19 Tom Tromey <tromey@redhat.com>
10126 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10127 * target.c (target_enable_btrace): Add argument.
10128 * remote.c (remote_enable_btrace): Add 'self' argument.
10129 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10131 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10136 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10137 (target_can_use_agent): Add argument.
10138 * target.c (update_current_target): Update.
10139 * remote.c (remote_can_use_agent): Add 'self' argument.
10140 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target.h (struct target_ops) <to_use_agent>: Add argument.
10145 (target_use_agent): Add argument.
10146 * target.c (update_current_target): Update.
10147 * remote.c (remote_use_agent): Add 'self' argument.
10148 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10150 2014-02-19 Tom Tromey <tromey@redhat.com>
10152 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10153 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10154 (target_traceframe_info): Add argument.
10155 * target.c (update_current_target): Update.
10156 * remote.c (remote_traceframe_info): Add 'self' argument.
10157 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * target.h (target_static_tracepoint_markers_by_strid): Add
10163 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10165 * target.c (update_current_target): Update.
10166 * remote.c (struct target_ops)
10167 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10168 * linux-nat.c (struct target_ops)
10169 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10173 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10175 (target_static_tracepoint_marker_at): Add argument.
10176 * target.c (update_current_target): Update.
10177 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10183 (target_set_permissions): Add argument.
10184 * target.c (update_current_target): Update.
10185 * remote.c (remote_set_permissions): Add 'self' argument.
10186 (remote_start_remote): Update.
10188 2014-02-19 Tom Tromey <tromey@redhat.com>
10190 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10191 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10192 (target_get_tib_address): Add argument.
10193 * target.c (update_current_target): Update.
10194 * remote.c (remote_get_tib_address): Add 'self' argument.
10196 2014-02-19 Tom Tromey <tromey@redhat.com>
10198 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10199 (target_set_trace_notes): Add argument.
10200 * target.c (update_current_target): Update.
10201 * remote.c (remote_set_trace_notes): Add 'self' argument.
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10205 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10207 (target_set_trace_buffer_size): Add argument.
10208 * target.c (update_current_target): Update.
10209 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10211 2014-02-19 Tom Tromey <tromey@redhat.com>
10213 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10215 (target_set_circular_trace_buffer): Add argument.
10216 * target.c (update_current_target): Update.
10217 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10220 2014-02-19 Tom Tromey <tromey@redhat.com>
10222 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10224 (target_set_disconnected_tracing): Add argument.
10225 * target.c (update_current_target): Update.
10226 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10230 * target.h (struct target_ops)
10231 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10232 (target_get_min_fast_tracepoint_insn_len): Add argument.
10233 * target.c (update_current_target): Update.
10234 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10237 2014-02-19 Tom Tromey <tromey@redhat.com>
10239 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10241 (target_get_raw_trace_data): Add argument.
10242 * target.c (update_current_target): Update.
10243 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10245 2014-02-19 Tom Tromey <tromey@redhat.com>
10247 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10249 (target_upload_trace_state_variables): Add argument.
10250 * target.c (update_current_target): Update.
10251 * remote.c (remote_upload_trace_state_variables): Add 'self'
10253 (remote_start_remote): Update.
10255 2014-02-19 Tom Tromey <tromey@redhat.com>
10257 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10259 (target_upload_tracepoints): Add argument.
10260 * target.c (update_current_target): Update.
10261 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10262 (remote_start_remote): Update.
10264 2014-02-19 Tom Tromey <tromey@redhat.com>
10266 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10267 (target_save_trace_data): Add argument.
10268 * target.c (update_current_target): Update.
10269 * remote.c (remote_save_trace_data): Add 'self' argument.
10271 2014-02-19 Tom Tromey <tromey@redhat.com>
10273 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10275 * target.h (struct target_ops)
10276 <to_get_trace_state_variable_value>: Add argument.
10277 (target_get_trace_state_variable_value): Add argument.
10278 * target.c (update_current_target): Update.
10279 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10281 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10283 2014-02-19 Tom Tromey <tromey@redhat.com>
10285 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10286 * target.h (struct target_ops) <to_trace_find>: Add argument.
10287 (target_trace_find): Add argument.
10288 * target.c (update_current_target): Update.
10289 * remote.c (remote_trace_find): Add 'self' argument.
10290 * ctf.c (ctf_trace_find): Add 'self' argument.
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10294 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10295 (target_trace_stop): Add argument.
10296 * target.c (update_current_target): Update.
10297 * remote.c (remote_trace_stop): Add 'self' argument.
10299 2014-02-19 Tom Tromey <tromey@redhat.com>
10301 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10302 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10304 (target_get_tracepoint_status): Add argument.
10305 * target.c (update_current_target): Update.
10306 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10310 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10311 * target.h (struct target_ops) <to_get_trace_status>: Add
10313 (target_get_trace_status): Add argument.
10314 * target.c (update_current_target): Update.
10315 * remote.c (remote_get_trace_status): Add 'self' argument.
10316 (remote_start_remote, remote_can_download_tracepoint): Update.
10317 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10321 * target.h (struct target_ops) <to_trace_start>: Add argument.
10322 (target_trace_start): Add argument.
10323 * target.c (update_current_target): Update.
10324 * remote.c (remote_trace_start): Add 'self' argument.
10326 2014-02-19 Tom Tromey <tromey@redhat.com>
10328 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10330 (target_trace_set_readonly_regions): Add argument.
10331 * target.c (update_current_target): Update.
10332 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10337 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10339 (target_disable_tracepoint): Add argument.
10340 * target.c (update_current_target): Update.
10341 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10345 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10347 (target_enable_tracepoint): Add argument.
10348 * target.c (update_current_target): Update.
10349 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10351 2014-02-19 Tom Tromey <tromey@redhat.com>
10353 * target.h (struct target_ops) <to_download_trace_state_variable>:
10355 (target_download_trace_state_variable): Add argument.
10356 * target.c (update_current_target): Update.
10357 * remote.c (remote_download_trace_state_variable): Add 'self'
10360 2014-02-19 Tom Tromey <tromey@redhat.com>
10362 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10364 (target_can_download_tracepoint): Add argument.
10365 * target.c (update_current_target): Update.
10366 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10368 2014-02-19 Tom Tromey <tromey@redhat.com>
10370 * target.h (struct target_ops) <to_download_tracepoint>: Add
10372 (target_download_tracepoint): Add argument.
10373 * target.c (update_current_target): Update.
10374 * remote.c (remote_download_tracepoint): Add 'self' argument.
10376 2014-02-19 Tom Tromey <tromey@redhat.com>
10378 * target.h (struct target_ops) <to_trace_init>: Add argument.
10379 (target_trace_init): Add argument.
10380 * target.c (update_current_target): Update.
10381 * remote.c (remote_trace_init): Add 'self' argument.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10386 * target.c (target_fileio_readlink): Add argument.
10387 * remote.c (remote_hostio_readlink): Add 'self' argument.
10388 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10392 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10393 * target.c (target_fileio_unlink): Add argument.
10394 * remote.c (remote_hostio_unlink): Add 'self' argument.
10395 (remote_file_delete): Update.
10396 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10398 2014-02-19 Tom Tromey <tromey@redhat.com>
10400 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10401 * target.c (target_fileio_close): Add argument.
10402 * remote.c (remote_hostio_close): Add 'self' argument.
10403 (remote_hostio_close_cleanup): Update.
10404 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10406 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10408 2014-02-19 Tom Tromey <tromey@redhat.com>
10410 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10411 * target.c (target_fileio_pread): Add argument.
10412 * remote.c (remote_hostio_pread): Add 'self' argument.
10413 (remote_bfd_iovec_pread, remote_file_get): Update.
10414 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10416 2014-02-19 Tom Tromey <tromey@redhat.com>
10418 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10419 * target.c (target_fileio_pwrite): Add argument.
10420 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10421 (remote_file_put): Update.
10422 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10424 2014-02-19 Tom Tromey <tromey@redhat.com>
10426 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10427 * target.c (target_fileio_open): Add argument.
10428 * remote.c (remote_hostio_open): Add 'self' argument.
10429 (remote_bfd_iovec_open): Add 'self' argument.
10430 (remote_file_put): Add 'self' argument.
10431 (remote_file_get): Add 'self' argument.
10432 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10434 2014-02-19 Tom Tromey <tromey@redhat.com>
10436 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10438 (target_can_run_breakpoint_commands): Add argument.
10439 * target.c (update_current_target): Update.
10440 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10442 (remote_insert_breakpoint): Add 'self' argument.
10443 (remote_insert_hw_breakpoint): Add 'self' argument.
10444 (remote_can_run_breakpoint_commands): Add 'self' argument.
10446 2014-02-19 Tom Tromey <tromey@redhat.com>
10448 * target.h (struct target_ops)
10449 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10450 (target_supports_evaluation_of_breakpoint_conditions): Add
10452 * target.c (update_current_target): Update.
10453 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10455 (remote_insert_breakpoint): Add 'self' argument.
10456 (remote_insert_hw_breakpoint): Add 'self' argument.
10457 (remote_supports_cond_breakpoints): Add 'self' argument.
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10461 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10463 (target_supports_string_tracing): Add argument.
10464 * target.c (update_current_target): Update.
10465 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10469 * target.h (struct target_ops)
10470 <to_supports_disable_randomization>: Add argument.
10471 * target.c (find_default_supports_disable_randomization): Add
10473 (target_supports_disable_randomization): Add argument.
10474 (find_default_supports_disable_randomization): Add 'self'
10476 * remote.c (extended_remote_supports_disable_randomization): Add
10478 (remote_supports_disable_randomization): Add 'self' argument.
10479 (extended_remote_create_inferior): Update.
10480 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10483 2014-02-19 Tom Tromey <tromey@redhat.com>
10485 * target.h (struct target_ops)
10486 <to_supports_enable_disable_tracepoint>: Add argument.
10487 (target_supports_enable_disable_tracepoint): Add argument.
10488 * target.c (update_current_target): Update.
10489 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10492 2014-02-19 Tom Tromey <tromey@redhat.com>
10494 * target.h (struct target_ops) <to_supports_multi_process>: Add
10496 (target_supports_multi_process): Add argument.
10497 * target.c (update_current_target): Update.
10498 * remote.c (remote_supports_multi_process): Add 'self' argument.
10499 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10501 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10504 2014-02-19 Tom Tromey <tromey@redhat.com>
10506 * target.h (struct target_ops) <to_execution_direction>: Add
10508 (target_execution_direction): Add argument.
10509 * target.c (default_execution_direction): Add 'self' argument.
10510 * record-full.c (record_full_execution_direction): Add 'self'
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10515 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10517 (target_can_execute_reverse): Add argument.
10518 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10519 * record-full.c (record_full_can_execute_reverse): Add 'self'
10521 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10527 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10529 (target_get_ada_task_ptid): Add argument.
10530 * target.c (update_current_target): Update.
10531 (default_get_ada_task_ptid): Add 'self' argument.
10532 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10533 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10534 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10536 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10538 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10540 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10542 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10543 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10546 2014-02-19 Tom Tromey <tromey@redhat.com>
10548 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10549 (target_goto_bookmark): Add argument.
10550 * target.c (dummy_goto_bookmark): Add 'self' argument.
10551 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10555 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10556 (target_get_bookmark): Add argument.
10557 * target.c (dummy_get_bookmark): Add 'self' argument.
10558 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10562 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10564 (target_make_corefile_notes): Add argument.
10565 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10566 * procfs.c (procfs_make_note_section): Add 'self' argument.
10567 (procfs_make_note_section): Add 'self' argument.
10568 (procfs_make_note_section): Add 'self' argument.
10569 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10571 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10572 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10573 * exec.c (exec_make_note_section): Add 'self' argument.
10574 (exec_make_note_section): Add 'self' argument.
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10578 * target.h (struct target_ops) <to_find_memory_regions>: Add
10580 (target_find_memory_regions): Add argument.
10581 * target.c (dummy_find_memory_regions): Add 'self' argument.
10582 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10583 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10584 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10585 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10586 * exec. (exec_do_find_memory_regions): New global.
10587 (exec_set_find_memory_regions): Rewrite.
10588 (exec_find_memory_regions): New function.
10589 (init_exec_ops): Use exec_find_memory_regions.
10591 2014-02-19 Tom Tromey <tromey@redhat.com>
10593 * target.h (struct target_ops) <to_supports_non_stop>: Add
10595 * target.c (find_default_supports_non_stop): Add argument.
10596 (target_supports_non_stop): Add argument.
10597 (find_default_supports_non_stop): Add 'self' argument.
10598 * remote.c (remote_supports_non_stop): Add 'self' argument.
10599 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10603 * target.h (struct target_ops) <to_log_command>: Add argument.
10604 (target_log_command): Add argument.
10605 * serial.h (serial_log_command): Add 'self' argument.
10606 * serial.c (serial_log_command): Add 'self' argument.
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10610 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10611 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10613 (target_pid_to_exec_file): Add argument.
10614 * target.c (debug_to_pid_to_exec_file): Add argument.
10615 (update_current_target): Update.
10616 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10617 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10618 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10619 (linux_handle_extended_wait): Update.
10620 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10621 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10622 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10623 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10627 * target.h (struct target_ops) <to_rcmd>: Add argument.
10628 (target_rcmd): Add argument.
10629 * target.c (debug_to_rcmd): Add argument.
10630 (update_current_target, do_monitor_command): Update.
10631 * remote.c (remote_rcmd): Add 'self' argument.
10632 * monitor.c (monitor_rcmd): Add 'self' argument.
10634 2014-02-19 Tom Tromey <tromey@redhat.com>
10636 * windows-nat.c (windows_stop): Add 'self' argument.
10637 * target.h (struct target_ops) <to_stop>: Add argument.
10638 * target.c (target_stop): Add argument.
10639 (debug_to_stop): Add argument.
10640 (update_current_target): Update.
10641 * remote.c (remote_stop): Add 'self' argument.
10642 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10643 (gdbsim_cntrl_c): Update.
10644 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10645 * procfs.c (procfs_stop): Add 'self' argument.
10646 * nto-procfs.c (procfs_stop): Add 'self' argument.
10647 * monitor.c (monitor_stop): Add 'self' argument.
10648 (monitor_open): Update.
10649 * linux-nat.c (linux_nat_stop): Add argument.
10650 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10651 * gnu-nat.c (gnu_stop): Add 'self' argument.
10652 * darwin-nat.c (darwin_stop): Add 'self' argument.
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10656 * target.h (struct target_ops) <to_thread_name>: Add argument.
10657 * target.c (target_thread_name): Add argument.
10658 (update_current_target): Update.
10659 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10663 * target.h (struct target_ops) <to_extra_thread_info>: Add
10665 (target_extra_thread_info): Add argument.
10666 * target.c (update_current_target): Update.
10667 * remote.c (remote_threads_extra_info): Add 'self' argument.
10668 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10670 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10671 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10672 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10674 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10676 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10678 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10683 * target.h (struct target_ops) <to_program_signals>: Add argument.
10684 * target.c (target_program_signals): Add argument.
10685 * remote.c (remote_program_signals): Add 'self' argument.
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10689 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10690 * target.c (target_pass_signals): Add argument.
10691 * remote.c (remote_pass_signals): Add 'self' argument.
10692 (remote_start_remote): Update.
10693 * procfs.c (procfs_pass_signals): Add 'self' argument.
10694 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10695 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10696 (linux_nat_create_inferior, linux_nat_attach): Update.
10698 2014-02-19 Tom Tromey <tromey@redhat.com>
10700 * windows-nat.c (windows_can_run): Add 'self' argument.
10701 * target.h (struct target_ops) <to_can_run>: Add argument.
10702 (target_can_run): Add argument.
10703 * target.c (debug_to_can_run): Add argument.
10704 (update_current_target): Update.
10705 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10706 * inf-child.c (inf_child_can_run): Add 'self' argument.
10707 * go32-nat.c (go32_can_run): Add 'self' argument.
10709 2014-02-19 Tom Tromey <tromey@redhat.com>
10711 * target.h (struct target_ops) <to_has_exited>: Add argument.
10712 (target_has_exited): Add argument.
10713 * target.c (debug_to_has_exited): Add argument.
10714 (update_current_target): Update.
10716 2014-02-19 Tom Tromey <tromey@redhat.com>
10718 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10720 (target_set_syscall_catchpoint): Add argument.
10721 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10723 * target.c (update_current_target): Update.
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10727 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10729 (target_remove_exec_catchpoint): Add argument.
10730 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10731 (update_current_target): Update.
10732 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10737 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10739 (target_insert_exec_catchpoint): Add argument.
10740 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10741 (update_current_target): Update.
10742 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10749 (target_remove_vfork_catchpoint): Add argument.
10750 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10751 (update_current_target): Update.
10752 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10757 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10759 (target_insert_vfork_catchpoint): Add argument.
10760 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10761 (update_current_target): Update.
10762 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10765 2014-02-19 Tom Tromey <tromey@redhat.com>
10767 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10769 (target_remove_fork_catchpoint): Add argument.
10770 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10771 (update_current_target): Update.
10772 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10775 2014-02-19 Tom Tromey <tromey@redhat.com>
10777 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10779 (target_insert_fork_catchpoint): Add argument.
10780 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10781 (update_current_target): Update.
10782 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10787 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10789 (target_post_startup_inferior): Add argument.
10790 * target.c (debug_to_post_startup_inferior): Add argument.
10791 (update_current_target): Update.
10792 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10794 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10796 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10798 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10800 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10802 (super_post_startup_inferior): Likewise.
10803 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10805 (super_post_startup_inferior): Likewise.
10806 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10807 Add 'self' argument.
10808 (super_post_startup_inferior): Likewise.
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10812 * target.h (struct target_ops) <to_load>: Add argument.
10813 * target.c (target_load): Add argument.
10814 (debug_to_load): Add argument.
10815 (update_current_target): Update.
10816 * remote.c (remote_load): Add 'self' argument.
10817 * remote-sim.c (gdbsim_load): Add 'self' argument.
10818 * remote-mips.c (mips_load): Add 'self' argument.
10819 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10820 * monitor.c (monitor_load): Add 'self' argument.
10821 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10823 2014-02-19 Tom Tromey <tromey@redhat.com>
10825 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10826 (target_terminal_info): Add argument.
10827 * target.c (debug_to_terminal_info): Add argument.
10828 (default_terminal_info): Likewise.
10829 * inflow.c (child_terminal_info): Add 'self' argument.
10830 * inferior.h (child_terminal_info): Add 'self' argument.
10831 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10837 (target_terminal_save_ours): Add argument.
10838 * target.c (debug_to_terminal_save_ours): Add argument.
10839 (update_current_target): Update.
10840 * inflow.c (terminal_save_ours): Add 'self' argument.
10841 * inferior.h (terminal_save_ours): Add 'self' argument.
10843 2014-02-19 Tom Tromey <tromey@redhat.com>
10845 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10846 (target_terminal_ours): Add argument.
10847 * target.c (debug_to_terminal_ours): Add argument.
10848 (update_current_target): Update.
10849 * remote.c (remote_terminal_ours): Add 'self' argument.
10850 (remote_close): Update.
10851 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10852 * inflow.c (terminal_ours): Add 'self' argument.
10853 * inferior.h (terminal_ours): Add 'self' argument.
10854 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10856 2014-02-19 Pedro Alves <palves@redhat.com>
10857 Tom Tromey <tromey@redhat.com>
10859 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10861 (target_terminal_ours_for_output): Add argument.
10862 * target.c (debug_to_terminal_ours_for_output): Add argument.
10863 (update_current_target): Update.
10864 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10865 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10866 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10868 2014-02-19 Tom Tromey <tromey@redhat.com>
10870 * target.h (struct target_ops) <to_terminal_inferior>: Add
10872 * target.c (target_terminal_inferior): Add argument.
10873 (update_current_target): Update.
10874 * remote.c (remote_terminal_inferior): Add 'self' argument.
10875 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10876 * inflow.c (terminal_inferior): Add 'self' argument.
10877 * inferior.h (terminal_inferior): Add 'self' argument.
10878 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10879 (go32_terminal_inferior): Add 'self' argument.
10881 2014-02-19 Tom Tromey <tromey@redhat.com>
10883 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10884 (target_terminal_init): Add argument.
10885 * target.c (debug_to_terminal_init): Add argument.
10886 (update_current_target): Update.
10887 * inflow.c (terminal_init_inferior): Add 'self' argument.
10888 * inferior.h (terminal_init_inferior): Add 'self' argument.
10889 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10890 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target.h (struct target_ops)
10895 <to_can_accel_watchpoint_condition>: Add argument.
10896 (target_can_accel_watchpoint_condition): Add argument.
10897 * target.c (debug_to_can_accel_watchpoint_condition): Add
10899 (update_current_target): Update.
10900 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10905 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10907 (target_region_ok_for_hw_watchpoint): Add argument.
10908 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10909 (default_region_ok_for_hw_watchpoint): Add argument.
10910 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10911 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10913 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10915 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10917 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10919 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10921 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10923 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10924 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10926 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10927 Add 'self' argument.
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10931 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10933 (target_insert_watchpoint): Add argument.
10934 * target.c (debug_to_insert_watchpoint): Add argument.
10935 (update_current_target): Update.
10936 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10937 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10938 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10939 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10940 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10941 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10943 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10944 (procfs_insert_hw_watchpoint): Add 'self' argument.
10945 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10947 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10949 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10951 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10952 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10954 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10957 2014-02-19 Tom Tromey <tromey@redhat.com>
10959 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10961 (target_remove_watchpoint): Add argument.
10962 * target.c (debug_to_remove_watchpoint): Add argument.
10963 (update_current_target): Update.
10964 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10965 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10966 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10967 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10968 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10969 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10971 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10972 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10974 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10976 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10978 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10979 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10981 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10984 2014-02-19 Tom Tromey <tromey@redhat.com>
10986 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10988 (target_remove_hw_breakpoint): Add argument.
10989 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10990 (update_current_target): Update.
10991 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10992 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10994 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10995 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10997 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11002 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11004 (target_insert_hw_breakpoint): Add argument.
11005 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11006 (update_current_target): Update.
11007 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11008 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11010 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11011 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11012 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11014 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11017 2014-02-19 Tom Tromey <tromey@redhat.com>
11019 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11021 (target_can_use_hardware_watchpoint): Add argument.
11022 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11023 (update_current_target): Update.
11024 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11026 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11028 * remote.c (remote_check_watch_resources): Add 'self' argument.
11029 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11030 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11032 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11033 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11035 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11037 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11039 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11041 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11043 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11045 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11046 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11048 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target.h (struct target_ops) <to_post_attach>: Add argument.
11054 (target_post_attach): Add argument.
11055 * target.c (debug_to_post_attach): Add argument.
11056 (update_current_target): Update.
11057 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11058 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11059 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11060 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11061 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11065 * windows-nat.c (windows_close): Add 'self' argument.
11066 * tracepoint.c (tfile_close): Add 'self' argument.
11067 * target.h (struct target_ops) <to_close>: Add argument.
11068 * target.c (target_close): Add argument.
11069 (update_current_target): Update.
11070 * remote.c (remote_close): Add 'self' argument.
11071 * remote-sim.c (gdbsim_close): Add 'self' argument.
11072 * remote-mips.c (mips_close): Add 'self' argument.
11073 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11074 * record-full.c (record_full_close): Add 'self' argument.
11075 * record-btrace.c (record_btrace_close): Add 'self' argument.
11076 * monitor.h (monitor_close): Add 'self' argument.
11077 * monitor.c (monitor_close): Add 'self' argument.
11078 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11079 * linux-nat.c (linux_nat_close): Add argument.
11080 * go32-nat.c (go32_close): Add 'self' argument.
11081 * exec.c (exec_close_1): Add 'self' argument.
11082 * ctf.c (ctf_close): Add 'self' argument.
11083 * corelow.c (core_close): Add 'self' argument.
11084 (core_close_cleanup): Update.
11085 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11086 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11088 2014-02-19 Tom Tromey <tromey@redhat.com>
11090 * remote.c (remote_load): New function.
11091 (init_remote_ops): Use it.
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11095 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11097 * common/linux-btrace.h (linux_supports_btrace): Update.
11098 * remote.c (remote_supports_btrace): Add "self" argument.
11099 * target-delegates.c: Rebuild.
11100 * target.c (target_supports_btrace): Remove.
11101 * target.h (struct target_ops) <to_supports_btrace>: Add
11102 target_ops argument.
11103 (target_supports_btrace): New define.
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11107 * record-full.c (record_full_beneath_to_resume_ops)
11108 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11109 (record_full_beneath_to_wait)
11110 (record_full_beneath_to_store_registers_ops)
11111 (record_full_beneath_to_store_registers)
11112 (record_full_beneath_to_xfer_partial_ops)
11113 (record_full_beneath_to_xfer_partial)
11114 (record_full_beneath_to_insert_breakpoint_ops)
11115 (record_full_beneath_to_insert_breakpoint)
11116 (record_full_beneath_to_remove_breakpoint_ops)
11117 (record_full_beneath_to_remove_breakpoint)
11118 (record_full_beneath_to_stopped_by_watchpoint)
11119 (record_full_beneath_to_stopped_data_address)
11120 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11121 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11122 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11123 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11124 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11125 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11126 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11127 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11128 (record_full_resume, record_full_wait_1)
11129 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11130 (record_full_store_registers, record_full_xfer_partial)
11131 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11132 (record_full_async, record_full_core_xfer_partial): Use target
11134 * target-delegates.c: Rebuild.
11135 * target.c (current_xfer_partial): Remove.
11136 (update_current_target): Do not INHERIT or de_fault
11137 to_insert_breakpoint, to_remove_breakpoint,
11138 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11139 to_is_async_p, to_async. Do not set to_xfer_partial field.
11140 (default_xfer_partial): Simplify.
11141 (current_xfer_partial): Remove.
11142 (target_wait, target_resume): Simplify.
11143 (find_default_can_async_p, find_default_is_async_p): Update.
11144 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11145 to_xfer_partial, to_stopped_by_watchpoint,
11146 to_stopped_data_address.
11147 (target_store_registers): Simplify.
11148 (forward_target_remove_breakpoint)
11149 (forward_target_insert_breakpoint): Remove.
11150 (target_remove_breakpoint, target_insert_breakpoint)
11151 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11152 * target.h (struct target_ops) <to_resume, to_wait,
11153 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11154 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11155 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11157 (forward_target_remove_breakpoint)
11158 (forward_target_insert_breakpoint): Remove.
11159 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11161 (record_btrace_insert_breakpoint): Delegate directly.
11163 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target-delegates.c: New file.
11167 * target.c: Include target-delegates.c.
11168 (init_dummy_target): Call install_dummy_methods.
11169 (complete_target_initialization): Call install_delegators.
11170 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11171 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11172 * make-target-delegates: New file.
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11176 * record.c (find_record_target): Use find_target_at.
11177 * target.c (find_target_at): New function.
11178 * target.h (find_target_at): Declare.
11180 2014-02-19 Tom Tromey <tromey@redhat.com>
11182 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11183 Add 'ops' argument.
11184 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11186 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11187 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11189 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11191 * linux-nat.c (save_sigtrap): Update.
11192 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11193 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11194 (linux_nat_close): Update.
11195 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11197 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11199 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11200 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11201 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11202 (tmp_to_async): Add 'ops' argument.
11203 (record_full_stopped_by_watchpoint, record_full_async)
11204 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11206 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11207 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11208 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11209 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11210 (remote_is_async_p, remote_async): Add 'ops' argument.
11211 (remote_stopped_data_address): Update.
11212 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11213 * target.c (update_current_target)
11214 (find_default_can_async_p, find_default_is_async_p): Update.
11215 (init_dummy_target): Update.
11216 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11217 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11218 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11219 (target_can_async_p, target_is_async_p, target_async)
11220 (target_stopped_by_watchpoint): Update.
11222 2014-02-19 Yao Qi <yao@codesourcery.com>
11225 * gdbarch.sh: Remove startup_gdbarch.
11226 * gdbarch.c: Regenerated.
11227 * gdbarch.h: Likewise.
11229 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11231 * rl78-tdep.c (rl78_g10_register_name): New function.
11232 (rl78_return_value): Add g10 support.
11233 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11236 2014-02-17 Doug Evans <xdje42@gmail.com>
11238 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11239 (SUBDIR_GUILE_SRCS): Ditto.
11240 (scm-gsmob.o): Ditto.
11242 2014-02-17 Yao Qi <yao@codesourcery.com>
11244 * gnu-nat.c (ILL_RPC): Declare defined function.
11246 2014-02-17 Yao Qi <yao@codesourcery.com>
11248 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11249 mach_msg_type_number_t.
11250 (gnu_write_inferior): Likewise.
11252 2014-02-17 Yao Qi <yao@codesourcery.com>
11254 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11256 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11257 (inf_validate_procs, inf_signal): Likewise.
11258 (S_exception_raise_request): Likewise.
11259 (do_mach_notify_dead_name): Likewise.
11260 (steal_exc_port): Likewise.
11261 (gnu_read_inferior): Change 'copy_count''s type to
11262 mach_msg_type_number_t.
11263 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11266 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11268 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11269 flag. Adjust all users; in particular...
11270 (gnu_wait): ..., don't decrement its value in here...
11271 (gnu_create_inferior): ..., and instead set the flag in here,
11272 around the startup_inferior call, and call that one with
11273 START_INFERIOR_TRAPS_EXPECTED.
11275 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11276 (ILL_RPC): ... new macro.
11277 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11278 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11279 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11280 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11281 functions with ILL_RPC macro.
11282 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11283 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11284 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11285 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11286 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11287 (S_proc_getlogin_reply, S_proc_getsid_reply)
11288 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11289 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11290 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11291 (S_proc_getnports_reply, S_proc_is_important_reply)
11292 (S_proc_get_code_reply): New stub functions, generated with
11295 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11296 collected the type check structures.
11298 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11300 2014-02-14 Doug Evans <dje@google.com>
11302 * target.c (target_write_partial): Fix result type.
11304 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11306 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11307 the proper offsets to access fpregset_t.
11309 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11311 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11312 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11313 * h8300-tdep.c (setmachinelist): Remove global.
11314 * hppa-tdep.c (hppa_sigtramp): Remove global.
11315 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11316 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11317 * ravenscar-thread.c (update_target_observer): Remove global.
11318 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11320 2014-02-12 Tom Tromey <tromey@redhat.com>
11322 * common/rsp-low.c: Update comments.
11323 * common/rsp-low.h: Update comments.
11325 2014-02-12 Tom Tromey <tromey@redhat.com>
11327 * common/rsp-low.c (convert_ascii_to_int): Remove.
11328 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11330 2014-02-12 Tom Tromey <tromey@redhat.com>
11332 * common/rsp-low.h (unhexify): Don't declare.
11333 * common/rsp-low.c (unhexify): Remove.
11335 2014-02-12 Tom Tromey <tromey@redhat.com>
11337 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11338 * common/rsp-low.c (convert_int_to_ascii): Remove.
11340 2014-02-12 Tom Tromey <tromey@redhat.com>
11342 * common/rsp-low.h (hexify): Don't declare.
11343 * common/rsp-low.c (hexify): Remove.
11345 2014-02-12 Tom Tromey <tromey@redhat.com>
11347 * common/rsp-low.c (hexify): Never take strlen of argument.
11349 2014-02-12 Tom Tromey <tromey@redhat.com>
11351 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11352 * remote.c (extended_remote_run, remote_rcmd)
11353 (remote_download_trace_state_variable, remote_save_trace_data)
11354 (remote_set_trace_notes): Update.
11355 * tracepoint.c (encode_source_string, tfile_write_status)
11356 (tfile_write_uploaded_tsv): Update.
11358 2014-02-12 Tom Tromey <tromey@redhat.com>
11360 * tracepoint.c: Include rsp-low.h.
11361 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11362 * remote.c: Include rsp-low.h.
11363 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11364 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11365 (remote_unescape_input): Move to common/rsp-low.c.
11366 * common/rsp-low.h: New file.
11367 * common/rsp-low.c: New file.
11368 * Makefile.in (SFILES): Add common/rsp-low.c.
11369 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11370 (COMMON_OBS): Add rsp-low.o.
11371 (rsp-low.o): New target.
11373 2014-02-12 Tom Tromey <tromey@redhat.com>
11375 * utils.h: Include print-utils.h.
11376 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11377 (int_string, core_addr_to_string, core_addr_to_string_nz)
11378 (hex_string, hex_string_custom): Don't declare.
11379 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11380 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11381 (hex_string_custom, int_string, core_addr_to_string)
11382 (core_addr_to_string_nz, host_address_to_string): Move to
11383 common/print-utils.c.
11384 * common/print-utils.h: New file.
11385 * common/print-utils.c: New file
11386 * Makefile.in (SFILES): Add common/print-utils.c.
11387 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11388 (COMMON_OBS): Add print-utils.o.
11389 (print-utils.o): New target.
11391 2014-02-12 Tom Tromey <tromey@redhat.com>
11393 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11395 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11397 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11399 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11401 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11402 if a PT_IO ptrace request returns sucessfully but indicates that 0
11403 bytes were transferred.
11405 2014-02-12 Pedro Alves <palves@redhat.com>
11406 Kevin Buettner <kevinb@redhat.com>
11408 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11409 TYPE_INSTANCE_FLAG_CODE_SPACE.
11411 2014-02-12 Pedro Alves <palves@redhat.com>
11413 * h8300-tdep.c (pseudo_from_raw_register)
11414 (raw_from_pseudo_register): New functions.
11415 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11418 2014-02-12 Pedro Alves <palves@redhat.com>
11420 * h8300-tdep.c (h8300_register_sim_regno): New function.
11421 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11422 gdbarch_register_sim_regno hook.
11424 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11426 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11428 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11430 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11432 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11434 * obsd-tdep.h (obsd_init_abi): New prototype.
11435 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11436 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11437 (obsd_init_abi): New functions.
11438 * i386obsd-tdep.c: Include "obsd-tdep.h".
11439 (i386obsd_init_abi): Call obsd_init_abi.
11440 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11441 (amd64obsd_init_abi): Call obsd_init_abi.
11442 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11443 obsd-tdep.c to gdb_target_obs.
11445 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11447 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11448 double float arguments to 16-byte in the argument slots.
11450 2014-02-11 Doug Evans <xdje42@gmail.com>
11452 * configure.ac: Don't crash if pkg-config is not found and guile
11453 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11455 * configure: Regenerate.
11457 2014-02-11 Yao Qi <yao@codesourcery.com>
11459 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11460 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11461 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11462 * gnu-nat.c (gnu_xfer_memory): Likewise.
11463 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11464 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11465 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11466 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11468 2014-02-11 Yao Qi <yao@codesourcery.com>
11470 * target.h (enum target_xfer_error): Rename to ...
11471 (enum target_xfer_status): ... it. New. All users updated.
11472 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11474 (TARGET_XFER_STATUS_ERROR_P): New macro.
11475 (target_xfer_error_to_string): Remove declaration.
11476 (target_xfer_status_to_string): Declare.
11477 (target_xfer_partial_ftype): Adjust it.
11478 (struct target_ops) <to_xfer_partial>: Return
11479 target_xfer_status. Add argument xfered_len. Update
11481 * target.c (target_xfer_error_to_string): Rename to ...
11482 (target_xfer_status_to_string): ... it. New. All callers
11484 (target_read_live_memory): Likewise. Call target_xfer_partial
11485 instead of target_read.
11486 (memory_xfer_live_readonly_partial): Return
11487 target_xfer_status. Add argument xfered_len.
11488 (raw_memory_xfer_partial): Likewise.
11489 (memory_xfer_partial_1): Likewise.
11490 (memory_xfer_partial): Likewise.
11491 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11492 properly. Update debug message.
11493 (default_xfer_partial, current_xfer_partial): Likewise.
11494 (target_write_partial): Likewise.
11495 (target_read_partial): Likewise. All callers updated.
11496 (read_whatever_is_readable): Likewise.
11497 (target_write_with_progress): Likewise.
11498 (target_read_alloc_1): Likewise.
11500 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11501 * auxv.c (procfs_xfer_auxv): Likewise.
11502 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11503 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11504 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11505 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11506 * corefile.c (read_memory): Adjust.
11507 * corelow.c (core_xfer_partial): Likewise.
11508 * ctf.c (ctf_xfer_partial): Likewise.
11509 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11511 (darwin_xfer_partial): Likewise.
11512 * exec.c (section_table_xfer_memory_partial): Likewise. All
11514 (exec_xfer_partial): Likewise.
11515 * exec.h (section_table_xfer_memory_partial): Update
11517 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11519 (gnu_xfer_partial): Likewise.
11520 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11521 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11522 (ia64_hpux_xfer_solib_got): Likewise.
11523 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11524 type of 'partial_len' to ULONGEST.
11525 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11526 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11527 (linux_nat_xfer_partial): Likewise.
11528 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11529 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11530 * monitor.c (monitor_xfer_memory): Likewise.
11531 (monitor_xfer_partial): Likewise.
11532 * procfs.c (procfs_xfer_partial): Likewise.
11533 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11534 * record-full.c (record_full_xfer_partial): Likewise.
11535 (record_full_core_xfer_partial): Likewise.
11536 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11537 (gdbsim_xfer_partial): Likewise.
11538 * remote.c (remote_write_bytes_aux): Likewise. All callers
11540 (remote_write_bytes, remote_read_bytes): Likewise. All
11542 (remote_flash_erase): Likewise. All callers updated.
11543 (remote_write_qxfer): Likewise. All callers updated.
11544 (remote_read_qxfer): Likewise. All callers updated.
11545 (remote_xfer_partial): Likewise.
11546 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11547 (rs6000_xfer_shared_libraries): Likewise.
11548 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11549 (sol_thread_xfer_partial): Likewise.
11550 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11551 (sparc_xfer_partial): Likewise.
11552 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11554 (spu_xfer_partial): Likewise.
11555 * spu-multiarch.c (spu_xfer_partial): Likewise.
11556 * tracepoint.c (tfile_xfer_partial): Likewise.
11557 * windows-nat.c (windows_xfer_memory): Likewise.
11558 (windows_xfer_shared_libraries): Likewise.
11559 (windows_xfer_partial): Likewise.
11560 * valprint.c: Replace 'target_xfer_error' with
11561 'target_xfer_status' in comments.
11563 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11565 Checked in by Joel Brobecker <brobecker@adacore.com>.
11566 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11568 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11570 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11571 function parameters.
11573 2014-02-10 Will Newton <will.newton@linaro.org>
11575 * elfread.c (elf_rel_plt_read): Look for a .got section if
11576 looking up .got.plt fails.
11577 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11578 on address passed to elf_gnu_ifunc_record_cache.
11579 (elf_gnu_ifunc_resolve_addr): Likewise.
11580 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11582 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11584 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11585 (X_RETTURN): New macro.
11586 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11588 * sparc64-tdep.c (sparc64_init_abi): Hook
11589 sparc_in_function_epilogue_p.
11591 2014-02-10 Gary Benson <gbenson@redhat.com>
11593 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11594 Rename name_matcher to symbol_matcher.
11596 2014-02-10 Gary Benson <gbenson@redhat.com>
11598 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11599 Use expand_symtabs_file_matcher_ftype and
11600 expand_symtabs_symbol_matcher_ftype.
11602 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11604 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11605 (struct ada_symbol_cache): New.
11606 (ada_free_symbol_cache): Forward declare.
11607 (struct ada_pspace_data): New.
11608 (ada_pspace_data_handle): New static global.
11609 (get_ada_pspace_data, ada_pspace_data_cleanup)
11610 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11611 (cache_space, cache): Delete, now folded inside struct
11613 (ada_get_symbol_cache): New function.
11614 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11616 (_initialize_ada_language): Remove initialization of cache_space.
11617 Move call to observer_attach_inferior_exit up, grouping it
11618 with the other observer registrations inside this function.
11619 Rename command to be more general. Add call to
11620 register_program_space_data_with_cleanup.
11622 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11624 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11625 ada_new_objfile_observer.
11626 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11627 (_initialize_tasks): Update uses of ada_new_objfile_observer
11628 and ada_tasks_normal_stop_observer.
11630 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11632 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11633 returned by the 'Length attribute to integer.
11635 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11637 * ada-lang.c (_initialize_ada_language): Initialize
11638 cache_space obstack.
11640 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11642 * ada-lang.c (HASH_SIZE): New macro.
11643 (struct cache_entry): New type.
11644 (cache_space, cache): New static globals.
11645 (ada_clear_symbol_cache, find_entry): New functions.
11646 (lookup_cached_symbol, cache_symbol): Implement.
11647 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11648 (_initialize_ada_language): Attach ada_new_objfile_observer
11649 and ada_free_objfile_observer.
11651 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11653 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11654 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11655 struct block * parameter.
11656 (ada_lookup_symbol_list_worker): Constify local variable "block".
11657 Remove cast which is no longer necessary.
11659 2014-02-10 Doug Evans <xdje42@gmail.com>
11661 Add Guile as an extension language.
11662 * NEWS: Mention Guile scripting.
11663 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11664 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11665 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11666 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11667 (CLIBS): Add GUILE_LIBS.
11668 (install-guile): New rule.
11669 (guile.o): New rule.
11670 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11671 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11672 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11673 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11674 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11675 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11676 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11677 * configure.ac: New option --with-guile.
11678 * configure: Regenerate.
11679 * config.in: Regenerate.
11680 * auto-load.c: Remove #include "python/python.h". Add #include
11681 "gdb/section-scripts.h".
11682 (source_section_scripts): Handle Guile scripts.
11683 (_initialize_auto_load): Add name of Guile objfile script to
11684 scripts-directory help text.
11685 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11686 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11687 (struct breakpoint): New member scm_bp_object.
11688 * defs.h (enum command_control_type): New value guile_control.
11689 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11691 (show_user): Update comment.
11692 (_initialize_cli_cmds): Update help text for "show user". Update help
11693 text for max-user-call-depth.
11694 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11696 (multi_line_command_p): Add guile_control.
11697 (print_command_lines): Handle guile_control.
11698 (execute_control_command, recurse_read_control_structure): Ditto.
11699 (process_next_line): Recognize "guile" commands.
11700 * disasm.c (gdb_disassemble_info): Make non-static.
11701 * disasm.h: #include "dis-asm.h".
11702 (struct gdbarch): Add forward decl.
11703 (gdb_disassemble_info): Declare.
11704 * extension.c: #include "guile/guile.h".
11705 (extension_languages): Add guile.
11706 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11707 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11708 * gdbtypes.c (get_unsigned_type_max): New function.
11709 (get_signed_type_minmax): New function.
11710 * gdbtypes.h (get_unsigned_type_max): Declare.
11711 (get_signed_type_minmax): Declare.
11712 * guile/README: New file.
11713 * guile/guile-internal.h: New file.
11714 * guile/guile.c: New file.
11715 * guile/guile.h: New file.
11716 * guile/scm-arch.c: New file.
11717 * guile/scm-auto-load.c: New file.
11718 * guile/scm-block.c: New file.
11719 * guile/scm-breakpoint.c: New file.
11720 * guile/scm-disasm.c: New file.
11721 * guile/scm-exception.c: New file.
11722 * guile/scm-frame.c: New file.
11723 * guile/scm-gsmob.c: New file.
11724 * guile/scm-iterator.c: New file.
11725 * guile/scm-lazy-string.c: New file.
11726 * guile/scm-math.c: New file.
11727 * guile/scm-objfile.c: New file.
11728 * guile/scm-ports.c: New file.
11729 * guile/scm-pretty-print.c: New file.
11730 * guile/scm-safe-call.c: New file.
11731 * guile/scm-string.c: New file.
11732 * guile/scm-symbol.c: New file.
11733 * guile/scm-symtab.c: New file.
11734 * guile/scm-type.c: New file.
11735 * guile/scm-utils.c: New file.
11736 * guile/scm-value.c: New file.
11737 * guile/lib/gdb.scm: New file.
11738 * guile/lib/gdb/boot.scm: New file.
11739 * guile/lib/gdb/experimental.scm: New file.
11740 * guile/lib/gdb/init.scm: New file.
11741 * guile/lib/gdb/iterator.scm: New file.
11742 * guile/lib/gdb/printing.scm: New file.
11743 * guile/lib/gdb/types.scm: New file.
11744 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11745 (VPATH): Add $(GUILE_SRCDIR).
11746 (GUILE_DIR): New variable.
11747 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11748 (all): Add stamp-guile dependency.
11749 (stamp-guile): New rule.
11750 (clean-guile, install-guile, uninstall-guile): New rules.
11751 (install-only): Add install-guile dependency.
11752 (uninstall): Add uninstall-guile dependency.
11753 (clean): Add clean-guile dependency.
11755 2014-02-09 Doug Evans <xdje42@gmail.com>
11757 Revert this patch (which I approved, mea culpa).
11759 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11761 * Makefile.in (all-lib): Remove.
11762 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11764 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11766 Fix Python stack corruption.
11767 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11770 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11772 * Makefile.in (all-lib): Remove.
11773 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11775 2014-02-07 Doug Evans <dje@google.com>
11777 * extension-priv.h (extension_language_script_ops): Add comment.
11778 (extension_language_ops): Add comment.
11779 (active_ext_lang_state): Fix typo in comment.
11781 2014-02-07 Pedro Alves <palves@redhat.com>
11783 PR breakpoints/16292
11784 * infrun.c (handle_signal_stop) <signal arrives while stepping
11785 over a breakpoint>: Switch back to the stepping thread.
11787 2014-02-07 Yao Qi <yao@codesourcery.com>
11789 * target.c (target_xfer_partial): Return zero if LEN is zero.
11791 2014-02-07 Yao Qi <yao@codesourcery.com>
11793 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11794 (ld_so_xfer_auxv): Likewise.
11795 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11796 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11797 * corelow.c (core_xfer_partial): Likewise.
11798 * ctf.c (ctf_xfer_partial): Likewise.
11799 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11800 (darwin_xfer_partial): Likewise.
11801 * exec.c (exec_xfer_partial): Likewise.
11802 * gnu-nat.c (gnu_xfer_partial): Likewise.
11803 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11804 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11805 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11806 * linux-nat.c (linux_xfer_siginfo): Likewise.
11807 (linux_proc_xfer_spu): Likewise.
11808 * procfs.c (procfs_xfer_partial): Likewise.
11809 * record-full.c (record_full_xfer_partial): Likewise.
11810 (record_full_core_xfer_partial): Likewise.
11811 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11812 * remote.c (remote_write_qxfer): Likewise.
11813 (remote_write_qxfer, remote_read_qxfer): Likewise.
11814 (remote_xfer_partial): Likewise.
11815 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11816 (rs6000_xfer_shared_libraries): Likewise.
11817 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11818 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11819 (spu_xfer_partial): Likewise.
11820 * target.c (memory_xfer_partial_1): Likewise.
11821 * tracepoint.c (tfile_xfer_partial): Likewise.
11822 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11823 (windows_xfer_partial): Likewise.
11825 2014-02-07 Yao Qi <yao@codesourcery.com>
11827 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11829 (core_xfer_shared_libraries_aix): Likewise.
11830 * gdbarch.c, gdbarch.h: Regenerated.
11831 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11832 ULONGEST. Change 'len_avail' type to ULONGEST.
11833 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11834 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11836 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11838 2014-02-07 Yao Qi <yao@codesourcery.com>
11840 * corefile.c (memory_error): Get 'exception' from ERR and pass
11841 'exception' to throw_error.
11843 2014-02-06 Doug Evans <xdje42@gmail.com>
11845 * configure.ac (libpython checking): Remove all but python.o from
11846 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11847 * configure: Regenerate.
11849 * Makefile.in (SFILES): Add extension.c.
11850 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11851 (COMMON_OBS): Add extension.o.
11852 * extension.h: New file.
11853 * extension-priv.h: New file.
11854 * extension.c: New file.
11856 * python/python-internal.h: #include "extension.h".
11857 (gdbpy_auto_load_enabled): Declare.
11858 (gdbpy_apply_val_pretty_printer): Declare.
11859 (gdbpy_apply_frame_filter): Declare.
11860 (gdbpy_preserve_values): Declare.
11861 (gdbpy_breakpoint_cond_says_stop): Declare.
11862 (gdbpy_breakpoint_has_cond): Declare.
11863 (void source_python_script_for_objfile): Delete.
11864 * python/python.c: #include "extension-priv.h".
11865 Delete inclusion of "observer.h".
11866 (extension_language_python): Moved here and renamed from
11867 script_language_python in py-auto-load.c.
11868 Redefined to be of type extension_language_defn.
11869 (python_extension_script_ops): New global.
11870 (python_extension_ops): New global.
11871 (struct python_env): New member previous_active.
11872 (restore_python_env): Call restore_active_ext_lang.
11873 (ensure_python_env): Call set_active_ext_lang.
11874 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11876 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11878 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11880 (gdbpy_eval_from_control_command): Renamed from
11881 eval_python_from_control_command, made static. New arg extlang.
11882 (gdbpy_source_script) Renamed from source_python_script, made static.
11884 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11885 result to int. New arg extlang.
11886 (gdbpy_source_objfile_script): Renamed from
11887 source_python_script_for_objfile, made static. New arg extlang.
11888 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11889 static. New args extlang, extlang_printers. Change result type to
11891 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11892 static. New arg extlang. Rename arg printers to extlang_printers
11893 and change type to ext_lang_type_printers *.
11894 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11895 static. Replace argument arg with extlang, extlang_printers.
11896 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11897 (!HAVE_PYTHON, source_python_script): Delete.
11898 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11899 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11900 (!HAVE_PYTHON, start_type_printers): Delete.
11901 (!HAVE_PYTHON, apply_type_printers): Delete.
11902 (!HAVE_PYTHON, free_type_printers): Delete.
11903 (_initialize_python): Delete call to observer_attach_before_prompt.
11904 (finalize_python): Set/restore active extension language.
11905 (gdbpy_finish_initialization) Renamed from
11906 finish_python_initialization, made static. New arg extlang.
11907 (gdbpy_initialized): New function.
11908 * python/python.h: #include "extension.h". Delete #include
11909 "value.h", "mi/mi-cmds.h".
11910 (extension_language_python): Declare.
11911 (GDBPY_AUTO_FILE_NAME): Delete.
11912 (enum py_bt_status): Moved to extension.h and renamed to
11913 ext_lang_bt_status.
11914 (enum frame_filter_flags): Moved to extension.h.
11915 (enum py_frame_args): Moved to extension.h and renamed to
11916 ext_lang_frame_args.
11917 (finish_python_initialization): Delete.
11918 (eval_python_from_control_command): Delete.
11919 (source_python_script): Delete.
11920 (apply_val_pretty_printer): Delete.
11921 (apply_frame_filter): Delete.
11922 (preserve_python_values): Delete.
11923 (gdbpy_script_language_defn): Delete.
11924 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11925 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11927 * auto-load.c: #include "extension.h".
11928 (GDB_AUTO_FILE_NAME): Delete.
11929 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11930 (script_language_gdb): Delete, moved to extension.c and renamed to
11931 extension_language_gdb.
11932 (source_gdb_script_for_objfile): Delete.
11933 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11934 (loaded_script): Change type of language member to
11935 struct extension_language_defn *.
11936 (init_loaded_scripts_info): Initialize
11937 unsupported_script_warning_printed.
11938 (maybe_add_script): Make static. Change type of language arg to
11939 struct extension_language_defn *.
11940 (clear_section_scripts): Reset unsupported_script_warning_printed.
11941 (auto_load_objfile_script_1): Rewrite to use extension language API.
11942 (auto_load_objfile_script): Make public. Remove support-compiled-in
11943 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11944 (source_section_scripts): Rewrite to use extension language API.
11945 (load_auto_scripts_for_objfile): Rewrite to use
11946 auto_load_scripts_for_objfile.
11947 (collect_matching_scripts_data): Change type of language member to
11948 struct extension_language_defn *.
11949 (auto_load_info_scripts): Change type of language arg to
11950 struct extension_language_defn *.
11951 (unsupported_script_warning_print): New function.
11952 (script_not_found_warning_print): Make static.
11953 (_initialize_auto_load): Rewrite construction of scripts-directory
11955 * auto-load.h (struct objfile): Add forward decl.
11956 (struct script_language): Delete.
11957 (struct auto_load_pspace_info): Add forward decl.
11958 (struct extension_language_defn): Add forward decl.
11959 (maybe_add_script): Delete.
11960 (auto_load_objfile_script): Declare.
11961 (script_not_found_warning_print): Delete.
11962 (auto_load_info_scripts): Update prototype.
11963 (auto_load_gdb_scripts_enabled): Declare.
11964 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11965 auto_load_python_scripts_enabled and made public.
11966 (script_language_python): Delete, moved to python.c.
11967 (gdbpy_script_language_defn): Delete.
11968 (info_auto_load_python_scripts): Update to use
11969 extension_language_python.
11971 * breakpoint.c (condition_command): Replace call to
11972 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11973 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11974 with call to breakpoint_ext_lang_cond_says_stop.
11975 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11976 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11977 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11978 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11980 (local_setattro): Print name of extension language with existing
11983 * valprint.c (val_print, value_print): Update to call
11984 apply_ext_lang_val_pretty_printer.
11985 * cp-valprint.c (cp_print_value): Update call to
11986 apply_ext_lang_val_pretty_printer.
11987 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11988 (gdbpy_apply_val_pretty_printer): Renamed from
11989 apply_val_pretty_printer. New arg extlang.
11990 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11992 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11993 extension language API.
11994 * cli/cli-script.c (execute_control_command): Update to call
11995 eval_ext_lang_from_control_command.
11997 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11998 enum ext_lang_bt_status values. Update call to
11999 apply_ext_lang_frame_filter.
12000 (mi_cmd_stack_list_locals): Ditto.
12001 (mi_cmd_stack_list_args): Ditto.
12002 (mi_cmd_stack_list_variables): Ditto.
12003 * mi/mi-main.c: Delete #include "python/python-internal.h".
12004 Add #include "extension.h".
12005 (mi_cmd_list_features): Replace reference to python internal variable
12006 gdb_python_initialized with call to ext_lang_initialized_p.
12008 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12009 Update to use enum ext_lang_frame_args. Update to call
12010 apply_ext_lang_frame_filter.
12011 * python/py-framefilter.c (extract_sym): Update to use enum
12012 ext_lang_bt_status.
12013 (extract_value, py_print_type, py_print_value): Ditto.
12014 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12015 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12016 (py_print_frame): Ditto.
12017 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12018 New arg extlang. Update to use enum ext_lang_bt_status.
12020 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12021 finish_python_initialization. Replace with call to
12022 finish_ext_lang_initialization.
12024 * typeprint.c (do_free_global_table): Update to call
12025 free_ext_lang_type_printers.
12026 (create_global_typedef_table): Update to call
12027 start_ext_lang_type_printers.
12028 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12029 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12030 (type_print_options): Change type of global_printers from "void *"
12031 to "struct ext_lang_type_printers *".
12033 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12034 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12035 (gdbpy_preserve_values): Renamed from preserve_python_values.
12037 (!HAVE_PYTHON, preserve_python_values): Delete.
12039 * utils.c (quit_flag): Delete, moved to extension.c.
12040 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12043 * eval.c: Delete #include "python/python.h".
12044 * main.c: Delete #include "python/python.h".
12046 * defs.h: Update comment.
12048 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12052 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12054 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12057 2014-02-05 Yao Qi <yao@codesourcery.com>
12059 * remote.c (remote_pass_signals): Remove local 'buf' and use
12061 (remote_program_signals): Likewise.
12063 2014-02-05 Yao Qi <yao@codesourcery.com>
12065 * ctf.c: Include "inferior.h" and "gdbthread.h".
12066 (CTF_PID): A new macro.
12067 (ctf_open): Call inferior_appeared and add_thread_silent.
12068 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12069 (ctf_thread_alive): New function.
12070 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12072 2014-02-05 Yao Qi <yao@codesourcery.com>
12076 2013-05-24 Yao Qi <yao@codesourcery.com>
12078 * tracepoint.c (TFILE_PID): Remove.
12079 (tfile_open): Don't add thread and inferior.
12080 (tfile_close): Don't set 'inferior_ptid'. Don't call
12081 exit_inferior_silent.
12082 (tfile_thread_alive): Remove.
12083 (init_tfile_ops): Don't set field 'to_thread_alive' of
12086 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12088 * remote.c (remote_start_remote): Call remote_check_symbols even
12089 if only symbol-file (not file) has been given.
12091 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12093 * gdbarch.sh (skip_entrypoint): New callback.
12094 * gdbarch.c, gdbarch.h: Regenerate.
12095 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12096 * infrun.c (fill_in_stop_func): Likewise.
12097 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12098 (ppc_elfv2_elf_make_msymbol_special): New function.
12099 (ppc_elfv2_skip_entrypoint): Likewise.
12100 (ppc_linux_init_abi): Install them for ELFv2.
12102 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12104 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12105 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12106 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12107 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12108 structures returned in GPRs.
12110 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12112 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12113 offset to the stack parameter list for the ELFv2 ABI.
12115 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12117 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12118 set_gdbarch_convert_from_func_ptr_addr and
12119 set_gdbarch_elf_make_msymbol_special for ELFv1.
12120 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12121 function descriptors on ELFv1.
12122 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12123 set up r12 at function entry.
12125 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12127 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12128 (struct gdbarch_tdep): New member elf_abi.
12130 * rs6000-tdep.c: Include "elf/ppc64.h".
12131 (rs6000_gdbarch_init): Detect ELF ABI version.
12133 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12135 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12136 within a register pair holding a DFP 128-bit value on little-endian.
12137 (ppc64_sysv_abi_return_value_base): Likewise.
12138 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12139 (dfp_pseudo_register_write): Likewise.
12141 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12143 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12144 offset on little-endian when passing _Decimal32.
12145 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12147 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12149 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12150 of the overlapped FP register within the VSX register on little-
12152 (efpr_pseudo_register_write): Likewise.
12154 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12156 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12157 offset on little-endian when passing small structures.
12159 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12161 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12162 (struct ppc64_sysv_argpos): New data structure.
12163 (ppc64_sysv_abi_push_float): Remove.
12164 (ppc64_sysv_abi_push_val): New function.
12165 (ppc64_sysv_abi_push_integer): Likewise.
12166 (ppc64_sysv_abi_push_freg): Likewise.
12167 (ppc64_sysv_abi_push_vreg): Likewise.
12168 (ppc64_sysv_abi_push_param): Likewise.
12169 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12170 (ppc64_sysv_abi_return_value_base): New function.
12171 (ppc64_sysv_abi_return_value): Refactor to use it.
12173 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12175 * NEWS: Document new target powerpc64le-*-linux*.
12177 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12179 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12180 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12182 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12183 register set used in ELF core dumps. Add floating-point register set.
12185 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12187 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12188 dwarf2_to_gdb[] table using symbolic constants. Adjust
12189 penultimate entry from number representing the PC register
12190 to symbolic constant representing the MDR register. Add
12191 constant for the PC register to the end of the table.
12193 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12195 * bsd-kvm.c: Include <sys/param.h>
12197 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12199 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12201 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12203 * ada-lang.h (clear_ada_sym_cache): Delete.
12205 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12207 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12209 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12211 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12212 the sigreturn register save area only if the syscall is
12215 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12217 * valops.c (value_slice): Minor reformatting.
12219 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12221 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12223 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12225 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12226 New static globals.
12227 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12228 (ada_ignore_descriptive_types_p): New static global.
12229 (find_parallel_type_by_descriptive_type): Return immediately
12230 if ada_ignore_descriptive_types_p is set.
12231 (_initialize_ada_language): Register new commands "maintenance
12232 set ada", "maintenance show ada", "maintenance set ada
12233 ignore-descriptive-types" and "maintenance show ada
12234 ignore-descriptive-types".
12235 * NEWS: Add entry for new "maint ada set/show
12236 ignore-descriptive-types" commands.
12238 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12240 * record-btrace.c (record_btrace_close): Call btrace_teardown
12243 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12245 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12248 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12250 * ada-typeprint (type_is_full_subrange_of_target_type):
12252 (print_range): Add parameter bounds_prefered_p. If not set,
12253 try printing range types using the name of their base type.
12254 (print_range_type): Add parameter bounds_prefered_p.
12255 Use it in call to print_range.
12256 (print_array_type, ada_print_type): Update calls to print_range
12257 and print_range_type.
12259 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12261 * ada-typeprint.c (print_array_type, print_choices, print_range)
12262 (print_range_bound, print_dynamic_range_bound, print_range_type):
12263 Remove declaration.
12265 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12267 * ada-typeprint.c (print_range): Add missing empty line
12268 after local declaration.
12270 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12272 * ada-valprint.c (print_optional_low_bound): Get index_type's
12273 target type for as long as it is a TYPE_CODE_RANGE.
12275 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12277 * procfs.c (procfs_make_note_section): Remove assertion and
12278 associated comment.
12280 2014-01-24 Yao Qi <yao@codesourcery.com>
12282 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12283 * corelow.c (get_core_siginfo): Likewise.
12285 2014-01-24 Yao Qi <yao@codesourcery.com>
12287 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12288 ULONGEST. Don't check 'len' is negative.
12289 (remote_write_bytes): Change type of 'len' to ULONGEST.
12291 2014-01-23 Tom Tromey <tromey@redhat.com>
12294 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12295 Handle exception from frame.block.
12296 (FrameVars.fetch_frame_locals): Likewise.
12298 2014-01-23 Tom Tromey <tromey@redhat.com>
12301 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12302 on a NULL pointer. Move "goto error" to correct place.
12304 2014-01-23 Tom Tromey <tromey@redhat.com>
12307 * python/py-framefilter.c (apply_frame_filter): Call
12308 ensure_python_env after computing gdbarch.
12310 2014-01-23 Yao Qi <yao@codesourcery.com>
12312 * target.c (raw_memory_xfer_partial): Change argument type
12313 from void * to gdb_byte *.
12314 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12316 2014-01-22 Doug Evans <dje@google.com>
12318 New gdbserver option --debug-format=timestamp.
12319 * NEWS: Mention it.
12321 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12323 * syscalls/s390x-linux.xml: New file.
12324 * syscalls/s390-linux.xml: New file.
12325 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12326 (XML_SYSCALL_FILENAME_S390X): Likewise.
12327 (op_svc): New enum value for SVC opcode.
12328 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12329 (s390_linux_get_syscall_number): New function.
12330 (s390_gdbarch_init): Register '*get_syscall_number' and the
12331 syscall xml file name.
12332 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12333 "s390-linux.xml" and "s390x-linux.xml".
12334 * NEWS: Announce new feature.
12336 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12338 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12340 2014-01-22 Pedro Alves <palves@redhat.com>
12342 * xtensa-config.c: Include defs.h.
12344 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12346 * common/common-utils.h: Add "ARI:" comment beside __func__
12349 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12351 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12352 documentation a bit.
12354 2014-01-21 Roland McGrath <mcgrathr@google.com>
12356 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12357 * configure: Regenerate.
12358 * aclocal.m4: Regenerate.
12359 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12360 New substituted variables.
12361 (install-strip): New target.
12362 (INSTALL_SCRIPT): New substituted variable.
12363 (FLAGS_TO_PASS): Add it.
12364 (install-only): Use $(INSTALL_SCRIPT) rather than
12365 $(INSTALL_PROGRAM) for gcore.
12367 2014-01-20 Tom Tromey <tromey@redhat.com>
12369 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12372 2014-01-20 Tom Tromey <tromey@redhat.com>
12374 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12375 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12376 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12377 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12378 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12379 (struct cmd_list_element) <flags>: Remove.
12380 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12381 doc_allocated>: New fields.
12382 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12384 * maint.c (maintenance_do_deprecate): Update.
12385 * top.c (execute_command): Update.
12387 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12389 * xtensa-linux-nat.c: Include asm/ptrace.h.
12391 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12393 * Makefile.in (SFILES): Add d-support.c.
12394 (COMMON_OBS): Add d-support.o.
12395 * d-lang.h (d_parse_symbol): Add comment, now defined in
12397 * d-lang.c (parse_call_convention)
12398 (parse_attributes, parse_function_types)
12399 (parse_function_args, parse_type, parse_identifier)
12400 (call_convention_p, d_parse_symbol): Move functions to ...
12401 * d-support.c: ... New file.
12403 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12405 * d-lang.h (d_parse_symbol): Add declaration.
12406 * d-lang.c (extract_identifiers)
12407 (extract_type_info): Remove functions.
12408 (parse_call_convention, parse_attributes)
12409 (parse_function_types, parse_function_args)
12410 (parse_type, parse_identifier, call_convention_p)
12411 (d_parse_symbol): New functions.
12412 (d_demangle): Use d_parse_symbol to demangle D symbols.
12414 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12416 * d-lang.h (struct builtin_d_type): New data type.
12417 (builtin_d_type): Add declaration.
12418 * d-lang.c (d_language_arch_info, build_d_types)
12419 (builtin_d_type): New functions.
12420 (enum d_primitive_types): New data type.
12421 (d_language_defn): Change c_language_arch_info to
12422 d_language_arch_info.
12423 (d_type_data): New static variable.
12424 (_initialize_d_language): Initialize d_type_data.
12426 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12428 * d-lang.h (d_main_name): Add declaration.
12429 * d-lang.c (d_main_name): New function.
12430 * symtab.c (find_main_name): Add call to d_main_name.
12432 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12434 * d-lang.c (d_language_defn): Change macro_expansion_c to
12435 macro_expansion_no.
12437 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12439 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12441 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12443 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12444 gdb_exception" declaration.
12445 * remote.c (getpkt_or_notif_sane): Likewise.
12447 2014-01-17 Doug Evans <dje@google.com>
12449 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12450 function, contents of dirnames_to_char_ptr_vec_append moved here.
12451 (delim_string_to_char_ptr_vec): New function.
12452 (dirnames_to_char_ptr_vec_append): Rewrite.
12453 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12455 2014-01-17 Doug Evans <dje@google.com>
12457 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12459 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12460 #include "common-utils.h".
12461 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12462 * common/vec.h (VEC_ASSERT_PASS): Update.
12463 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12464 (MACH_CHECK_ERROR): Update.
12466 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12468 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12470 * gdbarch.h: Regenerate.
12472 2014-01-16 Tom Tromey <tromey@redhat.com>
12474 * value.c (struct value) <regnum>: Move earlier.
12476 2014-01-16 Tom Tromey <tromey@redhat.com>
12478 * remote.c (extended_remote_create_inferior): Rename from
12479 extended_remote_create_inferior_1. Add "ops" argument. Remove
12480 old implementation.
12482 2014-01-16 Pedro Alves <palves@redhat.com>
12484 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12485 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12488 2014-01-16 Doug Evans <dje@google.com>
12490 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12494 * btrace.h (btrace_thread_flag): New.
12495 (struct btrace_thread_info) <flags>: New.
12496 * record-btrace.c (record_btrace_resume_thread)
12497 (record_btrace_find_thread_to_move, btrace_step_no_history)
12498 (btrace_step_stopped, record_btrace_start_replaying)
12499 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12500 (record_btrace_find_resume_thread): New.
12501 (record_btrace_resume, record_btrace_wait): Extend.
12502 (record_btrace_can_execute_reverse): New.
12503 (record_btrace_open): Fail in non-stop mode.
12504 (record_btrace_set_replay): Split into this, ...
12505 (record_btrace_stop_replaying): ... this, ...
12506 (record_btrace_clear_histories): ... and this.
12507 (init_record_btrace_ops): Init to_can_execute_reverse.
12508 * NEWS: Announce it.
12510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12512 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12513 (forward_target_decr_pc_after_break)
12514 (target_decr_pc_after_break): New.
12515 * target.c (forward_target_decr_pc_after_break)
12516 (target_decr_pc_after_break): New.
12517 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12518 instead of gdbarch_decr_pc_after_break.
12519 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12520 instead of gdbarch_decr_pc_after_break.
12521 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12522 instead of gdbarch_decr_pc_after_break.
12523 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12524 instead of gdbarch_decr_pc_after_break.
12525 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12526 instead of gdbarch_decr_pc_after_break.
12527 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12528 instead of gdbarch_decr_pc_after_break.
12530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12532 * btrace.c: Include regcache.h.
12533 (btrace_add_pc): New.
12534 (btrace_enable): Call btrace_add_pc.
12535 (btrace_is_empty): New.
12536 * btrace.h (btrace_is_empty): New.
12537 * record-btrace.c (require_btrace, record_btrace_info): Call
12540 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12542 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12543 Support delta reads.
12544 (linux_disable_btrace): Change return type.
12545 * common/linux-btrace.h (linux_read_btrace): Change parameters
12546 and return type to allow error reporting. Update users.
12547 (linux_disable_btrace): Change return type. Update users.
12548 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12550 (btrace_error): New.
12551 (btrace_block) <begin>: Comment on BEGIN == 0.
12552 * btrace.c (btrace_compute_ftrace): Start from the end of
12554 (btrace_stitch_trace, btrace_clear_history): New.
12555 (btrace_fetch): Read delta trace, return if replaying.
12556 (btrace_clear): Move clear history code to btrace_clear_history.
12557 (parse_xml_btrace): Throw an error if parsing failed.
12558 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12559 and return type to allow error reporting.
12560 (target_read_btrace): Change parameters and return type to allow
12562 * target.c (target_read_btrace): Update.
12563 * remote.c (remote_read_btrace): Support delta reads. Pass
12565 * NEWS: Announce it.
12567 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12569 * record.h (record_btrace_frame_unwind)
12570 (record_btrace_tailcall_frame_unwind): New declarations.
12571 * dwarf2-frame: Include record.h
12572 (dwarf2_frame_cfa): Throw an error for btrace frames.
12573 * record-btrace.c: Include hashtab.h.
12574 (btrace_get_bfun_name): New.
12575 (btrace_call_history): Call btrace_get_bfun_name.
12576 (struct btrace_frame_cache): New.
12578 (bfcache_hash, bfcache_eq, bfcache_new): New.
12579 (btrace_get_frame_function): New.
12580 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12581 (record_btrace_frame_this_id): Compute own id.
12582 (record_btrace_frame_prev_register): Provide PC, throw_error
12583 for all other registers.
12584 (record_btrace_frame_sniffer): Detect btrace frames.
12585 (record_btrace_tailcall_frame_sniffer): New.
12586 (record_btrace_frame_dealloc_cache): New.
12587 (record_btrace_frame_unwind): Add new functions.
12588 (record_btrace_tailcall_frame_unwind): New.
12589 (_initialize_record_btrace): Allocate cache.
12590 * btrace.c (btrace_clear): Call reinit_frame_cache.
12591 * NEWS: Announce it.
12593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12595 * record-btrace.c (record_btrace_set_replay)
12596 (record_btrace_goto_begin, record_btrace_goto_end)
12597 (record_btrace_goto): New.
12598 (init_record_btrace_ops): Initialize them.
12599 * NEWS: Announce it.
12601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12603 * record-btrace.c (record_btrace_find_new_threads)
12604 (record_btrace_thread_alive): New.
12605 (init_record_btrace_ops): Initialize to_find_new_threads and
12608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12610 * record-btrace.c (record_btrace_resume): New.
12611 (record_btrace_wait): New.
12612 (init_record_btrace_ops): Initialize to_wait and to_resume.
12614 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12616 * record-btrace.c (record_btrace_xfer_partial)
12617 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12618 (record_btrace_allow_memory_access): New.
12619 (init_record_btrace_ops): Initialize new methods.
12620 * target.c (raw_memory_xfer_partial): Bail out if target reports
12621 that this memory is not available.
12623 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12625 * target.h (target_ops) <to_insert_breakpoint>
12626 <to_remove_breakpoint>: Add target_ops parameter.
12627 (forward_target_insert_breakpoint): New.
12628 (forward_target_remove_breakpoint): New.
12629 (memory_remove_breakpoint, memory_insert_breakpoint):
12630 Add target_ops parameter.
12631 * target.c (target_insert_breakpoint): Split into this and ...
12632 (forward_target_insert_breakpoint): ... this.
12633 (target_remove_breakpoint): Split into this and ...
12634 (forward_target_remove_breakpoint): ... this.
12635 (debug_to_insert_breakpoint): Add target_ops parameter.
12636 Call forward_target_insert_breakpoint.
12637 (debug_to_remove_breakpoint): Add target_ops parameter.
12638 Call forward_target_remove_breakpoint.
12639 (update_current_target): Do not inherit or default to_insert_breakpoint
12640 and to_remove_breakpoint.
12641 * corelow.c (ignore): Add target_ops parameter.
12642 * exec.c (ignore): Add target_ops parameter.
12643 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12644 Add target_ops parameter.
12645 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12646 Add target_ops parameter.
12647 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12648 Add target_ops parameter.
12649 * record-full.c (record_full_beneath_to_insert_breakpoint)
12650 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12651 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12652 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12653 (record_full_core_remove_breakpoint): Add target_ops parameter.
12655 (record_full_beneath_to_insert_breakpoint_ops)
12656 (record_full_beneath_to_remove_breakpoint_ops)
12657 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12658 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12659 tmp_to_remove_breakpoint_ops,
12660 record_full_beneath_to_insert_breakpoint_ops, and
12661 record_full_beneath_to_remove_breakpoint_ops.
12662 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12663 (m32r_remove_breakpoint): Add target_ops parameter.
12664 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12665 Add target_ops parameter.
12666 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12667 Add target_ops parameter.
12669 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12670 Markus Metzger <markus.t.metzger@intel.com>
12672 * record-btrace.c: Include frame-unwind.h.
12673 (record_btrace_frame_unwind_stop_reason)
12674 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12675 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12677 (init_record_btrace_ops): Install it.
12679 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12681 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12684 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12686 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12689 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12691 * frame-unwind.c: Include target.h.
12692 (frame_unwind_try_unwinder): New function with code from ...
12693 (frame_unwind_find_by_frame): ... here. New variable
12694 unwinder_from_target, call also target_get_unwinder)
12695 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12696 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12697 * target.h (struct target_ops): New fields to_get_unwinder and
12698 to_get_tailcall_unwinder.
12699 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12701 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12703 * record-btrace.c (record_btrace_fetch_registers)
12704 (record_btrace_store_registers)
12705 (record_btrace_to_prepare_to_store): New.
12706 (init_record_btrace_ops): Add the above.
12708 2014-01-16 Tom Tromey <tromey@redhat.com>
12710 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12711 * target.h (struct target_ops) <to_prepare_to_store>: Add
12713 (target_prepare_to_store): Add argument.
12714 * target.c (debug_to_prepare_to_store): Add argument.
12715 (update_current_target): Update.
12716 * remote.c (remote_prepare_to_store): Add 'self' argument.
12717 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12718 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12719 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12720 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12722 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12723 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12724 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12725 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12726 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12730 * btrace.h (replay) <replay>: New.
12731 (btrace_is_replaying): New.
12732 * btrace.c (btrace_clear): Free replay iterator.
12733 (btrace_is_replaying): New.
12734 * record-btrace.c (record_btrace_is_replaying): New.
12735 (record_btrace_info): Print insn number if replaying.
12736 (record_btrace_insn_history): Start at replay position.
12737 (record_btrace_call_history): Start at replay position.
12738 (init_record_btrace_ops): Init to_record_is_replaying.
12740 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12742 * record-btrace.c (record_btrace_insn_history_range): Include
12744 (record_btrace_insn_history_from): Adjust range.
12745 (record_btrace_call_history_range): Include
12747 (record_btrace_call_history_from): Adjust range.
12748 * NEWS: Announce changes.
12750 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12752 * record.h (enum record_print_flag)
12753 <record_print_indent_calls>: New.
12754 * record.c (get_call_history_modifiers): Recognize /c modifier.
12755 (_initialize_record): Document /c modifier.
12756 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12757 Reorder fields. Optionally indent the function name. Update
12759 * NEWS: Announce changes.
12761 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12763 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12767 * btrace.c (ftrace_new_function): Start counting at one.
12768 * record-btrace.c (record_btrace_info): Adjust number of calls
12770 * NEWS: Announce it.
12772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12774 * record-btrace.c (btrace_call_history_insn_range): Print
12775 insn range as [begin, end].
12777 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12779 * btrace.h (struct btrace_func_link): New.
12780 (enum btrace_function_flag): New.
12781 (struct btrace_inst): Rename to ...
12782 (struct btrace_insn): ...this. Update all users.
12783 (struct btrace_func) <ibegin, iend>: Remove.
12784 (struct btrace_func_link): New.
12785 (struct btrace_func): Rename to ...
12786 (struct btrace_function): ...this. Update all users.
12787 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12788 (number, level, flags>: New.
12789 (struct btrace_insn_iterator): Rename to ...
12790 (struct btrace_insn_history): ...this.
12792 (struct btrace_insn_iterator, btrace_call_iterator): New.
12793 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12794 (struct btrace_target_info) <begin, end, level>
12795 <insn_history, call_history>: New.
12796 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12797 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12798 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12799 (btrace_call_number, btrace_call_begin, btrace_call_end)
12800 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12801 (btrace_find_function_by_number, btrace_set_insn_history)
12802 (btrace_set_call_history): New.
12803 * btrace.c (btrace_init_insn_iterator)
12804 (btrace_init_func_iterator, compute_itrace): Remove.
12805 (ftrace_print_function_name, ftrace_print_filename)
12806 (ftrace_skip_file): Change
12807 parameter to const.
12808 (ftrace_init_func): Remove.
12809 (ftrace_debug): Use new btrace_function fields.
12810 (ftrace_function_switched): Also consider gaining and
12811 losing symbol information).
12812 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12813 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12814 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12816 (ftrace_new_function): Move. Remove debug print.
12817 (ftrace_update_lines, ftrace_update_insns): New.
12818 (ftrace_update_function): Check for call, ret, and jump.
12819 (compute_ftrace): Renamed to ...
12820 (btrace_compute_ftrace): ...this. Rewritten to compute call
12822 (btrace_fetch, btrace_clear): Updated.
12823 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12824 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12825 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12826 (btrace_call_number, btrace_call_begin, btrace_call_end)
12827 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12828 (btrace_find_function_by_number, btrace_set_insn_history)
12829 (btrace_set_call_history): New.
12830 * record-btrace.c (require_btrace): Use new btrace thread
12832 (record_btrace_info, btrace_insn_history)
12833 (record_btrace_insn_history, record_btrace_insn_history_range):
12834 Use new btrace thread info fields and new iterator.
12835 (btrace_func_history_src_line): Rename to ...
12836 (btrace_call_history_src_line): ...this. Use new btrace
12837 thread info fields.
12838 (btrace_func_history): Rename to ...
12839 (btrace_call_history): ...this. Use new btrace thread info
12840 fields and new iterator.
12841 (record_btrace_call_history, record_btrace_call_history_range):
12842 Use new btrace thread info fields and new iterator.
12844 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12846 * frame.h (frame_id_build_unavailable_stack_special): New.
12847 * frame.c (frame_id_build_unavailable_stack_special): New.
12849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12851 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12852 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12853 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12855 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12856 (i386_insn_is_jump, i386_jmp_p): New.
12857 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12858 insn_is_jump to gdbarch.
12859 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12860 * gdbarch.h: Regenerated.
12861 * gdbarch.c: Regenerated.
12862 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12863 (default_insn_is_jump): New.
12864 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12865 (default_insn_is_jump): New.
12867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12869 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12871 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12872 (btrace_read_type) <btrace_read_new>: Change to ...
12873 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12877 * common/linux-btrace.c (linux_read_btrace): Free trace from
12878 previous iteration.
12880 2014-01-15 Doug Evans <dje@google.com>
12882 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12885 2014-01-15 Tom Tromey <tromey@redhat.com>
12887 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12888 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12889 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12890 (set_objfile_main_name): New function.
12891 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12892 language_of_main>: New fields.
12893 (set_objfile_main_name): Declare.
12894 * symtab.c (find_main_name): Loop over objfiles to find the main
12896 (set_main_name): Now static.
12897 (get_main_info): Add comment.
12898 * symtab.h (set_main_name): Don't declare.
12900 2014-01-15 Tom Tromey <tromey@redhat.com>
12902 * symtab.c (main_progspace_key): New global.
12903 (struct main_info): New.
12904 (name_of_main, language_of_main): Remove.
12905 (get_main_info, main_info_cleanup): New function.
12906 (set_main_name, main_name, main_language): Use get_main_info.
12907 (_initialize_symtab): Initialize main_progspace_key.
12909 2014-01-15 Tom Tromey <tromey@redhat.com>
12911 * dbxread.c (process_one_symbol): Update.
12912 * dwarf2read.c (read_partial_die): Update.
12913 * symfile.c (set_initial_language): Call main_language.
12914 * symtab.c (language_of_main): Now static.
12915 (set_main_name): Add 'lang' parameter.
12916 (find_main_name): Update.
12917 (main_language): New function.
12918 (symtab_observer_executable_changed): Update.
12919 * symtab.h (set_main_name): Update.
12920 (language_of_main): Remove.
12921 (main_language): Declare.
12923 2014-01-15 Tom Tromey <tromey@redhat.com>
12925 * symfile.c (init_entry_point_info): Use new "initialized" field.
12927 * objfiles.h (struct entry_point) <initialized>: New field.
12928 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12929 (struct objfile) <ei>: ...here. Remove.
12930 * objfiles.c (entry_point_address_query): Update.
12932 2014-01-15 Tom Tromey <tromey@redhat.com>
12934 * objfiles.c (entry_point_address_query): Relocate entry point
12936 (objfile_relocate1): Do not relocate entry point address.
12937 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12938 <the_bfd_section_index>: New field.
12939 * symfile.c (init_entry_point_info): Find the entry point's
12942 2014-01-15 Tom Tromey <tromey@redhat.com>
12944 * solib-frv.c (enable_break): Use entry_point_address_query.
12946 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12948 * NEWS: Add note on improved process record-replay on
12949 arm*-linux* targets.
12951 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12953 * arm-tdep.c (enum arm_record_result): New enum.
12954 (arm_record_unsupported_insn): New function.
12955 (arm_record_coproc_data_proc): Removed.
12956 (thumb2_record_ld_st_multiple): New function.
12957 (thumb2_record_ld_st_dual_ex_tbb): New function.
12958 (thumb2_record_data_proc_sreg_mimm): New function.
12959 (thumb2_record_ps_dest_generic): New function.
12960 (thumb2_record_branch_misc_cntrl): New function.
12961 (thumb2_record_str_single_data): New function.
12962 (thumb2_record_ld_mem_hints): New function.
12963 (thumb2_record_ld_word): New function.
12964 (thumb2_record_lmul_lmla_div): New function.
12965 (thumb2_record_decode_insn_handler): New function.
12966 (decode_insn): Add thumb32 instruction handlers.
12968 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12970 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12971 (struct arm_linux_record_tdep): Declare.
12972 (arm_canonicalize_syscall): New function.
12973 (arm_all_but_pc_registers_record): New function.
12974 (arm_linux_syscall_record): New function.
12975 (arm_linux_init_abi): Add syscall recording constructs.
12976 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12977 decoding. (arm_record_coproc_data_proc): Update arm syscall
12979 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12980 <arm_syscall_record>: New field.
12981 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12984 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12986 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12987 register for push instruction recording.
12989 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12991 * arm-tdep.c (thumb_record_misc): Update to correct logical
12992 error while recording ldm, ldmia and pop instructions.
12994 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12996 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12998 2014-01-15 Pedro Alves <palves@redhat.com>
13000 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13001 (go32_resume, go32_fetch_registers, store_register)
13002 (go32_store_registers, go32_prepare_to_store)
13003 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13004 (go32_create_inferior, go32_can_run, go32_terminal_init)
13005 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13008 2014-01-15 Tom Tromey <tromey@redhat.com>
13010 * target.h (async_callback_ftype): New typedef.
13011 (struct target_ops) <to_async>: Use it.
13013 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13015 * python/py-value.c (get_field_type): Remove unnecessary curly
13016 braces for single-statement if block.
13018 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13020 * python/py-type.c (convert_field): Add missing empty line
13021 after declarations.
13023 2014-01-14 Doug Evans <dje@google.com>
13025 * symfile.h (expand_symtabs_matching): Renamed from
13026 expand_partial_symbol_names. Update prototype.
13027 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13028 * symfile.c (expand_symtabs_matching): Renamed from
13029 expand_partial_symbol_names. New args file_matcher, kind.
13030 Rename arg fun to symbol_matcher.
13031 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13032 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13033 ada_expand_partial_symbol_name.
13034 (ada_make_symbol_completion_list): Update to call
13035 expand_symtabs_matching.
13036 (ada_add_global_exceptions): Call expand_symtabs_matching.
13037 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13038 call map_symbol_filenames.
13039 * symtab.c (sources_info): Update to call map_symbol_filenames.
13040 (search_symbols): Call expand_symtabs_matching.
13041 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13042 (default_make_symbol_completion_list_break_on): Update to call
13043 expand_symtabs_matching.
13044 (make_source_files_completion_list): Update to call
13045 map_symbol_filenames.
13047 2014-01-14 Doug Evans <dje@google.com>
13049 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13050 (expand_symtabs_symbol_matcher_ftype): New typedef.
13051 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13052 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13053 * symfile.c (expand_partial_symbol_names): Update to use
13054 expand_symtabs_symbol_matcher_ftype.
13055 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13056 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13057 Arg name_matcher renamed to symbol_matcher.
13058 * psymtab.c (recursively_search_psymtabs): Update to use
13059 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13061 (expand_symtabs_matching_via_partial): Update to use
13062 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13063 Arg name_matcher renamed to symbol_matcher.
13065 2014-01-14 Doug Evans <dje@google.com>
13067 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13068 (map_partial_symbol_filenames): Ditto.
13069 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13070 (map_partial_symbol_filenames): Ditto.
13071 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13072 (map_partial_symbol_filenames): Ditto.
13073 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13074 (map_partial_symbol_filenames): Ditto.
13075 * symtab.c: Delete #include "psymtab.h".
13077 2014-01-14 Pedro Alves <palves@redhat.com>
13078 Tom Tromey <tromey@redhat.com>
13080 * infrun.c (use_displaced_stepping): Use find_record_target
13081 instead of RECORD_IS_USED.
13082 (adjust_pc_after_break): Use record_full_is_used instead of
13084 * record-btrace.c (record_btrace_open): Call record_preopen
13085 instead of checking RECORD_IS_USED.
13086 * record-full.c (record_full_shortname)
13087 (record_full_core_shortname): New globals.
13088 (record_full_is_used): New function.
13089 (find_full_open): Call record_preopen instead of checking
13091 (init_record_full_ops): Set the target's shortname to
13092 record_full_shortname.
13093 (init_record_full_core_ops): Set the target's shortname to
13094 record_full_core_shortname.
13095 * record-full.h (record_full_is_used): Declare.
13096 * record.c (find_record_target): Make extern.
13097 (record_preopen): New function.
13098 * record.h (RECORD_IS_USED): Delete macro.
13099 (find_record_target, record_preopen): Declare functions.
13101 2014-01-14 Yao Qi <yao@codesourcery.com>
13103 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13104 'len''s type to ULONGEST.
13105 (core_xfer_shared_libraries_aix): Likewise.
13106 * gdbarch.c, gdbarch.h: Regenerated.
13107 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13108 Change type of 'len' to ULONGEST.
13109 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13110 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13112 2014-01-14 Yao Qi <yao@codesourcery.com>
13114 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13115 type of 'len' to ULONGEST.
13116 (linux_xfer_osdata_processgroups): Likewise.
13117 (linux_xfer_osdata_threads): Likewise.
13118 (linux_xfer_osdata_fds): Likewise.
13119 (linux_xfer_osdata_isockets): Likewise.
13120 (linux_xfer_osdata_shm): Likewise.
13121 (linux_xfer_osdata_sem): Likewise.
13122 (linux_xfer_osdata_msg): Likewise.
13123 (linux_common_xfer_osdata): Likewise.
13124 (struct osdata_type) <getter>: Likewise.
13125 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13128 2014-01-14 Yao Qi <yao@codesourcery.com>
13130 * target.h (target_xfer_partial_ftype): Update.
13131 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13133 * aix-thread.c (aix_thread_xfer_partial): Change type of
13134 argument 'len' to ULONGEST.
13135 * auxv.c (procfs_xfer_auxv): Likewise.
13136 (ld_so_xfer_auxv): Likewise.
13137 (memory_xfer_auxv): Likewise.
13138 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13139 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13140 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13141 * corelow.c (core_xfer_partial): Likewise.
13142 * ctf.c (ctf_xfer_partial): Likewise.
13143 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13145 (darwin_read_dyld_info): Likewise.
13146 (darwin_xfer_partial): Likewise.
13147 * exec.c (section_table_xfer_memory_partial): Likewise.
13148 (exec_xfer_partial): Likewise.
13149 * exec.h (section_table_xfer_memory_partial): Update
13151 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13152 instead of plongest.
13153 (gnu_xfer_partial): Likewise.
13154 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13155 (ia64_hpux_xfer_solib_got): Likewise.
13156 (ia64_hpux_xfer_partial): Likewise.
13157 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13158 * inf-ptrace.c (inf_ptrace_xfer_partial):
13159 * inf-ttrace.c (inf_ttrace_xfer_partial):
13160 * linux-nat.c (linux_xfer_siginfo): Likewise.
13161 (linux_nat_xfer_partial): Likewise.
13162 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13163 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13164 * monitor.c (monitor_xfer_memory): Likewise.
13165 (monitor_xfer_partial): Likewise.
13166 * procfs.c (procfs_xfer_partial): Likewise.
13167 * record-full.c (record_full_xfer_partial): Likewise.
13168 (record_full_core_xfer_partial): Likewise.
13169 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13170 instead of plongest.
13171 (gdbsim_xfer_partial): Likewise.
13172 * remote.c (remote_xfer_partial): Likewise.
13173 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13174 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13176 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13177 (rs6000_xfer_shared_libraries): Likewise.
13178 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13179 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13180 (sparc_xfer_partial): Likewise.
13181 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13182 (spu_xfer_partial): Likewise.
13183 * spu-multiarch.c (spu_xfer_partial): Likewise.
13184 * target.c (target_read_live_memory): Likewise.
13185 (memory_xfer_live_readonly_partial): Likewise.
13186 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13187 (target_xfer_partial, default_xfer_partial): Likewise.
13188 (current_xfer_partial): Likewise.
13189 * tracepoint.c (tfile_xfer_partial): Likewise.
13190 * windows-nat.c (windows_xfer_memory): Likewise. Call
13191 pulongest instead of plongest.
13192 (windows_xfer_partial): Likewise.
13193 (windows_xfer_shared_libraries): Likewise.
13195 2014-01-14 Yao Qi <yao@codesourcery.com>
13197 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13198 target_xfer_partial_ftype.
13200 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13204 * valops.c (value_struct_elt_bitpos): New function
13205 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13206 object to 'None' if the field name is an empty string ("").
13207 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13208 attribute to look for a field when 'name' is 'None'.
13209 (get_field_type): New function
13211 2014-01-13 Doug Evans <dje@google.com>
13214 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13215 (try_open_dwop_file): Ditto.
13216 * gdb_bfd.c: #include "vec.h".
13217 (bfdp): New typedef.
13218 (struct gdb_bfd_data): New member included_bfds.
13219 (gdb_bfd_unref): Unref all included bfds.
13220 (gdb_bfd_record_inclusion): New function.
13221 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13223 2014-01-13 Tom Tromey <tromey@redhat.com>
13225 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13227 2014-01-13 Tom Tromey <tromey@redhat.com>
13229 * defs.h (use_windows): Remove.
13230 * gdb.c (main): Update.
13231 * main.c (captured_main, gdb_main): Update.
13232 * main.h (struct captured_main_args) <use_windows>: Remove.
13233 * top.c (use_windows): Remove.
13235 2014-01-13 Tom Tromey <tromey@redhat.com>
13237 * defs.h (deprecated_flush_hook): Remove.
13239 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13242 * linux-thread-db.c (try_thread_db_load): Add parameter
13243 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13244 (try_thread_db_load_from_pdir_1): Move it there from here.
13245 (try_thread_db_load_from_sdir): Update caller.
13246 (try_thread_db_load_from_dir): Move it there from here.
13248 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13250 * regformats/regdat.sh: Always rewrite the register file.
13252 2014-01-13 Pedro Alves <palves@redhat.com>
13254 * Makefile.in (CHECK_HEADERS): New variable.
13255 (check-headers:): New rule.
13257 2014-01-13 Tom Tromey <tromey@redhat.com>
13259 * cli/cli-setshow.c (do_set_command): Update.
13260 * defs.h (deprecated_set_hook): Remove.
13261 * top.c (deprecated_set_hook): Remove.
13263 2014-01-13 Pedro Alves <palves@redhat.com>
13265 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13266 the tracepoint if the PC is a pseudo-register.
13268 2014-01-13 Tom Tromey <tromey@redhat.com>
13270 * defs.h (XCALLOC): Remove.
13271 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13272 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13273 * dwarf2loc.c (allocate_piece_closure): Likewise.
13274 * elfread.c (elf_symfile_segments): Likewise.
13275 (elf_symfile_segments): Likewise.
13276 * gdbtypes.c (copy_type_recursive): Likewise.
13277 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13278 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13279 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13281 * mt-tdep.c (mt_gdbarch_init): Likewise.
13282 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13284 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13285 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13286 * registry.c (registry_alloc_data): Likewise.
13287 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13288 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13289 * serial.c (serial_fdopen_ops): Likewise.
13290 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13292 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13293 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13296 2014-01-13 Tom Tromey <tromey@redhat.com>
13298 * defs.h (XMALLOC): Remove.
13299 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13300 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13301 * cli-out.c (struct ui_out *): Likewise.
13302 * cli/cli-dump.c (add_dump_command): Likewise.
13303 (add_dump_command): Likewise.
13304 * complaints.c (get_complaints): Likewise.
13305 (find_complaint): Likewise.
13306 * dwarf2-frame.c (execute_cfa_program): Likewise.
13307 * dwarf2read.c (abbrev_table_read_table): Likewise.
13308 * gdbarch.sh: Likewise.
13309 * gdbarch.c: Rebuild.
13310 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13311 * interps.c (interp_new): Likewise.
13312 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13313 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13314 * mi/mi-console.c (mi_console_file_new): Likewise.
13315 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13316 * mi/mi-out.c (mi_out_new): Likewise.
13317 * mi/mi-parse.c (mi_parse): Likewise.
13318 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13319 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13320 * observer.c (xalloc_observer_list_node): Likewise.
13321 * regcache.c (regcache_xmalloc_1): Likewise.
13322 * reggroups.c (reggroup_new): Likewise.
13323 (_initialize_reggroup): Likewise.
13324 * registry.c (register_data_with_cleanup): Likewise.
13325 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13326 * ser-base.c (serial_ttystate): Likewise.
13327 * ser-mingw.c (make_pipe_state): Likewise.
13328 * ser-pipe.c (pipe_open): Likewise.
13329 * serial.c (serial_open): Likewise.
13330 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13331 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13332 (tui_alloc_win_info): Likewise.
13333 (tui_add_content_elements): Likewise.
13334 * tui/tui-file.c (tui_file_new): Likewise.
13335 * tui/tui-out.c (tui_out_new): Likewise.
13336 * ui-file.c (mem_file_new): Likewise.
13337 * ui-out.c (push_level): Likewise.
13338 (make_cleanup_ui_out_end): Likewise.
13339 (append_header_to_list): Likewise.
13340 (ui_out_new): Likewise.
13341 * user-regs.c (user_reg_add_builtin): Likewise.
13343 2014-01-13 Tom Tromey <tromey@redhat.com>
13345 * defs.h (XZALLOC): Remove.
13346 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13347 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13348 (get_ada_tasks_inferior_data): Likewise.
13349 * auto-load.c (get_auto_load_pspace_data): Likewise.
13350 * auxv.c (get_auxv_inferior_data): Likewise.
13351 * bfd-target.c (target_bfd_reopen): Likewise.
13352 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13353 (deprecated_insert_raw_breakpoint): Likewise.
13354 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13355 * corelow.c (core_open): Likewise.
13356 * darwin-nat.c (darwin_check_new_threads): Likewise.
13357 (darwin_attach_pid): Likewise.
13358 * dummy-frame.c (dummy_frame_push): Likewise.
13359 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13360 * dwarf2loc.c (allocate_piece_closure): Likewise.
13361 * elfread.c (elf_symfile_segments): Likewise.
13362 * eval.c (ptrmath_type_p): Likewise.
13363 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13364 * gdbtypes.c (alloc_type_arch): Likewise.
13365 (alloc_type_instance): Likewise.
13366 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13367 * inf-child.c (inf_child_can_use_agent): Likewise.
13368 * inflow.c (get_inflow_inferior_data): Likewise.
13369 * infrun.c (save_infcall_suspend_state): Likewise.
13370 * jit.c (jit_reader_load): Likewise.
13371 (get_jit_objfile_data): Likewise.
13372 (get_jit_program_space_data): Likewise.
13373 (jit_object_open_impl): Likewise.
13374 (jit_symtab_open_impl): Likewise.
13375 (jit_block_open_impl): Likewise.
13376 (jit_frame_sniffer): Likewise.
13377 * linux-fork.c (add_fork): Likewise.
13378 * maint.c (make_command_stats_cleanup): Likewise.
13379 * objfiles.c (get_objfile_pspace_data): Likewise.
13380 * opencl-lang.c (struct lval_closure): Likewise.
13381 * osdata.c (osdata_start_osdata): Likewise.
13382 * progspace.c (new_address_space): Likewise.
13383 (add_program_space): Likewise.
13384 * remote-sim.c (get_sim_inferior_data): Likewise.
13385 * sh-tdep.c (sh_gdbarch_init): Likewise.
13386 * skip.c (Ignore): Likewise.
13387 (skip_delete_command): Likewise.
13388 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13389 (library_list_start_library): Likewise.
13390 (solib_aix_current_sos): Likewise.
13391 * solib-darwin.c (get_darwin_info): Likewise.
13392 (darwin_current_sos): Likewise.
13393 * solib-dsbt.c (get_dsbt_info): Likewise.
13394 * solib-ia64-hpux.c (new_so_list): Likewise.
13395 (ia64_hpux_get_solib_linkage_addr): Likewise.
13396 * solib-spu.c (append_ocl_sos): Likewise.
13397 (spu_current_sos): Likewise.
13398 * solib-svr4.c (get_svr4_info): Likewise.
13399 (svr4_keep_data_in_core): Likewise.
13400 (library_list_start_library): Likewise.
13401 (svr4_default_sos): Likewise.
13402 (svr4_read_so_list): Likewise.
13403 * solib-target.c (library_list_start_library): Likewise.
13404 (solib_target_current_sos): Likewise.
13405 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13406 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13407 * symfile.c (default_symfile_segments): Likewise.
13408 * target-descriptions.c (tdesc_data_init): Likewise.
13409 (tdesc_create_reg): Likewise.
13410 (struct tdesc_type *): Likewise.
13411 (tdesc_create_vector): Likewise.
13412 (tdesc_set_struct_size): Likewise.
13413 (struct tdesc_type *): Likewise.
13414 (tdesc_free_feature): Likewise.
13415 (tdesc_create_feature): Likewise.
13416 * windows-nat.c (windows_add_thread): Likewise.
13417 (windows_make_so): Likewise.
13418 * xml-support.c (gdb_xml_body_text): Likewise.
13419 (gdb_xml_create_parser_and_cleanup): Likewise.
13420 (xml_process_xincludes): Likewise.
13421 * xml-syscall.c (allocate_syscalls_info): Likewise.
13422 (syscall_create_syscall_desc): Likewise.
13424 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13426 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13427 function, with code from i386_stap_parse_special_token.
13428 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13429 (i386_stap_parse_special_token): Move code to the two functions
13430 above; simplify it.
13432 2014-01-09 Pedro Alves <palves@redhat.com>
13433 Hui Zhu <hui@codesourcery.com>
13436 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13437 bp_err_string. Don't mark the location shlib_disabled if the
13438 error thrown wasn't a generic or memory error. Catch errors
13439 thrown while inserting breakpoints in overlayed code. Output
13440 error message of software breakpoints.
13441 * remote.c (remote_insert_breakpoint): If this breakpoint has
13442 target-side commands but this stub doesn't support Z0 packets,
13443 throw NOT_SUPPORTED_ERROR error.
13444 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13445 * target.h (target_insert_breakpoint): Extend comment.
13446 (target_insert_hw_breakpoint): Add comment.
13448 2014-01-08 Pedro Alves <palves@redhat.com>
13450 * remote.c (remote_add_thread): Add threads silently if starting
13452 (remote_notice_new_inferior): If in all-stop, and starting up,
13453 don't call notice_new_inferior.
13454 (get_current_thread): New function, factored out from ...
13455 (add_current_inferior_and_thread): ... this. Adjust.
13456 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13457 found any thread, then select the remote's current thread as GDB's
13458 current thread too.
13460 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13462 * NEWS: Create a new section for the next release branch.
13463 Rename the section of the current branch, now that it has
13466 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13468 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13469 * version.in: Bump version to 7.7.50.DATE-cvs.
13471 2014-01-08 Yao Qi <yao@codesourcery.com>
13473 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13474 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13475 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13477 2014-01-08 Yao Qi <yao@codesourcery.com>
13479 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13480 return value of bfd_get_filename to symbol_file_add_from_bfd.
13482 2014-01-08 Pierre Muller <muller@sourceware.org>
13485 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13486 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13487 to prim_record_mininal_symbol_and_info.
13488 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13489 in call to prim_record_minimal_symbol_and_info.
13490 (read_pe_exported_syms): Set index field of section_data.
13492 2014-01-07 Andrew Pinski <apinski@cavium.com>
13494 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13495 * features/aarch64.c: Regenerate.
13497 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13499 * target.c (return_null): Define.
13500 (update_current_target): Use it instead of return_zero for
13501 functions that return a pointer.
13503 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13505 * source.c (add_path): Fix check for duplicated paths in the previously
13508 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13510 * ada-lang.c: Remove duplicated include statements.
13511 * alphabsd-nat.c: Ditto.
13512 * amd64-darwin-tdep.c: Ditto.
13513 * amd64fbsd-nat.c: Ditto.
13514 * auto-load.c: Ditto.
13516 * breakpoint.c: Ditto.
13517 * dbxread.c: Ditto.
13518 * fork-child.c: Ditto.
13519 * gdb_usleep.c: Ditto.
13520 * i386-darwin-tdep.c: Ditto.
13521 * i386fbsd-nat.c: Ditto.
13523 * inferior.c: Ditto.
13524 * jv-lang.c: Ditto.
13525 * linux-nat.c: Ditto.
13526 * linux-tdep.c: Ditto.
13527 * m68kbsd-nat.c: Ditto.
13528 * m68klinux-nat.c: Ditto.
13529 * microblaze-tdep.c: Ditto.
13530 * mips-linux-tdep.c: Ditto.
13531 * mn10300-tdep.c: Ditto.
13532 * nto-tdep.c: Ditto.
13533 * opencl-lang.c: Ditto.
13535 * printcmd.c: Ditto.
13536 * regcache.c: Ditto.
13537 * remote-m32r-sdi.c: Ditto.
13539 * symfile.c: Ditto.
13541 * tilegx-linux-nat.c: Ditto.
13542 * tilegx-tdep.c: Ditto.
13543 * tracepoint.c: Ditto.
13545 * vaxbsd-nat.c: Ditto.
13546 * windows-nat.c: Ditto.
13547 * xtensa-tdep.c: Ditto.
13549 2014-01-07 Yao Qi <yao@codesourcery.com>
13551 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13553 2014-01-07 Yao Qi <yao@codesourcery.com>
13554 Joel Brobecker <brobecker@adacore.com>
13556 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13557 (pdc_write_regs): Likewise.
13558 (fetch_regs_kernel_thread): Likewise.
13559 (store_regs_kernel_thread): Likewise.
13561 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13563 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13564 tagged type objects to their actual type.
13566 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13568 * ada-valprint.c (print_field_values): Add "language" parameter.
13569 Update calls to print_field_values and print_variant_part.
13570 Pass new parameter "language" in call to val_print instead
13571 of "current_language". Replace call to ada_val_print by call
13573 (print_variant_part): Add "language" parameter.
13574 (ada_val_print_struct_union): Update call to print_field_values.
13576 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13578 * ada-valprint.c (ui_memcpy): Delete.
13579 (ada_print_floating): Update documentation. Add empty line
13580 between between function documentation and implementation.
13581 Delete variable "buffer". Use ui_file_xstrdup in place of
13582 ui_file_put. Minor adjustments following this change.
13584 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13586 * ada-valprint.c (ada_val_print_string): New function,
13587 extracted from ada_val_print_array.
13588 (ada_val_print_array): Replace extracted code by call
13589 to ada_val_print_string followed by a return. Move
13590 "else" branch to the function's top block.
13592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13594 * ada-valprint.c (ada_val_print_array): Move implementation
13595 down. Rename parameter "offset" and "val" into "offset_aligned"
13596 and "original_value" respectively. Add parameter "offset".
13598 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13600 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13601 re-organizing the code. Change the "???" message printed
13602 when target type is a TYPE_CODE_UNDEF into
13603 "<ref to undefined type>".
13605 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13607 * ada-valprint.c (print_record): Delete, implementation inlined...
13608 (ada_val_print_struct_union): ... here. Remove call to
13609 ada_check_typedef in inlined implementation.
13611 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13613 * ada-valprint.c (ada_val_print_gnat_array): New function,
13614 extracted from ada_val_print_1;
13615 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13616 (ada_val_print_flt, ada_val_print_struct_union)
13617 (ada_val_print_ref): Likewise.
13618 (ada_val_print_1): Delete variables i and elttype.
13619 Replace extracted-out code by call to corresponding
13622 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13624 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13626 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13628 * ada-valprint.c (ada_val_print_1): Replace calls to
13629 ada_val_print_1 by calls to val_print.
13631 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13633 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13634 Update calls to self accordingly. Replace calls to c_val_print
13635 by calls to val_print.
13637 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13639 * ada-valprint.c (print_record): Delete declaration.
13640 (adjust_type_signedness, ada_val_print_1): Likewise.
13641 (ada_val_print): Move function implementation down.
13642 (print_variant_part, print_field_values, print_record):
13643 Move function implementation up.
13645 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13647 * python/py-type.c (typy_get_name): New function.
13648 (type_object_getset): Add entry for attribute "name".
13649 * NEWS: Add entry mentioning this new attribute.
13651 2014-01-07 Yao Qi <yao@codesourcery.com>
13653 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13656 2014-01-07 Yao Qi <yao@codesourcery.com>
13658 * gnu-nat.c (info_port_rights): Add qualifier const to
13661 2014-01-07 Yao Qi <yao@codesourcery.com>
13663 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13665 2014-01-07 Yao Qi <yao@codesourcery.com>
13667 * gnu-nat.c (make_inf) Update declaration.
13668 (make_inf): Make it static.
13669 (inf_set_traced): Likewise.
13670 (inf_port_to_thread, inf_task_died_status): Likewise.
13672 2014-01-07 Yao Qi <yao@codesourcery.com>
13674 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13676 2014-01-07 Yao Qi <yao@codesourcery.com>
13678 * gnu-nat.c (_initialize_gnu_nat): Declare.
13680 2014-01-07 Yao Qi <yao@codesourcery.com>
13682 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13684 (struct gdbarch_info) <byte_order>: Change type to
13686 <byte_order_for_code>: Likewise.
13687 * gdbarch.c, gdbarch.h: Regenerated.
13689 2014-01-06 Sasha Smundak <asmundak@google.com>
13691 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13693 2014-01-06 Tom Tromey <tromey@redhat.com>
13695 * doublest.c (convert_doublest_to_floatformat): Use const, not
13697 * somread.c (som_symtab_read): Likewise.
13699 2014-01-07 Hui Zhu <hui@codesourcery.com>
13701 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13702 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13703 (gdb_bfd_fopen): Ditto.
13704 (gdb_bfd_openr): Ditto.
13705 (gdb_bfd_openw): Ditto.
13706 (gdb_bfd_openr_iovec): Ditto.
13707 (gdb_bfd_fdopenr): Ditto.
13708 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13709 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13711 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13713 * symfile-mem.c (symbol_file_add_from_memory): Removed
13714 gdb_bfd_stash_filename.
13716 2014-01-03 Doug Evans <dje@google.com>
13718 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13721 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13723 Update year range in copyright notice of all files.
13725 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13727 * top.c (print_gdb_version): Set copyright year to 2014.
13729 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13731 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13733 For older changes see ChangeLog-2013.
13739 version-control: never