1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
4 (am33_iterate_over_regset_sections): New.
5 (am33_linux_init_osabi): Adjust gdbarch initialization.
7 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
9 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
10 (mips_linux_iterate_over_regset_sections): New.
11 (mips_linux_init_abi): Adjust gdbarch initialization.
12 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
13 (mips64obsd_iterate_over_regset_sections): New.
14 (mips64obsd_init_abi): Adjust.
15 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
16 (mipsnbsd_iterate_over_regset_sections): New.
17 (mipsnbsd_init_abi): Adjust.
19 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
21 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
22 (m88k_iterate_over_regset_sections): New.
23 (m88k_gdbarch_init): Adjust gdbarch initialization.
25 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
27 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
28 (ia64_linux_iterate_over_regset_sections): New.
29 (ia64_linux_init_abi): Adjust gdbarch initialization.
31 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
33 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
34 (m68kbsd_iterate_over_regset_sections): New.
35 (m68kbsd_init_abi): Adjust gdbarch initialization.
36 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
37 (m68k_linux_iterate_over_regset_sections): New.
38 (m68k_linux_init_abi): Adjust gdbarch initialization.
40 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
42 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
43 (m32r_linux_regset_from_core_section): Remove.
44 (m32r_linux_iterate_over_regset_sections): New.
45 (m32r_linux_init_abi): Adjust gdbarch initialization.
47 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
49 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
50 (amd64obsd_iterate_over_regset_sections): New.
51 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
52 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
54 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
55 regset_from_core_section initialization.
56 * i386-tdep.c (i386_regset_from_core_section): Remove.
57 (i386_iterate_over_regset_sections): New.
58 (i386_gdbarch_init): Adjust gdbarch initialization.
59 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
60 (i386_iterate_over_regset_sections): New prototype.
61 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
63 (i386obsd_aout_iterate_over_regset_sections): New.
64 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
65 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
67 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
68 (amd64fbsd_init_abi): Call fbsd_init_abi.
69 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
70 (i386fbsd4_init_abi): Call fbsd_init_abi.
71 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
72 target method 'make_corefile_notes'.
73 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
75 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
77 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
78 (hppa_hpux_iterate_over_regset_sections): New.
79 (hppa_hpux_init_abi): Adjust gdbarch initialization.
80 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
81 (hppa_linux_iterate_over_regset_sections): New.
82 (hppa_linux_init_abi): Adjust.
83 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
84 (hppanbsd_iterate_over_regset_sections): New.
85 (hppanbsd_init_abi): Adjust.
86 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
87 (hppaobsd_iterate_over_regset_sections): New.
88 (hppaobsd_init_abi): Adjust.
90 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
92 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
93 (frv_linux_iterate_over_regset_sections): New.
94 (frv_linux_init_abi): Adjust gdbarch initialization.
96 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
98 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
99 (armbsd_iterate_over_regset_sections): New prototype.
100 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
101 (armbsd_iterate_over_regset_sections): New.
102 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
107 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
108 (alpha_linux_iterate_over_regset_sections): New.
109 (alpha_linux_init_abi): Adjust gdbarch initialization.
110 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
112 (alphanbsd_iterate_over_regset_sections): New prototype.
114 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
116 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
118 (aarch64_linux_iterate_over_regset_sections): New.
119 (aarch64_linux_init_abi): Adjust gdbarch initialization.
121 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
123 * fbsd-tdep.c: New file.
124 * fbsd-tdep.h: New file.
125 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
126 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
127 (ALLDEPFILES): Add fbsd-tdep.c.
129 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
131 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
133 * gdbarch.h: Regenerate.
134 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
136 (get_core_register_section): Add parameter 'regset' and use it, if
137 set. Add parameter 'min_size' and verify the bfd section size
139 (get_core_registers_cb): Add parameter 'regset' and pass it to
140 get_core_register section. For the "standard" register sections
141 ".reg" and ".reg2", set an appropriate default for human_name.
142 (get_core_registers): Don't abort when the gdbarch has an iterator
143 but no regset_from_core_section. Add NULL/0 for parameters
144 'regset'/'min_size' in calls to get_core_register_section.
145 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
146 'regset' and use it instead of calling the
147 regset_from_core_section gdbarch method.
148 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
149 * i386-tdep.c (i386_supply_xstateregset)
150 (i386_collect_xstateregset, i386_xstateregset): Moved to
152 (i386_regset_from_core_section): Drop handling for .reg-xfp and
154 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
155 core file support only if the regset iterator hasn't been set.
156 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
157 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
158 Moved from i386-tdep.c and renamed to *_linux*.
159 (i386_linux_iterate_over_regset_sections): Add regset parameter to
160 each callback invocation. Allow any .reg-xstate size when reading
162 * amd64-tdep.c (amd64_supply_xstateregset)
163 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
165 (amd64_regset_from_core_section): Remove.
166 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
167 install an amd64-specific regset_from_core_section gdbarch method.
168 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
169 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
170 Moved from amd64-tdep.c and renamed to *_linux*.
171 (amd64_linux_iterate_over_regset_sections): Add regset parameter
172 to each callback invocation. Allow any .reg-xstate size when
173 reading from a core file.
174 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
175 (arm_linux_iterate_over_regset_sections): Add regset parameter to
176 each callback invocation.
177 (arm_linux_init_abi): No longer set the regset_from_core_section
179 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
180 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
181 each callback invocation.
182 (ppc_linux_init_abi): No longer set the regset_from_core_section
184 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
185 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
186 (s390_regset_from_core_section): Remove.
187 (s390_iterate_over_regset_sections): Add regset parameter to each
189 (s390_gdbarch_init): No longer set the regset_from_core_section
190 gdbarch method. Drop initialization of deleted tdep fields.
192 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
194 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
195 (amd64_linux_iterate_over_regset_sections): New.
196 (amd64_linux_init_abi_common): Don't install the regset section
197 list, but the new iterator in gdbarch.
198 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
199 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
200 (arm_linux_iterate_over_regset_sections): ...here. New function.
201 (arm_linux_init_abi): Set iterator instead of section list.
202 * corelow.c (get_core_registers_cb): New function, logic moved
204 (get_core_registers): ...loop body here. Use new iterator method
205 instead of walking through the regset section list.
206 * gdbarch.sh: Remove 'core_regset_sections'. New method
207 'iterate_over_regset_sections'. New typedef
208 'iterate_over_regset_sections_cb'.
209 * gdbarch.c: Regenerate.
210 * gdbarch.h: Likewise.
211 * i386-linux-tdep.c (i386_linux_regset_sections)
212 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
214 (i386_linux_iterate_over_regset_sections): New.
215 (i386_linux_init_abi): Don't choose a regset section list, but
216 install new iterator in gdbarch.
217 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
218 (linux_collect_regset_section_cb): New function, logic moved
220 (linux_collect_thread_registers): ...loop body here. Use iterator
221 method instead of walking through list.
222 (linux_make_corefile_notes_1): Check for presence of iterator
223 method instead of regset section list.
224 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
225 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
226 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
227 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
228 (ppc_linux_iterate_over_regset_sections): ...here. New function.
229 (ppc_linux_init_abi): Don't choose from above regset section
230 lists, but install new iterator in gdbarch.
231 * regset.h (struct core_regset_section): Remove.
232 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
233 have_linux_v1, have_linux_v2, and have_tdb.
234 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
235 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
236 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
237 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
238 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
239 (s390_iterate_over_regset_sections): ...here. New function. Use
241 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
242 regset section lists, but install new iterator.
244 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
246 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
248 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
250 * progspace.c (print_program_space): Don't prune program spaces
251 before printing them.
253 2014-09-25 Pedro Alves <palves@redhat.com>
255 * infrun.c (user_visible_resume_ptid): Don't check
256 singlestep_breakpoints_inserted_p.
258 2014-09-25 Pedro Alves <palves@redhat.com>
260 * breakpoint.c (should_be_inserted): Add debug output.
262 2014-09-25 Pedro Alves <palves@redhat.com>
264 * infrun.c (stepping_past_instruction_at)
265 (clear_exit_convenience_vars): Point at infrun.h instead of
267 (handle_signal_stop): Fix typo.
269 2014-09-24 Yao Qi <yao@codesourcery.com>
271 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
274 2014-09-22 Gary Benson <gbenson@redhat.com>
276 * target.c (target_stop): Updated comment.
278 2014-09-22 Gary Benson <gbenson@redhat.com>
280 * target/target.h (target_stop_ptid): Renamed as...
281 (target_stop_and_wait): New function. Updated comment.
283 (target_continue_ptid): Renamed as...
284 (target_continue_no_signal): New function. Updated comment.
287 2014-09-22 Pedro Alves <palves@redhat.com>
289 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
291 * breakpoint.c (enum ugll_insert_mode): New enum.
292 (always_inserted_mode): Now a plain boolean.
293 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
294 (breakpoints_always_inserted_mode): Delete.
295 (breakpoints_should_be_inserted_now): New function.
296 (insert_breakpoints): Pass UGLL_INSERT to
297 update_global_location_list instead of calling
298 insert_breakpoint_locations manually.
299 (create_solib_event_breakpoint_1): New, factored out from ...
300 (create_solib_event_breakpoint): ... this.
301 (create_and_insert_solib_event_breakpoint): Use
302 create_solib_event_breakpoint_1 instead of calling
303 insert_breakpoint_locations manually.
304 (update_global_location_list): Change parameter type from boolean
305 to enum ugll_insert_mode. All callers adjusted. Adjust to use
306 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
307 (update_global_location_list_nothrow): Change parameter type from
308 boolean to enum ugll_insert_mode.
309 (_initialize_breakpoint): "breakpoint always-inserted" option is
310 now a boolean command. Update help text.
311 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
312 (breakpoints_should_be_inserted_now): New declaration.
313 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
314 Remove breakpoints_always_inserted_mode check.
315 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
316 * remote.c (remote_start_remote): Likewise.
318 2014-09-22 Pedro Alves <palves@redhat.com>
320 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
321 (insert_breakpoints): Don't call insert_breakpoint_locations here.
322 Instead, pass UGLL_INSERT to update_global_location_list.
323 (update_global_location_list): Change parameter type from boolean
324 to enum ugll_insert_mode. All callers adjusted. Adjust to use
325 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
326 (create_solib_event_breakpoint_1): New, factored out from ...
327 (create_solib_event_breakpoint): ... this.
328 (create_and_insert_solib_event_breakpoint): Use
329 create_solib_event_breakpoint_1 instead of calling
330 insert_breakpoint_locations manually.
331 (update_global_location_list): Handle UGLL_INSERT.
333 2014-09-22 Pedro Alves <palves@redhat.com>
335 * breakpoint.c (enum ugll_insert_mode): New enum.
336 (update_global_location_list)
337 (update_global_location_list_nothrow): Change parameter type from
338 boolean to enum ugll_insert_mode. All callers adjusted.
340 2014-09-19 Joel Brobecker <brobecker@adacore.com>
342 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
343 SystemTap support in GDB.
345 2014-09-19 Don Breazeal <donb@codesourcery.com>
347 * linux-nat.c (linux_handle_extended_wait): Call
348 linux_ptrace_get_extended_event.
349 (wait_lwp): Call linux_is_extended_waitstatus.
350 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
351 and linux_is_extended_waitstatus.
352 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
353 linux_ptrace_get_extended_event.
354 (linux_ptrace_get_extended_event): New function.
355 (linux_is_extended_waitstatus): New function.
356 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
357 (linux_is_extended_waitstatus): New declarations.
359 2014-09-19 Yao Qi <yao@codesourcery.com>
361 * dwarf2read.c (dwarf_decode_lines): Update declaration.
362 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
363 comments. Callers update.
364 (dwarf_decode_lines): Likewise.
365 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
366 comments. Skip the line table if 'lowpc' is greater than
367 'address'. Don't check
368 dwarf2_per_objfile->has_section_at_zero.
370 2014-09-18 Doug Evans <dje@google.com>
372 * NEWS: Mention new "producer" attribute of gdb.Symtab.
373 * python/py-symtab.c (stpy_get_producer): New function.
374 (symtab_object_getset): Add "producer" attribute.
376 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
379 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
380 (do_captured_read_memory_integer): Remove.
381 (safe_read_memory_integer): Use target_read_memory directly instead
382 of catching errors in do_captured_read_memory_integer.
384 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
386 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
389 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
391 * objc-lang.c (find_implementation_from_class): Remove dead code.
393 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
396 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
397 "fprintf_unfiltered (gdb_stdlog...)".
399 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
402 * breakpoint.h (struct watchpoint): New fields val_bitpos and
404 * breakpoint.c (watch_command_1): Use these fields to retain
405 bitfield information.
406 (extract_bitfield_from_watchpoint_value): New function.
407 (watchpoint_check): Use it.
408 (update_watchpoint): Use it. Optimize the address and length of a
409 HW watchpoint pointing to a bitfield.
410 * value.h (unpack_value_bitfield): New prototype.
411 * value.c (unpack_value_bitfield): Make extern.
413 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
415 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
417 * gnu-nat.c (inf_threads): New function.
418 * gnu-nat.h (inf_threads_ftype): New typedef.
419 (inf_threads): New declaration.
420 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
421 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
422 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
423 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
424 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
425 (i386_gnu_dr_get_control): New functions.
426 (reg_addr): New structure.
427 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
428 i386 debugging register hooks.
429 * NEWS: Mention this.
431 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
433 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
434 vector data transfer instructions.
435 (arm_record_coproc_data_proc): Updated.
437 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
439 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
440 arm_record_exreg_ld_st_insn.
441 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
444 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
446 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
447 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
448 processing instructions.
450 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
452 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
453 for advance SIMD struct ld/st insn.
454 (thumb2_record_decode_insn_handler): Replace stub handler with
455 thumb2_record_asimd_struct_ld_st.
457 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
459 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
460 for asimd, vfp and coprocessor insns.
461 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
462 and coprocessor insns.
463 (thumb2_record_coproc_insn): New function.
464 (thumb2_record_decode_insn_handler): Update coprocessor insns record
466 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
469 2014-09-13 Doug Evans <xdje42@gmail.com>
471 * NEWS: Mention new "queue-signal" command.
472 * infcmd.c (queue_signal_command): New function.
473 (_initialize_infcmd): Add new queue-signal command.
475 2014-09-13 Doug Evans <xdje42@gmail.com>
477 * linux-nat.c (wait_lwp): Add debugging printf.
478 (linux_nat_wait_1): Ditto.
480 2014-09-12 Pedro Alves <palves@redhat.com>
482 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
483 (create_and_insert_solib_event_breakpoint): New functions.
484 * breakpoint.h (create_and_insert_solib_event_breakpoint)
485 (remove_solib_event_breakpoints_at_next_stop): New declarations.
486 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
487 (remove_dbx_link_breakpoint): Delete function.
488 (insert_dbx_link_bpt_in_file): Use
489 create_and_insert_solib_event_breakpoint instead of
490 deprecated_insert_raw_breakpoint.
491 (procfs_wait): Don't check whether we hit __dbx_link here.
492 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
494 * solib-irix.c (base_breakpoint): Delete global.
495 (disable_break): Delete function.
496 (enable_break): Use create_solib_event_breakpoint
497 instead of deprecated_insert_raw_breakpoint.
498 (irix_solib_handle_event): New function.
499 (irix_solib_create_inferior_hook): Don't run the target or disable
500 the mapping-complete breakpoint here.
501 (_initialize_irix_solib): Install irix_solib_handle_event as
502 so_ops->handle_event hook.
504 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
505 Ulrich Weigand <uweigand@de.ibm.com>
508 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
509 instead of read_memory_unsigned_integer.
511 2014-09-12 Gary Benson <gbenson@redhat.com>
513 * nat/linux-waitpid.c: Include common-defs.h.
514 [GDBSERVER]: Add FIXME comment.
515 [!GDBSERVER]: Don't include defs.h or signal.h.
516 (linux_debug) [!GDBSERVER]: Remove empty block.
518 2014-09-12 Gary Benson <gbenson@redhat.com>
520 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
521 Don't include defs.h or server.h.
523 2014-09-12 Gary Benson <gbenson@redhat.com>
525 * nat/linux-btrace.c: Include common-defs.h.
526 Don't include defs.h, server.h or gdbthread.h.
527 * nat/linux-btrace.h (struct target_ops): New forward declaration.
529 2014-09-12 Gary Benson <gbenson@redhat.com>
531 * common/agent.c: Include common-defs.h.
532 Don't include defs.h or server.h.
533 * common/buffer.c: Likewise.
534 * common/common-debug.c: Likewise.
535 * common/common-utils.c: Likewise.
536 * common/errors.c: Likewise.
537 * common/filestuff.c: Likewise.
538 * common/format.c: Likewise.
539 * common/gdb_vecs.c: Likewise.
540 * common/print-utils.c: Likewise.
541 * common/ptid.c: Likewise.
542 * common/rsp-low.c: Likewise.
543 * common/signals.c: Likewise.
544 * common/vec.c: Likewise.
545 * common/xml-utils.c: Likewise.
546 * nat/linux-osdata.c: Likewise.
547 * nat/linux-procfs.c: Likewise.
548 * nat/linux-ptrace.c: Likewise.
549 * nat/mips-linux-watch.c: Likewise.
550 * target/waitstatus.c: Likewise.
552 2014-09-12 Tom Tromey <tromey@redhat.com>
553 Gary Benson <gbenson@redhat.com>
555 * common/common-regcache.h: New file.
556 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
557 * regcache.h: Include common-regcache.h.
558 (regcache_read_pc): Don't declare.
559 * regcache.c (get_thread_regcache_for_ptid): New function.
560 * nat/linux-btrace.c: Don't include regcache.h.
561 Include common-regcache.h.
562 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
564 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
566 * regcache.h (struct regset): Declare.
568 2014-09-11 Pedro Alves <palves@redhat.com>
571 * main.c: Include "infrun.h".
572 (catch_command_errors, catch_command_errors_const): Wait for the
573 foreground command to complete.
574 * top.c (maybe_wait_sync_command_done): New function, factored out
576 (maybe_wait_sync_command_done): ... here.
577 * top.h (maybe_wait_sync_command_done): New declaration.
579 2014-09-11 Tom Tromey <tromey@redhat.com>
580 Gary Benson <gbenson@redhat.com>
582 * common/symbol.h: New file.
583 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
584 * minsyms.c (find_minimal_symbol_address): New function.
585 * common/agent.c: Include common/symbol.h.
586 [!GDBSERVER]: Don't include objfiles.h.
587 (agent_look_up_symbols): Use find_minimal_symbol_address.
589 2014-09-11 Gary Benson <gbenson@redhat.com>
591 * target/target.h (target_stop_ptid, target_continue_ptid):
593 * target.c (target_stop_ptid, target_continue_ptid): New
595 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
596 (agent_run_command): Always use target_stop_ptid and
597 target_continue_ptid.
599 2014-09-11 Tom Tromey <tromey@redhat.com>
600 Gary Benson <gbenson@redhat.com>
602 * target/target.h: New file.
603 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
604 * target.h: Include target/target.h.
605 (target_read_memory, target_write_memory): Don't declare.
606 * target.c (target_read_uint32): New function.
607 * common/agent.c: Include target/target.h.
608 [!GDBSERVER]: Don't include target.h.
609 (helper_thread_id): Type changed to uint32_t.
610 (agent_get_helper_thread_id): Use target_read_uint32.
611 (agent_run_command): Always use target_read_memory and
613 (agent_capability): Type changed to uint32_t.
614 (agent_capability_check): Use target_read_uint32.
616 2014-09-11 Gary Benson <gbenson@redhat.com>
618 * common/common-debug.h (show_debug_regs): Declare.
619 * common/common-debug.c (show_debug_regs): Define.
620 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
621 all uses with show_debug_regs. Replace all uses that considered
622 debug_hw_points as a multi-value integer with straight boolean
624 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
625 with show_debug_regs.
626 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
627 all uses with show_debug_regs.
628 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
629 uses with show_debug_regs.
631 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
633 * findvar.c (address_from_register): Handle targets requiring
634 a special conversion routine even for plain pointer types.
636 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
638 * rs6000-nat.c (exec_one_dummy_insn): Remove.
639 (store_register): Do not call exec_one_dummy_insn.
641 2014-09-10 Joel Brobecker <brobecker@adacore.com>
643 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
644 dereference it first. Use value_enclosing_type instead of
646 (ada_array_length): Likewise.
648 2014-09-10 Joel Brobecker <brobecker@adacore.com>
650 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
651 Adjust function implementation and documentation accordingly.
652 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
653 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
654 Update call to ada_value_ptr_subscript.
656 2014-09-10 Joel Brobecker <brobecker@adacore.com>
658 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
659 instead of VAL's type.
661 2014-09-10 Joel Brobecker <brobecker@adacore.com>
663 * amd64-linux-nat.c: Add <sys/uio.h> #include.
665 2014-09-09 Doug Evans <xdje42@gmail.com>
668 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
669 last parameter to pkg-config, not first.
670 * configure.ac: Pass --with-guile provided pkg-config path to
671 GDB_GUILE_PROGRAM_NAMES.
672 * configure: Regenerate.
674 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
676 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
679 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
681 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
682 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
683 the list of sections determining GDB_OSABI_IRIX.
685 2014-09-09 James Hogan <james.hogan@imgtec.com>
687 * MAINTAINERS (Write After Approval): Add "James Hogan".
689 2014-09-09 James Hogan <james.hogan@imgtec.com>
691 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
693 2014-09-09 Joel Brobecker <brobecker@adacore.com>
695 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
697 2014-09-08 Doug Evans <xdje42@gmail.com>
700 * guile.c: #include <signal.h>.
701 (_initialize_guile): Block SIGCHLD while initializing Guile.
703 Replaces the following, which is reverted.
705 2014-07-26 Doug Evans <xdje42@gmail.com>
708 * configure.ac: Add check for header gc/gc.h.
709 Add check for function setenv.
710 * configure: Regenerate.
711 * config.in: Regenerate.
712 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
714 2014-09-08 Doug Evans <xdje42@gmail.com>
716 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
717 with named constant. Fix style of pointer comparison.
718 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
720 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
723 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
724 decide whether we display the command on "show user".
725 * cli/cli-script.c (show_user_1): Only verify cmdlines after
726 printing command name.
727 * cli/cli-decode.h (cli_user_command_p): Declare new function.
728 * cli/cli-decode.c (cli_user_command_p): Create helper function
729 to verify whether cmd_list_element is a user-defined command.
731 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
734 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
735 Fix goto out of TRY_CATCH.
737 2014-09-06 Doug Evans <xdje42@gmail.com>
738 Tom Tromey <tromey@redhat.com>
741 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
742 $_any_caller_matches.
743 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
744 * python/lib/gdb/function/caller_is.py: New file.
746 2014-09-06 Doug Evans <xdje42@gmail.com>
748 * infcmd.c (program_info): Fix typo.
750 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
753 * stap-probe.c (stap_parse_single_operand): Delete unused variable
754 'number'. New variable 'has_digit'. Rewrite code to deal with
755 subexpressions on SDT probes.
757 2014-09-04 Pedro Alves <palves@redhat.com>
759 * c-exp.y (parse_number): Skip handling base-switching prefixes if
760 the input is only one character long.
762 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
765 * f-valprint.c (f_val_print): Specify the correct print option to
766 use when printing integer values.
768 2014-09-04 Gary Benson <gbenson@redhat.com>
770 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
771 Remove code to cope with LWPs wrapped as PIDs.
772 Add assertions to ensure no wrapped LWPs are passed.
774 2014-09-04 Pedro Alves <palves@redhat.com>
776 * value.c (value_ranges_copy_adjusted): New function, factored out
778 (value_contents_copy_raw): ... here.
779 (unpack_value_bits_as_long_1): Rename back to ...
780 (unpack_bits_as_long): ... this. Remove 'original_value' and
781 'result' parameters. Change return type to LONGEST.
782 (unpack_value_bits_as_long): Delete.
783 (unpack_value_field_as_long_1): Delete.
784 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
785 (unpack_value_bitfield): New function.
786 (value_field_bitfield): Reimplement using unpack_value_bitfield.
787 (value_fetch_lazy): Use unpack_value_bitfield.
788 * value.h (unpack_value_bits_as_long): Delete declaration.
790 2014-09-03 Sasha Smundak <asmundak@google.com>
792 * python/py-frame.c (frapy_read_register): New function.
794 2014-09-03 James Hogan <james.hogan@imgtec.com>
796 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
797 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
799 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
802 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
804 (add_cmd): Set "completer_handle_brkchars" to NULL.
805 * cli/cli-decode.h (struct cmd_list_element)
806 <completer_handle_brkchars>: New field.
807 * command.h (completer_ftype_void): New typedef.
808 (set_cmd_completer_handle_brkchars): New prototype.
809 * completer.c (set_gdb_completion_word_break_characters): New
811 (complete_line_internal): Call "completer_handle_brkchars"
812 callback from command.
813 * completer.h: Include "command.h".
814 (set_gdb_completion_word_break_characters): New prototype.
815 * python/py-cmd.c (cmdpy_completer_helper): New function.
816 (cmdpy_completer_handle_brkchars): New function.
817 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
818 (cmdpy_init): Set completer_handle_brkchars to
819 cmdpy_completer_handle_brkchars.
821 2014-09-03 Gary Benson <gbenson@redhat.com>
823 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
824 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
825 Loop conditions changed to equivalent form.
826 (struct x86_debug_reg_state): Updated dr_ref_count comment.
827 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
828 ALL_DEBUG_ADDRESS_REGISTERS.
830 2014-09-03 Joel Brobecker <brobecker@adacore.com>
832 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
835 2014-09-02 Doug Evans <dje@google.com>
837 * typeprint.c (find_global_typedef): Fix comment.
839 2014-09-02 Gary Benson <gbenson@redhat.com>
841 * i386-nat.h: Renamed as...
842 * x86-nat.h: New file. All type, function and variable name
843 prefixes changed from "i386_" to "x86_". All references updated.
844 * i386-nat.c: Renamed as...
845 * x86-nat.c: New file. All type, function and variable name
846 prefixes changed from "i386_" to "x86_". All references updated.
847 * common/i386-xstate.h: Renamed as...
848 * common/x86-xstate.h: New file. All type, function and variable
849 name prefixes changed from "i386_" to "x86_". All references
851 * nat/i386-cpuid.h: Renamed as...
852 * nat/x86-cpuid.h: New file. All type, function and variable name
853 prefixes changed from "i386_" to "x86_". All references updated.
854 * nat/i386-gcc-cpuid.h: Renamed as...
855 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
856 name prefixes changed from "i386_" to "x86_". All references
858 * nat/i386-dregs.h: Renamed as...
859 * nat/x86-dregs.h: New file. All type, function and variable name
860 prefixes changed from "i386_" to "x86_". All references updated.
861 * nat/i386-dregs.c: Renamed as...
862 * nat/x86-dregs.c: New file. All type, function and variable name
863 prefixes changed from "i386_" to "x86_". All references updated.
865 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
867 * varobj.c (_initialize_varobj): Move to the end of file.
869 2014-08-29 Gary Benson <gbenson@redhat.com>
871 * common/common-exceptions.h: New file.
872 * common/common-exceptions.c: Likewise.
873 * Makefile.in (SFILES): Add common/common-exceptions.c.
874 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
875 (COMMON_OBS): Add common-exceptions.o.
876 (common-exceptions.o): New rule.
877 * exceptions.h (common-exceptions.h): Include.
878 (gdb_setjmp.h): Do not include.
879 (return_reason): Moved to common-exceptions.h.
880 (enum return_reason): Likewise.
881 (RETURN_MASK): Likewise.
882 (typedef return_mask): Likewise.
883 (enum errors): Likewise.
884 (struct gdb_exception): Likewise.
885 (exceptions_state_mc_init): Likewise.
886 (exceptions_state_mc_action_iter): Likewise.
887 (exceptions_state_mc_action_iter_1): Likewise.
888 (TRY_CATCH): Likewise.
889 (throw_exception): Likewise.
890 (throw_verror): Likewise.
891 (throw_vquit): Likewise.
892 (throw_error): Likewise.
893 (throw_quit): Likewise.
894 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
895 (enum catcher_action): Likewise.
896 (struct catcher): Likewise.
897 (current_catcher): Likewise.
898 (catcher_list_size): Likewise.
899 (exceptions_state_mc_init): Likewise.
900 (catcher_pop): Likewise.
901 (exceptions_state_mc): Likewise.
902 (exceptions_state_mc_action_iter): Likewise.
903 (exceptions_state_mc_action_iter_1): Likewise.
904 (throw_exception): Likewise.
905 (exception_messages): Likewise.
906 (exception_messages_size): Likewise.
907 (throw_it): Likewise.
908 (throw_verror): Likewise.
909 (throw_vquit): Likewise.
910 (throw_error): Likewise.
911 (throw_quit): Likewise.
912 (prepare_to_throw_exception): New function.
914 2014-08-29 Gary Benson <gbenson@redhat.com>
916 * common/gdb_setjmp.h: New file.
917 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
918 * configure.ac: Move sigsetjmp check...
919 * common/common.m4: ...here.
920 * configure: Regenerate.
921 * cp-support.c (SIGJMP_BUF): Delete.
922 (SIGSETJMP): Likewise.
923 (SIGLONGJMP): Likewise.
924 * exceptions.h (gdb_setjmp.h): Include.
925 (setjmp.h): Do not include.
926 (EXCEPTIONS_SIGJMP_BUF): Delete.
927 (EXCEPTIONS_SIGSETJMP): Likewise.
928 (EXCEPTIONS_SIGLONGJMP): Likewise.
929 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
931 * exceptions.c: Likewise.
933 2014-08-29 Gary Benson <gbenson@redhat.com>
935 * cleanups.h: Moved to...
936 * common/cleanups.h: New file.
937 * cleanups.c: Moved to...
938 * common/cleanups.c: New file. Include common-defs.h and
939 cleanups.h. Do not include defs.h.
940 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
941 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
942 (cleanups.o): New rule.
944 2014-08-29 Gary Benson <gbenson@redhat.com>
946 * common/errors.h (internal_warning): New declaration.
947 (internal_vwarning): Likewise.
948 * common/errors.c (internal_warning): New function.
949 * utils.h (internal_warning): Don't declare.
950 (internal_vwarning): Likewise.
951 * utils.c (internal_warning): Removed.
953 2014-08-29 Gary Benson <gbenson@redhat.com>
955 * main.c (captured_main): Use warning during startup.
956 Prefix startup warning messages with command name.
958 2014-08-29 Gary Benson <gbenson@redhat.com>
960 * main.c (captured_main): Handle usage errors with error.
962 2014-08-29 Gary Benson <gbenson@redhat.com>
964 * go32-nat.c (go32_create_inferior): Replace a fprintf/
965 exit pair with a call to error. Wrap the message with _().
967 2014-08-29 Gary Benson <gbenson@redhat.com>
969 * main.c (captured_main): Replace a fprintf/exit
970 pair with a call to error. Wrap the message with _().
972 2014-08-29 Gary Benson <gbenson@redhat.com>
974 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
975 pairs with calls to error. Wrap the message with _().
977 2014-08-29 Gary Benson <gbenson@redhat.com>
979 * utils.c (vwarning): Protect calls to target_terminal_ours
982 2014-08-29 Gary Benson <gbenson@redhat.com>
984 * exceptions.c (print_flush): Protect calls to
985 target_terminal_ours and wrap_here.
987 2014-08-29 Gary Benson <gbenson@redhat.com>
989 * utils.h (filtered_printing_initialized): New declaration.
990 * utils.c (abort_with_message): New function.
991 (internal_vproblem): Use abort_with_message for first level
992 recursive internal problems, and if gdb_stderr is not set up.
993 Protect calls to target_terminal_ours, begin_line and query.
995 2014-08-28 Doug Evans <dje@google.com>
997 * symtab.c (in_prologue): Move definition to better spot.
998 (skip_prologue_using_sal): Ditto.
1000 2014-08-28 Doug Evans <dje@google.com>
1002 * symtab.c (find_function_start_sal): Move definition to better spot.
1004 2014-08-28 Yao Qi <yao@codesourcery.com>
1006 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1007 found_stack_adjust in forward scan. Remove condition check
1008 on found_stack_adjust which is always true. Indent the code.
1010 2014-08-28 Yao Qi <yao@codesourcery.com>
1012 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1013 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1014 (dwarf_decode_lines): Remove argument
1015 want_line_info. Remove condition check on want_line_info.
1018 2014-08-27 Doug Evans <dje@google.com>
1020 * dwarf2read.c (dwarf_record_line): Fix typo.
1022 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1024 * target.h (struct target_ops::to_terminal_save_ours): Remove
1026 (target_terminal_save_ours): Remove macro.
1027 * target-delegates.c: Regenerate.
1028 * inf-child.c (inf_child_target): Don't set the nonexistent
1029 field to_terminal_save_ours.
1030 * inferior.h (child_terminal_save_ours): Remove declaration.
1031 * terminal.h (gdb_save_tty_state): New declaration.
1032 * inflow.c (child_terminal_save_ours): Rename to ...
1033 (gdb_save_tty_state): ... this.
1034 * tui/tui.c: Include terminal.h.
1035 (tui_enable): Use gdb_save_tty_state instead of
1036 target_terminal_save_ours.
1037 (tui_disable): Likewise.
1039 2014-08-25 Doug Evans <dje@google.com>
1041 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1042 Pass NULL instead of 0 for context pointer.
1044 2014-08-25 Yao Qi <yao@codesourcery.com>
1046 * dwarf2read.c: Fix grammatical error.
1048 2014-08-24 Yao Qi <yao@codesourcery.com>
1050 * dwarf2read.c (scan_partial_symbols): Update comments.
1051 Rename argument 'need_pc' with 'set_addrmap'.
1052 (add_partial_namespace): Rename argument 'need_pc' with
1054 (add_partial_module): Likewise.
1055 (add_partial_subprogram): Likewise. Update comments.
1056 (dwarf2_name): Fix typo.
1058 2014-08-22 Doug Evans <dje@google.com>
1061 * dwarf2read.c (dwarf_record_line_p): New function.
1062 (dwarf_decode_lines_1): Ignore subsequent line number entries
1063 for the same line if any entry had a non-zero discriminator.
1065 2014-08-22 Doug Evans <dje@google.com>
1067 * buildsym.h (record_line_ftype): New typedef.
1068 (record_line): Use it.
1069 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1070 (dwarf_decode_lines_1): Call them.
1072 2014-08-22 Yao Qi <yao@codesourcery.com>
1074 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1075 (ctf_end): Remove code.
1077 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1079 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1080 (linux_make_corefile_notes): call update_thread_list, protected against
1083 2014-08-21 Pedro Alves <palves@redhat.com>
1085 * infcmd.c (attach_command): Remove comment.
1087 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1089 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1090 unsigned LONGEST to ULONGEST.
1092 2014-08-20 Pedro Alves <palves@redhat.com>
1094 * Makefile.in (check-read1): New rule.
1096 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1098 * value.c (value_from_contents_and_address): Strip resolved_type's
1099 typedef layers before checking its TYPE_DATA_LOCATION.
1101 2014-08-20 Pedro Alves <palves@redhat.com>
1103 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1105 2014-08-20 Yao Qi <yao@codesourcery.com>
1107 * amd64-tdep.c (amd64_classify): Add a blank line after the
1108 example. Move "*/" to a new line.
1109 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1110 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1111 * dwarf2read.c (psymtab_include_file_name): Likewise.
1113 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1114 Pedro Alves <palves@redhat.com>
1118 * ada-lang.c (coerce_unspec_val_to_type): Use
1119 value_contents_copy_raw.
1120 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1121 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1122 * cp-valprint.c (cp_print_value_fields): Let the common printing
1123 code handle optimized out values.
1124 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1125 * d-valprint.c (dynamic_array_type): Use
1126 value_bits_any_optimized_out.
1127 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1128 check_any_valid fields.
1129 (check_pieced_value_bits): Delete and inline ...
1130 (check_pieced_synthetic_pointer): ... here.
1131 (check_pieced_value_validity): Delete.
1132 (check_pieced_value_invalid): Delete.
1133 (pieced_value_funcs): Remove check_validity and check_any_valid
1135 (read_pieced_value): Use mark_value_bits_optimized_out.
1136 (write_pieced_value): Switch to use
1137 mark_value_bytes_optimized_out.
1138 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1139 of assuming the whole value is optimized out.
1140 * findvar.c (read_frame_register_value): Remove special handling
1141 of optimized out registers.
1142 (value_from_register): Use mark_value_bytes_optimized_out.
1143 * frame-unwind.c (frame_unwind_got_optimized): Use
1144 mark_value_bytes_optimized_out.
1145 * jv-valprint.c (java_value_print): Adjust.
1146 (java_print_value_fields): Let the common printing code handle
1147 optimized out values.
1148 * mips-tdep.c (mips_print_register): Remove special handling of
1149 optimized out registers.
1150 * opencl-lang.c (lval_func_check_validity): Delete.
1151 (lval_func_check_any_valid): Delete.
1152 (opencl_value_funcs): Remove check_validity and check_any_valid
1154 * p-valprint.c (pascal_object_print_value_fields): Let the common
1155 printing code handle optimized out values.
1156 * stack.c (read_frame_arg): Remove special handling of optimized
1157 out values. Fetch both VAL and ENTRYVAL before comparing
1158 contents. Adjust to value_available_contents_eq rename.
1159 * valprint.c (valprint_check_validity)
1160 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1161 (val_print_array_elements): Adjust.
1162 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1163 (value_bits_any_optimized_out): New function.
1164 (value_entirely_covered_by_range_vector): New function, factored
1165 out from value_entirely_unavailable.
1166 (value_entirely_unavailable): Reimplement.
1167 (value_entirely_optimized_out): New function.
1168 (insert_into_bit_range_vector): New function, factored out from
1169 mark_value_bits_unavailable.
1170 (mark_value_bits_unavailable): Reimplement.
1171 (struct ranges_and_idx): New struct.
1172 (find_first_range_overlap_and_match): New function, factored out
1173 from value_available_contents_bits_eq.
1174 (value_available_contents_bits_eq): Rename to ...
1175 (value_contents_bits_eq): ... this. Check both unavailable
1176 contents and optimized out contents.
1177 (value_available_contents_eq): Rename to ...
1178 (value_contents_eq): ... this.
1179 (allocate_value_lazy): Remove reference to the old optimized_out
1181 (allocate_optimized_out_value): Use
1182 mark_value_bytes_optimized_out.
1183 (require_not_optimized_out): Adjust to check whether the
1184 optimized_out vec is empty.
1185 (ranges_copy_adjusted): New function, factored out from
1186 value_contents_copy_raw.
1187 (value_contents_copy_raw): Also copy the optimized out ranges.
1188 Assert the destination ranges aren't optimized out.
1189 (value_contents_copy): Update comment, remove call to
1190 require_not_optimized_out.
1191 (value_contents_equal): Adjust to check whether the optimized_out
1193 (set_value_optimized_out, value_optimized_out_const): Delete.
1194 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1196 (value_entirely_optimized_out, value_bits_valid): Delete.
1197 (value_copy): Take a VEC copy of the 'optimized_out' field.
1198 (value_primitive_field): Remove special handling of optimized out.
1199 (value_fetch_lazy): Assert that lazy values have no unavailable
1200 regions. Use value_bits_any_optimized_out. Remove some special
1201 handling for optimized out values.
1202 * value.h: Add intro comment about <optimized out> and
1204 (struct lval_funcs): Remove check_validity and check_any_valid
1206 (set_value_optimized_out, value_optimized_out_const): Remove.
1207 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1209 (value_bits_any_optimized_out): New declaration.
1210 (value_bits_valid): Delete declaration.
1211 (value_available_contents_eq): Rename to ...
1212 (value_contents_eq): ... this, and extend comments.
1214 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1216 Fix -fsanitize=address on unreadable inferior strings.
1217 * valprint.c (val_print_string): Fix access before BUFFER.
1219 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1221 * target.c (target_struct_size): Remove.
1222 (target_struct_allocsize): Remove.
1223 (DEFAULT_ALLOCSIZE): Remove.
1224 (target_ops_p): New typedef.
1225 (DEF_VEC_P (target_ops_p)): New vector type.
1226 (target_structs): Change type to VEC (target_ops_p).
1227 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1228 (find_default_run_target): Rewrite for loop following changes to
1231 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1233 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1234 Adjust code accordingly. Adjust function description comment.
1236 2014-08-19 Yao Qi <yao@codesourcery.com>
1238 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1241 2014-08-19 Alan Modra <amodra@gmail.com>
1243 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1244 * config.in: Regenerate.
1245 * configure: Regenerate.
1247 2014-08-19 Tom Tromey <tromey@redhat.com>
1248 Gary Benson <gbenson@redhat.com>
1250 * common/common-debug.h: New file.
1251 * common/common-debug.c: Likewise.
1252 * debug.c: Likewise.
1253 * Makefile.in (SFILES): Add common/common-debug.c.
1254 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1255 (COMMON_OBS): Add common-debug.o and debug.o.
1256 (common-debug.o): New rule.
1257 * common/common-defs.h: Include common-debug.h.
1258 * common/agent.c (debug_agent_printf): New function.
1259 (DEBUG_AGENT): Redefine.
1260 * nat/i386-dregs.c (debug_printf): Undefine.
1262 2014-08-19 Gary Benson <gbenson@redhat.com>
1264 * common/common-defs.h: Include print-utils.h.
1265 * utils.h: Do not include print-utils.h.
1267 2014-08-19 Tom Tromey <tromey@redhat.com>
1268 Gary Benson <gbenson@redhat.com>
1270 * common/common-types.h: New file.
1271 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1272 * common/common-defs.h: Include common-types.h.
1273 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1276 2014-08-19 Tom Tromey <tromey@redhat.com>
1277 Gary Benson <gbenson@redhat.com>
1279 * common/errors.h: New file.
1280 * common/errors.c: Likewise.
1281 * Makefile.in (SFILES): Add common/errors.c.
1282 (HFILES_NO_SRCDIR): Add common/errors.h.
1283 (COMMON_OBS): Add errors.o.
1284 (errors.o): New rule.
1285 * common/common-defs.h: Include errors.h.
1286 * utils.h (perror_with_name, error, verror, warning, vwarning):
1288 * common/common-utils.h: (malloc_failure, internal_error):
1291 2014-08-19 Gary Benson <gbenson@redhat.com>
1293 * utils.c (internal_vproblem): Always print the message.
1295 2014-08-18 Doug Evans <dje@google.com>
1297 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1299 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1301 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1302 Return 0 if TYPE is dynamic.
1303 (print_range): Add handling of dynamic ranges.
1305 2014-08-18 Keven Boell <keven.boell@intel.com>
1306 Joel Brobecker <brobecker@adacore.com>
1308 * gdbtypes.h (struct main_type): Add field "data_location".
1309 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1310 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1311 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1312 a dynamic data location.
1313 (resolve_dynamic_type): Add DW_AT_data_location handling.
1314 (copy_recursive, copy_type): Copy the data_location information
1316 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1317 * value.c (value_from_contents_and_address): Add
1318 DW_AT_data_location handling.
1320 2014-08-18 Keven Boell <keven.boell@intel.com>
1321 Joel Brobecker <brobecker@adacore.com>
1323 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1324 field "get_object_address".
1325 * dwarf2expr.c (execute_stack_op): Add handling for
1326 DW_OP_push_object_address.
1327 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1328 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1329 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1330 (dwarf_expr_get_obj_addr): New function.
1331 (dwarf_expr_ctx_funcs): Add get_object_address field.
1332 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1333 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1334 (dwarf2_evaluate_property): Add parameter "address". Use it.
1335 (needs_get_obj_addr): New function.
1336 (needs_frame_ctx_funcs): Add get_object_address field.
1337 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1338 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1339 (resolve_dynamic_array): Likewise.
1341 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1343 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1344 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1345 fixed value for records and unions for which some GNAT encodings
1348 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1350 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1351 rewrite to avoid "else if" and "else" constructs. Should be
1352 a no-op in practice.
1354 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1356 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1359 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1362 * eval.c: Update all calls to find_overload_match.
1363 * valarith.c: Likewise.
1364 (value_user_defined_cpp_op, value_user_defined_op): New
1365 argument NOSIDE. Update all callers.
1366 * valops.c (find_overload_match): New argument NOSIDE.
1367 * value.h (find_overload_match): Update signature.
1369 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1371 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1372 'items' methods instead of 'iteritems' method on dictionaries.
1374 2014-08-15 Doug Evans <dje@google.com>
1376 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1379 2014-08-15 Doug Evans <dje@google.com>
1381 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1383 2014-08-15 Doug Evans <dje@google.com>
1385 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1387 2014-08-15 Doug Evans <dje@google.com>
1389 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1392 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1394 * dcache.h: Include target.h, to avoid compile time warnings.
1396 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1398 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1399 frame_info" partial declaration.
1400 * gdbarch.h: Regenerate.
1402 2014-08-15 Yao Qi <yao@codesourcery.com>
1404 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1405 Add parameter 'decode_for_pst_p'. Callers update.
1407 2014-08-13 Yao Qi <yao@codesourcery.com>
1410 * configure.ac: Use local variable 'pos'.
1411 * configure: Regenerated.
1413 2014-08-11 Doug Evans <dje@google.com>
1415 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1416 message, it is redundant with "Reading symbols from ..." message.
1418 2014-08-10 Doug Evans <xdje42@gmail.com>
1420 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1422 2014-08-09 Yao Qi <yao@codesourcery.com>
1425 * remote.c (remote_xfer_partial): Remove dead code.
1427 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1429 * ia64-linux-tdep.c: Include "regset.h".
1430 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1431 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1432 (ia64_linux_supply_fpregset): New function.
1433 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1434 (ia64_linux_regset_from_core_section): New function.
1435 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1438 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1440 * m68klinux-tdep.c: Include "regset.h".
1441 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1442 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1443 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1444 (m68k_linux_regset_from_core_section): New function.
1445 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1448 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1450 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1451 function. Move logic to...
1452 (tilegx_linux_regmap): ... this new register map.
1453 (tilegx_linux_regset): Refer to register map, replace supply
1454 method by regcache_supply_regset, and add collect method.
1455 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1456 TILEGX_FIRST_EASY_REGNUM.
1458 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1460 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1461 that calls regcache_supply_regset and handles the EPC register
1462 separately. Move main logic to...
1463 (score7_linux_gregmap): ... this new register map.
1464 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1465 (score7_linux_gregset): Refer to register map. Add collect method.
1466 (score7_linux_regset_from_core_section): Replace
1467 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1468 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1469 (struct regset): Delete unused forward declaraction.
1470 (struct pt_regs): Delete structure definition.
1471 (elf_gregset_t): Delete typedef.
1473 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1475 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1476 (nios2_core_regset): Add collect method.
1478 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1480 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1481 platform-independent and don't write to read-only input buffer.
1482 (m32r_linux_collect_gregset): New function.
1483 (m32r_linux_gregset): Add collect method.
1485 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1487 * hppa-linux-tdep.c (greg_map): Rename to...
1488 (hppa_linux_gregmap): ... this. Also convert to
1489 regcache_map_entry format.
1490 (hppa_linux_supply_regset): Delete function.
1491 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1492 (hppa_linux_fpregmap): ... this new register map.
1493 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1494 register map, replace supply method by regcache_supply_regset, and
1495 add collect method regcache_collect_regset.
1497 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1499 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1500 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1501 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1502 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1503 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1504 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1505 (frv_linux_supply_gregset): Replace main logic by call to
1506 regcache_supply_regset, but keep clearing gr32-gr63.
1507 (frv_linux_supply_fpregset): Delete function.
1508 (frv_linux_gregset): Refer to appropriate register map and add
1509 regcache_collect_regset as the collect method.
1510 (frv_linux_fpregset): Likewise. Also exchange the supply method
1511 by regcache_supply_regset.
1513 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1515 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1516 by call to alpha_supply_int_regs.
1517 (alpha_linux_collect_gregset): New function.
1518 (alpha_linux_supply_fpregset): Replace logic by call to
1519 alpha_supply_fp_regs.
1520 (alpha_linux_collect_fpregset): New function.
1521 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1523 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1525 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1526 by call to regcache_collect_regset.
1527 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1528 instead of aarch64_linux_supply_gregset/_fpregset.
1529 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1530 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1531 header file instead.
1532 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1533 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1534 functions. Move logic to ...
1535 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1537 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1538 refer to new register maps, replace *_regset_from_core by
1539 regcache_supply_regset, and also use regcache_collect_regset.
1540 * aarch64-linux-tdep.h: Include "regset.h".
1541 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1543 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1544 macros, moved from C source file.
1545 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1546 variable declarations.
1548 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1550 * s390-linux-nat.c: Include "regset.h".
1551 (regmap_gregset): Delete macro.
1552 (s390_64_regmap_gregset): New register map for
1553 regcache_supply/_collect_regset.
1554 (s390_64_gregset): New regset.
1555 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1556 (regmap_fpregset): Delete macro.
1557 (s390_native_supply, s390_native_collect): Delete functions.
1558 (supply_gregset, fill_gregset): Replace s390-specific regmap
1559 handling by a call to regcache_supply/_collect_regset.
1560 (supply_fpregset, fill_fpregset): Call regcache_supply/
1561 _collect_regset instead of s390_native_supply/_collect.
1562 (fetch_regset, store_regset): Likewise. Also change the last
1563 parameter to a regset instead of a regmap.
1564 (s390_linux_fetch_inferior_registers)
1565 (390_linux_store_inferior_registers): Adjust last parameter in
1566 calls to fetch_regset and store_regset.
1567 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1568 (s390_gregmap): ... this. Also make static const and convert to
1569 regcache_map_entry format.
1570 (s390x_regmap_gregset): Delete.
1571 (s390_regmap_fpregset): Rename to...
1572 (s390_fpregmap): ... this. Make static const and convert to
1573 regcache_map_entry format.
1574 (s390_regmap_upper, s390_regmap_last_break)
1575 (s390x_regmap_last_break, s390_regmap_system_call)
1576 (s390_regmap_tdb): Likewise.
1577 (s390_supply_regset, s390_collect_regset): Remove functions.
1578 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1580 (s390_gregset, s390_fpregset, s390_upper_regset)
1581 (s390_last_break_regset, s390x_last_break_regset)
1582 (s390_system_call_regset, s390_tdb_regset): Make global and
1583 replace s390_supply/_collect_regset by regcache_supply/
1585 (s390x_gregset): Delete.
1586 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1587 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1588 (s390_regmap_fpregset, s390_regmap_last_break)
1589 (s390x_regmap_last_break, s390_regmap_system_call)
1590 (s390_regmap_tdb): Delete global variable declarations.
1591 (s390_gregset, s390_fpregset, s390_last_break_regset)
1592 (s390x_last_break_regset, s390_system_call_regset)
1593 (s390_tdb_regset): New global variable declarations.
1595 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1597 * regcache.c: Include "regset.h".
1598 (regcache_transfer_regset): New local function.
1599 (regcache_supply_regset, regcache_collect_regset): New functions.
1600 * regcache.h (struct regcache_map_entry): New structure.
1601 (REGCACHE_MAP_SKIP): New enum value.
1602 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1604 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1606 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1607 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1608 (ppc_linux_collect_gregset ): Likewise.
1609 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1610 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1611 (ppc_collect_vrregset): Likewise.
1612 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1615 2014-08-07 Yao Qi <yao@codesourcery.com>
1617 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1618 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1619 * remote.c (remote_read_bytes): Likewise.
1621 2014-08-07 Yao Qi <yao@codesourcery.com>
1623 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1625 2014-08-07 Yao Qi <yao@codesourcery.com>
1628 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1629 TARGET_XFER_OK instead of 0.
1631 2014-08-07 Gary Benson <gbenson@redhat.com>
1633 * common/common-defs.h: Include errno.h.
1634 * defs.h: Do not include errno.h.
1635 * ada-typeprint.c: Likewise.
1636 * c-typeprint.c: Likewise.
1637 * core-regset.c: Likewise.
1638 * corefile.c: Likewise.
1639 * corelow.c: Likewise.
1640 * event-loop.c: Likewise.
1641 * f-typeprint.c: Likewise.
1642 * gnu-nat.c: Likewise.
1643 * go32-nat.c: Likewise.
1644 * i386gnu-nat.c: Likewise.
1645 * m2-typeprint.c: Likewise.
1646 * nat/linux-btrace.c: Likewise.
1647 * p-typeprint.c: Likewise.
1648 * procfs.c: Likewise.
1649 * remote-sim.c: Likewise.
1650 * rs6000-nat.c: Likewise.
1651 * target.c: Likewise.
1652 * typeprint.c: Likewise.
1653 * ui-file.c: Likewise.
1654 * valops.c: Likewise.
1655 * valprint.c: Likewise.
1657 2014-08-07 Gary Benson <gbenson@redhat.com>
1659 * common/common-defs.h: Include string.h.
1660 * aarch64-tdep.c: Do not include string.h.
1661 * ada-exp.y: Likewise.
1662 * ada-lang.c: Likewise.
1663 * ada-lex.l: Likewise.
1664 * ada-typeprint.c: Likewise.
1665 * ada-valprint.c: Likewise.
1666 * aix-thread.c: Likewise.
1667 * alpha-linux-tdep.c: Likewise.
1668 * alpha-mdebug-tdep.c: Likewise.
1669 * alpha-nat.c: Likewise.
1670 * alpha-osf1-tdep.c: Likewise.
1671 * alpha-tdep.c: Likewise.
1672 * alphanbsd-tdep.c: Likewise.
1673 * amd64-dicos-tdep.c: Likewise.
1674 * amd64-linux-tdep.c: Likewise.
1675 * amd64-nat.c: Likewise.
1676 * amd64-sol2-tdep.c: Likewise.
1677 * amd64fbsd-tdep.c: Likewise.
1678 * amd64obsd-tdep.c: Likewise.
1679 * arch-utils.c: Likewise.
1680 * arm-linux-nat.c: Likewise.
1681 * arm-linux-tdep.c: Likewise.
1682 * arm-tdep.c: Likewise.
1683 * arm-wince-tdep.c: Likewise.
1684 * armbsd-tdep.c: Likewise.
1685 * armnbsd-nat.c: Likewise.
1686 * armnbsd-tdep.c: Likewise.
1687 * armobsd-tdep.c: Likewise.
1688 * avr-tdep.c: Likewise.
1689 * ax-gdb.c: Likewise.
1690 * ax-general.c: Likewise.
1691 * bcache.c: Likewise.
1692 * bfin-tdep.c: Likewise.
1693 * breakpoint.c: Likewise.
1694 * build-id.c: Likewise.
1695 * buildsym.c: Likewise.
1696 * c-exp.y: Likewise.
1697 * c-lang.c: Likewise.
1698 * c-typeprint.c: Likewise.
1699 * c-valprint.c: Likewise.
1700 * charset.c: Likewise.
1701 * cli-out.c: Likewise.
1702 * cli/cli-cmds.c: Likewise.
1703 * cli/cli-decode.c: Likewise.
1704 * cli/cli-dump.c: Likewise.
1705 * cli/cli-interp.c: Likewise.
1706 * cli/cli-logging.c: Likewise.
1707 * cli/cli-script.c: Likewise.
1708 * cli/cli-setshow.c: Likewise.
1709 * cli/cli-utils.c: Likewise.
1710 * coffread.c: Likewise.
1711 * common/agent.c: Likewise.
1712 * common/buffer.c: Likewise.
1713 * common/buffer.h: Likewise.
1714 * common/common-utils.c: Likewise.
1715 * common/filestuff.c: Likewise.
1716 * common/filestuff.c: Likewise.
1717 * common/format.c: Likewise.
1718 * common/print-utils.c: Likewise.
1719 * common/rsp-low.c: Likewise.
1720 * common/signals.c: Likewise.
1721 * common/vec.h: Likewise.
1722 * common/xml-utils.c: Likewise.
1723 * core-regset.c: Likewise.
1724 * corefile.c: Likewise.
1725 * corelow.c: Likewise.
1726 * cp-abi.c: Likewise.
1727 * cp-name-parser.y: Likewise.
1728 * cp-support.c: Likewise.
1729 * cp-valprint.c: Likewise.
1730 * cris-tdep.c: Likewise.
1731 * d-exp.y: Likewise.
1732 * darwin-nat.c: Likewise.
1733 * dbxread.c: Likewise.
1734 * dcache.c: Likewise.
1735 * demangle.c: Likewise.
1736 * dicos-tdep.c: Likewise.
1737 * disasm.c: Likewise.
1738 * doublest.c: Likewise.
1739 * dsrec.c: Likewise.
1740 * dummy-frame.c: Likewise.
1741 * dwarf2-frame.c: Likewise.
1742 * dwarf2loc.c: Likewise.
1743 * dwarf2read.c: Likewise.
1744 * elfread.c: Likewise.
1745 * environ.c: Likewise.
1747 * event-loop.c: Likewise.
1748 * exceptions.c: Likewise.
1750 * expprint.c: Likewise.
1751 * f-exp.y: Likewise.
1752 * f-lang.c: Likewise.
1753 * f-typeprint.c: Likewise.
1754 * f-valprint.c: Likewise.
1755 * fbsd-nat.c: Likewise.
1756 * findcmd.c: Likewise.
1757 * findvar.c: Likewise.
1758 * fork-child.c: Likewise.
1759 * frame.c: Likewise.
1760 * frv-linux-tdep.c: Likewise.
1761 * frv-tdep.c: Likewise.
1763 * gdb_bfd.c: Likewise.
1764 * gdbarch.c: Likewise.
1765 * gdbarch.sh: Likewise.
1766 * gdbtypes.c: Likewise.
1767 * gnu-nat.c: Likewise.
1768 * gnu-v2-abi.c: Likewise.
1769 * gnu-v3-abi.c: Likewise.
1770 * go-exp.y: Likewise.
1771 * go-lang.c: Likewise.
1772 * go32-nat.c: Likewise.
1773 * guile/guile.c: Likewise.
1774 * guile/scm-auto-load.c: Likewise.
1775 * hppa-hpux-tdep.c: Likewise.
1776 * hppa-linux-nat.c: Likewise.
1777 * hppanbsd-tdep.c: Likewise.
1778 * hppaobsd-tdep.c: Likewise.
1779 * i386-cygwin-tdep.c: Likewise.
1780 * i386-dicos-tdep.c: Likewise.
1781 * i386-linux-tdep.c: Likewise.
1782 * i386-nto-tdep.c: Likewise.
1783 * i386-sol2-tdep.c: Likewise.
1784 * i386-tdep.c: Likewise.
1785 * i386bsd-tdep.c: Likewise.
1786 * i386gnu-nat.c: Likewise.
1787 * i386nbsd-tdep.c: Likewise.
1788 * i386obsd-tdep.c: Likewise.
1789 * i387-tdep.c: Likewise.
1790 * ia64-libunwind-tdep.c: Likewise.
1791 * ia64-linux-nat.c: Likewise.
1792 * inf-child.c: Likewise.
1793 * inf-ptrace.c: Likewise.
1794 * inf-ttrace.c: Likewise.
1795 * infcall.c: Likewise.
1796 * infcmd.c: Likewise.
1797 * inflow.c: Likewise.
1798 * infrun.c: Likewise.
1799 * interps.c: Likewise.
1800 * iq2000-tdep.c: Likewise.
1801 * irix5-nat.c: Likewise.
1802 * jv-exp.y: Likewise.
1803 * jv-lang.c: Likewise.
1804 * jv-typeprint.c: Likewise.
1805 * jv-valprint.c: Likewise.
1806 * language.c: Likewise.
1807 * linux-fork.c: Likewise.
1808 * linux-nat.c: Likewise.
1809 * lm32-tdep.c: Likewise.
1810 * m2-exp.y: Likewise.
1811 * m2-typeprint.c: Likewise.
1812 * m32c-tdep.c: Likewise.
1813 * m32r-linux-nat.c: Likewise.
1814 * m32r-linux-tdep.c: Likewise.
1815 * m32r-rom.c: Likewise.
1816 * m32r-tdep.c: Likewise.
1817 * m68hc11-tdep.c: Likewise.
1818 * m68k-tdep.c: Likewise.
1819 * m68kbsd-tdep.c: Likewise.
1820 * m68klinux-nat.c: Likewise.
1821 * m68klinux-tdep.c: Likewise.
1822 * m88k-tdep.c: Likewise.
1823 * machoread.c: Likewise.
1824 * macrocmd.c: Likewise.
1826 * mdebugread.c: Likewise.
1827 * mem-break.c: Likewise.
1828 * memattr.c: Likewise.
1829 * memory-map.c: Likewise.
1830 * mep-tdep.c: Likewise.
1831 * mi/mi-cmd-break.c: Likewise.
1832 * mi/mi-cmd-disas.c: Likewise.
1833 * mi/mi-cmd-env.c: Likewise.
1834 * mi/mi-cmd-stack.c: Likewise.
1835 * mi/mi-cmd-var.c: Likewise.
1836 * mi/mi-cmds.c: Likewise.
1837 * mi/mi-console.c: Likewise.
1838 * mi/mi-getopt.c: Likewise.
1839 * mi/mi-interp.c: Likewise.
1840 * mi/mi-main.c: Likewise.
1841 * mi/mi-parse.c: Likewise.
1842 * microblaze-rom.c: Likewise.
1843 * microblaze-tdep.c: Likewise.
1844 * mingw-hdep.c: Likewise.
1845 * minidebug.c: Likewise.
1846 * minsyms.c: Likewise.
1847 * mips-irix-tdep.c: Likewise.
1848 * mips-linux-tdep.c: Likewise.
1849 * mips-tdep.c: Likewise.
1850 * mips64obsd-tdep.c: Likewise.
1851 * mipsnbsd-tdep.c: Likewise.
1852 * mipsread.c: Likewise.
1853 * mn10300-linux-tdep.c: Likewise.
1854 * mn10300-tdep.c: Likewise.
1855 * monitor.c: Likewise.
1856 * moxie-tdep.c: Likewise.
1857 * mt-tdep.c: Likewise.
1858 * nat/linux-btrace.c: Likewise.
1859 * nat/linux-osdata.c: Likewise.
1860 * nat/linux-procfs.c: Likewise.
1861 * nat/linux-ptrace.c: Likewise.
1862 * nat/linux-waitpid.c: Likewise.
1863 * nbsd-tdep.c: Likewise.
1864 * nios2-linux-tdep.c: Likewise.
1865 * nto-procfs.c: Likewise.
1866 * nto-tdep.c: Likewise.
1867 * objc-lang.c: Likewise.
1868 * objfiles.c: Likewise.
1869 * opencl-lang.c: Likewise.
1870 * osabi.c: Likewise.
1871 * osdata.c: Likewise.
1872 * p-exp.y: Likewise.
1873 * p-lang.c: Likewise.
1874 * p-typeprint.c: Likewise.
1875 * parse.c: Likewise.
1876 * posix-hdep.c: Likewise.
1877 * ppc-linux-nat.c: Likewise.
1878 * ppc-sysv-tdep.c: Likewise.
1879 * ppcfbsd-tdep.c: Likewise.
1880 * ppcnbsd-tdep.c: Likewise.
1881 * ppcobsd-tdep.c: Likewise.
1882 * printcmd.c: Likewise.
1883 * procfs.c: Likewise.
1884 * prologue-value.c: Likewise.
1885 * python/py-auto-load.c: Likewise.
1886 * python/py-gdb-readline.c: Likewise.
1887 * ravenscar-thread.c: Likewise.
1888 * regcache.c: Likewise.
1889 * registry.c: Likewise.
1890 * remote-fileio.c: Likewise.
1891 * remote-m32r-sdi.c: Likewise.
1892 * remote-mips.c: Likewise.
1893 * remote-notif.c: Likewise.
1894 * remote-sim.c: Likewise.
1895 * remote.c: Likewise.
1896 * reverse.c: Likewise.
1897 * rs6000-aix-tdep.c: Likewise.
1898 * ser-base.c: Likewise.
1899 * ser-go32.c: Likewise.
1900 * ser-mingw.c: Likewise.
1901 * ser-pipe.c: Likewise.
1902 * ser-tcp.c: Likewise.
1903 * ser-unix.c: Likewise.
1904 * serial.c: Likewise.
1905 * sh-tdep.c: Likewise.
1906 * sh64-tdep.c: Likewise.
1907 * shnbsd-tdep.c: Likewise.
1909 * sol-thread.c: Likewise.
1910 * solib-dsbt.c: Likewise.
1911 * solib-frv.c: Likewise.
1912 * solib-osf.c: Likewise.
1913 * solib-som.c: Likewise.
1914 * solib-spu.c: Likewise.
1915 * solib-target.c: Likewise.
1916 * solib.c: Likewise.
1917 * somread.c: Likewise.
1918 * source.c: Likewise.
1919 * sparc-nat.c: Likewise.
1920 * sparc-sol2-tdep.c: Likewise.
1921 * sparc-tdep.c: Likewise.
1922 * sparc64-tdep.c: Likewise.
1923 * sparc64fbsd-tdep.c: Likewise.
1924 * sparc64nbsd-tdep.c: Likewise.
1925 * sparcnbsd-tdep.c: Likewise.
1926 * spu-linux-nat.c: Likewise.
1927 * spu-multiarch.c: Likewise.
1928 * spu-tdep.c: Likewise.
1929 * stabsread.c: Likewise.
1930 * stack.c: Likewise.
1931 * std-regs.c: Likewise.
1932 * symfile.c: Likewise.
1933 * symmisc.c: Likewise.
1934 * symtab.c: Likewise.
1935 * target.c: Likewise.
1936 * thread.c: Likewise.
1937 * tilegx-linux-nat.c: Likewise.
1938 * tilegx-tdep.c: Likewise.
1940 * tracepoint.c: Likewise.
1941 * tui/tui-command.c: Likewise.
1942 * tui/tui-data.c: Likewise.
1943 * tui/tui-disasm.c: Likewise.
1944 * tui/tui-file.c: Likewise.
1945 * tui/tui-layout.c: Likewise.
1946 * tui/tui-out.c: Likewise.
1947 * tui/tui-regs.c: Likewise.
1948 * tui/tui-source.c: Likewise.
1949 * tui/tui-stack.c: Likewise.
1950 * tui/tui-win.c: Likewise.
1951 * tui/tui-windata.c: Likewise.
1952 * tui/tui-winsource.c: Likewise.
1953 * typeprint.c: Likewise.
1954 * ui-file.c: Likewise.
1955 * ui-out.c: Likewise.
1956 * user-regs.c: Likewise.
1957 * utils.c: Likewise.
1958 * v850-tdep.c: Likewise.
1959 * valarith.c: Likewise.
1960 * valops.c: Likewise.
1961 * valprint.c: Likewise.
1962 * value.c: Likewise.
1963 * varobj.c: Likewise.
1964 * vax-tdep.c: Likewise.
1965 * vaxnbsd-tdep.c: Likewise.
1966 * vaxobsd-tdep.c: Likewise.
1967 * windows-nat.c: Likewise.
1968 * xcoffread.c: Likewise.
1969 * xml-support.c: Likewise.
1970 * xstormy16-tdep.c: Likewise.
1971 * xtensa-linux-nat.c: Likewise.
1973 2014-08-07 Gary Benson <gbenson@redhat.com>
1975 * common/common-defs.h: Include gdb_assert.h.
1976 * aarch64-tdep.c: Do not include gdb_assert.h.
1977 * addrmap.c: Likewise.
1978 * aix-thread.c: Likewise.
1979 * alpha-linux-tdep.c: Likewise.
1980 * alpha-mdebug-tdep.c: Likewise.
1981 * alphanbsd-tdep.c: Likewise.
1982 * amd64-nat.c: Likewise.
1983 * amd64-tdep.c: Likewise.
1984 * amd64bsd-nat.c: Likewise.
1985 * amd64fbsd-nat.c: Likewise.
1986 * amd64fbsd-tdep.c: Likewise.
1987 * amd64nbsd-nat.c: Likewise.
1988 * amd64nbsd-tdep.c: Likewise.
1989 * amd64obsd-nat.c: Likewise.
1990 * amd64obsd-tdep.c: Likewise.
1991 * arch-utils.c: Likewise.
1992 * arm-tdep.c: Likewise.
1993 * armbsd-tdep.c: Likewise.
1995 * bcache.c: Likewise.
1996 * bfin-tdep.c: Likewise.
1997 * blockframe.c: Likewise.
1998 * breakpoint.c: Likewise.
1999 * bsd-kvm.c: Likewise.
2000 * bsd-uthread.c: Likewise.
2001 * buildsym.c: Likewise.
2002 * c-exp.y: Likewise.
2003 * c-lang.c: Likewise.
2004 * charset.c: Likewise.
2005 * cleanups.c: Likewise.
2006 * cli-out.c: Likewise.
2007 * cli/cli-decode.c: Likewise.
2008 * cli/cli-dump.c: Likewise.
2009 * cli/cli-logging.c: Likewise.
2010 * cli/cli-script.c: Likewise.
2011 * cli/cli-utils.c: Likewise.
2012 * coffread.c: Likewise.
2013 * common/common-utils.c: Likewise.
2014 * common/queue.h: Likewise.
2015 * common/signals.c: Likewise.
2016 * common/vec.h: Likewise.
2017 * complaints.c: Likewise.
2018 * completer.c: Likewise.
2019 * corelow.c: Likewise.
2020 * cp-abi.c: Likewise.
2021 * cp-name-parser.y: Likewise.
2022 * cp-namespace.c: Likewise.
2023 * cp-support.c: Likewise.
2024 * cris-tdep.c: Likewise.
2025 * dbxread.c: Likewise.
2026 * dictionary.c: Likewise.
2027 * doublest.c: Likewise.
2028 * dsrec.c: Likewise.
2029 * dummy-frame.c: Likewise.
2030 * dwarf2-frame-tailcall.c: Likewise.
2031 * dwarf2-frame.c: Likewise.
2032 * dwarf2expr.c: Likewise.
2033 * dwarf2loc.c: Likewise.
2034 * dwarf2read.c: Likewise.
2036 * event-loop.c: Likewise.
2037 * exceptions.c: Likewise.
2038 * expprint.c: Likewise.
2039 * f-valprint.c: Likewise.
2040 * fbsd-nat.c: Likewise.
2041 * findvar.c: Likewise.
2042 * frame-unwind.c: Likewise.
2043 * frame.c: Likewise.
2044 * frv-tdep.c: Likewise.
2045 * gcore.c: Likewise.
2046 * gdb-dlfcn.c: Likewise.
2047 * gdb_bfd.c: Likewise.
2048 * gdbarch.c: Likewise.
2049 * gdbarch.sh: Likewise.
2050 * gdbtypes.c: Likewise.
2051 * gnu-nat.c: Likewise.
2052 * gnu-v3-abi.c: Likewise.
2053 * go-lang.c: Likewise.
2054 * guile/scm-exception.c: Likewise.
2055 * guile/scm-gsmob.c: Likewise.
2056 * guile/scm-lazy-string.c: Likewise.
2057 * guile/scm-math.c: Likewise.
2058 * guile/scm-pretty-print.c: Likewise.
2059 * guile/scm-safe-call.c: Likewise.
2060 * guile/scm-utils.c: Likewise.
2061 * guile/scm-value.c: Likewise.
2062 * h8300-tdep.c: Likewise.
2063 * hppa-hpux-nat.c: Likewise.
2064 * hppa-tdep.c: Likewise.
2065 * hppanbsd-tdep.c: Likewise.
2066 * hppaobsd-tdep.c: Likewise.
2067 * i386-darwin-nat.c: Likewise.
2068 * i386-darwin-tdep.c: Likewise.
2069 * i386-nto-tdep.c: Likewise.
2070 * i386-tdep.c: Likewise.
2071 * i386bsd-nat.c: Likewise.
2072 * i386fbsd-tdep.c: Likewise.
2073 * i386gnu-nat.c: Likewise.
2074 * i386nbsd-tdep.c: Likewise.
2075 * i386obsd-tdep.c: Likewise.
2076 * i387-tdep.c: Likewise.
2077 * ia64-libunwind-tdep.c: Likewise.
2078 * ia64-tdep.c: Likewise.
2079 * inf-ptrace.c: Likewise.
2080 * inf-ttrace.c: Likewise.
2081 * infcall.c: Likewise.
2082 * infcmd.c: Likewise.
2083 * infrun.c: Likewise.
2084 * inline-frame.c: Likewise.
2085 * interps.c: Likewise.
2086 * jv-lang.c: Likewise.
2087 * jv-typeprint.c: Likewise.
2088 * linux-fork.c: Likewise.
2089 * linux-nat.c: Likewise.
2090 * linux-thread-db.c: Likewise.
2091 * m32c-tdep.c: Likewise.
2092 * m32r-linux-nat.c: Likewise.
2093 * m32r-tdep.c: Likewise.
2094 * m68k-tdep.c: Likewise.
2095 * m68kbsd-nat.c: Likewise.
2096 * m68kbsd-tdep.c: Likewise.
2097 * m88k-tdep.c: Likewise.
2098 * machoread.c: Likewise.
2099 * macroexp.c: Likewise.
2100 * macrotab.c: Likewise.
2101 * maint.c: Likewise.
2102 * mdebugread.c: Likewise.
2103 * memory-map.c: Likewise.
2104 * mep-tdep.c: Likewise.
2105 * mi/mi-common.c: Likewise.
2106 * microblaze-tdep.c: Likewise.
2107 * mingw-hdep.c: Likewise.
2108 * mips-linux-nat.c: Likewise.
2109 * mips-linux-tdep.c: Likewise.
2110 * mips-tdep.c: Likewise.
2111 * mips64obsd-tdep.c: Likewise.
2112 * mipsnbsd-tdep.c: Likewise.
2113 * mn10300-linux-tdep.c: Likewise.
2114 * mn10300-tdep.c: Likewise.
2115 * moxie-tdep.c: Likewise.
2116 * mt-tdep.c: Likewise.
2117 * nat/linux-btrace.c: Likewise.
2118 * nat/linux-osdata.c: Likewise.
2119 * nat/linux-ptrace.c: Likewise.
2120 * nat/mips-linux-watch.c: Likewise.
2121 * nios2-linux-tdep.c: Likewise.
2122 * nios2-tdep.c: Likewise.
2123 * objc-lang.c: Likewise.
2124 * objfiles.c: Likewise.
2125 * obsd-nat.c: Likewise.
2126 * opencl-lang.c: Likewise.
2127 * osabi.c: Likewise.
2128 * parse.c: Likewise.
2129 * ppc-linux-nat.c: Likewise.
2130 * ppc-sysv-tdep.c: Likewise.
2131 * ppcfbsd-nat.c: Likewise.
2132 * ppcfbsd-tdep.c: Likewise.
2133 * ppcnbsd-nat.c: Likewise.
2134 * ppcnbsd-tdep.c: Likewise.
2135 * ppcobsd-nat.c: Likewise.
2136 * ppcobsd-tdep.c: Likewise.
2137 * printcmd.c: Likewise.
2138 * procfs.c: Likewise.
2139 * prologue-value.c: Likewise.
2140 * psymtab.c: Likewise.
2141 * python/py-lazy-string.c: Likewise.
2142 * python/py-value.c: Likewise.
2143 * regcache.c: Likewise.
2144 * reggroups.c: Likewise.
2145 * registry.c: Likewise.
2146 * remote-sim.c: Likewise.
2147 * remote.c: Likewise.
2148 * rs6000-aix-tdep.c: Likewise.
2149 * rs6000-tdep.c: Likewise.
2150 * s390-linux-tdep.c: Likewise.
2151 * score-tdep.c: Likewise.
2152 * ser-base.c: Likewise.
2153 * ser-mingw.c: Likewise.
2154 * sh-tdep.c: Likewise.
2155 * sh64-tdep.c: Likewise.
2156 * solib-darwin.c: Likewise.
2157 * solib-spu.c: Likewise.
2158 * solib-svr4.c: Likewise.
2159 * source.c: Likewise.
2160 * sparc-nat.c: Likewise.
2161 * sparc-sol2-tdep.c: Likewise.
2162 * sparc-tdep.c: Likewise.
2163 * sparc64-sol2-tdep.c: Likewise.
2164 * sparc64-tdep.c: Likewise.
2165 * sparc64fbsd-tdep.c: Likewise.
2166 * sparc64nbsd-tdep.c: Likewise.
2167 * sparc64obsd-tdep.c: Likewise.
2168 * sparcnbsd-tdep.c: Likewise.
2169 * sparcobsd-tdep.c: Likewise.
2170 * spu-multiarch.c: Likewise.
2171 * spu-tdep.c: Likewise.
2172 * stabsread.c: Likewise.
2173 * stack.c: Likewise.
2174 * symfile.c: Likewise.
2175 * symtab.c: Likewise.
2176 * target-descriptions.c: Likewise.
2177 * target-memory.c: Likewise.
2178 * target.c: Likewise.
2179 * tic6x-linux-tdep.c: Likewise.
2180 * tic6x-tdep.c: Likewise.
2181 * tilegx-linux-nat.c: Likewise.
2182 * tilegx-tdep.c: Likewise.
2184 * tramp-frame.c: Likewise.
2185 * tui/tui-out.c: Likewise.
2186 * tui/tui-winsource.c: Likewise.
2187 * ui-out.c: Likewise.
2188 * user-regs.c: Likewise.
2189 * utils.c: Likewise.
2190 * v850-tdep.c: Likewise.
2191 * valops.c: Likewise.
2192 * value.c: Likewise.
2193 * varobj.c: Likewise.
2194 * vax-nat.c: Likewise.
2195 * xml-syscall.c: Likewise.
2196 * xml-tdesc.c: Likewise.
2197 * xstormy16-tdep.c: Likewise.
2198 * xtensa-linux-nat.c: Likewise.
2199 * xtensa-tdep.c: Likewise.
2201 2014-08-07 Gary Benson <gbenson@redhat.com>
2203 * common/common-defs.h: Include common-utils.h.
2204 * defs.h: Do not include common-utils.h.
2205 * common/gdb_assert.h: Likewise.
2206 * darwin-nat.h: Likewise.
2207 * nat/linux-btrace.c: Likewise.
2208 * target/waitstatus.h: Likewise.
2210 2014-08-07 Gary Benson <gbenson@redhat.com>
2212 * common/common-defs.h: Include ptid.h.
2213 * defs.h: Do not include ptid.h.
2214 * inferior.h: Likewise.
2215 * infrun.h: Likewise.
2216 * nat/linux-btrace.h: Likewise.
2217 * nat/linux-osdata.h: Likewise.
2218 * target/waitstatus.h: Likewise.
2220 2014-08-07 Gary Benson <gbenson@redhat.com>
2222 * common/common-defs.h: Include gdb_locale.h.
2223 * defs.h: Do not include gdb_locale.h.
2225 2014-08-07 Gary Benson <gbenson@redhat.com>
2227 * common/common-defs.h: Include gdb/signals.h.
2228 * defs.h: Do not include gdb/signals.h.
2230 2014-08-07 Gary Benson <gbenson@redhat.com>
2232 * common/common-defs.h: Include pathmax.h.
2233 * defs.h: Do not include pathmax.h.
2235 2014-08-07 Gary Benson <gbenson@redhat.com>
2237 * common/common-defs.h: Include libiberty.h.
2238 * defs.h: Do not include libiberty.h.
2239 * common/queue.h: Likewise.
2240 * cp-name-parser.y: Likewise.
2241 * mi/mi-cmd-catch.c: Likewise.
2242 * python/python.c: Likewise.
2244 2014-08-07 Gary Benson <gbenson@redhat.com>
2246 * common/common-defs.h: Include ansidecl.h.
2247 * defs.h: Do not include ansidecl.h.
2248 * common/buffer.h: Likewise.
2249 * common/common-utils.h: Likewise.
2251 2014-08-07 Gary Benson <gbenson@redhat.com>
2253 * common/common-defs.h: Include stddef.h.
2254 * defs.h: Do not include stddef.h.
2255 * common/common-utils.h: Likewise.
2256 * amd64fbsd-nat.c: Likewise.
2257 * bcache.c: Likewise.
2258 * charset.c: Likewise.
2259 * common/buffer.h: Likewise.
2260 * common/vec.h: Likewise.
2261 * i386bsd-nat.c: Likewise.
2262 * nat/linux-btrace.h: Likewise.
2263 * ppcfbsd-nat.c: Likewise.
2264 * ppcnbsd-tdep.h: Likewise.
2265 * ppcobsd-nat.c: Likewise.
2266 * ppcobsd-tdep.h: Likewise.
2267 * python/py-gdb-readline.c: Likewise.
2269 2014-08-07 Gary Benson <gbenson@redhat.com>
2271 * common/common-defs.h: Include stdarg.h.
2272 * defs.h: Do not include stdarg.h.
2273 * ada-lang.c: Likewise.
2274 * common/common-utils.h: Likewise.
2275 * guile/scm-string.c: Likewise.
2276 * guile/scm-utils.c: Likewise.
2277 * m32c-tdep.c: Likewise.
2279 2014-08-07 Gary Benson <gbenson@redhat.com>
2281 * common/common-defs.h: Include stdlib.h.
2282 * defs.h: Do not include stdlib.h.
2283 * addrmap.c: Likewise.
2284 * bcache.c: Likewise.
2285 * common/buffer.c: Likewise.
2286 * common/common-utils.c: Likewise.
2287 * cp-name-parser.y: Likewise.
2288 * go32-nat.c: Likewise.
2289 * mn10300-linux-tdep.c: Likewise.
2290 * nat/linux-osdata.c: Likewise.
2291 * tui/tui.c: Likewise.
2292 * windows-nat.c: Likewise.
2294 2014-08-07 Gary Benson <gbenson@redhat.com>
2296 * common/common-defs.h: Include stdio.h.
2297 * defs.h: Do not include stdio.h.
2298 * ada-lang.c: Likewise.
2299 * common/buffer.c: Likewise.
2300 * common/common-utils.c: Likewise.
2301 * cp-name-parser.y: Likewise.
2302 * gnu-nat.c: Likewise.
2303 * go32-nat.c: Likewise.
2304 * i386gnu-nat.c: Likewise.
2305 * proc-api.c: Likewise.
2306 * proc-events.c: Likewise.
2307 * proc-flags.c: Likewise.
2308 * proc-why.c: Likewise.
2309 * python/python-internal.h: Likewise.
2310 * target-memory.c: Likewise.
2311 * tui/tui-io.c: Likewise.
2312 * tui/tui.c: Likewise.
2314 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2316 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2317 (scan_dyntag_auxv): Same.
2319 2014-08-06 Yao Qi <yao@codesourcery.com>
2321 * amd64-linux-nat.c: Remove duplicated include
2323 * i386-linux-nat.c: Likewise.
2325 2014-08-06 Yao Qi <yao@codesourcery.com>
2327 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2328 operand" with "Special opcode" in comments.
2330 2014-08-05 Gary Benson <gbenson@redhat.com>
2332 * interps.c (initialize_interps): Remove prototype.
2333 (interpreter_initialized): Remove static global.
2334 (interp_add): Do not call initialize_interps.
2335 (initialize_interps): Remove function.
2337 2014-08-05 Gary Benson <gbenson@redhat.com>
2339 * utils.c (vwarning): Remove spurious va_end.
2341 2014-08-05 Alan Modra <amodra@gmail.com>
2343 * charset.c (convert_between_encodings): Cast result of obstack_base.
2344 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2345 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2346 (read_unwind_info): Use size_t for some locals.
2347 * jit.c (finalize_symtab): Likewise.
2348 * utils.c (hashtab_obstack_allocate): Likewise.
2349 * symmisc.c (print_objfile_statistics): Update format strings.
2351 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2353 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2354 (Changes in GDB 7.8): ... here.
2356 2014-08-04 Tom Tromey <tromey@redhat.com>
2358 * target.c (set_targetdebug): New function.
2359 (initialize_targets): Pass set_targetdebug when creating "set
2362 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2364 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2365 if detecting a variable-sized field that is not the last field.
2366 Fix struct type length computation.
2368 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2370 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2373 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2375 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2376 Remove "+ 8" offset in computation of CHAIN_VMA.
2378 2014-07-31 Doug Evans <dje@google.com>
2380 * inflow.c (child_terminal_inferior): Add comment.
2381 (child_terminal_ours_for_output): Add comment.
2382 (child_terminal_ours): Add comment.
2383 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2384 (linux_nat_terminal_ours): Add comment.
2386 2014-07-31 Gary Benson <gbenson@redhat.com>
2388 * common/btrace-common.h: Do not include defs.h or server.h.
2389 * nat/mips-linux-watch.h: Likewise.
2390 * gdb-dlfcn.h: Do not include defs.h.
2391 * tracefile.h: Likewise.
2393 2014-07-30 Roland McGrath <mcgrathr@google.com>
2395 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2397 2014-07-30 Tom Tromey <tromey@redhat.com>
2399 * bsd-kvm.c (bsd_kvm_open): Constify.
2400 * corelow.c (core_open): Constify.
2401 * ctf.c (ctf_open): Constify.
2402 * dbug-rom.c (dbug_open): Constify.
2403 * exec.c (exec_open): Constify.
2404 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2405 * microblaze-rom.c (picobug_open): Constify.
2406 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2408 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2409 * record-btrace.c (record_btrace_open): Constify.
2410 * record-full.c (record_full_core_open_1, record_full_open_1)
2411 (record_full_open): Constify.
2412 * remote-m32r-sdi.c (m32r_open): Constify.
2413 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2414 (rockhopper_open, lsi_open): Constify.
2415 * remote-sim.c (gdbsim_open): Constify.
2416 * remote.c (remote_open, extended_remote_open, remote_open_1):
2418 * target.h (struct target_ops) <to_open>: Make "arg" const.
2419 * tracefile-tfile.c (tfile_open): Constify.
2421 2014-07-30 Tom Tromey <tromey@redhat.com>
2423 * breakpoint.c (map_breakpoint_numbers): Update.
2424 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2425 (get_number_const): New function.
2426 (get_number): Rewrite using get_number_const.
2427 (init_number_or_range): Make "string" const.
2428 (number_is_in_list): Make "list" const.
2429 * cli/cli-utils.h (get_number_const): Declare.
2430 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2431 (init_number_or_range, number_is_in_list): Update.
2432 * printcmd.c (map_display_numbers): Update.
2433 * value.c (value_from_history_ref): Constify.
2434 * value.h (value_from_history_ref): Update.
2436 2014-07-30 Tom Tromey <tromey@redhat.com>
2438 * corefile.c (hook_type, call_extra_exec_file_hooks)
2439 (specify_exec_file_hook): Constify.
2440 * exec.c (exec_file_attach): Make "filename" const.
2441 * gdbcore.h (deprecated_exec_file_display_hook)
2442 (specify_exec_file_hook, exec_file_attach): Constify.
2443 * main.c (captured_main): Use catch_command_errors_const.
2445 2014-07-30 Tom Tromey <tromey@redhat.com>
2447 * target.c (open_target): New function.
2448 (add_target_with_completer, add_deprecated_target_alias): Use
2449 set_cmd_sfunc, set_cmd_context.
2450 (debug_to_open): Remove.
2451 (setup_target_debug): Update.
2453 2014-07-30 Yao Qi <yao@codesourcery.com>
2455 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2457 * parse.c (exp_iterate): Update comments.
2459 2014-07-30 Gary Benson <gbenson@redhat.com>
2461 * common/common-defs.h: New file.
2462 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2463 * defs.h: Include common-defs.h.
2464 Do not include config.h or build-gnulib/config.h.
2466 2014-07-30 Gary Benson <gbenson@redhat.com>
2468 * common/common-utils.h: Do not include config.h.
2469 * nat/linux-btrace.h: Likewise.
2471 2014-07-30 Gary Benson <gbenson@redhat.com>
2473 * btrace.c: Include defs.h.
2474 * common/ptid.c: Include defs.h or server.h as appropriate.
2475 * nat/mips-linux-watch.c: Likewise.
2477 2014-07-29 Tom Tromey <tromey@redhat.com>
2479 * target.c (target_is_pushed): Simplify.
2481 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2485 2014-07-29 Yao Qi <yao@codesourcery.com>
2488 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2490 2014-07-28 Doug Evans <xdje42@gmail.com>
2493 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2494 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2497 2014-07-28 Will Newton <will.newton@linaro.org>
2499 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2500 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2501 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2502 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2503 (THUMB2_EABI_SYSCALL): Likewise.
2504 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2506 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2507 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2509 2014-07-27 Doug Evans <xdje42@gmail.com>
2511 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2513 2014-07-27 Doug Evans <xdje42@gmail.com>
2515 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2517 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2518 Doug Evans <xdje42@gmail.com>
2521 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2522 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2523 * configure.ac: Try to use guild to compile an scm file, if it fails
2524 then disable guile support.
2525 * configure: Regenerate.
2526 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2528 (GUILE_COMPILED_FILES): New variable.
2529 (GUILE_FILES) Update.
2530 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2531 (stamp-guile): Compile scm files.
2532 * guile/guile.c (boot_guile_support): New function.
2533 (standard_throw_args_p): New function.
2534 (print_standard_throw_error, print_throw_error): New functions.
2535 (handle_boot_error): New function.
2536 (initialize_scheme_side): Rewrite to call boot_guile_support.
2537 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2538 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2540 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2541 Doug Evans <xdje42@gmail.com>
2544 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2545 * guile/lib/gdb/support.scm: New file.
2546 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2547 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2549 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2551 (%assert-type): Ditto, and renamed to assert-type.
2552 (%exception-print-style): Delete.
2554 2014-07-26 Doug Evans <xdje42@gmail.com>
2557 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2558 * configure: Regenerate.
2559 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2561 (PYTHON_FILES): New variable.
2562 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2563 (GUILE_FILES): New variable.
2564 (stamp-python, install-python, uninstall-python): Handle empty
2566 (stamp-guile, install-guile, uninstall-guile): Ditto.
2568 2014-07-26 Doug Evans <xdje42@gmail.com>
2571 * guile/lib/gdb.scm (pretty-printers): Export.
2572 (set-pretty-printers!): Export.
2573 * guile/lib/gdb/printing.scm (gdb module): Update.
2574 (prepend-pretty-printer!, append-pretty-printer!): Update.
2575 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2576 (pretty_printer_list_var): Delete.
2577 (pretty_printer_list): New static global.
2578 (gdbscm_pretty_printers): New function.
2579 (gdbscm_set_pretty_printers_x): New function.
2580 (ppscm_find_pretty_printer_from_gdb): Update.
2581 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2582 (gdbscm_initialize_pretty_printers): Update.
2584 2014-07-26 Doug Evans <xdje42@gmail.com>
2587 * configure.ac: Add check for header gc/gc.h.
2588 Add check for function setenv.
2589 * configure: Regenerate.
2590 * config.in: Regenerate.
2591 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2593 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2595 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2596 variation in gdbarch matching.
2598 2014-07-25 Tom Tromey <tromey@redhat.com>
2600 * exec.c (using_exec_ops): Remove.
2601 (exec_close_1): Update. Remove extraneous block, reindent.
2602 (add_target_sections): Use target_is_pushed.
2604 2014-07-25 Pedro Alves <palves@redhat.com>
2606 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2607 * monitor.c (monitor_create_inferior): Likewise.
2608 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2609 * remote-sim.c (gdbsim_create_inferior): Likewise.
2610 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2611 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2612 * windows-nat.c (do_initial_windows_stuff): Likewise.
2614 2014-07-25 Pedro Alves <palves@redhat.com>
2616 * NEWS: Mention signal passing and "signal" command changes.
2617 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2619 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2621 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2622 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2623 (jump_command): Adjust clear_proceed_status call.
2624 (signal_command): Warn if other thread that are resumed have
2625 signals that will be delivered. Adjust clear_proceed_status call.
2626 (until_next_command, finish_command)
2627 (proceed_after_attach_callback, attach_command_post_wait)
2628 (attach_command): Adjust clear_proceed_status call.
2629 * infrun.c (proceed_after_vfork_done): Likewise.
2630 (proceed_after_attach_callback): Adjust comment.
2631 (clear_proceed_status_thread): Clear stop_signal if not in pass
2633 (clear_proceed_status_callback): Delete.
2634 (clear_proceed_status): New 'step' parameter. Only clear the
2635 proceed status of threads the command being prepared is about to
2637 (proceed): If passed in an explicit signal, override stop_signal
2638 with it. Don't pass the last stop signal to the thread we're
2640 (init_wait_for_inferior): Adjust clear_proceed_status call.
2641 (switch_back_to_stepped_thread): Clear the signal if it should not
2643 * infrun.h (clear_proceed_status): New 'step' parameter.
2644 (user_visible_resume_ptid): Add comment.
2645 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2646 signal is in pass state.
2647 * remote.c (append_pending_thread_resumptions): Likewise.
2648 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2650 2014-07-25 Tom Tromey <tromey@redhat.com>
2652 * target.h (target_stopped_data_address)
2653 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2656 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2658 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2660 (avr_pointer_to_address): Likewise.
2662 2014-07-24 Tom Tromey <tromey@redhat.com>
2664 * monitor.c (compile_pattern): Update.
2665 * target.h (struct target_ops) <to_shortname, to_longname,
2668 2014-07-24 Tom Tromey <tromey@redhat.com>
2670 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2671 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2672 (add_info_alias, add_com): Make "doc" const.
2673 (print_doc_line): Make "str" const.
2674 (delete_cmd): Update.
2675 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2676 (print_doc_line): Update.
2677 * cli/cli-script.c (document_command): Update.
2678 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2679 (add_com, add_info, add_info_alias): Update.
2680 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2681 * python/py-cmd.c (cmdpy_destroyer): Update.
2683 2014-07-24 Tom Tromey <tromey@redhat.com>
2685 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2686 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2687 (help_cmd_list): Constify.
2688 (lookup_cmd): Update.
2689 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2691 (help_cmd_list, apropos_cmd): Update.
2692 * cli/cli-script.c (show_user): Update.
2693 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2694 * cli/cli-setshow.h (cmd_show_list): Update.
2695 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2696 (cmd_show_list): Update.
2697 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2698 * python/py-cmd.c (cmdpy_destroyer): Update.
2700 2014-07-24 Tom Tromey <tromey@redhat.com>
2702 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2703 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2705 * command.h (deprecate_cmd): Update.
2706 * maint.c (maintenance_do_deprecate): Add casts.
2708 2014-07-24 Tom Tromey <tromey@redhat.com>
2710 * cli/cli-decode.c (help_cmd): Make parameter "const".
2711 * cli/cli-decode.h (help_cmd): Update.
2713 2014-07-24 Tom Tromey <tromey@redhat.com>
2715 * stack.c (up_silently_base, down_silently_base): Make argument
2718 2014-07-24 Tom Tromey <tromey@redhat.com>
2720 * solib.c (solib_add): Make "pattern" const.
2721 * solib.h (solib_add): Update.
2723 2014-07-24 Tom Tromey <tromey@redhat.com>
2725 * remote.c (remote_serial_open, print_packet, putpkt)
2726 (putpkt_binary): Constify.
2727 * remote.h (putpkt): Update.
2729 2014-07-24 Tom Tromey <tromey@redhat.com>
2731 * monitor.c (monitor_open): Make "args" const.
2732 * monitor.h (monitor_open): Update.
2734 2014-07-24 Tom Tromey <tromey@redhat.com>
2736 * maint.c (match_bfd_flags): Make "string" const.
2737 (print_bfd_section_info): Remove casts.
2738 (print_objfile_section_info): Make "string" const.
2740 2014-07-24 Tom Tromey <tromey@redhat.com>
2742 * inf-child.c (inf_child_open_target): Make "arg" const.
2743 * inf-child.h (inf_child_open_target): Update.
2745 2014-07-24 Tom Tromey <tromey@redhat.com>
2747 * environ.c (unset_in_environ): Make "var" const.
2748 * environ.h (unset_in_environ): Update.
2750 2014-07-24 Tom Tromey <tromey@redhat.com>
2752 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2754 (scan_filename_with_cleanup): Likewise.
2755 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2756 Make arguments const.
2757 (restore_command): Update.
2759 2014-07-24 Pedro Alves <palves@redhat.com>
2761 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2763 2014-07-24 Tom Tromey <tromey@redhat.com>
2764 Gary Benson <gbenson@redhat.com>
2766 * nat/linux-ptrace.c (additional_flags): New global.
2767 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2768 additional_flags; don't check GDBSERVER.
2769 (linux_ptrace_set_additional_flags): New function.
2770 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2772 * linux-nat.c (_initialize_linux_nat): Call
2773 linux_ptrace_set_additional_flags.
2775 2014-07-24 Tom Tromey <tromey@redhat.com>
2777 * make-target-delegates (munge_type, write_debugmethod): New
2779 (debug_names): New global.
2780 ($TARGET_DEBUG_PRINTER): New global.
2781 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2783 Write debug methods. Generate init_debug_target.
2784 * target-debug.h: New file.
2785 * target-delegates.c: Rebuild.
2786 * target.c: Include target-debug.h.
2787 (debug_target): Hoist definition.
2788 (target_kill, target_get_section_table, target_memory_map)
2789 (target_flash_erase, target_flash_done, target_detach)
2790 (target_disconnect, target_wait, target_resume)
2791 (target_pass_signals, target_program_signals, target_follow_fork)
2792 (target_mourn_inferior, target_search_memory)
2793 (target_thread_address_space, target_close)
2794 (target_find_new_threads, target_core_of_thread)
2795 (target_verify_memory, target_insert_mask_watchpoint)
2796 (target_remove_mask_watchpoint): Remove targetdebug code.
2797 (debug_to_post_attach, debug_to_prepare_to_store)
2798 (debug_to_files_info, debug_to_insert_breakpoint)
2799 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2800 (debug_to_region_ok_for_hw_watchpoint)
2801 (debug_to_can_accel_watchpoint_condition)
2802 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2803 (debug_to_watchpoint_addr_within_range)
2804 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2805 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2806 (debug_to_terminal_init, debug_to_terminal_inferior)
2807 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2808 (debug_to_terminal_save_ours, debug_to_terminal_info)
2809 (debug_to_load, debug_to_post_startup_inferior)
2810 (debug_to_insert_fork_catchpoint)
2811 (debug_to_remove_fork_catchpoint)
2812 (debug_to_insert_vfork_catchpoint)
2813 (debug_to_remove_vfork_catchpoint)
2814 (debug_to_insert_exec_catchpoint)
2815 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2816 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2817 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2818 (setup_target_debug): Call init_debug_target.
2819 * target.h (TARGET_DEBUG_PRINTER): New macro.
2820 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2821 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2823 2014-07-24 Gary Benson <gbenson@redhat.com>
2825 * exceptions.h (throw_vfatal): Renamed to...
2826 (throw_vquit): New declaration.
2827 (throw_quit): Likewise.
2828 * exceptions.c (throw_vfatal): Renamed to...
2829 (throw_vquit): New function.
2830 (throw_quit): Likewise.
2831 (throw_error): Call throw_verror rather than throw_it.
2832 * utils.h (vfatal): Removed.
2834 * utils.c (vfatal): Removed.
2836 (internal_verror): Replaced call to fatal with call to throw_quit.
2837 (quit): Replaced calls to fatal with calls to throw_quit.
2839 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2841 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2844 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2846 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2847 less than zero in conditional expression.
2849 2014-07-23 Tom Tromey <tromey@redhat.com>
2851 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2852 ($INTRO_PART): Don't match whitespace.
2853 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2855 ($METHOD): Add $METHOD_TRAILER.
2857 (scan_target_h): New sub.
2858 Change main loop not to collect state.
2859 * target-delegates.c: Rebuild.
2861 2014-07-23 Gary Benson <gbenson@redhat.com>
2863 * cp-support.c (gdb_demangle): Fix build on systems without
2866 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2868 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2869 for reference entry value target data value.
2871 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2873 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2874 value_available_contents_eq.
2876 2014-07-22 Pedro Alves <palves@redhat.com>
2878 * value.c (allocate_optimized_out_value): Don't mark value as
2881 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2883 * MAINTAINERS (Write After Approval): Update my email address.
2885 2014-07-20 Doug Evans <dje@google.com>
2888 * remote.c (putpkt_binary): Add text to error message.
2890 2014-07-20 Yao Qi <yao@codesourcery.com>
2892 * eval.c: Remove "Chill" from comments.
2893 * gdbtypes.h: Likewise.
2894 * symtab.h: Likewise.
2896 2014-07-20 Yao Qi <yao@codesourcery.com>
2898 * std-operator.def: Update comments to TERNOP_SLICE.
2900 2014-07-20 Yao Qi <yao@codesourcery.com>
2902 * std-operator.def: Remove BINOP_RANGE.
2903 * breakpoint.c (watchpoint_exp_is_const): Update.
2904 * expprint.c (dump_subexp_body_standard): Likewise.
2905 * eval.c (init_array_element): Remove dead code.
2906 (evaluate_subexp_standard): Likewise.
2908 2014-07-20 Yao Qi <yao@codesourcery.com>
2910 * std-operator.def: Remove BINOP_IN.
2911 * breakpoint.c (watchpoint_exp_is_const): Update.
2912 * eval.c (evaluate_subexp_standard): Likewise.
2913 * expprint.c (dump_subexp_body_standard): Likewise.
2915 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2917 * microblaze-tdep.c (microblaze_register_names): Add
2918 the rshr and rslr register names.
2919 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2920 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2921 Use of tdesc_numbered_register. Use of
2922 microblaze_register_g_packet_guesses. Use of
2923 tdesc_use_registers. Use of set_gdbarch_register_type.
2924 (microblaze_register_g_packet_guesses): New.
2925 * microblaze-tdep.h (microblaze_reg_num): Add
2926 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2927 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2928 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2929 * features/microblaze-core.xml: New file.
2930 * features/microblaze-stack-protect.xml: New file.
2931 * features/microblaze-with-stack-protect.c: New file.
2932 * features/microblaze-with-stack-protect.xml: New file.
2933 * features/microblaze.xml: New file.
2934 * features/microblaze.c: New file.
2935 * features/Makefile (microblaze-with-stack-protect): Add
2936 microblaze-with-stack-protect microblaze and microblaze-expedite.
2937 * regformats/microblaze-with-stack-protect.dat: New file.
2938 * regformats/microblaze.dat: New file.
2939 * doc/gdb.texinfo (MicroBlaze Features): Added.
2941 2014-07-18 Tom Tromey <tromey@redhat.com>
2943 * exec.c (exec_ops): Now static.
2944 * exec.h (exec_ops): Don't declare.
2946 2014-07-18 Tom Tromey <tromey@redhat.com>
2948 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2949 to find_target_beneath.
2950 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2951 find_target_beneath.
2952 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2954 2014-07-18 Tom Tromey <tromey@redhat.com>
2957 * utils.c (quit): Use target_supports_terminal_ours.
2958 * target.h (target_supports_terminal_ours): Declare.
2959 * target.c (target_supports_delete_record): Don't check
2960 to_delete_record against NULL.
2961 (target_supports_terminal_ours): New function.
2963 2014-07-18 Tom Tromey <tromey@redhat.com>
2966 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2967 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2968 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2969 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2970 * windows-nat.c (windows_xfer_partial): Always delegate.
2971 * record-btrace.c (record_btrace_xfer_partial): Simplify
2973 (record_btrace_fetch_registers, record_btrace_store_registers)
2974 (record_btrace_prepare_to_store, record_btrace_resume)
2975 (record_btrace_wait, record_btrace_find_new_threads)
2976 (record_btrace_thread_alive): Likewise.
2977 * procfs.c (procfs_xfer_partial): Always delegate.
2978 * corelow.c (core_xfer_partial): Always delegate.
2979 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2981 2014-07-18 Tom Tromey <tromey@redhat.com>
2983 * exec.c (exec_make_note_section): Move earlier.
2985 2014-07-17 Doug Evans <dje@google.com>
2988 * maint.c (count_symtabs_and_blocks): Handle NULL
2989 current_program_space.
2990 (report_command_stats): Check global enabled flag in addition to
2991 recorded enabled flag.
2992 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2994 2014-07-16 Pedro Alves <palves@redhat.com>
2996 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2998 2014-07-16 Tom Tromey <tromey@redhat.com>
3000 * target.h (struct target_ops) <to_delete_record>: Reformat
3003 2014-07-16 Tom Tromey <tromey@redhat.com>
3005 * target-delegates.c: Rebuild.
3007 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3009 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3010 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3011 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3012 (avr_pointer_to_address): Likewise.
3013 (avr_address_class_type_flags): New function.
3014 (avr_address_class_type_flags_to_name): Likewise.
3015 (avr_address_class_name_to_type_flags): Likewise.
3016 (avr_gdbarch_init): Set address_class_type_flags,
3017 address_class_type_flags_to_name and
3018 address_class_name_to_type_flags.
3020 2014-07-15 Pedro Alves <palves@redhat.com>
3022 * linux-nat.c (kill_callback): Save errno and work with saved
3025 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3027 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3029 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3031 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3032 breakpoint support correctly.
3034 2014-07-14 Pedro Alves <palves@redhat.com>
3036 * utils.c (prompt_for_continue): Call target_terminal_ours.
3038 2014-07-14 Pedro Alves <palves@redhat.com>
3040 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3041 catch_errors. Don't re-enable stdin or notify observers where,
3043 (fetch_inferior_event_wrapper): Delete.
3045 2014-07-14 Pedro Alves <palves@redhat.com>
3048 * top.c: Include "inf-loop.h".
3049 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3051 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3053 (gdb_readline_wrapper): Store whether the target is async, and
3056 2014-07-14 Pedro Alves <palves@redhat.com>
3059 * top.c (gdb_readline_wrapper_line): Tweak comment.
3060 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3061 the input handler callback.
3063 2014-07-14 Pedro Alves <palves@redhat.com>
3066 * main.c: Include event-top.h.
3067 (handle_command_errors): New function.
3068 (catch_command_errors, catch_command_errors_const): Use it.
3070 2014-07-14 Pedro Alves <palves@redhat.com>
3072 * exceptions.c (catch_command_errors, catch_command_errors_const):
3074 * exceptions.h (catch_command_errors_ftype)
3075 (catch_command_errors_const_ftype): Moved to main.c.
3076 (catch_command_errors, catch_command_errors_const): Delete
3078 * main.c (catch_command_errors_ftype)
3079 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3080 (catch_command_errors, catch_command_errors_const)): Moved here
3081 from exceptions.c and make static.
3083 2014-07-14 Pedro Alves <palves@redhat.com>
3085 * exceptions.c (print_any_exception): Delete.
3086 (catch_exceptions_with_msg): Use exception_print instead of
3087 print_any_exception.
3088 (catch_errors): Use exception_fprintf instead of
3089 print_any_exception.
3090 (catch_command_errors, catch_command_errors_const): Use
3091 exception_print instead of print_any_exception.
3093 2014-07-14 Pedro Alves <palves@redhat.com>
3095 * infcall.c (run_inferior_call): Set 'sync_execution' while
3096 running the inferior call.
3098 2014-07-14 Pedro Alves <palves@redhat.com>
3100 * value.c (value_contents_equal): Delete function.
3101 * value.h (value_contents_equal): Delete declaration.
3103 2014-07-14 Tom Tromey <tromey@redhat.com>
3106 * gdbtypes.c (is_dynamic_type_internal): New function, from
3108 (is_dynamic_type): Rewrite.
3109 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3110 (resolve_dynamic_struct): Likewise.
3111 (resolve_dynamic_type_internal): New function, from
3112 resolve_dynamic_type.
3113 (resolve_dynamic_type): Rewrite.
3115 2014-07-14 Tom Tromey <tromey@redhat.com>
3117 * target.c (target_require_runnable): Also check record_stratum.
3120 2014-07-11 Yao Qi <yao@codesourcery.com>
3122 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3123 thumb_instruction_restores_sp return true.
3125 2014-07-11 Yao Qi <yao@codesourcery.com>
3127 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3128 (thumb_in_function_epilogue_p): Call
3129 thumb_instruction_restores_sp.
3131 2014-07-11 Yao Qi <yao@codesourcery.com>
3133 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3135 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3137 2014-07-11 Gary Benson <gbenson@redhat.com>
3139 * amd64-linux-nat.c (gdbcore.h): Remove include.
3140 (regset.h): Likewise.
3141 (nat/linux-btrace.h): Likewise.
3142 (btrace.h): Likewise.
3143 (gdb_assert.h): Likewise.
3144 (string.h): Likewise.
3145 (sys/uio.h): Likewise.
3146 (sys/debugreg.h): Likewise.
3147 (sys/syscall.h): Likewise.
3148 (sys/procfs.h): Likewise.
3149 (sys/user.h): Likewise.
3150 (asm/ptrace.h): Likewise.
3151 (i386-nat.h): Likewise.
3152 * i386-linux-nat.c (i386-nat.h): Likewise.
3153 (regset.h): Likewise.
3154 (target.h): Likewise.
3155 (linux-nat.h): Likewise.
3156 (nat/linux-btrace.h): Likewise.
3157 (btrace.h): Likewise.
3158 (gdb_assert.h): Likewise.
3159 (string.h): Likewise.
3160 (sys/uio.h): Likewise.
3161 (sys/user.h): Likewise.
3162 (sys/procfs.h): Likewise.
3163 (sys/reg.h): Likewise.
3164 (sys/debugreg.h): Likewise.
3165 (ORIG_EAX): Remove definition.
3167 2014-07-11 Gary Benson <gbenson@redhat.com>
3169 * i386-linux-nat.h: New file.
3170 * x86-linux-nat.h: Likewise.
3171 * x86-linux-nat.c: Likewise.
3172 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3173 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3174 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3175 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3176 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3177 (PTRACE_SETREGSET): Likewise.
3178 (arch_lwp_info): Now in x86-linux-nat.c.
3179 (have_ptrace_getregset): Now in x86-linux-nat.h.
3180 (x86_linux_dr_get): Now in x86-linux-nat.c.
3181 (x86_linux_dr_set): Likewise.
3182 (x86_linux_dr_get_addr): Likewise.
3183 (x86_linux_dr_get_control): Likewise.
3184 (x86_linux_dr_get_status): Likewise.
3185 (update_debug_registers_callback): Likewise.
3186 (x86_linux_dr_set_control): Likewise.
3187 (x86_linux_dr_set_addr): Likewise.
3188 (x86_linux_prepare_to_resume): Likewise.
3189 (x86_linux_new_thread): Likewise.
3190 (x86_linux_new_fork): Likewise.
3191 (x86_linux_get_thread_area): Likewise.
3192 (super_post_startup_inferior): Likewise.
3193 (x86_linux_child_post_startup_inferior): Likewise.
3194 (AMD64_LINUX_USER64_CS): Likewise.
3195 (AMD64_LINUX_X32_DS): Likewise.
3196 (x86_linux_read_description): Likewise.
3197 (x86_linux_enable_btrace): Likewise.
3198 (x86_linux_disable_btrace): Likewise.
3199 (x86_linux_teardown_btrace): Likewise.
3200 (x86_linux_read_btrace): Likewise.
3201 (x86_linux_create_target): Likewise.
3202 (x86_linux_add_target): Likewise.
3203 * i386-linux-nat.c (x86-linux-nat.h): New include.
3204 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3205 (PTRACE_SETREGSET): Likewise.
3206 (arch_lwp_info): Now in x86-linux-nat.c.
3207 (have_ptrace_getregset): Now in x86-linux-nat.h.
3208 (x86_linux_dr_get): Now in x86-linux-nat.c.
3209 (x86_linux_dr_set): Likewise.
3210 (x86_linux_dr_get_addr): Likewise.
3211 (x86_linux_dr_get_control): Likewise.
3212 (x86_linux_dr_get_status): Likewise.
3213 (update_debug_registers_callback): Likewise.
3214 (x86_linux_dr_set_control): Likewise.
3215 (x86_linux_dr_set_addr): Likewise.
3216 (x86_linux_prepare_to_resume): Likewise.
3217 (x86_linux_new_thread): Likewise.
3218 (x86_linux_new_fork): Likewise.
3219 (x86_linux_get_thread_area): Likewise.
3220 (super_post_startup_inferior): Likewise.
3221 (x86_linux_child_post_startup_inferior): Likewise.
3222 (AMD64_LINUX_USER64_CS): Likewise.
3223 (AMD64_LINUX_X32_DS): Likewise.
3224 (x86_linux_read_description): Likewise.
3225 (x86_linux_enable_btrace): Likewise.
3226 (x86_linux_disable_btrace): Likewise.
3227 (x86_linux_teardown_btrace): Likewise.
3228 (x86_linux_read_btrace): Likewise.
3229 (x86_linux_create_target): Likewise.
3230 (x86_linux_add_target): Likewise.
3232 2014-07-11 Gary Benson <gbenson@redhat.com>
3234 * amd64-linux-nat.c: Comment and whitespace changes.
3235 * i386-linux-nat.c: Comment and whitespace changes.
3237 2014-07-11 Gary Benson <gbenson@redhat.com>
3239 * amd64-linux-nat.c (x86_linux_create_target): New function.
3240 (x86_linux_add_target): Likewise.
3241 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3242 * i386-linux-nat.c (x86_linux_create_target): New function.
3243 (x86_linux_add_target): Likewise.
3244 (_initialize_i386_linux_nat): Delegate to the above new functions.
3246 2014-07-11 Gary Benson <gbenson@redhat.com>
3248 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3249 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3250 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3251 (ps_get_thread_area): Delegate to the above.
3253 2014-07-11 Gary Benson <gbenson@redhat.com>
3255 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3256 x86_linux_read_description. All uses updated. amd64-specific
3257 code conditionalized. Conditionalized i386-specific code added.
3258 Redundant cast removed.
3259 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3260 x86_linux_read_description. All uses updated. i386-specific
3261 code conditionalized. Conditionalized amd64-specific code added.
3262 One sizeof replaced with the actual type it is describing.
3264 2014-07-11 Gary Benson <gbenson@redhat.com>
3266 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3267 x86_linux_dr_get. All uses updated.
3268 (amd64_linux_dr_set): Renamed to
3269 x86_linux_dr_set. All uses updated.
3270 (amd64_linux_dr_get_addr): Renamed to
3271 x86_linux_dr_get_addr. All uses updated.
3272 (amd64_linux_dr_get_control): Renamed to
3273 x86_linux_dr_get_control. All uses updated.
3274 (amd64_linux_dr_get_status): Renamed to
3275 x86_linux_dr_get_status. All uses updated.
3276 (amd64_linux_dr_set_control): Renamed to
3277 x86_linux_dr_set_control. All uses updated.
3278 (amd64_linux_dr_set_addr): Renamed to
3279 x86_linux_dr_set_addr. All uses updated.
3280 (amd64_linux_prepare_to_resume): Renamed to
3281 x86_linux_prepare_to_resume. All uses updated.
3282 (amd64_linux_new_thread): Renamed to
3283 x86_linux_new_thread. All uses updated.
3284 (amd64_linux_new_fork): Renamed to
3285 x86_linux_new_fork. All uses updated.
3286 (amd64_linux_child_post_startup_inferior): Renamed to
3287 x86_linux_child_post_startup_inferior. All uses updated.
3288 (amd64_linux_enable_btrace): Renamed to
3289 x86_linux_enable_btrace. All uses updated.
3290 (amd64_linux_disable_btrace): Renamed to
3291 x86_linux_disable_btrace. All uses updated.
3292 (amd64_linux_teardown_btrace): Renamed to
3293 x86_linux_teardown_btrace. All uses updated.
3294 (amd64_linux_read_btrace): Renamed to
3295 x86_linux_read_btrace. All uses updated.
3296 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3297 x86_linux_dr_get. All uses updated.
3298 (i386_linux_dr_set): Renamed to
3299 x86_linux_dr_set. All uses updated.
3300 (i386_linux_dr_get_addr): Renamed to
3301 x86_linux_dr_get_addr. All uses updated.
3302 (i386_linux_dr_get_control): Renamed to
3303 x86_linux_dr_get_control. All uses updated.
3304 (i386_linux_dr_get_status): Renamed to
3305 x86_linux_dr_get_status. All uses updated.
3306 (i386_linux_dr_set_control): Renamed to
3307 x86_linux_dr_set_control. All uses updated.
3308 (i386_linux_dr_set_addr): Renamed to
3309 x86_linux_dr_set_addr. All uses updated.
3310 (i386_linux_prepare_to_resume): Renamed to
3311 x86_linux_prepare_to_resume. All uses updated.
3312 (i386_linux_new_thread): Renamed to
3313 x86_linux_new_thread. All uses updated.
3314 (i386_linux_new_fork): Renamed to
3315 x86_linux_new_fork. All uses updated.
3316 (i386_linux_child_post_startup_inferior): Renamed to
3317 x86_linux_child_post_startup_inferior. All uses updated.
3318 (i386_linux_enable_btrace): Renamed to
3319 x86_linux_enable_btrace. All uses updated.
3320 (i386_linux_disable_btrace): Renamed to
3321 x86_linux_disable_btrace. All uses updated.
3322 (i386_linux_teardown_btrace): Renamed to
3323 x86_linux_teardown_btrace. All uses updated.
3324 (i386_linux_read_btrace): Renamed to
3325 x86_linux_read_btrace. All uses updated.
3327 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3329 * remote.c (extended_remote_post_attach): New function.
3330 (init_extended_remote_ops): Install it as to_post_attach method.
3332 2014-07-09 Pedro Alves <palves@redhat.com>
3334 * infcmd.c (attach_command_post_wait): Don't call
3335 target_terminal_inferior here.
3336 (attach_command): Call it here instead.
3338 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3340 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3342 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3343 from varobj.c, with additional checks.
3344 (c_varobj_ops): Fill in is_path_expr_parent field.
3345 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3346 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3348 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3350 (varobj_default_is_path_expr_parent): New function.
3351 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3352 (varobj_default_is_path_expr_parent): Declare new function.
3354 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3356 * infcmd.c (finish_backward): Turn internal error into normal error.
3358 2014-07-07 Pedro Alves <palves@redhat.com>
3361 * remote.c (async_handle_remote_sigint)
3362 (async_handle_remote_sigint_twice): Call
3363 gdb_call_async_signal_handler instead of
3364 mark_async_signal_handler.
3366 2014-07-07 Tom Tromey <tromey@redhat.com>
3368 * target-delegates.c: Rebuild.
3369 * target.c (target_info_record): Remove.
3370 * record.c (info_record_command): Unconditionally call
3372 * target.h (struct target_ops) <to_info_record>: Use
3373 TARGET_DEFAULT_IGNORE.
3374 (target_info_record): Remove.
3376 2014-07-07 Tom Tromey <tromey@redhat.com>
3378 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3379 TARGET_DEFAULT_NORETURN.
3380 * target.c (generic_tls_error): New function.
3381 (target_translate_tls_address): Don't search target stack.
3382 * target-delegates.c: Rebuild.
3383 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3385 * linux-thread-db.c (thread_db_get_thread_local_address):
3386 Unconditionally call beneath target.
3388 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3390 * cli/cli-logging.c (pop_output_files): Assign targerr to
3393 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3395 * MAINTAINERS (Write After Approval): Update my email address.
3397 2014-07-02 Gary Benson <gbenson@redhat.com>
3399 * proc-service.c (ps_xfer_memory): Update comment.
3400 (ps_pstop): Remove unused function.
3401 (ps_pcontinue): Likewise.
3402 (ps_lstop): Likewise.
3403 (ps_lcontinue): Likewise.
3404 (ps_lgetxregsize): Likewise.
3405 (ps_lgetxregs): Likewise.
3406 (ps_lsetxregs): Likewise.
3407 (ps_plog): Likewise.
3408 (ps_ptread): Likewise.
3409 (ps_ptwrite): Likewise.
3411 2014-07-01 Mark Wielaard <mjw@redhat.com>
3413 * dwarf2read.c (add_array_cv_type): New function.
3414 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3415 (read_tag_volatile_type): Likewise.
3417 2014-07-01 Tom Tromey <tromey@redhat.com>
3419 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3420 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3421 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3422 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3423 * command.h (cmd_cfunc_ftype): Move earlier.
3424 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3425 (add_com, add_info): Use cmd_cfunc_ftype.
3427 2014-06-30 Tom Tromey <tromey@redhat.com>
3429 * symtab.c (operator_chars): Make parameters and return type
3431 (file_matches): Make "files" const.
3432 (struct search_symbols_data) <files>: Now const.
3433 (search_symbols): Make "regexp" and "files" parameters const.
3435 (symtab_symbol_info): Remove cast.
3436 (rbreak_command): Update.
3437 * symtab.h (search_symbols): Update.
3439 2014-06-27 Yao Qi <yao@codesourcery.com>
3441 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3442 Change parameter type to 'struct thread_info *'. Caller
3444 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3446 * dummy-frame.c (struct dummy_frame_id): New.
3447 (dummy_frame_id_eq): New function.
3448 (struct dummy_frame) <id>: Change its type to 'struct
3450 (dummy_frame_push): Add parameter ptid and save it in
3452 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3454 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3456 (lookup_dummy_frame): Change parameter type to 'struct
3457 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3458 instead of frame_id_eq.
3459 (dummy_frame_pop): Add parameter ptid. Callers updated.
3460 Update comments. Compose dummy_frame_id and pass it to
3462 (dummy_frame_discard): Add parameter ptid.
3463 (dummy_frame_sniffer): Compose dummy_frame_id and call
3464 dummy_frame_id_eq instead of frame_id_eq.
3465 (fprint_dummy_frames): Print ptid.
3466 * dummy-frame.h: Remove comments.
3467 (dummy_frame_push): Add ptid in declaration.
3468 (dummy_frame_pop, dummy_frame_discard): Likewise.
3470 2014-06-26 Tom Tromey <tromey@redhat.com>
3472 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3473 * command.h (error_no_arg): Update.
3475 2014-06-26 Tom Tromey <tromey@redhat.com>
3477 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3478 (do_show_command): Make "arg" const.
3479 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3481 2014-06-26 Tom Tromey <tromey@redhat.com>
3483 * record-full.c (record_full_get_bookmark): Make "args" const.
3484 (record_full_goto_bookmark): Make "raw_bookmark" const.
3485 * record.c (record_goto): New function.
3486 (cmd_record_goto): Use it. Now static.
3487 * record.h (record_goto): Declare.
3488 (cmd_record_goto): Remove declaration.
3489 * target-delegates.c: Rebuild.
3490 * target.h (struct target_ops) <to_get_bookmark,
3491 to_goto_bookmark>: Make parameter const.
3493 2014-06-26 Tom Tromey <tromey@redhat.com>
3495 * defs.h (generic_load): Update.
3496 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3497 * monitor.c (monitor_load): Make "args" const.
3498 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3499 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3501 (mips_load): Make "file" const.
3502 * remote-sim.c (gdbsim_load): Make "args" const.
3503 * remote.c (remote_load): Make "name" const.
3504 * symfile.c (generic_load): Make "args" const.
3505 * target-delegates.c: Rebuild.
3506 * target.c (target_load): Make "arg" const.
3507 (debug_to_load): Make "args" const.
3508 * target.h (struct target_ops) <to_load>: Make parameter const.
3509 (target_load): Update.
3511 2014-06-26 Tom Tromey <tromey@redhat.com>
3514 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3515 (dwarf2_physname, read_partial_die)
3516 (guess_partial_die_structure_name, fixup_partial_die)
3517 (guess_full_die_structure_name, anonymous_struct_prefix)
3518 (dwarf2_name): Use per-BFD obstack.
3520 2014-06-26 Yao Qi <yao@codesourcery.com>
3522 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3523 dummyframe and this_id into inner block below.
3525 2014-06-26 Yao Qi <yao@codesourcery.com>
3527 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3528 with "signal_pass[0]" in the initialization of signal_pass.
3530 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3532 * record-btrace.c (record_btrace_generating_corefile)
3533 (record_btrace_prepare_to_generate_core)
3534 (record_btrace_done_generating_core): New.
3535 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3536 (record_btrace_store_registers, record_btrace_prepare_to_store):
3537 Forward request when generating a core file.
3538 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3539 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3540 to_done_generating_core.
3542 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3544 * target.h (target_ops) <to_prepare_to_generate_core>
3545 <to_done_generating_core>: New.
3546 (target_prepare_to_generate_core, target_done_generating_core): New.
3547 * target.c (target_prepare_to_generate_core)
3548 (target_done_generating_core): New.
3549 * target-delegates.c: Regenerate.
3550 * gcore.c: (write_gcore_file): Rename to ...
3551 (write_gcore_file_1): ...this.
3552 (write_gcore_file): Call target_prepare_to_generate_core
3553 and target_done_generating_core.
3555 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3557 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3558 * gcore.c (write_gcore_file): Free memory returned from
3559 make_corefile_notes.
3560 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3561 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3563 2014-06-24 Yao Qi <yao@codesourcery.com>
3565 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3566 (arm_linux_init_abi): Set skip_trampoline_code with
3567 gdbarch_skip_trampoline_code instead of
3568 find_solib_trampoline_target.
3570 2014-06-24 Yao Qi <yao@codesourcery.com>
3572 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3573 arm_skip_bx_reg returns non-zero.
3575 2014-06-24 Yao Qi <yao@codesourcery.com>
3577 * arm-tdep.c (arm_skip_bx_reg): New function.
3578 (arm_skip_stub): Call arm_skip_bx_reg.
3580 2014-06-23 Don Breazeal <donb@codesourcery.com>
3582 * MAINTAINERS: Add myself as write-after-approval maintainer.
3584 2014-06-23 Pedro Alves <palves@redhat.com>
3586 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3587 DR_CONTROL before setting DR0..DR3.
3588 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3589 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3590 bits of DR_CONTROL related to the debug register slot being
3591 disabled. If all slots are vacant, clear local slowdown as well,
3592 and assert DR_CONTROL is 0.
3594 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3596 * python/lib/gdb/command/xmethods.py
3597 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3598 current progspace only if the string "progspace" matches LOCUS_RE.
3600 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3602 Fix --with-system-readline with readline-6.3 patch 5.
3603 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3604 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3607 2014-06-20 Tom Tromey <tromey@redhat.com>
3609 * dwarf2read.c (dw2_get_real_path): Use correct type in
3611 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3613 2014-06-20 Gary Benson <gbenson@redhat.com>
3615 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3616 * common/glibc_thread_db.h: Likewise.
3617 * common/i386-cpuid.h: Likewise.
3618 * common/i386-gcc-cpuid.h: Likewise.
3619 * common/linux-btrace.h: Likewise.
3620 * common/linux-osdata.h: Likewise.
3621 * common/linux-procfs.h: Likewise.
3622 * common/linux-ptrace.h: Likewise.
3623 * common/mips-linux-watch.h: Likewise.
3624 * common/linux-btrace.c: Moved to nat.
3625 * common/linux-osdata.c: Likewise.
3626 * common/linux-procfs.c: Likewise.
3627 * common/linux-ptrace.c: Likewise.
3628 * common/mips-linux-watch.c: Likewise.
3629 * nat/gdb_thread_db.h: Moved from common.
3630 * nat/glibc_thread_db.h: Likewise.
3631 * nat/i386-cpuid.h: Likewise.
3632 * nat/i386-gcc-cpuid.h: Likewise.
3633 * nat/linux-btrace.c: Likewise.
3634 * nat/linux-btrace.h: Likewise.
3635 * nat/linux-osdata.c: Likewise.
3636 * nat/linux-osdata.h: Likewise.
3637 * nat/linux-procfs.c: Likewise.
3638 * nat/linux-procfs.h: Likewise.
3639 * nat/linux-ptrace.c: Likewise.
3640 * nat/linux-ptrace.h: Likewise.
3641 * nat/mips-linux-watch.c: Likewise.
3642 * nat/mips-linux-watch.h: Likewise.
3643 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3644 (object file files): Reordered.
3645 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3646 of glibc_thread_db.h.
3648 2014-06-20 Gary Benson <gbenson@redhat.com>
3650 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3651 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3652 (i386_dr_low): Likewise.
3653 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3654 (i386_dr_low_set_addr): Likewise.
3655 (i386_dr_low_get_addr): Likewise.
3656 (i386_dr_low_can_set_control): Likewise.
3657 (i386_dr_low_set_control): Likewise.
3658 (i386_dr_low_get_control): Likewise.
3659 (i386_dr_low_get_status): Likewise.
3660 (i386_get_debug_register_length): Likewise.
3661 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3662 (i386_dr_low): Likewise.
3663 * nat/i386-dregs.c (i386-low.h): Remove include.
3664 (i386-nat.h): Likewise.
3665 (nat/i386-dregs.h): New include.
3666 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3667 (i386_dr_low_set_addr): Likewise.
3668 (i386_dr_low_get_addr): Likewise.
3669 (i386_dr_low_can_set_control): Likewise.
3670 (i386_dr_low_set_control): Likewise.
3671 (i386_dr_low_get_control): Likewise.
3672 (i386_dr_low_get_status): Likewise.
3673 (i386_get_debug_register_length): Likewise.
3674 (debug_hw_points): Likewise.
3676 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3678 * Makefile.in (SFILES): Add d-exp.y.
3679 (YYFILES): Add d-exp.c.
3680 (YYOBJ): Add d-exp.o.
3681 (local-maintainer-clean): Delete d-exp.c.
3682 * d-exp.y: New file.
3683 * d-lang.h (d_parse): New declaration.
3684 (d_error): New declaration.
3685 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3686 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3687 PREC_ORDER operators.
3688 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3690 2014-06-19 Yao Qi <yao@codesourcery.com>
3692 * gdbthread.h (any_running): Remove the declaration.
3693 * thread.c (any_running): Remove.
3695 2014-06-19 Yao Qi <yao@codesourcery.com>
3697 * gdbthread.h (struct thread_info) <state>: Change its type to
3698 'enum thread_state'. Update comments.
3700 2014-06-19 Pedro Alves <palves@redhat.com>
3702 * gdbthread.h (ALL_THREADS): Delete.
3703 (ALL_NON_EXITED_THREADS): New macro.
3704 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3705 instead of ALL_THREADS.
3706 * infrun.c (find_thread_needs_step_over)
3707 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3708 instead of ALL_THREADS.
3709 * record-btrace.c (record_btrace_open)
3710 (record_btrace_stop_recording, record_btrace_close)
3711 (record_btrace_is_replaying, record_btrace_resume)
3712 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3713 * remote.c (append_pending_thread_resumptions): Likewise.
3714 * thread.c (thread_apply_all_command): Likewise.
3716 2014-06-19 Gary Benson <gbenson@redhat.com>
3718 * i386-nat.c (i386_stopped_by_watchpoint):
3719 Use i386_dr_stopped_by_watchpoint.
3720 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3721 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3723 2014-06-19 Gary Benson <gbenson@redhat.com>
3725 * nat/i386-dregs.c: New file.
3726 * Makefile.in (i386-dregs.o): New rule.
3727 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3728 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3729 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3730 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3731 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3732 * config/i386/go32.mh (NATDEPFILES): Likewise.
3733 * config/i386/linux.mh (NATDEPFILES): Likewise.
3734 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3735 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3736 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3737 * i386-nat.h (debug_hw_points): New declaration.
3738 * i386-nat.c (breakpoint.h): Remove include.
3739 (command.h): Likewise.
3740 (target.h): Likewise.
3741 (gdb_assert.h): Likewise.
3742 (debug_hw_points): Made nonstatic.
3743 (debug_printf): Now in i386-dregs.c.
3744 (TARGET_HAS_DR_LEN_8): Likewise.
3745 (DR_CONTROL_SHIFT): Likewise.
3746 (DR_CONTROL_SIZE): Likewise.
3747 (DR_RW_EXECUTE): Likewise.
3748 (DR_RW_WRITE): Likewise.
3749 (DR_RW_READ): Likewise.
3750 (DR_RW_IORW): Likewise.
3751 (DR_LEN_1): Likewise.
3752 (DR_LEN_2): Likewise.
3753 (DR_LEN_4): Likewise.
3754 (DR_LEN_8): Likewise.
3755 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3756 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3757 (DR_ENABLE_SIZE): Likewise.
3758 (DR_LOCAL_SLOWDOWN): Likewise.
3759 (DR_GLOBAL_SLOWDOWN): Likewise.
3760 (DR_CONTROL_RESERVED): Likewise.
3761 (I386_DR_CONTROL_MASK): Likewise.
3762 (I386_DR_VACANT): Likewise.
3763 (I386_DR_LOCAL_ENABLE): Likewise.
3764 (I386_DR_GLOBAL_ENABLE): Likewise.
3765 (I386_DR_DISABLE): Likewise.
3766 (I386_DR_SET_RW_LEN): Likewise.
3767 (I386_DR_GET_RW_LEN): Likewise.
3768 (I386_DR_WATCH_HIT): Likewise.
3769 (i386_wp_op_t): Likewise.
3770 (i386_show_dr): Likewise.
3771 (i386_length_and_rw_bits): Likewise.
3772 (i386_insert_aligned_watchpoint): Likewise.
3773 (i386_remove_aligned_watchpoint): Likewise.
3774 (i386_handle_nonaligned_watchpoint): Likewise.
3775 (i386_update_inferior_debug_regs): Likewise.
3776 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3777 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3778 (i386_region_ok_for_watchpoint):
3779 Use i386_dr_region_ok_for_watchpoint.
3780 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3782 2014-06-19 Gary Benson <gbenson@redhat.com>
3784 * i386-nat.c (i386_insert_hw_breakpoint): Use
3785 i386_insert_watchpoint.
3786 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3788 2014-06-19 Gary Benson <gbenson@redhat.com>
3790 * i386-nat.c (i386_dr_show): Renamed to
3791 i386_show_dr and made static. All uses updated.
3792 (i386_dr_length_and_rw_bits): Renamed to
3793 i386_length_and_rw_bits and made static.
3795 (i386_dr_insert_aligned_watchpoint): Renamed to
3796 i386_insert_aligned_watchpoint and made static.
3798 (i386_dr_remove_aligned_watchpoint): Renamed to
3799 i386_remove_aligned_watchpoint and made static.
3801 (i386_dr_update_inferior_debug_regs): Renamed to
3802 i386_update_inferior_debug_regs and made static.
3804 * nat/i386-dregs.h (i386_dr_show): Removed.
3805 (i386_dr_length_and_rw_bits): Likewise.
3806 (i386_dr_insert_aligned_watchpoint): Likewise.
3807 (i386_dr_remove_aligned_watchpoint): Likewise.
3808 (i386_dr_update_inferior_debug_regs): Likewise.
3810 2014-06-19 Gary Benson <gbenson@redhat.com>
3812 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3813 * configure: Regenerate.
3814 * config.in: Likewise.
3815 * main.c (signal.h): New include.
3816 (setup_alternate_signal_stack): New function.
3817 (captured_main): Call the above.
3818 * cp-support.c (signal.h): New include.
3819 (catch_demangler_crashes): New flag.
3820 (SIGJMP_BUF): New define.
3821 (SIGSETJMP): Likewise.
3822 (SIGLONGJMP): Likewise.
3823 (gdb_demangle_jmp_buf): New static global.
3824 (gdb_demangle_attempt_core_dump): Likewise.
3825 (gdb_demangle_signal_handler): New function.
3826 (gdb_demangle): If catch_demangler_crashes is set, install the
3827 above signal handler before calling bfd_demangle, and restore
3828 the original signal handler afterwards. Display the offending
3829 symbol and call demangler_warning the first time a segmentation
3831 (_initialize_cp_support): New maint set/show command.
3833 2014-06-19 Gary Benson <gbenson@redhat.com>
3835 * utils.h (resource_limit_kind): New enum.
3836 (can_dump_core): New declaration.
3837 (warn_cant_dump_core): Likewise.
3838 (dump_core): Likewise.
3839 * utils.c (dump_core): Made nonstatic. Added new
3840 parameter "limit_kind".
3841 (can_dump_core): Made nonstatic. Moved printing code to...
3842 (warn_cant_dump_core): New function.
3843 (can_dump_core_warn): Likewise.
3844 (internal_vproblem): Replace calls to can_dump_core with
3845 calls to can_dump_core_warn. Supply new argument to each.
3847 2014-06-19 Gary Benson <gbenson@redhat.com>
3849 * utils.h (demangler_vwarning): New declaration.
3850 (demangler_warning): Likewise.
3851 * utils.c (struct internal_problem)
3852 <user_settable_should_quit>: New field.
3853 <user_settable_should_dump_core>: Likewise
3854 (internal_error_problem): Add values for above new fields.
3855 (internal_warning_problem): Likewise.
3856 (demangler_warning_problem): New static global.
3857 (demangler_vwarning): New function.
3858 (demangler_warning): Likewise.
3859 (add_internal_problem_command): Selectively add commands.
3860 (_initialize_utils): New internal problem command.
3861 * maint.c (maintenance_demangler_warning): New function.
3862 (_initialize_maint_cmds): New command.
3864 2014-06-18 Tom Tromey <tromey@redhat.com>
3866 * f-valprint.c (info_common_command_for_block): Update.
3867 * symtab.h (struct general_symbol_info) <common_block>: Now
3870 2014-06-18 Tom Tromey <tromey@redhat.com>
3872 * symtab.h (struct symtab) <blockvector>: Now const.
3873 * ada-lang.c (ada_add_global_exceptions): Update.
3874 * buildsym.c (augment_type_symtab): Update.
3875 * dwarf2read.c (dw2_lookup_symbol): Update.
3876 * jit.c (finalize_symtab): Update.
3877 * jv-lang.c (add_class_symtab_symbol): Update.
3878 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3880 * objfiles.c (objfile_relocate1): Update.
3881 * psymtab.c (lookup_symbol_aux_psymtabs)
3882 (maintenance_check_psymtabs): Update.
3883 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3885 * spu-tdep.c (spu_catch_start): Update.
3886 * symmisc.c (dump_symtab_1): Update.
3887 * symtab.c (lookup_global_symbol_from_objfile)
3888 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3889 (basic_lookup_transparent_type_quick)
3890 (basic_lookup_transparent_type, find_pc_sect_symtab)
3891 (find_pc_sect_line, search_symbols): Update.
3892 * block.c (find_block_in_blockvector): Make "bl" const.
3893 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3895 (blockvector_contains_pc): Make "bv" const.
3896 (block_for_pc_sect): Update.
3897 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3898 (blockvector_contains_pc): Update.
3899 * breakpoint.c (resolve_sal_pc): Update.
3900 * inline-frame.c (block_starting_point_at): Update.
3902 2014-06-18 Tom Tromey <tromey@redhat.com>
3904 * completer.c (complete_line): Make "line_buffer" const.
3905 * completer.h (complete_line): Update.
3907 2014-06-18 Tom Tromey <tromey@redhat.com>
3909 * symtab.c (add_macro_name): Remove unneeded cast.
3911 2014-06-18 Tom Tromey <tromey@redhat.com>
3913 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3914 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3916 2014-06-18 Tom Tromey <tromey@redhat.com>
3918 * probe.c (info_probes_for_ops): Make "arg" const.
3919 * probe.h (info_probes_for_ops): Update.
3921 2014-06-18 Tom Tromey <tromey@redhat.com>
3923 * varobj.c (varobj_create): Update.
3924 * valops.c (value_of_this): Update.
3925 * tracepoint.c (add_local_symbols, scope_info): Update.
3926 * symtab.h (struct general_symbol_info) <block>: Now const.
3927 * symtab.c (skip_prologue_sal)
3928 (default_make_symbol_completion_list_break_on)
3929 (skip_prologue_using_sal): Update.
3930 * stack.h (iterate_over_block_locals)
3931 (iterate_over_block_local_vars): Update.
3932 * stack.c (print_frame_args): Update.
3933 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3935 (get_selected_block): Make return type const.
3936 * python/py-frame.c (frapy_block): Update.
3937 * python/py-block.c (gdbpy_block_for_pc): Update.
3938 * p-exp.y (%union) <bval>: Now const.
3939 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3940 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3941 * m2-exp.y (%union) <bval>: Now const.
3942 * linespec.c (get_current_search_block): Make return type const.
3943 (create_sals_line_offset, find_label_symbols): Update.
3944 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3946 (block_starting_point_at): Make "block" const.
3947 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3948 (check_exception_resume): Update.
3949 * guile/scm-frame.c (gdbscm_frame_block): Update.
3950 * guile/scm-block.c (gdbscm_lookup_block): Update.
3951 * frame.h (get_frame_block): Update.
3952 (get_selected_block): Make return type const.
3953 * frame.c (frame_id_inner): Update.
3954 * f-valprint.c (info_common_command_for_block)
3955 (info_common_command): Update.
3956 * dwarf2loc.c (dwarf2_find_location_expression)
3957 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3958 (locexpr_describe_location_piece): Update.
3959 * c-exp.y (%union) <bval>: Now const.
3960 * breakpoint.c (resolve_sal_pc): Update.
3961 * blockframe.c (get_frame_block):Make return type const.
3962 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3963 (block_innermost_frame): Update.
3964 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3965 (block_for_pc, block_for_pc_sect): Update.
3966 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3968 (block_for_pc_sect, block_for_pc): Make return type const.
3969 * ax-gdb.c (gen_expr): Update.
3970 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3971 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3972 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3973 (ada_read_var_value): Update.
3974 * ada-exp.y (struct name_info) <block>: Now const.
3976 (block_lookup): Constify.
3978 2014-06-18 Gary Benson <gbenson@redhat.com>
3980 * nat/i386-dregs.h: New file.
3981 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3982 * i386-nat.h (i386-dregs.h): New include.
3983 (DR_FIRSTADDR): Now in i386-dregs.h.
3984 (DR_LASTADDR): Likewise.
3985 (DR_NADDR): Likewise.
3986 (DR_STATUS): Likewise.
3987 (DR_CONTROL): Likewise.
3988 (i386_debug_reg_state): Likewise.
3989 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3991 2014-06-18 Don Breazeal <donb@codesourcery.com>
3993 * breakpoint.c (set_longjmp_breakpoint): Call
3994 momentary_breakpoint_from_master with additional argument.
3995 (set_longjmp_breakpoint_for_call_dummy): Call
3996 momentary_breakpoint_from_master with additional argument.
3997 (set_std_terminate_breakpoint): Call
3998 momentary_breakpoint_from_master with additional argument.
3999 (momentary_breakpoint_from_master): Add argument to function
4000 definition and use it to initialize structure member flag.
4001 (clone_momentary_breakpoint): Call
4002 momentary_breakpoint_from_master with additional argument.
4003 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4004 member flags set in momentary_breakpoint_from_master.
4006 2014-06-18 Gary Benson <gbenson@redhat.com>
4008 * i386-nat.c (i386_show_dr): Renamed to
4009 i386_dr_show and made nonstatic. All uses updated.
4010 (i386_length_and_rw_bits): Renamed to
4011 i386_dr_length_and_rw_bits and made nonstatic.
4013 (i386_insert_aligned_watchpoint): Renamed to
4014 i386_dr_insert_aligned_watchpoint and made nonstatic.
4016 (i386_remove_aligned_watchpoint): Renamed to
4017 i386_dr_remove_aligned_watchpoint and made nonstatic.
4019 (i386_update_inferior_debug_regs): Renamed to
4020 i386_dr_update_inferior_debug_regs and made nonstatic.
4023 2014-06-18 Gary Benson <gbenson@redhat.com>
4025 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4026 (i386_dr_low_can_set_control): Likewise.
4027 (i386_dr_low_set_addr): Likewise.
4028 (i386_dr_low_set_control): Likewise.
4029 (i386_dr_low_get_addr): Likewise.
4030 (i386_dr_low_get_status): Likewise.
4031 (i386_dr_low_get_control): Likewise.
4032 (i386_insert_aligned_watchpoint): Use new macros.
4033 (i386_update_inferior_debug_regs): Likewise.
4034 (i386_stopped_data_address): Likewise.
4036 2014-06-18 Gary Benson <gbenson@redhat.com>
4038 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4039 New parameter. All uses updated.
4041 2014-06-18 Gary Benson <gbenson@redhat.com>
4043 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4046 2014-06-18 Gary Benson <gbenson@redhat.com>
4048 * i386-nat.c (debug_printf): New macro.
4049 (i386_get_debug_register_length): Likewise.
4050 (TARGET_HAS_DR_LEN_8): Use above macro.
4051 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4052 and printf_unfiltered. Use phex to format values.
4054 2014-06-18 Gary Benson <gbenson@redhat.com>
4056 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4059 2014-06-18 Gary Benson <gbenson@redhat.com>
4061 * i386-nat.c: Comment changes.
4063 2014-06-18 Gary Benson <gbenson@redhat.com>
4065 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4067 2014-06-18 Gary Benson <gbenson@redhat.com>
4069 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4070 (i386_insert_aligned_watchpoint): Likewise.
4071 (i386_remove_aligned_watchpoint): Likewise.
4072 (i386_handle_nonaligned_watchpoint): Likewise.
4074 2014-06-18 Gary Benson <gbenson@redhat.com>
4076 * i386-nat.c: Whitespace changes.
4078 2014-06-17 Samuel Bronson <naesten@gmail.com>
4080 * MAINTAINERS: Update Roland McGrath's email address.
4081 Thanks to Sergio Durigan Junior for pointing out that he left
4082 Red Hat a while ago, and giving me a current address.
4084 2014-06-17 Tom Tromey <tromey@redhat.com>
4086 * utils.h (savestring): Remove declaration.
4088 2014-06-17 Tom Tromey <tromey@redhat.com>
4090 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4092 2014-06-16 Keith Seitz <keiths@redhat.com>
4095 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4096 to update the varobj if inferior_ptid is null_ptid.
4098 2014-06-16 Tom Tromey <tromey@redhat.com>
4100 * target.h (struct target_ops) <to_info_proc>: Make parameter
4102 (target_info_proc): Update.
4103 * target.c (target_info_proc): Make "args" const.
4104 * procfs.c (procfs_info_proc): Update.
4105 * linux-tdep.c (linux_info_proc): Update.
4106 (linux_core_info_proc_mappings): Make "args" const.
4107 (linux_core_info_proc): Update.
4108 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4109 * gdbarch.c: Rebuild.
4110 * gdbarch.h: Rebuild.
4111 * corelow.c (core_info_proc): Update.
4113 2014-06-16 Tom Tromey <tromey@redhat.com>
4115 * target.h (struct target_ops) <to_disconnect>: Make parameter
4117 (target_disconnect): Update.
4118 * target.c (target_disconnect): Make "args" const.
4119 * target-delegates.c: Rebuild.
4120 * remote.c (remote_disconnect): Update.
4121 * record.h (record_disconnect): Update.
4122 * record.c (record_disconnect): Update.
4123 * inf-child.c (inf_child_disconnect): Update.
4125 2014-06-16 Tom Tromey <tromey@redhat.com>
4127 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4128 * target.c (debug_to_rcmd, default_rcmd): Update.
4129 * target-delegates.c: Rebuild.
4130 * remote.c (remote_rcmd): Update.
4131 * monitor.c (monitor_rcmd): Update.
4133 2014-06-16 Pedro Alves <palves@redhat.com>
4135 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4136 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4137 have OBJF_SHARED set.
4138 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4139 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4140 instead of OBJF_USERLOADED.
4141 * objfiles.h (OBJF_SHARED): Update comment.
4142 (userloaded_objfile_contains_address_p): Rename to ...
4143 (shared_objfile_contains_address_p): ... this, and update
4145 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4147 (remove_symbol_file_command): Skip objfiles that don't have
4150 2014-06-16 Tom Tromey <tromey@redhat.com>
4152 * minsyms.h (prim_record_minimal_symbol)
4153 (prim_record_minimal_symbol_and_info): Update comments.
4155 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4157 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4158 or --without-guile, according to how GDB was built.
4160 2014-06-13 Tom Tromey <tromey@redhat.com>
4162 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4164 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4166 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4168 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4169 help_list.Pass all_commands, not -1, to help_list.
4170 * cli/cli-dump.c (dump_command, append_command)
4171 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4172 (binary_dump_command, binary_append_command): Pass all_commands,
4173 not -1, to help_list.
4174 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4176 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4178 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4180 * top.c (set_history): Pass all_commands, not -1, to help_list.
4181 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4182 all_commands, not -1, to help_list.
4183 * symfile.c (overlay_command): Pass all_commands, not -1, to
4185 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4187 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4189 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4191 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4192 not -1, to help_list.
4193 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4194 not -1, to help_list.
4195 * maint.c (maintenance_command, maintenance_info_command)
4196 (maintenance_print_command, maintenance_set_cmd): Pass
4197 all_commands, not -1, to help_list.
4198 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4200 * language.c (set_check): Pass all_commands, not -1, to help_list.
4201 * infcmd.c (unset_command): Pass all_commands, not -1, to
4203 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4205 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4207 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4209 * breakpoint.c (save_command): Pass all_commands, not -1, to
4211 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4212 all_commands, not -1, to help_list.
4214 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4216 * regcache.c (struct register_to_invalidate): New structure.
4217 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4219 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4221 2014-06-12 Yao Qi <yao@codesourcery.com>
4223 * varobj.c (varobj_get_num_children): Call
4224 varobj_is_dynamic_p.
4225 (varobj_list_children): Likewise.
4226 (varobj_update): Likewise. Update comments.
4228 2014-06-12 Yao Qi <yao@codesourcery.com>
4230 * varobj.c (varobj_pretty_printed_p): Rename to ...
4231 (varobj_is_dynamic_p): ... this. New function.
4232 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4233 (varobj_is_dynamic_p): Declare.
4234 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4235 (mi_print_value_p, varobj_update_one): Likewise.
4237 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4238 Yao Qi <yao@codesourcery.com>
4240 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4241 (varobj_get_iterator): Wrap up code for pretty-printer by
4242 "#if HAVE_PYTHON" and "#endif".
4243 (update_dynamic_varobj_children): Likewise.
4245 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4246 Yao Qi <yao@codesourcery.com>
4248 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4249 gdb_python_initialized is false. Move some code from varobj.c.
4250 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4251 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4252 (struct varobj_item): Moved to varobj-iter.h".
4253 (varobj_clear_saved_item): New function.
4254 (update_dynamic_varobj_children): Move python-related code to
4256 (free_variable): Call varobj_clear_saved_item and
4259 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4260 Yao Qi <yao@codesourcery.com>
4262 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4263 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4264 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4265 (py-varobj.o): New rule.
4266 * python/py-varobj.c: New file.
4267 * python/python-internal.h (py_varobj_get_iterator): Declare.
4268 * varobj-iter.h: New file.
4269 * varobj.c: Include "varobj-iter.h"
4270 (struct varobj) <child_iter>: Change its type from "PyObject *"
4271 to "struct varobj_iter *".
4272 <saved_item>: Likewise.
4273 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4274 [HAVE_PYTHON] (varobj_get_iterator): New function.
4275 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4276 python-specific code to python/py-varobj.c.
4277 (install_visualizer): Call varobj_iter_delete instead of
4279 * varobj.h (varobj_ensure_python_env): Declare.
4281 2014-06-12 Yao Qi <yao@codesourcery.com>
4283 * varobj.c (struct varobj_item): New structure.
4284 (create_child_with_value): Update declaration.
4285 (varobj_add_child): Replace arguments 'name' and 'value' with
4286 'item'. All callers updated.
4287 (install_dynamic_child): Likewise.
4288 (update_dynamic_varobj_children): Likewise.
4289 (varobj_add_child): Likewise.
4290 (create_child_with_value): Likewise.
4292 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4294 * NEWS: Create a new section for the next release branch.
4295 Rename the section of the current branch, now that it has
4298 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4300 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4301 * version.in: Bump version to 7.8.50.DATE-cvs.
4303 2014-06-11 Pedro Alves <palves@redhat.com>
4306 * ser-mingw.c (net_windows_socket_check_pending): New function.
4307 (net_windows_select_thread): Ignore spurious wakeups. Use
4308 net_windows_socket_check_pending.
4309 (net_windows_wait_handle): Check for pending events with
4310 ioctlsocket, through net_windows_socket_check_pending, instead of
4311 checking the socket's event.
4313 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4315 * python/python-internal.h (gdb_PyObject_GetAttrString)
4316 (gdb_PyObject_HasAttrString): New inline function definitions.
4317 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4318 char * of the second argument to PyObject_GetAttrString.
4320 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4322 * serial.c (serial_write): Fix index of character to be printed
4323 in call to serial_logchar when serial debug traces are enabled.
4325 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4327 * gdbtypes (resolve_dynamic_range): Add function description.
4329 2014-06-09 Pedro Alves <palves@redhat.com>
4331 * linux-nat.c (linux_child_follow_fork): Initialize status with
4332 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4333 inner block. Only pass the signal to PTRACE_DETACH if in pass
4336 2014-06-09 Gary Benson <gbenson@redhat.com>
4338 * common/signals.c (gdb_signal_from_host): Reorder to separate
4339 the always-available ANSI-standard signals from the signals that
4341 (do_gdb_signal_to_host): Likewise.
4342 * proc-events.c (signal_table): Likewise.
4344 2014-06-08 Hui Zhu <hui@codesourcery.com>
4346 * common/linux-ptrace.c (linux_disable_event_reporting): New
4348 * common/linux-ptrace.h (linux_disable_event_reporting): New
4350 * linux-nat.c (linux_child_follow_fork): Do a single step before
4353 2014-06-07 Keith Seitz <keiths@redhat.com>
4357 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4358 from symbol_matches_domain in symtab.c. All local callers
4359 of symbol_matches_domain updated.
4360 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4361 search STRUCT_DOMAIN.
4362 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4363 independently. standard_lookup will do that automatically.
4364 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4365 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4366 (cp_lookup_symbol_in_namespace): Likewise.
4367 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4368 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4369 may return a STRUCT_DOMAIN match.
4370 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4371 * cp-support.c: Include language.h.
4372 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4374 * psymtab.c (match_partial_symbol): Compare the requested
4375 domain with the symbol's domain directly.
4376 (lookup_partial_symbol): Likewise.
4377 * symtab.c (lookup_symbol_in_language): Explain when/why
4378 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4379 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4380 appropriate languages.
4381 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4382 and moved to ada-lang.c
4383 (lookup_block_symbol): Explain that this function only returns
4384 symbol matching the requested DOMAIN.
4385 Compare the requested domain with the symbol's domain directly.
4386 (iterate_over_symbols): Compare the requested domain with the
4387 symbol's domain directly.
4388 * symtab.h (symbol_matches_domain): Remove.
4390 2014-06-06 Doug Evans <xdje42@gmail.com>
4392 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4393 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4394 (gdbscm_guile_version_is_at_least): Declare.
4395 (gdbscm_scm_string_to_int): Declare.
4396 * guile/guile.c (gdbscm_guile_major_version): New global.
4397 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4398 (guile_datadir): New static global.
4399 (gdbscm_guile_data_directory): New function.
4400 (initialize_scheme_side): Update.
4401 (misc_guile_functions): Add guile-data-directory.
4402 (initialize_gdb_module): Fetch guile version number.
4403 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4404 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4405 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4406 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4408 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4409 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4410 * guile/scm-value.c (gdbscm_value_to_string): Only call
4411 scm_port_conversion_strategy if Guile version >= 2.0.6.
4413 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4415 * main.c (print_gdb_help): Add -q and --silent.
4417 2014-06-06 Gary Benson <gbenson@redhat.com>
4419 * common/signals.c: Remove preprocessor conditionals for
4420 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4421 SIGSEGV and SIGTERM.
4422 * proc-events.c: Likewise.
4424 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4426 * symfile.c (symfile_free_objfile): Remove restriction to
4428 * symfile-mem.c (symbol_file_add_from_memory): Call
4429 add_target_sections_of_objfile.
4431 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4433 * guile/scm-value.c (gdbscm_history_append_x): Use
4434 'vlscm_get_value_smob_arg_unsafe' instead of
4435 'vlscm_scm_to_value'.
4437 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4440 * utils.c (printchar): Don't escape at all if quoter is NUL.
4441 Update function documentation to clarify effect of parameter
4443 * remote.c (escape_buffer): Pass '\\' as the quoter to
4444 fputstrn_unfiltered.
4445 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4446 generate the output.
4447 (mi_solib_unloaded): Same.
4449 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4451 * development.sh: Delete.
4452 * Makefile.in (config.status): Adjust dependency on development.sh.
4453 * configure.ac: Adjust development.sh source call.
4454 * configure: Regenerate.
4456 2014-06-04 Doug Evans <xdje42@gmail.com>
4458 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4459 is_scheme_bkpt, spec.
4460 (bpscm_make_breakpoint_smob): Initialize new members.
4461 (gdbscm_create_breakpoint_x): Split into two ...
4462 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4463 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4464 (scheme_function breakpoint_functions): Update.
4465 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4466 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4467 register-breakpoint!.
4469 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4472 * mem-break.c (z_type_supported): Return zero if
4473 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4475 2014-06-04 Tom Tromey <tromey@redhat.com>
4477 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4478 value_from_contents_and_address_unresolved.
4479 (ada_template_to_fixed_record_type_1): Likewise.
4480 (ada_which_variant_applies): Likewise.
4481 * value.h (value_from_contents_and_address_unresolved): Declare.
4482 * value.c (value_from_contents_and_address_unresolved): New
4484 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4485 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4486 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4488 2014-06-04 Tom Tromey <tromey@redhat.com>
4490 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4492 2014-06-04 Tom Tromey <tromey@redhat.com>
4494 * procfs.c (procfs_attach): Make "args" const.
4495 * windows-nat.c (windows_attach): Make "args" const.
4496 * nto-procfs.c (procfs_attach): Make "args" const.
4497 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4498 * go32-nat.c (go32_attach): Make "args" const.
4499 * gnu-nat.c (gnu_attach): Make "args" const.
4500 * darwin-nat.c (darwin_attach): Make "args" const.
4501 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4502 * linux-nat.c (linux_nat_attach): Make "args" const.
4503 * remote.c (extended_remote_attach_1, extended_remote_attach):
4505 * target.h (struct target_ops) <to_attach>: Make "args" const.
4506 (find_default_attach): Likewise.
4507 * utils.c (parse_pid_to_attach): Make "args" const.
4508 * utils.h (parse_pid_to_attach): Update.
4510 2014-06-04 Tom Tromey <tromey@redhat.com>
4512 * target-delegates.c: Rebuild.
4513 * target.c (default_thread_address_space): New function.
4514 (target_thread_address_space): Simplify.
4515 * target.h (struct target_ops) <to_thread_address_space>: Add
4516 TARGET_DEFAULT_FUNC.
4518 2014-06-04 Doug Evans <xdje42@gmail.com>
4520 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4522 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4524 * record-btrace.c: Include event-loop.h and inf-loop.h.
4525 (record_btrace_resume_exec_dir)
4526 (record_btrace_async_inferior_event_handler)
4527 (record_btrace_handle_async_inferior_event): New.
4528 (record_btrace_open): Create async event handler.
4529 (record_btrace_close): Delete async event handler.
4530 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4531 Mark async event handler.
4532 (record_btrace_execution_direction): New.
4533 (init_record_btrace_ops): Initialize to_execution_direction.
4535 2014-06-03 Doug Evans <xdje42@gmail.com>
4537 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4538 (gdbscm_make_parameter): Ditto.
4540 2014-06-03 Doug Evans <dje@google.com>
4542 * exec.c (exec_close_1): Call clear_section_table instead of
4543 resize_section_table.
4544 (clear_section_table): New function.
4545 (resize_section_table): Make static. Rename arg num_added to
4547 * exec.h (clear_section_table): Declare.
4548 (resize_section_table): Delete.
4549 * progspace.c (release_program_space): Call clear_section_table
4550 instead of resize_section_table.
4552 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4554 * NEWS (Python Scripting): Add entry about the new xmethods
4557 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4559 * python/py-xmethods.c: New file.
4560 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4561 (objfpy_dealloc): XDECREF on the new xmethods field.
4562 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4564 (objfpy_get_xmethods): New function.
4565 (objfile_getset): New entry 'xmethods'.
4566 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4567 (pspy_dealloc): XDECREF on the new xmethods field.
4568 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4570 (pspy_get_xmethods): New function.
4571 (pspace_getset): New entry 'xmethods'.
4572 * python/python-internal.h: Add declarations for new functions.
4573 * python/python.c (_initialize_python): Invoke
4574 gdbpy_initialize_xmethods.
4575 * python/lib/gdb/__init__.py (xmethods): New
4577 * python/lib/gdb/xmethod.py: New file.
4578 * python/lib/gdb/command/xmethods.py: New file.
4580 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4582 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4583 best match method returned by find_overload_match is an xmethod.
4584 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4585 the best matching operator returned by find_overload_match is an
4587 * valops.c: #include "extension.h".
4588 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4589 Return void. The list of matching source methods is returned in
4590 "fn_list" and a vector of matching debug method workers is
4591 returned in "xm_worker_vec". Update all callers.
4592 (value_find_oload_method_list): Likewise.
4593 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4594 non-NULL, then the index of the best matching method in this
4595 vector is returned. Update all callers.
4596 (find_overload_match): Include xmethods while performing overload
4599 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4601 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4602 * extension-priv.h (struct extension_language_ops): Add the
4604 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4605 get_matching_xmethod_workers, get_xmethod_argtypes,
4606 invoke_xmethod, free_xmethod_worker,
4607 free_xmethod_worker_vec): New functions.
4608 * extension.h: #include "common/vec.h".
4609 New function declarations.
4610 (struct xmethod_worker): New struct.
4611 (VEC (xmethod_worker_ptr)): New vector type.
4612 (xmethod_worker_ptr): New typedef.
4613 (xmethod_worker_vec): Likewise.
4614 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4616 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4617 (struct builtin_type): New field "xmethod".
4618 * valarith.c (value_ptradd): Assert that the value argument is not
4620 * valops.c (value_must_coerce_to_target): Return 0 for
4621 lval_xcallable values.
4622 * value.c (struct value): New field XM_WORKER in the field
4624 (value_address, value_raw_address): Return 0 for lval_xcallable
4626 (set_value_address): Assert that the value is not an
4628 (value_free): Free the associated xmethod worker when freeing
4629 lval_xcallable values.
4630 (set_value_component_location): Assert that the WHOLE value is not
4632 (value_of_xmethod, call_xmethod): New functions.
4633 * value.h: Declare "struct xmethod_worker".
4634 Declare new functions value_of_xmethod, call_xmethod.
4636 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4637 Pedro Alves <palves@redhat.com>
4639 PR breakpoints/17000
4640 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4641 New function, extracted from software_breakpoint_inserted_here_p.
4642 (software_breakpoint_inserted_here_p): Replace factored out code
4643 by call to find_non_raw_software_breakpoint_inserted_here.
4644 (bp_target_info_copy_insertion_state): New function.
4645 (bkpt_insert_location): Handle the case of a single-step
4646 breakpoint already inserted at the same address.
4647 (bkpt_remove_location): Handle the case of a single-step
4648 breakpoint still inserted at the same address.
4649 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4650 breakpoint already inserted at the same address.
4651 (deprecated_remove_raw_breakpoint): Handle the case of a
4652 non-raw breakpoint still inserted at the same address.
4653 (find_single_step_breakpoint): New function, extracted from
4654 single_step_breakpoint_inserted_here_p.
4655 (find_single_step_breakpoint): New function,
4656 factored out from single_step_breakpoint_inserted_here_p.
4657 (single_step_breakpoint_inserted_here_p): Reimplement.
4659 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4661 Pushed by Joel Brobecker <brobecker@adacore.com>
4662 * source.c (show_substitute_path_command): Fix display of matching
4665 2014-06-03 Gary Benson <gbenson@redhat.com>
4667 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4669 2014-06-02 Doug Evans <xdje42@gmail.com>
4671 Add parameter support for Guile.
4672 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4673 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4674 (scm-param.o): New rule.
4675 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4676 (gdbscm_misc_error): Declare.
4677 (gdbscm_canonicalize_command_name): Declare.
4678 (gdbscm_scm_to_host_string): Declare.
4679 (gdbscm_scm_from_host_string): Declare.
4680 (gdbscm_initialize_parameters): Declare.
4681 * guile/guile.c (initialize_gdb_module): Call
4682 gdbscm_initialize_parameters.
4683 * guile/lib/gdb.scm: Export parameter symbols.
4684 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4685 cmdscm_canonicalize_name and made public. All callers updated.
4686 * guile/scm-exception.c (gdbscm_misc_error): New function.
4687 * guile/scm-param.c: New file.
4688 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4689 (gdbscm_scm_to_host_string): New function.
4690 (gdbscm_scm_from_host_string): New function.
4691 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4693 2014-06-02 Doug Evans <xdje42@gmail.com>
4695 Add command support for Guile.
4696 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4697 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4698 (scm-cmd.o): New rule.
4699 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4700 (gdbscm_user_error_p): Declare.
4701 (gdbscm_parse_command_name): Declare.
4702 (gdbscm_valid_command_class_p): Declare.
4703 (gdbscm_initialize_commands): Declare.
4704 * guile/guile.c (initialize_gdb_module): Call
4705 gdbscm_initialize_commands.
4706 * guile/lib/gdb.scm: Export command symbols.
4707 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4708 (throw-user-error): New function.
4709 * guile/scm-cmd.c: New file.
4710 * guile/scm-exception.c (user_error_symbol): New static global.
4711 (gdbscm_user_error_p): New function.
4712 (gdbscm_initialize_exceptions): Set user_error_symbol.
4713 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4715 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4717 * top.c (command_loop): Handle comments here...
4718 (command_line_input): ... not here.
4720 2014-06-02 Doug Evans <xdje42@gmail.com>
4722 Add progspace support for Guile.
4723 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4724 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4725 (scm-progspace.o): New rule.
4726 * guile/guile-internal.h (pspace_smob): New typedef.
4727 (psscm_pspace_smob_pretty_printers): Declare.
4728 (psscm_pspace_smob_from_pspace): Declare.
4729 (psscm_scm_from_pspace): Declare.
4730 * guile/guile.c (initialize_gdb_module): Call
4731 gdbscm_initialize_pspaces.
4732 * guile/lib/gdb.scm: Export progspace symbols.
4733 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4735 (append-pretty-printer!): Ditto.
4736 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4738 * guile/scm-progspace.c: New file.
4740 2014-06-03 Alan Modra <amodra@gmail.com>
4742 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4743 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4745 2014-06-02 Doug Evans <dje@google.com>
4747 Add support for skeletonless type units.
4748 * dwarf2read.c (struct dwarf2_per_objfile): New member
4749 n_allocated_type_units.
4750 (struct dwarf2_per_objfile) <tu_stats>: New member
4751 nr_all_type_units_reallocs.
4752 (create_signatured_type_table_from_index): Initialize
4753 n_allocated_type_units
4754 (create_all_type_units): Ditto.
4755 (add_type_unit): Move up in file. New arg slot.
4756 All callers updated. Increase space for all_type_units more
4758 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4759 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4760 (lookup_dwp_signatured_type): Ditto.
4761 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4762 All callers updated.
4763 (build_type_psymtabs_1): Leave type_unit_groups as
4764 NULL if no TUs present.
4765 (print_tu_stats): New function.
4766 (process_skeletonless_type_unit): New function.
4767 (process_dwo_file_for_skeletonless_type_units): New
4769 (process_skeletonless_type_units): New function.
4770 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4771 Call print tu_stats if debugging enabled.
4773 2014-06-02 Pedro Alves <palves@redhat.com>
4775 * breakpoint.c (build_target_command_list): Don't build a command
4776 list if we have any duplicate location that isn't a dprintf.
4778 2014-06-02 Pedro Alves <palves@redhat.com>
4780 * breakpoint.c (dprintf_breakpoint_hit): New function.
4781 (initialize_breakpoint_ops): Install it as dprintf's
4782 breakpoint_hit method.
4784 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4786 * source.c (substitute_path_rule_matches): Simplify using
4787 filename_ncmp instead of FILENAME_CMP.
4789 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4791 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4793 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4795 * configure.ac: When Guile is available, check for the
4796 availability of 'scm_new_smob'.
4797 * configure, config.h.in: Regenerate.
4798 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4801 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4803 * frame.c (struct frame_info): Add stop_string field.
4804 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4805 (get_prev_frame_always): Old content moved into
4806 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4807 TRY_CATCH, handle MEMORY_ERROR exceptions.
4808 (frame_stop_reason_string): New function definition.
4809 * frame.h (unwind_stop_reason_to_string): Extend comment to
4810 mention frame_stop_reason_string.
4811 (frame_stop_reason_string): New function declaration.
4812 * stack.c (frame_info): Switch to frame_stop_reason_string.
4813 (backtrace_command_1): Switch to frame_stop_reason_string.
4814 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4815 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4816 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4818 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4820 * frame.c (frame_stop_reason_string): Rename to ...
4821 (unwind_stop_reason_to_string): this.
4822 * frame.h (frame_stop_reason_string): Rename to ...
4823 (unwind_stop_reason_to_string): this.
4824 * stack.c (frame_info): Update call to frame_stop_reason_string.
4825 (backtrace_command_1): Likewise.
4826 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4827 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4829 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4831 * frame.c (remove_prev_frame): New function.
4832 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4835 2014-05-29 Pedro Alves <palves@redhat.com>
4837 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4838 and make it const. When a single-step decays to a continue,
4839 clear 'step', not 'hw_step'. Pass whether the caller wanted
4840 to step to user_visible_resume_ptid, not what we ask the
4843 2014-05-29 Pedro Alves <palves@redhat.com>
4845 * infrun.c (process_event_stop_test, handle_step_into_function)
4846 (handle_step_into_function_backward): Adjust.
4847 Don't set the even thread's stop_step and call stop_waiting before
4848 calling end_stepping_range. Instead do that ...
4849 (end_stepping_range): ... here. Take an ecs pointer parameter.
4851 2014-05-29 Pedro Alves <palves@redhat.com>
4853 * infrun.c (stop_stepping): Rename to ...
4854 (stop_waiting): ... this.
4855 (proceed): Update comment.
4856 (process_event_stop_test, handle_inferior_event)
4857 (handle_signal_stop, handle_step_into_function)
4858 (handle_step_into_function_backward): Update.
4860 2014-05-29 Pedro Alves <palves@redhat.com>
4862 * infcall.c (run_inferior_call): Don't check whether the current
4863 thread is running after the proceed call.
4865 2014-05-29 Pedro Alves <palves@redhat.com>
4866 Tom Tromey <tromey@redhat.com>
4868 * NEWS: Mention "maint set target-async", "set mi-async", and that
4869 background execution commands are now always available.
4870 * target.h (target_async_permitted): Update comment.
4871 * target.c (target_async_permitted, target_async_permitted_1):
4873 (set_target_async_command): Rename to ...
4874 (maint_set_target_async_command): ... this.
4875 (show_target_async_command): Rename to ...
4876 (maint_show_target_async_command): ... this.
4877 (_initialize_target): Adjust.
4878 * infcmd.c (prepare_execution_command): Make extern.
4879 * inferior.h (prepare_execution_command): Declare.
4880 * infrun.c (set_observer_mode): Leave target async alone.
4881 * mi/mi-interp.c (mi_interpreter_init): Install
4882 mi_on_sync_execution_done as sync_execution_done observer.
4883 (mi_on_sync_execution_done): New function.
4884 (mi_execute_command_input_handler): Don't print the prompt if we
4885 just started a synchronous command with an async target.
4886 (mi_on_resume): Check sync_execution before printing prompt.
4887 * mi/mi-main.h (mi_async_p): Declare.
4888 * mi/mi-main.c: Include gdbcmd.h.
4889 (mi_async_p): New function.
4890 (mi_async, mi_async_1): New globals.
4891 (set_mi_async_command, show_mi_async_command, mi_async): New
4893 (exec_continue): Call prepare_execution_command.
4894 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4895 (mi_execute_async_cli_command): Use mi_async_p.
4896 (_initialize_mi_main): Install "set mi-async". Make
4897 "target-async" a deprecated alias.
4899 2014-05-29 Pedro Alves <palves@redhat.com>
4901 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4902 (_initialize_cli_interp): Adjust.
4903 * event-loop.c: Include "observer.h".
4904 (start_event_loop): Notify 'command_error' observers instead of
4905 calling display_gdb_prompt. Remove FIXME comment.
4906 * event-top.c (display_gdb_prompt): Remove call into the
4908 * inf-loop.c: Include "observer.h".
4909 (inferior_event_handler): Notify 'command_error' observers instead
4910 of calling display_gdb_prompt.
4911 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4912 observers instead of calling display_gdb_prompt.
4913 * interps.c (interp_set): Don't call display_gdb_prompt.
4914 (current_interp_display_prompt_p): Delete.
4915 * interps.h (interp_prompt_p): Delete declaration.
4916 (interp_prompt_p_ftype): Delete.
4917 (struct interp_procs) <prompt_proc_p>: Delete field.
4918 (current_interp_display_prompt_p): Delete declaration.
4919 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4920 (_initialize_mi_interp): Adjust.
4921 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4922 'command_error' observers.
4923 (tui_on_sync_execution_done, tui_on_command_error): New
4925 (tui_display_prompt_p): Delete.
4926 (_initialize_tui_interp): Adjust.
4928 2014-05-29 Pedro Alves <palves@redhat.com>
4931 * cli/cli-interp.c: Include infrun.h and observer.h.
4932 (cli_uiout, cli_interp): New globals.
4933 (cli_on_signal_received, cli_on_end_stepping_range)
4934 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4936 (cli_interpreter_init): Install them as 'end_stepping_range',
4937 'signal_received' 'signal_exited', 'exited' and 'no_history'
4939 (_initialize_cli_interp): Remove cli_interp local.
4940 * infrun.c (handle_inferior_event): Call the several stop reason
4941 observers instead of printing the stop reason directly.
4942 (end_stepping_range): New function.
4943 (print_end_stepping_range_reason, print_signal_exited_reason)
4944 (print_exited_reason, print_signal_received_reason)
4945 (print_no_history_reason): Make static, and add an uiout
4946 parameter. Print to that instead of to CURRENT_UIOUT.
4947 * infrun.h (print_end_stepping_range_reason)
4948 (print_signal_exited_reason, print_exited_reason)
4949 (print_signal_received_reason print_no_history_reason): New
4951 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4953 <cli_uiout>: New field.
4954 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4955 uiout for CLI output. Install 'signal_received',
4956 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4958 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4959 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4960 (mi_on_no_history): New functions.
4961 (ui_out_free_cleanup): Delete function.
4962 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4963 instead use the one already stored in the MI interpreter data.
4964 (mi_ui_out): Adjust.
4965 * tui/tui-interp.c: Include infrun.h and observer.h.
4966 (tui_interp): New global.
4967 (tui_on_signal_received, tui_on_end_stepping_range)
4968 (tui_on_signal_exited, tui_on_exited)
4969 (tui_on_no_history): New functions.
4970 (tui_init): Install them as 'end_stepping_range',
4971 'signal_received' 'signal_exited', 'exited' and 'no_history'
4973 (_initialize_tui_interp): Delete tui_interp local.
4975 2014-05-29 Pedro Alves <palves@redhat.com>
4978 * linux-nat.c (linux_nat_resume_callback): Rename the second
4979 parameter to 'except'. Skip LP if it points to EXCEPT.
4980 (linux_nat_resume): Don't mark the event lwp as not stopped
4981 before resuming sibling lwps. Instead ask
4982 linux_nat_resume_callback to skip the event lwp. Mark it as not
4983 stopped after actually resuming it.
4984 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4986 (wait_lwp): Mark the lwp as stopped here.
4987 (stop_wait_callback): Mark the lwp as not stopped right after
4988 resuming it. Don't mark lwps as stopped here.
4989 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4990 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4992 2014-05-29 Pedro Alves <palves@redhat.com>
4995 * infrun.c (resume): Determine how much to resume depending on
4996 whether the caller wanted a step, not whether we can hardware step
4997 the target. Mark all threads that we intend to run as running,
4998 unless we're calling an inferior function.
4999 (normal_stop): If the thread is running an infcall, don't finish
5001 * target.c (target_resume): Don't mark threads as running here.
5003 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5005 * serial.c (_initialize_serial): Remove support for
5006 the "set remotebaud" and "show remotebaud" commands.
5007 * NEWS: Add entry documenting the removal of that command.
5009 2014-05-28 Yao Qi <yao@codesourcery.com>
5011 * charset.c: Fix typo in comments.
5013 2014-05-27 Gary Benson <gbenson@redhat.com>
5015 * utils.c (internal_vproblem): Prompt for a bug report.
5017 2014-05-26 Andy Wingo <wingo@igalia.com>
5019 * guile/scm-arch.c (arscm_mark_arch_smob):
5020 * guile/scm-block.c (bkscm_mark_block_smob)
5021 (bkscm_mark_block_syms_progress_smob):
5022 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5023 * guile/scm-exception.c (exscm_mark_exception_smob):
5024 * guile/scm-frame.c (frscm_mark_frame_smob):
5025 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5026 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5027 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5028 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5029 (ppscm_mark_pretty_printer_worker_smob):
5030 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5031 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5032 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5033 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5035 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5038 2014-05-26 Andy Wingo <wingo@igalia.com>
5039 Doug Evans <xdje42@gmail.com>
5041 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5042 empty_base_class. All uses updated.
5043 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5044 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5046 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5047 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5048 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5049 (gdbscm_gsmob_has_property_p, add_property_name)
5050 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5051 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5052 (gdb-object-has-property?, gdb-object-properties): Remove.
5053 (gdb-object-kind): Renamed from gsmob-kind.
5055 2014-05-26 Andy Wingo <wingo@igalia.com>
5057 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5058 * configure: Regenerate.
5060 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5062 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5064 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5066 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5067 (replay_memory_access_read_only, replay_memory_access_read_write)
5068 (replay_memory_access_types, replay_memory_access)
5069 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5070 (cmd_set_record_btrace, cmd_show_record_btrace)
5071 (cmd_show_replay_memory_access): New.
5072 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5073 (record_btrace_remove_breakpoint): Replace
5074 record_btrace_allow_memory_access with replay_memory_access.
5075 (_initialize_record_btrace): Add commands.
5076 * NEWS: Announce it.
5078 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5080 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5082 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5084 * MAINTAINERS (Write After Approval): Move self back from
5087 2014-05-22 Pedro Alves <palves@redhat.com>
5089 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5090 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5091 (disable_randomization, enum exec_direction_kind)
5092 (execution_direction, stop_registers, start_remote)
5093 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5094 (wait_for_inferior, normal_stop, get_last_target_status)
5095 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5096 (insert_step_resume_breakpoint_at_sal)
5097 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5098 (set_step_info, print_stop_event, signal_stop_state)
5099 (signal_print_state, signal_pass_state, signal_stop_update)
5100 (signal_print_update, signal_pass_update)
5101 (update_signals_program_target, clear_exit_convenience_vars)
5102 (displaced_step_dump_bytes, update_observer_mode)
5103 (signal_catch_update, gdb_signal_from_command): Move
5105 * infrun.h: ... to this new file.
5106 * amd64-tdep.c: Include infrun.h.
5107 * annotate.c: Include infrun.h.
5108 * arch-utils.c: Include infrun.h.
5109 * arm-linux-tdep.c: Include infrun.h.
5110 * arm-tdep.c: Include infrun.h.
5111 * break-catch-sig.c: Include infrun.h.
5112 * breakpoint.c: Include infrun.h.
5113 * common/agent.c: Include infrun.h instead of inferior.h.
5114 * corelow.c: Include infrun.h.
5115 * event-top.c: Include infrun.h.
5116 * go32-nat.c: Include infrun.h.
5117 * i386-tdep.c: Include infrun.h.
5118 * inf-loop.c: Include infrun.h.
5119 * infcall.c: Include infrun.h.
5120 * infcmd.c: Include infrun.h.
5121 * infrun.c: Include infrun.h.
5122 * linux-fork.c: Include infrun.h.
5123 * linux-nat.c: Include infrun.h.
5124 * linux-thread-db.c: Include infrun.h.
5125 * monitor.c: Include infrun.h.
5126 * nto-tdep.c: Include infrun.h.
5127 * procfs.c: Include infrun.h.
5128 * record-btrace.c: Include infrun.h.
5129 * record-full.c: Include infrun.h.
5130 * remote-m32r-sdi.c: Include infrun.h.
5131 * remote-mips.c: Include infrun.h.
5132 * remote-notif.c: Include infrun.h.
5133 * remote-sim.c: Include infrun.h.
5134 * remote.c: Include infrun.h.
5135 * reverse.c: Include infrun.h.
5136 * rs6000-tdep.c: Include infrun.h.
5137 * s390-linux-tdep.c: Include infrun.h.
5138 * solib-irix.c: Include infrun.h.
5139 * solib-osf.c: Include infrun.h.
5140 * solib-svr4.c: Include infrun.h.
5141 * target.c: Include infrun.h.
5142 * top.c: Include infrun.h.
5143 * windows-nat.c: Include infrun.h.
5144 * mi/mi-interp.c: Include infrun.h.
5145 * mi/mi-main.c: Include infrun.h.
5146 * python/py-threadevent.c: Include infrun.h.
5148 2014-05-22 Pedro Alves <palves@redhat.com>
5150 * infrun.c (handle_inferior_event): Store the exit code for
5151 --return-child-result here, instead of ...
5152 (print_exited_reason): ... here.
5154 2014-05-21 Pedro Alves <palves@redhat.com>
5157 * gdbthread.h (struct thread_control_state): New field
5159 * infrun.c (follow_fork): Copy the new thread control field to the
5161 (clear_proceed_status_thread): Clear the new thread control field.
5162 (proceed): Set the new thread control field.
5163 * interps.h (command_interp): Declare.
5164 * interps.c (command_interpreter): New global.
5165 (command_interp): New function.
5166 (interp_exec): Set `command_interpreter' while here.
5167 * cli-out.c (cli_uiout_dtor): New function.
5168 (cli_ui_out_impl): Install it.
5169 * mi/mi-interp.c: Include cli-out.h.
5170 (mi_cmd_interpreter_exec): Add comment.
5171 (restore_current_uiout_cleanup): New function.
5172 (ui_out_free_cleanup): New function.
5173 (mi_on_normal_stop): If finishing an execution command started by
5174 a CLI command, or any kind of breakpoint-like event triggered,
5175 print the stop event to the output (CLI) stream.
5176 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5178 2014-05-21 Pedro Alves <palves@redhat.com>
5180 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5181 current source line having changed.
5182 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5183 * infrun.c (normal_stop): Adjust call to
5184 set_current_sal_from_frame.
5185 * source.c (clear_lines_listed_range): New function.
5186 (set_current_source_symtab_and_line, identify_source_line): Clear
5187 the lines listed range.
5188 (line_info): Handle the first "info line" after the current source
5189 line having changed.
5190 * stack.c (print_stack_frame): Remove center handling.
5191 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5194 2014-05-21 Pedro Alves <palves@redhat.com>
5196 * inf-child.c (inf_child_mourn_inferior): New function.
5197 * inf-child.h (inf_child_mourn_inferior): New declaration.
5198 * darwin-nat.c (darwin_mourn_inferior): Use
5199 inf_child_mourn_inferior.
5200 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5201 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5202 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5203 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5204 * windows-nat.c (windows_mourn_inferior): Likewise.
5206 2014-05-21 Doug Evans <xdje42@gmail.com>
5208 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5210 2014-05-21 Doug Evans <xdje42@gmail.com>
5212 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5213 (gdbscm_out_of_range_error): Ditto.
5214 (gdbscm_memory_error): Ditto.
5215 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5216 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5217 (gdbscm_out_of_range_error): Update.
5218 (gdbscm_memory_error): Update.
5219 (gdbscm_scm_to_target_string_unsafe): Delete.
5221 2014-05-21 Pedro Alves <palves@redhat.com>
5223 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5225 (inf_child_open_target): New function.
5226 (inf_child_open): Use inf_child_open_target to push the target
5227 instead of erroring out.
5228 (inf_child_disconnect, inf_child_close)
5229 (inf_child_maybe_unpush_target): New functions.
5230 (inf_child_target): Install inf_child_disconnect and
5231 inf_child_close. Store a pointer to the returned object.
5232 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5234 * target.c (auto_connect_native_target): New global.
5235 (show_default_run_target): New function.
5236 (find_default_run_target): Return NULL if automatically connecting
5237 to the native target is disabled.
5238 (_initialize_target): Install set/show auto-connect-native-target.
5239 * NEWS: Mention "set auto-connect-native-target", and "target
5241 * linux-nat.c (super_close): New global.
5242 (linux_nat_close): Call super_close.
5243 (linux_nat_add_target): Store a pointer to the base class's
5245 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5246 inf_child_maybe_unpush.
5247 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5249 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5250 the inferior. Use inf_child_maybe_unpush_target.
5251 (inf_ttrace_attach): Don't push the target if it is already
5253 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5254 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5255 after mourning the inferior. Use inf_child_maybe_unpush_target.
5256 (darwin_attach_pid): Don't push the target if it is already
5258 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5259 mourning the inferior. Use inf_child_maybe_unpush_target.
5260 (gnu_detach): Use inf_child_maybe_unpush_target.
5261 * go32-nat.c (go32_create_inferior): Don't push the target if it
5263 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5264 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5265 (procfs_open): Rename to ...
5266 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5267 comments. Can target_preopen before changing node. Call
5268 inf_child_open_target to push the target explicitly.
5269 (procfs_attach): Don't push the target if it is already pushed.
5270 (procfs_detach): Use inf_child_maybe_unpush_target.
5271 (procfs_create_inferior): Don't push the target if it is already
5273 (nto_native_ops): New global.
5274 (procfs_open): Reimplement.
5275 (procfs_native_open): New function.
5276 (init_procfs_targets): Install procfs_native_open as to_open of
5277 "target native". Store a pointer to the "native" target in
5279 * procfs.c (procfs_attach): Don't push the target if it is already
5281 (procfs_detach): Use inf_child_maybe_unpush_target.
5282 (procfs_mourn_inferior): Only unpush the target after mourning the
5283 inferior. Use inf_child_maybe_unpush_target.
5284 (procfs_init_inferior): Don't push the target if it is already
5286 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5287 if it is already pushed.
5289 2014-05-21 Pedro Alves <palves@redhat.com>
5291 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5292 and "procfs" targets are now called "native" instead.
5294 2014-05-21 Pedro Alves <palves@redhat.com>
5296 * go32-nat.c (go32_open): Delete.
5297 (go32_target): Don't override the to_open method.
5299 2014-05-21 Pedro Alves <palves@redhat.com>
5301 * nto-procfs.c (procfs_can_run): New function.
5302 (nto_procfs_ops): New global.
5303 (init_procfs_targets): New, based on procfs_target. Install
5304 "target native" in addition to "target procfs".
5305 (_initialize_procfs): Call init_procfs_targets instead of adding
5308 2014-05-21 Pedro Alves <palves@redhat.com>
5310 * windows-nat.c (windows_target): Don't override to_shortname,
5311 to_longname or to_doc.
5313 2014-05-21 Pedro Alves <palves@redhat.com>
5315 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5318 2014-05-21 Pedro Alves <palves@redhat.com>
5320 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5321 to_shortname, to_longname or to_doc.
5323 2014-05-21 Pedro Alves <palves@redhat.com>
5325 * go32-nat.c (go32_target): Don't override to_shortname,
5326 to_longname or to_doc.
5328 2014-05-21 Pedro Alves <palves@redhat.com>
5330 * inf-child.c (inf_child_open): Remove mention of "child".
5331 (inf_child_target): Rename target to "native" instead of "child".
5333 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5335 * Makefile.in (SFILES): Delete "regset.c".
5336 (COMMON_OBS): Delete "regset.o".
5338 * regset.h (regset_alloc): Delete prototype.
5340 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5342 * sparc-linux-tdep.c (sparc32_linux_gregset)
5343 (sparc32_linux_fpregset): New static regset structures.
5344 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5345 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5347 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5348 (sparc64_linux_fpregset): New static regset structures.
5349 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5350 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5351 New static regset structures.
5352 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5353 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5354 New static regset structures.
5355 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5356 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5357 New static regset structures.
5358 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5359 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5360 New static regset structures.
5361 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5363 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5365 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5366 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5367 register maps ("regmaps") from "*regset" to "*regmap". Do this
5368 for all regmap types and variables.
5369 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5370 (sparc32_linux_supply_core_gregset)
5371 (sparc32_linux_collect_core_gregset)
5372 (sparc32_linux_supply_core_fpregset)
5373 (sparc32_linux_collect_core_fpregset): Likewise.
5374 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5375 (sparc_gregmap, sparc_fpregmap): ... these.
5376 (sparc_supply_gregset, sparc_collect_gregset)
5377 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5378 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5379 (_initialize_sparc_nat): Rename regmaps.
5380 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5381 (sparc_gregmap, sparc_fpregmap): ... these.
5382 (sparc_supply_gregset, sparc_collect_gregset)
5383 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5384 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5386 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5387 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5389 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5391 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5392 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5393 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5395 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5396 (sparc32_bsd_fpregset): Rename to...
5397 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5398 (sparc32_bsd_fpregmap): ... these.
5399 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5400 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5401 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5402 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5403 (struct sparc_gregmap, struct sparc_fpregmap)
5404 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5405 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5406 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5407 (sparc32_supply_regset, sparc32_collect_gregset)
5408 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5410 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5411 (sparc64_linux_ptrace_gregmap): ... this.
5412 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5413 (_initialize_sparc64_linux_nat): Rename regmaps.
5414 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5415 (sparc64_linux_core_gregmap): ... this.
5416 (sparc64_linux_supply_core_gregset)
5417 (sparc64_linux_collect_core_gregset)
5418 (sparc64_linux_supply_core_fpregset)
5419 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5420 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5421 (sparc64_sol2_fpregset): Rename to...
5422 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5423 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5424 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5426 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5427 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5428 (sparc64_bsd_fpregset): Rename to...
5429 (struct sparc_gregmap, sparc64_sol2_gregmap)
5430 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5431 (sparc64_bsd_fpregmap): ... these.
5432 (sparc64_supply_gregset, sparc64_collect_gregset)
5433 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5435 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5436 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5437 (sparc64fbsd_gregmap): ... this.
5438 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5439 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5441 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5442 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5443 (sparc64nbsd_collect_fpregset): Likewise.
5444 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5445 (sparc64nbsd_gregmap): ... this.
5446 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5448 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5449 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5450 (sparc64obsd_gregmap): ... this.
5451 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5453 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5454 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5455 (sparc32nbsd_gregmap): ... this.
5456 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5459 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5461 * score-tdep.c (score7_linux_gregset): New static regset
5463 (score7_linux_regset_from_core_section): Remove dynamic regset
5465 (score_gdbarch_init): Drop allocation of tdep structure.
5466 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5468 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5470 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5472 (am33_regset_from_core_section): Remove dynamic regset
5475 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5477 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5478 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5480 (mips_linux_regset_from_core_section): Remove dynamic regset
5482 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5483 'gregset64', 'fpregset', and 'fpregset64'.
5484 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5485 deleted tdep fields.
5487 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5489 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5491 (amd64_regset_from_core_section): Remove dynamic regset
5493 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5495 (amd64obsd_regset_from_core_section): Remove dynamic regset
5497 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5499 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5500 x86-common regset supply function.
5501 * i386-tdep.c (i386_collect_gregset): Make static.
5502 (i386_gregset): New global regset structure.
5503 (i386_fpregset, i386_xstateregset): New static regset structures.
5504 (i386_regset_from_core_section): Remove dynamic regset
5506 (i386_gdbarch_init): Remove initialization of tdep fields
5507 'gregset', 'fpregset', and 'xstateregset'.
5508 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5509 'fpregset', and 'xstateregset'.
5510 (i386_collect_gregset): Remove prototype.
5511 (i386_gregset): New declaration.
5512 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5514 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5517 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5519 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5520 (arm_linux_vfpregset): New static regset structures.
5521 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5523 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5524 and 'vfpregset' fields.
5526 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5528 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5529 (aarch64_linux_fpregset): New static regset structures.
5530 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5531 of regset structures.
5532 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5535 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5537 * regset.h (struct regset): Remove gdbarch field.
5538 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5539 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5540 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5542 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5543 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5544 (ppc32_linux_vsxregset): Likewise.
5545 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5546 via the regcache instead of the regset.
5547 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5548 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5549 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5550 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5553 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5555 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5556 Constify structures.
5557 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5558 (alphanbsd_aout_gregset): Likewise.
5559 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5560 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5562 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5563 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5565 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5566 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5567 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5568 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5569 * m88k-tdep.c (m88k_gregset): Likewise.
5570 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5571 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5572 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5573 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5574 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5575 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5576 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5577 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5578 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5580 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5581 * sh-tdep.h (sh_corefile_gregset): Likewise.
5582 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5583 * vax-tdep.c (vax_gregset): Likewise.
5585 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5587 Fix TLS access for -static -pthread.
5588 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5589 (try_thread_db_load_1): Initialize it.
5590 (thread_db_get_thread_local_address): Call it if LM is zero.
5591 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5592 * target.h (struct target_ops) (to_get_thread_local_address): Add
5593 load_module_addr comment.
5595 2014-05-21 Pedro Alves <palves@redhat.com>
5597 * dcache.c (dcache_read_memory_partial): If reading the cache line
5598 fails, fallback to reading just the memory the caller wanted.
5600 2014-05-20 Doug Evans <dje@google.com>
5602 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5603 instead of get_current_arch.
5605 2014-05-20 Pedro Alves <palves@redhat.com>
5607 * NEWS: Mention that compare-sections now works with all targets.
5609 * remote.c (PACKET_qCRC): New enum value.
5610 (remote_verify_memory): Don't send qCRC if the target has no
5611 execution. Use packet_support/packet_ok. If the target doesn't
5612 support the qCRC packet, fallback to a deep memory copy.
5613 (compare_sections_command): Say "target image" instead of "remote
5615 (_initialize_remote): Add PACKET_qCRC to the list of config
5616 packets that have no associated command. Extend comment.
5617 * target.c (simple_verify_memory, default_verify_memory): New
5619 * target.h (struct target_ops) <to_verify_memory>: Default to
5620 default_verify_memory.
5621 (simple_verify_memory): New declaration.
5622 * target-delegates.c: Regenerate.
5624 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5626 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5628 2014-05-20 Hui Zhu <hui@codesourcery.com>
5629 Yao Qi <yao@codesourcery.com>
5632 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5633 and change address of sp and pc.
5635 2014-05-19 Tom Tromey <tromey@redhat.com>
5637 * gdbtypes.c (rank_function): Use XNEWVEC.
5638 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5640 2014-05-19 Doug Evans <dje@google.com>
5642 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5643 build_type_unit_groups and moved closer to only caller. Remove
5644 arguments. All references updated. Remove outdated .gdb_index
5646 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5647 build_type_psymtabs_1.
5649 2014-05-19 Doug Evans <dje@google.com>
5651 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5652 n_type_unit_groups, all_type_unit_groups. All uses removed.
5653 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5654 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5655 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5656 (add_type_unit_group_to_table): Delete.
5658 2014-05-19 Doug Evans <dje@google.com>
5660 * eval.c (evaluate_subexp_standard): Add some comments.
5662 2014-05-17 Doug Evans <xdje42@gmail.com>
5664 * progspace.c (remove_program_space): Delete, unused.
5665 * progspace.h (remove_program_space): Ditto.
5667 2014-05-17 Doug Evans <xdje42@gmail.com>
5669 * inferior.c (prune_inferiors): Fix comment.
5670 (remove_inferior_command): Call prune_program_spaces.
5672 2014-05-16 Doug Evans <dje@google.com>
5674 New command line option -D.
5676 * main.c (set_gdb_data_directory): New function.
5677 (captured_main): Recognize -D. Flag error for --data-directory "".
5678 Call set_gdb_data_directory.
5679 (print_gdb_help): Print --data-directory, -D.
5680 * main.h (set_gdb_data_directory): Declare.
5681 * top.c (staged_gdb_datadir): New static global.
5682 (set_gdb_datadir): Call set_gdb_data_directory
5683 (show_gdb_datadir): New function.
5684 (init_main): Update init of data-directory parameter.
5686 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5688 Import the "dirfd" gnulib module.
5689 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5690 * gnulib/aclocal.m4: Update.
5691 * gnulib/config.in: Update.
5692 * gnulib/configure: Update.
5693 * gnulib/import/Makefile.am: Update.
5694 * gnulib/import/Makefile.in: Update.
5695 * gnulib/import/dirfd.c: New.
5696 * gnulib/import/m4/dirfd.m4: New.
5697 * gnulib/import/m4/gnulib-cache.m4: Update.
5698 * gnulib/import/m4/gnulib-comp.m4: Update.
5700 2014-05-16 Pierre Muller <muller@sourceware.org>
5701 Yao Qi <yao@codesourcery.com>
5703 * valprint.c (print_wchar): Move the code on checking whether
5704 W is a printable wide char to the default branch of switch
5705 statement below. Call wchar_printable instead of gdb_iswprint.
5707 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5709 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5710 ldr.w and ldrd instructions.
5712 2014-05-15 Doug Evans <dje@google.com>
5714 * dwarf2read.c (read_structure_type): Delete outdated comments.
5716 2014-05-14 Tom Tromey <tromey@redhat.com>
5718 * macrocmd.c (print_macro_definition): Reindent.
5720 2014-05-13 Doug Evans <xdje42@gmail.com>
5722 * python/py-cmd.c (cmdpy_completer): Add comment.
5723 (completers): Make const.
5725 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5727 * infrun.c (resume): Remove should_resume (unused). Move up
5728 declaration of resume_ptid.
5730 2014-05-13 Tom Tromey <tromey@redhat.com>
5732 * language.h (unop_type_check): Remove.
5733 (binop_type_check): Don't declare.
5735 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5737 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5738 call to regcache_raw_collect.
5740 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5742 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5743 mi_console->quote as the quoting character.
5745 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5747 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5749 2014-04-29 Tom Tromey <tromey@redhat.com>
5751 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5752 "show debug varobj".
5754 2014-05-07 Kyle McMartin <kyle@redhat.com>
5756 Pushed by Joel Brobecker <brobecker@adacore.com>.
5757 * aarch64-tdep.c (aarch64_software_single_step): New function.
5758 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5759 with aarch64_software_single_step.
5761 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5765 2014-05-05 Keith Seitz <keiths@redhat.com>
5767 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5768 variable or history value is successfully parsed.
5770 2014-05-05 Yao Qi <yao@codesourcery.com>
5771 Pedro Alves <palves@redhat.com>
5773 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5774 address of blocks that intersects the requested range. Trim
5775 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5777 * ctf.c (ctf_xfer_partial): Likewise.
5779 2014-05-05 Yao Qi <yao@codesourcery.com>
5781 * printcmd.c (display_command): Remove the check to
5782 target_has_execution.
5784 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5786 * ppcobsd-nat.c: Include "obsd-nat.h".
5787 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5789 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5791 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5793 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5794 and 16-bit signed and unsigned arguments. Update comment.
5795 (stap_parse_probe_arguments): Extend code to handle such
5796 arguments. Use warning instead of complaint to notify about
5797 unrecognized bitness.
5799 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5801 PR breakpoints/16889
5802 * stap-probe.c (stap_parse_probe_arguments): Simplify
5803 check for non-prefixed probes (i.e., probes whose
5804 arguments do not start with "N@"). Always set the
5805 argument type to a sane value.
5807 2014-05-01 David Taylor <dtaylor@emc.com>
5809 * remote.c (compare_sections_command): Add -r option to compare
5810 all loadable read-only sections.
5812 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5814 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5815 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5817 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5818 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5819 Remove unused CORE_ADDR argument. Update all callers.
5821 2014-04-29 Pedro Alves <palves@redhat.com>
5823 * remote.c (struct packet_config) <detect>: Extend comment.
5824 (add_packet_config_cmd): Don't set the config's detect or support
5826 (init_all_packet_configs): Also initialize the config's 'detect'
5828 (reset_all_packet_configs_support): New function.
5829 (remote_open_1): Call reset_all_packet_configs_support instead of
5830 init_all_packet_configs.
5831 (_initialize_remote): Initialize all packet configs. Assert that
5832 all packets have an associated command, except a few known
5835 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5837 * dwarf2read.c (read_subrange_type): Handle dynamic
5838 DW_AT_lower_bound attributes.
5840 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5842 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5843 dynamic bounds before computing its upper bound.
5844 (ada_discrete_type_low_bound): Same as above with the lower bound.
5846 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5848 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5849 range types. Adjust the array handling implementation to
5850 take advantage of this change.
5851 (resolve_dynamic_range): New function, mostly extracted from
5852 resolve_dynamic_bounds.
5853 (resolve_dynamic_array): New function, mostly extracted from
5854 resolve_dynamic_bounds.
5855 (resolve_dynamic_bounds): Delete.
5856 (resolve_dynamic_type): Reimplement. Add handling of
5857 TYPE_CODE_RANGE types.
5859 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5861 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5862 handling of parallel ___XA types.
5864 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5866 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5867 unnecessary second call to static_unwrap_type.
5869 2014-04-27 Hui Zhu <hui@codesourcery.com>
5871 * stack.c (print_frame_info): Call do_gdb_disassembly with
5872 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5874 2014-04-26 Doug Evans <xdje42@gmail.com>
5876 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5878 2014-04-25 Pedro Alves <palves@redhat.com>
5881 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5882 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5883 and newline from built string.
5884 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5885 (linux_ptrace_attach_fail_reason): ... this.
5886 * linux-nat.c (linux_nat_attach): Adjust to use
5887 linux_ptrace_attach_fail_reason.
5889 2014-04-25 Pedro Alves <palves@redhat.com>
5891 * remote.c (struct remote_state): Remove multi_process_aware,
5892 non_stop_aware, cond_tracepoints, cond_breakpoints,
5893 breakpoint_commands, fast_tracepoints, static_tracepoints,
5894 install_in_trace, disconnected_tracing,
5895 enable_disable_tracepoints, string_tracing, and
5896 augmented_libraries_svr4_read fields.
5897 (remote_multi_process_p): Move further below in the file.
5898 (struct packet_config): Add comments.
5899 (update_packet_config): Delete function.
5900 (show_packet_config_cmd): Use packet_config_support.
5901 (add_packet_config_cmd): Use NULL as set callback.
5902 (packet_ok): "set remote foo-packet"-style commands no longer
5903 change config->supported -- adjust.
5904 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5905 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5906 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5907 (PACKET_QNonStop, PACKET_multiprocess_feature)
5908 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5909 (PACKET_DisconnectedTracing_feature)
5910 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5911 (set_remote_protocol_packet_cmd): Delete function.
5912 (packet_config_support, packet_support): New functions.
5913 (set_remote_protocol_Z_packet_cmd): Don't call
5914 update_packet_config.
5915 (remote_query_attached, remote_pass_signals)
5916 (remote_program_signals, remote_threads_info)
5917 (remote_threads_extra_info, remote_start_remote): Use
5919 (remote_start_remote): Use packet_config_support and
5921 (init_all_packet_configs): Set all packets to unknown support,
5922 instead of calling update_packet_config.
5923 (remote_check_symbols): Use packet_support.
5924 (remote_supported_packet): Unconditionally set the packet config's
5926 (remote_multi_process_feature, remote_non_stop_feature)
5927 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5928 (remote_breakpoint_commands_feature)
5929 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5930 (remote_install_in_trace_feature)
5931 (remote_disconnected_tracing_feature)
5932 (remote_enable_disable_tracepoint_feature)
5933 (remote_string_tracing_feature)
5934 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5935 (remote_protocol_features): Adjust to use remote_supported_packet
5936 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5937 "ConditionalTracepoints", "ConditionalBreakpoints",
5938 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5939 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5940 "EnableDisableTracepoints", and "tracenz".
5941 (remote_query_supported): Use packet_support.
5942 (remote_open_1): Adjust.
5943 (extended_remote_attach_1): Use packet_support. Switch on the
5944 result of packet_ok instead of checking whether the packet ended
5946 (remote_vcont_resume): Use packet_support.
5947 (remote_resume, remote_stop_ns, fetch_register_using_p)
5948 (remote_prepare_to_store, store_register_using_P)
5949 (check_binary_download, remote_write_bytes): Use packet_support.
5950 (remote_vkill): Use packet_support. Switch on the result of
5951 packet_ok instead of checking whether the packet ended up
5953 (extended_remote_supports_disable_randomization): Use
5955 (extended_remote_run): Switch on the result of packet_ok instead
5956 of checking whether the packet ended up disabled.
5957 (remote_insert_breakpoint, remote_remove_breakpoint)
5958 (remote_insert_watchpoint, remote_remove_watchpoint)
5959 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5961 (remote_search_memory): Use packet_config_support.
5962 (remote_get_thread_local_address, remote_get_tib_address)
5963 (remote_hostio_send_command, remote_can_execute_reverse): Use
5965 (remote_supports_cond_tracepoints)
5966 (remote_supports_cond_breakpoints)
5967 (remote_supports_fast_tracepoints)
5968 (remote_supports_static_tracepoints)
5969 (remote_supports_install_in_trace)
5970 (remote_supports_enable_disable_tracepoint)
5971 (remote_supports_string_tracing)
5972 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5973 the packet config says the feature is enabled or disabled.
5974 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5975 (remote_get_trace_status): Use packet_support.
5976 (remote_set_disconnected_tracing): Adjust to check whether the
5977 feature is enabled with packet_support.
5978 (remote_set_trace_buffer_size, remote_use_agent)
5979 (remote_can_use_agent, remote_supports_btrace): Use
5981 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5982 Use packet_config_support.
5983 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5984 the packet config says the feature is enabled or disabled.
5985 (set_range_stepping): Use packet_support.
5987 2014-04-25 Tom Tromey <tromey@redhat.com>
5989 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5992 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5994 * NEWS: Mention support for C99 variable length arrays.
5996 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5998 * ada-lang.c (standard_exc): Expand introductory comment.
6000 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6001 Walfred Tedeschi <walfred.tedeschi@intel.com>
6003 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6005 (amd64_linux_read_description): Add code to handle AVX512 xstate
6006 mask and return respective tdesc.
6007 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6008 and features/i386/x32-avx512-linux.c.
6009 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6010 (amd64_linux_core_read_description): Add code to handle AVX512
6011 xstate mask and return respective tdesc.
6012 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6013 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6015 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6016 (tdesc_amd64_avx512_linux): New prototype.
6017 (tdesc_x32_avx512_linux): Likewise.
6018 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6019 features/i386/x32-avx512.c.
6020 (amd64_ymm_avx512_names): New register names for pseudo
6022 (amd64_ymmh_avx512_names): New register names for raw registers
6024 (amd64_k_names): New register names for K registers.
6025 (amd64_zmmh_names): New register names for ZMM raw registers.
6026 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6027 (amd64_xmm_avx512_names): New register names for XMM16-31
6029 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6031 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6032 if feature is present.
6033 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6034 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6035 (AMD64_NUM_REGS): Adjust to new number of registers.
6036 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6037 registers supplied via XSTATE by AVX512 registers.
6038 (i386_linux_read_description): Add case for AVX512.
6039 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6040 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6041 (i386_linux_core_read_description): Add case for AVX512.
6042 (i386_linux_init_abi): Install supported register note section
6044 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6046 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6047 registers to be number of zmm7h + 1.
6048 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6049 * i386-tdep.c: Include features/i386/i386-avx512.c.
6050 (i386_zmm_names): Add ZMM pseudo register names array.
6051 (i386_zmmh_names): Add ZMM raw register names array.
6052 (i386_k_names): Add K raw register names array.
6053 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6054 registers. AVX512 has 16 more ZMM registers than there are YMM
6056 (i386_zmmh_regnum_p): Add function to look up register number of
6058 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6059 (i386_k_regnum_p): Likewise for K raw registers.
6060 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6061 registers added by AVX512.
6062 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6063 registers added by AVX512.
6064 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6066 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6067 (i386_pseudo_register_name): Add ZMM pseudo registers.
6068 (i386_zmm_type): Construct and return vector registers type for ZMM
6070 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6071 ZMM0-31 pseudo registers and K registers.
6072 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6073 and YMM16-31 registers from register cache.
6074 (i386_pseudo_register_write): Add code to write K, ZMM and
6076 (i386_register_reggroup_p): Add code to include/exclude AVX512
6077 registers in/from respective register groups.
6078 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6079 registers if feature is present in xcr0.
6080 (i386_gdbarch_init): Add code to initialize AVX512 feature
6081 variables in tdep structure, wire in pseudo registers and call
6082 initialize_tdesc_i386_avx512.
6083 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6085 (i386_regnum): Add AVX512 registers.
6086 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6087 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6088 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6089 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6091 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6092 (i386_ymm_avx512_regnum_p): Likewise.
6093 (i386_k_regnum_p): Likewise.
6094 (i386_zmm_regnum_p): Likewise.
6095 (i386_zmmh_regnum_p): Likewise.
6096 * i387-tdep.c : Update year in copyright notice.
6097 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6099 (XSAVE_YMM_AVX512_ADDR): New macro.
6100 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6102 (XSAVE_XMM_AVX512_ADDR): New macro.
6103 (xsave_avx512_k_offset): New table for K register offsets in
6105 (XSAVE_AVX512_K_ADDR): New macro.
6106 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6108 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6109 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6111 (i387_collect_xsave): Add code to collect AVX512 registers from
6113 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6114 of XMM16-31 registers.
6115 (I387_NUM_K_REGS): New define for number of K registers.
6116 (I387_K0_REGNUM): New define for K0 register number.
6117 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6118 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6119 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6121 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6122 (I387_XMM16_REGNUM): New define for XMM16 register number.
6123 (I387_YMM0_REGNUM): New define for YMM0 register number.
6124 (I387_KEND_REGNUM): New define for last K register number.
6125 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6126 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6128 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6130 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6132 * features/Makefile: Add AVX512 related files.
6133 * features/i386/32bit-avx512.xml: New file.
6134 * features/i386/64bit-avx512.xml: Likewise.
6135 * features/i386/amd64-avx512-linux.c: Likewise.
6136 * features/i386/amd64-avx512-linux.xml: Likewise.
6137 * features/i386/amd64-avx512.c: Likewise.
6138 * features/i386/amd64-avx512.xml: Likewise.
6139 * features/i386/i386-avx512-linux.c: Likewise.
6140 * features/i386/i386-avx512-linux.xml: Likewise.
6141 * features/i386/i386-avx512.c: Likewise.
6142 * features/i386/i386-avx512.xml: Likewise.
6143 * features/i386/x32-avx512-linux.c: Likewise.
6144 * features/i386/x32-avx512-linux.xml: Likewise.
6145 * features/i386/x32-avx512.c: Likewise.
6146 * features/i386/x32-avx512.xml: Likewise.
6147 * regformats/i386/amd64-avx512-linux.dat: New file.
6148 * regformats/i386/amd64-avx512.dat: Likewise.
6149 * regformats/i386/i386-avx512-linux.dat: Likewise.
6150 * regformats/i386/i386-avx512.dat: Likewise.
6151 * regformats/i386/x32-avx512-linux.dat: Likewise.
6152 * regformats/i386/x32-avx512.dat: Likewise.
6153 * NEWS: Add note about new support for AVX512.
6156 2014-04-23 Pedro Alves <palves@redhat.com>
6158 * breakpoint.c (insert_bp_location): Tolerate errors if the
6159 breakpoint is set in a user-loaded objfile.
6160 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6161 location is marked shlib_disabled. If the breakpoint is set in a
6162 user-loaded objfile is a GDB-side memory breakpoint, validate it
6163 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6164 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6166 * mem-break.c (memory_validate_breakpoint): New function.
6167 * objfiles.c (userloaded_objfile_contains_address_p): New
6169 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6170 * target.h (memory_validate_breakpoint): New declaration.
6172 2014-04-23 Pedro Alves <palves@redhat.com>
6174 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6175 the breakpoint is set in a shared library, only suppress
6176 errors for software breakpoints, not hardware breakpoints.
6178 2014-04-22 Pedro Alves <palves@redhat.com>
6180 * infrun.c (schedlock_applies): New function, factored out from
6181 find_thread_needs_step_over.
6182 (find_thread_needs_step_over): Use it.
6183 (switch_back_to_stepped_thread): Always clear trap_expected if the
6184 step over is finished. Return early if scheduler locking applies.
6185 Look for the stepping thread and a potential step-over thread with
6187 (currently_stepping_or_nexting_callback): Delete.
6189 2014-04-22 Nick Clifton <nickc@redhat.com>
6191 * NEWS: Mention that ARM sim now supports tracing.
6193 2014-04-22 Yao Qi <yao@codesourcery.com>
6195 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6197 * tracefile.c (tracefile_fetch_registers): ... it. New
6199 * tracefile.h (tracefile_fetch_registers): Declare.
6200 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6201 tracefile_fetch_registers.
6203 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6206 * windows-nat.c (thread_rec): Don't display a warning when
6207 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6208 fails for any reason, set th->suspended to -1, so that we don't
6209 try to resume such a thread. Also, don't return NULL in these
6210 cases, to avoid completely ruin the session due to "PC register is
6211 not available" error.
6212 (do_windows_fetch_inferior_registers): Check errors in
6213 GetThreadContext call.
6214 (windows_continue): Accept an additional argument KILLED; if not
6215 zero, ignore errors in the SetThreadContext call, since the
6216 inferior was killed and is shutting down.
6217 (windows_resume, get_windows_debug_event)
6218 (windows_create_inferior, windows_mourn_inferior)
6219 (windows_kill_inferior): All callers of windows_continue changed
6220 to adjust to its new calling sequence.
6222 2014-04-19 Yao Qi <yao@codesourcery.com>
6224 * ctf.c (ctf_open): Call post_create_inferior.
6226 2014-04-19 Yao Qi <yao@codesourcery.com>
6228 * ctf.c (handle_id): New static variable.
6229 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6230 value. Get the declaration of event "register" and get length
6231 of field "contents".
6233 2014-04-19 Yao Qi <yao@codesourcery.com>
6235 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6237 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6239 * valops.c (oload_method_static): Remove unnecessary argument
6240 METHOD. Update all callers.
6242 2014-04-18 Pedro alves <palves@redhat.com>
6243 Tom Tromey <tromey@redhat.com>
6246 * frame.c (get_prev_frame_1): Rename to ...
6247 (get_prev_frame_always): ... this, and make extern. Adjust.
6248 (skip_artificial_frames): Use get_prev_frame_always.
6249 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6250 (get_frame_unwind_stop_reason): Adjust to rename.
6251 * frame.h (get_prev_frame_always): Declare.
6252 * inline-frame.c: Include frame.h.
6253 (inline_frame_this_id): Use get_prev_frame_always.
6255 2014-04-18 Tristan Gingold <gingold@adacore.com>
6257 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6258 code by using bfd_mach_o_get_base_address.
6260 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6262 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6263 (spu_ax_pseudo_register_collect): New function.
6264 (spu_ax_pseudo_register_push_stack): Likewise.
6265 (spu_dwarf_reg_to_regnum): Likewise.
6266 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6268 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6270 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6271 Replace FRAME argument with FRAME_ID.
6272 * gdbarch.c, gdbarch.h: Regenerate.
6273 * findvar.c (default_value_from_register): Add GDBARCH argument;
6274 replace FRAME by FRAME_ID. No longer call get_frame_id.
6275 (value_from_register): Update call to gdbarch_value_from_register.
6276 * value.h (default_value_from_register): Update prototype.
6277 * s390-linux-tdep.c (s390_value_from_register): Update interface
6278 and call to default_value_from_register.
6279 * spu-tdep.c (spu_value_from_register): Likewise.
6281 * findvar.c (address_from_register): Remove TYPE argument.
6282 Do not call value_from_register; use gdbarch_value_from_register
6283 with null_frame_id instead.
6284 * value.h (address_from_register): Update prototype.
6285 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6286 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6287 address_from_register interface change.
6289 2014-04-17 Yao Qi <yao@codesourcery.com>
6291 * gdbtypes.h: Update comments to link to types and macros'
6294 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6296 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6298 2014-04-16 Keith Seitz <keiths@redhat.com>
6301 * dwarf2read.c (skip_one_die): Check that all relative-offset
6302 sibling DIEs fall within range of the current reader's buffer.
6303 (read_partial_die): Likewise.
6305 2014-04-16 Keith Seitz <keiths@redhat.com>
6308 * cp-namespace.c (lookup_symbol_file): If the type name of
6309 `this' is NULL, return immediately.
6311 2014-04-14 Keith Seitz <keiths@redhat.com>
6314 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6315 from symbol_matches_domain in symtab.c. All local callers
6316 of symbol_matches_domain updated.
6317 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6318 search STRUCT_DOMAIN.
6319 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6320 independently. standard_lookup will do that automatically.
6321 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6322 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6323 (cp_lookup_symbol_in_namespace): Likewise.
6324 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6325 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6326 may return a STRUCT_DOMAIN match.
6327 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6328 * cp-support.c: Include language.h.
6329 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6331 * psymtab.c (match_partial_symbol): Compare the requested
6332 domain with the symbol's domain directly.
6333 (lookup_partial_symbol): Likewise.
6334 * symtab.c (lookup_symbol_in_language): Explain when/why
6335 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6336 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6337 appropriate languages.
6338 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6339 and moved to ada-lang.c
6340 (lookup_block_symbol): Explain that this function only returns
6341 symbol matching the requested DOMAIN.
6342 Compare the requested domain with the symbol's domain directly.
6343 (iterate_over_symbols): Compare the requested domain with the
6344 symbol's domain directly.
6345 * symtab.h (symbol_matches_domain): Remove.
6347 2014-04-14 Tom Tromey <tromey@redhat.com>
6350 * c-exp.y (type_aggregate_p): New function.
6351 (qualified_name, classify_inner_name): Use it.
6352 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6353 and TYPE_TARGET_TYPE of an enum type.
6354 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6356 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6357 handle TYPE_DECLARED_CLASS.
6358 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6360 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6361 * valops.c (enum_constant_from_type): New function.
6362 (value_aggregate_elt): Use it.
6363 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6366 2014-04-14 Tom Tromey <tromey@redhat.com>
6368 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6369 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6371 * value.h (value_aggregate_elt): Update.
6373 2014-04-14 Tom Tromey <tromey@redhat.com>
6375 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6377 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6379 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6380 (evaluate_subexp_standard): Pass noside argument.
6381 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6382 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6383 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6384 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6385 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6387 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6389 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6390 points to a constant blob.
6392 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6394 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6395 property and store it as the high bound and flag the range accordingly.
6396 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6397 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6398 * gdbtypes.h (enum range_flags): New enum.
6399 (struct range_bounds): Add flags member.
6401 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6403 * c-typeprint.c (c_type_print_varspec_suffix): Added
6404 check for not yet resolved high bound. If unresolved, print
6405 "variable length" string to the console instead of random
6408 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6410 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6412 (ada_template_to_fixed_record_type_1): Likewise.
6413 (ada_to_fixed_type_1): Likewise.
6414 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6415 (cp_print_value): Likewise.
6416 * d-valprint.c (dynamic_array_type): Likewise.
6417 * findvar.c (address_of_variable): Likewise.
6418 * jv-valprint.c (java_value_print): Likewise.
6419 * valops.c (value_ind): Likewise.
6420 * value.c (coerce_ref): Likewise.
6422 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6424 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6425 value and retrieve the dynamic type size.
6427 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6429 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6430 passed to sizeof is dynamic evaluate the argument to compute the length.
6432 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6433 Joel Brobecker <brobecker@adacore.com>
6435 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6436 (dwarf2_evaluate_property): New function.
6437 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6438 * dwarf2read.c (attr_to_dynamic_prop): New function.
6439 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6441 * gdbtypes.c: Include dwarf2loc.h.
6442 (is_dynamic_type): New function.
6443 (resolve_dynamic_type): New function.
6444 (resolve_dynamic_bounds): New function.
6445 (get_type_length): New function.
6446 (check_typedef): Use get_type_length to compute type length.
6447 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6448 (TYPE_LOW_BOUND_KIND): New macro.
6449 (is_dynamic_type): New function prototype.
6450 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6451 to resolve dynamic properties of the type. Update comment.
6452 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6454 2014-04-14 Richard Henderson <rth@redhat.com>
6456 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6458 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6459 Doug Evans <xdje42@gmail.com>
6461 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6462 dereference TYPE_CODE_REF values.
6464 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6466 Revert the following changes due to regressions:
6468 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6469 (dwarf2_evaluate_property): New function.
6470 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6471 * dwarf2read.c (attr_to_dynamic_prop): New function.
6472 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6474 * gdbtypes.c: Include dwarf2loc.h.
6475 (is_dynamic_type): New function.
6476 (resolve_dynamic_type): New function.
6477 (resolve_dynamic_bounds): New function.
6478 (get_type_length): New function.
6479 (check_typedef): Use get_type_length to compute type length.
6480 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6481 (TYPE_LOW_BOUND_KIND): New macro.
6482 (is_dynamic_type): New function prototype.
6483 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6484 to resolve dynamic properties of the type. Update comment.
6485 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6487 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6488 passed to sizeof is dynamic evaluate the argument to compute the length.
6490 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6491 value and retrieve the dynamic type size.
6493 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6494 (ada_template_to_fixed_record_type_1): Likewise.
6495 (ada_to_fixed_type_1): Likewise.
6496 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6497 (cp_print_value): Likewise.
6498 * d-valprint.c (dynamic_array_type): Likewise.
6499 * eval.c (evaluate_subexp_with_coercion): Likewise.
6500 * findvar.c (address_of_variable): Likewise.
6501 * jv-valprint.c (java_value_print): Likewise.
6502 * valops.c (value_ind): Likewise.
6503 * value.c (coerce_ref): Likewise.
6505 * c-typeprint.c (c_type_print_varspec_suffix): Added
6506 check for not yet resolved high bound. If unresolved, print
6507 "variable length" string to the console instead of random
6510 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6511 property and store it as the high bound and flag the range accordingly.
6512 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6513 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6514 * gdbtypes.h (enum range_flags): New enum.
6515 (struct range_bounds): Add flags member.
6517 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6518 points to a constant blob.
6520 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6521 (evaluate_subexp_standard): Pass noside argument.
6522 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6523 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6524 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6525 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6526 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6528 2014-04-11 Keith Seitz <keiths@redhat.com>
6531 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6532 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6535 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6537 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6538 (evaluate_subexp_standard): Pass noside argument.
6539 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6540 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6541 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6542 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6543 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6545 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6547 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6548 points to a constant blob.
6550 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6552 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6553 property and store it as the high bound and flag the range accordingly.
6554 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6555 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6556 * gdbtypes.h (enum range_flags): New enum.
6557 (struct range_bounds): Add flags member.
6559 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6561 * c-typeprint.c (c_type_print_varspec_suffix): Added
6562 check for not yet resolved high bound. If unresolved, print
6563 "variable length" string to the console instead of random
6566 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6568 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6569 (ada_template_to_fixed_record_type_1): Likewise.
6570 (ada_to_fixed_type_1): Likewise.
6571 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6572 (cp_print_value): Likewise.
6573 * d-valprint.c (dynamic_array_type): Likewise.
6574 * eval.c (evaluate_subexp_with_coercion): Likewise.
6575 * findvar.c (address_of_variable): Likewise.
6576 * jv-valprint.c (java_value_print): Likewise.
6577 * valops.c (value_ind): Likewise.
6578 * value.c (coerce_ref): Likewise.
6580 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6582 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6583 value and retrieve the dynamic type size.
6585 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6587 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6588 passed to sizeof is dynamic evaluate the argument to compute the length.
6590 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6592 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6593 (dwarf2_evaluate_property): New function.
6594 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6595 * dwarf2read.c (attr_to_dynamic_prop): New function.
6596 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6598 * gdbtypes.c: Include dwarf2loc.h.
6599 (is_dynamic_type): New function.
6600 (resolve_dynamic_type): New function.
6601 (resolve_dynamic_bounds): New function.
6602 (get_type_length): New function.
6603 (check_typedef): Use get_type_length to compute type length.
6604 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6605 (TYPE_LOW_BOUND_KIND): New macro.
6606 (is_dynamic_type): New function prototype.
6607 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6608 to resolve dynamic properties of the type. Update comment.
6609 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6611 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6613 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6614 declaring high/low bounds and change uses accordingly. Call
6615 create_range_type instead of create_static_range_type.
6616 * gdbtypes.c (create_range_type): New function.
6617 (create_range_type): Convert bounds into struct bound_prop and pass
6618 them to create_range_type.
6619 * gdbtypes.h (struct bound_prop): New struct.
6620 (create_range_type): New function prototype.
6621 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6622 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6623 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6625 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6627 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6629 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6630 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6631 * ada-lang.c: All uses of create_range_type updated.
6632 * coffread.c: All uses of create_range_type updated.
6633 * dwarf2read.c: All uses of create_range_type updated.
6634 * f-exp.y: All uses of create_range_type updated.
6635 * m2-valprint.c: All uses of create_range_type updated.
6636 * mdebugread.c: All uses of create_range_type updated.
6637 * stabsread.c: All uses of create_range_type updated.
6638 * valops.c: All uses of create_range_type updated.
6639 * valprint.c: All uses of create_range_type updated.
6641 2014-04-10 Pedro Alves <palves@redhat.com>
6643 * breakpoint.c (single_step_breakpoints)
6644 (single_step_gdbarch): Move up in the file.
6645 (one_breakpoint_xfer_memory): New function, factored out from ...
6646 (breakpoint_xfer_memory): ... here. Also process single-step
6649 2014-04-09 Tristan Gingold <gingold@adacore.com>
6651 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6653 (darwin_decode_exception_message): Free port only after use.
6655 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6657 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6658 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6659 when setting the size of call_length.
6661 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6663 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6664 dereference TYPE_CODE_REF values.
6666 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6668 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6669 end of warning message.
6671 2014-04-03 Doug Evans <dje@google.com>
6673 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6674 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6676 2014-04-02 Alan Modra <amodra@gmail.com>
6678 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6679 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6680 (struct symbol_file_add_from_memory_args): Add size field.
6681 (find_vdso_size): New function.
6682 (add_vsyscall_page): Attempt to find vdso size.
6684 2014-04-01 Doug Evans <dje@google.com>
6686 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6688 2014-04-01 Tristan Gingold <gingold@adacore.com>
6690 * darwin-nat.c (darwin_encode_reply): Add prototype.
6691 (darwin_decode_exception_message): Reply to unknown inferiors.
6692 (darwin_decode_message): Handle message by id. Ignore message
6693 to unknown inferior.
6694 (darwin_wait): Discard unknown messages, add debug trace.
6696 2014-03-31 Doug Evans <dje@google.com>
6698 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6701 2014-03-31 Doug Evans <dje@google.com>
6703 New option "set print symbol-loading".
6705 * solib.c (solib_read_symbols): Only print symbol loading messages
6707 (solib_add): If symbol loading is in "brief" mode, notify user
6708 symbols are being loaded.
6709 (reload_shared_libraries_1): Ditto.
6710 * symfile.c (print_symbol_loading_off): New static global.
6711 (print_symbol_loading_brief): New static global.
6712 (print_symbol_loading_full): New static global.
6713 (print_symbol_loading_enums): New static global.
6714 (print_symbol_loading): New static global.
6715 (print_symbol_loading_p): New function.
6716 (symbol_file_add_with_addrs): Only print symbol loading messages
6718 (_initialize_symfile): Register "print symbol-loading" set/show
6720 * symfile.h (print_symbol_loading_p): Declare.
6722 2014-03-30 Doug Evans <xdje42@gmail.com>
6724 * infrun.c (set_last_target_status): New function.
6725 (handle_inferior_event): Call it.
6727 2014-03-30 Doug Evans <xdje42@gmail.com>
6729 * inferior.h (enum stop_kind): Improve comment.
6731 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6733 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6734 a reference, strip the reference layer before calling
6735 the lang_ops value_has_mutated callback.
6737 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6739 Remove some globals from our parser.
6740 * language.c (unk_lang_parser): Add "struct parser_state"
6742 * language.h (struct language_defn) <la_parser>: Likewise.
6743 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6744 (initialize_expout): Add "struct parser_state" argument.
6745 Rewrite function to use the parser state.
6746 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6747 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6748 write_exp_elt_longcst, write_exp_elt_dblcst,
6749 write_exp_elt_decfloatcst, write_exp_elt_type,
6750 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6751 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6752 write_dollar_variable): Likewise.
6753 (parse_exp_in_context_1): Use parser state.
6754 (insert_type_address_space): Add "struct parser_state" argument.
6756 (increase_expout_size): New function.
6757 * parser-defs.h: Forward declare "struct language_defn" and
6758 "struct parser_state".
6759 (expout, expout_size, expout_ptr): Remove extern declarations.
6760 (parse_gdbarch, parse_language): Rewrite macro declarations to
6761 accept the parser state.
6762 (struct parser_state): New struct.
6763 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6764 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6765 write_exp_elt_decfloatcst, write_exp_elt_type,
6766 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6767 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6768 write_exp_msymbol, write_dollar_variable,
6769 mark_struct_expression, insert_type_address_space): Add "struct
6770 parser_state" argument.
6771 (increase_expout_size): New function.
6772 * utils.c (do_clear_parser_state): New function.
6773 (make_cleanup_clear_parser_state): Likewise.
6774 * utils.h (make_cleanup_clear_parser_state): New function
6776 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6777 Update calls to write_exp* in order to pass the parser state.
6778 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6779 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6780 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6781 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6782 * stap-probe.c (stap_parse_register_operand): Likewise.
6783 (stap_parse_single_operand): Likewise.
6784 (stap_parse_argument_1): Likewise.
6785 (stap_parse_argument): Use parser state.
6786 * stap-probe.h: Include "parser-defs.h".
6787 (struct stap_parse_info) <pstate>: New field.
6788 * c-exp.y (parse_type): Rewrite to use parser state.
6789 (yyparse): Redefine to c_parse_internal.
6790 (pstate): New global variable.
6791 (parse_number): Add "struct parser_state" argument.
6792 (write_destructor_name): Likewise.
6793 (type_exp): Update calls to write_exp* and similars in order to
6795 (exp1, exp, variable, qualified_name, space_identifier,
6796 typename, typebase): Likewise.
6797 (write_destructor_name, parse_number, lex_one_token,
6798 classify_name, classify_inner_name, c_parse): Add "struct
6799 parser_state" argument. Update function to use parser state.
6800 * c-lang.h: Forward declare "struct parser_state".
6801 (c_parse): Add "struct parser_state" argument.
6802 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6803 (yyparse): Redefine macro to ada_parse_internal.
6804 (pstate): New variable.
6805 (write_int, write_object_renaming, write_var_or_type,
6806 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6807 type_int, type_long, type_long_long, type_float, type_double,
6808 type_long_double, type_char, type_boolean, type_system_address):
6809 Add "struct parser_state" argument.
6810 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6811 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6812 var_or_type, aggregate, aggregate_component_list,
6813 positional_list, others, component_group,
6814 component_associations): Update calls to write_exp* and similar
6815 functions in order to use parser state.
6816 (ada_parse, write_var_from_sym, write_int,
6817 write_exp_op_with_string, write_object_renaming,
6818 find_primitive_type, write_selectors, write_ambiguous_var,
6819 write_var_or_type, write_name_assoc, type_int, type_long,
6820 type_long_long, type_float, type_double, type_long_double,
6821 type_char, type_boolean, type_system_address): Add "struct
6822 parser_state" argument. Adjust function to use parser state.
6823 * ada-lang.c (parse): Likewise.
6824 * ada-lang.h: Forward declare "struct parser_state".
6825 (ada_parse): Add "struct parser_state" argument.
6826 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6827 calls to both functions.
6828 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6830 (yyparse): Redefine macro to f_parse_internal.
6831 (pstate): New variable.
6832 (parse_number): Add "struct parser_state" argument.
6833 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6834 and similars in order to use parser state.
6835 (parse_number): Adjust code to use parser state.
6837 (f_parse): New function.
6838 * f-lang.h: Forward declare "struct parser_state".
6839 (f_parse): Add "struct parser_state" argument.
6840 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6842 (yyparse): Redefine macro for java_parse_internal.
6843 (pstate): New variable.
6844 (push_expression_name, push_expression_name, insert_exp): Add
6845 "struct parser_state" argument.
6846 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6847 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6848 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6849 PostIncrementExpression, PostDecrementExpression,
6850 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6851 UnaryExpressionNotPlusMinus, CastExpression,
6852 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6853 RelationalExpression, EqualityExpression, AndExpression,
6854 ExclusiveOrExpression, InclusiveOrExpression,
6855 ConditionalAndExpression, ConditionalOrExpression,
6856 ConditionalExpression, Assignment, LeftHandSide): Update
6857 calls to write_exp* and similars in order to use parser state.
6858 (parse_number): Ajust code to use parser state.
6860 (java_parse): New function.
6861 (push_variable): Add "struct parser_state" argument. Adjust
6862 code to user parser state.
6863 (push_fieldnames, push_qualified_expression_name,
6864 push_expression_name, insert_exp): Likewise.
6865 * jv-lang.h: Forward declare "struct parser_state".
6866 (java_parse): Add "struct parser_state" argument.
6867 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6869 (yyparse): Redefine macro to m2_parse_internal.
6870 (pstate): New variable.
6871 (type_exp, exp, fblock, variable, type): Update calls to
6872 write_exp* and similars to use parser state.
6874 (m2_parse): New function.
6875 * m2-lang.h: Forward declare "struct parser_state".
6876 (m2_parse): Add "struct parser_state" argument.
6877 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6878 * objc-lang.h: Forward declare "struct parser_state".
6879 (end_msglist): Add "struct parser_state" argument.
6880 * p-exp.y (parse_type): Rewrite macro to use parser state.
6881 (yyparse): Redefine macro to pascal_parse_internal.
6882 (pstate): New variable.
6883 (parse_number): Add "struct parser_state" argument.
6884 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6885 write_exp* and similars in order to use parser state.
6886 (parse_number, yylex): Adjust code to use parser state.
6887 (pascal_parse): New function.
6888 * p-lang.h: Forward declare "struct parser_state".
6889 (pascal_parse): Add "struct parser_state" argument.
6890 * go-exp.y (parse_type): Rewrite macro to use parser state.
6891 (yyparse): Redefine macro to go_parse_internal.
6892 (pstate): New variable.
6893 (parse_number): Add "struct parser_state" argument.
6894 (type_exp, exp1, exp, variable, type): Update calls to
6895 write_exp* and similars in order to use parser state.
6896 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6897 to use parser state.
6898 (go_parse): Likewise.
6899 * go-lang.h: Forward declare "struct parser_state".
6900 (go_parse): Add "struct parser_state" argument.
6902 2014-03-27 Doug Evans <dje@google.com>
6904 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6906 2014-03-27 Doug Evans <dje@google.com>
6908 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6909 Remove argument abbrev_section. All callers updated.
6911 2014-03-27 Doug Evans <dje@google.com>
6913 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6914 addr_base, ranges_base.
6916 2014-03-26 Keith Seitz <keiths@redhat.com>
6918 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6919 types, not VAR_DOMAIN.
6921 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6923 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6925 * features/nios2-linux.c: Regenerated.
6926 * features/nios2.c: Regenerated.
6928 2014-03-25 Pedro Alves <palves@redhat.com>
6930 * cli/cli-script.c (script_from_file): Force the interpreter to
6933 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6935 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6936 small stack allocation.
6938 2014-03-24 Tristan Gingold <gingold@adacore.com>
6940 * darwin-nat.c (exc_server): Remove unused prototype.
6941 (darwin_dump_message): Correctly display data on x86_64.
6942 (darwin_encode_reply): Fix style.
6943 Add comments and fix indentation.
6945 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6947 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6949 2014-03-22 Doug Evans <xdje42@gmail.com>
6951 * infcmd.c: Whitespace fixes.
6952 (interrupt_command): Merge two function comments into one.
6954 2014-03-22 Doug Evans <xdje42@gmail.com>
6956 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6959 2014-03-22 Yao Qi <yao@codesourcery.com>
6961 * remote.c (target_read_live_memory): Remove.
6962 (memory_xfer_live_readonly_partial): Rename it to
6963 remote_xfer_live_readonly_partial. Remove argument 'object'.
6964 All callers updated. Call remote_read_bytes_1
6965 instead of target_read_live_memory.
6966 * tracepoint.c (set_traceframe_number): Remove.
6967 (make_cleanup_restore_traceframe_number): Likewise .
6968 * tracepoint.h (set_traceframe_number): Remove declaration.
6969 (make_cleanup_restore_traceframe_number): Likewise.
6971 2014-03-22 Yao Qi <yao@codesourcery.com>
6973 * remote.c (remote_read_bytes): Move code on reading from the
6975 (remote_read_bytes_1): ... here. New function.
6977 2014-03-22 Yao Qi <yao@codesourcery.com>
6979 * ctf.c (ctf_xfer_partial): Check the return value of
6980 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6981 return TARGET_XFER_UNAVAILABLE.
6982 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6983 * target.c (target_read_live_memory): Move it to remote.c.
6984 (memory_xfer_live_readonly_partial): Likewise.
6985 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6986 * remote.c (target_read_live_memory): Moved from target.c.
6987 (memory_xfer_live_readonly_partial): Likewise.
6988 (remote_read_bytes): Factored out from
6989 memory_xfer_partial_1.
6991 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6993 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6996 2014-03-21 Pedro Alves <palves@redhat.com>
6998 * infrun.c (normal_stop): Extend comment.
7000 2014-03-21 Hui Zhu <hui@codesourcery.com>
7001 Pedro Alves <palves@redhat.com>
7003 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7005 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7006 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7007 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7009 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7011 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7012 `z' formatted output modifier.
7014 2014-03-20 Tom Tromey <tromey@redhat.com>
7015 Sergio Durigan Junior <sergiodj@redhat.com>
7017 * probe.c (parse_probes): Turn assert into an ordinary error.
7018 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7019 exceptions when parsing probes. Rearrange the code for clarity.
7021 2014-03-20 Tom Tromey <tromey@redhat.com>
7024 * top.c (execute_command): Only dispatch events if the command
7027 2014-03-20 Tom Tromey <tromey@redhat.com>
7030 * infcall.c: Include event-top.h.
7031 (run_inferior_call): Call async_disable_stdin if needed.
7033 2014-03-20 Pedro Alves <palves@redhat.com>
7035 * infrun.c (prepare_to_proceed): Delete.
7036 (thread_still_needs_step_over): New function.
7037 (find_thread_needs_step_over): New function.
7038 (proceed): If the current thread needs a step-over, set its
7039 steping_over_breakpoint flag. Adjust to use
7040 find_thread_needs_step_over instead of prepare_to_proceed.
7041 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7042 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7044 (switch_back_to_stepped_thread): Step over breakpoints of all
7045 threads not the stepping thread, before switching back to the
7048 2014-03-20 Pedro Alves <palves@redhat.com>
7050 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7052 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7053 * infrun.c (saved_singlestep_ptid)
7054 (stepping_past_singlestep_breakpoint): Delete.
7055 (resume): Remove stepping_past_singlestep_breakpoint handling.
7056 (proceed): Store the prev_pc of the stepping thread too.
7057 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7059 (enum infwait_states): Delete infwait_thread_hop_state.
7060 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7062 (handle_inferior_event): Adjust.
7063 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7064 handling and the thread-hop code. Before removing single-step
7065 breakpoints, check whether the thread hit a single-step breakpoint
7066 of another thread. If it did, the trap is not a random signal.
7067 (switch_back_to_stepped_thread): If the event thread hit a
7068 single-step breakpoint, unblock it before switching to the
7069 stepping thread. Handle the case of the stepped thread having
7071 (keep_going): Handle the case of the current thread moving past a
7072 single-step breakpoint.
7074 2014-03-20 Pedro Alves <palves@redhat.com>
7077 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7078 are being stepped over.
7079 (breakpoint_address_match): Make extern.
7080 * breakpoint.h (breakpoint_address_match): New declaration.
7081 * inferior.h (stepping_past_instruction_at): New declaration.
7082 * infrun.c (struct step_over_info): New type.
7083 (step_over_info): New global.
7084 (set_step_over_info, clear_step_over_info)
7085 (stepping_past_instruction_at): New functions.
7086 (handle_inferior_event): Clear the step-over info when
7087 trap_expected is cleared.
7088 (resume): Remove now stale comment.
7089 (clear_proceed_status): Clear step-over info.
7090 (proceed): Adjust step-over handling to set or clear the step-over
7091 info instead of removing all breakpoints.
7092 (handle_signal_stop): When setting up a thread-hop, don't remove
7094 (stop_stepping): Clear step-over info.
7095 (keep_going): Adjust step-over handling to set or clear step-over
7096 info and then always inserting breakpoints, instead of removing
7097 all breakpoints when stepping over one.
7099 2014-03-20 Pedro Alves <palves@redhat.com>
7101 * infrun.c (previous_inferior_ptid): Adjust comment.
7102 (deferred_step_ptid): Delete.
7103 (infrun_thread_ptid_changed, prepare_to_proceed)
7104 (init_wait_for_inferior): Adjust.
7105 (handle_signal_stop): Delete deferred_step_ptid handling.
7107 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7110 * defs.h (sync_quit_force_run): New declaration.
7111 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7112 * event-top.c (async_sigterm_handler): New declaration.
7113 (async_sigterm_token): New variable.
7114 (async_init_signals): Create also async_sigterm_token.
7115 (async_sigterm_handler): New function.
7116 (sync_quit_force_run): New variable.
7117 (handle_sigterm): Replace quit_force call by other calls.
7118 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7120 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7122 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7123 offset into SPE pseudo registers.
7125 2014-03-18 Pedro Alves <palves@redhat.com>
7128 * inferior.h (print_stop_event): Declare.
7129 * infrun.c (print_stop_event): New, factored out from ...
7130 (normal_stop): ... this.
7131 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7132 of bpstat_print/print_stack_frame.
7134 2014-03-17 Tom Tromey <tromey@redhat.com>
7136 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7138 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7140 * ada-lang.c (decode_constrained_packed_array): Perform a
7141 minimal coercion for reference with coerce_ref instead of
7144 2014-03-17 Tristan Gingold <gingold@adacore.com>
7146 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7147 (darwin_solib_create_inferior_hook): Emit a warning if version
7150 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7152 * python/py-value.c (get_field_flag): Cast flag_name argument to
7153 PyObject_GetAttrString to support Python 2.4.
7155 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7157 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7158 (Global Maintainers): Remove Jan Kratochvil.
7160 2014-03-14 Pedro Alves <palves@redhat.com>
7162 * inferior.h (terminal_ours_for_output): Rename to ...
7163 (child_terminal_ours_for_output): ... this.
7164 (terminal_save_ours): Rename to ...
7165 (child_terminal_save_ours): ... this.
7166 (terminal_ours): Rename to ...
7167 (child_terminal_ours): ... this.
7168 (terminal_inferior): Rename to ...
7169 (child_terminal_inferior): ... this.
7170 (terminal_init_inferior): Rename to ...
7171 (child_terminal_init_inferior): ... this.
7172 (terminal_init_inferior_with_pgrp): Rename to ...
7173 (child_terminal_init_inferior_with_pgrp): ... this.
7174 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7175 (child_terminal_init_with_pgrp): ... this.
7176 (terminal_save_ours): Rename to ...
7177 (child_terminal_save_ours): ... this.
7178 (terminal_init_inferior): Rename to ...
7179 (child_terminal_init): ... this. Adjust.
7180 (terminal_inferior): Rename to ...
7181 (child_terminal_inferior): ... this.
7182 (terminal_ours_for_output): Rename to ...
7183 (child_terminal_ours_for_output): ... this. Adjust.
7184 (terminal_ours): Rename to ...
7185 (child_terminal_ours): ... this.
7186 (terminal_ours_1): Rename to ...
7187 (child_terminal_ours_1): ... this. Adjust.
7188 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7189 * windows-nat.c (do_initial_windows_stuff): Adjust.
7190 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7191 (gnu_terminal_init): ... this. Adjust.
7192 (gnu_target): Adjust.
7193 * inf-child.c (inf_child_target): Adjust.
7195 2014-03-13 Doug Evans <xdje42@gmail.com>
7198 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7201 2014-03-13 Doug Evans <xdje42@gmail.com>
7203 * value.c (record_latest_value): Call release_value_or_incref
7204 instead of release_value.
7206 2014-03-13 Pedro Alves <palves@redhat.com>
7208 * procfs.c (procfs_target): Don't override to_shortname,
7209 to_longname or to_doc.
7211 2014-03-13 Pedro Alves <palves@redhat.com>
7213 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7214 Unix in user visible strings.
7216 2014-03-12 Stan Shebs <stan@codesourcery.com>
7218 * gdbtypes.h: Annotate comments for Doxygen, add a page
7219 block comment with some general info.
7221 2014-03-12 Pedro Alves <palves@redhat.com>
7223 * infcmd.c (prepare_execution_command): New function, factored out
7224 from several execution commands.
7225 (run_command_1, continue_command, step_1, jump_command)
7226 (signal_command, until_command, advance_command, finish_command)
7227 (attach_command): Use prepare_execution_command.
7229 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7231 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7234 (struct arm_linux_thread_points): Removed.
7235 (struct arm_linux_process_info): New.
7236 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7237 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7238 (arm_linux_find_breakpoints_by_tid): Removed.
7239 (struct arch_lwp_info): New.
7240 (arm_linux_find_process_pid): New functions.
7241 (arm_linux_add_process): New functions.
7242 (arm_linux_process_info_get): New functions.
7243 (arm_linux_forget_process): New function.
7244 (arm_linux_get_debug_reg_state): New function.
7245 (struct update_registers_data): New.
7246 (update_registers_callback): New function.
7247 (arm_linux_insert_hw_breakpoint1): Updated.
7248 (arm_linux_remove_hw_breakpoint1): Updated.
7249 (arm_linux_insert_hw_breakpoint): Updated.
7250 (arm_linux_remove_hw_breakpoint): Updated.
7251 (arm_linux_insert_watchpoint): Updated.
7252 (arm_linux_remove_watchpoint): Updated.
7253 (arm_linux_new_thread): Updated.
7254 (arm_linux_prepare_to_resume): New function.
7255 (arm_linux_new_fork): New function.
7256 (_initialize_arm_linux_nat): Updated.
7258 2014-03-12 Pedro Alves <palves@redhat.com>
7260 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7262 2014-03-12 Tom Tromey <tromey@redhat.com>
7264 * inf-child.c (return_zero): New function.
7265 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7266 * aix-thread.c (aix_thread_inferior_created): New function.
7267 (aix_thread_attach): Remove.
7268 (init_aix_thread_ops): Don't set to_attach.
7269 (_initialize_aix_thread): Register inferior_created observer.
7270 * corelow.c (init_core_ops): Don't set to_attach or
7272 * exec.c (init_exec_ops): Don't set to_attach or
7274 * infcmd.c (run_command_1): Use find_run_target. Make direct
7276 (attach_command): Use find_attach_target. Make direct target
7278 * record-btrace.c (init_record_btrace_ops): Don't set
7280 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7282 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7283 set to_create_inferior.
7284 * target.c (complete_target_initialization): Add assertion.
7285 (target_create_inferior): Remove.
7286 (find_default_attach, find_default_create_inferior): Remove.
7287 (find_attach_target, find_run_target): New functions.
7288 (find_default_is_async_p, find_default_can_async_p)
7289 (target_supports_non_stop, target_attach): Remove.
7290 (init_dummy_target): Don't set to_create_inferior or
7291 to_supports_non_stop.
7292 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7293 TARGET_DEFAULT_FUNC.
7294 <to_create_inferior>: Add comment.
7295 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7296 TARGET_DEFAULT_RETURN.
7297 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7298 (find_attach_target, find_run_target): Declare.
7299 (target_create_inferior): Remove.
7300 (target_has_execution_1): Update comment.
7301 (target_supports_non_stop): Remove.
7302 * target-delegates.c: Rebuild.
7304 2014-03-12 Pedro Alves <palves@redhat.com>
7306 * inf-child.h: Update comment to not mention Unix.
7308 2014-03-12 Pedro Alves <palves@redhat.com>
7310 * inf-child.c: Update top comment to not mention Unix. Add
7311 generic comment describing how this target is meant to be used.
7312 (inf_child_post_attach, inf_child_post_startup_inferior)
7313 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7316 2014-03-12 Pedro Alves <palves@redhat.com>
7318 * nto-procfs.c: Include inf-child.h.
7319 (procfs_ops): Delete global.
7320 (procfs_can_run): Delete method.
7321 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7322 target pointer instead of referencing procfs_ops.
7323 (procfs_prepare_to_store): Delete.
7324 (init_procfs_ops): Delete function.
7325 (procfs_target): New function, based on init_procfs_ops, but
7326 inherit inf_child_target.
7327 (_initialize_procfs): Use procfs_target.
7329 2014-03-12 Pedro Alves <palves@redhat.com>
7331 * windows-nat.c: Include inf-child.h.
7332 (windows_ops): Delete global.
7333 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7335 (init_windows_ops): Delete function.
7336 (windows_target): New function, based on init_windows_ops, but
7337 inherit inf_child_target.
7338 (_initialize_windows_nat): Use windows_target. Install x86
7339 specific target methods here.
7341 2014-03-10 Doug Evans <xdje42@gmail.com>
7343 * guile/guile.c (call_initialize_gdb_module): New function.
7344 (initialize_guile): Replace call to scm_init_guile with call to
7347 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7349 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7350 in call to TYPE_CODE macro.
7352 2014-03-10 Jerome Guitton <guitton@adacore.com>
7354 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7355 Resolve tagged types to full view.
7357 2014-03-10 Hui Zhu <hui@codesourcery.com>
7359 * target.h (target_insert_breakpoint): Remove "hardware" from its
7362 2014-03-07 Doug Evans <dje@google.com>
7364 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7366 2014-03-07 Doug Evans <dje@google.com>
7368 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7369 Remove unused local comp_dir_attr. Assert exactly one of
7370 stub_comp_unit_die, stub_comp_dir is non-NULL.
7372 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7374 * target.h (complete_target_initialization, add_target):
7377 2014-03-07 Pedro Alves <palves@redhat.com>
7379 * go32-nat.c: Include inf-child.h.
7380 (go32_ops): Delete global.
7381 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7383 (go32_create_inferior): Push the passed in target pointer instead
7384 of referencing go32_ops.
7385 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7386 (go32_target): New function, based on init_go32_ops, but inherit
7388 (_initialize_go32_nat): Use go32_target. Move parts of
7391 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7393 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7394 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7395 SYMBOL_VALUE_ADDRESS.
7396 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7398 2014-03-06 Yao Qi <yao@codesourcery.com>
7400 * breakpoint.c (get_tracepoint_by_number): Remove argument
7401 optional_p. All callers updated. Adjust comments. Update
7403 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7405 2014-03-06 Yao Qi <yao@codesourcery.com>
7407 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7408 early if get_number returns zero. Use 'p' instead of 'args'.
7410 2014-03-06 Yao Qi <yao@codesourcery.com>
7412 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7415 2014-03-06 Yao Qi <yao@codesourcery.com>
7417 PR breakpoints/16508
7418 * tracepoint.c (check_trace_running): New function.
7419 (trace_find_command): Move code to check_trace_running and
7420 call check_trace_running.
7421 (trace_find_pc_command): Likewise.
7422 (trace_find_tracepoint_command): Likewise.
7423 (trace_find_line_command): Likewise.
7424 (trace_find_range_command): Likewise.
7425 * tracepoint.h (check_trace_running): Likewise.
7426 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7428 2014-03-06 Yao Qi <yao@codesourcery.com>
7430 * target.h (struct target_ops) <to_traceframe_info>: Use
7431 TARGET_DEFAULT_NORETURN (tcomplain ()).
7432 * target-delegates.c: Regenerated.
7434 2014-03-05 Pedro Alves <palves@redhat.com>
7437 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7438 void. Update comment.
7439 (dcache_xfer_memory): Delete.
7440 (dcache_read_memory_partial): New, based on the read bits of
7442 (dcache_update): Add status parameter. Use ULONGEST for len, and
7443 adjust. Discard cache lines if the reason for the update was
7445 * dcache.h (dcache_xfer_memory): Delete declaration.
7446 (dcache_read_memory_partial): New declaration.
7447 (dcache_update): Update prototype.
7448 * target.c (raw_memory_xfer_partial): Update the dcache here.
7449 (memory_xfer_partial_1): Don't handle dcache writes here.
7451 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7453 * remote-sim.c (gdbsim_load): Add const to prog.
7455 2014-03-03 Tom Tromey <tromey@redhat.com>
7457 * elfread.c (probe_key): Change to bfd_data.
7458 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7459 now per-BFD, not per-objfile.
7460 * stap-probe.c (stap_probe_destroy): Update comment.
7461 (handle_stap_probe): Allocate on the per-BFD obstack.
7463 2014-03-03 Tom Tromey <tromey@redhat.com>
7465 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7466 * breakpoint.c (create_longjmp_master_breakpoint): Use
7468 (add_location_to_breakpoint, bkpt_probe_insert_location)
7469 (bkpt_probe_remove_location): Update.
7470 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7471 * elfread.c (elf_symfile_relocate_probe): Remove.
7472 (elf_probe_fns): Update.
7473 (insert_exception_resume_breakpoint): Change type of "probe"
7474 parameter to bound_probe.
7475 (check_exception_resume): Update.
7476 * objfiles.c (objfile_relocate1): Don't relocate probes.
7477 * probe.c (bound_probe_s): New typedef.
7478 (parse_probes): Use get_probe_address. Set sal's objfile.
7479 (find_probe_by_pc): Return a bound_probe.
7480 (collect_probes): Return a VEC(bound_probe_s).
7481 (compare_probes): Update.
7482 (gen_ui_out_table_header_info): Change type of "probes"
7484 (info_probes_for_ops): Update.
7485 (get_probe_address): New function.
7486 (probe_safe_evaluate_at_pc): Update.
7487 * probe.h (struct probe_ops) <get_probe_address>: New field.
7488 <set_semaphore, clear_semaphore>: Add objfile parameter.
7489 (struct probe) <objfile>: Remove field.
7491 <address>: Update comment.
7492 (struct bound_probe): New.
7493 (find_probe_by_pc): Return a bound_probe.
7494 (get_probe_address): Declare.
7495 * solib-svr4.c (struct probe_and_action) <address>: New field.
7496 (hash_probe_and_action, equal_probe_and_action): Update.
7497 (register_solib_event_probe): Add address parameter.
7498 (solib_event_probe_at): Update.
7499 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7501 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7502 (stap_get_probe_address): New function.
7503 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7504 (compile_probe_arg): Update.
7505 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7507 (handle_stap_probe): Don't relocate the probe.
7508 (stap_relocate): Remove.
7509 (stap_gen_info_probes_table_values): Update.
7510 (stap_probe_ops): Remove stap_relocate.
7511 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7512 (debug_sym_probe_fns): Update.
7513 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7514 * symtab.c (init_sal): Use memset.
7515 * symtab.h (struct symtab_and_line) <objfile>: New field.
7516 * tracepoint.c (start_tracing, stop_tracing): Update.
7518 2014-03-03 Tom Tromey <tromey@redhat.com>
7520 * probe.h (parse_probes, find_probe_by_pc)
7521 (find_probes_in_objfile): Fix comments.
7523 2014-03-02 Doug Evans <xdje42@gmail.com>
7525 * infrun.c (handle_signal_stop): Replace test for
7526 TARGET_WAITKIND_STOPPED with an assert.
7528 2014-03-02 Doug Evans <xdje42@gmail.com>
7530 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7532 2014-03-02 Doug Evans <xdje42@gmail.com>
7534 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7536 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7538 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7540 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7542 * i386obsd-nat.c: Include "obsd-nat.h".
7543 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7545 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7547 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7549 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7551 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7553 * mips64obsd-nat.c: Include "obsd-nath".
7554 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7556 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7558 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7560 * amd64obsd-nat.c: Include "obsd-nat,h.
7561 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7563 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7565 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7567 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7568 (find_overload_match): Update call to find_oload_champ.
7569 (find_oload_champ_namespace_loop): Likewise
7571 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7573 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7575 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7576 * config/sparc/obsd64.mh: New file.
7577 * sparc64obsd-nat.c: New file.
7579 * obsd-nat.h: New file.
7580 * obsd-nat.c: New file.
7581 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7582 (ALLDEPFILES): Add obsd-nat.c.
7584 2014-02-28 Tom Tromey <tromey@redhat.com>
7586 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7587 * cli-out.h (cli_ui_out_impl): Now const.
7588 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7589 * ui-out.c (struct ui_out) <impl>: Now const.
7590 (default_ui_out_impl): Now const.
7591 (ui_out_new): Make 'impl' parameter const.
7592 * ui-out.h (ui_out_new): Update.
7594 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7596 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7598 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7600 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7602 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7604 Additional PR 8882 fix.
7605 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7607 2014-02-27 Pedro Alves <palves@redhat.com>
7609 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7612 2014-02-27 Pedro Alves <palves@redhat.com>
7615 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7616 * nat/linux-waitpid.c: Include string.h.
7617 (status_to_str): Moved here and made extern.
7618 * nat/linux-waitpid.h (status_to_str): New declaration.
7620 2014-02-27 Hui Zhu <hui@codesourcery.com>
7623 * infrun.c (ptid_match): Move ...
7624 * common/ptid.c (ptid_match): ... here.
7625 * inferior.h (ptid_match): Move ...
7626 * common/ptid.h (ptid_match): ... here.
7628 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7630 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7631 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7634 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7636 * obsd-tdep.c (obsd_auxv_parse): New function.
7637 (obsd_init_abi): Set auxv_parse.
7639 * gdbarch.sh (auxv_parse): New.
7640 * gdbarch.h: Regenerated.
7641 * gdbarch.c: Regenerated.
7642 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7644 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7646 * guile/scm-value.c (gdbscm_history_append_x): New function.
7647 (value_functions): Add it.
7649 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7651 * dwarf2read.c (attr_value_as_address): New function.
7652 (dwarf2_find_base_address, read_call_site_scope): Use
7653 attr_value_as_address in place of DW_ADDR.
7654 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7655 the low and high addresses. Slight rework of the handling
7656 of the high pc being a constant form, and limit it to
7657 DWARF verson 4 or higher.
7658 (dwarf2_record_block_ranges): Likewise.
7659 (read_partial_die): Likewise.
7660 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7662 2014-02-26 Tom Tromey <tromey@redhat.com>
7664 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7666 2014-02-26 Tom Tromey <tromey@redhat.com>
7668 * elfread.c (elf_read_minimal_symbols): Return early if
7669 minimal symbols have already been read. Add "ei" parameter.
7670 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7671 * minsyms.c (prim_record_minimal_symbol_full): Update.
7672 * objfiles.h (struct objstats) <n_minsyms>: Move...
7673 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7674 * symmisc.c (print_objfile_statistics): Update.
7676 2014-02-26 Tom Tromey <tromey@redhat.com>
7678 * elfread.c (elf_read_minimal_symbols): New function, from
7680 (elf_symfile_read): Call it.
7682 2014-02-26 Tom Tromey <tromey@redhat.com>
7684 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7685 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7686 (lookup_minimal_symbol_solib_trampoline)
7687 (lookup_minimal_symbol_by_pc_section_1)
7688 (lookup_minimal_symbol_and_objfile): Update.
7689 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7690 Don't allocate a minimal symbol if minsyms have already been read.
7691 (build_minimal_symbol_hash_tables): Update.
7692 (install_minimal_symbols): Do nothing if minsyms already read.
7693 Use the per-BFD obstack.
7694 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7695 * objfiles.c (allocate_objfile): Call
7696 terminate_minimal_symbol_table later.
7697 (have_minimal_symbols): Update.
7698 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7699 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7700 Move from struct objfile.
7701 <minsyms_read>: New field.
7702 (struct objfile) <msymbols, minimal_symbol_count,
7703 msymbol_hash, msymbol_demangled_hash>: Move.
7704 (ALL_OBJFILE_MSYMBOLS): Update.
7705 * symfile.c (read_symbols): Set minsyms_read.
7706 (reread_symbols): Update.
7707 * symmisc.c (dump_objfile, dump_msymbols): Update.
7709 2014-02-26 Tom Tromey <tromey@redhat.com>
7711 * minsyms.c (msymbols_sort): Remove.
7712 * minsyms.h (msymbols_sort): Remove.
7713 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7714 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7715 * elfread.c (elf_symtab_read): Don't add section offsets.
7716 * xcoffread.c (record_minimal_symbol): Don't add section offset
7717 to minimal symbol address.
7718 * somread.c (text_offset, data_offset): Remove.
7719 (som_symtab_read): Don't add section offsets to minimal symbol
7721 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7722 Don't add section offsets to minimal symbols.
7723 * coffread.c (coff_symtab_read): Don't add section offsets
7724 to minimal symbol addresses.
7725 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7726 to minimal symbol addresses.
7727 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7728 section offset to minimal symbol addresses.
7729 * mdebugread.c (parse_partial_symbols): Don't add section
7730 offset to minimal symbol addresses.
7731 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7732 offset to minimal symbol addresses.
7734 2014-02-26 Tom Tromey <tromey@redhat.com>
7736 * ada-lang.c (ada_main_name): Update.
7737 (ada_add_standard_exceptions): Update.
7738 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7739 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7740 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7741 * auxv.c (ld_so_xfer_auxv): Update.
7742 * avr-tdep.c (avr_scan_prologue): Update.
7743 * ax-gdb.c (gen_var_ref): Update.
7744 * blockframe.c (get_pc_function_start)
7745 (find_pc_partial_function_gnu_ifunc): Update.
7746 * breakpoint.c (create_overlay_event_breakpoint)
7747 (create_longjmp_master_breakpoint)
7748 (create_std_terminate_master_breakpoint)
7749 (create_exception_master_breakpoint): Update.
7750 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7751 * c-valprint.c (c_val_print): Update.
7752 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7753 * common/agent.c (agent_look_up_symbols): Update.
7754 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7755 * dwarf2loc.c (call_site_to_target_addr): Update.
7756 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7757 * elfread.c (elf_gnu_ifunc_record_cache)
7758 (elf_gnu_ifunc_resolve_by_got): Update.
7759 * findvar.c (default_read_var_value): Update.
7760 * frame.c (inside_main_func): Update.
7761 * frv-tdep.c (frv_frame_this_id): Update.
7762 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7763 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7765 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7766 (hppa_hpux_find_dummy_bpaddr): Update.
7767 * hppa-tdep.c (hppa_symbol_address): Update.
7768 * infcmd.c (until_next_command): Update.
7769 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7771 * linespec.c (minsym_found, add_minsym): Update.
7772 * linux-nat.c (get_signo): Update.
7773 * linux-thread-db.c (inferior_has_bug): Update.
7774 * m32c-tdep.c (m32c_return_value)
7775 (m32c_m16c_address_to_pointer): Update.
7776 * m32r-tdep.c (m32r_frame_this_id): Update.
7777 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7778 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7779 * maint.c (maintenance_translate_address): Update.
7780 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7781 (frob_address): New function.
7782 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7783 frob_address. Rename parameter to "pc_in".
7784 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7786 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7788 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7789 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7790 * objc-lang.c (find_objc_msgsend): Update.
7791 * objfiles.c (objfile_relocate1): Update.
7792 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7793 * p-valprint.c (pascal_val_print): Update.
7794 * parse.c (write_exp_msymbol): Update.
7795 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7796 (ppc_elfv2_skip_entrypoint): Update.
7797 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7798 * printcmd.c (build_address_symbolic, msym_info)
7799 (address_info): Update.
7800 * proc-service.c (ps_pglobal_lookup): Update.
7801 * psymtab.c (find_pc_sect_psymtab_closer)
7802 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7803 Change msymbol parameter to bound_minimal_symbol.
7804 * ravenscar-thread.c (get_running_thread_id): Update.
7805 * remote.c (remote_check_symbols): Update.
7806 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7808 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7809 * solib-dsbt.c (lm_base): Update.
7810 * solib-frv.c (lm_base, main_got): Update.
7811 * solib-irix.c (locate_base): Update.
7812 * solib-som.c (som_solib_create_inferior_hook)
7813 (link_map_start): Update.
7814 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7815 * solib-svr4.c (elf_locate_base, enable_break): Update.
7816 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7817 (flush_ea_cache): Update.
7818 * stabsread.c (define_symbol, scan_file_globals): Update.
7819 * stack.c (find_frame_funname): Update.
7820 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7821 (debug_qf_find_pc_sect_symtab): Update.
7822 * symfile.c (simple_read_overlay_table)
7823 (simple_overlay_update): Update.
7824 * symfile.h (struct quick_symbol_functions)
7825 <find_pc_sect_symtab>: Change type of msymbol to
7826 bound_minimal_symbol.
7827 * symmisc.c (dump_msymbols): Update.
7828 * symtab.c (find_pc_sect_symtab_via_partial)
7829 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7830 (search_symbols, print_msymbol_info): Update.
7831 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7832 (MSYMBOL_VALUE_ADDRESS): Redefine.
7833 (BMSYMBOL_VALUE_ADDRESS): New macro.
7834 * tracepoint.c (scope_info): Update.
7835 * tui/tui-disasm.c (tui_find_disassembly_address)
7836 (tui_get_begin_asm_address): Update.
7837 * valops.c (find_function_in_inferior): Update.
7838 * value.c (value_static_field, value_fn_field): Update.
7840 2014-02-26 Tom Tromey <tromey@redhat.com>
7842 * ada-lang.c (ada_update_initial_language): Update.
7843 (ada_main_name, ada_has_this_exception_support): Update.
7844 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7845 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7846 * arm-tdep.c (arm_skip_stub): Update.
7847 * auxv.c (ld_so_xfer_auxv): Update.
7848 * avr-tdep.c (avr_scan_prologue): Update.
7849 * ax-gdb.c (gen_var_ref): Update.
7850 * breakpoint.c (struct breakpoint_objfile_data)
7851 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7852 type to bound_minimal_symbol.
7853 (create_overlay_event_breakpoint)
7854 (create_longjmp_master_breakpoint)
7855 (create_std_terminate_master_breakpoint)
7856 (create_exception_master_breakpoint): Update.
7857 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7858 * c-exp.y (classify_name): Update.
7859 * coffread.c (coff_symfile_read): Update.
7860 * common/agent.c (agent_look_up_symbols): Update.
7861 * d-lang.c (d_main_name): Update.
7862 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7863 * dec-thread.c (enable_dec_thread): Update.
7864 * dwarf2loc.c (call_site_to_target_addr): Update.
7865 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7866 * eval.c (evaluate_subexp_standard): Update.
7867 * findvar.c (struct minsym_lookup_data) <result>: Change type
7868 to bound_minimal_symbol.
7870 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7871 * frame.c (inside_main_func): Update.
7872 * frv-tdep.c (frv_frame_this_id): Update.
7873 * gcore.c (call_target_sbrk): Update.
7874 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7875 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7877 * go-lang.c (go_main_name): Update.
7878 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7879 (hppa_hpux_find_import_stub_for_addr): Update.
7880 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7881 Update. Change return type.
7882 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7884 * jit.c (jit_breakpoint_re_set_internal): Update.
7885 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7887 * linux-nat.c (get_signo): Update.
7888 * linux-thread-db.c (inferior_has_bug): Update
7889 * m32c-tdep.c (m32c_return_value)
7890 (m32c_m16c_address_to_pointer): Update.
7891 * m32r-tdep.c (m32r_frame_this_id): Update.
7892 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7893 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7894 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7895 lookup_minimal_symbol. Change return type.
7896 (lookup_minimal_symbol): Remove.
7897 (lookup_bound_minimal_symbol): Update.
7898 (lookup_minimal_symbol_text): Change return type.
7899 (lookup_minimal_symbol_solib_trampoline): Change return type.
7900 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7901 (lookup_minimal_symbol_solib_trampoline): Change return type.
7902 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7903 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7904 (value_nsstring, find_imps): Update.
7905 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7906 * p-lang.c (pascal_main_name): Update.
7907 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7908 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7909 * proc-service.c (ps_pglobal_lookup): Update.
7910 * ravenscar-thread.c (get_running_thread_msymbol): Change
7912 (has_ravenscar_runtime, get_running_thread_id): Update.
7913 * remote.c (remote_check_symbols): Update.
7914 * sol-thread.c (ps_pglobal_lookup): Update.
7915 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7916 * solib-dsbt.c (lm_base): Update.
7917 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7919 * solib-irix.c (locate_base): Update.
7920 * solib-som.c (som_solib_create_inferior_hook)
7921 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7923 * solib-spu.c (spu_enable_break): Update.
7924 * solib-svr4.c (elf_locate_base, enable_break): Update.
7925 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7926 (flush_ea_cache): Update.
7927 * stabsread.c (define_symbol): Update.
7928 * symfile.c (simple_read_overlay_table): Update.
7929 * symtab.c (find_pc_sect_line): Update.
7930 * tracepoint.c (scope_info): Update.
7931 * tui-disasm.c (tui_get_begin_asm_address): Update.
7932 * value.c (value_static_field): Update.
7934 2014-02-26 Tom Tromey <tromey@redhat.com>
7936 * minsyms.c (prim_record_minimal_symbol_full): Use
7937 SET_MSYMBOL_VALUE_ADDRESS.
7938 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7939 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7940 SET_MSYMBOL_VALUE_ADDRESS.
7941 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7942 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7944 2014-02-26 Tom Tromey <tromey@redhat.com>
7946 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7947 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7948 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7949 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7950 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7951 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7952 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7953 * ada-lang.c (ada_main_name): Update.
7954 (ada_lookup_simple_minsym): Update.
7955 (ada_make_symbol_completion_list): Update.
7956 (ada_add_standard_exceptions): Update.
7957 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7958 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7959 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7960 * arm-tdep.c (skip_prologue_function): Update.
7961 (arm_skip_stack_protector, arm_skip_stub): Update.
7962 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7963 (arm_wince_skip_main_prologue): Update.
7964 * auxv.c (ld_so_xfer_auxv): Update.
7965 * avr-tdep.c (avr_scan_prologue): Update.
7966 * ax-gdb.c (gen_var_ref): Update.
7967 * block.c (call_site_for_pc): Update.
7968 * blockframe.c (get_pc_function_start): Update.
7969 (find_pc_partial_function_gnu_ifunc): Update.
7970 * breakpoint.c (create_overlay_event_breakpoint): Update.
7971 (create_longjmp_master_breakpoint): Update.
7972 (create_std_terminate_master_breakpoint): Update.
7973 (create_exception_master_breakpoint): Update.
7974 (resolve_sal_pc): Update.
7975 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7976 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7978 * c-valprint.c (c_val_print): Update.
7979 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7980 * coffread.c (coff_symfile_read): Update.
7981 * common/agent.c (agent_look_up_symbols): Update.
7982 * dbxread.c (find_stab_function_addr): Update.
7983 (end_psymtab): Update.
7984 * dwarf2loc.c (call_site_to_target_addr): Update.
7985 (func_verify_no_selftailcall): Update.
7986 (tailcall_dump): Update.
7987 (call_site_find_chain_1): Update.
7988 (dwarf_expr_reg_to_entry_parameter): Update.
7989 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7990 (elf_gnu_ifunc_resolve_by_got): Update.
7991 * f-valprint.c (info_common_command): Update.
7992 * findvar.c (read_var_value): Update.
7993 * frame.c (get_prev_frame_1): Update.
7994 (inside_main_func): Update.
7995 * frv-tdep.c (frv_skip_main_prologue): Update.
7996 (frv_frame_this_id): Update.
7997 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7998 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7999 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8000 (gnuv3_skip_trampoline): Update.
8001 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8002 (hppa64_hpux_in_solib_call_trampoline): Update.
8003 (hppa_hpux_skip_trampoline_code): Update.
8004 (hppa64_hpux_search_dummy_call_sequence): Update.
8005 (hppa_hpux_find_import_stub_for_addr): Update.
8006 (hppa_hpux_find_dummy_bpaddr): Update.
8007 * hppa-tdep.c (hppa_symbol_address)
8008 (hppa_lookup_stub_minimal_symbol): Update.
8009 * i386-tdep.c (i386_skip_main_prologue): Update.
8010 (i386_pe_skip_trampoline_code): Update.
8011 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8012 * infcall.c (get_function_name): Update.
8013 * infcmd.c (until_next_command): Update.
8014 * jit.c (jit_breakpoint_re_set_internal): Update.
8015 (jit_inferior_init): Update.
8016 * linespec.c (minsym_found): Update.
8017 (add_minsym): Update.
8018 * linux-fork.c (info_checkpoints_command): Update.
8019 * linux-nat.c (get_signo): Update.
8020 * linux-thread-db.c (inferior_has_bug): Update.
8021 * m32c-tdep.c (m32c_return_value): Update.
8022 (m32c_m16c_address_to_pointer): Update.
8023 (m32c_m16c_pointer_to_address): Update.
8024 * m32r-tdep.c (m32r_frame_this_id): Update.
8025 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8026 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8027 * maint.c (maintenance_translate_address): Update.
8028 * minsyms.c (add_minsym_to_hash_table): Update.
8029 (add_minsym_to_demangled_hash_table): Update.
8030 (msymbol_objfile): Update.
8031 (lookup_minimal_symbol): Update.
8032 (iterate_over_minimal_symbols): Update.
8033 (lookup_minimal_symbol_text): Update.
8034 (lookup_minimal_symbol_by_pc_name): Update.
8035 (lookup_minimal_symbol_solib_trampoline): Update.
8036 (lookup_minimal_symbol_by_pc_section_1): Update.
8037 (lookup_minimal_symbol_and_objfile): Update.
8038 (prim_record_minimal_symbol_full): Update.
8039 (compare_minimal_symbols): Update.
8040 (compact_minimal_symbols): Update.
8041 (build_minimal_symbol_hash_tables): Update.
8042 (install_minimal_symbols): Update.
8043 (terminate_minimal_symbol_table): Update.
8044 (find_solib_trampoline_target): Update.
8045 (minimal_symbol_upper_bound): Update.
8046 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8047 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8048 (mips_skip_pic_trampoline_code): Update.
8049 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8050 * objc-lang.c (selectors_info): Update.
8051 (classes_info): Update.
8052 (find_methods): Update.
8053 (find_imps): Update.
8054 (find_objc_msgsend): Update.
8055 * objfiles.c (objfile_relocate1): Update.
8056 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8057 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8058 * p-valprint.c (pascal_val_print): Update.
8059 * parse.c (write_exp_msymbol): Update.
8060 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8061 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8062 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8063 * printcmd.c (build_address_symbolic): Update.
8065 (address_info): Update.
8066 * proc-service.c (ps_pglobal_lookup): Update.
8067 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8068 (find_pc_sect_psymtab): Update.
8069 * python/py-framefilter.c (py_print_frame): Update.
8070 * ravenscar-thread.c (get_running_thread_id): Update.
8071 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8073 * remote.c (remote_check_symbols): Update.
8074 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8075 (rs6000_skip_trampoline_code): Update.
8076 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8077 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8078 * solib-dsbt.c (lm_base): Update.
8079 * solib-frv.c (lm_base): Update.
8081 * solib-irix.c (locate_base): Update.
8082 * solib-som.c (som_solib_create_inferior_hook): Update.
8083 (som_solib_desire_dynamic_linker_symbols): Update.
8084 (link_map_start): Update.
8085 * solib-spu.c (spu_enable_break): Update.
8086 (ocl_enable_break): Update.
8087 * solib-svr4.c (elf_locate_base): Update.
8088 (enable_break): Update.
8089 * spu-tdep.c (spu_get_overlay_table): Update.
8090 (spu_catch_start): Update.
8091 (flush_ea_cache): Update.
8092 * stabsread.c (define_symbol): Update.
8093 (scan_file_globals): Update.
8094 * stack.c (find_frame_funname): Update.
8095 (frame_info): Update.
8096 * symfile.c (simple_read_overlay_table): Update.
8097 (simple_overlay_update): Update.
8098 * symmisc.c (dump_msymbols): Update.
8099 * symtab.c (fixup_section): Update.
8100 (find_pc_sect_line): Update.
8101 (skip_prologue_sal): Update.
8102 (search_symbols): Update.
8103 (print_msymbol_info): Update.
8104 (rbreak_command): Update.
8105 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8106 (completion_list_objc_symbol): Update.
8107 (default_make_symbol_completion_list_break_on): Update.
8108 * tracepoint.c (scope_info): Update.
8109 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8110 (tui_get_begin_asm_address): Update.
8111 * valops.c (find_function_in_inferior): Update.
8112 * value.c (value_static_field): Update.
8113 (value_fn_field): Update.
8115 2014-02-26 Tom Tromey <tromey@redhat.com>
8117 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8118 bound minimal symbols. Move code that knows about minsym
8120 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8122 * minsyms.h (minimal_symbol_upper_bound): Declare.
8123 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8124 minimal_symbol_upper_bound.
8126 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8128 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8129 Use the type's name if its basic type does not have a tag.
8131 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8133 * dwarf2read.c (read_subrange_type): Add comment.
8135 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8137 * dwarf2read.c (update_enumeration_type_from_children): New
8138 function, mostly extracted from process_structure_scope.
8139 (read_enumeration_type): Call update_enumeration_type_from_children.
8140 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8141 and flag_flag_enum fields.
8143 2014-02-26 Pedro Alves <palves@redhat.com>
8145 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8146 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8147 to_xfer_partial method.
8149 2014-02-26 Pedro Alves <palves@redhat.com>
8151 * target.c (complete_target_initialization): Don't install
8152 default_xfer_partial as to_xfer_partial hook.
8154 (update_current_target): Don't INHERIT nor de_fault
8155 deprecated_xfer_memory. Delete de_fault macro.
8156 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8157 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8158 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8161 2014-02-26 Pedro Alves <palves@redhat.com>
8163 * go32-nat.c (my_write_child): New function.
8164 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8165 (go32_xfer_partial): New function.
8166 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8167 Instead install a to_xfer_partial hook.
8169 2014-02-26 Pedro Alves <palves@redhat.com>
8171 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8172 to_xfer_partial helper. Rewrite.
8173 (procfs_xfer_partial): New function.
8174 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8175 Install a to_xfer_partial hook.
8177 2014-02-26 Pedro Alves <palves@redhat.com>
8179 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8180 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8181 (m32r_xfer_partial): New function.
8182 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8183 Install a to_xfer_partial hook.
8185 2014-02-26 Pedro Alves <palves@redhat.com>
8187 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8189 (mips_xfer_partial): New function.
8190 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8191 hook. Install a to_xfer_partial hook.
8193 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8195 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8196 * gdbtypes.c (create_array_type_with_stride): New function,
8197 renaming create_array_type, but with an added parameter
8198 called "bit_stride".
8199 (create_array_type): Re-implement using
8200 create_array_type_with_stride.
8201 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8202 and DW_AT_bit_stride attributes.
8204 2014-02-26 Pedro Alves <palves@redhat.com>
8206 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8207 task-specific breakpoints.
8209 2014-02-25 Pedro Alves <palves@redhat.com>
8211 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8212 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8214 2014-02-25 Stan Shebs <stan@codesourcery.com>
8216 * defs.h: Annotate comments for Doxygen.
8218 2014-02-25 Tom Tromey <tromey@redhat.com>
8220 * target.h (target_ignore): Don't declare.
8221 * target.c (target_ignore): Remove.
8223 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8226 * auto-load.c (auto_load_objfile_script_1): Change filename to
8229 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8231 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8232 documentation. Adjust prototype to match the target_ops
8233 to_xfer_partial method. Adjust implementation accordingly.
8235 2014-02-25 Hui Zhu <hui@codesourcery.com>
8237 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8240 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8242 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8243 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8244 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8245 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8246 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8247 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8248 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8249 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8251 (rl78_register_type): Use a data pointer type for SP and
8252 new pseudo registers mentioned above. Use a 16 bit integer
8253 type for all other register pairs.
8254 (rl78_register_name, rl78_g10_register_name): Update for
8255 new pseudo registers.
8256 (rl78_pseudo_register_read): Likewise.
8257 (rl78_pseudo_register_write): Likewise.
8258 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8259 to the newly added pseudo registers.
8261 2014-02-24 Doug Evans <dje@google.com>
8263 * value.c (record_latest_value): Fix comment.
8264 * printcmd.c (print_command_1): Remove code to handle -1 return from
8265 record_latest_value.
8267 2014-02-24 Pedro Alves <palves@redhat.com>
8269 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8270 deprecated_xfer_memory hook.
8271 (procfs_xfer_partial): Call procfs_xfer_memory instead
8272 of the deprecated_xfer_memory target hook.
8273 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8276 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8278 * windows-nat.c (windows_xfer_shared_libraries): Return
8279 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8280 requested object is TARGET_OBJECT_LIBRARIES.
8282 2014-02-24 Yao Qi <yao@codesourcery.com>
8284 * target.h (enum target_xfer_status)
8285 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8286 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8288 * corefile.c (memory_error_message): User updated.
8289 * exec.c (section_table_read_available_memory): Likewise.
8290 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8291 * target.c (target_xfer_status_to_string): Likewise.
8292 (raw_memory_xfer_partial): Likewise.
8293 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8294 * valops.c (read_value_memory): Likewise.
8295 * exec.h: Update comments.
8297 2014-02-24 Yao Qi <yao@codesourcery.com>
8299 * target.c (target_xfer_status_to_string): Rename argument err
8301 * target.h (target_xfer_status_to_string): Update declaration.
8302 Replace target_xfer_error_to_string with
8303 target_xfer_status_to_string in comment.
8305 2014-02-24 Yao Qi <yao@codesourcery.com>
8307 * mips-linux-nat.c (super_close): Update its type.
8308 (mips_linux_close): Pass 'self' to super_close.
8310 2014-02-24 Yao Qi <yao@codesourcery.com>
8312 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8313 * corefile.c (read_memory): Adjusted.
8314 * target.c (target_write_with_progress): Adjusted.
8316 2014-02-23 Yao Qi <yao@codesourcery.com>
8320 2013-10-25 Yao Qi <yao@codesourcery.com>
8322 * remote.c (remote_traceframe_info): Return early if
8323 traceframe is not selected.
8325 2013-07-19 Yao Qi <yao@codesourcery.com>
8327 * target.c (update_current_target): Change the default action
8328 of 'to_traceframe_info' from tcomplain to return_zero.
8329 * target.h (struct target_ops) <to_traceframe_info>: Add more
8332 2014-02-23 Yao Qi <yao@codesourcery.com>
8334 * valops.c (read_value_memory): Rewrite it. Call
8335 target_xfer_partial in a loop.
8336 * exec.h (section_table_available_memory): Remove declaration.
8337 Move comments to ...
8338 * exec.c (section_table_available_memory): ... here. Make it
8341 2014-02-23 Yao Qi <yao@codesourcery.com>
8343 * exec.c (section_table_read_available_memory): New function.
8344 * exec.h (section_table_read_available_memory): Declare.
8345 * ctf.c (ctf_xfer_partial): Call
8346 section_table_read_available_memory.
8347 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8349 2014-02-23 Yao Qi <yao@codesourcery.com>
8351 * ctf.c (ctf_xfer_partial): Move code to ...
8352 * exec.c (exec_read_partial_read_only): ... it. New function.
8353 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8354 * tracefile.c: Include "exec.h".
8355 * exec.h (exec_read_partial_read_only): Declare.
8357 2014-02-23 Yao Qi <yao@codesourcery.com>
8359 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8360 (tfile_has_memory): Remove.
8361 (init_tfile_ops): Don't set fields to_has_all_memory and
8362 to_has_memory of tfile_ops.
8363 * tracefile.c (tracefile_has_all_memory): New function.
8364 (tracefile_has_memory): New function.
8365 (init_tracefile_ops): Initialize fields to_has_all_memory and
8366 to_has_memory of 'ops'.
8368 2014-02-23 Yao Qi <yao@codesourcery.com>
8370 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8371 (ctf_thread_alive, ctf_get_trace_status): Remove.
8372 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8374 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8375 (tfile_has_stack, tfile_has_registers): Remove.
8376 (tfile_thread_alive): Remove.
8377 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8379 * tracefile.c (tracefile_has_stack): New function.
8380 (tracefile_has_registers): New function.
8381 (tracefile_thread_alive): New function.
8382 (tracefile_get_trace_status): New function.
8383 (init_tracefile_ops): New function.
8384 * tracefile.h (init_tracefile_ops): Declare.
8386 2014-02-23 Yao Qi <yao@codesourcery.com>
8388 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8389 (O_LARGEFILE): Likewise.
8390 (tfile_ops): Likewise.
8391 (TRACE_HEADER_SIZE): Likewise.
8392 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8393 (cur_data_size): Likewise.
8394 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8395 (tfile_close, tfile_files_info): Likewise.
8396 (tfile_get_trace_status): Likewise.
8397 (tfile_get_tracepoint_status): Likewise.
8398 (tfile_get_traceframe_address): Likewise.
8399 (tfile_trace_find, match_blocktype): Likewise.
8400 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8401 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8402 (tfile_get_trace_state_variable_value): Likewise.
8403 (tfile_has_all_memory, tfile_has_memory): Likewise.
8404 (tfile_has_stack, tfile_has_registers): Likewise.
8405 (tfile_thread_alive, build_traceframe_info): Likewise.
8406 (tfile_traceframe_info, init_tfile_ops): Likewise.
8407 (_initialize_tracepoint): Don't call init_tfile_ops
8408 and add_target_with_completer.
8409 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8410 exec.h, completer.h and filenames.h.
8411 (_initialize_tracefile_tfile): New function.
8413 2014-02-23 Yao Qi <yao@codesourcery.com>
8415 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8417 (HFILES_NO_SRCDIR): Add tracefile.h.
8418 * ctf.c: Include "tracefile.h".
8419 * tracefile.h: New file.
8420 * tracefile.c: New file
8421 * tracefile-tfile.c: New file.
8422 * tracepoint.c: Include "tracefile.h".
8423 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8424 (stop_reason_names): Add const.
8425 (trace_file_writer_xfree): Move it to tracefile.c.
8426 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8427 (trace_save_ctf): Likewise.
8428 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8429 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8430 (tfile_write_header, tfile_write_regblock_type): Likewise.
8431 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8432 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8433 (tfile_write_raw_data, tfile_end): Likewise.
8434 (tfile_trace_file_writer_new): Likewise.
8435 (free_uploaded_tp): Make it extern.
8436 (free_uploaded_tsv): Make it extern.
8437 (_initialize_tracepoint): Move code to register command 'tsave'
8439 * tracepoint.h (stop_reason_names): Declare.
8440 (struct trace_frame_write_ops): Move it to tracefile.h.
8441 (struct trace_file_write_ops): Likewise.
8442 (struct trace_file_writer): Likewise.
8443 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8445 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8448 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8450 (get_cores_used_by_process): New parameter num_cores, use it.
8451 (linux_xfer_osdata_processes): Pass num_cores to it.
8452 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8455 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8457 * target.c (memory_xfer_partial): Fix length arg in call to
8458 breakpoint_xfer_memory.
8460 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8463 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8464 number comes after the + or - signs. Adjust length of register
8465 name to be extracted.
8467 2014-02-20 Tom Tromey <tromey@redhat.com>
8469 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8470 (ada_varobj_ops): Mark "extern".
8472 2014-02-20 Tom Tromey <tromey@redhat.com>
8474 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8476 2014-02-20 Doug Evans <xdje42@gmail.com>
8478 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8479 All callers updated.
8480 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8481 All callers updated.
8482 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8483 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8485 2014-02-20 lin zuojian <manjian2006@gmail.com>
8486 Joel Brobecker <brobecker@adacore.com>
8487 Doug Evans <xdje42@gmail.com>
8490 * dwarf2read.c (struct die_info): New member in_process.
8491 (reset_die_in_process): New function.
8492 (process_die): Set it at the start, reset when returning.
8493 (inherit_abstract_dies): Only call process_die if origin_child_die
8494 not already being processed.
8496 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8498 * windows-nat.c (handle_unload_dll): Add function documentation.
8499 (do_initial_windows_stuff): Add comment explaining why we wait
8500 until after inferior initialization has finished before
8501 processing all DLLs.
8503 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8505 * windows-nat.c (get_module_name): Delete.
8506 (windows_get_exec_module_filename): New function, mostly
8507 inspired from get_module_name.
8508 (windows_pid_to_exec_file): Replace call to get_module_name
8509 by call to windows_get_exec_module_filename.
8511 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8513 * windows-nat.c (handle_load_dll): Rewrite this function's
8514 introductory comment. Remove code using get_module_name
8515 to get the DLL's name.
8517 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8519 * windows-nat.c (get_windows_debug_event): Ignore
8520 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8521 if windows_initialization_done == 0.
8522 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8523 Adjust implementation to always load all DLLs.
8524 (do_initial_windows_stuff): Replace call to
8525 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8527 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8529 * windows-nat.c (_initialize_windows_nat): Deprecate the
8530 "dll-symbols" command. Turn the "add-shared-symbol-files"
8531 and "assf" aliases into commands, and deprecate them as well.
8532 * NEWS: Add entry explaining that "dll-symbols" and its two
8533 aliases are now deprecated.
8535 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8537 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8538 new-line in debug string. Remove trailing spaces.
8540 2014-02-19 Stan Shebs <stan@codesourcery.com>
8542 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8544 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8546 * NEWS: Add entry for the new feature
8547 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8550 2014-02-19 Stan Shebs <stan@codesourcery.com>
8552 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8554 2014-02-19 Pedro Alves <palves@redhat.com>
8556 * common/ptid.h (struct ptid): Mention that process_stratum
8557 targets should prefer ptid.lwp.
8559 2014-02-19 Pedro Alves <palves@redhat.com>
8561 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8562 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8563 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8564 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8565 store remote thread ids rather than ptid.tid.
8566 (_initialize_remote): Adjust.
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8570 * target.c (target_get_unwinder): Rewrite.
8571 (target_get_tailcall_unwinder): Rewrite.
8572 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8573 (record_btrace_to_get_tailcall_unwinder): New function.
8574 (init_record_btrace_ops): Update.
8575 * target.h (struct target_ops) <to_get_unwinder,
8576 to_get_tailcall_unwinder>: Now function pointers. Use
8577 TARGET_DEFAULT_RETURN.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8583 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8587 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8589 * target-delegates.c: Rebuild.
8590 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8591 TARGET_DEFAULT_FUNC.
8592 * target.c (default_target_decr_pc_after_break): Rename from
8593 forward_target_decr_pc_after_break. Simplify.
8594 (target_decr_pc_after_break): Rely on delegation.
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8598 * target.c (update_current_target): Do not INHERIT to_doc or
8599 to_magic. Do not de_fault to_open or to_close.
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8603 * gcore.h (objfile_find_memory_regions): Declare.
8604 * gcore.c (objfile_find_memory_regions): No longer static. Add
8606 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8607 * exec.c: Include gcore.h.
8608 (exec_set_find_memory_regions): Remove.
8609 (exec_find_memory_regions): Remove.
8610 (exec_do_find_memory_regions): Remove.
8611 (init_exec_ops): Update.
8612 * defs.h (exec_set_find_memory_regions): Remove.
8614 2014-02-19 Tom Tromey <tromey@redhat.com>
8616 * target-delegates.c: Rebuild.
8617 * target.h (struct target_ops) <to_extra_thread_info,
8618 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8619 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8620 not 0, in TARGET_DEFAULT_RETURN.
8622 2014-02-19 Tom Tromey <tromey@redhat.com>
8624 * target.c (complete_target_initialization): Remove casts. Use
8625 return_zero_has_execution.
8626 (return_zero): Add "ignore" argument.
8627 (return_zero_has_execution): New function.
8628 (init_dummy_target): Remove casts. Use
8629 return_zero_has_execution.
8631 2014-02-19 Tom Tromey <tromey@redhat.com>
8633 * target.c (update_current_target): Update comments. Do not
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8640 * corelow.c (core_read_description): Delegate when needed.
8641 * remote.c (remote_read_description): Delegate when needed.
8642 * target-delegates.c: Rebuild.
8643 * target.c (target_read_description): Rewrite.
8644 * target.h (struct target_ops) <to_read_description>: Update
8645 comment. Use TARGET_DEFAULT_RETURN.
8647 2014-02-19 Tom Tromey <tromey@redhat.com>
8649 * target-delegates.c: Rebuild.
8650 * target.c (update_current_target): Don't inherit or default
8652 (find_default_run_target): Check against delegate_can_run.
8653 * target.h (struct target_ops) <to_can_run>: Use
8654 TARGET_DEFAULT_RETURN.
8656 2014-02-19 Tom Tromey <tromey@redhat.com>
8658 * target-delegates.c: Rebuild.
8659 * target.c (target_disconnect): Unconditionally delegate.
8660 * target.h (struct target_ops) <to_disconnect>: Use
8661 TARGET_DEFAULT_NORETURN.
8663 2014-02-19 Tom Tromey <tromey@redhat.com>
8665 * record.c (record_stop): Unconditionally delegate.
8666 * target-delegates.c: Rebuild.
8667 * target.c (target_stop_recording): Unconditionally delegate.
8668 * target.h (struct target_ops) <to_stop_recording>: Use
8669 TARGET_DEFAULT_IGNORE.
8671 2014-02-19 Tom Tromey <tromey@redhat.com>
8673 * target-delegates.c: Rebuild.
8674 * target.c (target_enable_btrace): Unconditionally delegate.
8675 * target.h (struct target_ops) <to_enable_btrace>: Use
8676 TARGET_DEFAULT_NORETURN.
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8680 * target-delegates.c: Rebuild.
8681 * target.c (target_read_btrace): Unconditionally delegate.
8682 * target.h (struct target_ops) <to_read_btrace>: Use
8683 TARGET_DEFAULT_NORETURN.
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target-delegates.c: Rebuild.
8688 * target.c (target_teardown_btrace): Unconditionally delegate.
8689 * target.h (struct target_ops) <to_teardown_btrace>: Use
8690 TARGET_DEFAULT_NORETURN.
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8694 * target-delegates.c: Rebuild.
8695 * target.c (target_disable_btrace): Unconditionally delegate.
8696 * target.h (struct target_ops) <to_disable_btrace>: Use
8697 TARGET_DEFAULT_NORETURN.
8699 2014-02-19 Tom Tromey <tromey@redhat.com>
8701 * target-delegates.c: Rebuild.
8702 * target.c (default_search_memory): New function.
8703 (simple_search_memory): Update comment.
8704 (target_search_memory): Unconditionally delegate.
8705 * target.h (struct target_ops) <to_search_memory>: Use
8706 TARGET_DEFAULT_FUNC.
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8710 * auxv.c (default_auxv_parse): No longer static.
8711 (target_auxv_parse): Unconditionally delegate.
8712 * auxv.h (default_auxv_parse): Declare.
8713 * target-delegates.c: Rebuild.
8714 * target.c: Include auxv.h.
8715 * target.h (struct target_ops) <to_auxv_parse>: Use
8716 TARGET_DEFAULT_FUNC.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target-delegates.c: Rebuild.
8721 * target.c (target_memory_map): Unconditionally delegate.
8722 * target.h (struct target_ops) <to_memory_map>: Use
8723 TARGET_DEFAULT_RETURN.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target-delegates.c: Rebuild.
8728 * target.c (target_thread_alive): Unconditionally delegate.
8729 * target.h (struct target_ops) <to_thread_alive>: Use
8730 TARGET_DEFAULT_RETURN.
8732 2014-02-19 Tom Tromey <tromey@redhat.com>
8734 * target-delegates.c: Rebuild.
8735 * target.c (target_save_record): Unconditionally delegate.
8736 * target.h (struct target_ops) <to_save_record>: Use
8737 TARGET_DEFAULT_NORETURN.
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8741 * target-delegates.c: Rebuild.
8742 * target.c (target_delete_record): Unconditionally delegate.
8743 * target.h (struct target_ops) <to_delete_record>: Use
8744 TARGET_DEFAULT_NORETURN.
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8748 * target-delegates.c: Rebuild.
8749 * target.c (target_record_is_replaying): Unconditionally
8751 * target.h (struct target_ops) <to_record_is_replaying>: Use
8752 TARGET_DEFAULT_RETURN.
8754 2014-02-19 Tom Tromey <tromey@redhat.com>
8756 * target-delegates.c: Rebuild.
8757 * target.c (target_goto_record_begin): Unconditionally delegate.
8758 * target.h (struct target_ops) <to_goto_record_begin>: Use
8759 TARGET_DEFAULT_NORETURN.
8761 2014-02-19 Tom Tromey <tromey@redhat.com>
8763 * target-delegates.c: Rebuild.
8764 * target.c (target_goto_record_end): Unconditionally delegate.
8765 * target.h (struct target_ops) <to_goto_record_end>: Use
8766 TARGET_DEFAULT_NORETURN.
8768 2014-02-19 Tom Tromey <tromey@redhat.com>
8770 * target-delegates.c: Rebuild.
8771 * target.c (target_goto_record): Unconditionally delegate.
8772 * target.h (struct target_ops) <to_goto_record>: Use
8773 TARGET_DEFAULT_NORETURN.
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target-delegates.c: Rebuild.
8778 * target.c (target_insn_history): Unconditionally delegate.
8779 * target.h (struct target_ops) <to_insn_history>: Use
8780 TARGET_DEFAULT_NORETURN.
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8784 * target-delegates.c: Rebuild.
8785 * target.c (target_insn_history_from): Unconditionally delegate.
8786 * target.h (struct target_ops) <to_insn_history_from>: Use
8787 TARGET_DEFAULT_NORETURN.
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8791 * target-delegates.c: Rebuild.
8792 * target.c (target_insn_history_range): Unconditionally delegate.
8793 * target.h (struct target_ops) <to_insn_history_range>: Use
8794 TARGET_DEFAULT_NORETURN.
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target-delegates.c: Rebuild.
8799 * target.c (target_call_history): Unconditionally delegate.
8800 * target.h (struct target_ops) <to_call_history>: Use
8801 TARGET_DEFAULT_NORETURN.
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8805 * target-delegates.c: Rebuild.
8806 * target.c (target_call_history_from): Unconditionally delegate.
8807 * target.h (struct target_ops) <to_call_history_from>: Use
8808 TARGET_DEFAULT_NORETURN.
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8812 * target-delegates.c: Rebuild.
8813 * target.c (target_call_history_range): Unconditionally delegate.
8814 * target.h (struct target_ops) <to_call_history_range>: Use
8815 TARGET_DEFAULT_NORETURN.
8817 2014-02-19 Tom Tromey <tromey@redhat.com>
8819 * target-delegates.c: Rebuild.
8820 * target.c (target_verify_memory): Unconditionally delegate.
8821 * target.h (struct target_ops) <to_verify_memory>: Use
8822 TARGET_DEFAULT_NORETURN.
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target-delegates.c: Rebuild.
8827 * target.c (target_core_of_thread): Unconditionally delegate.
8828 * target.h (struct target_ops) <to_core_of_thread>: Use
8829 TARGET_DEFAULT_RETURN.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target-delegates.c: Rebuild.
8834 * target.c (target_flash_done): Unconditionally delegate.
8835 * target.h (struct target_ops) <to_flash_done>: Use
8836 TARGET_DEFAULT_NORETURN.
8838 2014-02-19 Tom Tromey <tromey@redhat.com>
8840 * target-delegates.c: Rebuild.
8841 * target.c (target_flash_erase): Unconditionally delegate.
8842 * target.h (struct target_ops) <to_flash_erase>: Use
8843 TARGET_DEFAULT_NORETURN.
8845 2014-02-19 Tom Tromey <tromey@redhat.com>
8847 * target-delegates.c: Rebuild.
8848 * target.c (target_get_section_table): Unconditionally delegate.
8849 * target.h (struct target_ops) <to_get_section_table>: Use
8850 TARGET_DEFAULT_RETURN.
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8854 * target-delegates.c: Rebuild.
8855 * target.c (target_pid_to_str): Unconditionally delegate.
8856 (init_dummy_target): Don't initialize to_pid_to_str.
8857 (default_pid_to_str): Rename from dummy_pid_to_str.
8858 * target.h (struct target_ops) <to_pid_to_str>: Use
8859 TARGET_DEFAULT_FUNC.
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8863 * target-delegates.c: Rebuild.
8864 * target.c (target_find_new_threads): Unconditionally delegate.
8865 * target.h (struct target_ops) <to_find_new_threads>: Use
8866 TARGET_DEFAULT_RETURN.
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8870 * target-delegates.c: Rebuild.
8871 * target.c (target_program_signals): Unconditionally delegate.
8872 * target.h (struct target_ops) <to_program_signals>: Use
8873 TARGET_DEFAULT_IGNORE.
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8877 * target-delegates.c: Rebuild.
8878 * target.c (target_pass_signals): Unconditionally delegate.
8879 * target.h (struct target_ops) <to_pass_signals>: Use
8880 TARGET_DEFAULT_IGNORE.
8882 2014-02-19 Tom Tromey <tromey@redhat.com>
8884 * target-delegates.c: Rebuild.
8885 * target.c (default_mourn_inferior): New function.
8886 (target_mourn_inferior): Unconditionally delegate.
8887 * target.h (struct target_ops) <to_mourn_inferior>: Use
8888 TARGET_DEFAULT_FUNC.
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8892 * target-delegates.c: Rebuild.
8893 * target.c (default_follow_fork): New function.
8894 (target_follow_fork): Unconditionally delegate.
8895 * target.h (struct target_ops) <to_follow_fork>: Use
8896 TARGET_DEFAULT_FUNC.
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target-delegates.c: Rebuild.
8901 * target.c (target_kill): Unconditionally delegate.
8902 * target.h (struct target_ops) <to_kill>: Use
8903 TARGET_DEFAULT_NORETURN.
8905 2014-02-19 Tom Tromey <tromey@redhat.com>
8907 * target-delegates.c: Rebuild.
8908 * target.c (target_masked_watch_num_registers): Unconditionally
8910 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8911 Use TARGET_DEFAULT_RETURN.
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8915 * target-delegates.c: Rebuild.
8916 * target.c (target_remove_mask_watchpoint): Unconditionally
8918 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8919 TARGET_DEFAULT_RETURN.
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * target-delegates.c: Rebuild.
8924 * target.c (target_insert_mask_watchpoint): Unconditionally
8926 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8927 TARGET_DEFAULT_RETURN.
8929 2014-02-19 Tom Tromey <tromey@redhat.com>
8931 * target-delegates.c: Rebuild.
8932 * target.c (target_ranged_break_num_registers): Unconditionally
8934 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8935 Use TARGET_DEFAULT_RETURN.
8937 2014-02-19 Tom Tromey <tromey@redhat.com>
8939 * target-delegates.c: Rebuild.
8940 * target.c (target_fetch_registers): Unconditionally delegate.
8941 * target.h (struct target_ops) <to_fetch_registers>: Use
8942 TARGET_DEFAULT_NORETURN.
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8946 * target-delegates.c: Rebuild.
8947 * target.c (update_current_target): Don't inherit or default
8949 * target.h (struct target_ops) <to_stop>: Use
8950 TARGET_DEFAULT_IGNORE.
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8954 * target-delegates.c: Rebuild.
8955 * target.c (update_current_target): Don't inherit or default
8956 to_can_run_breakpoint_commands.
8957 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8958 Use TARGET_DEFAULT_RETURN.
8960 2014-02-19 Tom Tromey <tromey@redhat.com>
8962 * target-delegates.c: Rebuild.
8963 * target.c (update_current_target): Don't inherit or default
8964 to_supports_evaluation_of_breakpoint_conditions.
8965 * target.h (struct target_ops)
8966 <to_supports_evaluation_of_breakpoint_conditions>: Use
8967 TARGET_DEFAULT_RETURN.
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8971 * target-delegates.c: Rebuild.
8972 * target.c (update_current_target): Don't inherit or default
8973 to_augmented_libraries_svr4_read.
8974 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8975 Use TARGET_DEFAULT_RETURN.
8977 2014-02-19 Tom Tromey <tromey@redhat.com>
8979 * target-delegates.c: Rebuild.
8980 * target.c (update_current_target): Don't inherit or default
8982 * target.h (struct target_ops) <to_can_use_agent>: Use
8983 TARGET_DEFAULT_RETURN.
8985 2014-02-19 Tom Tromey <tromey@redhat.com>
8987 * target-delegates.c: Rebuild.
8988 * target.c (update_current_target): Don't inherit or default
8990 * target.h (struct target_ops) <to_use_agent>: Use
8991 TARGET_DEFAULT_NORETURN.
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8995 * target-delegates.c: Rebuild.
8996 * target.c (update_current_target): Don't inherit or default
8998 (return_null): Remove.
8999 * target.h (struct target_ops) <to_traceframe_info>: Use
9000 TARGET_DEFAULT_RETURN.
9002 2014-02-19 Tom Tromey <tromey@redhat.com>
9004 * target-delegates.c: Rebuild.
9005 * target.c (update_current_target): Don't inherit or default
9006 to_static_tracepoint_markers_by_strid.
9007 * target.h (struct target_ops)
9008 <to_static_tracepoint_markers_by_strid>: Use
9009 TARGET_DEFAULT_NORETURN.
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9013 * target-delegates.c: Rebuild.
9014 * target.c (update_current_target): Don't inherit or default
9015 to_static_tracepoint_marker_at.
9016 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9017 Use TARGET_DEFAULT_RETURN.
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9021 * target-delegates.c: Rebuild.
9022 * target.c (update_current_target): Don't inherit or default
9024 * target.h (struct target_ops) <to_set_permissions>: Use
9025 TARGET_DEFAULT_IGNORE.
9027 2014-02-19 Tom Tromey <tromey@redhat.com>
9029 * target-delegates.c: Rebuild.
9030 * target.c (update_current_target): Don't inherit or default
9032 * target.h (struct target_ops) <to_get_tib_address>: Use
9033 TARGET_DEFAULT_NORETURN.
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9037 * target-delegates.c: Rebuild.
9038 * target.c (update_current_target): Don't inherit or default
9040 * target.h (struct target_ops) <to_set_trace_notes>: Use
9041 TARGET_DEFAULT_RETURN.
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9045 * target-delegates.c: Rebuild.
9046 * target.c (update_current_target): Don't initialize
9047 to_set_trace_buffer_size.
9048 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9049 TARGET_DEFAULT_IGNORE.
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9053 * target-delegates.c: Rebuild.
9054 * target.c (update_current_target): Don't inherit or default
9055 to_set_circular_trace_buffer.
9056 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9057 TARGET_DEFAULT_IGNORE.
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9061 * target-delegates.c: Rebuild.
9062 * target.c (update_current_target): Don't inherit or default
9063 to_set_disconnected_tracing.
9064 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9065 TARGET_DEFAULT_IGNORE.
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9069 * target-delegates.c: Rebuild.
9070 * target.c (update_current_target): Don't inherit or default
9071 to_get_min_fast_tracepoint_insn_len.
9072 (return_minus_one): Remove.
9073 * target.h (struct target_ops)
9074 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9078 * target-delegates.c: Rebuild.
9079 * target.c (update_current_target): Don't inherit or default
9080 to_get_raw_trace_data.
9081 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9082 TARGET_DEFAULT_NORETURN.
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target-delegates.c: Rebuild.
9087 * target.c (update_current_target): Don't inherit or default
9088 to_upload_trace_state_variables.
9089 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9090 Use TARGET_DEFAULT_RETURN.
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9094 * target-delegates.c: Rebuild.
9095 * target.c (update_current_target): Don't inherit or default
9096 to_upload_tracepoints.
9097 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9098 TARGET_DEFAULT_RETURN.
9100 2014-02-19 Tom Tromey <tromey@redhat.com>
9102 * target-delegates.c: Rebuild.
9103 * target.c (update_current_target): Don't inherit or default
9105 * target.h (struct target_ops) <to_save_trace_data>: Use
9106 TARGET_DEFAULT_NORETURN.
9108 2014-02-19 Tom Tromey <tromey@redhat.com>
9110 * target-delegates.c: Rebuild.
9111 * target.c (update_current_target): Don't inherit or default
9112 to_get_trace_state_variable_value.
9113 * target.h (struct target_ops)
9114 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9116 2014-02-19 Tom Tromey <tromey@redhat.com>
9118 * target-delegates.c: Rebuild.
9119 * target.c (update_current_target): Don't inherit or default
9121 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9125 * target-delegates.c: Rebuild.
9126 * target.c (update_current_target): Don't inherit or default
9128 * target.h (struct target_ops) <to_trace_stop>: Use
9129 TARGET_DEFAULT_NORETURN.
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9133 * target-delegates.c: Rebuild.
9134 * target.c (update_current_target): Don't inherit or default
9135 to_get_tracepoint_status.
9136 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9137 TARGET_DEFAULT_NORETURN.
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9141 * target-delegates.c: Rebuild.
9142 * target.c (update_current_target): Don't inherit or default
9143 to_get_trace_status.
9144 * target.h (struct target_ops) <to_get_trace_status>: Use
9145 TARGET_DEFAULT_RETURN.
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9149 * target-delegates.c: Rebuild.
9150 * target.c (update_current_target): Don't inherit or default
9152 * target.h (struct target_ops) <to_trace_start>: Use
9153 TARGET_DEFAULT_NORETURN.
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9157 * target-delegates.c: Rebuild.
9158 * target.c (update_current_target): Don't inherit or default
9159 to_trace_set_readonly_regions.
9160 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9161 Use TARGET_DEFAULT_NORETURN.
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9165 * target-delegates.c: Rebuild.
9166 * target.c (update_current_target): Don't inherit or default
9167 to_disable_tracepoint.
9168 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9169 TARGET_DEFAULT_NORETURN.
9171 2014-02-19 Tom Tromey <tromey@redhat.com>
9173 * target-delegates.c: Rebuild.
9174 * target.c (update_current_target): Don't inherit or default
9175 to_enable_tracepoint.
9176 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9177 TARGET_DEFAULT_NORETURN.
9179 2014-02-19 Tom Tromey <tromey@redhat.com>
9181 * target-delegates.c: Rebuild.
9182 * target.c (update_current_target): Don't inherit or default
9183 to_download_trace_state_variable.
9184 * target.h (struct target_ops) <to_download_trace_state_variable>:
9185 Use TARGET_DEFAULT_NORETURN.
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9189 * target-delegates.c: Rebuild.
9190 * target.c (update_current_target): Don't inherit or default
9191 to_can_download_tracepoint.
9192 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9193 TARGET_DEFAULT_RETURN.
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * target-delegates.c: Rebuild.
9198 * target.c (update_current_target): Don't inherit or default
9199 to_download_tracepoint.
9200 * target.h (struct target_ops) <to_download_tracepoint>: Use
9201 TARGET_DEFAULT_NORETURN.
9203 2014-02-19 Tom Tromey <tromey@redhat.com>
9205 * target-delegates.c: Rebuild.
9206 * target.c (update_current_target): Don't inherit or default
9208 * target.h (struct target_ops) <to_trace_init>: Use
9209 TARGET_DEFAULT_RETURN.
9211 2014-02-19 Tom Tromey <tromey@redhat.com>
9213 * target-delegates.c: Rebuild.
9214 * target.c (update_current_target): Don't inherit or default
9215 to_supports_string_tracing.
9216 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9217 TARGET_DEFAULT_RETURN.
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target-delegates.c: Rebuild.
9222 * target.c (update_current_target): Don't inherit or default
9223 to_supports_enable_disable_tracepoint.
9224 * target.h (struct target_ops)
9225 <to_supports_enable_disable_tracepoint>: Use
9226 TARGET_DEFAULT_RETURN.
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target-delegates.c: Rebuild.
9231 * target.c (update_current_target): Don't inherit or default
9232 to_supports_multi_process.
9233 * target.h (struct target_ops) <to_supports_multi_process>: Use
9234 TARGET_DEFAULT_RETURN.
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * target-delegates.c: Rebuild.
9239 * target.c (update_current_target): Don't inherit or default
9240 to_get_ada_task_ptid.
9241 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9242 TARGET_DEFAULT_FUNC.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target-delegates.c: Rebuild.
9247 * target.c (update_current_target): Don't inherit or default
9248 to_thread_architecture.
9249 * target.h (struct target_ops) <to_thread_architecture>: Use
9250 TARGET_DEFAULT_FUNC.
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9254 * target-delegates.c: Rebuild.
9255 * target.c (update_current_target): Don't inherit or default
9256 to_execution_direction.
9257 * target.h (struct target_ops) <to_execution_direction>: Use
9258 TARGET_DEFAULT_FUNC.
9260 2014-02-19 Tom Tromey <tromey@redhat.com>
9262 * target-delegates.c: Rebuild.
9263 * target.c (update_current_target): Don't inherit or default
9264 to_can_execute_reverse.
9265 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9266 TARGET_DEFAULT_RETURN.
9267 (target_can_execute_reverse): Unconditionally delegate.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target-delegates.c: Rebuild.
9272 * target.c (update_current_target): Don't inherit or default
9274 (dummy_goto_bookmark): Remove.
9275 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9276 * target.h (struct target_ops) <to_goto_bookmark>: Use
9277 TARGET_DEFAULT_NORETURN.
9279 2014-02-19 Tom Tromey <tromey@redhat.com>
9281 * target-delegates.c: Rebuild.
9282 * target.c (update_current_target): Don't inherit or default
9284 (dummy_get_bookmark): Remove.
9285 (init_dummy_target): Don't inherit or default to_get_bookmark.
9286 * target.h (struct target_ops) <to_get_bookmark>: Use
9287 TARGET_DEFAULT_NORETURN
9289 2014-02-19 Tom Tromey <tromey@redhat.com>
9291 * target-delegates.c: Rebuild.
9292 * target.c (update_current_target): Don't inherit or default
9293 to_make_corefile_notes.
9294 (init_dummy_target): Don't initialize to_make_corefile_notes.
9295 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9296 TARGET_DEFAULT_FUNC.
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target-delegates.c: Rebuild.
9301 * target.c (update_current_target): Don't inherit or default
9302 to_find_memory_regions.
9303 (init_dummy_target): Don't initialize to_find_memory_regions.
9304 * target.h (struct target_ops) <to_find_memory_regions>: Use
9305 TARGET_DEFAULT_FUNC.
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9309 * target-delegates.c: Rebuild.
9310 * target.c (update_current_target): Don't inherit or default
9312 * target.h (struct target_ops) <to_log_command>: Use
9313 TARGET_DEFAULT_IGNORE.
9314 (target_log_command): Unconditionally delegate.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target-delegates.c: Rebuild.
9319 * target.c (update_current_target): Don't inherit or default
9320 to_pid_to_exec_file.
9321 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9322 TARGET_DEFAULT_RETURN.
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * target-delegates.c: Rebuild.
9327 * target.c (update_current_target): Don't inherit or default
9329 (target_thread_name): Unconditionally delegate.
9330 * target.h (struct target_ops) <to_thread_name>: Use
9331 TARGET_DEFAULT_RETURN.
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9335 * target-delegates.c: Rebuild.
9336 * target.c (update_current_target): Don't inherit or default
9337 to_extra_thread_info.
9338 * target.h (struct target_ops) <to_extra_thread_info>: Use
9339 TARGET_DEFAULT_RETURN.
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target-delegates.c: Rebuild.
9344 * target.c (update_current_target): Don't inherit or default
9346 * target.h (struct target_ops) <to_has_exited>: Use
9347 TARGET_DEFAULT_RETURN..
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9351 * target-delegates.c: Rebuild.
9352 * target.c (update_current_target): Don't inherit or default
9353 to_set_syscall_catchpoint.
9354 (return_one): Remove.
9355 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9356 TARGET_DEFAULT_RETURN.
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9360 * target-delegates.c: Rebuild.
9361 * target.c (update_current_target): Don't inherit or default
9362 to_insert_exec_catchpoint.
9363 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9364 TARGET_DEFAULT_RETURN.
9366 2014-01-08 Tom Tromey <tromey@redhat.com>
9368 * target-delegates.c: Rebuild.
9369 * target.c (update_current_target): Don't inherit or default
9370 to_insert_exec_catchpoint.
9371 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9372 TARGET_DEFAULT_RETURN.
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9376 * target-delegates.c: Rebuild.
9377 * target.c (update_current_target): Don't inherit or default
9378 to_remove_vfork_catchpoint.
9379 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9380 TARGET_DEFAULT_RETURN.
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * target-delegates.c: Rebuild.
9385 * target.c (update_current_target): Don't inherit or default
9386 to_insert_vfork_catchpoint.
9387 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9388 TARGET_DEFAULT_RETURN.
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9392 * target-delegates.c: Rebuild.
9393 * target.c (update_current_target): Don't inherit or default
9394 to_remove_fork_catchpoint.
9395 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9396 TARGET_DEFAULT_RETURN.
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target-delegates.c: Rebuild.
9401 * target.c (update_current_target): Don't inherit or default
9402 to_insert_fork_catchpoint.
9403 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9404 TARGET_DEFAULT_RETURN.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target-delegates.c: Rebuild.
9409 * target.c (update_current_target): Don't inherit or default
9410 to_post_startup_inferior.
9411 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9412 TARGET_DEFAULT_IGNORE.
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9416 * target-delegates.c: Rebuild.
9417 * target.c (update_current_target): Don't inherit or default
9419 * target.h (struct target_ops) <to_load>: Use
9420 TARGET_DEFAULT_NORETURN.
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target-delegates.c: Rebuild.
9425 * target.c (update_current_target): Don't inherit or default
9427 * target.h (struct target_ops) <to_terminal_info>: Use
9428 TARGET_DEFAULT_FUNC.
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9432 * target-delegates.c: Rebuild.
9433 * target.c (update_current_target): Don't inherit or default
9434 to_terminal_save_ours.
9435 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9436 TARGET_DEFAULT_IGNORE.
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9440 * target-delegates.c: Rebuild.
9441 * target.c (update_current_target): Don't inherit or default
9443 * target.h (struct target_ops) <to_terminal_ours>: Use
9444 TARGET_DEFAULT_IGNORE.
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9448 * target-delegates.c: Rebuild.
9449 * target.c (update_current_target): Don't inherit or default
9450 to_terminal_ours_for_output.
9451 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9452 TARGET_DEFAULT_IGNORE.
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9456 * target-delegates.c: Rebuild.
9457 * target.c (update_current_target): Don't inherit or default
9458 to_terminal_inferior.
9459 * target.h (struct target_ops) <to_terminal_inferior>: Use
9460 TARGET_DEFAULT_IGNORE.
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
9467 * target.h (struct target_ops) <to_terminal_init>: Use
9468 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
9475 * target.h (struct target_ops)
9476 <to_can_accel_watchpoint_condition>: 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_region_ok_for_hw_watchpoint.
9483 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9484 Use TARGET_DEFAULT_FUNC.
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
9490 to_watchpoint_addr_within_range.
9491 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9492 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
9499 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9500 TARGET_DEFAULT_NORETURN.
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
9506 to_insert_watchpoint.
9507 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9508 TARGET_DEFAULT_RETURN.
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9512 * target-delegates.c: Rebuild.
9513 * target.c (update_current_target): Don't inherit or default
9514 to_remove_hw_breakpoint.
9515 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9516 TARGET_DEFAULT_RETURN.
9518 2014-02-19 Tom Tromey <tromey@redhat.com>
9520 * target-delegates.c: Rebuild.
9521 * target.c (update_current_target): Don't inherit or default
9522 to_insert_hw_breakpoint.
9523 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9524 TARGET_DEFAULT_RETURN.
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9528 * target-delegates.c: Rebuild.
9529 * target.c (update_current_target): Don't inherit or default
9530 to_can_use_hw_breakpoint.
9531 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9532 TARGET_DEFAULT_RETURN.
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9536 * target-delegates.c: Rebuild.
9537 * target.c (update_current_target): Don't inherit or default
9539 * target.h (struct target_ops) <to_files_info>: Use
9540 TARGET_DEFAULT_IGNORE.
9542 2014-02-19 Tom Tromey <tromey@redhat.com>
9544 * target-delegates.c: Rebuild.
9545 * target.c (update_current_target): Don't inherit or default
9547 * target.h (struct target_ops) <to_store>: Use
9548 TARGET_DEFAULT_NORETURN.
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9552 * target-delegates.c: Rebuild.
9553 * target.c (update_current_target): Don't inherit or default
9555 * target.h (struct target_ops) <to_post_attach>: Use
9556 TARGET_DEFAULT_IGNORE.
9558 2014-02-19 Tom Tromey <tromey@redhat.com>
9560 * target-delegates.c: Rebuild.
9561 * target.c (update_current_target): Don't inherit or default
9563 (default_rcmd): New function.
9564 (do_monitor_command): Unconditionally delegate.
9565 * target.h (struct target_ops) <to_rmcd>: Use
9566 TARGET_DEFAULT_FUNC.
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9570 * target-delegates.c: Rebuild.
9571 * target.c (init_dummy_target): Don't initialize to_attach.
9572 (target_attach): Unconditionally delegate.
9573 * target.h (struct target_ops) <to_attach>: Use
9574 TARGET_DEFAULT_FUNC.
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * target-delegates.c: Rebuild.
9579 * target.c (target_detach): Unconditionally delegate.
9580 (init_dummy_target): Don't initialize to_detach.
9581 * target.h (struct target_ops) <to_detach>: Use
9582 TARGET_DEFAULT_IGNORE.
9584 2014-02-19 Tom Tromey <tromey@redhat.com>
9586 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9588 (target_augmented_libraries_svr4_read): Add argument.
9589 * target.c (update_current_target): Update.
9590 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9595 * target.h (struct target_ops) <to_call_history_range>: Add
9597 * target.c (target_call_history_range): Add argument.
9598 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9600 (record_btrace_call_history_from): Update.
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9604 * target.h (struct target_ops) <to_call_history_from>: Add
9606 * target.c (target_call_history_from): Add argument.
9607 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9612 * target.h (struct target_ops) <to_call_history>: Add argument.
9613 * target.c (target_call_history): Add argument.
9614 * record-btrace.c (record_btrace_call_history): Add 'self'
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target.h (struct target_ops) <to_insn_history_range>: Add
9621 * target.c (target_insn_history_range): Add argument.
9622 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9624 (record_btrace_insn_history_from): Update.
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9628 * target.h (struct target_ops) <to_insn_history_from>: Add
9630 * target.c (target_insn_history_from): Add argument.
9631 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9636 * target.h (struct target_ops) <to_insn_history>: Add argument.
9637 * target.c (target_insn_history): Add argument.
9638 * record-btrace.c (record_btrace_insn_history): Add 'self'
9641 2014-02-19 Tom Tromey <tromey@redhat.com>
9643 * target.h (struct target_ops) <to_goto_record>: Add argument.
9644 * target.c (target_goto_record): Add argument.
9645 * record-full.c (record_full_goto): Add 'self' argument.
9646 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9650 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9651 * target.c (target_goto_record_end): Add argument.
9652 * record-full.c (record_full_goto_end): Add 'self' argument.
9653 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9657 * target.h (struct target_ops) <to_goto_record_begin>: Add
9659 * target.c (target_goto_record_begin): Add argument.
9660 * record-full.c (record_full_goto_begin): Add 'self' argument.
9661 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9666 * target.h (struct target_ops) <to_record_is_replaying>: Add
9668 * target.c (target_record_is_replaying): Add argument.
9669 * record-full.c (record_full_is_replaying): Add 'self' argument.
9670 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9672 (record_btrace_xfer_partial, record_btrace_store_registers)
9673 (record_btrace_prepare_to_store, record_btrace_resume)
9674 (record_btrace_wait, record_btrace_decr_pc_after_break)
9675 (record_btrace_find_new_threads, record_btrace_thread_alive):
9678 2014-02-19 Tom Tromey <tromey@redhat.com>
9680 * target.h (struct target_ops) <to_delete_record>: Add argument.
9681 * target.c (target_delete_record): Add argument.
9682 * record-full.c (record_full_delete): Add 'self' argument.
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9686 * target.h (struct target_ops) <to_save_record>: Add argument.
9687 * target.c (target_save_record): Add argument.
9688 * record-full.c (record_full_save): Add 'self' argument.
9689 (record_full_save): Add 'self' argument.
9691 2014-02-19 Tom Tromey <tromey@redhat.com>
9693 * target.h (struct target_ops) <to_info_record>: Add argument.
9694 * target.c (target_info_record): Add argument.
9695 * record.c (info_record_command): Add argument.
9696 * record-full.c (record_full_info): Add 'self' argument.
9697 * record-btrace.c (record_btrace_info): Add 'self' argument.
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9701 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9702 * target.c (target_stop_recording): Add argument.
9703 * record.c (record_stop): Add argument.
9704 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9709 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9710 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9711 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9713 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9714 (_initialize_amd64_linux_nat): Use it.
9715 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9716 (_initialize_i386_linux_nat): Use it.
9718 2014-02-19 Tom Tromey <tromey@redhat.com>
9720 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9721 * target.c (target_teardown_btrace): Add argument.
9722 * remote.c (remote_teardown_btrace): Add 'self' argument.
9723 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9725 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9730 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9731 * target.c (target_disable_btrace): Add argument.
9732 * remote.c (remote_disable_btrace): Add 'self' argument.
9733 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9735 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9740 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9741 * target.c (target_enable_btrace): Add argument.
9742 * remote.c (remote_enable_btrace): Add 'self' argument.
9743 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9745 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9748 2014-02-19 Tom Tromey <tromey@redhat.com>
9750 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9751 (target_can_use_agent): Add argument.
9752 * target.c (update_current_target): Update.
9753 * remote.c (remote_can_use_agent): Add 'self' argument.
9754 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9758 * target.h (struct target_ops) <to_use_agent>: Add argument.
9759 (target_use_agent): Add argument.
9760 * target.c (update_current_target): Update.
9761 * remote.c (remote_use_agent): Add 'self' argument.
9762 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9766 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9767 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9768 (target_traceframe_info): Add argument.
9769 * target.c (update_current_target): Update.
9770 * remote.c (remote_traceframe_info): Add 'self' argument.
9771 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9773 2014-02-19 Tom Tromey <tromey@redhat.com>
9775 * target.h (target_static_tracepoint_markers_by_strid): Add
9777 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9779 * target.c (update_current_target): Update.
9780 * remote.c (struct target_ops)
9781 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9782 * linux-nat.c (struct target_ops)
9783 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9789 (target_static_tracepoint_marker_at): Add argument.
9790 * target.c (update_current_target): Update.
9791 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9796 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9797 (target_set_permissions): Add argument.
9798 * target.c (update_current_target): Update.
9799 * remote.c (remote_set_permissions): Add 'self' argument.
9800 (remote_start_remote): Update.
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9804 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9805 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9806 (target_get_tib_address): Add argument.
9807 * target.c (update_current_target): Update.
9808 * remote.c (remote_get_tib_address): Add 'self' argument.
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9812 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9813 (target_set_trace_notes): Add argument.
9814 * target.c (update_current_target): Update.
9815 * remote.c (remote_set_trace_notes): Add 'self' argument.
9817 2014-02-19 Tom Tromey <tromey@redhat.com>
9819 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9821 (target_set_trace_buffer_size): Add argument.
9822 * target.c (update_current_target): Update.
9823 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9825 2014-02-19 Tom Tromey <tromey@redhat.com>
9827 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9829 (target_set_circular_trace_buffer): Add argument.
9830 * target.c (update_current_target): Update.
9831 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9834 2014-02-19 Tom Tromey <tromey@redhat.com>
9836 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9838 (target_set_disconnected_tracing): Add argument.
9839 * target.c (update_current_target): Update.
9840 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9844 * target.h (struct target_ops)
9845 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9846 (target_get_min_fast_tracepoint_insn_len): Add argument.
9847 * target.c (update_current_target): Update.
9848 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9853 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9855 (target_get_raw_trace_data): Add argument.
9856 * target.c (update_current_target): Update.
9857 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9861 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9863 (target_upload_trace_state_variables): Add argument.
9864 * target.c (update_current_target): Update.
9865 * remote.c (remote_upload_trace_state_variables): Add 'self'
9867 (remote_start_remote): Update.
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9871 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9873 (target_upload_tracepoints): Add argument.
9874 * target.c (update_current_target): Update.
9875 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9876 (remote_start_remote): Update.
9878 2014-02-19 Tom Tromey <tromey@redhat.com>
9880 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9881 (target_save_trace_data): Add argument.
9882 * target.c (update_current_target): Update.
9883 * remote.c (remote_save_trace_data): Add 'self' argument.
9885 2014-02-19 Tom Tromey <tromey@redhat.com>
9887 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9889 * target.h (struct target_ops)
9890 <to_get_trace_state_variable_value>: Add argument.
9891 (target_get_trace_state_variable_value): Add argument.
9892 * target.c (update_current_target): Update.
9893 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9895 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9899 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9900 * target.h (struct target_ops) <to_trace_find>: Add argument.
9901 (target_trace_find): Add argument.
9902 * target.c (update_current_target): Update.
9903 * remote.c (remote_trace_find): Add 'self' argument.
9904 * ctf.c (ctf_trace_find): Add 'self' argument.
9906 2014-02-19 Tom Tromey <tromey@redhat.com>
9908 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9909 (target_trace_stop): Add argument.
9910 * target.c (update_current_target): Update.
9911 * remote.c (remote_trace_stop): Add 'self' argument.
9913 2014-02-19 Tom Tromey <tromey@redhat.com>
9915 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9916 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9918 (target_get_tracepoint_status): Add argument.
9919 * target.c (update_current_target): Update.
9920 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9922 2014-02-19 Tom Tromey <tromey@redhat.com>
9924 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9925 * target.h (struct target_ops) <to_get_trace_status>: Add
9927 (target_get_trace_status): Add argument.
9928 * target.c (update_current_target): Update.
9929 * remote.c (remote_get_trace_status): Add 'self' argument.
9930 (remote_start_remote, remote_can_download_tracepoint): Update.
9931 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9935 * target.h (struct target_ops) <to_trace_start>: Add argument.
9936 (target_trace_start): Add argument.
9937 * target.c (update_current_target): Update.
9938 * remote.c (remote_trace_start): Add 'self' argument.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9944 (target_trace_set_readonly_regions): Add argument.
9945 * target.c (update_current_target): Update.
9946 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9949 2014-02-19 Tom Tromey <tromey@redhat.com>
9951 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9953 (target_disable_tracepoint): Add argument.
9954 * target.c (update_current_target): Update.
9955 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9959 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9961 (target_enable_tracepoint): Add argument.
9962 * target.c (update_current_target): Update.
9963 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9967 * target.h (struct target_ops) <to_download_trace_state_variable>:
9969 (target_download_trace_state_variable): Add argument.
9970 * target.c (update_current_target): Update.
9971 * remote.c (remote_download_trace_state_variable): Add 'self'
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9976 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9978 (target_can_download_tracepoint): Add argument.
9979 * target.c (update_current_target): Update.
9980 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9984 * target.h (struct target_ops) <to_download_tracepoint>: Add
9986 (target_download_tracepoint): Add argument.
9987 * target.c (update_current_target): Update.
9988 * remote.c (remote_download_tracepoint): Add 'self' argument.
9990 2014-02-19 Tom Tromey <tromey@redhat.com>
9992 * target.h (struct target_ops) <to_trace_init>: Add argument.
9993 (target_trace_init): Add argument.
9994 * target.c (update_current_target): Update.
9995 * remote.c (remote_trace_init): Add 'self' argument.
9997 2014-02-19 Tom Tromey <tromey@redhat.com>
9999 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10000 * target.c (target_fileio_readlink): Add argument.
10001 * remote.c (remote_hostio_readlink): Add 'self' argument.
10002 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10006 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10007 * target.c (target_fileio_unlink): Add argument.
10008 * remote.c (remote_hostio_unlink): Add 'self' argument.
10009 (remote_file_delete): Update.
10010 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10014 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10015 * target.c (target_fileio_close): Add argument.
10016 * remote.c (remote_hostio_close): Add 'self' argument.
10017 (remote_hostio_close_cleanup): Update.
10018 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10020 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10024 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10025 * target.c (target_fileio_pread): Add argument.
10026 * remote.c (remote_hostio_pread): Add 'self' argument.
10027 (remote_bfd_iovec_pread, remote_file_get): Update.
10028 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10032 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10033 * target.c (target_fileio_pwrite): Add argument.
10034 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10035 (remote_file_put): Update.
10036 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10040 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10041 * target.c (target_fileio_open): Add argument.
10042 * remote.c (remote_hostio_open): Add 'self' argument.
10043 (remote_bfd_iovec_open): Add 'self' argument.
10044 (remote_file_put): Add 'self' argument.
10045 (remote_file_get): Add 'self' argument.
10046 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10050 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10052 (target_can_run_breakpoint_commands): Add argument.
10053 * target.c (update_current_target): Update.
10054 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10056 (remote_insert_breakpoint): Add 'self' argument.
10057 (remote_insert_hw_breakpoint): Add 'self' argument.
10058 (remote_can_run_breakpoint_commands): Add 'self' argument.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target.h (struct target_ops)
10063 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10064 (target_supports_evaluation_of_breakpoint_conditions): Add
10066 * target.c (update_current_target): Update.
10067 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10069 (remote_insert_breakpoint): Add 'self' argument.
10070 (remote_insert_hw_breakpoint): Add 'self' argument.
10071 (remote_supports_cond_breakpoints): Add 'self' argument.
10073 2014-02-19 Tom Tromey <tromey@redhat.com>
10075 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10077 (target_supports_string_tracing): Add argument.
10078 * target.c (update_current_target): Update.
10079 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10081 2014-02-19 Tom Tromey <tromey@redhat.com>
10083 * target.h (struct target_ops)
10084 <to_supports_disable_randomization>: Add argument.
10085 * target.c (find_default_supports_disable_randomization): Add
10087 (target_supports_disable_randomization): Add argument.
10088 (find_default_supports_disable_randomization): Add 'self'
10090 * remote.c (extended_remote_supports_disable_randomization): Add
10092 (remote_supports_disable_randomization): Add 'self' argument.
10093 (extended_remote_create_inferior): Update.
10094 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10097 2014-02-19 Tom Tromey <tromey@redhat.com>
10099 * target.h (struct target_ops)
10100 <to_supports_enable_disable_tracepoint>: Add argument.
10101 (target_supports_enable_disable_tracepoint): Add argument.
10102 * target.c (update_current_target): Update.
10103 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10108 * target.h (struct target_ops) <to_supports_multi_process>: Add
10110 (target_supports_multi_process): Add argument.
10111 * target.c (update_current_target): Update.
10112 * remote.c (remote_supports_multi_process): Add 'self' argument.
10113 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10115 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10120 * target.h (struct target_ops) <to_execution_direction>: Add
10122 (target_execution_direction): Add argument.
10123 * target.c (default_execution_direction): Add 'self' argument.
10124 * record-full.c (record_full_execution_direction): Add 'self'
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10129 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10131 (target_can_execute_reverse): Add argument.
10132 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10133 * record-full.c (record_full_can_execute_reverse): Add 'self'
10135 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10138 2014-02-19 Tom Tromey <tromey@redhat.com>
10140 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10141 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10143 (target_get_ada_task_ptid): Add argument.
10144 * target.c (update_current_target): Update.
10145 (default_get_ada_task_ptid): Add 'self' argument.
10146 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10147 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10148 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10150 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10152 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10154 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10156 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10157 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10162 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10163 (target_goto_bookmark): Add argument.
10164 * target.c (dummy_goto_bookmark): Add 'self' argument.
10165 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10167 2014-02-19 Tom Tromey <tromey@redhat.com>
10169 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10170 (target_get_bookmark): Add argument.
10171 * target.c (dummy_get_bookmark): Add 'self' argument.
10172 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10176 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10178 (target_make_corefile_notes): Add argument.
10179 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10180 * procfs.c (procfs_make_note_section): Add 'self' argument.
10181 (procfs_make_note_section): Add 'self' argument.
10182 (procfs_make_note_section): Add 'self' argument.
10183 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10185 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10186 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10187 * exec.c (exec_make_note_section): Add 'self' argument.
10188 (exec_make_note_section): Add 'self' argument.
10190 2014-02-19 Tom Tromey <tromey@redhat.com>
10192 * target.h (struct target_ops) <to_find_memory_regions>: Add
10194 (target_find_memory_regions): Add argument.
10195 * target.c (dummy_find_memory_regions): Add 'self' argument.
10196 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10197 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10198 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10199 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10200 * exec. (exec_do_find_memory_regions): New global.
10201 (exec_set_find_memory_regions): Rewrite.
10202 (exec_find_memory_regions): New function.
10203 (init_exec_ops): Use exec_find_memory_regions.
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10207 * target.h (struct target_ops) <to_supports_non_stop>: Add
10209 * target.c (find_default_supports_non_stop): Add argument.
10210 (target_supports_non_stop): Add argument.
10211 (find_default_supports_non_stop): Add 'self' argument.
10212 * remote.c (remote_supports_non_stop): Add 'self' argument.
10213 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10217 * target.h (struct target_ops) <to_log_command>: Add argument.
10218 (target_log_command): Add argument.
10219 * serial.h (serial_log_command): Add 'self' argument.
10220 * serial.c (serial_log_command): Add 'self' argument.
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10224 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10225 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10227 (target_pid_to_exec_file): Add argument.
10228 * target.c (debug_to_pid_to_exec_file): Add argument.
10229 (update_current_target): Update.
10230 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10231 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10232 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10233 (linux_handle_extended_wait): Update.
10234 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10235 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10236 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10237 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10241 * target.h (struct target_ops) <to_rcmd>: Add argument.
10242 (target_rcmd): Add argument.
10243 * target.c (debug_to_rcmd): Add argument.
10244 (update_current_target, do_monitor_command): Update.
10245 * remote.c (remote_rcmd): Add 'self' argument.
10246 * monitor.c (monitor_rcmd): Add 'self' argument.
10248 2014-02-19 Tom Tromey <tromey@redhat.com>
10250 * windows-nat.c (windows_stop): Add 'self' argument.
10251 * target.h (struct target_ops) <to_stop>: Add argument.
10252 * target.c (target_stop): Add argument.
10253 (debug_to_stop): Add argument.
10254 (update_current_target): Update.
10255 * remote.c (remote_stop): Add 'self' argument.
10256 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10257 (gdbsim_cntrl_c): Update.
10258 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10259 * procfs.c (procfs_stop): Add 'self' argument.
10260 * nto-procfs.c (procfs_stop): Add 'self' argument.
10261 * monitor.c (monitor_stop): Add 'self' argument.
10262 (monitor_open): Update.
10263 * linux-nat.c (linux_nat_stop): Add argument.
10264 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10265 * gnu-nat.c (gnu_stop): Add 'self' argument.
10266 * darwin-nat.c (darwin_stop): Add 'self' argument.
10268 2014-02-19 Tom Tromey <tromey@redhat.com>
10270 * target.h (struct target_ops) <to_thread_name>: Add argument.
10271 * target.c (target_thread_name): Add argument.
10272 (update_current_target): Update.
10273 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10275 2014-02-19 Tom Tromey <tromey@redhat.com>
10277 * target.h (struct target_ops) <to_extra_thread_info>: Add
10279 (target_extra_thread_info): Add argument.
10280 * target.c (update_current_target): Update.
10281 * remote.c (remote_threads_extra_info): Add 'self' argument.
10282 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10284 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10285 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10286 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10288 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10290 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10292 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target.h (struct target_ops) <to_program_signals>: Add argument.
10298 * target.c (target_program_signals): Add argument.
10299 * remote.c (remote_program_signals): Add 'self' argument.
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10303 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10304 * target.c (target_pass_signals): Add argument.
10305 * remote.c (remote_pass_signals): Add 'self' argument.
10306 (remote_start_remote): Update.
10307 * procfs.c (procfs_pass_signals): Add 'self' argument.
10308 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10309 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10310 (linux_nat_create_inferior, linux_nat_attach): Update.
10312 2014-02-19 Tom Tromey <tromey@redhat.com>
10314 * windows-nat.c (windows_can_run): Add 'self' argument.
10315 * target.h (struct target_ops) <to_can_run>: Add argument.
10316 (target_can_run): Add argument.
10317 * target.c (debug_to_can_run): Add argument.
10318 (update_current_target): Update.
10319 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10320 * inf-child.c (inf_child_can_run): Add 'self' argument.
10321 * go32-nat.c (go32_can_run): Add 'self' argument.
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10325 * target.h (struct target_ops) <to_has_exited>: Add argument.
10326 (target_has_exited): Add argument.
10327 * target.c (debug_to_has_exited): Add argument.
10328 (update_current_target): Update.
10330 2014-02-19 Tom Tromey <tromey@redhat.com>
10332 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10334 (target_set_syscall_catchpoint): Add argument.
10335 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10337 * target.c (update_current_target): Update.
10339 2014-02-19 Tom Tromey <tromey@redhat.com>
10341 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10343 (target_remove_exec_catchpoint): Add argument.
10344 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10345 (update_current_target): Update.
10346 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10353 (target_insert_exec_catchpoint): Add argument.
10354 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10355 (update_current_target): Update.
10356 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10359 2014-02-19 Tom Tromey <tromey@redhat.com>
10361 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10363 (target_remove_vfork_catchpoint): Add argument.
10364 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10365 (update_current_target): Update.
10366 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10373 (target_insert_vfork_catchpoint): Add argument.
10374 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10375 (update_current_target): Update.
10376 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10383 (target_remove_fork_catchpoint): Add argument.
10384 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10385 (update_current_target): Update.
10386 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10389 2014-02-19 Tom Tromey <tromey@redhat.com>
10391 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10393 (target_insert_fork_catchpoint): Add argument.
10394 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10395 (update_current_target): Update.
10396 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10401 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10403 (target_post_startup_inferior): Add argument.
10404 * target.c (debug_to_post_startup_inferior): Add argument.
10405 (update_current_target): Update.
10406 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10408 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10410 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10412 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10414 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10416 (super_post_startup_inferior): Likewise.
10417 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10419 (super_post_startup_inferior): Likewise.
10420 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10421 Add 'self' argument.
10422 (super_post_startup_inferior): Likewise.
10424 2014-02-19 Tom Tromey <tromey@redhat.com>
10426 * target.h (struct target_ops) <to_load>: Add argument.
10427 * target.c (target_load): Add argument.
10428 (debug_to_load): Add argument.
10429 (update_current_target): Update.
10430 * remote.c (remote_load): Add 'self' argument.
10431 * remote-sim.c (gdbsim_load): Add 'self' argument.
10432 * remote-mips.c (mips_load): Add 'self' argument.
10433 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10434 * monitor.c (monitor_load): Add 'self' argument.
10435 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10437 2014-02-19 Tom Tromey <tromey@redhat.com>
10439 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10440 (target_terminal_info): Add argument.
10441 * target.c (debug_to_terminal_info): Add argument.
10442 (default_terminal_info): Likewise.
10443 * inflow.c (child_terminal_info): Add 'self' argument.
10444 * inferior.h (child_terminal_info): Add 'self' argument.
10445 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10449 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10451 (target_terminal_save_ours): Add argument.
10452 * target.c (debug_to_terminal_save_ours): Add argument.
10453 (update_current_target): Update.
10454 * inflow.c (terminal_save_ours): Add 'self' argument.
10455 * inferior.h (terminal_save_ours): Add 'self' argument.
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10459 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10460 (target_terminal_ours): Add argument.
10461 * target.c (debug_to_terminal_ours): Add argument.
10462 (update_current_target): Update.
10463 * remote.c (remote_terminal_ours): Add 'self' argument.
10464 (remote_close): Update.
10465 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10466 * inflow.c (terminal_ours): Add 'self' argument.
10467 * inferior.h (terminal_ours): Add 'self' argument.
10468 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10470 2014-02-19 Pedro Alves <palves@redhat.com>
10471 Tom Tromey <tromey@redhat.com>
10473 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10475 (target_terminal_ours_for_output): Add argument.
10476 * target.c (debug_to_terminal_ours_for_output): Add argument.
10477 (update_current_target): Update.
10478 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10479 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10480 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10484 * target.h (struct target_ops) <to_terminal_inferior>: Add
10486 * target.c (target_terminal_inferior): Add argument.
10487 (update_current_target): Update.
10488 * remote.c (remote_terminal_inferior): Add 'self' argument.
10489 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10490 * inflow.c (terminal_inferior): Add 'self' argument.
10491 * inferior.h (terminal_inferior): Add 'self' argument.
10492 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10493 (go32_terminal_inferior): Add 'self' argument.
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10497 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10498 (target_terminal_init): Add argument.
10499 * target.c (debug_to_terminal_init): Add argument.
10500 (update_current_target): Update.
10501 * inflow.c (terminal_init_inferior): Add 'self' argument.
10502 * inferior.h (terminal_init_inferior): Add 'self' argument.
10503 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10504 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10508 * target.h (struct target_ops)
10509 <to_can_accel_watchpoint_condition>: Add argument.
10510 (target_can_accel_watchpoint_condition): Add argument.
10511 * target.c (debug_to_can_accel_watchpoint_condition): Add
10513 (update_current_target): Update.
10514 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10519 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10521 (target_region_ok_for_hw_watchpoint): Add argument.
10522 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10523 (default_region_ok_for_hw_watchpoint): Add argument.
10524 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10525 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10527 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10529 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10531 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10533 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10535 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10537 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10538 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10540 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10541 Add 'self' argument.
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10547 (target_insert_watchpoint): Add argument.
10548 * target.c (debug_to_insert_watchpoint): Add argument.
10549 (update_current_target): Update.
10550 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10551 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10552 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10553 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10554 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10555 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10557 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10558 (procfs_insert_hw_watchpoint): Add 'self' argument.
10559 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10561 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10563 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10565 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10566 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10568 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10573 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10575 (target_remove_watchpoint): Add argument.
10576 * target.c (debug_to_remove_watchpoint): Add argument.
10577 (update_current_target): Update.
10578 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10579 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10580 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10581 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10582 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10583 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10585 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10586 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10588 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10590 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10592 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10593 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10595 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10598 2014-02-19 Tom Tromey <tromey@redhat.com>
10600 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10602 (target_remove_hw_breakpoint): Add argument.
10603 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10604 (update_current_target): Update.
10605 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10606 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10608 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10609 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10611 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10616 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10618 (target_insert_hw_breakpoint): Add argument.
10619 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10620 (update_current_target): Update.
10621 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10622 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10624 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10625 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10626 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10628 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10633 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10635 (target_can_use_hardware_watchpoint): Add argument.
10636 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10637 (update_current_target): Update.
10638 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10640 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10642 * remote.c (remote_check_watch_resources): Add 'self' argument.
10643 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10644 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10646 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10647 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10649 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10651 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10653 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10655 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10657 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10659 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10660 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10662 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10667 * target.h (struct target_ops) <to_post_attach>: Add argument.
10668 (target_post_attach): Add argument.
10669 * target.c (debug_to_post_attach): Add argument.
10670 (update_current_target): Update.
10671 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10672 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10673 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10674 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10675 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * windows-nat.c (windows_close): Add 'self' argument.
10680 * tracepoint.c (tfile_close): Add 'self' argument.
10681 * target.h (struct target_ops) <to_close>: Add argument.
10682 * target.c (target_close): Add argument.
10683 (update_current_target): Update.
10684 * remote.c (remote_close): Add 'self' argument.
10685 * remote-sim.c (gdbsim_close): Add 'self' argument.
10686 * remote-mips.c (mips_close): Add 'self' argument.
10687 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10688 * record-full.c (record_full_close): Add 'self' argument.
10689 * record-btrace.c (record_btrace_close): Add 'self' argument.
10690 * monitor.h (monitor_close): Add 'self' argument.
10691 * monitor.c (monitor_close): Add 'self' argument.
10692 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10693 * linux-nat.c (linux_nat_close): Add argument.
10694 * go32-nat.c (go32_close): Add 'self' argument.
10695 * exec.c (exec_close_1): Add 'self' argument.
10696 * ctf.c (ctf_close): Add 'self' argument.
10697 * corelow.c (core_close): Add 'self' argument.
10698 (core_close_cleanup): Update.
10699 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10700 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10704 * remote.c (remote_load): New function.
10705 (init_remote_ops): Use it.
10707 2014-02-19 Tom Tromey <tromey@redhat.com>
10709 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10711 * common/linux-btrace.h (linux_supports_btrace): Update.
10712 * remote.c (remote_supports_btrace): Add "self" argument.
10713 * target-delegates.c: Rebuild.
10714 * target.c (target_supports_btrace): Remove.
10715 * target.h (struct target_ops) <to_supports_btrace>: Add
10716 target_ops argument.
10717 (target_supports_btrace): New define.
10719 2014-02-19 Tom Tromey <tromey@redhat.com>
10721 * record-full.c (record_full_beneath_to_resume_ops)
10722 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10723 (record_full_beneath_to_wait)
10724 (record_full_beneath_to_store_registers_ops)
10725 (record_full_beneath_to_store_registers)
10726 (record_full_beneath_to_xfer_partial_ops)
10727 (record_full_beneath_to_xfer_partial)
10728 (record_full_beneath_to_insert_breakpoint_ops)
10729 (record_full_beneath_to_insert_breakpoint)
10730 (record_full_beneath_to_remove_breakpoint_ops)
10731 (record_full_beneath_to_remove_breakpoint)
10732 (record_full_beneath_to_stopped_by_watchpoint)
10733 (record_full_beneath_to_stopped_data_address)
10734 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10735 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10736 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10737 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10738 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10739 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10740 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10741 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10742 (record_full_resume, record_full_wait_1)
10743 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10744 (record_full_store_registers, record_full_xfer_partial)
10745 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10746 (record_full_async, record_full_core_xfer_partial): Use target
10748 * target-delegates.c: Rebuild.
10749 * target.c (current_xfer_partial): Remove.
10750 (update_current_target): Do not INHERIT or de_fault
10751 to_insert_breakpoint, to_remove_breakpoint,
10752 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10753 to_is_async_p, to_async. Do not set to_xfer_partial field.
10754 (default_xfer_partial): Simplify.
10755 (current_xfer_partial): Remove.
10756 (target_wait, target_resume): Simplify.
10757 (find_default_can_async_p, find_default_is_async_p): Update.
10758 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10759 to_xfer_partial, to_stopped_by_watchpoint,
10760 to_stopped_data_address.
10761 (target_store_registers): Simplify.
10762 (forward_target_remove_breakpoint)
10763 (forward_target_insert_breakpoint): Remove.
10764 (target_remove_breakpoint, target_insert_breakpoint)
10765 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10766 * target.h (struct target_ops) <to_resume, to_wait,
10767 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10768 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10769 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10771 (forward_target_remove_breakpoint)
10772 (forward_target_insert_breakpoint): Remove.
10773 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10775 (record_btrace_insert_breakpoint): Delegate directly.
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10780 * target-delegates.c: New file.
10781 * target.c: Include target-delegates.c.
10782 (init_dummy_target): Call install_dummy_methods.
10783 (complete_target_initialization): Call install_delegators.
10784 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10785 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10786 * make-target-delegates: New file.
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10790 * record.c (find_record_target): Use find_target_at.
10791 * target.c (find_target_at): New function.
10792 * target.h (find_target_at): Declare.
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10796 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10797 Add 'ops' argument.
10798 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10800 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10801 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10803 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10805 * linux-nat.c (save_sigtrap): Update.
10806 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10807 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10808 (linux_nat_close): Update.
10809 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10811 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10813 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10814 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10815 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10816 (tmp_to_async): Add 'ops' argument.
10817 (record_full_stopped_by_watchpoint, record_full_async)
10818 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10820 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10821 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10822 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10823 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10824 (remote_is_async_p, remote_async): Add 'ops' argument.
10825 (remote_stopped_data_address): Update.
10826 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10827 * target.c (update_current_target)
10828 (find_default_can_async_p, find_default_is_async_p): Update.
10829 (init_dummy_target): Update.
10830 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10831 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10832 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10833 (target_can_async_p, target_is_async_p, target_async)
10834 (target_stopped_by_watchpoint): Update.
10836 2014-02-19 Yao Qi <yao@codesourcery.com>
10839 * gdbarch.sh: Remove startup_gdbarch.
10840 * gdbarch.c: Regenerated.
10841 * gdbarch.h: Likewise.
10843 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10845 * rl78-tdep.c (rl78_g10_register_name): New function.
10846 (rl78_return_value): Add g10 support.
10847 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10850 2014-02-17 Doug Evans <xdje42@gmail.com>
10852 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10853 (SUBDIR_GUILE_SRCS): Ditto.
10854 (scm-gsmob.o): Ditto.
10856 2014-02-17 Yao Qi <yao@codesourcery.com>
10858 * gnu-nat.c (ILL_RPC): Declare defined function.
10860 2014-02-17 Yao Qi <yao@codesourcery.com>
10862 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10863 mach_msg_type_number_t.
10864 (gnu_write_inferior): Likewise.
10866 2014-02-17 Yao Qi <yao@codesourcery.com>
10868 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10870 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10871 (inf_validate_procs, inf_signal): Likewise.
10872 (S_exception_raise_request): Likewise.
10873 (do_mach_notify_dead_name): Likewise.
10874 (steal_exc_port): Likewise.
10875 (gnu_read_inferior): Change 'copy_count''s type to
10876 mach_msg_type_number_t.
10877 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10880 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10882 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10883 flag. Adjust all users; in particular...
10884 (gnu_wait): ..., don't decrement its value in here...
10885 (gnu_create_inferior): ..., and instead set the flag in here,
10886 around the startup_inferior call, and call that one with
10887 START_INFERIOR_TRAPS_EXPECTED.
10889 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10890 (ILL_RPC): ... new macro.
10891 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10892 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10893 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10894 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10895 functions with ILL_RPC macro.
10896 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10897 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10898 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10899 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10900 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10901 (S_proc_getlogin_reply, S_proc_getsid_reply)
10902 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10903 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10904 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10905 (S_proc_getnports_reply, S_proc_is_important_reply)
10906 (S_proc_get_code_reply): New stub functions, generated with
10909 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10910 collected the type check structures.
10912 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10914 2014-02-14 Doug Evans <dje@google.com>
10916 * target.c (target_write_partial): Fix result type.
10918 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10920 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10921 the proper offsets to access fpregset_t.
10923 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10925 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10926 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10927 * h8300-tdep.c (setmachinelist): Remove global.
10928 * hppa-tdep.c (hppa_sigtramp): Remove global.
10929 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10930 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10931 * ravenscar-thread.c (update_target_observer): Remove global.
10932 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10934 2014-02-12 Tom Tromey <tromey@redhat.com>
10936 * common/rsp-low.c: Update comments.
10937 * common/rsp-low.h: Update comments.
10939 2014-02-12 Tom Tromey <tromey@redhat.com>
10941 * common/rsp-low.c (convert_ascii_to_int): Remove.
10942 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10944 2014-02-12 Tom Tromey <tromey@redhat.com>
10946 * common/rsp-low.h (unhexify): Don't declare.
10947 * common/rsp-low.c (unhexify): Remove.
10949 2014-02-12 Tom Tromey <tromey@redhat.com>
10951 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10952 * common/rsp-low.c (convert_int_to_ascii): Remove.
10954 2014-02-12 Tom Tromey <tromey@redhat.com>
10956 * common/rsp-low.h (hexify): Don't declare.
10957 * common/rsp-low.c (hexify): Remove.
10959 2014-02-12 Tom Tromey <tromey@redhat.com>
10961 * common/rsp-low.c (hexify): Never take strlen of argument.
10963 2014-02-12 Tom Tromey <tromey@redhat.com>
10965 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10966 * remote.c (extended_remote_run, remote_rcmd)
10967 (remote_download_trace_state_variable, remote_save_trace_data)
10968 (remote_set_trace_notes): Update.
10969 * tracepoint.c (encode_source_string, tfile_write_status)
10970 (tfile_write_uploaded_tsv): Update.
10972 2014-02-12 Tom Tromey <tromey@redhat.com>
10974 * tracepoint.c: Include rsp-low.h.
10975 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10976 * remote.c: Include rsp-low.h.
10977 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10978 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10979 (remote_unescape_input): Move to common/rsp-low.c.
10980 * common/rsp-low.h: New file.
10981 * common/rsp-low.c: New file.
10982 * Makefile.in (SFILES): Add common/rsp-low.c.
10983 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10984 (COMMON_OBS): Add rsp-low.o.
10985 (rsp-low.o): New target.
10987 2014-02-12 Tom Tromey <tromey@redhat.com>
10989 * utils.h: Include print-utils.h.
10990 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10991 (int_string, core_addr_to_string, core_addr_to_string_nz)
10992 (hex_string, hex_string_custom): Don't declare.
10993 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10994 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10995 (hex_string_custom, int_string, core_addr_to_string)
10996 (core_addr_to_string_nz, host_address_to_string): Move to
10997 common/print-utils.c.
10998 * common/print-utils.h: New file.
10999 * common/print-utils.c: New file
11000 * Makefile.in (SFILES): Add common/print-utils.c.
11001 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11002 (COMMON_OBS): Add print-utils.o.
11003 (print-utils.o): New target.
11005 2014-02-12 Tom Tromey <tromey@redhat.com>
11007 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11009 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11011 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11013 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11015 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11016 if a PT_IO ptrace request returns sucessfully but indicates that 0
11017 bytes were transferred.
11019 2014-02-12 Pedro Alves <palves@redhat.com>
11020 Kevin Buettner <kevinb@redhat.com>
11022 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11023 TYPE_INSTANCE_FLAG_CODE_SPACE.
11025 2014-02-12 Pedro Alves <palves@redhat.com>
11027 * h8300-tdep.c (pseudo_from_raw_register)
11028 (raw_from_pseudo_register): New functions.
11029 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11032 2014-02-12 Pedro Alves <palves@redhat.com>
11034 * h8300-tdep.c (h8300_register_sim_regno): New function.
11035 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11036 gdbarch_register_sim_regno hook.
11038 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11040 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11042 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11044 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11046 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11048 * obsd-tdep.h (obsd_init_abi): New prototype.
11049 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11050 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11051 (obsd_init_abi): New functions.
11052 * i386obsd-tdep.c: Include "obsd-tdep.h".
11053 (i386obsd_init_abi): Call obsd_init_abi.
11054 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11055 (amd64obsd_init_abi): Call obsd_init_abi.
11056 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11057 obsd-tdep.c to gdb_target_obs.
11059 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11061 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11062 double float arguments to 16-byte in the argument slots.
11064 2014-02-11 Doug Evans <xdje42@gmail.com>
11066 * configure.ac: Don't crash if pkg-config is not found and guile
11067 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11069 * configure: Regenerate.
11071 2014-02-11 Yao Qi <yao@codesourcery.com>
11073 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11074 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11075 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11076 * gnu-nat.c (gnu_xfer_memory): Likewise.
11077 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11078 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11079 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11080 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11082 2014-02-11 Yao Qi <yao@codesourcery.com>
11084 * target.h (enum target_xfer_error): Rename to ...
11085 (enum target_xfer_status): ... it. New. All users updated.
11086 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11088 (TARGET_XFER_STATUS_ERROR_P): New macro.
11089 (target_xfer_error_to_string): Remove declaration.
11090 (target_xfer_status_to_string): Declare.
11091 (target_xfer_partial_ftype): Adjust it.
11092 (struct target_ops) <to_xfer_partial>: Return
11093 target_xfer_status. Add argument xfered_len. Update
11095 * target.c (target_xfer_error_to_string): Rename to ...
11096 (target_xfer_status_to_string): ... it. New. All callers
11098 (target_read_live_memory): Likewise. Call target_xfer_partial
11099 instead of target_read.
11100 (memory_xfer_live_readonly_partial): Return
11101 target_xfer_status. Add argument xfered_len.
11102 (raw_memory_xfer_partial): Likewise.
11103 (memory_xfer_partial_1): Likewise.
11104 (memory_xfer_partial): Likewise.
11105 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11106 properly. Update debug message.
11107 (default_xfer_partial, current_xfer_partial): Likewise.
11108 (target_write_partial): Likewise.
11109 (target_read_partial): Likewise. All callers updated.
11110 (read_whatever_is_readable): Likewise.
11111 (target_write_with_progress): Likewise.
11112 (target_read_alloc_1): Likewise.
11114 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11115 * auxv.c (procfs_xfer_auxv): Likewise.
11116 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11117 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11118 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11119 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11120 * corefile.c (read_memory): Adjust.
11121 * corelow.c (core_xfer_partial): Likewise.
11122 * ctf.c (ctf_xfer_partial): Likewise.
11123 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11125 (darwin_xfer_partial): Likewise.
11126 * exec.c (section_table_xfer_memory_partial): Likewise. All
11128 (exec_xfer_partial): Likewise.
11129 * exec.h (section_table_xfer_memory_partial): Update
11131 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11133 (gnu_xfer_partial): Likewise.
11134 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11135 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11136 (ia64_hpux_xfer_solib_got): Likewise.
11137 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11138 type of 'partial_len' to ULONGEST.
11139 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11140 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11141 (linux_nat_xfer_partial): Likewise.
11142 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11143 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11144 * monitor.c (monitor_xfer_memory): Likewise.
11145 (monitor_xfer_partial): Likewise.
11146 * procfs.c (procfs_xfer_partial): Likewise.
11147 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11148 * record-full.c (record_full_xfer_partial): Likewise.
11149 (record_full_core_xfer_partial): Likewise.
11150 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11151 (gdbsim_xfer_partial): Likewise.
11152 * remote.c (remote_write_bytes_aux): Likewise. All callers
11154 (remote_write_bytes, remote_read_bytes): Likewise. All
11156 (remote_flash_erase): Likewise. All callers updated.
11157 (remote_write_qxfer): Likewise. All callers updated.
11158 (remote_read_qxfer): Likewise. All callers updated.
11159 (remote_xfer_partial): Likewise.
11160 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11161 (rs6000_xfer_shared_libraries): Likewise.
11162 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11163 (sol_thread_xfer_partial): Likewise.
11164 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11165 (sparc_xfer_partial): Likewise.
11166 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11168 (spu_xfer_partial): Likewise.
11169 * spu-multiarch.c (spu_xfer_partial): Likewise.
11170 * tracepoint.c (tfile_xfer_partial): Likewise.
11171 * windows-nat.c (windows_xfer_memory): Likewise.
11172 (windows_xfer_shared_libraries): Likewise.
11173 (windows_xfer_partial): Likewise.
11174 * valprint.c: Replace 'target_xfer_error' with
11175 'target_xfer_status' in comments.
11177 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11179 Checked in by Joel Brobecker <brobecker@adacore.com>.
11180 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11182 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11184 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11185 function parameters.
11187 2014-02-10 Will Newton <will.newton@linaro.org>
11189 * elfread.c (elf_rel_plt_read): Look for a .got section if
11190 looking up .got.plt fails.
11191 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11192 on address passed to elf_gnu_ifunc_record_cache.
11193 (elf_gnu_ifunc_resolve_addr): Likewise.
11194 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11196 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11198 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11199 (X_RETTURN): New macro.
11200 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11202 * sparc64-tdep.c (sparc64_init_abi): Hook
11203 sparc_in_function_epilogue_p.
11205 2014-02-10 Gary Benson <gbenson@redhat.com>
11207 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11208 Rename name_matcher to symbol_matcher.
11210 2014-02-10 Gary Benson <gbenson@redhat.com>
11212 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11213 Use expand_symtabs_file_matcher_ftype and
11214 expand_symtabs_symbol_matcher_ftype.
11216 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11218 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11219 (struct ada_symbol_cache): New.
11220 (ada_free_symbol_cache): Forward declare.
11221 (struct ada_pspace_data): New.
11222 (ada_pspace_data_handle): New static global.
11223 (get_ada_pspace_data, ada_pspace_data_cleanup)
11224 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11225 (cache_space, cache): Delete, now folded inside struct
11227 (ada_get_symbol_cache): New function.
11228 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11230 (_initialize_ada_language): Remove initialization of cache_space.
11231 Move call to observer_attach_inferior_exit up, grouping it
11232 with the other observer registrations inside this function.
11233 Rename command to be more general. Add call to
11234 register_program_space_data_with_cleanup.
11236 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11238 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11239 ada_new_objfile_observer.
11240 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11241 (_initialize_tasks): Update uses of ada_new_objfile_observer
11242 and ada_tasks_normal_stop_observer.
11244 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11246 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11247 returned by the 'Length attribute to integer.
11249 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11251 * ada-lang.c (_initialize_ada_language): Initialize
11252 cache_space obstack.
11254 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11256 * ada-lang.c (HASH_SIZE): New macro.
11257 (struct cache_entry): New type.
11258 (cache_space, cache): New static globals.
11259 (ada_clear_symbol_cache, find_entry): New functions.
11260 (lookup_cached_symbol, cache_symbol): Implement.
11261 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11262 (_initialize_ada_language): Attach ada_new_objfile_observer
11263 and ada_free_objfile_observer.
11265 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11267 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11268 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11269 struct block * parameter.
11270 (ada_lookup_symbol_list_worker): Constify local variable "block".
11271 Remove cast which is no longer necessary.
11273 2014-02-10 Doug Evans <xdje42@gmail.com>
11275 Add Guile as an extension language.
11276 * NEWS: Mention Guile scripting.
11277 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11278 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11279 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11280 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11281 (CLIBS): Add GUILE_LIBS.
11282 (install-guile): New rule.
11283 (guile.o): New rule.
11284 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11285 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11286 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11287 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11288 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11289 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11290 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11291 * configure.ac: New option --with-guile.
11292 * configure: Regenerate.
11293 * config.in: Regenerate.
11294 * auto-load.c: Remove #include "python/python.h". Add #include
11295 "gdb/section-scripts.h".
11296 (source_section_scripts): Handle Guile scripts.
11297 (_initialize_auto_load): Add name of Guile objfile script to
11298 scripts-directory help text.
11299 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11300 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11301 (struct breakpoint): New member scm_bp_object.
11302 * defs.h (enum command_control_type): New value guile_control.
11303 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11305 (show_user): Update comment.
11306 (_initialize_cli_cmds): Update help text for "show user". Update help
11307 text for max-user-call-depth.
11308 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11310 (multi_line_command_p): Add guile_control.
11311 (print_command_lines): Handle guile_control.
11312 (execute_control_command, recurse_read_control_structure): Ditto.
11313 (process_next_line): Recognize "guile" commands.
11314 * disasm.c (gdb_disassemble_info): Make non-static.
11315 * disasm.h: #include "dis-asm.h".
11316 (struct gdbarch): Add forward decl.
11317 (gdb_disassemble_info): Declare.
11318 * extension.c: #include "guile/guile.h".
11319 (extension_languages): Add guile.
11320 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11321 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11322 * gdbtypes.c (get_unsigned_type_max): New function.
11323 (get_signed_type_minmax): New function.
11324 * gdbtypes.h (get_unsigned_type_max): Declare.
11325 (get_signed_type_minmax): Declare.
11326 * guile/README: New file.
11327 * guile/guile-internal.h: New file.
11328 * guile/guile.c: New file.
11329 * guile/guile.h: New file.
11330 * guile/scm-arch.c: New file.
11331 * guile/scm-auto-load.c: New file.
11332 * guile/scm-block.c: New file.
11333 * guile/scm-breakpoint.c: New file.
11334 * guile/scm-disasm.c: New file.
11335 * guile/scm-exception.c: New file.
11336 * guile/scm-frame.c: New file.
11337 * guile/scm-gsmob.c: New file.
11338 * guile/scm-iterator.c: New file.
11339 * guile/scm-lazy-string.c: New file.
11340 * guile/scm-math.c: New file.
11341 * guile/scm-objfile.c: New file.
11342 * guile/scm-ports.c: New file.
11343 * guile/scm-pretty-print.c: New file.
11344 * guile/scm-safe-call.c: New file.
11345 * guile/scm-string.c: New file.
11346 * guile/scm-symbol.c: New file.
11347 * guile/scm-symtab.c: New file.
11348 * guile/scm-type.c: New file.
11349 * guile/scm-utils.c: New file.
11350 * guile/scm-value.c: New file.
11351 * guile/lib/gdb.scm: New file.
11352 * guile/lib/gdb/boot.scm: New file.
11353 * guile/lib/gdb/experimental.scm: New file.
11354 * guile/lib/gdb/init.scm: New file.
11355 * guile/lib/gdb/iterator.scm: New file.
11356 * guile/lib/gdb/printing.scm: New file.
11357 * guile/lib/gdb/types.scm: New file.
11358 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11359 (VPATH): Add $(GUILE_SRCDIR).
11360 (GUILE_DIR): New variable.
11361 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11362 (all): Add stamp-guile dependency.
11363 (stamp-guile): New rule.
11364 (clean-guile, install-guile, uninstall-guile): New rules.
11365 (install-only): Add install-guile dependency.
11366 (uninstall): Add uninstall-guile dependency.
11367 (clean): Add clean-guile dependency.
11369 2014-02-09 Doug Evans <xdje42@gmail.com>
11371 Revert this patch (which I approved, mea culpa).
11373 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11375 * Makefile.in (all-lib): Remove.
11376 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11378 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11380 Fix Python stack corruption.
11381 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11384 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11386 * Makefile.in (all-lib): Remove.
11387 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11389 2014-02-07 Doug Evans <dje@google.com>
11391 * extension-priv.h (extension_language_script_ops): Add comment.
11392 (extension_language_ops): Add comment.
11393 (active_ext_lang_state): Fix typo in comment.
11395 2014-02-07 Pedro Alves <palves@redhat.com>
11397 PR breakpoints/16292
11398 * infrun.c (handle_signal_stop) <signal arrives while stepping
11399 over a breakpoint>: Switch back to the stepping thread.
11401 2014-02-07 Yao Qi <yao@codesourcery.com>
11403 * target.c (target_xfer_partial): Return zero if LEN is zero.
11405 2014-02-07 Yao Qi <yao@codesourcery.com>
11407 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11408 (ld_so_xfer_auxv): Likewise.
11409 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11410 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11411 * corelow.c (core_xfer_partial): Likewise.
11412 * ctf.c (ctf_xfer_partial): Likewise.
11413 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11414 (darwin_xfer_partial): Likewise.
11415 * exec.c (exec_xfer_partial): Likewise.
11416 * gnu-nat.c (gnu_xfer_partial): Likewise.
11417 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11418 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11419 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11420 * linux-nat.c (linux_xfer_siginfo): Likewise.
11421 (linux_proc_xfer_spu): Likewise.
11422 * procfs.c (procfs_xfer_partial): Likewise.
11423 * record-full.c (record_full_xfer_partial): Likewise.
11424 (record_full_core_xfer_partial): Likewise.
11425 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11426 * remote.c (remote_write_qxfer): Likewise.
11427 (remote_write_qxfer, remote_read_qxfer): Likewise.
11428 (remote_xfer_partial): Likewise.
11429 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11430 (rs6000_xfer_shared_libraries): Likewise.
11431 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11432 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11433 (spu_xfer_partial): Likewise.
11434 * target.c (memory_xfer_partial_1): Likewise.
11435 * tracepoint.c (tfile_xfer_partial): Likewise.
11436 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11437 (windows_xfer_partial): Likewise.
11439 2014-02-07 Yao Qi <yao@codesourcery.com>
11441 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11443 (core_xfer_shared_libraries_aix): Likewise.
11444 * gdbarch.c, gdbarch.h: Regenerated.
11445 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11446 ULONGEST. Change 'len_avail' type to ULONGEST.
11447 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11448 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11450 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11452 2014-02-07 Yao Qi <yao@codesourcery.com>
11454 * corefile.c (memory_error): Get 'exception' from ERR and pass
11455 'exception' to throw_error.
11457 2014-02-06 Doug Evans <xdje42@gmail.com>
11459 * configure.ac (libpython checking): Remove all but python.o from
11460 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11461 * configure: Regenerate.
11463 * Makefile.in (SFILES): Add extension.c.
11464 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11465 (COMMON_OBS): Add extension.o.
11466 * extension.h: New file.
11467 * extension-priv.h: New file.
11468 * extension.c: New file.
11470 * python/python-internal.h: #include "extension.h".
11471 (gdbpy_auto_load_enabled): Declare.
11472 (gdbpy_apply_val_pretty_printer): Declare.
11473 (gdbpy_apply_frame_filter): Declare.
11474 (gdbpy_preserve_values): Declare.
11475 (gdbpy_breakpoint_cond_says_stop): Declare.
11476 (gdbpy_breakpoint_has_cond): Declare.
11477 (void source_python_script_for_objfile): Delete.
11478 * python/python.c: #include "extension-priv.h".
11479 Delete inclusion of "observer.h".
11480 (extension_language_python): Moved here and renamed from
11481 script_language_python in py-auto-load.c.
11482 Redefined to be of type extension_language_defn.
11483 (python_extension_script_ops): New global.
11484 (python_extension_ops): New global.
11485 (struct python_env): New member previous_active.
11486 (restore_python_env): Call restore_active_ext_lang.
11487 (ensure_python_env): Call set_active_ext_lang.
11488 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11490 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11492 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11494 (gdbpy_eval_from_control_command): Renamed from
11495 eval_python_from_control_command, made static. New arg extlang.
11496 (gdbpy_source_script) Renamed from source_python_script, made static.
11498 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11499 result to int. New arg extlang.
11500 (gdbpy_source_objfile_script): Renamed from
11501 source_python_script_for_objfile, made static. New arg extlang.
11502 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11503 static. New args extlang, extlang_printers. Change result type to
11505 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11506 static. New arg extlang. Rename arg printers to extlang_printers
11507 and change type to ext_lang_type_printers *.
11508 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11509 static. Replace argument arg with extlang, extlang_printers.
11510 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11511 (!HAVE_PYTHON, source_python_script): Delete.
11512 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11513 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11514 (!HAVE_PYTHON, start_type_printers): Delete.
11515 (!HAVE_PYTHON, apply_type_printers): Delete.
11516 (!HAVE_PYTHON, free_type_printers): Delete.
11517 (_initialize_python): Delete call to observer_attach_before_prompt.
11518 (finalize_python): Set/restore active extension language.
11519 (gdbpy_finish_initialization) Renamed from
11520 finish_python_initialization, made static. New arg extlang.
11521 (gdbpy_initialized): New function.
11522 * python/python.h: #include "extension.h". Delete #include
11523 "value.h", "mi/mi-cmds.h".
11524 (extension_language_python): Declare.
11525 (GDBPY_AUTO_FILE_NAME): Delete.
11526 (enum py_bt_status): Moved to extension.h and renamed to
11527 ext_lang_bt_status.
11528 (enum frame_filter_flags): Moved to extension.h.
11529 (enum py_frame_args): Moved to extension.h and renamed to
11530 ext_lang_frame_args.
11531 (finish_python_initialization): Delete.
11532 (eval_python_from_control_command): Delete.
11533 (source_python_script): Delete.
11534 (apply_val_pretty_printer): Delete.
11535 (apply_frame_filter): Delete.
11536 (preserve_python_values): Delete.
11537 (gdbpy_script_language_defn): Delete.
11538 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11539 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11541 * auto-load.c: #include "extension.h".
11542 (GDB_AUTO_FILE_NAME): Delete.
11543 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11544 (script_language_gdb): Delete, moved to extension.c and renamed to
11545 extension_language_gdb.
11546 (source_gdb_script_for_objfile): Delete.
11547 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11548 (loaded_script): Change type of language member to
11549 struct extension_language_defn *.
11550 (init_loaded_scripts_info): Initialize
11551 unsupported_script_warning_printed.
11552 (maybe_add_script): Make static. Change type of language arg to
11553 struct extension_language_defn *.
11554 (clear_section_scripts): Reset unsupported_script_warning_printed.
11555 (auto_load_objfile_script_1): Rewrite to use extension language API.
11556 (auto_load_objfile_script): Make public. Remove support-compiled-in
11557 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11558 (source_section_scripts): Rewrite to use extension language API.
11559 (load_auto_scripts_for_objfile): Rewrite to use
11560 auto_load_scripts_for_objfile.
11561 (collect_matching_scripts_data): Change type of language member to
11562 struct extension_language_defn *.
11563 (auto_load_info_scripts): Change type of language arg to
11564 struct extension_language_defn *.
11565 (unsupported_script_warning_print): New function.
11566 (script_not_found_warning_print): Make static.
11567 (_initialize_auto_load): Rewrite construction of scripts-directory
11569 * auto-load.h (struct objfile): Add forward decl.
11570 (struct script_language): Delete.
11571 (struct auto_load_pspace_info): Add forward decl.
11572 (struct extension_language_defn): Add forward decl.
11573 (maybe_add_script): Delete.
11574 (auto_load_objfile_script): Declare.
11575 (script_not_found_warning_print): Delete.
11576 (auto_load_info_scripts): Update prototype.
11577 (auto_load_gdb_scripts_enabled): Declare.
11578 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11579 auto_load_python_scripts_enabled and made public.
11580 (script_language_python): Delete, moved to python.c.
11581 (gdbpy_script_language_defn): Delete.
11582 (info_auto_load_python_scripts): Update to use
11583 extension_language_python.
11585 * breakpoint.c (condition_command): Replace call to
11586 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11587 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11588 with call to breakpoint_ext_lang_cond_says_stop.
11589 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11590 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11591 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11592 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11594 (local_setattro): Print name of extension language with existing
11597 * valprint.c (val_print, value_print): Update to call
11598 apply_ext_lang_val_pretty_printer.
11599 * cp-valprint.c (cp_print_value): Update call to
11600 apply_ext_lang_val_pretty_printer.
11601 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11602 (gdbpy_apply_val_pretty_printer): Renamed from
11603 apply_val_pretty_printer. New arg extlang.
11604 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11606 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11607 extension language API.
11608 * cli/cli-script.c (execute_control_command): Update to call
11609 eval_ext_lang_from_control_command.
11611 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11612 enum ext_lang_bt_status values. Update call to
11613 apply_ext_lang_frame_filter.
11614 (mi_cmd_stack_list_locals): Ditto.
11615 (mi_cmd_stack_list_args): Ditto.
11616 (mi_cmd_stack_list_variables): Ditto.
11617 * mi/mi-main.c: Delete #include "python/python-internal.h".
11618 Add #include "extension.h".
11619 (mi_cmd_list_features): Replace reference to python internal variable
11620 gdb_python_initialized with call to ext_lang_initialized_p.
11622 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11623 Update to use enum ext_lang_frame_args. Update to call
11624 apply_ext_lang_frame_filter.
11625 * python/py-framefilter.c (extract_sym): Update to use enum
11626 ext_lang_bt_status.
11627 (extract_value, py_print_type, py_print_value): Ditto.
11628 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11629 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11630 (py_print_frame): Ditto.
11631 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11632 New arg extlang. Update to use enum ext_lang_bt_status.
11634 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11635 finish_python_initialization. Replace with call to
11636 finish_ext_lang_initialization.
11638 * typeprint.c (do_free_global_table): Update to call
11639 free_ext_lang_type_printers.
11640 (create_global_typedef_table): Update to call
11641 start_ext_lang_type_printers.
11642 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11643 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11644 (type_print_options): Change type of global_printers from "void *"
11645 to "struct ext_lang_type_printers *".
11647 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11648 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11649 (gdbpy_preserve_values): Renamed from preserve_python_values.
11651 (!HAVE_PYTHON, preserve_python_values): Delete.
11653 * utils.c (quit_flag): Delete, moved to extension.c.
11654 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11657 * eval.c: Delete #include "python/python.h".
11658 * main.c: Delete #include "python/python.h".
11660 * defs.h: Update comment.
11662 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11666 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11668 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11671 2014-02-05 Yao Qi <yao@codesourcery.com>
11673 * remote.c (remote_pass_signals): Remove local 'buf' and use
11675 (remote_program_signals): Likewise.
11677 2014-02-05 Yao Qi <yao@codesourcery.com>
11679 * ctf.c: Include "inferior.h" and "gdbthread.h".
11680 (CTF_PID): A new macro.
11681 (ctf_open): Call inferior_appeared and add_thread_silent.
11682 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11683 (ctf_thread_alive): New function.
11684 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11686 2014-02-05 Yao Qi <yao@codesourcery.com>
11690 2013-05-24 Yao Qi <yao@codesourcery.com>
11692 * tracepoint.c (TFILE_PID): Remove.
11693 (tfile_open): Don't add thread and inferior.
11694 (tfile_close): Don't set 'inferior_ptid'. Don't call
11695 exit_inferior_silent.
11696 (tfile_thread_alive): Remove.
11697 (init_tfile_ops): Don't set field 'to_thread_alive' of
11700 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11702 * remote.c (remote_start_remote): Call remote_check_symbols even
11703 if only symbol-file (not file) has been given.
11705 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11707 * gdbarch.sh (skip_entrypoint): New callback.
11708 * gdbarch.c, gdbarch.h: Regenerate.
11709 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11710 * infrun.c (fill_in_stop_func): Likewise.
11711 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11712 (ppc_elfv2_elf_make_msymbol_special): New function.
11713 (ppc_elfv2_skip_entrypoint): Likewise.
11714 (ppc_linux_init_abi): Install them for ELFv2.
11716 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11718 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11719 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11720 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11721 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11722 structures returned in GPRs.
11724 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11726 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11727 offset to the stack parameter list for the ELFv2 ABI.
11729 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11731 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11732 set_gdbarch_convert_from_func_ptr_addr and
11733 set_gdbarch_elf_make_msymbol_special for ELFv1.
11734 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11735 function descriptors on ELFv1.
11736 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11737 set up r12 at function entry.
11739 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11741 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11742 (struct gdbarch_tdep): New member elf_abi.
11744 * rs6000-tdep.c: Include "elf/ppc64.h".
11745 (rs6000_gdbarch_init): Detect ELF ABI version.
11747 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11749 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11750 within a register pair holding a DFP 128-bit value on little-endian.
11751 (ppc64_sysv_abi_return_value_base): Likewise.
11752 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11753 (dfp_pseudo_register_write): Likewise.
11755 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11757 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11758 offset on little-endian when passing _Decimal32.
11759 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11761 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11763 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11764 of the overlapped FP register within the VSX register on little-
11766 (efpr_pseudo_register_write): Likewise.
11768 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11770 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11771 offset on little-endian when passing small structures.
11773 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11775 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11776 (struct ppc64_sysv_argpos): New data structure.
11777 (ppc64_sysv_abi_push_float): Remove.
11778 (ppc64_sysv_abi_push_val): New function.
11779 (ppc64_sysv_abi_push_integer): Likewise.
11780 (ppc64_sysv_abi_push_freg): Likewise.
11781 (ppc64_sysv_abi_push_vreg): Likewise.
11782 (ppc64_sysv_abi_push_param): Likewise.
11783 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11784 (ppc64_sysv_abi_return_value_base): New function.
11785 (ppc64_sysv_abi_return_value): Refactor to use it.
11787 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11789 * NEWS: Document new target powerpc64le-*-linux*.
11791 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11793 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11794 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11796 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11797 register set used in ELF core dumps. Add floating-point register set.
11799 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11801 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11802 dwarf2_to_gdb[] table using symbolic constants. Adjust
11803 penultimate entry from number representing the PC register
11804 to symbolic constant representing the MDR register. Add
11805 constant for the PC register to the end of the table.
11807 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11809 * bsd-kvm.c: Include <sys/param.h>
11811 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11813 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11815 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11817 * ada-lang.h (clear_ada_sym_cache): Delete.
11819 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11821 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11823 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11825 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11826 the sigreturn register save area only if the syscall is
11829 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11831 * valops.c (value_slice): Minor reformatting.
11833 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11835 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11837 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11839 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11840 New static globals.
11841 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11842 (ada_ignore_descriptive_types_p): New static global.
11843 (find_parallel_type_by_descriptive_type): Return immediately
11844 if ada_ignore_descriptive_types_p is set.
11845 (_initialize_ada_language): Register new commands "maintenance
11846 set ada", "maintenance show ada", "maintenance set ada
11847 ignore-descriptive-types" and "maintenance show ada
11848 ignore-descriptive-types".
11849 * NEWS: Add entry for new "maint ada set/show
11850 ignore-descriptive-types" commands.
11852 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11854 * record-btrace.c (record_btrace_close): Call btrace_teardown
11857 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11859 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11862 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11864 * ada-typeprint (type_is_full_subrange_of_target_type):
11866 (print_range): Add parameter bounds_prefered_p. If not set,
11867 try printing range types using the name of their base type.
11868 (print_range_type): Add parameter bounds_prefered_p.
11869 Use it in call to print_range.
11870 (print_array_type, ada_print_type): Update calls to print_range
11871 and print_range_type.
11873 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11875 * ada-typeprint.c (print_array_type, print_choices, print_range)
11876 (print_range_bound, print_dynamic_range_bound, print_range_type):
11877 Remove declaration.
11879 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11881 * ada-typeprint.c (print_range): Add missing empty line
11882 after local declaration.
11884 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11886 * ada-valprint.c (print_optional_low_bound): Get index_type's
11887 target type for as long as it is a TYPE_CODE_RANGE.
11889 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11891 * procfs.c (procfs_make_note_section): Remove assertion and
11892 associated comment.
11894 2014-01-24 Yao Qi <yao@codesourcery.com>
11896 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11897 * corelow.c (get_core_siginfo): Likewise.
11899 2014-01-24 Yao Qi <yao@codesourcery.com>
11901 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11902 ULONGEST. Don't check 'len' is negative.
11903 (remote_write_bytes): Change type of 'len' to ULONGEST.
11905 2014-01-23 Tom Tromey <tromey@redhat.com>
11908 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11909 Handle exception from frame.block.
11910 (FrameVars.fetch_frame_locals): Likewise.
11912 2014-01-23 Tom Tromey <tromey@redhat.com>
11915 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11916 on a NULL pointer. Move "goto error" to correct place.
11918 2014-01-23 Tom Tromey <tromey@redhat.com>
11921 * python/py-framefilter.c (apply_frame_filter): Call
11922 ensure_python_env after computing gdbarch.
11924 2014-01-23 Yao Qi <yao@codesourcery.com>
11926 * target.c (raw_memory_xfer_partial): Change argument type
11927 from void * to gdb_byte *.
11928 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11930 2014-01-22 Doug Evans <dje@google.com>
11932 New gdbserver option --debug-format=timestamp.
11933 * NEWS: Mention it.
11935 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11937 * syscalls/s390x-linux.xml: New file.
11938 * syscalls/s390-linux.xml: New file.
11939 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11940 (XML_SYSCALL_FILENAME_S390X): Likewise.
11941 (op_svc): New enum value for SVC opcode.
11942 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11943 (s390_linux_get_syscall_number): New function.
11944 (s390_gdbarch_init): Register '*get_syscall_number' and the
11945 syscall xml file name.
11946 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11947 "s390-linux.xml" and "s390x-linux.xml".
11948 * NEWS: Announce new feature.
11950 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11952 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11954 2014-01-22 Pedro Alves <palves@redhat.com>
11956 * xtensa-config.c: Include defs.h.
11958 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11960 * common/common-utils.h: Add "ARI:" comment beside __func__
11963 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11965 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11966 documentation a bit.
11968 2014-01-21 Roland McGrath <mcgrathr@google.com>
11970 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11971 * configure: Regenerate.
11972 * aclocal.m4: Regenerate.
11973 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11974 New substituted variables.
11975 (install-strip): New target.
11976 (INSTALL_SCRIPT): New substituted variable.
11977 (FLAGS_TO_PASS): Add it.
11978 (install-only): Use $(INSTALL_SCRIPT) rather than
11979 $(INSTALL_PROGRAM) for gcore.
11981 2014-01-20 Tom Tromey <tromey@redhat.com>
11983 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11986 2014-01-20 Tom Tromey <tromey@redhat.com>
11988 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11989 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11990 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11991 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11992 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11993 (struct cmd_list_element) <flags>: Remove.
11994 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11995 doc_allocated>: New fields.
11996 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11998 * maint.c (maintenance_do_deprecate): Update.
11999 * top.c (execute_command): Update.
12001 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12003 * xtensa-linux-nat.c: Include asm/ptrace.h.
12005 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12007 * Makefile.in (SFILES): Add d-support.c.
12008 (COMMON_OBS): Add d-support.o.
12009 * d-lang.h (d_parse_symbol): Add comment, now defined in
12011 * d-lang.c (parse_call_convention)
12012 (parse_attributes, parse_function_types)
12013 (parse_function_args, parse_type, parse_identifier)
12014 (call_convention_p, d_parse_symbol): Move functions to ...
12015 * d-support.c: ... New file.
12017 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12019 * d-lang.h (d_parse_symbol): Add declaration.
12020 * d-lang.c (extract_identifiers)
12021 (extract_type_info): Remove functions.
12022 (parse_call_convention, parse_attributes)
12023 (parse_function_types, parse_function_args)
12024 (parse_type, parse_identifier, call_convention_p)
12025 (d_parse_symbol): New functions.
12026 (d_demangle): Use d_parse_symbol to demangle D symbols.
12028 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12030 * d-lang.h (struct builtin_d_type): New data type.
12031 (builtin_d_type): Add declaration.
12032 * d-lang.c (d_language_arch_info, build_d_types)
12033 (builtin_d_type): New functions.
12034 (enum d_primitive_types): New data type.
12035 (d_language_defn): Change c_language_arch_info to
12036 d_language_arch_info.
12037 (d_type_data): New static variable.
12038 (_initialize_d_language): Initialize d_type_data.
12040 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12042 * d-lang.h (d_main_name): Add declaration.
12043 * d-lang.c (d_main_name): New function.
12044 * symtab.c (find_main_name): Add call to d_main_name.
12046 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12048 * d-lang.c (d_language_defn): Change macro_expansion_c to
12049 macro_expansion_no.
12051 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12053 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12055 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12057 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12058 gdb_exception" declaration.
12059 * remote.c (getpkt_or_notif_sane): Likewise.
12061 2014-01-17 Doug Evans <dje@google.com>
12063 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12064 function, contents of dirnames_to_char_ptr_vec_append moved here.
12065 (delim_string_to_char_ptr_vec): New function.
12066 (dirnames_to_char_ptr_vec_append): Rewrite.
12067 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12069 2014-01-17 Doug Evans <dje@google.com>
12071 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12073 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12074 #include "common-utils.h".
12075 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12076 * common/vec.h (VEC_ASSERT_PASS): Update.
12077 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12078 (MACH_CHECK_ERROR): Update.
12080 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12082 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12084 * gdbarch.h: Regenerate.
12086 2014-01-16 Tom Tromey <tromey@redhat.com>
12088 * value.c (struct value) <regnum>: Move earlier.
12090 2014-01-16 Tom Tromey <tromey@redhat.com>
12092 * remote.c (extended_remote_create_inferior): Rename from
12093 extended_remote_create_inferior_1. Add "ops" argument. Remove
12094 old implementation.
12096 2014-01-16 Pedro Alves <palves@redhat.com>
12098 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12099 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12102 2014-01-16 Doug Evans <dje@google.com>
12104 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12106 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12108 * btrace.h (btrace_thread_flag): New.
12109 (struct btrace_thread_info) <flags>: New.
12110 * record-btrace.c (record_btrace_resume_thread)
12111 (record_btrace_find_thread_to_move, btrace_step_no_history)
12112 (btrace_step_stopped, record_btrace_start_replaying)
12113 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12114 (record_btrace_find_resume_thread): New.
12115 (record_btrace_resume, record_btrace_wait): Extend.
12116 (record_btrace_can_execute_reverse): New.
12117 (record_btrace_open): Fail in non-stop mode.
12118 (record_btrace_set_replay): Split into this, ...
12119 (record_btrace_stop_replaying): ... this, ...
12120 (record_btrace_clear_histories): ... and this.
12121 (init_record_btrace_ops): Init to_can_execute_reverse.
12122 * NEWS: Announce it.
12124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12126 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12127 (forward_target_decr_pc_after_break)
12128 (target_decr_pc_after_break): New.
12129 * target.c (forward_target_decr_pc_after_break)
12130 (target_decr_pc_after_break): New.
12131 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12132 instead of gdbarch_decr_pc_after_break.
12133 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12134 instead of gdbarch_decr_pc_after_break.
12135 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12136 instead of gdbarch_decr_pc_after_break.
12137 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12138 instead of gdbarch_decr_pc_after_break.
12139 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12140 instead of gdbarch_decr_pc_after_break.
12141 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12142 instead of gdbarch_decr_pc_after_break.
12144 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12146 * btrace.c: Include regcache.h.
12147 (btrace_add_pc): New.
12148 (btrace_enable): Call btrace_add_pc.
12149 (btrace_is_empty): New.
12150 * btrace.h (btrace_is_empty): New.
12151 * record-btrace.c (require_btrace, record_btrace_info): Call
12154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12156 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12157 Support delta reads.
12158 (linux_disable_btrace): Change return type.
12159 * common/linux-btrace.h (linux_read_btrace): Change parameters
12160 and return type to allow error reporting. Update users.
12161 (linux_disable_btrace): Change return type. Update users.
12162 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12164 (btrace_error): New.
12165 (btrace_block) <begin>: Comment on BEGIN == 0.
12166 * btrace.c (btrace_compute_ftrace): Start from the end of
12168 (btrace_stitch_trace, btrace_clear_history): New.
12169 (btrace_fetch): Read delta trace, return if replaying.
12170 (btrace_clear): Move clear history code to btrace_clear_history.
12171 (parse_xml_btrace): Throw an error if parsing failed.
12172 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12173 and return type to allow error reporting.
12174 (target_read_btrace): Change parameters and return type to allow
12176 * target.c (target_read_btrace): Update.
12177 * remote.c (remote_read_btrace): Support delta reads. Pass
12179 * NEWS: Announce it.
12181 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12183 * record.h (record_btrace_frame_unwind)
12184 (record_btrace_tailcall_frame_unwind): New declarations.
12185 * dwarf2-frame: Include record.h
12186 (dwarf2_frame_cfa): Throw an error for btrace frames.
12187 * record-btrace.c: Include hashtab.h.
12188 (btrace_get_bfun_name): New.
12189 (btrace_call_history): Call btrace_get_bfun_name.
12190 (struct btrace_frame_cache): New.
12192 (bfcache_hash, bfcache_eq, bfcache_new): New.
12193 (btrace_get_frame_function): New.
12194 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12195 (record_btrace_frame_this_id): Compute own id.
12196 (record_btrace_frame_prev_register): Provide PC, throw_error
12197 for all other registers.
12198 (record_btrace_frame_sniffer): Detect btrace frames.
12199 (record_btrace_tailcall_frame_sniffer): New.
12200 (record_btrace_frame_dealloc_cache): New.
12201 (record_btrace_frame_unwind): Add new functions.
12202 (record_btrace_tailcall_frame_unwind): New.
12203 (_initialize_record_btrace): Allocate cache.
12204 * btrace.c (btrace_clear): Call reinit_frame_cache.
12205 * NEWS: Announce it.
12207 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12209 * record-btrace.c (record_btrace_set_replay)
12210 (record_btrace_goto_begin, record_btrace_goto_end)
12211 (record_btrace_goto): New.
12212 (init_record_btrace_ops): Initialize them.
12213 * NEWS: Announce it.
12215 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12217 * record-btrace.c (record_btrace_find_new_threads)
12218 (record_btrace_thread_alive): New.
12219 (init_record_btrace_ops): Initialize to_find_new_threads and
12222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12224 * record-btrace.c (record_btrace_resume): New.
12225 (record_btrace_wait): New.
12226 (init_record_btrace_ops): Initialize to_wait and to_resume.
12228 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12230 * record-btrace.c (record_btrace_xfer_partial)
12231 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12232 (record_btrace_allow_memory_access): New.
12233 (init_record_btrace_ops): Initialize new methods.
12234 * target.c (raw_memory_xfer_partial): Bail out if target reports
12235 that this memory is not available.
12237 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12239 * target.h (target_ops) <to_insert_breakpoint>
12240 <to_remove_breakpoint>: Add target_ops parameter.
12241 (forward_target_insert_breakpoint): New.
12242 (forward_target_remove_breakpoint): New.
12243 (memory_remove_breakpoint, memory_insert_breakpoint):
12244 Add target_ops parameter.
12245 * target.c (target_insert_breakpoint): Split into this and ...
12246 (forward_target_insert_breakpoint): ... this.
12247 (target_remove_breakpoint): Split into this and ...
12248 (forward_target_remove_breakpoint): ... this.
12249 (debug_to_insert_breakpoint): Add target_ops parameter.
12250 Call forward_target_insert_breakpoint.
12251 (debug_to_remove_breakpoint): Add target_ops parameter.
12252 Call forward_target_remove_breakpoint.
12253 (update_current_target): Do not inherit or default to_insert_breakpoint
12254 and to_remove_breakpoint.
12255 * corelow.c (ignore): Add target_ops parameter.
12256 * exec.c (ignore): Add target_ops parameter.
12257 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12258 Add target_ops parameter.
12259 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12260 Add target_ops parameter.
12261 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12262 Add target_ops parameter.
12263 * record-full.c (record_full_beneath_to_insert_breakpoint)
12264 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12265 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12266 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12267 (record_full_core_remove_breakpoint): Add target_ops parameter.
12269 (record_full_beneath_to_insert_breakpoint_ops)
12270 (record_full_beneath_to_remove_breakpoint_ops)
12271 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12272 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12273 tmp_to_remove_breakpoint_ops,
12274 record_full_beneath_to_insert_breakpoint_ops, and
12275 record_full_beneath_to_remove_breakpoint_ops.
12276 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12277 (m32r_remove_breakpoint): Add target_ops parameter.
12278 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12279 Add target_ops parameter.
12280 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12281 Add target_ops parameter.
12283 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12284 Markus Metzger <markus.t.metzger@intel.com>
12286 * record-btrace.c: Include frame-unwind.h.
12287 (record_btrace_frame_unwind_stop_reason)
12288 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12289 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12291 (init_record_btrace_ops): Install it.
12293 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12295 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12298 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12300 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12303 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12305 * frame-unwind.c: Include target.h.
12306 (frame_unwind_try_unwinder): New function with code from ...
12307 (frame_unwind_find_by_frame): ... here. New variable
12308 unwinder_from_target, call also target_get_unwinder)
12309 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12310 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12311 * target.h (struct target_ops): New fields to_get_unwinder and
12312 to_get_tailcall_unwinder.
12313 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12315 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12317 * record-btrace.c (record_btrace_fetch_registers)
12318 (record_btrace_store_registers)
12319 (record_btrace_to_prepare_to_store): New.
12320 (init_record_btrace_ops): Add the above.
12322 2014-01-16 Tom Tromey <tromey@redhat.com>
12324 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12325 * target.h (struct target_ops) <to_prepare_to_store>: Add
12327 (target_prepare_to_store): Add argument.
12328 * target.c (debug_to_prepare_to_store): Add argument.
12329 (update_current_target): Update.
12330 * remote.c (remote_prepare_to_store): Add 'self' argument.
12331 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12332 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12333 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12334 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12336 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12337 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12338 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12339 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12340 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12342 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12344 * btrace.h (replay) <replay>: New.
12345 (btrace_is_replaying): New.
12346 * btrace.c (btrace_clear): Free replay iterator.
12347 (btrace_is_replaying): New.
12348 * record-btrace.c (record_btrace_is_replaying): New.
12349 (record_btrace_info): Print insn number if replaying.
12350 (record_btrace_insn_history): Start at replay position.
12351 (record_btrace_call_history): Start at replay position.
12352 (init_record_btrace_ops): Init to_record_is_replaying.
12354 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12356 * record-btrace.c (record_btrace_insn_history_range): Include
12358 (record_btrace_insn_history_from): Adjust range.
12359 (record_btrace_call_history_range): Include
12361 (record_btrace_call_history_from): Adjust range.
12362 * NEWS: Announce changes.
12364 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12366 * record.h (enum record_print_flag)
12367 <record_print_indent_calls>: New.
12368 * record.c (get_call_history_modifiers): Recognize /c modifier.
12369 (_initialize_record): Document /c modifier.
12370 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12371 Reorder fields. Optionally indent the function name. Update
12373 * NEWS: Announce changes.
12375 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12377 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12379 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12381 * btrace.c (ftrace_new_function): Start counting at one.
12382 * record-btrace.c (record_btrace_info): Adjust number of calls
12384 * NEWS: Announce it.
12386 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12388 * record-btrace.c (btrace_call_history_insn_range): Print
12389 insn range as [begin, end].
12391 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12393 * btrace.h (struct btrace_func_link): New.
12394 (enum btrace_function_flag): New.
12395 (struct btrace_inst): Rename to ...
12396 (struct btrace_insn): ...this. Update all users.
12397 (struct btrace_func) <ibegin, iend>: Remove.
12398 (struct btrace_func_link): New.
12399 (struct btrace_func): Rename to ...
12400 (struct btrace_function): ...this. Update all users.
12401 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12402 (number, level, flags>: New.
12403 (struct btrace_insn_iterator): Rename to ...
12404 (struct btrace_insn_history): ...this.
12406 (struct btrace_insn_iterator, btrace_call_iterator): New.
12407 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12408 (struct btrace_target_info) <begin, end, level>
12409 <insn_history, call_history>: New.
12410 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12411 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12412 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12413 (btrace_call_number, btrace_call_begin, btrace_call_end)
12414 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12415 (btrace_find_function_by_number, btrace_set_insn_history)
12416 (btrace_set_call_history): New.
12417 * btrace.c (btrace_init_insn_iterator)
12418 (btrace_init_func_iterator, compute_itrace): Remove.
12419 (ftrace_print_function_name, ftrace_print_filename)
12420 (ftrace_skip_file): Change
12421 parameter to const.
12422 (ftrace_init_func): Remove.
12423 (ftrace_debug): Use new btrace_function fields.
12424 (ftrace_function_switched): Also consider gaining and
12425 losing symbol information).
12426 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12427 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12428 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12430 (ftrace_new_function): Move. Remove debug print.
12431 (ftrace_update_lines, ftrace_update_insns): New.
12432 (ftrace_update_function): Check for call, ret, and jump.
12433 (compute_ftrace): Renamed to ...
12434 (btrace_compute_ftrace): ...this. Rewritten to compute call
12436 (btrace_fetch, btrace_clear): Updated.
12437 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12438 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12439 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12440 (btrace_call_number, btrace_call_begin, btrace_call_end)
12441 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12442 (btrace_find_function_by_number, btrace_set_insn_history)
12443 (btrace_set_call_history): New.
12444 * record-btrace.c (require_btrace): Use new btrace thread
12446 (record_btrace_info, btrace_insn_history)
12447 (record_btrace_insn_history, record_btrace_insn_history_range):
12448 Use new btrace thread info fields and new iterator.
12449 (btrace_func_history_src_line): Rename to ...
12450 (btrace_call_history_src_line): ...this. Use new btrace
12451 thread info fields.
12452 (btrace_func_history): Rename to ...
12453 (btrace_call_history): ...this. Use new btrace thread info
12454 fields and new iterator.
12455 (record_btrace_call_history, record_btrace_call_history_range):
12456 Use new btrace thread info fields and new iterator.
12458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12460 * frame.h (frame_id_build_unavailable_stack_special): New.
12461 * frame.c (frame_id_build_unavailable_stack_special): New.
12463 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12465 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12466 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12467 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12469 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12470 (i386_insn_is_jump, i386_jmp_p): New.
12471 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12472 insn_is_jump to gdbarch.
12473 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12474 * gdbarch.h: Regenerated.
12475 * gdbarch.c: Regenerated.
12476 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12477 (default_insn_is_jump): New.
12478 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12479 (default_insn_is_jump): New.
12481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12483 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12485 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12486 (btrace_read_type) <btrace_read_new>: Change to ...
12487 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12491 * common/linux-btrace.c (linux_read_btrace): Free trace from
12492 previous iteration.
12494 2014-01-15 Doug Evans <dje@google.com>
12496 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12499 2014-01-15 Tom Tromey <tromey@redhat.com>
12501 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12502 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12503 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12504 (set_objfile_main_name): New function.
12505 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12506 language_of_main>: New fields.
12507 (set_objfile_main_name): Declare.
12508 * symtab.c (find_main_name): Loop over objfiles to find the main
12510 (set_main_name): Now static.
12511 (get_main_info): Add comment.
12512 * symtab.h (set_main_name): Don't declare.
12514 2014-01-15 Tom Tromey <tromey@redhat.com>
12516 * symtab.c (main_progspace_key): New global.
12517 (struct main_info): New.
12518 (name_of_main, language_of_main): Remove.
12519 (get_main_info, main_info_cleanup): New function.
12520 (set_main_name, main_name, main_language): Use get_main_info.
12521 (_initialize_symtab): Initialize main_progspace_key.
12523 2014-01-15 Tom Tromey <tromey@redhat.com>
12525 * dbxread.c (process_one_symbol): Update.
12526 * dwarf2read.c (read_partial_die): Update.
12527 * symfile.c (set_initial_language): Call main_language.
12528 * symtab.c (language_of_main): Now static.
12529 (set_main_name): Add 'lang' parameter.
12530 (find_main_name): Update.
12531 (main_language): New function.
12532 (symtab_observer_executable_changed): Update.
12533 * symtab.h (set_main_name): Update.
12534 (language_of_main): Remove.
12535 (main_language): Declare.
12537 2014-01-15 Tom Tromey <tromey@redhat.com>
12539 * symfile.c (init_entry_point_info): Use new "initialized" field.
12541 * objfiles.h (struct entry_point) <initialized>: New field.
12542 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12543 (struct objfile) <ei>: ...here. Remove.
12544 * objfiles.c (entry_point_address_query): Update.
12546 2014-01-15 Tom Tromey <tromey@redhat.com>
12548 * objfiles.c (entry_point_address_query): Relocate entry point
12550 (objfile_relocate1): Do not relocate entry point address.
12551 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12552 <the_bfd_section_index>: New field.
12553 * symfile.c (init_entry_point_info): Find the entry point's
12556 2014-01-15 Tom Tromey <tromey@redhat.com>
12558 * solib-frv.c (enable_break): Use entry_point_address_query.
12560 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12562 * NEWS: Add note on improved process record-replay on
12563 arm*-linux* targets.
12565 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12567 * arm-tdep.c (enum arm_record_result): New enum.
12568 (arm_record_unsupported_insn): New function.
12569 (arm_record_coproc_data_proc): Removed.
12570 (thumb2_record_ld_st_multiple): New function.
12571 (thumb2_record_ld_st_dual_ex_tbb): New function.
12572 (thumb2_record_data_proc_sreg_mimm): New function.
12573 (thumb2_record_ps_dest_generic): New function.
12574 (thumb2_record_branch_misc_cntrl): New function.
12575 (thumb2_record_str_single_data): New function.
12576 (thumb2_record_ld_mem_hints): New function.
12577 (thumb2_record_ld_word): New function.
12578 (thumb2_record_lmul_lmla_div): New function.
12579 (thumb2_record_decode_insn_handler): New function.
12580 (decode_insn): Add thumb32 instruction handlers.
12582 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12584 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12585 (struct arm_linux_record_tdep): Declare.
12586 (arm_canonicalize_syscall): New function.
12587 (arm_all_but_pc_registers_record): New function.
12588 (arm_linux_syscall_record): New function.
12589 (arm_linux_init_abi): Add syscall recording constructs.
12590 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12591 decoding. (arm_record_coproc_data_proc): Update arm syscall
12593 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12594 <arm_syscall_record>: New field.
12595 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12598 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12600 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12601 register for push instruction recording.
12603 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12605 * arm-tdep.c (thumb_record_misc): Update to correct logical
12606 error while recording ldm, ldmia and pop instructions.
12608 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12610 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12612 2014-01-15 Pedro Alves <palves@redhat.com>
12614 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12615 (go32_resume, go32_fetch_registers, store_register)
12616 (go32_store_registers, go32_prepare_to_store)
12617 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12618 (go32_create_inferior, go32_can_run, go32_terminal_init)
12619 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12622 2014-01-15 Tom Tromey <tromey@redhat.com>
12624 * target.h (async_callback_ftype): New typedef.
12625 (struct target_ops) <to_async>: Use it.
12627 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12629 * python/py-value.c (get_field_type): Remove unnecessary curly
12630 braces for single-statement if block.
12632 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12634 * python/py-type.c (convert_field): Add missing empty line
12635 after declarations.
12637 2014-01-14 Doug Evans <dje@google.com>
12639 * symfile.h (expand_symtabs_matching): Renamed from
12640 expand_partial_symbol_names. Update prototype.
12641 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12642 * symfile.c (expand_symtabs_matching): Renamed from
12643 expand_partial_symbol_names. New args file_matcher, kind.
12644 Rename arg fun to symbol_matcher.
12645 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12646 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12647 ada_expand_partial_symbol_name.
12648 (ada_make_symbol_completion_list): Update to call
12649 expand_symtabs_matching.
12650 (ada_add_global_exceptions): Call expand_symtabs_matching.
12651 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12652 call map_symbol_filenames.
12653 * symtab.c (sources_info): Update to call map_symbol_filenames.
12654 (search_symbols): Call expand_symtabs_matching.
12655 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12656 (default_make_symbol_completion_list_break_on): Update to call
12657 expand_symtabs_matching.
12658 (make_source_files_completion_list): Update to call
12659 map_symbol_filenames.
12661 2014-01-14 Doug Evans <dje@google.com>
12663 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12664 (expand_symtabs_symbol_matcher_ftype): New typedef.
12665 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12666 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12667 * symfile.c (expand_partial_symbol_names): Update to use
12668 expand_symtabs_symbol_matcher_ftype.
12669 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12670 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12671 Arg name_matcher renamed to symbol_matcher.
12672 * psymtab.c (recursively_search_psymtabs): Update to use
12673 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12675 (expand_symtabs_matching_via_partial): Update to use
12676 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12677 Arg name_matcher renamed to symbol_matcher.
12679 2014-01-14 Doug Evans <dje@google.com>
12681 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12682 (map_partial_symbol_filenames): Ditto.
12683 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12684 (map_partial_symbol_filenames): Ditto.
12685 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12686 (map_partial_symbol_filenames): Ditto.
12687 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12688 (map_partial_symbol_filenames): Ditto.
12689 * symtab.c: Delete #include "psymtab.h".
12691 2014-01-14 Pedro Alves <palves@redhat.com>
12692 Tom Tromey <tromey@redhat.com>
12694 * infrun.c (use_displaced_stepping): Use find_record_target
12695 instead of RECORD_IS_USED.
12696 (adjust_pc_after_break): Use record_full_is_used instead of
12698 * record-btrace.c (record_btrace_open): Call record_preopen
12699 instead of checking RECORD_IS_USED.
12700 * record-full.c (record_full_shortname)
12701 (record_full_core_shortname): New globals.
12702 (record_full_is_used): New function.
12703 (find_full_open): Call record_preopen instead of checking
12705 (init_record_full_ops): Set the target's shortname to
12706 record_full_shortname.
12707 (init_record_full_core_ops): Set the target's shortname to
12708 record_full_core_shortname.
12709 * record-full.h (record_full_is_used): Declare.
12710 * record.c (find_record_target): Make extern.
12711 (record_preopen): New function.
12712 * record.h (RECORD_IS_USED): Delete macro.
12713 (find_record_target, record_preopen): Declare functions.
12715 2014-01-14 Yao Qi <yao@codesourcery.com>
12717 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12718 'len''s type to ULONGEST.
12719 (core_xfer_shared_libraries_aix): Likewise.
12720 * gdbarch.c, gdbarch.h: Regenerated.
12721 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12722 Change type of 'len' to ULONGEST.
12723 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12724 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12726 2014-01-14 Yao Qi <yao@codesourcery.com>
12728 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12729 type of 'len' to ULONGEST.
12730 (linux_xfer_osdata_processgroups): Likewise.
12731 (linux_xfer_osdata_threads): Likewise.
12732 (linux_xfer_osdata_fds): Likewise.
12733 (linux_xfer_osdata_isockets): Likewise.
12734 (linux_xfer_osdata_shm): Likewise.
12735 (linux_xfer_osdata_sem): Likewise.
12736 (linux_xfer_osdata_msg): Likewise.
12737 (linux_common_xfer_osdata): Likewise.
12738 (struct osdata_type) <getter>: Likewise.
12739 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12742 2014-01-14 Yao Qi <yao@codesourcery.com>
12744 * target.h (target_xfer_partial_ftype): Update.
12745 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12747 * aix-thread.c (aix_thread_xfer_partial): Change type of
12748 argument 'len' to ULONGEST.
12749 * auxv.c (procfs_xfer_auxv): Likewise.
12750 (ld_so_xfer_auxv): Likewise.
12751 (memory_xfer_auxv): Likewise.
12752 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12753 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12754 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12755 * corelow.c (core_xfer_partial): Likewise.
12756 * ctf.c (ctf_xfer_partial): Likewise.
12757 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12759 (darwin_read_dyld_info): Likewise.
12760 (darwin_xfer_partial): Likewise.
12761 * exec.c (section_table_xfer_memory_partial): Likewise.
12762 (exec_xfer_partial): Likewise.
12763 * exec.h (section_table_xfer_memory_partial): Update
12765 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12766 instead of plongest.
12767 (gnu_xfer_partial): Likewise.
12768 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12769 (ia64_hpux_xfer_solib_got): Likewise.
12770 (ia64_hpux_xfer_partial): Likewise.
12771 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12772 * inf-ptrace.c (inf_ptrace_xfer_partial):
12773 * inf-ttrace.c (inf_ttrace_xfer_partial):
12774 * linux-nat.c (linux_xfer_siginfo): Likewise.
12775 (linux_nat_xfer_partial): Likewise.
12776 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12777 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12778 * monitor.c (monitor_xfer_memory): Likewise.
12779 (monitor_xfer_partial): Likewise.
12780 * procfs.c (procfs_xfer_partial): Likewise.
12781 * record-full.c (record_full_xfer_partial): Likewise.
12782 (record_full_core_xfer_partial): Likewise.
12783 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12784 instead of plongest.
12785 (gdbsim_xfer_partial): Likewise.
12786 * remote.c (remote_xfer_partial): Likewise.
12787 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12788 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12790 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12791 (rs6000_xfer_shared_libraries): Likewise.
12792 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12793 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12794 (sparc_xfer_partial): Likewise.
12795 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12796 (spu_xfer_partial): Likewise.
12797 * spu-multiarch.c (spu_xfer_partial): Likewise.
12798 * target.c (target_read_live_memory): Likewise.
12799 (memory_xfer_live_readonly_partial): Likewise.
12800 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12801 (target_xfer_partial, default_xfer_partial): Likewise.
12802 (current_xfer_partial): Likewise.
12803 * tracepoint.c (tfile_xfer_partial): Likewise.
12804 * windows-nat.c (windows_xfer_memory): Likewise. Call
12805 pulongest instead of plongest.
12806 (windows_xfer_partial): Likewise.
12807 (windows_xfer_shared_libraries): Likewise.
12809 2014-01-14 Yao Qi <yao@codesourcery.com>
12811 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12812 target_xfer_partial_ftype.
12814 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12818 * valops.c (value_struct_elt_bitpos): New function
12819 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12820 object to 'None' if the field name is an empty string ("").
12821 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12822 attribute to look for a field when 'name' is 'None'.
12823 (get_field_type): New function
12825 2014-01-13 Doug Evans <dje@google.com>
12828 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12829 (try_open_dwop_file): Ditto.
12830 * gdb_bfd.c: #include "vec.h".
12831 (bfdp): New typedef.
12832 (struct gdb_bfd_data): New member included_bfds.
12833 (gdb_bfd_unref): Unref all included bfds.
12834 (gdb_bfd_record_inclusion): New function.
12835 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12837 2014-01-13 Tom Tromey <tromey@redhat.com>
12839 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12841 2014-01-13 Tom Tromey <tromey@redhat.com>
12843 * defs.h (use_windows): Remove.
12844 * gdb.c (main): Update.
12845 * main.c (captured_main, gdb_main): Update.
12846 * main.h (struct captured_main_args) <use_windows>: Remove.
12847 * top.c (use_windows): Remove.
12849 2014-01-13 Tom Tromey <tromey@redhat.com>
12851 * defs.h (deprecated_flush_hook): Remove.
12853 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12856 * linux-thread-db.c (try_thread_db_load): Add parameter
12857 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12858 (try_thread_db_load_from_pdir_1): Move it there from here.
12859 (try_thread_db_load_from_sdir): Update caller.
12860 (try_thread_db_load_from_dir): Move it there from here.
12862 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12864 * regformats/regdat.sh: Always rewrite the register file.
12866 2014-01-13 Pedro Alves <palves@redhat.com>
12868 * Makefile.in (CHECK_HEADERS): New variable.
12869 (check-headers:): New rule.
12871 2014-01-13 Tom Tromey <tromey@redhat.com>
12873 * cli/cli-setshow.c (do_set_command): Update.
12874 * defs.h (deprecated_set_hook): Remove.
12875 * top.c (deprecated_set_hook): Remove.
12877 2014-01-13 Pedro Alves <palves@redhat.com>
12879 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12880 the tracepoint if the PC is a pseudo-register.
12882 2014-01-13 Tom Tromey <tromey@redhat.com>
12884 * defs.h (XCALLOC): Remove.
12885 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12886 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12887 * dwarf2loc.c (allocate_piece_closure): Likewise.
12888 * elfread.c (elf_symfile_segments): Likewise.
12889 (elf_symfile_segments): Likewise.
12890 * gdbtypes.c (copy_type_recursive): Likewise.
12891 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12892 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12893 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12895 * mt-tdep.c (mt_gdbarch_init): Likewise.
12896 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12898 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12899 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12900 * registry.c (registry_alloc_data): Likewise.
12901 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12902 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12903 * serial.c (serial_fdopen_ops): Likewise.
12904 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12906 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12907 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12910 2014-01-13 Tom Tromey <tromey@redhat.com>
12912 * defs.h (XMALLOC): Remove.
12913 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12914 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12915 * cli-out.c (struct ui_out *): Likewise.
12916 * cli/cli-dump.c (add_dump_command): Likewise.
12917 (add_dump_command): Likewise.
12918 * complaints.c (get_complaints): Likewise.
12919 (find_complaint): Likewise.
12920 * dwarf2-frame.c (execute_cfa_program): Likewise.
12921 * dwarf2read.c (abbrev_table_read_table): Likewise.
12922 * gdbarch.sh: Likewise.
12923 * gdbarch.c: Rebuild.
12924 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12925 * interps.c (interp_new): Likewise.
12926 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12927 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12928 * mi/mi-console.c (mi_console_file_new): Likewise.
12929 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12930 * mi/mi-out.c (mi_out_new): Likewise.
12931 * mi/mi-parse.c (mi_parse): Likewise.
12932 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12933 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12934 * observer.c (xalloc_observer_list_node): Likewise.
12935 * regcache.c (regcache_xmalloc_1): Likewise.
12936 * reggroups.c (reggroup_new): Likewise.
12937 (_initialize_reggroup): Likewise.
12938 * registry.c (register_data_with_cleanup): Likewise.
12939 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12940 * ser-base.c (serial_ttystate): Likewise.
12941 * ser-mingw.c (make_pipe_state): Likewise.
12942 * ser-pipe.c (pipe_open): Likewise.
12943 * serial.c (serial_open): Likewise.
12944 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12945 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12946 (tui_alloc_win_info): Likewise.
12947 (tui_add_content_elements): Likewise.
12948 * tui/tui-file.c (tui_file_new): Likewise.
12949 * tui/tui-out.c (tui_out_new): Likewise.
12950 * ui-file.c (mem_file_new): Likewise.
12951 * ui-out.c (push_level): Likewise.
12952 (make_cleanup_ui_out_end): Likewise.
12953 (append_header_to_list): Likewise.
12954 (ui_out_new): Likewise.
12955 * user-regs.c (user_reg_add_builtin): Likewise.
12957 2014-01-13 Tom Tromey <tromey@redhat.com>
12959 * defs.h (XZALLOC): Remove.
12960 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12961 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12962 (get_ada_tasks_inferior_data): Likewise.
12963 * auto-load.c (get_auto_load_pspace_data): Likewise.
12964 * auxv.c (get_auxv_inferior_data): Likewise.
12965 * bfd-target.c (target_bfd_reopen): Likewise.
12966 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12967 (deprecated_insert_raw_breakpoint): Likewise.
12968 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12969 * corelow.c (core_open): Likewise.
12970 * darwin-nat.c (darwin_check_new_threads): Likewise.
12971 (darwin_attach_pid): Likewise.
12972 * dummy-frame.c (dummy_frame_push): Likewise.
12973 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12974 * dwarf2loc.c (allocate_piece_closure): Likewise.
12975 * elfread.c (elf_symfile_segments): Likewise.
12976 * eval.c (ptrmath_type_p): Likewise.
12977 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12978 * gdbtypes.c (alloc_type_arch): Likewise.
12979 (alloc_type_instance): Likewise.
12980 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12981 * inf-child.c (inf_child_can_use_agent): Likewise.
12982 * inflow.c (get_inflow_inferior_data): Likewise.
12983 * infrun.c (save_infcall_suspend_state): Likewise.
12984 * jit.c (jit_reader_load): Likewise.
12985 (get_jit_objfile_data): Likewise.
12986 (get_jit_program_space_data): Likewise.
12987 (jit_object_open_impl): Likewise.
12988 (jit_symtab_open_impl): Likewise.
12989 (jit_block_open_impl): Likewise.
12990 (jit_frame_sniffer): Likewise.
12991 * linux-fork.c (add_fork): Likewise.
12992 * maint.c (make_command_stats_cleanup): Likewise.
12993 * objfiles.c (get_objfile_pspace_data): Likewise.
12994 * opencl-lang.c (struct lval_closure): Likewise.
12995 * osdata.c (osdata_start_osdata): Likewise.
12996 * progspace.c (new_address_space): Likewise.
12997 (add_program_space): Likewise.
12998 * remote-sim.c (get_sim_inferior_data): Likewise.
12999 * sh-tdep.c (sh_gdbarch_init): Likewise.
13000 * skip.c (Ignore): Likewise.
13001 (skip_delete_command): Likewise.
13002 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13003 (library_list_start_library): Likewise.
13004 (solib_aix_current_sos): Likewise.
13005 * solib-darwin.c (get_darwin_info): Likewise.
13006 (darwin_current_sos): Likewise.
13007 * solib-dsbt.c (get_dsbt_info): Likewise.
13008 * solib-ia64-hpux.c (new_so_list): Likewise.
13009 (ia64_hpux_get_solib_linkage_addr): Likewise.
13010 * solib-spu.c (append_ocl_sos): Likewise.
13011 (spu_current_sos): Likewise.
13012 * solib-svr4.c (get_svr4_info): Likewise.
13013 (svr4_keep_data_in_core): Likewise.
13014 (library_list_start_library): Likewise.
13015 (svr4_default_sos): Likewise.
13016 (svr4_read_so_list): Likewise.
13017 * solib-target.c (library_list_start_library): Likewise.
13018 (solib_target_current_sos): Likewise.
13019 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13020 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13021 * symfile.c (default_symfile_segments): Likewise.
13022 * target-descriptions.c (tdesc_data_init): Likewise.
13023 (tdesc_create_reg): Likewise.
13024 (struct tdesc_type *): Likewise.
13025 (tdesc_create_vector): Likewise.
13026 (tdesc_set_struct_size): Likewise.
13027 (struct tdesc_type *): Likewise.
13028 (tdesc_free_feature): Likewise.
13029 (tdesc_create_feature): Likewise.
13030 * windows-nat.c (windows_add_thread): Likewise.
13031 (windows_make_so): Likewise.
13032 * xml-support.c (gdb_xml_body_text): Likewise.
13033 (gdb_xml_create_parser_and_cleanup): Likewise.
13034 (xml_process_xincludes): Likewise.
13035 * xml-syscall.c (allocate_syscalls_info): Likewise.
13036 (syscall_create_syscall_desc): Likewise.
13038 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13040 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13041 function, with code from i386_stap_parse_special_token.
13042 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13043 (i386_stap_parse_special_token): Move code to the two functions
13044 above; simplify it.
13046 2014-01-09 Pedro Alves <palves@redhat.com>
13047 Hui Zhu <hui@codesourcery.com>
13050 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13051 bp_err_string. Don't mark the location shlib_disabled if the
13052 error thrown wasn't a generic or memory error. Catch errors
13053 thrown while inserting breakpoints in overlayed code. Output
13054 error message of software breakpoints.
13055 * remote.c (remote_insert_breakpoint): If this breakpoint has
13056 target-side commands but this stub doesn't support Z0 packets,
13057 throw NOT_SUPPORTED_ERROR error.
13058 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13059 * target.h (target_insert_breakpoint): Extend comment.
13060 (target_insert_hw_breakpoint): Add comment.
13062 2014-01-08 Pedro Alves <palves@redhat.com>
13064 * remote.c (remote_add_thread): Add threads silently if starting
13066 (remote_notice_new_inferior): If in all-stop, and starting up,
13067 don't call notice_new_inferior.
13068 (get_current_thread): New function, factored out from ...
13069 (add_current_inferior_and_thread): ... this. Adjust.
13070 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13071 found any thread, then select the remote's current thread as GDB's
13072 current thread too.
13074 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13076 * NEWS: Create a new section for the next release branch.
13077 Rename the section of the current branch, now that it has
13080 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13082 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13083 * version.in: Bump version to 7.7.50.DATE-cvs.
13085 2014-01-08 Yao Qi <yao@codesourcery.com>
13087 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13088 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13089 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13091 2014-01-08 Yao Qi <yao@codesourcery.com>
13093 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13094 return value of bfd_get_filename to symbol_file_add_from_bfd.
13096 2014-01-08 Pierre Muller <muller@sourceware.org>
13099 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13100 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13101 to prim_record_mininal_symbol_and_info.
13102 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13103 in call to prim_record_minimal_symbol_and_info.
13104 (read_pe_exported_syms): Set index field of section_data.
13106 2014-01-07 Andrew Pinski <apinski@cavium.com>
13108 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13109 * features/aarch64.c: Regenerate.
13111 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13113 * target.c (return_null): Define.
13114 (update_current_target): Use it instead of return_zero for
13115 functions that return a pointer.
13117 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13119 * source.c (add_path): Fix check for duplicated paths in the previously
13122 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13124 * ada-lang.c: Remove duplicated include statements.
13125 * alphabsd-nat.c: Ditto.
13126 * amd64-darwin-tdep.c: Ditto.
13127 * amd64fbsd-nat.c: Ditto.
13128 * auto-load.c: Ditto.
13130 * breakpoint.c: Ditto.
13131 * dbxread.c: Ditto.
13132 * fork-child.c: Ditto.
13133 * gdb_usleep.c: Ditto.
13134 * i386-darwin-tdep.c: Ditto.
13135 * i386fbsd-nat.c: Ditto.
13137 * inferior.c: Ditto.
13138 * jv-lang.c: Ditto.
13139 * linux-nat.c: Ditto.
13140 * linux-tdep.c: Ditto.
13141 * m68kbsd-nat.c: Ditto.
13142 * m68klinux-nat.c: Ditto.
13143 * microblaze-tdep.c: Ditto.
13144 * mips-linux-tdep.c: Ditto.
13145 * mn10300-tdep.c: Ditto.
13146 * nto-tdep.c: Ditto.
13147 * opencl-lang.c: Ditto.
13149 * printcmd.c: Ditto.
13150 * regcache.c: Ditto.
13151 * remote-m32r-sdi.c: Ditto.
13153 * symfile.c: Ditto.
13155 * tilegx-linux-nat.c: Ditto.
13156 * tilegx-tdep.c: Ditto.
13157 * tracepoint.c: Ditto.
13159 * vaxbsd-nat.c: Ditto.
13160 * windows-nat.c: Ditto.
13161 * xtensa-tdep.c: Ditto.
13163 2014-01-07 Yao Qi <yao@codesourcery.com>
13165 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13167 2014-01-07 Yao Qi <yao@codesourcery.com>
13168 Joel Brobecker <brobecker@adacore.com>
13170 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13171 (pdc_write_regs): Likewise.
13172 (fetch_regs_kernel_thread): Likewise.
13173 (store_regs_kernel_thread): Likewise.
13175 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13177 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13178 tagged type objects to their actual type.
13180 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13182 * ada-valprint.c (print_field_values): Add "language" parameter.
13183 Update calls to print_field_values and print_variant_part.
13184 Pass new parameter "language" in call to val_print instead
13185 of "current_language". Replace call to ada_val_print by call
13187 (print_variant_part): Add "language" parameter.
13188 (ada_val_print_struct_union): Update call to print_field_values.
13190 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13192 * ada-valprint.c (ui_memcpy): Delete.
13193 (ada_print_floating): Update documentation. Add empty line
13194 between between function documentation and implementation.
13195 Delete variable "buffer". Use ui_file_xstrdup in place of
13196 ui_file_put. Minor adjustments following this change.
13198 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13200 * ada-valprint.c (ada_val_print_string): New function,
13201 extracted from ada_val_print_array.
13202 (ada_val_print_array): Replace extracted code by call
13203 to ada_val_print_string followed by a return. Move
13204 "else" branch to the function's top block.
13206 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13208 * ada-valprint.c (ada_val_print_array): Move implementation
13209 down. Rename parameter "offset" and "val" into "offset_aligned"
13210 and "original_value" respectively. Add parameter "offset".
13212 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13214 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13215 re-organizing the code. Change the "???" message printed
13216 when target type is a TYPE_CODE_UNDEF into
13217 "<ref to undefined type>".
13219 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13221 * ada-valprint.c (print_record): Delete, implementation inlined...
13222 (ada_val_print_struct_union): ... here. Remove call to
13223 ada_check_typedef in inlined implementation.
13225 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13227 * ada-valprint.c (ada_val_print_gnat_array): New function,
13228 extracted from ada_val_print_1;
13229 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13230 (ada_val_print_flt, ada_val_print_struct_union)
13231 (ada_val_print_ref): Likewise.
13232 (ada_val_print_1): Delete variables i and elttype.
13233 Replace extracted-out code by call to corresponding
13236 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13238 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13240 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13242 * ada-valprint.c (ada_val_print_1): Replace calls to
13243 ada_val_print_1 by calls to val_print.
13245 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13247 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13248 Update calls to self accordingly. Replace calls to c_val_print
13249 by calls to val_print.
13251 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13253 * ada-valprint.c (print_record): Delete declaration.
13254 (adjust_type_signedness, ada_val_print_1): Likewise.
13255 (ada_val_print): Move function implementation down.
13256 (print_variant_part, print_field_values, print_record):
13257 Move function implementation up.
13259 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13261 * python/py-type.c (typy_get_name): New function.
13262 (type_object_getset): Add entry for attribute "name".
13263 * NEWS: Add entry mentioning this new attribute.
13265 2014-01-07 Yao Qi <yao@codesourcery.com>
13267 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13270 2014-01-07 Yao Qi <yao@codesourcery.com>
13272 * gnu-nat.c (info_port_rights): Add qualifier const to
13275 2014-01-07 Yao Qi <yao@codesourcery.com>
13277 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13279 2014-01-07 Yao Qi <yao@codesourcery.com>
13281 * gnu-nat.c (make_inf) Update declaration.
13282 (make_inf): Make it static.
13283 (inf_set_traced): Likewise.
13284 (inf_port_to_thread, inf_task_died_status): Likewise.
13286 2014-01-07 Yao Qi <yao@codesourcery.com>
13288 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13290 2014-01-07 Yao Qi <yao@codesourcery.com>
13292 * gnu-nat.c (_initialize_gnu_nat): Declare.
13294 2014-01-07 Yao Qi <yao@codesourcery.com>
13296 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13298 (struct gdbarch_info) <byte_order>: Change type to
13300 <byte_order_for_code>: Likewise.
13301 * gdbarch.c, gdbarch.h: Regenerated.
13303 2014-01-06 Sasha Smundak <asmundak@google.com>
13305 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13307 2014-01-06 Tom Tromey <tromey@redhat.com>
13309 * doublest.c (convert_doublest_to_floatformat): Use const, not
13311 * somread.c (som_symtab_read): Likewise.
13313 2014-01-07 Hui Zhu <hui@codesourcery.com>
13315 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13316 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13317 (gdb_bfd_fopen): Ditto.
13318 (gdb_bfd_openr): Ditto.
13319 (gdb_bfd_openw): Ditto.
13320 (gdb_bfd_openr_iovec): Ditto.
13321 (gdb_bfd_fdopenr): Ditto.
13322 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13323 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13325 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13327 * symfile-mem.c (symbol_file_add_from_memory): Removed
13328 gdb_bfd_stash_filename.
13330 2014-01-03 Doug Evans <dje@google.com>
13332 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13335 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13337 Update year range in copyright notice of all files.
13339 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13341 * top.c (print_gdb_version): Set copyright year to 2014.
13343 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13345 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13347 For older changes see ChangeLog-2013.
13353 version-control: never