1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
4 'sizeof_gregset' and 'sizeof_fpregset'.
5 * sh-tdep.c (sh_regset_from_core_section): Remove.
6 (sh_iterate_over_regset_sections): New.
7 (sh_gdbarch_init): Adjust gdbarch initialization.
8 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
10 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
13 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
15 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
16 (score7_linux_iterate_over_regset_sections): New.
17 (score_gdbarch_init): Adjust gdbarch initialization.
19 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
21 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
23 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
24 method 'make_corefile_notes'.
25 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
26 (ppcfbsd_regset_from_core_section): Remove.
27 (ppcfbsd_iterate_over_regset_sections): New.
28 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
30 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
31 (ppcnbsd_iterate_over_regset_sections): New.
32 (ppcnbsd_init_abi): Adjust.
33 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
34 (ppcobsd_iterate_over_regset_sections): New.
35 (ppcobsd_init_abi): Adjust.
36 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
37 (rs6000_aix_iterate_over_regset_sections): New.
38 (rs6000_aix_init_osabi): Adjust.
40 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
42 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
43 (nios2_regset_from_core_section): Remove.
44 (nios2_iterate_over_regset_sections): New.
45 (nios2_linux_init_abi): Adjust gdbarch initialization.
47 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
49 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
50 (am33_iterate_over_regset_sections): New.
51 (am33_linux_init_osabi): Adjust gdbarch initialization.
53 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
55 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
56 (mips_linux_iterate_over_regset_sections): New.
57 (mips_linux_init_abi): Adjust gdbarch initialization.
58 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
59 (mips64obsd_iterate_over_regset_sections): New.
60 (mips64obsd_init_abi): Adjust.
61 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
62 (mipsnbsd_iterate_over_regset_sections): New.
63 (mipsnbsd_init_abi): Adjust.
65 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
67 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
68 (m88k_iterate_over_regset_sections): New.
69 (m88k_gdbarch_init): Adjust gdbarch initialization.
71 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
73 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
74 (ia64_linux_iterate_over_regset_sections): New.
75 (ia64_linux_init_abi): Adjust gdbarch initialization.
77 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
79 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
80 (m68kbsd_iterate_over_regset_sections): New.
81 (m68kbsd_init_abi): Adjust gdbarch initialization.
82 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
83 (m68k_linux_iterate_over_regset_sections): New.
84 (m68k_linux_init_abi): Adjust gdbarch initialization.
86 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
88 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
89 (m32r_linux_regset_from_core_section): Remove.
90 (m32r_linux_iterate_over_regset_sections): New.
91 (m32r_linux_init_abi): Adjust gdbarch initialization.
93 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
95 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
96 (amd64obsd_iterate_over_regset_sections): New.
97 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
98 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
100 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
101 regset_from_core_section initialization.
102 * i386-tdep.c (i386_regset_from_core_section): Remove.
103 (i386_iterate_over_regset_sections): New.
104 (i386_gdbarch_init): Adjust gdbarch initialization.
105 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
106 (i386_iterate_over_regset_sections): New prototype.
107 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
109 (i386obsd_aout_iterate_over_regset_sections): New.
110 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
111 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
113 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
114 (amd64fbsd_init_abi): Call fbsd_init_abi.
115 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
116 (i386fbsd4_init_abi): Call fbsd_init_abi.
117 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
118 target method 'make_corefile_notes'.
119 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
121 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
123 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
124 (hppa_hpux_iterate_over_regset_sections): New.
125 (hppa_hpux_init_abi): Adjust gdbarch initialization.
126 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
127 (hppa_linux_iterate_over_regset_sections): New.
128 (hppa_linux_init_abi): Adjust.
129 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
130 (hppanbsd_iterate_over_regset_sections): New.
131 (hppanbsd_init_abi): Adjust.
132 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
133 (hppaobsd_iterate_over_regset_sections): New.
134 (hppaobsd_init_abi): Adjust.
136 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
138 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
139 (frv_linux_iterate_over_regset_sections): New.
140 (frv_linux_init_abi): Adjust gdbarch initialization.
142 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
144 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
145 (armbsd_iterate_over_regset_sections): New prototype.
146 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
147 (armbsd_iterate_over_regset_sections): New.
148 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
151 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
153 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
154 (alpha_linux_iterate_over_regset_sections): New.
155 (alpha_linux_init_abi): Adjust gdbarch initialization.
156 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
158 (alphanbsd_iterate_over_regset_sections): New prototype.
160 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
162 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
164 (aarch64_linux_iterate_over_regset_sections): New.
165 (aarch64_linux_init_abi): Adjust gdbarch initialization.
167 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
169 * fbsd-tdep.c: New file.
170 * fbsd-tdep.h: New file.
171 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
172 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
173 (ALLDEPFILES): Add fbsd-tdep.c.
175 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
177 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
179 * gdbarch.h: Regenerate.
180 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
182 (get_core_register_section): Add parameter 'regset' and use it, if
183 set. Add parameter 'min_size' and verify the bfd section size
185 (get_core_registers_cb): Add parameter 'regset' and pass it to
186 get_core_register section. For the "standard" register sections
187 ".reg" and ".reg2", set an appropriate default for human_name.
188 (get_core_registers): Don't abort when the gdbarch has an iterator
189 but no regset_from_core_section. Add NULL/0 for parameters
190 'regset'/'min_size' in calls to get_core_register_section.
191 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
192 'regset' and use it instead of calling the
193 regset_from_core_section gdbarch method.
194 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
195 * i386-tdep.c (i386_supply_xstateregset)
196 (i386_collect_xstateregset, i386_xstateregset): Moved to
198 (i386_regset_from_core_section): Drop handling for .reg-xfp and
200 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
201 core file support only if the regset iterator hasn't been set.
202 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
203 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
204 Moved from i386-tdep.c and renamed to *_linux*.
205 (i386_linux_iterate_over_regset_sections): Add regset parameter to
206 each callback invocation. Allow any .reg-xstate size when reading
208 * amd64-tdep.c (amd64_supply_xstateregset)
209 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
211 (amd64_regset_from_core_section): Remove.
212 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
213 install an amd64-specific regset_from_core_section gdbarch method.
214 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
215 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
216 Moved from amd64-tdep.c and renamed to *_linux*.
217 (amd64_linux_iterate_over_regset_sections): Add regset parameter
218 to each callback invocation. Allow any .reg-xstate size when
219 reading from a core file.
220 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
221 (arm_linux_iterate_over_regset_sections): Add regset parameter to
222 each callback invocation.
223 (arm_linux_init_abi): No longer set the regset_from_core_section
225 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
226 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
227 each callback invocation.
228 (ppc_linux_init_abi): No longer set the regset_from_core_section
230 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
231 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
232 (s390_regset_from_core_section): Remove.
233 (s390_iterate_over_regset_sections): Add regset parameter to each
235 (s390_gdbarch_init): No longer set the regset_from_core_section
236 gdbarch method. Drop initialization of deleted tdep fields.
238 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
240 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
241 (amd64_linux_iterate_over_regset_sections): New.
242 (amd64_linux_init_abi_common): Don't install the regset section
243 list, but the new iterator in gdbarch.
244 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
245 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
246 (arm_linux_iterate_over_regset_sections): ...here. New function.
247 (arm_linux_init_abi): Set iterator instead of section list.
248 * corelow.c (get_core_registers_cb): New function, logic moved
250 (get_core_registers): ...loop body here. Use new iterator method
251 instead of walking through the regset section list.
252 * gdbarch.sh: Remove 'core_regset_sections'. New method
253 'iterate_over_regset_sections'. New typedef
254 'iterate_over_regset_sections_cb'.
255 * gdbarch.c: Regenerate.
256 * gdbarch.h: Likewise.
257 * i386-linux-tdep.c (i386_linux_regset_sections)
258 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
260 (i386_linux_iterate_over_regset_sections): New.
261 (i386_linux_init_abi): Don't choose a regset section list, but
262 install new iterator in gdbarch.
263 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
264 (linux_collect_regset_section_cb): New function, logic moved
266 (linux_collect_thread_registers): ...loop body here. Use iterator
267 method instead of walking through list.
268 (linux_make_corefile_notes_1): Check for presence of iterator
269 method instead of regset section list.
270 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
271 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
272 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
273 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
274 (ppc_linux_iterate_over_regset_sections): ...here. New function.
275 (ppc_linux_init_abi): Don't choose from above regset section
276 lists, but install new iterator in gdbarch.
277 * regset.h (struct core_regset_section): Remove.
278 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
279 have_linux_v1, have_linux_v2, and have_tdb.
280 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
281 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
282 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
283 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
284 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
285 (s390_iterate_over_regset_sections): ...here. New function. Use
287 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
288 regset section lists, but install new iterator.
290 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
292 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
294 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
296 * progspace.c (print_program_space): Don't prune program spaces
297 before printing them.
299 2014-09-25 Pedro Alves <palves@redhat.com>
301 * infrun.c (user_visible_resume_ptid): Don't check
302 singlestep_breakpoints_inserted_p.
304 2014-09-25 Pedro Alves <palves@redhat.com>
306 * breakpoint.c (should_be_inserted): Add debug output.
308 2014-09-25 Pedro Alves <palves@redhat.com>
310 * infrun.c (stepping_past_instruction_at)
311 (clear_exit_convenience_vars): Point at infrun.h instead of
313 (handle_signal_stop): Fix typo.
315 2014-09-24 Yao Qi <yao@codesourcery.com>
317 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
320 2014-09-22 Gary Benson <gbenson@redhat.com>
322 * target.c (target_stop): Updated comment.
324 2014-09-22 Gary Benson <gbenson@redhat.com>
326 * target/target.h (target_stop_ptid): Renamed as...
327 (target_stop_and_wait): New function. Updated comment.
329 (target_continue_ptid): Renamed as...
330 (target_continue_no_signal): New function. Updated comment.
333 2014-09-22 Pedro Alves <palves@redhat.com>
335 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
337 * breakpoint.c (enum ugll_insert_mode): New enum.
338 (always_inserted_mode): Now a plain boolean.
339 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
340 (breakpoints_always_inserted_mode): Delete.
341 (breakpoints_should_be_inserted_now): New function.
342 (insert_breakpoints): Pass UGLL_INSERT to
343 update_global_location_list instead of calling
344 insert_breakpoint_locations manually.
345 (create_solib_event_breakpoint_1): New, factored out from ...
346 (create_solib_event_breakpoint): ... this.
347 (create_and_insert_solib_event_breakpoint): Use
348 create_solib_event_breakpoint_1 instead of calling
349 insert_breakpoint_locations manually.
350 (update_global_location_list): Change parameter type from boolean
351 to enum ugll_insert_mode. All callers adjusted. Adjust to use
352 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
353 (update_global_location_list_nothrow): Change parameter type from
354 boolean to enum ugll_insert_mode.
355 (_initialize_breakpoint): "breakpoint always-inserted" option is
356 now a boolean command. Update help text.
357 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
358 (breakpoints_should_be_inserted_now): New declaration.
359 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
360 Remove breakpoints_always_inserted_mode check.
361 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
362 * remote.c (remote_start_remote): Likewise.
364 2014-09-22 Pedro Alves <palves@redhat.com>
366 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
367 (insert_breakpoints): Don't call insert_breakpoint_locations here.
368 Instead, pass UGLL_INSERT to update_global_location_list.
369 (update_global_location_list): Change parameter type from boolean
370 to enum ugll_insert_mode. All callers adjusted. Adjust to use
371 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
372 (create_solib_event_breakpoint_1): New, factored out from ...
373 (create_solib_event_breakpoint): ... this.
374 (create_and_insert_solib_event_breakpoint): Use
375 create_solib_event_breakpoint_1 instead of calling
376 insert_breakpoint_locations manually.
377 (update_global_location_list): Handle UGLL_INSERT.
379 2014-09-22 Pedro Alves <palves@redhat.com>
381 * breakpoint.c (enum ugll_insert_mode): New enum.
382 (update_global_location_list)
383 (update_global_location_list_nothrow): Change parameter type from
384 boolean to enum ugll_insert_mode. All callers adjusted.
386 2014-09-19 Joel Brobecker <brobecker@adacore.com>
388 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
389 SystemTap support in GDB.
391 2014-09-19 Don Breazeal <donb@codesourcery.com>
393 * linux-nat.c (linux_handle_extended_wait): Call
394 linux_ptrace_get_extended_event.
395 (wait_lwp): Call linux_is_extended_waitstatus.
396 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
397 and linux_is_extended_waitstatus.
398 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
399 linux_ptrace_get_extended_event.
400 (linux_ptrace_get_extended_event): New function.
401 (linux_is_extended_waitstatus): New function.
402 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
403 (linux_is_extended_waitstatus): New declarations.
405 2014-09-19 Yao Qi <yao@codesourcery.com>
407 * dwarf2read.c (dwarf_decode_lines): Update declaration.
408 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
409 comments. Callers update.
410 (dwarf_decode_lines): Likewise.
411 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
412 comments. Skip the line table if 'lowpc' is greater than
413 'address'. Don't check
414 dwarf2_per_objfile->has_section_at_zero.
416 2014-09-18 Doug Evans <dje@google.com>
418 * NEWS: Mention new "producer" attribute of gdb.Symtab.
419 * python/py-symtab.c (stpy_get_producer): New function.
420 (symtab_object_getset): Add "producer" attribute.
422 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
425 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
426 (do_captured_read_memory_integer): Remove.
427 (safe_read_memory_integer): Use target_read_memory directly instead
428 of catching errors in do_captured_read_memory_integer.
430 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
432 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
435 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
437 * objc-lang.c (find_implementation_from_class): Remove dead code.
439 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
442 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
443 "fprintf_unfiltered (gdb_stdlog...)".
445 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
448 * breakpoint.h (struct watchpoint): New fields val_bitpos and
450 * breakpoint.c (watch_command_1): Use these fields to retain
451 bitfield information.
452 (extract_bitfield_from_watchpoint_value): New function.
453 (watchpoint_check): Use it.
454 (update_watchpoint): Use it. Optimize the address and length of a
455 HW watchpoint pointing to a bitfield.
456 * value.h (unpack_value_bitfield): New prototype.
457 * value.c (unpack_value_bitfield): Make extern.
459 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
461 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
463 * gnu-nat.c (inf_threads): New function.
464 * gnu-nat.h (inf_threads_ftype): New typedef.
465 (inf_threads): New declaration.
466 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
467 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
468 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
469 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
470 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
471 (i386_gnu_dr_get_control): New functions.
472 (reg_addr): New structure.
473 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
474 i386 debugging register hooks.
475 * NEWS: Mention this.
477 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
479 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
480 vector data transfer instructions.
481 (arm_record_coproc_data_proc): Updated.
483 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
485 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
486 arm_record_exreg_ld_st_insn.
487 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
490 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
492 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
493 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
494 processing instructions.
496 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
498 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
499 for advance SIMD struct ld/st insn.
500 (thumb2_record_decode_insn_handler): Replace stub handler with
501 thumb2_record_asimd_struct_ld_st.
503 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
505 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
506 for asimd, vfp and coprocessor insns.
507 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
508 and coprocessor insns.
509 (thumb2_record_coproc_insn): New function.
510 (thumb2_record_decode_insn_handler): Update coprocessor insns record
512 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
515 2014-09-13 Doug Evans <xdje42@gmail.com>
517 * NEWS: Mention new "queue-signal" command.
518 * infcmd.c (queue_signal_command): New function.
519 (_initialize_infcmd): Add new queue-signal command.
521 2014-09-13 Doug Evans <xdje42@gmail.com>
523 * linux-nat.c (wait_lwp): Add debugging printf.
524 (linux_nat_wait_1): Ditto.
526 2014-09-12 Pedro Alves <palves@redhat.com>
528 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
529 (create_and_insert_solib_event_breakpoint): New functions.
530 * breakpoint.h (create_and_insert_solib_event_breakpoint)
531 (remove_solib_event_breakpoints_at_next_stop): New declarations.
532 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
533 (remove_dbx_link_breakpoint): Delete function.
534 (insert_dbx_link_bpt_in_file): Use
535 create_and_insert_solib_event_breakpoint instead of
536 deprecated_insert_raw_breakpoint.
537 (procfs_wait): Don't check whether we hit __dbx_link here.
538 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
540 * solib-irix.c (base_breakpoint): Delete global.
541 (disable_break): Delete function.
542 (enable_break): Use create_solib_event_breakpoint
543 instead of deprecated_insert_raw_breakpoint.
544 (irix_solib_handle_event): New function.
545 (irix_solib_create_inferior_hook): Don't run the target or disable
546 the mapping-complete breakpoint here.
547 (_initialize_irix_solib): Install irix_solib_handle_event as
548 so_ops->handle_event hook.
550 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
551 Ulrich Weigand <uweigand@de.ibm.com>
554 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
555 instead of read_memory_unsigned_integer.
557 2014-09-12 Gary Benson <gbenson@redhat.com>
559 * nat/linux-waitpid.c: Include common-defs.h.
560 [GDBSERVER]: Add FIXME comment.
561 [!GDBSERVER]: Don't include defs.h or signal.h.
562 (linux_debug) [!GDBSERVER]: Remove empty block.
564 2014-09-12 Gary Benson <gbenson@redhat.com>
566 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
567 Don't include defs.h or server.h.
569 2014-09-12 Gary Benson <gbenson@redhat.com>
571 * nat/linux-btrace.c: Include common-defs.h.
572 Don't include defs.h, server.h or gdbthread.h.
573 * nat/linux-btrace.h (struct target_ops): New forward declaration.
575 2014-09-12 Gary Benson <gbenson@redhat.com>
577 * common/agent.c: Include common-defs.h.
578 Don't include defs.h or server.h.
579 * common/buffer.c: Likewise.
580 * common/common-debug.c: Likewise.
581 * common/common-utils.c: Likewise.
582 * common/errors.c: Likewise.
583 * common/filestuff.c: Likewise.
584 * common/format.c: Likewise.
585 * common/gdb_vecs.c: Likewise.
586 * common/print-utils.c: Likewise.
587 * common/ptid.c: Likewise.
588 * common/rsp-low.c: Likewise.
589 * common/signals.c: Likewise.
590 * common/vec.c: Likewise.
591 * common/xml-utils.c: Likewise.
592 * nat/linux-osdata.c: Likewise.
593 * nat/linux-procfs.c: Likewise.
594 * nat/linux-ptrace.c: Likewise.
595 * nat/mips-linux-watch.c: Likewise.
596 * target/waitstatus.c: Likewise.
598 2014-09-12 Tom Tromey <tromey@redhat.com>
599 Gary Benson <gbenson@redhat.com>
601 * common/common-regcache.h: New file.
602 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
603 * regcache.h: Include common-regcache.h.
604 (regcache_read_pc): Don't declare.
605 * regcache.c (get_thread_regcache_for_ptid): New function.
606 * nat/linux-btrace.c: Don't include regcache.h.
607 Include common-regcache.h.
608 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
610 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
612 * regcache.h (struct regset): Declare.
614 2014-09-11 Pedro Alves <palves@redhat.com>
617 * main.c: Include "infrun.h".
618 (catch_command_errors, catch_command_errors_const): Wait for the
619 foreground command to complete.
620 * top.c (maybe_wait_sync_command_done): New function, factored out
622 (maybe_wait_sync_command_done): ... here.
623 * top.h (maybe_wait_sync_command_done): New declaration.
625 2014-09-11 Tom Tromey <tromey@redhat.com>
626 Gary Benson <gbenson@redhat.com>
628 * common/symbol.h: New file.
629 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
630 * minsyms.c (find_minimal_symbol_address): New function.
631 * common/agent.c: Include common/symbol.h.
632 [!GDBSERVER]: Don't include objfiles.h.
633 (agent_look_up_symbols): Use find_minimal_symbol_address.
635 2014-09-11 Gary Benson <gbenson@redhat.com>
637 * target/target.h (target_stop_ptid, target_continue_ptid):
639 * target.c (target_stop_ptid, target_continue_ptid): New
641 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
642 (agent_run_command): Always use target_stop_ptid and
643 target_continue_ptid.
645 2014-09-11 Tom Tromey <tromey@redhat.com>
646 Gary Benson <gbenson@redhat.com>
648 * target/target.h: New file.
649 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
650 * target.h: Include target/target.h.
651 (target_read_memory, target_write_memory): Don't declare.
652 * target.c (target_read_uint32): New function.
653 * common/agent.c: Include target/target.h.
654 [!GDBSERVER]: Don't include target.h.
655 (helper_thread_id): Type changed to uint32_t.
656 (agent_get_helper_thread_id): Use target_read_uint32.
657 (agent_run_command): Always use target_read_memory and
659 (agent_capability): Type changed to uint32_t.
660 (agent_capability_check): Use target_read_uint32.
662 2014-09-11 Gary Benson <gbenson@redhat.com>
664 * common/common-debug.h (show_debug_regs): Declare.
665 * common/common-debug.c (show_debug_regs): Define.
666 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
667 all uses with show_debug_regs. Replace all uses that considered
668 debug_hw_points as a multi-value integer with straight boolean
670 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
671 with show_debug_regs.
672 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
673 all uses with show_debug_regs.
674 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
675 uses with show_debug_regs.
677 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
679 * findvar.c (address_from_register): Handle targets requiring
680 a special conversion routine even for plain pointer types.
682 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
684 * rs6000-nat.c (exec_one_dummy_insn): Remove.
685 (store_register): Do not call exec_one_dummy_insn.
687 2014-09-10 Joel Brobecker <brobecker@adacore.com>
689 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
690 dereference it first. Use value_enclosing_type instead of
692 (ada_array_length): Likewise.
694 2014-09-10 Joel Brobecker <brobecker@adacore.com>
696 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
697 Adjust function implementation and documentation accordingly.
698 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
699 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
700 Update call to ada_value_ptr_subscript.
702 2014-09-10 Joel Brobecker <brobecker@adacore.com>
704 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
705 instead of VAL's type.
707 2014-09-10 Joel Brobecker <brobecker@adacore.com>
709 * amd64-linux-nat.c: Add <sys/uio.h> #include.
711 2014-09-09 Doug Evans <xdje42@gmail.com>
714 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
715 last parameter to pkg-config, not first.
716 * configure.ac: Pass --with-guile provided pkg-config path to
717 GDB_GUILE_PROGRAM_NAMES.
718 * configure: Regenerate.
720 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
722 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
725 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
727 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
728 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
729 the list of sections determining GDB_OSABI_IRIX.
731 2014-09-09 James Hogan <james.hogan@imgtec.com>
733 * MAINTAINERS (Write After Approval): Add "James Hogan".
735 2014-09-09 James Hogan <james.hogan@imgtec.com>
737 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
739 2014-09-09 Joel Brobecker <brobecker@adacore.com>
741 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
743 2014-09-08 Doug Evans <xdje42@gmail.com>
746 * guile.c: #include <signal.h>.
747 (_initialize_guile): Block SIGCHLD while initializing Guile.
749 Replaces the following, which is reverted.
751 2014-07-26 Doug Evans <xdje42@gmail.com>
754 * configure.ac: Add check for header gc/gc.h.
755 Add check for function setenv.
756 * configure: Regenerate.
757 * config.in: Regenerate.
758 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
760 2014-09-08 Doug Evans <xdje42@gmail.com>
762 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
763 with named constant. Fix style of pointer comparison.
764 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
766 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
769 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
770 decide whether we display the command on "show user".
771 * cli/cli-script.c (show_user_1): Only verify cmdlines after
772 printing command name.
773 * cli/cli-decode.h (cli_user_command_p): Declare new function.
774 * cli/cli-decode.c (cli_user_command_p): Create helper function
775 to verify whether cmd_list_element is a user-defined command.
777 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
780 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
781 Fix goto out of TRY_CATCH.
783 2014-09-06 Doug Evans <xdje42@gmail.com>
784 Tom Tromey <tromey@redhat.com>
787 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
788 $_any_caller_matches.
789 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
790 * python/lib/gdb/function/caller_is.py: New file.
792 2014-09-06 Doug Evans <xdje42@gmail.com>
794 * infcmd.c (program_info): Fix typo.
796 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
799 * stap-probe.c (stap_parse_single_operand): Delete unused variable
800 'number'. New variable 'has_digit'. Rewrite code to deal with
801 subexpressions on SDT probes.
803 2014-09-04 Pedro Alves <palves@redhat.com>
805 * c-exp.y (parse_number): Skip handling base-switching prefixes if
806 the input is only one character long.
808 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
811 * f-valprint.c (f_val_print): Specify the correct print option to
812 use when printing integer values.
814 2014-09-04 Gary Benson <gbenson@redhat.com>
816 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
817 Remove code to cope with LWPs wrapped as PIDs.
818 Add assertions to ensure no wrapped LWPs are passed.
820 2014-09-04 Pedro Alves <palves@redhat.com>
822 * value.c (value_ranges_copy_adjusted): New function, factored out
824 (value_contents_copy_raw): ... here.
825 (unpack_value_bits_as_long_1): Rename back to ...
826 (unpack_bits_as_long): ... this. Remove 'original_value' and
827 'result' parameters. Change return type to LONGEST.
828 (unpack_value_bits_as_long): Delete.
829 (unpack_value_field_as_long_1): Delete.
830 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
831 (unpack_value_bitfield): New function.
832 (value_field_bitfield): Reimplement using unpack_value_bitfield.
833 (value_fetch_lazy): Use unpack_value_bitfield.
834 * value.h (unpack_value_bits_as_long): Delete declaration.
836 2014-09-03 Sasha Smundak <asmundak@google.com>
838 * python/py-frame.c (frapy_read_register): New function.
840 2014-09-03 James Hogan <james.hogan@imgtec.com>
842 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
843 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
845 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
848 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
850 (add_cmd): Set "completer_handle_brkchars" to NULL.
851 * cli/cli-decode.h (struct cmd_list_element)
852 <completer_handle_brkchars>: New field.
853 * command.h (completer_ftype_void): New typedef.
854 (set_cmd_completer_handle_brkchars): New prototype.
855 * completer.c (set_gdb_completion_word_break_characters): New
857 (complete_line_internal): Call "completer_handle_brkchars"
858 callback from command.
859 * completer.h: Include "command.h".
860 (set_gdb_completion_word_break_characters): New prototype.
861 * python/py-cmd.c (cmdpy_completer_helper): New function.
862 (cmdpy_completer_handle_brkchars): New function.
863 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
864 (cmdpy_init): Set completer_handle_brkchars to
865 cmdpy_completer_handle_brkchars.
867 2014-09-03 Gary Benson <gbenson@redhat.com>
869 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
870 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
871 Loop conditions changed to equivalent form.
872 (struct x86_debug_reg_state): Updated dr_ref_count comment.
873 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
874 ALL_DEBUG_ADDRESS_REGISTERS.
876 2014-09-03 Joel Brobecker <brobecker@adacore.com>
878 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
881 2014-09-02 Doug Evans <dje@google.com>
883 * typeprint.c (find_global_typedef): Fix comment.
885 2014-09-02 Gary Benson <gbenson@redhat.com>
887 * i386-nat.h: Renamed as...
888 * x86-nat.h: New file. All type, function and variable name
889 prefixes changed from "i386_" to "x86_". All references updated.
890 * i386-nat.c: Renamed as...
891 * x86-nat.c: New file. All type, function and variable name
892 prefixes changed from "i386_" to "x86_". All references updated.
893 * common/i386-xstate.h: Renamed as...
894 * common/x86-xstate.h: New file. All type, function and variable
895 name prefixes changed from "i386_" to "x86_". All references
897 * nat/i386-cpuid.h: Renamed as...
898 * nat/x86-cpuid.h: New file. All type, function and variable name
899 prefixes changed from "i386_" to "x86_". All references updated.
900 * nat/i386-gcc-cpuid.h: Renamed as...
901 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
902 name prefixes changed from "i386_" to "x86_". All references
904 * nat/i386-dregs.h: Renamed as...
905 * nat/x86-dregs.h: New file. All type, function and variable name
906 prefixes changed from "i386_" to "x86_". All references updated.
907 * nat/i386-dregs.c: Renamed as...
908 * nat/x86-dregs.c: New file. All type, function and variable name
909 prefixes changed from "i386_" to "x86_". All references updated.
911 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
913 * varobj.c (_initialize_varobj): Move to the end of file.
915 2014-08-29 Gary Benson <gbenson@redhat.com>
917 * common/common-exceptions.h: New file.
918 * common/common-exceptions.c: Likewise.
919 * Makefile.in (SFILES): Add common/common-exceptions.c.
920 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
921 (COMMON_OBS): Add common-exceptions.o.
922 (common-exceptions.o): New rule.
923 * exceptions.h (common-exceptions.h): Include.
924 (gdb_setjmp.h): Do not include.
925 (return_reason): Moved to common-exceptions.h.
926 (enum return_reason): Likewise.
927 (RETURN_MASK): Likewise.
928 (typedef return_mask): Likewise.
929 (enum errors): Likewise.
930 (struct gdb_exception): Likewise.
931 (exceptions_state_mc_init): Likewise.
932 (exceptions_state_mc_action_iter): Likewise.
933 (exceptions_state_mc_action_iter_1): Likewise.
934 (TRY_CATCH): Likewise.
935 (throw_exception): Likewise.
936 (throw_verror): Likewise.
937 (throw_vquit): Likewise.
938 (throw_error): Likewise.
939 (throw_quit): Likewise.
940 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
941 (enum catcher_action): Likewise.
942 (struct catcher): Likewise.
943 (current_catcher): Likewise.
944 (catcher_list_size): Likewise.
945 (exceptions_state_mc_init): Likewise.
946 (catcher_pop): Likewise.
947 (exceptions_state_mc): Likewise.
948 (exceptions_state_mc_action_iter): Likewise.
949 (exceptions_state_mc_action_iter_1): Likewise.
950 (throw_exception): Likewise.
951 (exception_messages): Likewise.
952 (exception_messages_size): Likewise.
953 (throw_it): Likewise.
954 (throw_verror): Likewise.
955 (throw_vquit): Likewise.
956 (throw_error): Likewise.
957 (throw_quit): Likewise.
958 (prepare_to_throw_exception): New function.
960 2014-08-29 Gary Benson <gbenson@redhat.com>
962 * common/gdb_setjmp.h: New file.
963 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
964 * configure.ac: Move sigsetjmp check...
965 * common/common.m4: ...here.
966 * configure: Regenerate.
967 * cp-support.c (SIGJMP_BUF): Delete.
968 (SIGSETJMP): Likewise.
969 (SIGLONGJMP): Likewise.
970 * exceptions.h (gdb_setjmp.h): Include.
971 (setjmp.h): Do not include.
972 (EXCEPTIONS_SIGJMP_BUF): Delete.
973 (EXCEPTIONS_SIGSETJMP): Likewise.
974 (EXCEPTIONS_SIGLONGJMP): Likewise.
975 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
977 * exceptions.c: Likewise.
979 2014-08-29 Gary Benson <gbenson@redhat.com>
981 * cleanups.h: Moved to...
982 * common/cleanups.h: New file.
983 * cleanups.c: Moved to...
984 * common/cleanups.c: New file. Include common-defs.h and
985 cleanups.h. Do not include defs.h.
986 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
987 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
988 (cleanups.o): New rule.
990 2014-08-29 Gary Benson <gbenson@redhat.com>
992 * common/errors.h (internal_warning): New declaration.
993 (internal_vwarning): Likewise.
994 * common/errors.c (internal_warning): New function.
995 * utils.h (internal_warning): Don't declare.
996 (internal_vwarning): Likewise.
997 * utils.c (internal_warning): Removed.
999 2014-08-29 Gary Benson <gbenson@redhat.com>
1001 * main.c (captured_main): Use warning during startup.
1002 Prefix startup warning messages with command name.
1004 2014-08-29 Gary Benson <gbenson@redhat.com>
1006 * main.c (captured_main): Handle usage errors with error.
1008 2014-08-29 Gary Benson <gbenson@redhat.com>
1010 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1011 exit pair with a call to error. Wrap the message with _().
1013 2014-08-29 Gary Benson <gbenson@redhat.com>
1015 * main.c (captured_main): Replace a fprintf/exit
1016 pair with a call to error. Wrap the message with _().
1018 2014-08-29 Gary Benson <gbenson@redhat.com>
1020 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1021 pairs with calls to error. Wrap the message with _().
1023 2014-08-29 Gary Benson <gbenson@redhat.com>
1025 * utils.c (vwarning): Protect calls to target_terminal_ours
1028 2014-08-29 Gary Benson <gbenson@redhat.com>
1030 * exceptions.c (print_flush): Protect calls to
1031 target_terminal_ours and wrap_here.
1033 2014-08-29 Gary Benson <gbenson@redhat.com>
1035 * utils.h (filtered_printing_initialized): New declaration.
1036 * utils.c (abort_with_message): New function.
1037 (internal_vproblem): Use abort_with_message for first level
1038 recursive internal problems, and if gdb_stderr is not set up.
1039 Protect calls to target_terminal_ours, begin_line and query.
1041 2014-08-28 Doug Evans <dje@google.com>
1043 * symtab.c (in_prologue): Move definition to better spot.
1044 (skip_prologue_using_sal): Ditto.
1046 2014-08-28 Doug Evans <dje@google.com>
1048 * symtab.c (find_function_start_sal): Move definition to better spot.
1050 2014-08-28 Yao Qi <yao@codesourcery.com>
1052 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1053 found_stack_adjust in forward scan. Remove condition check
1054 on found_stack_adjust which is always true. Indent the code.
1056 2014-08-28 Yao Qi <yao@codesourcery.com>
1058 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1059 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1060 (dwarf_decode_lines): Remove argument
1061 want_line_info. Remove condition check on want_line_info.
1064 2014-08-27 Doug Evans <dje@google.com>
1066 * dwarf2read.c (dwarf_record_line): Fix typo.
1068 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1070 * target.h (struct target_ops::to_terminal_save_ours): Remove
1072 (target_terminal_save_ours): Remove macro.
1073 * target-delegates.c: Regenerate.
1074 * inf-child.c (inf_child_target): Don't set the nonexistent
1075 field to_terminal_save_ours.
1076 * inferior.h (child_terminal_save_ours): Remove declaration.
1077 * terminal.h (gdb_save_tty_state): New declaration.
1078 * inflow.c (child_terminal_save_ours): Rename to ...
1079 (gdb_save_tty_state): ... this.
1080 * tui/tui.c: Include terminal.h.
1081 (tui_enable): Use gdb_save_tty_state instead of
1082 target_terminal_save_ours.
1083 (tui_disable): Likewise.
1085 2014-08-25 Doug Evans <dje@google.com>
1087 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1088 Pass NULL instead of 0 for context pointer.
1090 2014-08-25 Yao Qi <yao@codesourcery.com>
1092 * dwarf2read.c: Fix grammatical error.
1094 2014-08-24 Yao Qi <yao@codesourcery.com>
1096 * dwarf2read.c (scan_partial_symbols): Update comments.
1097 Rename argument 'need_pc' with 'set_addrmap'.
1098 (add_partial_namespace): Rename argument 'need_pc' with
1100 (add_partial_module): Likewise.
1101 (add_partial_subprogram): Likewise. Update comments.
1102 (dwarf2_name): Fix typo.
1104 2014-08-22 Doug Evans <dje@google.com>
1107 * dwarf2read.c (dwarf_record_line_p): New function.
1108 (dwarf_decode_lines_1): Ignore subsequent line number entries
1109 for the same line if any entry had a non-zero discriminator.
1111 2014-08-22 Doug Evans <dje@google.com>
1113 * buildsym.h (record_line_ftype): New typedef.
1114 (record_line): Use it.
1115 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1116 (dwarf_decode_lines_1): Call them.
1118 2014-08-22 Yao Qi <yao@codesourcery.com>
1120 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1121 (ctf_end): Remove code.
1123 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1125 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1126 (linux_make_corefile_notes): call update_thread_list, protected against
1129 2014-08-21 Pedro Alves <palves@redhat.com>
1131 * infcmd.c (attach_command): Remove comment.
1133 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1135 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1136 unsigned LONGEST to ULONGEST.
1138 2014-08-20 Pedro Alves <palves@redhat.com>
1140 * Makefile.in (check-read1): New rule.
1142 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1144 * value.c (value_from_contents_and_address): Strip resolved_type's
1145 typedef layers before checking its TYPE_DATA_LOCATION.
1147 2014-08-20 Pedro Alves <palves@redhat.com>
1149 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1151 2014-08-20 Yao Qi <yao@codesourcery.com>
1153 * amd64-tdep.c (amd64_classify): Add a blank line after the
1154 example. Move "*/" to a new line.
1155 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1156 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1157 * dwarf2read.c (psymtab_include_file_name): Likewise.
1159 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1160 Pedro Alves <palves@redhat.com>
1164 * ada-lang.c (coerce_unspec_val_to_type): Use
1165 value_contents_copy_raw.
1166 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1167 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1168 * cp-valprint.c (cp_print_value_fields): Let the common printing
1169 code handle optimized out values.
1170 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1171 * d-valprint.c (dynamic_array_type): Use
1172 value_bits_any_optimized_out.
1173 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1174 check_any_valid fields.
1175 (check_pieced_value_bits): Delete and inline ...
1176 (check_pieced_synthetic_pointer): ... here.
1177 (check_pieced_value_validity): Delete.
1178 (check_pieced_value_invalid): Delete.
1179 (pieced_value_funcs): Remove check_validity and check_any_valid
1181 (read_pieced_value): Use mark_value_bits_optimized_out.
1182 (write_pieced_value): Switch to use
1183 mark_value_bytes_optimized_out.
1184 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1185 of assuming the whole value is optimized out.
1186 * findvar.c (read_frame_register_value): Remove special handling
1187 of optimized out registers.
1188 (value_from_register): Use mark_value_bytes_optimized_out.
1189 * frame-unwind.c (frame_unwind_got_optimized): Use
1190 mark_value_bytes_optimized_out.
1191 * jv-valprint.c (java_value_print): Adjust.
1192 (java_print_value_fields): Let the common printing code handle
1193 optimized out values.
1194 * mips-tdep.c (mips_print_register): Remove special handling of
1195 optimized out registers.
1196 * opencl-lang.c (lval_func_check_validity): Delete.
1197 (lval_func_check_any_valid): Delete.
1198 (opencl_value_funcs): Remove check_validity and check_any_valid
1200 * p-valprint.c (pascal_object_print_value_fields): Let the common
1201 printing code handle optimized out values.
1202 * stack.c (read_frame_arg): Remove special handling of optimized
1203 out values. Fetch both VAL and ENTRYVAL before comparing
1204 contents. Adjust to value_available_contents_eq rename.
1205 * valprint.c (valprint_check_validity)
1206 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1207 (val_print_array_elements): Adjust.
1208 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1209 (value_bits_any_optimized_out): New function.
1210 (value_entirely_covered_by_range_vector): New function, factored
1211 out from value_entirely_unavailable.
1212 (value_entirely_unavailable): Reimplement.
1213 (value_entirely_optimized_out): New function.
1214 (insert_into_bit_range_vector): New function, factored out from
1215 mark_value_bits_unavailable.
1216 (mark_value_bits_unavailable): Reimplement.
1217 (struct ranges_and_idx): New struct.
1218 (find_first_range_overlap_and_match): New function, factored out
1219 from value_available_contents_bits_eq.
1220 (value_available_contents_bits_eq): Rename to ...
1221 (value_contents_bits_eq): ... this. Check both unavailable
1222 contents and optimized out contents.
1223 (value_available_contents_eq): Rename to ...
1224 (value_contents_eq): ... this.
1225 (allocate_value_lazy): Remove reference to the old optimized_out
1227 (allocate_optimized_out_value): Use
1228 mark_value_bytes_optimized_out.
1229 (require_not_optimized_out): Adjust to check whether the
1230 optimized_out vec is empty.
1231 (ranges_copy_adjusted): New function, factored out from
1232 value_contents_copy_raw.
1233 (value_contents_copy_raw): Also copy the optimized out ranges.
1234 Assert the destination ranges aren't optimized out.
1235 (value_contents_copy): Update comment, remove call to
1236 require_not_optimized_out.
1237 (value_contents_equal): Adjust to check whether the optimized_out
1239 (set_value_optimized_out, value_optimized_out_const): Delete.
1240 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1242 (value_entirely_optimized_out, value_bits_valid): Delete.
1243 (value_copy): Take a VEC copy of the 'optimized_out' field.
1244 (value_primitive_field): Remove special handling of optimized out.
1245 (value_fetch_lazy): Assert that lazy values have no unavailable
1246 regions. Use value_bits_any_optimized_out. Remove some special
1247 handling for optimized out values.
1248 * value.h: Add intro comment about <optimized out> and
1250 (struct lval_funcs): Remove check_validity and check_any_valid
1252 (set_value_optimized_out, value_optimized_out_const): Remove.
1253 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1255 (value_bits_any_optimized_out): New declaration.
1256 (value_bits_valid): Delete declaration.
1257 (value_available_contents_eq): Rename to ...
1258 (value_contents_eq): ... this, and extend comments.
1260 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1262 Fix -fsanitize=address on unreadable inferior strings.
1263 * valprint.c (val_print_string): Fix access before BUFFER.
1265 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1267 * target.c (target_struct_size): Remove.
1268 (target_struct_allocsize): Remove.
1269 (DEFAULT_ALLOCSIZE): Remove.
1270 (target_ops_p): New typedef.
1271 (DEF_VEC_P (target_ops_p)): New vector type.
1272 (target_structs): Change type to VEC (target_ops_p).
1273 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1274 (find_default_run_target): Rewrite for loop following changes to
1277 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1279 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1280 Adjust code accordingly. Adjust function description comment.
1282 2014-08-19 Yao Qi <yao@codesourcery.com>
1284 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1287 2014-08-19 Alan Modra <amodra@gmail.com>
1289 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1290 * config.in: Regenerate.
1291 * configure: Regenerate.
1293 2014-08-19 Tom Tromey <tromey@redhat.com>
1294 Gary Benson <gbenson@redhat.com>
1296 * common/common-debug.h: New file.
1297 * common/common-debug.c: Likewise.
1298 * debug.c: Likewise.
1299 * Makefile.in (SFILES): Add common/common-debug.c.
1300 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1301 (COMMON_OBS): Add common-debug.o and debug.o.
1302 (common-debug.o): New rule.
1303 * common/common-defs.h: Include common-debug.h.
1304 * common/agent.c (debug_agent_printf): New function.
1305 (DEBUG_AGENT): Redefine.
1306 * nat/i386-dregs.c (debug_printf): Undefine.
1308 2014-08-19 Gary Benson <gbenson@redhat.com>
1310 * common/common-defs.h: Include print-utils.h.
1311 * utils.h: Do not include print-utils.h.
1313 2014-08-19 Tom Tromey <tromey@redhat.com>
1314 Gary Benson <gbenson@redhat.com>
1316 * common/common-types.h: New file.
1317 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1318 * common/common-defs.h: Include common-types.h.
1319 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1322 2014-08-19 Tom Tromey <tromey@redhat.com>
1323 Gary Benson <gbenson@redhat.com>
1325 * common/errors.h: New file.
1326 * common/errors.c: Likewise.
1327 * Makefile.in (SFILES): Add common/errors.c.
1328 (HFILES_NO_SRCDIR): Add common/errors.h.
1329 (COMMON_OBS): Add errors.o.
1330 (errors.o): New rule.
1331 * common/common-defs.h: Include errors.h.
1332 * utils.h (perror_with_name, error, verror, warning, vwarning):
1334 * common/common-utils.h: (malloc_failure, internal_error):
1337 2014-08-19 Gary Benson <gbenson@redhat.com>
1339 * utils.c (internal_vproblem): Always print the message.
1341 2014-08-18 Doug Evans <dje@google.com>
1343 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1345 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1347 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1348 Return 0 if TYPE is dynamic.
1349 (print_range): Add handling of dynamic ranges.
1351 2014-08-18 Keven Boell <keven.boell@intel.com>
1352 Joel Brobecker <brobecker@adacore.com>
1354 * gdbtypes.h (struct main_type): Add field "data_location".
1355 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1356 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1357 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1358 a dynamic data location.
1359 (resolve_dynamic_type): Add DW_AT_data_location handling.
1360 (copy_recursive, copy_type): Copy the data_location information
1362 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1363 * value.c (value_from_contents_and_address): Add
1364 DW_AT_data_location handling.
1366 2014-08-18 Keven Boell <keven.boell@intel.com>
1367 Joel Brobecker <brobecker@adacore.com>
1369 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1370 field "get_object_address".
1371 * dwarf2expr.c (execute_stack_op): Add handling for
1372 DW_OP_push_object_address.
1373 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1374 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1375 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1376 (dwarf_expr_get_obj_addr): New function.
1377 (dwarf_expr_ctx_funcs): Add get_object_address field.
1378 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1379 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1380 (dwarf2_evaluate_property): Add parameter "address". Use it.
1381 (needs_get_obj_addr): New function.
1382 (needs_frame_ctx_funcs): Add get_object_address field.
1383 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1384 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1385 (resolve_dynamic_array): Likewise.
1387 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1389 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1390 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1391 fixed value for records and unions for which some GNAT encodings
1394 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1396 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1397 rewrite to avoid "else if" and "else" constructs. Should be
1398 a no-op in practice.
1400 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1402 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1405 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1408 * eval.c: Update all calls to find_overload_match.
1409 * valarith.c: Likewise.
1410 (value_user_defined_cpp_op, value_user_defined_op): New
1411 argument NOSIDE. Update all callers.
1412 * valops.c (find_overload_match): New argument NOSIDE.
1413 * value.h (find_overload_match): Update signature.
1415 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1417 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1418 'items' methods instead of 'iteritems' method on dictionaries.
1420 2014-08-15 Doug Evans <dje@google.com>
1422 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1425 2014-08-15 Doug Evans <dje@google.com>
1427 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1429 2014-08-15 Doug Evans <dje@google.com>
1431 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1433 2014-08-15 Doug Evans <dje@google.com>
1435 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1438 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1440 * dcache.h: Include target.h, to avoid compile time warnings.
1442 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1444 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1445 frame_info" partial declaration.
1446 * gdbarch.h: Regenerate.
1448 2014-08-15 Yao Qi <yao@codesourcery.com>
1450 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1451 Add parameter 'decode_for_pst_p'. Callers update.
1453 2014-08-13 Yao Qi <yao@codesourcery.com>
1456 * configure.ac: Use local variable 'pos'.
1457 * configure: Regenerated.
1459 2014-08-11 Doug Evans <dje@google.com>
1461 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1462 message, it is redundant with "Reading symbols from ..." message.
1464 2014-08-10 Doug Evans <xdje42@gmail.com>
1466 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1468 2014-08-09 Yao Qi <yao@codesourcery.com>
1471 * remote.c (remote_xfer_partial): Remove dead code.
1473 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1475 * ia64-linux-tdep.c: Include "regset.h".
1476 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1477 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1478 (ia64_linux_supply_fpregset): New function.
1479 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1480 (ia64_linux_regset_from_core_section): New function.
1481 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1484 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1486 * m68klinux-tdep.c: Include "regset.h".
1487 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1488 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1489 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1490 (m68k_linux_regset_from_core_section): New function.
1491 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1494 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1496 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1497 function. Move logic to...
1498 (tilegx_linux_regmap): ... this new register map.
1499 (tilegx_linux_regset): Refer to register map, replace supply
1500 method by regcache_supply_regset, and add collect method.
1501 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1502 TILEGX_FIRST_EASY_REGNUM.
1504 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1506 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1507 that calls regcache_supply_regset and handles the EPC register
1508 separately. Move main logic to...
1509 (score7_linux_gregmap): ... this new register map.
1510 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1511 (score7_linux_gregset): Refer to register map. Add collect method.
1512 (score7_linux_regset_from_core_section): Replace
1513 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1514 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1515 (struct regset): Delete unused forward declaraction.
1516 (struct pt_regs): Delete structure definition.
1517 (elf_gregset_t): Delete typedef.
1519 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1521 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1522 (nios2_core_regset): Add collect method.
1524 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1526 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1527 platform-independent and don't write to read-only input buffer.
1528 (m32r_linux_collect_gregset): New function.
1529 (m32r_linux_gregset): Add collect method.
1531 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1533 * hppa-linux-tdep.c (greg_map): Rename to...
1534 (hppa_linux_gregmap): ... this. Also convert to
1535 regcache_map_entry format.
1536 (hppa_linux_supply_regset): Delete function.
1537 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1538 (hppa_linux_fpregmap): ... this new register map.
1539 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1540 register map, replace supply method by regcache_supply_regset, and
1541 add collect method regcache_collect_regset.
1543 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1545 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1546 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1547 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1548 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1549 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1550 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1551 (frv_linux_supply_gregset): Replace main logic by call to
1552 regcache_supply_regset, but keep clearing gr32-gr63.
1553 (frv_linux_supply_fpregset): Delete function.
1554 (frv_linux_gregset): Refer to appropriate register map and add
1555 regcache_collect_regset as the collect method.
1556 (frv_linux_fpregset): Likewise. Also exchange the supply method
1557 by regcache_supply_regset.
1559 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1561 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1562 by call to alpha_supply_int_regs.
1563 (alpha_linux_collect_gregset): New function.
1564 (alpha_linux_supply_fpregset): Replace logic by call to
1565 alpha_supply_fp_regs.
1566 (alpha_linux_collect_fpregset): New function.
1567 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1569 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1571 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1572 by call to regcache_collect_regset.
1573 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1574 instead of aarch64_linux_supply_gregset/_fpregset.
1575 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1576 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1577 header file instead.
1578 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1579 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1580 functions. Move logic to ...
1581 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1583 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1584 refer to new register maps, replace *_regset_from_core by
1585 regcache_supply_regset, and also use regcache_collect_regset.
1586 * aarch64-linux-tdep.h: Include "regset.h".
1587 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1589 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1590 macros, moved from C source file.
1591 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1592 variable declarations.
1594 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1596 * s390-linux-nat.c: Include "regset.h".
1597 (regmap_gregset): Delete macro.
1598 (s390_64_regmap_gregset): New register map for
1599 regcache_supply/_collect_regset.
1600 (s390_64_gregset): New regset.
1601 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1602 (regmap_fpregset): Delete macro.
1603 (s390_native_supply, s390_native_collect): Delete functions.
1604 (supply_gregset, fill_gregset): Replace s390-specific regmap
1605 handling by a call to regcache_supply/_collect_regset.
1606 (supply_fpregset, fill_fpregset): Call regcache_supply/
1607 _collect_regset instead of s390_native_supply/_collect.
1608 (fetch_regset, store_regset): Likewise. Also change the last
1609 parameter to a regset instead of a regmap.
1610 (s390_linux_fetch_inferior_registers)
1611 (390_linux_store_inferior_registers): Adjust last parameter in
1612 calls to fetch_regset and store_regset.
1613 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1614 (s390_gregmap): ... this. Also make static const and convert to
1615 regcache_map_entry format.
1616 (s390x_regmap_gregset): Delete.
1617 (s390_regmap_fpregset): Rename to...
1618 (s390_fpregmap): ... this. Make static const and convert to
1619 regcache_map_entry format.
1620 (s390_regmap_upper, s390_regmap_last_break)
1621 (s390x_regmap_last_break, s390_regmap_system_call)
1622 (s390_regmap_tdb): Likewise.
1623 (s390_supply_regset, s390_collect_regset): Remove functions.
1624 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1626 (s390_gregset, s390_fpregset, s390_upper_regset)
1627 (s390_last_break_regset, s390x_last_break_regset)
1628 (s390_system_call_regset, s390_tdb_regset): Make global and
1629 replace s390_supply/_collect_regset by regcache_supply/
1631 (s390x_gregset): Delete.
1632 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1633 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1634 (s390_regmap_fpregset, s390_regmap_last_break)
1635 (s390x_regmap_last_break, s390_regmap_system_call)
1636 (s390_regmap_tdb): Delete global variable declarations.
1637 (s390_gregset, s390_fpregset, s390_last_break_regset)
1638 (s390x_last_break_regset, s390_system_call_regset)
1639 (s390_tdb_regset): New global variable declarations.
1641 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1643 * regcache.c: Include "regset.h".
1644 (regcache_transfer_regset): New local function.
1645 (regcache_supply_regset, regcache_collect_regset): New functions.
1646 * regcache.h (struct regcache_map_entry): New structure.
1647 (REGCACHE_MAP_SKIP): New enum value.
1648 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1650 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1652 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1653 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1654 (ppc_linux_collect_gregset ): Likewise.
1655 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1656 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1657 (ppc_collect_vrregset): Likewise.
1658 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1661 2014-08-07 Yao Qi <yao@codesourcery.com>
1663 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1664 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1665 * remote.c (remote_read_bytes): Likewise.
1667 2014-08-07 Yao Qi <yao@codesourcery.com>
1669 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1671 2014-08-07 Yao Qi <yao@codesourcery.com>
1674 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1675 TARGET_XFER_OK instead of 0.
1677 2014-08-07 Gary Benson <gbenson@redhat.com>
1679 * common/common-defs.h: Include errno.h.
1680 * defs.h: Do not include errno.h.
1681 * ada-typeprint.c: Likewise.
1682 * c-typeprint.c: Likewise.
1683 * core-regset.c: Likewise.
1684 * corefile.c: Likewise.
1685 * corelow.c: Likewise.
1686 * event-loop.c: Likewise.
1687 * f-typeprint.c: Likewise.
1688 * gnu-nat.c: Likewise.
1689 * go32-nat.c: Likewise.
1690 * i386gnu-nat.c: Likewise.
1691 * m2-typeprint.c: Likewise.
1692 * nat/linux-btrace.c: Likewise.
1693 * p-typeprint.c: Likewise.
1694 * procfs.c: Likewise.
1695 * remote-sim.c: Likewise.
1696 * rs6000-nat.c: Likewise.
1697 * target.c: Likewise.
1698 * typeprint.c: Likewise.
1699 * ui-file.c: Likewise.
1700 * valops.c: Likewise.
1701 * valprint.c: Likewise.
1703 2014-08-07 Gary Benson <gbenson@redhat.com>
1705 * common/common-defs.h: Include string.h.
1706 * aarch64-tdep.c: Do not include string.h.
1707 * ada-exp.y: Likewise.
1708 * ada-lang.c: Likewise.
1709 * ada-lex.l: Likewise.
1710 * ada-typeprint.c: Likewise.
1711 * ada-valprint.c: Likewise.
1712 * aix-thread.c: Likewise.
1713 * alpha-linux-tdep.c: Likewise.
1714 * alpha-mdebug-tdep.c: Likewise.
1715 * alpha-nat.c: Likewise.
1716 * alpha-osf1-tdep.c: Likewise.
1717 * alpha-tdep.c: Likewise.
1718 * alphanbsd-tdep.c: Likewise.
1719 * amd64-dicos-tdep.c: Likewise.
1720 * amd64-linux-tdep.c: Likewise.
1721 * amd64-nat.c: Likewise.
1722 * amd64-sol2-tdep.c: Likewise.
1723 * amd64fbsd-tdep.c: Likewise.
1724 * amd64obsd-tdep.c: Likewise.
1725 * arch-utils.c: Likewise.
1726 * arm-linux-nat.c: Likewise.
1727 * arm-linux-tdep.c: Likewise.
1728 * arm-tdep.c: Likewise.
1729 * arm-wince-tdep.c: Likewise.
1730 * armbsd-tdep.c: Likewise.
1731 * armnbsd-nat.c: Likewise.
1732 * armnbsd-tdep.c: Likewise.
1733 * armobsd-tdep.c: Likewise.
1734 * avr-tdep.c: Likewise.
1735 * ax-gdb.c: Likewise.
1736 * ax-general.c: Likewise.
1737 * bcache.c: Likewise.
1738 * bfin-tdep.c: Likewise.
1739 * breakpoint.c: Likewise.
1740 * build-id.c: Likewise.
1741 * buildsym.c: Likewise.
1742 * c-exp.y: Likewise.
1743 * c-lang.c: Likewise.
1744 * c-typeprint.c: Likewise.
1745 * c-valprint.c: Likewise.
1746 * charset.c: Likewise.
1747 * cli-out.c: Likewise.
1748 * cli/cli-cmds.c: Likewise.
1749 * cli/cli-decode.c: Likewise.
1750 * cli/cli-dump.c: Likewise.
1751 * cli/cli-interp.c: Likewise.
1752 * cli/cli-logging.c: Likewise.
1753 * cli/cli-script.c: Likewise.
1754 * cli/cli-setshow.c: Likewise.
1755 * cli/cli-utils.c: Likewise.
1756 * coffread.c: Likewise.
1757 * common/agent.c: Likewise.
1758 * common/buffer.c: Likewise.
1759 * common/buffer.h: Likewise.
1760 * common/common-utils.c: Likewise.
1761 * common/filestuff.c: Likewise.
1762 * common/filestuff.c: Likewise.
1763 * common/format.c: Likewise.
1764 * common/print-utils.c: Likewise.
1765 * common/rsp-low.c: Likewise.
1766 * common/signals.c: Likewise.
1767 * common/vec.h: Likewise.
1768 * common/xml-utils.c: Likewise.
1769 * core-regset.c: Likewise.
1770 * corefile.c: Likewise.
1771 * corelow.c: Likewise.
1772 * cp-abi.c: Likewise.
1773 * cp-name-parser.y: Likewise.
1774 * cp-support.c: Likewise.
1775 * cp-valprint.c: Likewise.
1776 * cris-tdep.c: Likewise.
1777 * d-exp.y: Likewise.
1778 * darwin-nat.c: Likewise.
1779 * dbxread.c: Likewise.
1780 * dcache.c: Likewise.
1781 * demangle.c: Likewise.
1782 * dicos-tdep.c: Likewise.
1783 * disasm.c: Likewise.
1784 * doublest.c: Likewise.
1785 * dsrec.c: Likewise.
1786 * dummy-frame.c: Likewise.
1787 * dwarf2-frame.c: Likewise.
1788 * dwarf2loc.c: Likewise.
1789 * dwarf2read.c: Likewise.
1790 * elfread.c: Likewise.
1791 * environ.c: Likewise.
1793 * event-loop.c: Likewise.
1794 * exceptions.c: Likewise.
1796 * expprint.c: Likewise.
1797 * f-exp.y: Likewise.
1798 * f-lang.c: Likewise.
1799 * f-typeprint.c: Likewise.
1800 * f-valprint.c: Likewise.
1801 * fbsd-nat.c: Likewise.
1802 * findcmd.c: Likewise.
1803 * findvar.c: Likewise.
1804 * fork-child.c: Likewise.
1805 * frame.c: Likewise.
1806 * frv-linux-tdep.c: Likewise.
1807 * frv-tdep.c: Likewise.
1809 * gdb_bfd.c: Likewise.
1810 * gdbarch.c: Likewise.
1811 * gdbarch.sh: Likewise.
1812 * gdbtypes.c: Likewise.
1813 * gnu-nat.c: Likewise.
1814 * gnu-v2-abi.c: Likewise.
1815 * gnu-v3-abi.c: Likewise.
1816 * go-exp.y: Likewise.
1817 * go-lang.c: Likewise.
1818 * go32-nat.c: Likewise.
1819 * guile/guile.c: Likewise.
1820 * guile/scm-auto-load.c: Likewise.
1821 * hppa-hpux-tdep.c: Likewise.
1822 * hppa-linux-nat.c: Likewise.
1823 * hppanbsd-tdep.c: Likewise.
1824 * hppaobsd-tdep.c: Likewise.
1825 * i386-cygwin-tdep.c: Likewise.
1826 * i386-dicos-tdep.c: Likewise.
1827 * i386-linux-tdep.c: Likewise.
1828 * i386-nto-tdep.c: Likewise.
1829 * i386-sol2-tdep.c: Likewise.
1830 * i386-tdep.c: Likewise.
1831 * i386bsd-tdep.c: Likewise.
1832 * i386gnu-nat.c: Likewise.
1833 * i386nbsd-tdep.c: Likewise.
1834 * i386obsd-tdep.c: Likewise.
1835 * i387-tdep.c: Likewise.
1836 * ia64-libunwind-tdep.c: Likewise.
1837 * ia64-linux-nat.c: Likewise.
1838 * inf-child.c: Likewise.
1839 * inf-ptrace.c: Likewise.
1840 * inf-ttrace.c: Likewise.
1841 * infcall.c: Likewise.
1842 * infcmd.c: Likewise.
1843 * inflow.c: Likewise.
1844 * infrun.c: Likewise.
1845 * interps.c: Likewise.
1846 * iq2000-tdep.c: Likewise.
1847 * irix5-nat.c: Likewise.
1848 * jv-exp.y: Likewise.
1849 * jv-lang.c: Likewise.
1850 * jv-typeprint.c: Likewise.
1851 * jv-valprint.c: Likewise.
1852 * language.c: Likewise.
1853 * linux-fork.c: Likewise.
1854 * linux-nat.c: Likewise.
1855 * lm32-tdep.c: Likewise.
1856 * m2-exp.y: Likewise.
1857 * m2-typeprint.c: Likewise.
1858 * m32c-tdep.c: Likewise.
1859 * m32r-linux-nat.c: Likewise.
1860 * m32r-linux-tdep.c: Likewise.
1861 * m32r-rom.c: Likewise.
1862 * m32r-tdep.c: Likewise.
1863 * m68hc11-tdep.c: Likewise.
1864 * m68k-tdep.c: Likewise.
1865 * m68kbsd-tdep.c: Likewise.
1866 * m68klinux-nat.c: Likewise.
1867 * m68klinux-tdep.c: Likewise.
1868 * m88k-tdep.c: Likewise.
1869 * machoread.c: Likewise.
1870 * macrocmd.c: Likewise.
1872 * mdebugread.c: Likewise.
1873 * mem-break.c: Likewise.
1874 * memattr.c: Likewise.
1875 * memory-map.c: Likewise.
1876 * mep-tdep.c: Likewise.
1877 * mi/mi-cmd-break.c: Likewise.
1878 * mi/mi-cmd-disas.c: Likewise.
1879 * mi/mi-cmd-env.c: Likewise.
1880 * mi/mi-cmd-stack.c: Likewise.
1881 * mi/mi-cmd-var.c: Likewise.
1882 * mi/mi-cmds.c: Likewise.
1883 * mi/mi-console.c: Likewise.
1884 * mi/mi-getopt.c: Likewise.
1885 * mi/mi-interp.c: Likewise.
1886 * mi/mi-main.c: Likewise.
1887 * mi/mi-parse.c: Likewise.
1888 * microblaze-rom.c: Likewise.
1889 * microblaze-tdep.c: Likewise.
1890 * mingw-hdep.c: Likewise.
1891 * minidebug.c: Likewise.
1892 * minsyms.c: Likewise.
1893 * mips-irix-tdep.c: Likewise.
1894 * mips-linux-tdep.c: Likewise.
1895 * mips-tdep.c: Likewise.
1896 * mips64obsd-tdep.c: Likewise.
1897 * mipsnbsd-tdep.c: Likewise.
1898 * mipsread.c: Likewise.
1899 * mn10300-linux-tdep.c: Likewise.
1900 * mn10300-tdep.c: Likewise.
1901 * monitor.c: Likewise.
1902 * moxie-tdep.c: Likewise.
1903 * mt-tdep.c: Likewise.
1904 * nat/linux-btrace.c: Likewise.
1905 * nat/linux-osdata.c: Likewise.
1906 * nat/linux-procfs.c: Likewise.
1907 * nat/linux-ptrace.c: Likewise.
1908 * nat/linux-waitpid.c: Likewise.
1909 * nbsd-tdep.c: Likewise.
1910 * nios2-linux-tdep.c: Likewise.
1911 * nto-procfs.c: Likewise.
1912 * nto-tdep.c: Likewise.
1913 * objc-lang.c: Likewise.
1914 * objfiles.c: Likewise.
1915 * opencl-lang.c: Likewise.
1916 * osabi.c: Likewise.
1917 * osdata.c: Likewise.
1918 * p-exp.y: Likewise.
1919 * p-lang.c: Likewise.
1920 * p-typeprint.c: Likewise.
1921 * parse.c: Likewise.
1922 * posix-hdep.c: Likewise.
1923 * ppc-linux-nat.c: Likewise.
1924 * ppc-sysv-tdep.c: Likewise.
1925 * ppcfbsd-tdep.c: Likewise.
1926 * ppcnbsd-tdep.c: Likewise.
1927 * ppcobsd-tdep.c: Likewise.
1928 * printcmd.c: Likewise.
1929 * procfs.c: Likewise.
1930 * prologue-value.c: Likewise.
1931 * python/py-auto-load.c: Likewise.
1932 * python/py-gdb-readline.c: Likewise.
1933 * ravenscar-thread.c: Likewise.
1934 * regcache.c: Likewise.
1935 * registry.c: Likewise.
1936 * remote-fileio.c: Likewise.
1937 * remote-m32r-sdi.c: Likewise.
1938 * remote-mips.c: Likewise.
1939 * remote-notif.c: Likewise.
1940 * remote-sim.c: Likewise.
1941 * remote.c: Likewise.
1942 * reverse.c: Likewise.
1943 * rs6000-aix-tdep.c: Likewise.
1944 * ser-base.c: Likewise.
1945 * ser-go32.c: Likewise.
1946 * ser-mingw.c: Likewise.
1947 * ser-pipe.c: Likewise.
1948 * ser-tcp.c: Likewise.
1949 * ser-unix.c: Likewise.
1950 * serial.c: Likewise.
1951 * sh-tdep.c: Likewise.
1952 * sh64-tdep.c: Likewise.
1953 * shnbsd-tdep.c: Likewise.
1955 * sol-thread.c: Likewise.
1956 * solib-dsbt.c: Likewise.
1957 * solib-frv.c: Likewise.
1958 * solib-osf.c: Likewise.
1959 * solib-som.c: Likewise.
1960 * solib-spu.c: Likewise.
1961 * solib-target.c: Likewise.
1962 * solib.c: Likewise.
1963 * somread.c: Likewise.
1964 * source.c: Likewise.
1965 * sparc-nat.c: Likewise.
1966 * sparc-sol2-tdep.c: Likewise.
1967 * sparc-tdep.c: Likewise.
1968 * sparc64-tdep.c: Likewise.
1969 * sparc64fbsd-tdep.c: Likewise.
1970 * sparc64nbsd-tdep.c: Likewise.
1971 * sparcnbsd-tdep.c: Likewise.
1972 * spu-linux-nat.c: Likewise.
1973 * spu-multiarch.c: Likewise.
1974 * spu-tdep.c: Likewise.
1975 * stabsread.c: Likewise.
1976 * stack.c: Likewise.
1977 * std-regs.c: Likewise.
1978 * symfile.c: Likewise.
1979 * symmisc.c: Likewise.
1980 * symtab.c: Likewise.
1981 * target.c: Likewise.
1982 * thread.c: Likewise.
1983 * tilegx-linux-nat.c: Likewise.
1984 * tilegx-tdep.c: Likewise.
1986 * tracepoint.c: Likewise.
1987 * tui/tui-command.c: Likewise.
1988 * tui/tui-data.c: Likewise.
1989 * tui/tui-disasm.c: Likewise.
1990 * tui/tui-file.c: Likewise.
1991 * tui/tui-layout.c: Likewise.
1992 * tui/tui-out.c: Likewise.
1993 * tui/tui-regs.c: Likewise.
1994 * tui/tui-source.c: Likewise.
1995 * tui/tui-stack.c: Likewise.
1996 * tui/tui-win.c: Likewise.
1997 * tui/tui-windata.c: Likewise.
1998 * tui/tui-winsource.c: Likewise.
1999 * typeprint.c: Likewise.
2000 * ui-file.c: Likewise.
2001 * ui-out.c: Likewise.
2002 * user-regs.c: Likewise.
2003 * utils.c: Likewise.
2004 * v850-tdep.c: Likewise.
2005 * valarith.c: Likewise.
2006 * valops.c: Likewise.
2007 * valprint.c: Likewise.
2008 * value.c: Likewise.
2009 * varobj.c: Likewise.
2010 * vax-tdep.c: Likewise.
2011 * vaxnbsd-tdep.c: Likewise.
2012 * vaxobsd-tdep.c: Likewise.
2013 * windows-nat.c: Likewise.
2014 * xcoffread.c: Likewise.
2015 * xml-support.c: Likewise.
2016 * xstormy16-tdep.c: Likewise.
2017 * xtensa-linux-nat.c: Likewise.
2019 2014-08-07 Gary Benson <gbenson@redhat.com>
2021 * common/common-defs.h: Include gdb_assert.h.
2022 * aarch64-tdep.c: Do not include gdb_assert.h.
2023 * addrmap.c: Likewise.
2024 * aix-thread.c: Likewise.
2025 * alpha-linux-tdep.c: Likewise.
2026 * alpha-mdebug-tdep.c: Likewise.
2027 * alphanbsd-tdep.c: Likewise.
2028 * amd64-nat.c: Likewise.
2029 * amd64-tdep.c: Likewise.
2030 * amd64bsd-nat.c: Likewise.
2031 * amd64fbsd-nat.c: Likewise.
2032 * amd64fbsd-tdep.c: Likewise.
2033 * amd64nbsd-nat.c: Likewise.
2034 * amd64nbsd-tdep.c: Likewise.
2035 * amd64obsd-nat.c: Likewise.
2036 * amd64obsd-tdep.c: Likewise.
2037 * arch-utils.c: Likewise.
2038 * arm-tdep.c: Likewise.
2039 * armbsd-tdep.c: Likewise.
2041 * bcache.c: Likewise.
2042 * bfin-tdep.c: Likewise.
2043 * blockframe.c: Likewise.
2044 * breakpoint.c: Likewise.
2045 * bsd-kvm.c: Likewise.
2046 * bsd-uthread.c: Likewise.
2047 * buildsym.c: Likewise.
2048 * c-exp.y: Likewise.
2049 * c-lang.c: Likewise.
2050 * charset.c: Likewise.
2051 * cleanups.c: Likewise.
2052 * cli-out.c: Likewise.
2053 * cli/cli-decode.c: Likewise.
2054 * cli/cli-dump.c: Likewise.
2055 * cli/cli-logging.c: Likewise.
2056 * cli/cli-script.c: Likewise.
2057 * cli/cli-utils.c: Likewise.
2058 * coffread.c: Likewise.
2059 * common/common-utils.c: Likewise.
2060 * common/queue.h: Likewise.
2061 * common/signals.c: Likewise.
2062 * common/vec.h: Likewise.
2063 * complaints.c: Likewise.
2064 * completer.c: Likewise.
2065 * corelow.c: Likewise.
2066 * cp-abi.c: Likewise.
2067 * cp-name-parser.y: Likewise.
2068 * cp-namespace.c: Likewise.
2069 * cp-support.c: Likewise.
2070 * cris-tdep.c: Likewise.
2071 * dbxread.c: Likewise.
2072 * dictionary.c: Likewise.
2073 * doublest.c: Likewise.
2074 * dsrec.c: Likewise.
2075 * dummy-frame.c: Likewise.
2076 * dwarf2-frame-tailcall.c: Likewise.
2077 * dwarf2-frame.c: Likewise.
2078 * dwarf2expr.c: Likewise.
2079 * dwarf2loc.c: Likewise.
2080 * dwarf2read.c: Likewise.
2082 * event-loop.c: Likewise.
2083 * exceptions.c: Likewise.
2084 * expprint.c: Likewise.
2085 * f-valprint.c: Likewise.
2086 * fbsd-nat.c: Likewise.
2087 * findvar.c: Likewise.
2088 * frame-unwind.c: Likewise.
2089 * frame.c: Likewise.
2090 * frv-tdep.c: Likewise.
2091 * gcore.c: Likewise.
2092 * gdb-dlfcn.c: Likewise.
2093 * gdb_bfd.c: Likewise.
2094 * gdbarch.c: Likewise.
2095 * gdbarch.sh: Likewise.
2096 * gdbtypes.c: Likewise.
2097 * gnu-nat.c: Likewise.
2098 * gnu-v3-abi.c: Likewise.
2099 * go-lang.c: Likewise.
2100 * guile/scm-exception.c: Likewise.
2101 * guile/scm-gsmob.c: Likewise.
2102 * guile/scm-lazy-string.c: Likewise.
2103 * guile/scm-math.c: Likewise.
2104 * guile/scm-pretty-print.c: Likewise.
2105 * guile/scm-safe-call.c: Likewise.
2106 * guile/scm-utils.c: Likewise.
2107 * guile/scm-value.c: Likewise.
2108 * h8300-tdep.c: Likewise.
2109 * hppa-hpux-nat.c: Likewise.
2110 * hppa-tdep.c: Likewise.
2111 * hppanbsd-tdep.c: Likewise.
2112 * hppaobsd-tdep.c: Likewise.
2113 * i386-darwin-nat.c: Likewise.
2114 * i386-darwin-tdep.c: Likewise.
2115 * i386-nto-tdep.c: Likewise.
2116 * i386-tdep.c: Likewise.
2117 * i386bsd-nat.c: Likewise.
2118 * i386fbsd-tdep.c: Likewise.
2119 * i386gnu-nat.c: Likewise.
2120 * i386nbsd-tdep.c: Likewise.
2121 * i386obsd-tdep.c: Likewise.
2122 * i387-tdep.c: Likewise.
2123 * ia64-libunwind-tdep.c: Likewise.
2124 * ia64-tdep.c: Likewise.
2125 * inf-ptrace.c: Likewise.
2126 * inf-ttrace.c: Likewise.
2127 * infcall.c: Likewise.
2128 * infcmd.c: Likewise.
2129 * infrun.c: Likewise.
2130 * inline-frame.c: Likewise.
2131 * interps.c: Likewise.
2132 * jv-lang.c: Likewise.
2133 * jv-typeprint.c: Likewise.
2134 * linux-fork.c: Likewise.
2135 * linux-nat.c: Likewise.
2136 * linux-thread-db.c: Likewise.
2137 * m32c-tdep.c: Likewise.
2138 * m32r-linux-nat.c: Likewise.
2139 * m32r-tdep.c: Likewise.
2140 * m68k-tdep.c: Likewise.
2141 * m68kbsd-nat.c: Likewise.
2142 * m68kbsd-tdep.c: Likewise.
2143 * m88k-tdep.c: Likewise.
2144 * machoread.c: Likewise.
2145 * macroexp.c: Likewise.
2146 * macrotab.c: Likewise.
2147 * maint.c: Likewise.
2148 * mdebugread.c: Likewise.
2149 * memory-map.c: Likewise.
2150 * mep-tdep.c: Likewise.
2151 * mi/mi-common.c: Likewise.
2152 * microblaze-tdep.c: Likewise.
2153 * mingw-hdep.c: Likewise.
2154 * mips-linux-nat.c: Likewise.
2155 * mips-linux-tdep.c: Likewise.
2156 * mips-tdep.c: Likewise.
2157 * mips64obsd-tdep.c: Likewise.
2158 * mipsnbsd-tdep.c: Likewise.
2159 * mn10300-linux-tdep.c: Likewise.
2160 * mn10300-tdep.c: Likewise.
2161 * moxie-tdep.c: Likewise.
2162 * mt-tdep.c: Likewise.
2163 * nat/linux-btrace.c: Likewise.
2164 * nat/linux-osdata.c: Likewise.
2165 * nat/linux-ptrace.c: Likewise.
2166 * nat/mips-linux-watch.c: Likewise.
2167 * nios2-linux-tdep.c: Likewise.
2168 * nios2-tdep.c: Likewise.
2169 * objc-lang.c: Likewise.
2170 * objfiles.c: Likewise.
2171 * obsd-nat.c: Likewise.
2172 * opencl-lang.c: Likewise.
2173 * osabi.c: Likewise.
2174 * parse.c: Likewise.
2175 * ppc-linux-nat.c: Likewise.
2176 * ppc-sysv-tdep.c: Likewise.
2177 * ppcfbsd-nat.c: Likewise.
2178 * ppcfbsd-tdep.c: Likewise.
2179 * ppcnbsd-nat.c: Likewise.
2180 * ppcnbsd-tdep.c: Likewise.
2181 * ppcobsd-nat.c: Likewise.
2182 * ppcobsd-tdep.c: Likewise.
2183 * printcmd.c: Likewise.
2184 * procfs.c: Likewise.
2185 * prologue-value.c: Likewise.
2186 * psymtab.c: Likewise.
2187 * python/py-lazy-string.c: Likewise.
2188 * python/py-value.c: Likewise.
2189 * regcache.c: Likewise.
2190 * reggroups.c: Likewise.
2191 * registry.c: Likewise.
2192 * remote-sim.c: Likewise.
2193 * remote.c: Likewise.
2194 * rs6000-aix-tdep.c: Likewise.
2195 * rs6000-tdep.c: Likewise.
2196 * s390-linux-tdep.c: Likewise.
2197 * score-tdep.c: Likewise.
2198 * ser-base.c: Likewise.
2199 * ser-mingw.c: Likewise.
2200 * sh-tdep.c: Likewise.
2201 * sh64-tdep.c: Likewise.
2202 * solib-darwin.c: Likewise.
2203 * solib-spu.c: Likewise.
2204 * solib-svr4.c: Likewise.
2205 * source.c: Likewise.
2206 * sparc-nat.c: Likewise.
2207 * sparc-sol2-tdep.c: Likewise.
2208 * sparc-tdep.c: Likewise.
2209 * sparc64-sol2-tdep.c: Likewise.
2210 * sparc64-tdep.c: Likewise.
2211 * sparc64fbsd-tdep.c: Likewise.
2212 * sparc64nbsd-tdep.c: Likewise.
2213 * sparc64obsd-tdep.c: Likewise.
2214 * sparcnbsd-tdep.c: Likewise.
2215 * sparcobsd-tdep.c: Likewise.
2216 * spu-multiarch.c: Likewise.
2217 * spu-tdep.c: Likewise.
2218 * stabsread.c: Likewise.
2219 * stack.c: Likewise.
2220 * symfile.c: Likewise.
2221 * symtab.c: Likewise.
2222 * target-descriptions.c: Likewise.
2223 * target-memory.c: Likewise.
2224 * target.c: Likewise.
2225 * tic6x-linux-tdep.c: Likewise.
2226 * tic6x-tdep.c: Likewise.
2227 * tilegx-linux-nat.c: Likewise.
2228 * tilegx-tdep.c: Likewise.
2230 * tramp-frame.c: Likewise.
2231 * tui/tui-out.c: Likewise.
2232 * tui/tui-winsource.c: Likewise.
2233 * ui-out.c: Likewise.
2234 * user-regs.c: Likewise.
2235 * utils.c: Likewise.
2236 * v850-tdep.c: Likewise.
2237 * valops.c: Likewise.
2238 * value.c: Likewise.
2239 * varobj.c: Likewise.
2240 * vax-nat.c: Likewise.
2241 * xml-syscall.c: Likewise.
2242 * xml-tdesc.c: Likewise.
2243 * xstormy16-tdep.c: Likewise.
2244 * xtensa-linux-nat.c: Likewise.
2245 * xtensa-tdep.c: Likewise.
2247 2014-08-07 Gary Benson <gbenson@redhat.com>
2249 * common/common-defs.h: Include common-utils.h.
2250 * defs.h: Do not include common-utils.h.
2251 * common/gdb_assert.h: Likewise.
2252 * darwin-nat.h: Likewise.
2253 * nat/linux-btrace.c: Likewise.
2254 * target/waitstatus.h: Likewise.
2256 2014-08-07 Gary Benson <gbenson@redhat.com>
2258 * common/common-defs.h: Include ptid.h.
2259 * defs.h: Do not include ptid.h.
2260 * inferior.h: Likewise.
2261 * infrun.h: Likewise.
2262 * nat/linux-btrace.h: Likewise.
2263 * nat/linux-osdata.h: Likewise.
2264 * target/waitstatus.h: Likewise.
2266 2014-08-07 Gary Benson <gbenson@redhat.com>
2268 * common/common-defs.h: Include gdb_locale.h.
2269 * defs.h: Do not include gdb_locale.h.
2271 2014-08-07 Gary Benson <gbenson@redhat.com>
2273 * common/common-defs.h: Include gdb/signals.h.
2274 * defs.h: Do not include gdb/signals.h.
2276 2014-08-07 Gary Benson <gbenson@redhat.com>
2278 * common/common-defs.h: Include pathmax.h.
2279 * defs.h: Do not include pathmax.h.
2281 2014-08-07 Gary Benson <gbenson@redhat.com>
2283 * common/common-defs.h: Include libiberty.h.
2284 * defs.h: Do not include libiberty.h.
2285 * common/queue.h: Likewise.
2286 * cp-name-parser.y: Likewise.
2287 * mi/mi-cmd-catch.c: Likewise.
2288 * python/python.c: Likewise.
2290 2014-08-07 Gary Benson <gbenson@redhat.com>
2292 * common/common-defs.h: Include ansidecl.h.
2293 * defs.h: Do not include ansidecl.h.
2294 * common/buffer.h: Likewise.
2295 * common/common-utils.h: Likewise.
2297 2014-08-07 Gary Benson <gbenson@redhat.com>
2299 * common/common-defs.h: Include stddef.h.
2300 * defs.h: Do not include stddef.h.
2301 * common/common-utils.h: Likewise.
2302 * amd64fbsd-nat.c: Likewise.
2303 * bcache.c: Likewise.
2304 * charset.c: Likewise.
2305 * common/buffer.h: Likewise.
2306 * common/vec.h: Likewise.
2307 * i386bsd-nat.c: Likewise.
2308 * nat/linux-btrace.h: Likewise.
2309 * ppcfbsd-nat.c: Likewise.
2310 * ppcnbsd-tdep.h: Likewise.
2311 * ppcobsd-nat.c: Likewise.
2312 * ppcobsd-tdep.h: Likewise.
2313 * python/py-gdb-readline.c: Likewise.
2315 2014-08-07 Gary Benson <gbenson@redhat.com>
2317 * common/common-defs.h: Include stdarg.h.
2318 * defs.h: Do not include stdarg.h.
2319 * ada-lang.c: Likewise.
2320 * common/common-utils.h: Likewise.
2321 * guile/scm-string.c: Likewise.
2322 * guile/scm-utils.c: Likewise.
2323 * m32c-tdep.c: Likewise.
2325 2014-08-07 Gary Benson <gbenson@redhat.com>
2327 * common/common-defs.h: Include stdlib.h.
2328 * defs.h: Do not include stdlib.h.
2329 * addrmap.c: Likewise.
2330 * bcache.c: Likewise.
2331 * common/buffer.c: Likewise.
2332 * common/common-utils.c: Likewise.
2333 * cp-name-parser.y: Likewise.
2334 * go32-nat.c: Likewise.
2335 * mn10300-linux-tdep.c: Likewise.
2336 * nat/linux-osdata.c: Likewise.
2337 * tui/tui.c: Likewise.
2338 * windows-nat.c: Likewise.
2340 2014-08-07 Gary Benson <gbenson@redhat.com>
2342 * common/common-defs.h: Include stdio.h.
2343 * defs.h: Do not include stdio.h.
2344 * ada-lang.c: Likewise.
2345 * common/buffer.c: Likewise.
2346 * common/common-utils.c: Likewise.
2347 * cp-name-parser.y: Likewise.
2348 * gnu-nat.c: Likewise.
2349 * go32-nat.c: Likewise.
2350 * i386gnu-nat.c: Likewise.
2351 * proc-api.c: Likewise.
2352 * proc-events.c: Likewise.
2353 * proc-flags.c: Likewise.
2354 * proc-why.c: Likewise.
2355 * python/python-internal.h: Likewise.
2356 * target-memory.c: Likewise.
2357 * tui/tui-io.c: Likewise.
2358 * tui/tui.c: Likewise.
2360 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2362 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2363 (scan_dyntag_auxv): Same.
2365 2014-08-06 Yao Qi <yao@codesourcery.com>
2367 * amd64-linux-nat.c: Remove duplicated include
2369 * i386-linux-nat.c: Likewise.
2371 2014-08-06 Yao Qi <yao@codesourcery.com>
2373 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2374 operand" with "Special opcode" in comments.
2376 2014-08-05 Gary Benson <gbenson@redhat.com>
2378 * interps.c (initialize_interps): Remove prototype.
2379 (interpreter_initialized): Remove static global.
2380 (interp_add): Do not call initialize_interps.
2381 (initialize_interps): Remove function.
2383 2014-08-05 Gary Benson <gbenson@redhat.com>
2385 * utils.c (vwarning): Remove spurious va_end.
2387 2014-08-05 Alan Modra <amodra@gmail.com>
2389 * charset.c (convert_between_encodings): Cast result of obstack_base.
2390 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2391 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2392 (read_unwind_info): Use size_t for some locals.
2393 * jit.c (finalize_symtab): Likewise.
2394 * utils.c (hashtab_obstack_allocate): Likewise.
2395 * symmisc.c (print_objfile_statistics): Update format strings.
2397 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2399 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2400 (Changes in GDB 7.8): ... here.
2402 2014-08-04 Tom Tromey <tromey@redhat.com>
2404 * target.c (set_targetdebug): New function.
2405 (initialize_targets): Pass set_targetdebug when creating "set
2408 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2410 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2411 if detecting a variable-sized field that is not the last field.
2412 Fix struct type length computation.
2414 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2416 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2419 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2421 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2422 Remove "+ 8" offset in computation of CHAIN_VMA.
2424 2014-07-31 Doug Evans <dje@google.com>
2426 * inflow.c (child_terminal_inferior): Add comment.
2427 (child_terminal_ours_for_output): Add comment.
2428 (child_terminal_ours): Add comment.
2429 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2430 (linux_nat_terminal_ours): Add comment.
2432 2014-07-31 Gary Benson <gbenson@redhat.com>
2434 * common/btrace-common.h: Do not include defs.h or server.h.
2435 * nat/mips-linux-watch.h: Likewise.
2436 * gdb-dlfcn.h: Do not include defs.h.
2437 * tracefile.h: Likewise.
2439 2014-07-30 Roland McGrath <mcgrathr@google.com>
2441 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2443 2014-07-30 Tom Tromey <tromey@redhat.com>
2445 * bsd-kvm.c (bsd_kvm_open): Constify.
2446 * corelow.c (core_open): Constify.
2447 * ctf.c (ctf_open): Constify.
2448 * dbug-rom.c (dbug_open): Constify.
2449 * exec.c (exec_open): Constify.
2450 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2451 * microblaze-rom.c (picobug_open): Constify.
2452 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2454 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2455 * record-btrace.c (record_btrace_open): Constify.
2456 * record-full.c (record_full_core_open_1, record_full_open_1)
2457 (record_full_open): Constify.
2458 * remote-m32r-sdi.c (m32r_open): Constify.
2459 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2460 (rockhopper_open, lsi_open): Constify.
2461 * remote-sim.c (gdbsim_open): Constify.
2462 * remote.c (remote_open, extended_remote_open, remote_open_1):
2464 * target.h (struct target_ops) <to_open>: Make "arg" const.
2465 * tracefile-tfile.c (tfile_open): Constify.
2467 2014-07-30 Tom Tromey <tromey@redhat.com>
2469 * breakpoint.c (map_breakpoint_numbers): Update.
2470 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2471 (get_number_const): New function.
2472 (get_number): Rewrite using get_number_const.
2473 (init_number_or_range): Make "string" const.
2474 (number_is_in_list): Make "list" const.
2475 * cli/cli-utils.h (get_number_const): Declare.
2476 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2477 (init_number_or_range, number_is_in_list): Update.
2478 * printcmd.c (map_display_numbers): Update.
2479 * value.c (value_from_history_ref): Constify.
2480 * value.h (value_from_history_ref): Update.
2482 2014-07-30 Tom Tromey <tromey@redhat.com>
2484 * corefile.c (hook_type, call_extra_exec_file_hooks)
2485 (specify_exec_file_hook): Constify.
2486 * exec.c (exec_file_attach): Make "filename" const.
2487 * gdbcore.h (deprecated_exec_file_display_hook)
2488 (specify_exec_file_hook, exec_file_attach): Constify.
2489 * main.c (captured_main): Use catch_command_errors_const.
2491 2014-07-30 Tom Tromey <tromey@redhat.com>
2493 * target.c (open_target): New function.
2494 (add_target_with_completer, add_deprecated_target_alias): Use
2495 set_cmd_sfunc, set_cmd_context.
2496 (debug_to_open): Remove.
2497 (setup_target_debug): Update.
2499 2014-07-30 Yao Qi <yao@codesourcery.com>
2501 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2503 * parse.c (exp_iterate): Update comments.
2505 2014-07-30 Gary Benson <gbenson@redhat.com>
2507 * common/common-defs.h: New file.
2508 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2509 * defs.h: Include common-defs.h.
2510 Do not include config.h or build-gnulib/config.h.
2512 2014-07-30 Gary Benson <gbenson@redhat.com>
2514 * common/common-utils.h: Do not include config.h.
2515 * nat/linux-btrace.h: Likewise.
2517 2014-07-30 Gary Benson <gbenson@redhat.com>
2519 * btrace.c: Include defs.h.
2520 * common/ptid.c: Include defs.h or server.h as appropriate.
2521 * nat/mips-linux-watch.c: Likewise.
2523 2014-07-29 Tom Tromey <tromey@redhat.com>
2525 * target.c (target_is_pushed): Simplify.
2527 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2531 2014-07-29 Yao Qi <yao@codesourcery.com>
2534 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2536 2014-07-28 Doug Evans <xdje42@gmail.com>
2539 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2540 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2543 2014-07-28 Will Newton <will.newton@linaro.org>
2545 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2546 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2547 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2548 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2549 (THUMB2_EABI_SYSCALL): Likewise.
2550 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2552 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2553 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2555 2014-07-27 Doug Evans <xdje42@gmail.com>
2557 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2559 2014-07-27 Doug Evans <xdje42@gmail.com>
2561 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2563 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2564 Doug Evans <xdje42@gmail.com>
2567 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2568 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2569 * configure.ac: Try to use guild to compile an scm file, if it fails
2570 then disable guile support.
2571 * configure: Regenerate.
2572 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2574 (GUILE_COMPILED_FILES): New variable.
2575 (GUILE_FILES) Update.
2576 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2577 (stamp-guile): Compile scm files.
2578 * guile/guile.c (boot_guile_support): New function.
2579 (standard_throw_args_p): New function.
2580 (print_standard_throw_error, print_throw_error): New functions.
2581 (handle_boot_error): New function.
2582 (initialize_scheme_side): Rewrite to call boot_guile_support.
2583 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2584 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2586 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2587 Doug Evans <xdje42@gmail.com>
2590 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2591 * guile/lib/gdb/support.scm: New file.
2592 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2593 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2595 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2597 (%assert-type): Ditto, and renamed to assert-type.
2598 (%exception-print-style): Delete.
2600 2014-07-26 Doug Evans <xdje42@gmail.com>
2603 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2604 * configure: Regenerate.
2605 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2607 (PYTHON_FILES): New variable.
2608 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2609 (GUILE_FILES): New variable.
2610 (stamp-python, install-python, uninstall-python): Handle empty
2612 (stamp-guile, install-guile, uninstall-guile): Ditto.
2614 2014-07-26 Doug Evans <xdje42@gmail.com>
2617 * guile/lib/gdb.scm (pretty-printers): Export.
2618 (set-pretty-printers!): Export.
2619 * guile/lib/gdb/printing.scm (gdb module): Update.
2620 (prepend-pretty-printer!, append-pretty-printer!): Update.
2621 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2622 (pretty_printer_list_var): Delete.
2623 (pretty_printer_list): New static global.
2624 (gdbscm_pretty_printers): New function.
2625 (gdbscm_set_pretty_printers_x): New function.
2626 (ppscm_find_pretty_printer_from_gdb): Update.
2627 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2628 (gdbscm_initialize_pretty_printers): Update.
2630 2014-07-26 Doug Evans <xdje42@gmail.com>
2633 * configure.ac: Add check for header gc/gc.h.
2634 Add check for function setenv.
2635 * configure: Regenerate.
2636 * config.in: Regenerate.
2637 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2639 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2641 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2642 variation in gdbarch matching.
2644 2014-07-25 Tom Tromey <tromey@redhat.com>
2646 * exec.c (using_exec_ops): Remove.
2647 (exec_close_1): Update. Remove extraneous block, reindent.
2648 (add_target_sections): Use target_is_pushed.
2650 2014-07-25 Pedro Alves <palves@redhat.com>
2652 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2653 * monitor.c (monitor_create_inferior): Likewise.
2654 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2655 * remote-sim.c (gdbsim_create_inferior): Likewise.
2656 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2657 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2658 * windows-nat.c (do_initial_windows_stuff): Likewise.
2660 2014-07-25 Pedro Alves <palves@redhat.com>
2662 * NEWS: Mention signal passing and "signal" command changes.
2663 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2665 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2667 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2668 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2669 (jump_command): Adjust clear_proceed_status call.
2670 (signal_command): Warn if other thread that are resumed have
2671 signals that will be delivered. Adjust clear_proceed_status call.
2672 (until_next_command, finish_command)
2673 (proceed_after_attach_callback, attach_command_post_wait)
2674 (attach_command): Adjust clear_proceed_status call.
2675 * infrun.c (proceed_after_vfork_done): Likewise.
2676 (proceed_after_attach_callback): Adjust comment.
2677 (clear_proceed_status_thread): Clear stop_signal if not in pass
2679 (clear_proceed_status_callback): Delete.
2680 (clear_proceed_status): New 'step' parameter. Only clear the
2681 proceed status of threads the command being prepared is about to
2683 (proceed): If passed in an explicit signal, override stop_signal
2684 with it. Don't pass the last stop signal to the thread we're
2686 (init_wait_for_inferior): Adjust clear_proceed_status call.
2687 (switch_back_to_stepped_thread): Clear the signal if it should not
2689 * infrun.h (clear_proceed_status): New 'step' parameter.
2690 (user_visible_resume_ptid): Add comment.
2691 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2692 signal is in pass state.
2693 * remote.c (append_pending_thread_resumptions): Likewise.
2694 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2696 2014-07-25 Tom Tromey <tromey@redhat.com>
2698 * target.h (target_stopped_data_address)
2699 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2702 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2704 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2706 (avr_pointer_to_address): Likewise.
2708 2014-07-24 Tom Tromey <tromey@redhat.com>
2710 * monitor.c (compile_pattern): Update.
2711 * target.h (struct target_ops) <to_shortname, to_longname,
2714 2014-07-24 Tom Tromey <tromey@redhat.com>
2716 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2717 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2718 (add_info_alias, add_com): Make "doc" const.
2719 (print_doc_line): Make "str" const.
2720 (delete_cmd): Update.
2721 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2722 (print_doc_line): Update.
2723 * cli/cli-script.c (document_command): Update.
2724 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2725 (add_com, add_info, add_info_alias): Update.
2726 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2727 * python/py-cmd.c (cmdpy_destroyer): Update.
2729 2014-07-24 Tom Tromey <tromey@redhat.com>
2731 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2732 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2733 (help_cmd_list): Constify.
2734 (lookup_cmd): Update.
2735 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2737 (help_cmd_list, apropos_cmd): Update.
2738 * cli/cli-script.c (show_user): Update.
2739 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2740 * cli/cli-setshow.h (cmd_show_list): Update.
2741 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2742 (cmd_show_list): Update.
2743 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2744 * python/py-cmd.c (cmdpy_destroyer): Update.
2746 2014-07-24 Tom Tromey <tromey@redhat.com>
2748 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2749 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2751 * command.h (deprecate_cmd): Update.
2752 * maint.c (maintenance_do_deprecate): Add casts.
2754 2014-07-24 Tom Tromey <tromey@redhat.com>
2756 * cli/cli-decode.c (help_cmd): Make parameter "const".
2757 * cli/cli-decode.h (help_cmd): Update.
2759 2014-07-24 Tom Tromey <tromey@redhat.com>
2761 * stack.c (up_silently_base, down_silently_base): Make argument
2764 2014-07-24 Tom Tromey <tromey@redhat.com>
2766 * solib.c (solib_add): Make "pattern" const.
2767 * solib.h (solib_add): Update.
2769 2014-07-24 Tom Tromey <tromey@redhat.com>
2771 * remote.c (remote_serial_open, print_packet, putpkt)
2772 (putpkt_binary): Constify.
2773 * remote.h (putpkt): Update.
2775 2014-07-24 Tom Tromey <tromey@redhat.com>
2777 * monitor.c (monitor_open): Make "args" const.
2778 * monitor.h (monitor_open): Update.
2780 2014-07-24 Tom Tromey <tromey@redhat.com>
2782 * maint.c (match_bfd_flags): Make "string" const.
2783 (print_bfd_section_info): Remove casts.
2784 (print_objfile_section_info): Make "string" const.
2786 2014-07-24 Tom Tromey <tromey@redhat.com>
2788 * inf-child.c (inf_child_open_target): Make "arg" const.
2789 * inf-child.h (inf_child_open_target): Update.
2791 2014-07-24 Tom Tromey <tromey@redhat.com>
2793 * environ.c (unset_in_environ): Make "var" const.
2794 * environ.h (unset_in_environ): Update.
2796 2014-07-24 Tom Tromey <tromey@redhat.com>
2798 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2800 (scan_filename_with_cleanup): Likewise.
2801 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2802 Make arguments const.
2803 (restore_command): Update.
2805 2014-07-24 Pedro Alves <palves@redhat.com>
2807 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2809 2014-07-24 Tom Tromey <tromey@redhat.com>
2810 Gary Benson <gbenson@redhat.com>
2812 * nat/linux-ptrace.c (additional_flags): New global.
2813 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2814 additional_flags; don't check GDBSERVER.
2815 (linux_ptrace_set_additional_flags): New function.
2816 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2818 * linux-nat.c (_initialize_linux_nat): Call
2819 linux_ptrace_set_additional_flags.
2821 2014-07-24 Tom Tromey <tromey@redhat.com>
2823 * make-target-delegates (munge_type, write_debugmethod): New
2825 (debug_names): New global.
2826 ($TARGET_DEBUG_PRINTER): New global.
2827 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2829 Write debug methods. Generate init_debug_target.
2830 * target-debug.h: New file.
2831 * target-delegates.c: Rebuild.
2832 * target.c: Include target-debug.h.
2833 (debug_target): Hoist definition.
2834 (target_kill, target_get_section_table, target_memory_map)
2835 (target_flash_erase, target_flash_done, target_detach)
2836 (target_disconnect, target_wait, target_resume)
2837 (target_pass_signals, target_program_signals, target_follow_fork)
2838 (target_mourn_inferior, target_search_memory)
2839 (target_thread_address_space, target_close)
2840 (target_find_new_threads, target_core_of_thread)
2841 (target_verify_memory, target_insert_mask_watchpoint)
2842 (target_remove_mask_watchpoint): Remove targetdebug code.
2843 (debug_to_post_attach, debug_to_prepare_to_store)
2844 (debug_to_files_info, debug_to_insert_breakpoint)
2845 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2846 (debug_to_region_ok_for_hw_watchpoint)
2847 (debug_to_can_accel_watchpoint_condition)
2848 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2849 (debug_to_watchpoint_addr_within_range)
2850 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2851 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2852 (debug_to_terminal_init, debug_to_terminal_inferior)
2853 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2854 (debug_to_terminal_save_ours, debug_to_terminal_info)
2855 (debug_to_load, debug_to_post_startup_inferior)
2856 (debug_to_insert_fork_catchpoint)
2857 (debug_to_remove_fork_catchpoint)
2858 (debug_to_insert_vfork_catchpoint)
2859 (debug_to_remove_vfork_catchpoint)
2860 (debug_to_insert_exec_catchpoint)
2861 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2862 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2863 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2864 (setup_target_debug): Call init_debug_target.
2865 * target.h (TARGET_DEBUG_PRINTER): New macro.
2866 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2867 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2869 2014-07-24 Gary Benson <gbenson@redhat.com>
2871 * exceptions.h (throw_vfatal): Renamed to...
2872 (throw_vquit): New declaration.
2873 (throw_quit): Likewise.
2874 * exceptions.c (throw_vfatal): Renamed to...
2875 (throw_vquit): New function.
2876 (throw_quit): Likewise.
2877 (throw_error): Call throw_verror rather than throw_it.
2878 * utils.h (vfatal): Removed.
2880 * utils.c (vfatal): Removed.
2882 (internal_verror): Replaced call to fatal with call to throw_quit.
2883 (quit): Replaced calls to fatal with calls to throw_quit.
2885 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2887 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2890 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2892 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2893 less than zero in conditional expression.
2895 2014-07-23 Tom Tromey <tromey@redhat.com>
2897 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2898 ($INTRO_PART): Don't match whitespace.
2899 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2901 ($METHOD): Add $METHOD_TRAILER.
2903 (scan_target_h): New sub.
2904 Change main loop not to collect state.
2905 * target-delegates.c: Rebuild.
2907 2014-07-23 Gary Benson <gbenson@redhat.com>
2909 * cp-support.c (gdb_demangle): Fix build on systems without
2912 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2914 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2915 for reference entry value target data value.
2917 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2919 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2920 value_available_contents_eq.
2922 2014-07-22 Pedro Alves <palves@redhat.com>
2924 * value.c (allocate_optimized_out_value): Don't mark value as
2927 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2929 * MAINTAINERS (Write After Approval): Update my email address.
2931 2014-07-20 Doug Evans <dje@google.com>
2934 * remote.c (putpkt_binary): Add text to error message.
2936 2014-07-20 Yao Qi <yao@codesourcery.com>
2938 * eval.c: Remove "Chill" from comments.
2939 * gdbtypes.h: Likewise.
2940 * symtab.h: Likewise.
2942 2014-07-20 Yao Qi <yao@codesourcery.com>
2944 * std-operator.def: Update comments to TERNOP_SLICE.
2946 2014-07-20 Yao Qi <yao@codesourcery.com>
2948 * std-operator.def: Remove BINOP_RANGE.
2949 * breakpoint.c (watchpoint_exp_is_const): Update.
2950 * expprint.c (dump_subexp_body_standard): Likewise.
2951 * eval.c (init_array_element): Remove dead code.
2952 (evaluate_subexp_standard): Likewise.
2954 2014-07-20 Yao Qi <yao@codesourcery.com>
2956 * std-operator.def: Remove BINOP_IN.
2957 * breakpoint.c (watchpoint_exp_is_const): Update.
2958 * eval.c (evaluate_subexp_standard): Likewise.
2959 * expprint.c (dump_subexp_body_standard): Likewise.
2961 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2963 * microblaze-tdep.c (microblaze_register_names): Add
2964 the rshr and rslr register names.
2965 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2966 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2967 Use of tdesc_numbered_register. Use of
2968 microblaze_register_g_packet_guesses. Use of
2969 tdesc_use_registers. Use of set_gdbarch_register_type.
2970 (microblaze_register_g_packet_guesses): New.
2971 * microblaze-tdep.h (microblaze_reg_num): Add
2972 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2973 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2974 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2975 * features/microblaze-core.xml: New file.
2976 * features/microblaze-stack-protect.xml: New file.
2977 * features/microblaze-with-stack-protect.c: New file.
2978 * features/microblaze-with-stack-protect.xml: New file.
2979 * features/microblaze.xml: New file.
2980 * features/microblaze.c: New file.
2981 * features/Makefile (microblaze-with-stack-protect): Add
2982 microblaze-with-stack-protect microblaze and microblaze-expedite.
2983 * regformats/microblaze-with-stack-protect.dat: New file.
2984 * regformats/microblaze.dat: New file.
2985 * doc/gdb.texinfo (MicroBlaze Features): Added.
2987 2014-07-18 Tom Tromey <tromey@redhat.com>
2989 * exec.c (exec_ops): Now static.
2990 * exec.h (exec_ops): Don't declare.
2992 2014-07-18 Tom Tromey <tromey@redhat.com>
2994 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2995 to find_target_beneath.
2996 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2997 find_target_beneath.
2998 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3000 2014-07-18 Tom Tromey <tromey@redhat.com>
3003 * utils.c (quit): Use target_supports_terminal_ours.
3004 * target.h (target_supports_terminal_ours): Declare.
3005 * target.c (target_supports_delete_record): Don't check
3006 to_delete_record against NULL.
3007 (target_supports_terminal_ours): New function.
3009 2014-07-18 Tom Tromey <tromey@redhat.com>
3012 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3013 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3014 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3015 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3016 * windows-nat.c (windows_xfer_partial): Always delegate.
3017 * record-btrace.c (record_btrace_xfer_partial): Simplify
3019 (record_btrace_fetch_registers, record_btrace_store_registers)
3020 (record_btrace_prepare_to_store, record_btrace_resume)
3021 (record_btrace_wait, record_btrace_find_new_threads)
3022 (record_btrace_thread_alive): Likewise.
3023 * procfs.c (procfs_xfer_partial): Always delegate.
3024 * corelow.c (core_xfer_partial): Always delegate.
3025 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3027 2014-07-18 Tom Tromey <tromey@redhat.com>
3029 * exec.c (exec_make_note_section): Move earlier.
3031 2014-07-17 Doug Evans <dje@google.com>
3034 * maint.c (count_symtabs_and_blocks): Handle NULL
3035 current_program_space.
3036 (report_command_stats): Check global enabled flag in addition to
3037 recorded enabled flag.
3038 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3040 2014-07-16 Pedro Alves <palves@redhat.com>
3042 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3044 2014-07-16 Tom Tromey <tromey@redhat.com>
3046 * target.h (struct target_ops) <to_delete_record>: Reformat
3049 2014-07-16 Tom Tromey <tromey@redhat.com>
3051 * target-delegates.c: Rebuild.
3053 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3055 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3056 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3057 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3058 (avr_pointer_to_address): Likewise.
3059 (avr_address_class_type_flags): New function.
3060 (avr_address_class_type_flags_to_name): Likewise.
3061 (avr_address_class_name_to_type_flags): Likewise.
3062 (avr_gdbarch_init): Set address_class_type_flags,
3063 address_class_type_flags_to_name and
3064 address_class_name_to_type_flags.
3066 2014-07-15 Pedro Alves <palves@redhat.com>
3068 * linux-nat.c (kill_callback): Save errno and work with saved
3071 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3073 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3075 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3077 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3078 breakpoint support correctly.
3080 2014-07-14 Pedro Alves <palves@redhat.com>
3082 * utils.c (prompt_for_continue): Call target_terminal_ours.
3084 2014-07-14 Pedro Alves <palves@redhat.com>
3086 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3087 catch_errors. Don't re-enable stdin or notify observers where,
3089 (fetch_inferior_event_wrapper): Delete.
3091 2014-07-14 Pedro Alves <palves@redhat.com>
3094 * top.c: Include "inf-loop.h".
3095 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3097 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3099 (gdb_readline_wrapper): Store whether the target is async, and
3102 2014-07-14 Pedro Alves <palves@redhat.com>
3105 * top.c (gdb_readline_wrapper_line): Tweak comment.
3106 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3107 the input handler callback.
3109 2014-07-14 Pedro Alves <palves@redhat.com>
3112 * main.c: Include event-top.h.
3113 (handle_command_errors): New function.
3114 (catch_command_errors, catch_command_errors_const): Use it.
3116 2014-07-14 Pedro Alves <palves@redhat.com>
3118 * exceptions.c (catch_command_errors, catch_command_errors_const):
3120 * exceptions.h (catch_command_errors_ftype)
3121 (catch_command_errors_const_ftype): Moved to main.c.
3122 (catch_command_errors, catch_command_errors_const): Delete
3124 * main.c (catch_command_errors_ftype)
3125 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3126 (catch_command_errors, catch_command_errors_const)): Moved here
3127 from exceptions.c and make static.
3129 2014-07-14 Pedro Alves <palves@redhat.com>
3131 * exceptions.c (print_any_exception): Delete.
3132 (catch_exceptions_with_msg): Use exception_print instead of
3133 print_any_exception.
3134 (catch_errors): Use exception_fprintf instead of
3135 print_any_exception.
3136 (catch_command_errors, catch_command_errors_const): Use
3137 exception_print instead of print_any_exception.
3139 2014-07-14 Pedro Alves <palves@redhat.com>
3141 * infcall.c (run_inferior_call): Set 'sync_execution' while
3142 running the inferior call.
3144 2014-07-14 Pedro Alves <palves@redhat.com>
3146 * value.c (value_contents_equal): Delete function.
3147 * value.h (value_contents_equal): Delete declaration.
3149 2014-07-14 Tom Tromey <tromey@redhat.com>
3152 * gdbtypes.c (is_dynamic_type_internal): New function, from
3154 (is_dynamic_type): Rewrite.
3155 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3156 (resolve_dynamic_struct): Likewise.
3157 (resolve_dynamic_type_internal): New function, from
3158 resolve_dynamic_type.
3159 (resolve_dynamic_type): Rewrite.
3161 2014-07-14 Tom Tromey <tromey@redhat.com>
3163 * target.c (target_require_runnable): Also check record_stratum.
3166 2014-07-11 Yao Qi <yao@codesourcery.com>
3168 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3169 thumb_instruction_restores_sp return true.
3171 2014-07-11 Yao Qi <yao@codesourcery.com>
3173 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3174 (thumb_in_function_epilogue_p): Call
3175 thumb_instruction_restores_sp.
3177 2014-07-11 Yao Qi <yao@codesourcery.com>
3179 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3181 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3183 2014-07-11 Gary Benson <gbenson@redhat.com>
3185 * amd64-linux-nat.c (gdbcore.h): Remove include.
3186 (regset.h): Likewise.
3187 (nat/linux-btrace.h): Likewise.
3188 (btrace.h): Likewise.
3189 (gdb_assert.h): Likewise.
3190 (string.h): Likewise.
3191 (sys/uio.h): Likewise.
3192 (sys/debugreg.h): Likewise.
3193 (sys/syscall.h): Likewise.
3194 (sys/procfs.h): Likewise.
3195 (sys/user.h): Likewise.
3196 (asm/ptrace.h): Likewise.
3197 (i386-nat.h): Likewise.
3198 * i386-linux-nat.c (i386-nat.h): Likewise.
3199 (regset.h): Likewise.
3200 (target.h): Likewise.
3201 (linux-nat.h): Likewise.
3202 (nat/linux-btrace.h): Likewise.
3203 (btrace.h): Likewise.
3204 (gdb_assert.h): Likewise.
3205 (string.h): Likewise.
3206 (sys/uio.h): Likewise.
3207 (sys/user.h): Likewise.
3208 (sys/procfs.h): Likewise.
3209 (sys/reg.h): Likewise.
3210 (sys/debugreg.h): Likewise.
3211 (ORIG_EAX): Remove definition.
3213 2014-07-11 Gary Benson <gbenson@redhat.com>
3215 * i386-linux-nat.h: New file.
3216 * x86-linux-nat.h: Likewise.
3217 * x86-linux-nat.c: Likewise.
3218 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3219 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3220 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3221 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3222 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3223 (PTRACE_SETREGSET): Likewise.
3224 (arch_lwp_info): Now in x86-linux-nat.c.
3225 (have_ptrace_getregset): Now in x86-linux-nat.h.
3226 (x86_linux_dr_get): Now in x86-linux-nat.c.
3227 (x86_linux_dr_set): Likewise.
3228 (x86_linux_dr_get_addr): Likewise.
3229 (x86_linux_dr_get_control): Likewise.
3230 (x86_linux_dr_get_status): Likewise.
3231 (update_debug_registers_callback): Likewise.
3232 (x86_linux_dr_set_control): Likewise.
3233 (x86_linux_dr_set_addr): Likewise.
3234 (x86_linux_prepare_to_resume): Likewise.
3235 (x86_linux_new_thread): Likewise.
3236 (x86_linux_new_fork): Likewise.
3237 (x86_linux_get_thread_area): Likewise.
3238 (super_post_startup_inferior): Likewise.
3239 (x86_linux_child_post_startup_inferior): Likewise.
3240 (AMD64_LINUX_USER64_CS): Likewise.
3241 (AMD64_LINUX_X32_DS): Likewise.
3242 (x86_linux_read_description): Likewise.
3243 (x86_linux_enable_btrace): Likewise.
3244 (x86_linux_disable_btrace): Likewise.
3245 (x86_linux_teardown_btrace): Likewise.
3246 (x86_linux_read_btrace): Likewise.
3247 (x86_linux_create_target): Likewise.
3248 (x86_linux_add_target): Likewise.
3249 * i386-linux-nat.c (x86-linux-nat.h): New include.
3250 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3251 (PTRACE_SETREGSET): Likewise.
3252 (arch_lwp_info): Now in x86-linux-nat.c.
3253 (have_ptrace_getregset): Now in x86-linux-nat.h.
3254 (x86_linux_dr_get): Now in x86-linux-nat.c.
3255 (x86_linux_dr_set): Likewise.
3256 (x86_linux_dr_get_addr): Likewise.
3257 (x86_linux_dr_get_control): Likewise.
3258 (x86_linux_dr_get_status): Likewise.
3259 (update_debug_registers_callback): Likewise.
3260 (x86_linux_dr_set_control): Likewise.
3261 (x86_linux_dr_set_addr): Likewise.
3262 (x86_linux_prepare_to_resume): Likewise.
3263 (x86_linux_new_thread): Likewise.
3264 (x86_linux_new_fork): Likewise.
3265 (x86_linux_get_thread_area): Likewise.
3266 (super_post_startup_inferior): Likewise.
3267 (x86_linux_child_post_startup_inferior): Likewise.
3268 (AMD64_LINUX_USER64_CS): Likewise.
3269 (AMD64_LINUX_X32_DS): Likewise.
3270 (x86_linux_read_description): Likewise.
3271 (x86_linux_enable_btrace): Likewise.
3272 (x86_linux_disable_btrace): Likewise.
3273 (x86_linux_teardown_btrace): Likewise.
3274 (x86_linux_read_btrace): Likewise.
3275 (x86_linux_create_target): Likewise.
3276 (x86_linux_add_target): Likewise.
3278 2014-07-11 Gary Benson <gbenson@redhat.com>
3280 * amd64-linux-nat.c: Comment and whitespace changes.
3281 * i386-linux-nat.c: Comment and whitespace changes.
3283 2014-07-11 Gary Benson <gbenson@redhat.com>
3285 * amd64-linux-nat.c (x86_linux_create_target): New function.
3286 (x86_linux_add_target): Likewise.
3287 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3288 * i386-linux-nat.c (x86_linux_create_target): New function.
3289 (x86_linux_add_target): Likewise.
3290 (_initialize_i386_linux_nat): Delegate to the above new functions.
3292 2014-07-11 Gary Benson <gbenson@redhat.com>
3294 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3295 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3296 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3297 (ps_get_thread_area): Delegate to the above.
3299 2014-07-11 Gary Benson <gbenson@redhat.com>
3301 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3302 x86_linux_read_description. All uses updated. amd64-specific
3303 code conditionalized. Conditionalized i386-specific code added.
3304 Redundant cast removed.
3305 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3306 x86_linux_read_description. All uses updated. i386-specific
3307 code conditionalized. Conditionalized amd64-specific code added.
3308 One sizeof replaced with the actual type it is describing.
3310 2014-07-11 Gary Benson <gbenson@redhat.com>
3312 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3313 x86_linux_dr_get. All uses updated.
3314 (amd64_linux_dr_set): Renamed to
3315 x86_linux_dr_set. All uses updated.
3316 (amd64_linux_dr_get_addr): Renamed to
3317 x86_linux_dr_get_addr. All uses updated.
3318 (amd64_linux_dr_get_control): Renamed to
3319 x86_linux_dr_get_control. All uses updated.
3320 (amd64_linux_dr_get_status): Renamed to
3321 x86_linux_dr_get_status. All uses updated.
3322 (amd64_linux_dr_set_control): Renamed to
3323 x86_linux_dr_set_control. All uses updated.
3324 (amd64_linux_dr_set_addr): Renamed to
3325 x86_linux_dr_set_addr. All uses updated.
3326 (amd64_linux_prepare_to_resume): Renamed to
3327 x86_linux_prepare_to_resume. All uses updated.
3328 (amd64_linux_new_thread): Renamed to
3329 x86_linux_new_thread. All uses updated.
3330 (amd64_linux_new_fork): Renamed to
3331 x86_linux_new_fork. All uses updated.
3332 (amd64_linux_child_post_startup_inferior): Renamed to
3333 x86_linux_child_post_startup_inferior. All uses updated.
3334 (amd64_linux_enable_btrace): Renamed to
3335 x86_linux_enable_btrace. All uses updated.
3336 (amd64_linux_disable_btrace): Renamed to
3337 x86_linux_disable_btrace. All uses updated.
3338 (amd64_linux_teardown_btrace): Renamed to
3339 x86_linux_teardown_btrace. All uses updated.
3340 (amd64_linux_read_btrace): Renamed to
3341 x86_linux_read_btrace. All uses updated.
3342 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3343 x86_linux_dr_get. All uses updated.
3344 (i386_linux_dr_set): Renamed to
3345 x86_linux_dr_set. All uses updated.
3346 (i386_linux_dr_get_addr): Renamed to
3347 x86_linux_dr_get_addr. All uses updated.
3348 (i386_linux_dr_get_control): Renamed to
3349 x86_linux_dr_get_control. All uses updated.
3350 (i386_linux_dr_get_status): Renamed to
3351 x86_linux_dr_get_status. All uses updated.
3352 (i386_linux_dr_set_control): Renamed to
3353 x86_linux_dr_set_control. All uses updated.
3354 (i386_linux_dr_set_addr): Renamed to
3355 x86_linux_dr_set_addr. All uses updated.
3356 (i386_linux_prepare_to_resume): Renamed to
3357 x86_linux_prepare_to_resume. All uses updated.
3358 (i386_linux_new_thread): Renamed to
3359 x86_linux_new_thread. All uses updated.
3360 (i386_linux_new_fork): Renamed to
3361 x86_linux_new_fork. All uses updated.
3362 (i386_linux_child_post_startup_inferior): Renamed to
3363 x86_linux_child_post_startup_inferior. All uses updated.
3364 (i386_linux_enable_btrace): Renamed to
3365 x86_linux_enable_btrace. All uses updated.
3366 (i386_linux_disable_btrace): Renamed to
3367 x86_linux_disable_btrace. All uses updated.
3368 (i386_linux_teardown_btrace): Renamed to
3369 x86_linux_teardown_btrace. All uses updated.
3370 (i386_linux_read_btrace): Renamed to
3371 x86_linux_read_btrace. All uses updated.
3373 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3375 * remote.c (extended_remote_post_attach): New function.
3376 (init_extended_remote_ops): Install it as to_post_attach method.
3378 2014-07-09 Pedro Alves <palves@redhat.com>
3380 * infcmd.c (attach_command_post_wait): Don't call
3381 target_terminal_inferior here.
3382 (attach_command): Call it here instead.
3384 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3386 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3388 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3389 from varobj.c, with additional checks.
3390 (c_varobj_ops): Fill in is_path_expr_parent field.
3391 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3392 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3394 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3396 (varobj_default_is_path_expr_parent): New function.
3397 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3398 (varobj_default_is_path_expr_parent): Declare new function.
3400 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3402 * infcmd.c (finish_backward): Turn internal error into normal error.
3404 2014-07-07 Pedro Alves <palves@redhat.com>
3407 * remote.c (async_handle_remote_sigint)
3408 (async_handle_remote_sigint_twice): Call
3409 gdb_call_async_signal_handler instead of
3410 mark_async_signal_handler.
3412 2014-07-07 Tom Tromey <tromey@redhat.com>
3414 * target-delegates.c: Rebuild.
3415 * target.c (target_info_record): Remove.
3416 * record.c (info_record_command): Unconditionally call
3418 * target.h (struct target_ops) <to_info_record>: Use
3419 TARGET_DEFAULT_IGNORE.
3420 (target_info_record): Remove.
3422 2014-07-07 Tom Tromey <tromey@redhat.com>
3424 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3425 TARGET_DEFAULT_NORETURN.
3426 * target.c (generic_tls_error): New function.
3427 (target_translate_tls_address): Don't search target stack.
3428 * target-delegates.c: Rebuild.
3429 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3431 * linux-thread-db.c (thread_db_get_thread_local_address):
3432 Unconditionally call beneath target.
3434 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3436 * cli/cli-logging.c (pop_output_files): Assign targerr to
3439 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3441 * MAINTAINERS (Write After Approval): Update my email address.
3443 2014-07-02 Gary Benson <gbenson@redhat.com>
3445 * proc-service.c (ps_xfer_memory): Update comment.
3446 (ps_pstop): Remove unused function.
3447 (ps_pcontinue): Likewise.
3448 (ps_lstop): Likewise.
3449 (ps_lcontinue): Likewise.
3450 (ps_lgetxregsize): Likewise.
3451 (ps_lgetxregs): Likewise.
3452 (ps_lsetxregs): Likewise.
3453 (ps_plog): Likewise.
3454 (ps_ptread): Likewise.
3455 (ps_ptwrite): Likewise.
3457 2014-07-01 Mark Wielaard <mjw@redhat.com>
3459 * dwarf2read.c (add_array_cv_type): New function.
3460 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3461 (read_tag_volatile_type): Likewise.
3463 2014-07-01 Tom Tromey <tromey@redhat.com>
3465 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3466 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3467 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3468 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3469 * command.h (cmd_cfunc_ftype): Move earlier.
3470 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3471 (add_com, add_info): Use cmd_cfunc_ftype.
3473 2014-06-30 Tom Tromey <tromey@redhat.com>
3475 * symtab.c (operator_chars): Make parameters and return type
3477 (file_matches): Make "files" const.
3478 (struct search_symbols_data) <files>: Now const.
3479 (search_symbols): Make "regexp" and "files" parameters const.
3481 (symtab_symbol_info): Remove cast.
3482 (rbreak_command): Update.
3483 * symtab.h (search_symbols): Update.
3485 2014-06-27 Yao Qi <yao@codesourcery.com>
3487 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3488 Change parameter type to 'struct thread_info *'. Caller
3490 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3492 * dummy-frame.c (struct dummy_frame_id): New.
3493 (dummy_frame_id_eq): New function.
3494 (struct dummy_frame) <id>: Change its type to 'struct
3496 (dummy_frame_push): Add parameter ptid and save it in
3498 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3500 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3502 (lookup_dummy_frame): Change parameter type to 'struct
3503 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3504 instead of frame_id_eq.
3505 (dummy_frame_pop): Add parameter ptid. Callers updated.
3506 Update comments. Compose dummy_frame_id and pass it to
3508 (dummy_frame_discard): Add parameter ptid.
3509 (dummy_frame_sniffer): Compose dummy_frame_id and call
3510 dummy_frame_id_eq instead of frame_id_eq.
3511 (fprint_dummy_frames): Print ptid.
3512 * dummy-frame.h: Remove comments.
3513 (dummy_frame_push): Add ptid in declaration.
3514 (dummy_frame_pop, dummy_frame_discard): Likewise.
3516 2014-06-26 Tom Tromey <tromey@redhat.com>
3518 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3519 * command.h (error_no_arg): Update.
3521 2014-06-26 Tom Tromey <tromey@redhat.com>
3523 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3524 (do_show_command): Make "arg" const.
3525 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3527 2014-06-26 Tom Tromey <tromey@redhat.com>
3529 * record-full.c (record_full_get_bookmark): Make "args" const.
3530 (record_full_goto_bookmark): Make "raw_bookmark" const.
3531 * record.c (record_goto): New function.
3532 (cmd_record_goto): Use it. Now static.
3533 * record.h (record_goto): Declare.
3534 (cmd_record_goto): Remove declaration.
3535 * target-delegates.c: Rebuild.
3536 * target.h (struct target_ops) <to_get_bookmark,
3537 to_goto_bookmark>: Make parameter const.
3539 2014-06-26 Tom Tromey <tromey@redhat.com>
3541 * defs.h (generic_load): Update.
3542 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3543 * monitor.c (monitor_load): Make "args" const.
3544 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3545 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3547 (mips_load): Make "file" const.
3548 * remote-sim.c (gdbsim_load): Make "args" const.
3549 * remote.c (remote_load): Make "name" const.
3550 * symfile.c (generic_load): Make "args" const.
3551 * target-delegates.c: Rebuild.
3552 * target.c (target_load): Make "arg" const.
3553 (debug_to_load): Make "args" const.
3554 * target.h (struct target_ops) <to_load>: Make parameter const.
3555 (target_load): Update.
3557 2014-06-26 Tom Tromey <tromey@redhat.com>
3560 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3561 (dwarf2_physname, read_partial_die)
3562 (guess_partial_die_structure_name, fixup_partial_die)
3563 (guess_full_die_structure_name, anonymous_struct_prefix)
3564 (dwarf2_name): Use per-BFD obstack.
3566 2014-06-26 Yao Qi <yao@codesourcery.com>
3568 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3569 dummyframe and this_id into inner block below.
3571 2014-06-26 Yao Qi <yao@codesourcery.com>
3573 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3574 with "signal_pass[0]" in the initialization of signal_pass.
3576 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3578 * record-btrace.c (record_btrace_generating_corefile)
3579 (record_btrace_prepare_to_generate_core)
3580 (record_btrace_done_generating_core): New.
3581 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3582 (record_btrace_store_registers, record_btrace_prepare_to_store):
3583 Forward request when generating a core file.
3584 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3585 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3586 to_done_generating_core.
3588 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3590 * target.h (target_ops) <to_prepare_to_generate_core>
3591 <to_done_generating_core>: New.
3592 (target_prepare_to_generate_core, target_done_generating_core): New.
3593 * target.c (target_prepare_to_generate_core)
3594 (target_done_generating_core): New.
3595 * target-delegates.c: Regenerate.
3596 * gcore.c: (write_gcore_file): Rename to ...
3597 (write_gcore_file_1): ...this.
3598 (write_gcore_file): Call target_prepare_to_generate_core
3599 and target_done_generating_core.
3601 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3603 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3604 * gcore.c (write_gcore_file): Free memory returned from
3605 make_corefile_notes.
3606 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3607 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3609 2014-06-24 Yao Qi <yao@codesourcery.com>
3611 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3612 (arm_linux_init_abi): Set skip_trampoline_code with
3613 gdbarch_skip_trampoline_code instead of
3614 find_solib_trampoline_target.
3616 2014-06-24 Yao Qi <yao@codesourcery.com>
3618 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3619 arm_skip_bx_reg returns non-zero.
3621 2014-06-24 Yao Qi <yao@codesourcery.com>
3623 * arm-tdep.c (arm_skip_bx_reg): New function.
3624 (arm_skip_stub): Call arm_skip_bx_reg.
3626 2014-06-23 Don Breazeal <donb@codesourcery.com>
3628 * MAINTAINERS: Add myself as write-after-approval maintainer.
3630 2014-06-23 Pedro Alves <palves@redhat.com>
3632 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3633 DR_CONTROL before setting DR0..DR3.
3634 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3635 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3636 bits of DR_CONTROL related to the debug register slot being
3637 disabled. If all slots are vacant, clear local slowdown as well,
3638 and assert DR_CONTROL is 0.
3640 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3642 * python/lib/gdb/command/xmethods.py
3643 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3644 current progspace only if the string "progspace" matches LOCUS_RE.
3646 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3648 Fix --with-system-readline with readline-6.3 patch 5.
3649 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3650 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3653 2014-06-20 Tom Tromey <tromey@redhat.com>
3655 * dwarf2read.c (dw2_get_real_path): Use correct type in
3657 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3659 2014-06-20 Gary Benson <gbenson@redhat.com>
3661 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3662 * common/glibc_thread_db.h: Likewise.
3663 * common/i386-cpuid.h: Likewise.
3664 * common/i386-gcc-cpuid.h: Likewise.
3665 * common/linux-btrace.h: Likewise.
3666 * common/linux-osdata.h: Likewise.
3667 * common/linux-procfs.h: Likewise.
3668 * common/linux-ptrace.h: Likewise.
3669 * common/mips-linux-watch.h: Likewise.
3670 * common/linux-btrace.c: Moved to nat.
3671 * common/linux-osdata.c: Likewise.
3672 * common/linux-procfs.c: Likewise.
3673 * common/linux-ptrace.c: Likewise.
3674 * common/mips-linux-watch.c: Likewise.
3675 * nat/gdb_thread_db.h: Moved from common.
3676 * nat/glibc_thread_db.h: Likewise.
3677 * nat/i386-cpuid.h: Likewise.
3678 * nat/i386-gcc-cpuid.h: Likewise.
3679 * nat/linux-btrace.c: Likewise.
3680 * nat/linux-btrace.h: Likewise.
3681 * nat/linux-osdata.c: Likewise.
3682 * nat/linux-osdata.h: Likewise.
3683 * nat/linux-procfs.c: Likewise.
3684 * nat/linux-procfs.h: Likewise.
3685 * nat/linux-ptrace.c: Likewise.
3686 * nat/linux-ptrace.h: Likewise.
3687 * nat/mips-linux-watch.c: Likewise.
3688 * nat/mips-linux-watch.h: Likewise.
3689 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3690 (object file files): Reordered.
3691 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3692 of glibc_thread_db.h.
3694 2014-06-20 Gary Benson <gbenson@redhat.com>
3696 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3697 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3698 (i386_dr_low): Likewise.
3699 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3700 (i386_dr_low_set_addr): Likewise.
3701 (i386_dr_low_get_addr): Likewise.
3702 (i386_dr_low_can_set_control): Likewise.
3703 (i386_dr_low_set_control): Likewise.
3704 (i386_dr_low_get_control): Likewise.
3705 (i386_dr_low_get_status): Likewise.
3706 (i386_get_debug_register_length): Likewise.
3707 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3708 (i386_dr_low): Likewise.
3709 * nat/i386-dregs.c (i386-low.h): Remove include.
3710 (i386-nat.h): Likewise.
3711 (nat/i386-dregs.h): New include.
3712 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3713 (i386_dr_low_set_addr): Likewise.
3714 (i386_dr_low_get_addr): Likewise.
3715 (i386_dr_low_can_set_control): Likewise.
3716 (i386_dr_low_set_control): Likewise.
3717 (i386_dr_low_get_control): Likewise.
3718 (i386_dr_low_get_status): Likewise.
3719 (i386_get_debug_register_length): Likewise.
3720 (debug_hw_points): Likewise.
3722 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3724 * Makefile.in (SFILES): Add d-exp.y.
3725 (YYFILES): Add d-exp.c.
3726 (YYOBJ): Add d-exp.o.
3727 (local-maintainer-clean): Delete d-exp.c.
3728 * d-exp.y: New file.
3729 * d-lang.h (d_parse): New declaration.
3730 (d_error): New declaration.
3731 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3732 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3733 PREC_ORDER operators.
3734 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3736 2014-06-19 Yao Qi <yao@codesourcery.com>
3738 * gdbthread.h (any_running): Remove the declaration.
3739 * thread.c (any_running): Remove.
3741 2014-06-19 Yao Qi <yao@codesourcery.com>
3743 * gdbthread.h (struct thread_info) <state>: Change its type to
3744 'enum thread_state'. Update comments.
3746 2014-06-19 Pedro Alves <palves@redhat.com>
3748 * gdbthread.h (ALL_THREADS): Delete.
3749 (ALL_NON_EXITED_THREADS): New macro.
3750 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3751 instead of ALL_THREADS.
3752 * infrun.c (find_thread_needs_step_over)
3753 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3754 instead of ALL_THREADS.
3755 * record-btrace.c (record_btrace_open)
3756 (record_btrace_stop_recording, record_btrace_close)
3757 (record_btrace_is_replaying, record_btrace_resume)
3758 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3759 * remote.c (append_pending_thread_resumptions): Likewise.
3760 * thread.c (thread_apply_all_command): Likewise.
3762 2014-06-19 Gary Benson <gbenson@redhat.com>
3764 * i386-nat.c (i386_stopped_by_watchpoint):
3765 Use i386_dr_stopped_by_watchpoint.
3766 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3767 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3769 2014-06-19 Gary Benson <gbenson@redhat.com>
3771 * nat/i386-dregs.c: New file.
3772 * Makefile.in (i386-dregs.o): New rule.
3773 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3774 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3775 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3776 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3777 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3778 * config/i386/go32.mh (NATDEPFILES): Likewise.
3779 * config/i386/linux.mh (NATDEPFILES): Likewise.
3780 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3781 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3782 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3783 * i386-nat.h (debug_hw_points): New declaration.
3784 * i386-nat.c (breakpoint.h): Remove include.
3785 (command.h): Likewise.
3786 (target.h): Likewise.
3787 (gdb_assert.h): Likewise.
3788 (debug_hw_points): Made nonstatic.
3789 (debug_printf): Now in i386-dregs.c.
3790 (TARGET_HAS_DR_LEN_8): Likewise.
3791 (DR_CONTROL_SHIFT): Likewise.
3792 (DR_CONTROL_SIZE): Likewise.
3793 (DR_RW_EXECUTE): Likewise.
3794 (DR_RW_WRITE): Likewise.
3795 (DR_RW_READ): Likewise.
3796 (DR_RW_IORW): Likewise.
3797 (DR_LEN_1): Likewise.
3798 (DR_LEN_2): Likewise.
3799 (DR_LEN_4): Likewise.
3800 (DR_LEN_8): Likewise.
3801 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3802 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3803 (DR_ENABLE_SIZE): Likewise.
3804 (DR_LOCAL_SLOWDOWN): Likewise.
3805 (DR_GLOBAL_SLOWDOWN): Likewise.
3806 (DR_CONTROL_RESERVED): Likewise.
3807 (I386_DR_CONTROL_MASK): Likewise.
3808 (I386_DR_VACANT): Likewise.
3809 (I386_DR_LOCAL_ENABLE): Likewise.
3810 (I386_DR_GLOBAL_ENABLE): Likewise.
3811 (I386_DR_DISABLE): Likewise.
3812 (I386_DR_SET_RW_LEN): Likewise.
3813 (I386_DR_GET_RW_LEN): Likewise.
3814 (I386_DR_WATCH_HIT): Likewise.
3815 (i386_wp_op_t): Likewise.
3816 (i386_show_dr): Likewise.
3817 (i386_length_and_rw_bits): Likewise.
3818 (i386_insert_aligned_watchpoint): Likewise.
3819 (i386_remove_aligned_watchpoint): Likewise.
3820 (i386_handle_nonaligned_watchpoint): Likewise.
3821 (i386_update_inferior_debug_regs): Likewise.
3822 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3823 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3824 (i386_region_ok_for_watchpoint):
3825 Use i386_dr_region_ok_for_watchpoint.
3826 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3828 2014-06-19 Gary Benson <gbenson@redhat.com>
3830 * i386-nat.c (i386_insert_hw_breakpoint): Use
3831 i386_insert_watchpoint.
3832 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3834 2014-06-19 Gary Benson <gbenson@redhat.com>
3836 * i386-nat.c (i386_dr_show): Renamed to
3837 i386_show_dr and made static. All uses updated.
3838 (i386_dr_length_and_rw_bits): Renamed to
3839 i386_length_and_rw_bits and made static.
3841 (i386_dr_insert_aligned_watchpoint): Renamed to
3842 i386_insert_aligned_watchpoint and made static.
3844 (i386_dr_remove_aligned_watchpoint): Renamed to
3845 i386_remove_aligned_watchpoint and made static.
3847 (i386_dr_update_inferior_debug_regs): Renamed to
3848 i386_update_inferior_debug_regs and made static.
3850 * nat/i386-dregs.h (i386_dr_show): Removed.
3851 (i386_dr_length_and_rw_bits): Likewise.
3852 (i386_dr_insert_aligned_watchpoint): Likewise.
3853 (i386_dr_remove_aligned_watchpoint): Likewise.
3854 (i386_dr_update_inferior_debug_regs): Likewise.
3856 2014-06-19 Gary Benson <gbenson@redhat.com>
3858 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3859 * configure: Regenerate.
3860 * config.in: Likewise.
3861 * main.c (signal.h): New include.
3862 (setup_alternate_signal_stack): New function.
3863 (captured_main): Call the above.
3864 * cp-support.c (signal.h): New include.
3865 (catch_demangler_crashes): New flag.
3866 (SIGJMP_BUF): New define.
3867 (SIGSETJMP): Likewise.
3868 (SIGLONGJMP): Likewise.
3869 (gdb_demangle_jmp_buf): New static global.
3870 (gdb_demangle_attempt_core_dump): Likewise.
3871 (gdb_demangle_signal_handler): New function.
3872 (gdb_demangle): If catch_demangler_crashes is set, install the
3873 above signal handler before calling bfd_demangle, and restore
3874 the original signal handler afterwards. Display the offending
3875 symbol and call demangler_warning the first time a segmentation
3877 (_initialize_cp_support): New maint set/show command.
3879 2014-06-19 Gary Benson <gbenson@redhat.com>
3881 * utils.h (resource_limit_kind): New enum.
3882 (can_dump_core): New declaration.
3883 (warn_cant_dump_core): Likewise.
3884 (dump_core): Likewise.
3885 * utils.c (dump_core): Made nonstatic. Added new
3886 parameter "limit_kind".
3887 (can_dump_core): Made nonstatic. Moved printing code to...
3888 (warn_cant_dump_core): New function.
3889 (can_dump_core_warn): Likewise.
3890 (internal_vproblem): Replace calls to can_dump_core with
3891 calls to can_dump_core_warn. Supply new argument to each.
3893 2014-06-19 Gary Benson <gbenson@redhat.com>
3895 * utils.h (demangler_vwarning): New declaration.
3896 (demangler_warning): Likewise.
3897 * utils.c (struct internal_problem)
3898 <user_settable_should_quit>: New field.
3899 <user_settable_should_dump_core>: Likewise
3900 (internal_error_problem): Add values for above new fields.
3901 (internal_warning_problem): Likewise.
3902 (demangler_warning_problem): New static global.
3903 (demangler_vwarning): New function.
3904 (demangler_warning): Likewise.
3905 (add_internal_problem_command): Selectively add commands.
3906 (_initialize_utils): New internal problem command.
3907 * maint.c (maintenance_demangler_warning): New function.
3908 (_initialize_maint_cmds): New command.
3910 2014-06-18 Tom Tromey <tromey@redhat.com>
3912 * f-valprint.c (info_common_command_for_block): Update.
3913 * symtab.h (struct general_symbol_info) <common_block>: Now
3916 2014-06-18 Tom Tromey <tromey@redhat.com>
3918 * symtab.h (struct symtab) <blockvector>: Now const.
3919 * ada-lang.c (ada_add_global_exceptions): Update.
3920 * buildsym.c (augment_type_symtab): Update.
3921 * dwarf2read.c (dw2_lookup_symbol): Update.
3922 * jit.c (finalize_symtab): Update.
3923 * jv-lang.c (add_class_symtab_symbol): Update.
3924 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3926 * objfiles.c (objfile_relocate1): Update.
3927 * psymtab.c (lookup_symbol_aux_psymtabs)
3928 (maintenance_check_psymtabs): Update.
3929 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3931 * spu-tdep.c (spu_catch_start): Update.
3932 * symmisc.c (dump_symtab_1): Update.
3933 * symtab.c (lookup_global_symbol_from_objfile)
3934 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3935 (basic_lookup_transparent_type_quick)
3936 (basic_lookup_transparent_type, find_pc_sect_symtab)
3937 (find_pc_sect_line, search_symbols): Update.
3938 * block.c (find_block_in_blockvector): Make "bl" const.
3939 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3941 (blockvector_contains_pc): Make "bv" const.
3942 (block_for_pc_sect): Update.
3943 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3944 (blockvector_contains_pc): Update.
3945 * breakpoint.c (resolve_sal_pc): Update.
3946 * inline-frame.c (block_starting_point_at): Update.
3948 2014-06-18 Tom Tromey <tromey@redhat.com>
3950 * completer.c (complete_line): Make "line_buffer" const.
3951 * completer.h (complete_line): Update.
3953 2014-06-18 Tom Tromey <tromey@redhat.com>
3955 * symtab.c (add_macro_name): Remove unneeded cast.
3957 2014-06-18 Tom Tromey <tromey@redhat.com>
3959 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3960 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3962 2014-06-18 Tom Tromey <tromey@redhat.com>
3964 * probe.c (info_probes_for_ops): Make "arg" const.
3965 * probe.h (info_probes_for_ops): Update.
3967 2014-06-18 Tom Tromey <tromey@redhat.com>
3969 * varobj.c (varobj_create): Update.
3970 * valops.c (value_of_this): Update.
3971 * tracepoint.c (add_local_symbols, scope_info): Update.
3972 * symtab.h (struct general_symbol_info) <block>: Now const.
3973 * symtab.c (skip_prologue_sal)
3974 (default_make_symbol_completion_list_break_on)
3975 (skip_prologue_using_sal): Update.
3976 * stack.h (iterate_over_block_locals)
3977 (iterate_over_block_local_vars): Update.
3978 * stack.c (print_frame_args): Update.
3979 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3981 (get_selected_block): Make return type const.
3982 * python/py-frame.c (frapy_block): Update.
3983 * python/py-block.c (gdbpy_block_for_pc): Update.
3984 * p-exp.y (%union) <bval>: Now const.
3985 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3986 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3987 * m2-exp.y (%union) <bval>: Now const.
3988 * linespec.c (get_current_search_block): Make return type const.
3989 (create_sals_line_offset, find_label_symbols): Update.
3990 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3992 (block_starting_point_at): Make "block" const.
3993 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3994 (check_exception_resume): Update.
3995 * guile/scm-frame.c (gdbscm_frame_block): Update.
3996 * guile/scm-block.c (gdbscm_lookup_block): Update.
3997 * frame.h (get_frame_block): Update.
3998 (get_selected_block): Make return type const.
3999 * frame.c (frame_id_inner): Update.
4000 * f-valprint.c (info_common_command_for_block)
4001 (info_common_command): Update.
4002 * dwarf2loc.c (dwarf2_find_location_expression)
4003 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4004 (locexpr_describe_location_piece): Update.
4005 * c-exp.y (%union) <bval>: Now const.
4006 * breakpoint.c (resolve_sal_pc): Update.
4007 * blockframe.c (get_frame_block):Make return type const.
4008 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4009 (block_innermost_frame): Update.
4010 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4011 (block_for_pc, block_for_pc_sect): Update.
4012 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4014 (block_for_pc_sect, block_for_pc): Make return type const.
4015 * ax-gdb.c (gen_expr): Update.
4016 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4017 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4018 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4019 (ada_read_var_value): Update.
4020 * ada-exp.y (struct name_info) <block>: Now const.
4022 (block_lookup): Constify.
4024 2014-06-18 Gary Benson <gbenson@redhat.com>
4026 * nat/i386-dregs.h: New file.
4027 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4028 * i386-nat.h (i386-dregs.h): New include.
4029 (DR_FIRSTADDR): Now in i386-dregs.h.
4030 (DR_LASTADDR): Likewise.
4031 (DR_NADDR): Likewise.
4032 (DR_STATUS): Likewise.
4033 (DR_CONTROL): Likewise.
4034 (i386_debug_reg_state): Likewise.
4035 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4037 2014-06-18 Don Breazeal <donb@codesourcery.com>
4039 * breakpoint.c (set_longjmp_breakpoint): Call
4040 momentary_breakpoint_from_master with additional argument.
4041 (set_longjmp_breakpoint_for_call_dummy): Call
4042 momentary_breakpoint_from_master with additional argument.
4043 (set_std_terminate_breakpoint): Call
4044 momentary_breakpoint_from_master with additional argument.
4045 (momentary_breakpoint_from_master): Add argument to function
4046 definition and use it to initialize structure member flag.
4047 (clone_momentary_breakpoint): Call
4048 momentary_breakpoint_from_master with additional argument.
4049 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4050 member flags set in momentary_breakpoint_from_master.
4052 2014-06-18 Gary Benson <gbenson@redhat.com>
4054 * i386-nat.c (i386_show_dr): Renamed to
4055 i386_dr_show and made nonstatic. All uses updated.
4056 (i386_length_and_rw_bits): Renamed to
4057 i386_dr_length_and_rw_bits and made nonstatic.
4059 (i386_insert_aligned_watchpoint): Renamed to
4060 i386_dr_insert_aligned_watchpoint and made nonstatic.
4062 (i386_remove_aligned_watchpoint): Renamed to
4063 i386_dr_remove_aligned_watchpoint and made nonstatic.
4065 (i386_update_inferior_debug_regs): Renamed to
4066 i386_dr_update_inferior_debug_regs and made nonstatic.
4069 2014-06-18 Gary Benson <gbenson@redhat.com>
4071 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4072 (i386_dr_low_can_set_control): Likewise.
4073 (i386_dr_low_set_addr): Likewise.
4074 (i386_dr_low_set_control): Likewise.
4075 (i386_dr_low_get_addr): Likewise.
4076 (i386_dr_low_get_status): Likewise.
4077 (i386_dr_low_get_control): Likewise.
4078 (i386_insert_aligned_watchpoint): Use new macros.
4079 (i386_update_inferior_debug_regs): Likewise.
4080 (i386_stopped_data_address): Likewise.
4082 2014-06-18 Gary Benson <gbenson@redhat.com>
4084 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4085 New parameter. All uses updated.
4087 2014-06-18 Gary Benson <gbenson@redhat.com>
4089 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4092 2014-06-18 Gary Benson <gbenson@redhat.com>
4094 * i386-nat.c (debug_printf): New macro.
4095 (i386_get_debug_register_length): Likewise.
4096 (TARGET_HAS_DR_LEN_8): Use above macro.
4097 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4098 and printf_unfiltered. Use phex to format values.
4100 2014-06-18 Gary Benson <gbenson@redhat.com>
4102 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4105 2014-06-18 Gary Benson <gbenson@redhat.com>
4107 * i386-nat.c: Comment changes.
4109 2014-06-18 Gary Benson <gbenson@redhat.com>
4111 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4113 2014-06-18 Gary Benson <gbenson@redhat.com>
4115 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4116 (i386_insert_aligned_watchpoint): Likewise.
4117 (i386_remove_aligned_watchpoint): Likewise.
4118 (i386_handle_nonaligned_watchpoint): Likewise.
4120 2014-06-18 Gary Benson <gbenson@redhat.com>
4122 * i386-nat.c: Whitespace changes.
4124 2014-06-17 Samuel Bronson <naesten@gmail.com>
4126 * MAINTAINERS: Update Roland McGrath's email address.
4127 Thanks to Sergio Durigan Junior for pointing out that he left
4128 Red Hat a while ago, and giving me a current address.
4130 2014-06-17 Tom Tromey <tromey@redhat.com>
4132 * utils.h (savestring): Remove declaration.
4134 2014-06-17 Tom Tromey <tromey@redhat.com>
4136 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4138 2014-06-16 Keith Seitz <keiths@redhat.com>
4141 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4142 to update the varobj if inferior_ptid is null_ptid.
4144 2014-06-16 Tom Tromey <tromey@redhat.com>
4146 * target.h (struct target_ops) <to_info_proc>: Make parameter
4148 (target_info_proc): Update.
4149 * target.c (target_info_proc): Make "args" const.
4150 * procfs.c (procfs_info_proc): Update.
4151 * linux-tdep.c (linux_info_proc): Update.
4152 (linux_core_info_proc_mappings): Make "args" const.
4153 (linux_core_info_proc): Update.
4154 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4155 * gdbarch.c: Rebuild.
4156 * gdbarch.h: Rebuild.
4157 * corelow.c (core_info_proc): Update.
4159 2014-06-16 Tom Tromey <tromey@redhat.com>
4161 * target.h (struct target_ops) <to_disconnect>: Make parameter
4163 (target_disconnect): Update.
4164 * target.c (target_disconnect): Make "args" const.
4165 * target-delegates.c: Rebuild.
4166 * remote.c (remote_disconnect): Update.
4167 * record.h (record_disconnect): Update.
4168 * record.c (record_disconnect): Update.
4169 * inf-child.c (inf_child_disconnect): Update.
4171 2014-06-16 Tom Tromey <tromey@redhat.com>
4173 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4174 * target.c (debug_to_rcmd, default_rcmd): Update.
4175 * target-delegates.c: Rebuild.
4176 * remote.c (remote_rcmd): Update.
4177 * monitor.c (monitor_rcmd): Update.
4179 2014-06-16 Pedro Alves <palves@redhat.com>
4181 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4182 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4183 have OBJF_SHARED set.
4184 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4185 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4186 instead of OBJF_USERLOADED.
4187 * objfiles.h (OBJF_SHARED): Update comment.
4188 (userloaded_objfile_contains_address_p): Rename to ...
4189 (shared_objfile_contains_address_p): ... this, and update
4191 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4193 (remove_symbol_file_command): Skip objfiles that don't have
4196 2014-06-16 Tom Tromey <tromey@redhat.com>
4198 * minsyms.h (prim_record_minimal_symbol)
4199 (prim_record_minimal_symbol_and_info): Update comments.
4201 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4203 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4204 or --without-guile, according to how GDB was built.
4206 2014-06-13 Tom Tromey <tromey@redhat.com>
4208 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4210 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4212 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4214 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4215 help_list.Pass all_commands, not -1, to help_list.
4216 * cli/cli-dump.c (dump_command, append_command)
4217 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4218 (binary_dump_command, binary_append_command): Pass all_commands,
4219 not -1, to help_list.
4220 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4222 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4224 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4226 * top.c (set_history): Pass all_commands, not -1, to help_list.
4227 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4228 all_commands, not -1, to help_list.
4229 * symfile.c (overlay_command): Pass all_commands, not -1, to
4231 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4233 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4235 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4237 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4238 not -1, to help_list.
4239 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4240 not -1, to help_list.
4241 * maint.c (maintenance_command, maintenance_info_command)
4242 (maintenance_print_command, maintenance_set_cmd): Pass
4243 all_commands, not -1, to help_list.
4244 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4246 * language.c (set_check): Pass all_commands, not -1, to help_list.
4247 * infcmd.c (unset_command): Pass all_commands, not -1, to
4249 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4251 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4253 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4255 * breakpoint.c (save_command): Pass all_commands, not -1, to
4257 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4258 all_commands, not -1, to help_list.
4260 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4262 * regcache.c (struct register_to_invalidate): New structure.
4263 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4265 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4267 2014-06-12 Yao Qi <yao@codesourcery.com>
4269 * varobj.c (varobj_get_num_children): Call
4270 varobj_is_dynamic_p.
4271 (varobj_list_children): Likewise.
4272 (varobj_update): Likewise. Update comments.
4274 2014-06-12 Yao Qi <yao@codesourcery.com>
4276 * varobj.c (varobj_pretty_printed_p): Rename to ...
4277 (varobj_is_dynamic_p): ... this. New function.
4278 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4279 (varobj_is_dynamic_p): Declare.
4280 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4281 (mi_print_value_p, varobj_update_one): Likewise.
4283 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4284 Yao Qi <yao@codesourcery.com>
4286 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4287 (varobj_get_iterator): Wrap up code for pretty-printer by
4288 "#if HAVE_PYTHON" and "#endif".
4289 (update_dynamic_varobj_children): Likewise.
4291 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4292 Yao Qi <yao@codesourcery.com>
4294 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4295 gdb_python_initialized is false. Move some code from varobj.c.
4296 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4297 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4298 (struct varobj_item): Moved to varobj-iter.h".
4299 (varobj_clear_saved_item): New function.
4300 (update_dynamic_varobj_children): Move python-related code to
4302 (free_variable): Call varobj_clear_saved_item and
4305 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4306 Yao Qi <yao@codesourcery.com>
4308 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4309 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4310 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4311 (py-varobj.o): New rule.
4312 * python/py-varobj.c: New file.
4313 * python/python-internal.h (py_varobj_get_iterator): Declare.
4314 * varobj-iter.h: New file.
4315 * varobj.c: Include "varobj-iter.h"
4316 (struct varobj) <child_iter>: Change its type from "PyObject *"
4317 to "struct varobj_iter *".
4318 <saved_item>: Likewise.
4319 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4320 [HAVE_PYTHON] (varobj_get_iterator): New function.
4321 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4322 python-specific code to python/py-varobj.c.
4323 (install_visualizer): Call varobj_iter_delete instead of
4325 * varobj.h (varobj_ensure_python_env): Declare.
4327 2014-06-12 Yao Qi <yao@codesourcery.com>
4329 * varobj.c (struct varobj_item): New structure.
4330 (create_child_with_value): Update declaration.
4331 (varobj_add_child): Replace arguments 'name' and 'value' with
4332 'item'. All callers updated.
4333 (install_dynamic_child): Likewise.
4334 (update_dynamic_varobj_children): Likewise.
4335 (varobj_add_child): Likewise.
4336 (create_child_with_value): Likewise.
4338 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4340 * NEWS: Create a new section for the next release branch.
4341 Rename the section of the current branch, now that it has
4344 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4346 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4347 * version.in: Bump version to 7.8.50.DATE-cvs.
4349 2014-06-11 Pedro Alves <palves@redhat.com>
4352 * ser-mingw.c (net_windows_socket_check_pending): New function.
4353 (net_windows_select_thread): Ignore spurious wakeups. Use
4354 net_windows_socket_check_pending.
4355 (net_windows_wait_handle): Check for pending events with
4356 ioctlsocket, through net_windows_socket_check_pending, instead of
4357 checking the socket's event.
4359 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4361 * python/python-internal.h (gdb_PyObject_GetAttrString)
4362 (gdb_PyObject_HasAttrString): New inline function definitions.
4363 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4364 char * of the second argument to PyObject_GetAttrString.
4366 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4368 * serial.c (serial_write): Fix index of character to be printed
4369 in call to serial_logchar when serial debug traces are enabled.
4371 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4373 * gdbtypes (resolve_dynamic_range): Add function description.
4375 2014-06-09 Pedro Alves <palves@redhat.com>
4377 * linux-nat.c (linux_child_follow_fork): Initialize status with
4378 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4379 inner block. Only pass the signal to PTRACE_DETACH if in pass
4382 2014-06-09 Gary Benson <gbenson@redhat.com>
4384 * common/signals.c (gdb_signal_from_host): Reorder to separate
4385 the always-available ANSI-standard signals from the signals that
4387 (do_gdb_signal_to_host): Likewise.
4388 * proc-events.c (signal_table): Likewise.
4390 2014-06-08 Hui Zhu <hui@codesourcery.com>
4392 * common/linux-ptrace.c (linux_disable_event_reporting): New
4394 * common/linux-ptrace.h (linux_disable_event_reporting): New
4396 * linux-nat.c (linux_child_follow_fork): Do a single step before
4399 2014-06-07 Keith Seitz <keiths@redhat.com>
4403 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4404 from symbol_matches_domain in symtab.c. All local callers
4405 of symbol_matches_domain updated.
4406 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4407 search STRUCT_DOMAIN.
4408 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4409 independently. standard_lookup will do that automatically.
4410 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4411 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4412 (cp_lookup_symbol_in_namespace): Likewise.
4413 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4414 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4415 may return a STRUCT_DOMAIN match.
4416 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4417 * cp-support.c: Include language.h.
4418 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4420 * psymtab.c (match_partial_symbol): Compare the requested
4421 domain with the symbol's domain directly.
4422 (lookup_partial_symbol): Likewise.
4423 * symtab.c (lookup_symbol_in_language): Explain when/why
4424 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4425 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4426 appropriate languages.
4427 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4428 and moved to ada-lang.c
4429 (lookup_block_symbol): Explain that this function only returns
4430 symbol matching the requested DOMAIN.
4431 Compare the requested domain with the symbol's domain directly.
4432 (iterate_over_symbols): Compare the requested domain with the
4433 symbol's domain directly.
4434 * symtab.h (symbol_matches_domain): Remove.
4436 2014-06-06 Doug Evans <xdje42@gmail.com>
4438 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4439 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4440 (gdbscm_guile_version_is_at_least): Declare.
4441 (gdbscm_scm_string_to_int): Declare.
4442 * guile/guile.c (gdbscm_guile_major_version): New global.
4443 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4444 (guile_datadir): New static global.
4445 (gdbscm_guile_data_directory): New function.
4446 (initialize_scheme_side): Update.
4447 (misc_guile_functions): Add guile-data-directory.
4448 (initialize_gdb_module): Fetch guile version number.
4449 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4450 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4451 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4452 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4454 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4455 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4456 * guile/scm-value.c (gdbscm_value_to_string): Only call
4457 scm_port_conversion_strategy if Guile version >= 2.0.6.
4459 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4461 * main.c (print_gdb_help): Add -q and --silent.
4463 2014-06-06 Gary Benson <gbenson@redhat.com>
4465 * common/signals.c: Remove preprocessor conditionals for
4466 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4467 SIGSEGV and SIGTERM.
4468 * proc-events.c: Likewise.
4470 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4472 * symfile.c (symfile_free_objfile): Remove restriction to
4474 * symfile-mem.c (symbol_file_add_from_memory): Call
4475 add_target_sections_of_objfile.
4477 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4479 * guile/scm-value.c (gdbscm_history_append_x): Use
4480 'vlscm_get_value_smob_arg_unsafe' instead of
4481 'vlscm_scm_to_value'.
4483 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4486 * utils.c (printchar): Don't escape at all if quoter is NUL.
4487 Update function documentation to clarify effect of parameter
4489 * remote.c (escape_buffer): Pass '\\' as the quoter to
4490 fputstrn_unfiltered.
4491 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4492 generate the output.
4493 (mi_solib_unloaded): Same.
4495 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4497 * development.sh: Delete.
4498 * Makefile.in (config.status): Adjust dependency on development.sh.
4499 * configure.ac: Adjust development.sh source call.
4500 * configure: Regenerate.
4502 2014-06-04 Doug Evans <xdje42@gmail.com>
4504 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4505 is_scheme_bkpt, spec.
4506 (bpscm_make_breakpoint_smob): Initialize new members.
4507 (gdbscm_create_breakpoint_x): Split into two ...
4508 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4509 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4510 (scheme_function breakpoint_functions): Update.
4511 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4512 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4513 register-breakpoint!.
4515 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4518 * mem-break.c (z_type_supported): Return zero if
4519 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4521 2014-06-04 Tom Tromey <tromey@redhat.com>
4523 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4524 value_from_contents_and_address_unresolved.
4525 (ada_template_to_fixed_record_type_1): Likewise.
4526 (ada_which_variant_applies): Likewise.
4527 * value.h (value_from_contents_and_address_unresolved): Declare.
4528 * value.c (value_from_contents_and_address_unresolved): New
4530 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4531 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4532 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4534 2014-06-04 Tom Tromey <tromey@redhat.com>
4536 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4538 2014-06-04 Tom Tromey <tromey@redhat.com>
4540 * procfs.c (procfs_attach): Make "args" const.
4541 * windows-nat.c (windows_attach): Make "args" const.
4542 * nto-procfs.c (procfs_attach): Make "args" const.
4543 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4544 * go32-nat.c (go32_attach): Make "args" const.
4545 * gnu-nat.c (gnu_attach): Make "args" const.
4546 * darwin-nat.c (darwin_attach): Make "args" const.
4547 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4548 * linux-nat.c (linux_nat_attach): Make "args" const.
4549 * remote.c (extended_remote_attach_1, extended_remote_attach):
4551 * target.h (struct target_ops) <to_attach>: Make "args" const.
4552 (find_default_attach): Likewise.
4553 * utils.c (parse_pid_to_attach): Make "args" const.
4554 * utils.h (parse_pid_to_attach): Update.
4556 2014-06-04 Tom Tromey <tromey@redhat.com>
4558 * target-delegates.c: Rebuild.
4559 * target.c (default_thread_address_space): New function.
4560 (target_thread_address_space): Simplify.
4561 * target.h (struct target_ops) <to_thread_address_space>: Add
4562 TARGET_DEFAULT_FUNC.
4564 2014-06-04 Doug Evans <xdje42@gmail.com>
4566 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4568 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4570 * record-btrace.c: Include event-loop.h and inf-loop.h.
4571 (record_btrace_resume_exec_dir)
4572 (record_btrace_async_inferior_event_handler)
4573 (record_btrace_handle_async_inferior_event): New.
4574 (record_btrace_open): Create async event handler.
4575 (record_btrace_close): Delete async event handler.
4576 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4577 Mark async event handler.
4578 (record_btrace_execution_direction): New.
4579 (init_record_btrace_ops): Initialize to_execution_direction.
4581 2014-06-03 Doug Evans <xdje42@gmail.com>
4583 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4584 (gdbscm_make_parameter): Ditto.
4586 2014-06-03 Doug Evans <dje@google.com>
4588 * exec.c (exec_close_1): Call clear_section_table instead of
4589 resize_section_table.
4590 (clear_section_table): New function.
4591 (resize_section_table): Make static. Rename arg num_added to
4593 * exec.h (clear_section_table): Declare.
4594 (resize_section_table): Delete.
4595 * progspace.c (release_program_space): Call clear_section_table
4596 instead of resize_section_table.
4598 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4600 * NEWS (Python Scripting): Add entry about the new xmethods
4603 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4605 * python/py-xmethods.c: New file.
4606 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4607 (objfpy_dealloc): XDECREF on the new xmethods field.
4608 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4610 (objfpy_get_xmethods): New function.
4611 (objfile_getset): New entry 'xmethods'.
4612 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4613 (pspy_dealloc): XDECREF on the new xmethods field.
4614 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4616 (pspy_get_xmethods): New function.
4617 (pspace_getset): New entry 'xmethods'.
4618 * python/python-internal.h: Add declarations for new functions.
4619 * python/python.c (_initialize_python): Invoke
4620 gdbpy_initialize_xmethods.
4621 * python/lib/gdb/__init__.py (xmethods): New
4623 * python/lib/gdb/xmethod.py: New file.
4624 * python/lib/gdb/command/xmethods.py: New file.
4626 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4628 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4629 best match method returned by find_overload_match is an xmethod.
4630 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4631 the best matching operator returned by find_overload_match is an
4633 * valops.c: #include "extension.h".
4634 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4635 Return void. The list of matching source methods is returned in
4636 "fn_list" and a vector of matching debug method workers is
4637 returned in "xm_worker_vec". Update all callers.
4638 (value_find_oload_method_list): Likewise.
4639 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4640 non-NULL, then the index of the best matching method in this
4641 vector is returned. Update all callers.
4642 (find_overload_match): Include xmethods while performing overload
4645 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4647 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4648 * extension-priv.h (struct extension_language_ops): Add the
4650 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4651 get_matching_xmethod_workers, get_xmethod_argtypes,
4652 invoke_xmethod, free_xmethod_worker,
4653 free_xmethod_worker_vec): New functions.
4654 * extension.h: #include "common/vec.h".
4655 New function declarations.
4656 (struct xmethod_worker): New struct.
4657 (VEC (xmethod_worker_ptr)): New vector type.
4658 (xmethod_worker_ptr): New typedef.
4659 (xmethod_worker_vec): Likewise.
4660 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4662 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4663 (struct builtin_type): New field "xmethod".
4664 * valarith.c (value_ptradd): Assert that the value argument is not
4666 * valops.c (value_must_coerce_to_target): Return 0 for
4667 lval_xcallable values.
4668 * value.c (struct value): New field XM_WORKER in the field
4670 (value_address, value_raw_address): Return 0 for lval_xcallable
4672 (set_value_address): Assert that the value is not an
4674 (value_free): Free the associated xmethod worker when freeing
4675 lval_xcallable values.
4676 (set_value_component_location): Assert that the WHOLE value is not
4678 (value_of_xmethod, call_xmethod): New functions.
4679 * value.h: Declare "struct xmethod_worker".
4680 Declare new functions value_of_xmethod, call_xmethod.
4682 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4683 Pedro Alves <palves@redhat.com>
4685 PR breakpoints/17000
4686 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4687 New function, extracted from software_breakpoint_inserted_here_p.
4688 (software_breakpoint_inserted_here_p): Replace factored out code
4689 by call to find_non_raw_software_breakpoint_inserted_here.
4690 (bp_target_info_copy_insertion_state): New function.
4691 (bkpt_insert_location): Handle the case of a single-step
4692 breakpoint already inserted at the same address.
4693 (bkpt_remove_location): Handle the case of a single-step
4694 breakpoint still inserted at the same address.
4695 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4696 breakpoint already inserted at the same address.
4697 (deprecated_remove_raw_breakpoint): Handle the case of a
4698 non-raw breakpoint still inserted at the same address.
4699 (find_single_step_breakpoint): New function, extracted from
4700 single_step_breakpoint_inserted_here_p.
4701 (find_single_step_breakpoint): New function,
4702 factored out from single_step_breakpoint_inserted_here_p.
4703 (single_step_breakpoint_inserted_here_p): Reimplement.
4705 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4707 Pushed by Joel Brobecker <brobecker@adacore.com>
4708 * source.c (show_substitute_path_command): Fix display of matching
4711 2014-06-03 Gary Benson <gbenson@redhat.com>
4713 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4715 2014-06-02 Doug Evans <xdje42@gmail.com>
4717 Add parameter support for Guile.
4718 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4719 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4720 (scm-param.o): New rule.
4721 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4722 (gdbscm_misc_error): Declare.
4723 (gdbscm_canonicalize_command_name): Declare.
4724 (gdbscm_scm_to_host_string): Declare.
4725 (gdbscm_scm_from_host_string): Declare.
4726 (gdbscm_initialize_parameters): Declare.
4727 * guile/guile.c (initialize_gdb_module): Call
4728 gdbscm_initialize_parameters.
4729 * guile/lib/gdb.scm: Export parameter symbols.
4730 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4731 cmdscm_canonicalize_name and made public. All callers updated.
4732 * guile/scm-exception.c (gdbscm_misc_error): New function.
4733 * guile/scm-param.c: New file.
4734 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4735 (gdbscm_scm_to_host_string): New function.
4736 (gdbscm_scm_from_host_string): New function.
4737 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4739 2014-06-02 Doug Evans <xdje42@gmail.com>
4741 Add command support for Guile.
4742 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4743 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4744 (scm-cmd.o): New rule.
4745 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4746 (gdbscm_user_error_p): Declare.
4747 (gdbscm_parse_command_name): Declare.
4748 (gdbscm_valid_command_class_p): Declare.
4749 (gdbscm_initialize_commands): Declare.
4750 * guile/guile.c (initialize_gdb_module): Call
4751 gdbscm_initialize_commands.
4752 * guile/lib/gdb.scm: Export command symbols.
4753 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4754 (throw-user-error): New function.
4755 * guile/scm-cmd.c: New file.
4756 * guile/scm-exception.c (user_error_symbol): New static global.
4757 (gdbscm_user_error_p): New function.
4758 (gdbscm_initialize_exceptions): Set user_error_symbol.
4759 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4761 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4763 * top.c (command_loop): Handle comments here...
4764 (command_line_input): ... not here.
4766 2014-06-02 Doug Evans <xdje42@gmail.com>
4768 Add progspace support for Guile.
4769 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4770 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4771 (scm-progspace.o): New rule.
4772 * guile/guile-internal.h (pspace_smob): New typedef.
4773 (psscm_pspace_smob_pretty_printers): Declare.
4774 (psscm_pspace_smob_from_pspace): Declare.
4775 (psscm_scm_from_pspace): Declare.
4776 * guile/guile.c (initialize_gdb_module): Call
4777 gdbscm_initialize_pspaces.
4778 * guile/lib/gdb.scm: Export progspace symbols.
4779 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4781 (append-pretty-printer!): Ditto.
4782 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4784 * guile/scm-progspace.c: New file.
4786 2014-06-03 Alan Modra <amodra@gmail.com>
4788 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4789 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4791 2014-06-02 Doug Evans <dje@google.com>
4793 Add support for skeletonless type units.
4794 * dwarf2read.c (struct dwarf2_per_objfile): New member
4795 n_allocated_type_units.
4796 (struct dwarf2_per_objfile) <tu_stats>: New member
4797 nr_all_type_units_reallocs.
4798 (create_signatured_type_table_from_index): Initialize
4799 n_allocated_type_units
4800 (create_all_type_units): Ditto.
4801 (add_type_unit): Move up in file. New arg slot.
4802 All callers updated. Increase space for all_type_units more
4804 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4805 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4806 (lookup_dwp_signatured_type): Ditto.
4807 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4808 All callers updated.
4809 (build_type_psymtabs_1): Leave type_unit_groups as
4810 NULL if no TUs present.
4811 (print_tu_stats): New function.
4812 (process_skeletonless_type_unit): New function.
4813 (process_dwo_file_for_skeletonless_type_units): New
4815 (process_skeletonless_type_units): New function.
4816 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4817 Call print tu_stats if debugging enabled.
4819 2014-06-02 Pedro Alves <palves@redhat.com>
4821 * breakpoint.c (build_target_command_list): Don't build a command
4822 list if we have any duplicate location that isn't a dprintf.
4824 2014-06-02 Pedro Alves <palves@redhat.com>
4826 * breakpoint.c (dprintf_breakpoint_hit): New function.
4827 (initialize_breakpoint_ops): Install it as dprintf's
4828 breakpoint_hit method.
4830 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4832 * source.c (substitute_path_rule_matches): Simplify using
4833 filename_ncmp instead of FILENAME_CMP.
4835 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4837 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4839 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4841 * configure.ac: When Guile is available, check for the
4842 availability of 'scm_new_smob'.
4843 * configure, config.h.in: Regenerate.
4844 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4847 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4849 * frame.c (struct frame_info): Add stop_string field.
4850 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4851 (get_prev_frame_always): Old content moved into
4852 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4853 TRY_CATCH, handle MEMORY_ERROR exceptions.
4854 (frame_stop_reason_string): New function definition.
4855 * frame.h (unwind_stop_reason_to_string): Extend comment to
4856 mention frame_stop_reason_string.
4857 (frame_stop_reason_string): New function declaration.
4858 * stack.c (frame_info): Switch to frame_stop_reason_string.
4859 (backtrace_command_1): Switch to frame_stop_reason_string.
4860 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4861 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4862 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4864 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4866 * frame.c (frame_stop_reason_string): Rename to ...
4867 (unwind_stop_reason_to_string): this.
4868 * frame.h (frame_stop_reason_string): Rename to ...
4869 (unwind_stop_reason_to_string): this.
4870 * stack.c (frame_info): Update call to frame_stop_reason_string.
4871 (backtrace_command_1): Likewise.
4872 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4873 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4875 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4877 * frame.c (remove_prev_frame): New function.
4878 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4881 2014-05-29 Pedro Alves <palves@redhat.com>
4883 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4884 and make it const. When a single-step decays to a continue,
4885 clear 'step', not 'hw_step'. Pass whether the caller wanted
4886 to step to user_visible_resume_ptid, not what we ask the
4889 2014-05-29 Pedro Alves <palves@redhat.com>
4891 * infrun.c (process_event_stop_test, handle_step_into_function)
4892 (handle_step_into_function_backward): Adjust.
4893 Don't set the even thread's stop_step and call stop_waiting before
4894 calling end_stepping_range. Instead do that ...
4895 (end_stepping_range): ... here. Take an ecs pointer parameter.
4897 2014-05-29 Pedro Alves <palves@redhat.com>
4899 * infrun.c (stop_stepping): Rename to ...
4900 (stop_waiting): ... this.
4901 (proceed): Update comment.
4902 (process_event_stop_test, handle_inferior_event)
4903 (handle_signal_stop, handle_step_into_function)
4904 (handle_step_into_function_backward): Update.
4906 2014-05-29 Pedro Alves <palves@redhat.com>
4908 * infcall.c (run_inferior_call): Don't check whether the current
4909 thread is running after the proceed call.
4911 2014-05-29 Pedro Alves <palves@redhat.com>
4912 Tom Tromey <tromey@redhat.com>
4914 * NEWS: Mention "maint set target-async", "set mi-async", and that
4915 background execution commands are now always available.
4916 * target.h (target_async_permitted): Update comment.
4917 * target.c (target_async_permitted, target_async_permitted_1):
4919 (set_target_async_command): Rename to ...
4920 (maint_set_target_async_command): ... this.
4921 (show_target_async_command): Rename to ...
4922 (maint_show_target_async_command): ... this.
4923 (_initialize_target): Adjust.
4924 * infcmd.c (prepare_execution_command): Make extern.
4925 * inferior.h (prepare_execution_command): Declare.
4926 * infrun.c (set_observer_mode): Leave target async alone.
4927 * mi/mi-interp.c (mi_interpreter_init): Install
4928 mi_on_sync_execution_done as sync_execution_done observer.
4929 (mi_on_sync_execution_done): New function.
4930 (mi_execute_command_input_handler): Don't print the prompt if we
4931 just started a synchronous command with an async target.
4932 (mi_on_resume): Check sync_execution before printing prompt.
4933 * mi/mi-main.h (mi_async_p): Declare.
4934 * mi/mi-main.c: Include gdbcmd.h.
4935 (mi_async_p): New function.
4936 (mi_async, mi_async_1): New globals.
4937 (set_mi_async_command, show_mi_async_command, mi_async): New
4939 (exec_continue): Call prepare_execution_command.
4940 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4941 (mi_execute_async_cli_command): Use mi_async_p.
4942 (_initialize_mi_main): Install "set mi-async". Make
4943 "target-async" a deprecated alias.
4945 2014-05-29 Pedro Alves <palves@redhat.com>
4947 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4948 (_initialize_cli_interp): Adjust.
4949 * event-loop.c: Include "observer.h".
4950 (start_event_loop): Notify 'command_error' observers instead of
4951 calling display_gdb_prompt. Remove FIXME comment.
4952 * event-top.c (display_gdb_prompt): Remove call into the
4954 * inf-loop.c: Include "observer.h".
4955 (inferior_event_handler): Notify 'command_error' observers instead
4956 of calling display_gdb_prompt.
4957 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4958 observers instead of calling display_gdb_prompt.
4959 * interps.c (interp_set): Don't call display_gdb_prompt.
4960 (current_interp_display_prompt_p): Delete.
4961 * interps.h (interp_prompt_p): Delete declaration.
4962 (interp_prompt_p_ftype): Delete.
4963 (struct interp_procs) <prompt_proc_p>: Delete field.
4964 (current_interp_display_prompt_p): Delete declaration.
4965 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4966 (_initialize_mi_interp): Adjust.
4967 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4968 'command_error' observers.
4969 (tui_on_sync_execution_done, tui_on_command_error): New
4971 (tui_display_prompt_p): Delete.
4972 (_initialize_tui_interp): Adjust.
4974 2014-05-29 Pedro Alves <palves@redhat.com>
4977 * cli/cli-interp.c: Include infrun.h and observer.h.
4978 (cli_uiout, cli_interp): New globals.
4979 (cli_on_signal_received, cli_on_end_stepping_range)
4980 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4982 (cli_interpreter_init): Install them as 'end_stepping_range',
4983 'signal_received' 'signal_exited', 'exited' and 'no_history'
4985 (_initialize_cli_interp): Remove cli_interp local.
4986 * infrun.c (handle_inferior_event): Call the several stop reason
4987 observers instead of printing the stop reason directly.
4988 (end_stepping_range): New function.
4989 (print_end_stepping_range_reason, print_signal_exited_reason)
4990 (print_exited_reason, print_signal_received_reason)
4991 (print_no_history_reason): Make static, and add an uiout
4992 parameter. Print to that instead of to CURRENT_UIOUT.
4993 * infrun.h (print_end_stepping_range_reason)
4994 (print_signal_exited_reason, print_exited_reason)
4995 (print_signal_received_reason print_no_history_reason): New
4997 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4999 <cli_uiout>: New field.
5000 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5001 uiout for CLI output. Install 'signal_received',
5002 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5004 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5005 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5006 (mi_on_no_history): New functions.
5007 (ui_out_free_cleanup): Delete function.
5008 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5009 instead use the one already stored in the MI interpreter data.
5010 (mi_ui_out): Adjust.
5011 * tui/tui-interp.c: Include infrun.h and observer.h.
5012 (tui_interp): New global.
5013 (tui_on_signal_received, tui_on_end_stepping_range)
5014 (tui_on_signal_exited, tui_on_exited)
5015 (tui_on_no_history): New functions.
5016 (tui_init): Install them as 'end_stepping_range',
5017 'signal_received' 'signal_exited', 'exited' and 'no_history'
5019 (_initialize_tui_interp): Delete tui_interp local.
5021 2014-05-29 Pedro Alves <palves@redhat.com>
5024 * linux-nat.c (linux_nat_resume_callback): Rename the second
5025 parameter to 'except'. Skip LP if it points to EXCEPT.
5026 (linux_nat_resume): Don't mark the event lwp as not stopped
5027 before resuming sibling lwps. Instead ask
5028 linux_nat_resume_callback to skip the event lwp. Mark it as not
5029 stopped after actually resuming it.
5030 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5032 (wait_lwp): Mark the lwp as stopped here.
5033 (stop_wait_callback): Mark the lwp as not stopped right after
5034 resuming it. Don't mark lwps as stopped here.
5035 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5036 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5038 2014-05-29 Pedro Alves <palves@redhat.com>
5041 * infrun.c (resume): Determine how much to resume depending on
5042 whether the caller wanted a step, not whether we can hardware step
5043 the target. Mark all threads that we intend to run as running,
5044 unless we're calling an inferior function.
5045 (normal_stop): If the thread is running an infcall, don't finish
5047 * target.c (target_resume): Don't mark threads as running here.
5049 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5051 * serial.c (_initialize_serial): Remove support for
5052 the "set remotebaud" and "show remotebaud" commands.
5053 * NEWS: Add entry documenting the removal of that command.
5055 2014-05-28 Yao Qi <yao@codesourcery.com>
5057 * charset.c: Fix typo in comments.
5059 2014-05-27 Gary Benson <gbenson@redhat.com>
5061 * utils.c (internal_vproblem): Prompt for a bug report.
5063 2014-05-26 Andy Wingo <wingo@igalia.com>
5065 * guile/scm-arch.c (arscm_mark_arch_smob):
5066 * guile/scm-block.c (bkscm_mark_block_smob)
5067 (bkscm_mark_block_syms_progress_smob):
5068 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5069 * guile/scm-exception.c (exscm_mark_exception_smob):
5070 * guile/scm-frame.c (frscm_mark_frame_smob):
5071 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5072 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5073 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5074 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5075 (ppscm_mark_pretty_printer_worker_smob):
5076 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5077 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5078 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5079 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5081 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5084 2014-05-26 Andy Wingo <wingo@igalia.com>
5085 Doug Evans <xdje42@gmail.com>
5087 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5088 empty_base_class. All uses updated.
5089 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5090 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5092 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5093 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5094 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5095 (gdbscm_gsmob_has_property_p, add_property_name)
5096 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5097 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5098 (gdb-object-has-property?, gdb-object-properties): Remove.
5099 (gdb-object-kind): Renamed from gsmob-kind.
5101 2014-05-26 Andy Wingo <wingo@igalia.com>
5103 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5104 * configure: Regenerate.
5106 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5108 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5110 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5112 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5113 (replay_memory_access_read_only, replay_memory_access_read_write)
5114 (replay_memory_access_types, replay_memory_access)
5115 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5116 (cmd_set_record_btrace, cmd_show_record_btrace)
5117 (cmd_show_replay_memory_access): New.
5118 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5119 (record_btrace_remove_breakpoint): Replace
5120 record_btrace_allow_memory_access with replay_memory_access.
5121 (_initialize_record_btrace): Add commands.
5122 * NEWS: Announce it.
5124 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5126 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5128 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5130 * MAINTAINERS (Write After Approval): Move self back from
5133 2014-05-22 Pedro Alves <palves@redhat.com>
5135 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5136 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5137 (disable_randomization, enum exec_direction_kind)
5138 (execution_direction, stop_registers, start_remote)
5139 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5140 (wait_for_inferior, normal_stop, get_last_target_status)
5141 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5142 (insert_step_resume_breakpoint_at_sal)
5143 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5144 (set_step_info, print_stop_event, signal_stop_state)
5145 (signal_print_state, signal_pass_state, signal_stop_update)
5146 (signal_print_update, signal_pass_update)
5147 (update_signals_program_target, clear_exit_convenience_vars)
5148 (displaced_step_dump_bytes, update_observer_mode)
5149 (signal_catch_update, gdb_signal_from_command): Move
5151 * infrun.h: ... to this new file.
5152 * amd64-tdep.c: Include infrun.h.
5153 * annotate.c: Include infrun.h.
5154 * arch-utils.c: Include infrun.h.
5155 * arm-linux-tdep.c: Include infrun.h.
5156 * arm-tdep.c: Include infrun.h.
5157 * break-catch-sig.c: Include infrun.h.
5158 * breakpoint.c: Include infrun.h.
5159 * common/agent.c: Include infrun.h instead of inferior.h.
5160 * corelow.c: Include infrun.h.
5161 * event-top.c: Include infrun.h.
5162 * go32-nat.c: Include infrun.h.
5163 * i386-tdep.c: Include infrun.h.
5164 * inf-loop.c: Include infrun.h.
5165 * infcall.c: Include infrun.h.
5166 * infcmd.c: Include infrun.h.
5167 * infrun.c: Include infrun.h.
5168 * linux-fork.c: Include infrun.h.
5169 * linux-nat.c: Include infrun.h.
5170 * linux-thread-db.c: Include infrun.h.
5171 * monitor.c: Include infrun.h.
5172 * nto-tdep.c: Include infrun.h.
5173 * procfs.c: Include infrun.h.
5174 * record-btrace.c: Include infrun.h.
5175 * record-full.c: Include infrun.h.
5176 * remote-m32r-sdi.c: Include infrun.h.
5177 * remote-mips.c: Include infrun.h.
5178 * remote-notif.c: Include infrun.h.
5179 * remote-sim.c: Include infrun.h.
5180 * remote.c: Include infrun.h.
5181 * reverse.c: Include infrun.h.
5182 * rs6000-tdep.c: Include infrun.h.
5183 * s390-linux-tdep.c: Include infrun.h.
5184 * solib-irix.c: Include infrun.h.
5185 * solib-osf.c: Include infrun.h.
5186 * solib-svr4.c: Include infrun.h.
5187 * target.c: Include infrun.h.
5188 * top.c: Include infrun.h.
5189 * windows-nat.c: Include infrun.h.
5190 * mi/mi-interp.c: Include infrun.h.
5191 * mi/mi-main.c: Include infrun.h.
5192 * python/py-threadevent.c: Include infrun.h.
5194 2014-05-22 Pedro Alves <palves@redhat.com>
5196 * infrun.c (handle_inferior_event): Store the exit code for
5197 --return-child-result here, instead of ...
5198 (print_exited_reason): ... here.
5200 2014-05-21 Pedro Alves <palves@redhat.com>
5203 * gdbthread.h (struct thread_control_state): New field
5205 * infrun.c (follow_fork): Copy the new thread control field to the
5207 (clear_proceed_status_thread): Clear the new thread control field.
5208 (proceed): Set the new thread control field.
5209 * interps.h (command_interp): Declare.
5210 * interps.c (command_interpreter): New global.
5211 (command_interp): New function.
5212 (interp_exec): Set `command_interpreter' while here.
5213 * cli-out.c (cli_uiout_dtor): New function.
5214 (cli_ui_out_impl): Install it.
5215 * mi/mi-interp.c: Include cli-out.h.
5216 (mi_cmd_interpreter_exec): Add comment.
5217 (restore_current_uiout_cleanup): New function.
5218 (ui_out_free_cleanup): New function.
5219 (mi_on_normal_stop): If finishing an execution command started by
5220 a CLI command, or any kind of breakpoint-like event triggered,
5221 print the stop event to the output (CLI) stream.
5222 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5224 2014-05-21 Pedro Alves <palves@redhat.com>
5226 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5227 current source line having changed.
5228 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5229 * infrun.c (normal_stop): Adjust call to
5230 set_current_sal_from_frame.
5231 * source.c (clear_lines_listed_range): New function.
5232 (set_current_source_symtab_and_line, identify_source_line): Clear
5233 the lines listed range.
5234 (line_info): Handle the first "info line" after the current source
5235 line having changed.
5236 * stack.c (print_stack_frame): Remove center handling.
5237 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5240 2014-05-21 Pedro Alves <palves@redhat.com>
5242 * inf-child.c (inf_child_mourn_inferior): New function.
5243 * inf-child.h (inf_child_mourn_inferior): New declaration.
5244 * darwin-nat.c (darwin_mourn_inferior): Use
5245 inf_child_mourn_inferior.
5246 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5247 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5248 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5249 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5250 * windows-nat.c (windows_mourn_inferior): Likewise.
5252 2014-05-21 Doug Evans <xdje42@gmail.com>
5254 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5256 2014-05-21 Doug Evans <xdje42@gmail.com>
5258 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5259 (gdbscm_out_of_range_error): Ditto.
5260 (gdbscm_memory_error): Ditto.
5261 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5262 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5263 (gdbscm_out_of_range_error): Update.
5264 (gdbscm_memory_error): Update.
5265 (gdbscm_scm_to_target_string_unsafe): Delete.
5267 2014-05-21 Pedro Alves <palves@redhat.com>
5269 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5271 (inf_child_open_target): New function.
5272 (inf_child_open): Use inf_child_open_target to push the target
5273 instead of erroring out.
5274 (inf_child_disconnect, inf_child_close)
5275 (inf_child_maybe_unpush_target): New functions.
5276 (inf_child_target): Install inf_child_disconnect and
5277 inf_child_close. Store a pointer to the returned object.
5278 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5280 * target.c (auto_connect_native_target): New global.
5281 (show_default_run_target): New function.
5282 (find_default_run_target): Return NULL if automatically connecting
5283 to the native target is disabled.
5284 (_initialize_target): Install set/show auto-connect-native-target.
5285 * NEWS: Mention "set auto-connect-native-target", and "target
5287 * linux-nat.c (super_close): New global.
5288 (linux_nat_close): Call super_close.
5289 (linux_nat_add_target): Store a pointer to the base class's
5291 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5292 inf_child_maybe_unpush.
5293 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5295 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5296 the inferior. Use inf_child_maybe_unpush_target.
5297 (inf_ttrace_attach): Don't push the target if it is already
5299 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5300 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5301 after mourning the inferior. Use inf_child_maybe_unpush_target.
5302 (darwin_attach_pid): Don't push the target if it is already
5304 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5305 mourning the inferior. Use inf_child_maybe_unpush_target.
5306 (gnu_detach): Use inf_child_maybe_unpush_target.
5307 * go32-nat.c (go32_create_inferior): Don't push the target if it
5309 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5310 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5311 (procfs_open): Rename to ...
5312 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5313 comments. Can target_preopen before changing node. Call
5314 inf_child_open_target to push the target explicitly.
5315 (procfs_attach): Don't push the target if it is already pushed.
5316 (procfs_detach): Use inf_child_maybe_unpush_target.
5317 (procfs_create_inferior): Don't push the target if it is already
5319 (nto_native_ops): New global.
5320 (procfs_open): Reimplement.
5321 (procfs_native_open): New function.
5322 (init_procfs_targets): Install procfs_native_open as to_open of
5323 "target native". Store a pointer to the "native" target in
5325 * procfs.c (procfs_attach): Don't push the target if it is already
5327 (procfs_detach): Use inf_child_maybe_unpush_target.
5328 (procfs_mourn_inferior): Only unpush the target after mourning the
5329 inferior. Use inf_child_maybe_unpush_target.
5330 (procfs_init_inferior): Don't push the target if it is already
5332 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5333 if it is already pushed.
5335 2014-05-21 Pedro Alves <palves@redhat.com>
5337 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5338 and "procfs" targets are now called "native" instead.
5340 2014-05-21 Pedro Alves <palves@redhat.com>
5342 * go32-nat.c (go32_open): Delete.
5343 (go32_target): Don't override the to_open method.
5345 2014-05-21 Pedro Alves <palves@redhat.com>
5347 * nto-procfs.c (procfs_can_run): New function.
5348 (nto_procfs_ops): New global.
5349 (init_procfs_targets): New, based on procfs_target. Install
5350 "target native" in addition to "target procfs".
5351 (_initialize_procfs): Call init_procfs_targets instead of adding
5354 2014-05-21 Pedro Alves <palves@redhat.com>
5356 * windows-nat.c (windows_target): Don't override to_shortname,
5357 to_longname or to_doc.
5359 2014-05-21 Pedro Alves <palves@redhat.com>
5361 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5364 2014-05-21 Pedro Alves <palves@redhat.com>
5366 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5367 to_shortname, to_longname or to_doc.
5369 2014-05-21 Pedro Alves <palves@redhat.com>
5371 * go32-nat.c (go32_target): Don't override to_shortname,
5372 to_longname or to_doc.
5374 2014-05-21 Pedro Alves <palves@redhat.com>
5376 * inf-child.c (inf_child_open): Remove mention of "child".
5377 (inf_child_target): Rename target to "native" instead of "child".
5379 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5381 * Makefile.in (SFILES): Delete "regset.c".
5382 (COMMON_OBS): Delete "regset.o".
5384 * regset.h (regset_alloc): Delete prototype.
5386 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5388 * sparc-linux-tdep.c (sparc32_linux_gregset)
5389 (sparc32_linux_fpregset): New static regset structures.
5390 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5391 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5393 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5394 (sparc64_linux_fpregset): New static regset structures.
5395 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5396 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5397 New static regset structures.
5398 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5399 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5400 New static regset structures.
5401 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5402 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5403 New static regset structures.
5404 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5405 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5406 New static regset structures.
5407 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5409 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5411 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5412 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5413 register maps ("regmaps") from "*regset" to "*regmap". Do this
5414 for all regmap types and variables.
5415 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5416 (sparc32_linux_supply_core_gregset)
5417 (sparc32_linux_collect_core_gregset)
5418 (sparc32_linux_supply_core_fpregset)
5419 (sparc32_linux_collect_core_fpregset): Likewise.
5420 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5421 (sparc_gregmap, sparc_fpregmap): ... these.
5422 (sparc_supply_gregset, sparc_collect_gregset)
5423 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5424 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5425 (_initialize_sparc_nat): Rename regmaps.
5426 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5427 (sparc_gregmap, sparc_fpregmap): ... these.
5428 (sparc_supply_gregset, sparc_collect_gregset)
5429 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5430 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5432 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5433 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5435 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5437 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5438 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5439 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5441 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5442 (sparc32_bsd_fpregset): Rename to...
5443 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5444 (sparc32_bsd_fpregmap): ... these.
5445 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5446 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5447 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5448 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5449 (struct sparc_gregmap, struct sparc_fpregmap)
5450 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5451 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5452 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5453 (sparc32_supply_regset, sparc32_collect_gregset)
5454 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5456 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5457 (sparc64_linux_ptrace_gregmap): ... this.
5458 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5459 (_initialize_sparc64_linux_nat): Rename regmaps.
5460 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5461 (sparc64_linux_core_gregmap): ... this.
5462 (sparc64_linux_supply_core_gregset)
5463 (sparc64_linux_collect_core_gregset)
5464 (sparc64_linux_supply_core_fpregset)
5465 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5466 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5467 (sparc64_sol2_fpregset): Rename to...
5468 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5469 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5470 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5472 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5473 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5474 (sparc64_bsd_fpregset): Rename to...
5475 (struct sparc_gregmap, sparc64_sol2_gregmap)
5476 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5477 (sparc64_bsd_fpregmap): ... these.
5478 (sparc64_supply_gregset, sparc64_collect_gregset)
5479 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5481 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5482 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5483 (sparc64fbsd_gregmap): ... this.
5484 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5485 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5487 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5488 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5489 (sparc64nbsd_collect_fpregset): Likewise.
5490 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5491 (sparc64nbsd_gregmap): ... this.
5492 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5494 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5495 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5496 (sparc64obsd_gregmap): ... this.
5497 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5499 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5500 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5501 (sparc32nbsd_gregmap): ... this.
5502 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5505 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5507 * score-tdep.c (score7_linux_gregset): New static regset
5509 (score7_linux_regset_from_core_section): Remove dynamic regset
5511 (score_gdbarch_init): Drop allocation of tdep structure.
5512 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5514 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5516 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5518 (am33_regset_from_core_section): Remove dynamic regset
5521 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5523 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5524 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5526 (mips_linux_regset_from_core_section): Remove dynamic regset
5528 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5529 'gregset64', 'fpregset', and 'fpregset64'.
5530 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5531 deleted tdep fields.
5533 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5535 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5537 (amd64_regset_from_core_section): Remove dynamic regset
5539 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5541 (amd64obsd_regset_from_core_section): Remove dynamic regset
5543 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5545 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5546 x86-common regset supply function.
5547 * i386-tdep.c (i386_collect_gregset): Make static.
5548 (i386_gregset): New global regset structure.
5549 (i386_fpregset, i386_xstateregset): New static regset structures.
5550 (i386_regset_from_core_section): Remove dynamic regset
5552 (i386_gdbarch_init): Remove initialization of tdep fields
5553 'gregset', 'fpregset', and 'xstateregset'.
5554 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5555 'fpregset', and 'xstateregset'.
5556 (i386_collect_gregset): Remove prototype.
5557 (i386_gregset): New declaration.
5558 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5560 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5563 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5565 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5566 (arm_linux_vfpregset): New static regset structures.
5567 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5569 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5570 and 'vfpregset' fields.
5572 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5574 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5575 (aarch64_linux_fpregset): New static regset structures.
5576 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5577 of regset structures.
5578 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5581 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5583 * regset.h (struct regset): Remove gdbarch field.
5584 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5585 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5586 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5588 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5589 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5590 (ppc32_linux_vsxregset): Likewise.
5591 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5592 via the regcache instead of the regset.
5593 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5594 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5595 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5596 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5599 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5601 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5602 Constify structures.
5603 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5604 (alphanbsd_aout_gregset): Likewise.
5605 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5606 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5608 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5609 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5611 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5612 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5613 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5614 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5615 * m88k-tdep.c (m88k_gregset): Likewise.
5616 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5617 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5618 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5619 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5620 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5621 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5622 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5623 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5624 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5626 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5627 * sh-tdep.h (sh_corefile_gregset): Likewise.
5628 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5629 * vax-tdep.c (vax_gregset): Likewise.
5631 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5633 Fix TLS access for -static -pthread.
5634 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5635 (try_thread_db_load_1): Initialize it.
5636 (thread_db_get_thread_local_address): Call it if LM is zero.
5637 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5638 * target.h (struct target_ops) (to_get_thread_local_address): Add
5639 load_module_addr comment.
5641 2014-05-21 Pedro Alves <palves@redhat.com>
5643 * dcache.c (dcache_read_memory_partial): If reading the cache line
5644 fails, fallback to reading just the memory the caller wanted.
5646 2014-05-20 Doug Evans <dje@google.com>
5648 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5649 instead of get_current_arch.
5651 2014-05-20 Pedro Alves <palves@redhat.com>
5653 * NEWS: Mention that compare-sections now works with all targets.
5655 * remote.c (PACKET_qCRC): New enum value.
5656 (remote_verify_memory): Don't send qCRC if the target has no
5657 execution. Use packet_support/packet_ok. If the target doesn't
5658 support the qCRC packet, fallback to a deep memory copy.
5659 (compare_sections_command): Say "target image" instead of "remote
5661 (_initialize_remote): Add PACKET_qCRC to the list of config
5662 packets that have no associated command. Extend comment.
5663 * target.c (simple_verify_memory, default_verify_memory): New
5665 * target.h (struct target_ops) <to_verify_memory>: Default to
5666 default_verify_memory.
5667 (simple_verify_memory): New declaration.
5668 * target-delegates.c: Regenerate.
5670 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5672 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5674 2014-05-20 Hui Zhu <hui@codesourcery.com>
5675 Yao Qi <yao@codesourcery.com>
5678 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5679 and change address of sp and pc.
5681 2014-05-19 Tom Tromey <tromey@redhat.com>
5683 * gdbtypes.c (rank_function): Use XNEWVEC.
5684 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5686 2014-05-19 Doug Evans <dje@google.com>
5688 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5689 build_type_unit_groups and moved closer to only caller. Remove
5690 arguments. All references updated. Remove outdated .gdb_index
5692 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5693 build_type_psymtabs_1.
5695 2014-05-19 Doug Evans <dje@google.com>
5697 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5698 n_type_unit_groups, all_type_unit_groups. All uses removed.
5699 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5700 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5701 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5702 (add_type_unit_group_to_table): Delete.
5704 2014-05-19 Doug Evans <dje@google.com>
5706 * eval.c (evaluate_subexp_standard): Add some comments.
5708 2014-05-17 Doug Evans <xdje42@gmail.com>
5710 * progspace.c (remove_program_space): Delete, unused.
5711 * progspace.h (remove_program_space): Ditto.
5713 2014-05-17 Doug Evans <xdje42@gmail.com>
5715 * inferior.c (prune_inferiors): Fix comment.
5716 (remove_inferior_command): Call prune_program_spaces.
5718 2014-05-16 Doug Evans <dje@google.com>
5720 New command line option -D.
5722 * main.c (set_gdb_data_directory): New function.
5723 (captured_main): Recognize -D. Flag error for --data-directory "".
5724 Call set_gdb_data_directory.
5725 (print_gdb_help): Print --data-directory, -D.
5726 * main.h (set_gdb_data_directory): Declare.
5727 * top.c (staged_gdb_datadir): New static global.
5728 (set_gdb_datadir): Call set_gdb_data_directory
5729 (show_gdb_datadir): New function.
5730 (init_main): Update init of data-directory parameter.
5732 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5734 Import the "dirfd" gnulib module.
5735 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5736 * gnulib/aclocal.m4: Update.
5737 * gnulib/config.in: Update.
5738 * gnulib/configure: Update.
5739 * gnulib/import/Makefile.am: Update.
5740 * gnulib/import/Makefile.in: Update.
5741 * gnulib/import/dirfd.c: New.
5742 * gnulib/import/m4/dirfd.m4: New.
5743 * gnulib/import/m4/gnulib-cache.m4: Update.
5744 * gnulib/import/m4/gnulib-comp.m4: Update.
5746 2014-05-16 Pierre Muller <muller@sourceware.org>
5747 Yao Qi <yao@codesourcery.com>
5749 * valprint.c (print_wchar): Move the code on checking whether
5750 W is a printable wide char to the default branch of switch
5751 statement below. Call wchar_printable instead of gdb_iswprint.
5753 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5755 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5756 ldr.w and ldrd instructions.
5758 2014-05-15 Doug Evans <dje@google.com>
5760 * dwarf2read.c (read_structure_type): Delete outdated comments.
5762 2014-05-14 Tom Tromey <tromey@redhat.com>
5764 * macrocmd.c (print_macro_definition): Reindent.
5766 2014-05-13 Doug Evans <xdje42@gmail.com>
5768 * python/py-cmd.c (cmdpy_completer): Add comment.
5769 (completers): Make const.
5771 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5773 * infrun.c (resume): Remove should_resume (unused). Move up
5774 declaration of resume_ptid.
5776 2014-05-13 Tom Tromey <tromey@redhat.com>
5778 * language.h (unop_type_check): Remove.
5779 (binop_type_check): Don't declare.
5781 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5783 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5784 call to regcache_raw_collect.
5786 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5788 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5789 mi_console->quote as the quoting character.
5791 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5793 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5795 2014-04-29 Tom Tromey <tromey@redhat.com>
5797 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5798 "show debug varobj".
5800 2014-05-07 Kyle McMartin <kyle@redhat.com>
5802 Pushed by Joel Brobecker <brobecker@adacore.com>.
5803 * aarch64-tdep.c (aarch64_software_single_step): New function.
5804 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5805 with aarch64_software_single_step.
5807 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5811 2014-05-05 Keith Seitz <keiths@redhat.com>
5813 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5814 variable or history value is successfully parsed.
5816 2014-05-05 Yao Qi <yao@codesourcery.com>
5817 Pedro Alves <palves@redhat.com>
5819 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5820 address of blocks that intersects the requested range. Trim
5821 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5823 * ctf.c (ctf_xfer_partial): Likewise.
5825 2014-05-05 Yao Qi <yao@codesourcery.com>
5827 * printcmd.c (display_command): Remove the check to
5828 target_has_execution.
5830 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5832 * ppcobsd-nat.c: Include "obsd-nat.h".
5833 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5835 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5837 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5839 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5840 and 16-bit signed and unsigned arguments. Update comment.
5841 (stap_parse_probe_arguments): Extend code to handle such
5842 arguments. Use warning instead of complaint to notify about
5843 unrecognized bitness.
5845 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5847 PR breakpoints/16889
5848 * stap-probe.c (stap_parse_probe_arguments): Simplify
5849 check for non-prefixed probes (i.e., probes whose
5850 arguments do not start with "N@"). Always set the
5851 argument type to a sane value.
5853 2014-05-01 David Taylor <dtaylor@emc.com>
5855 * remote.c (compare_sections_command): Add -r option to compare
5856 all loadable read-only sections.
5858 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5860 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5861 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5863 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5864 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5865 Remove unused CORE_ADDR argument. Update all callers.
5867 2014-04-29 Pedro Alves <palves@redhat.com>
5869 * remote.c (struct packet_config) <detect>: Extend comment.
5870 (add_packet_config_cmd): Don't set the config's detect or support
5872 (init_all_packet_configs): Also initialize the config's 'detect'
5874 (reset_all_packet_configs_support): New function.
5875 (remote_open_1): Call reset_all_packet_configs_support instead of
5876 init_all_packet_configs.
5877 (_initialize_remote): Initialize all packet configs. Assert that
5878 all packets have an associated command, except a few known
5881 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5883 * dwarf2read.c (read_subrange_type): Handle dynamic
5884 DW_AT_lower_bound attributes.
5886 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5888 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5889 dynamic bounds before computing its upper bound.
5890 (ada_discrete_type_low_bound): Same as above with the lower bound.
5892 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5894 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5895 range types. Adjust the array handling implementation to
5896 take advantage of this change.
5897 (resolve_dynamic_range): New function, mostly extracted from
5898 resolve_dynamic_bounds.
5899 (resolve_dynamic_array): New function, mostly extracted from
5900 resolve_dynamic_bounds.
5901 (resolve_dynamic_bounds): Delete.
5902 (resolve_dynamic_type): Reimplement. Add handling of
5903 TYPE_CODE_RANGE types.
5905 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5907 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5908 handling of parallel ___XA types.
5910 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5912 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5913 unnecessary second call to static_unwrap_type.
5915 2014-04-27 Hui Zhu <hui@codesourcery.com>
5917 * stack.c (print_frame_info): Call do_gdb_disassembly with
5918 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5920 2014-04-26 Doug Evans <xdje42@gmail.com>
5922 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5924 2014-04-25 Pedro Alves <palves@redhat.com>
5927 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5928 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5929 and newline from built string.
5930 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5931 (linux_ptrace_attach_fail_reason): ... this.
5932 * linux-nat.c (linux_nat_attach): Adjust to use
5933 linux_ptrace_attach_fail_reason.
5935 2014-04-25 Pedro Alves <palves@redhat.com>
5937 * remote.c (struct remote_state): Remove multi_process_aware,
5938 non_stop_aware, cond_tracepoints, cond_breakpoints,
5939 breakpoint_commands, fast_tracepoints, static_tracepoints,
5940 install_in_trace, disconnected_tracing,
5941 enable_disable_tracepoints, string_tracing, and
5942 augmented_libraries_svr4_read fields.
5943 (remote_multi_process_p): Move further below in the file.
5944 (struct packet_config): Add comments.
5945 (update_packet_config): Delete function.
5946 (show_packet_config_cmd): Use packet_config_support.
5947 (add_packet_config_cmd): Use NULL as set callback.
5948 (packet_ok): "set remote foo-packet"-style commands no longer
5949 change config->supported -- adjust.
5950 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5951 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5952 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5953 (PACKET_QNonStop, PACKET_multiprocess_feature)
5954 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5955 (PACKET_DisconnectedTracing_feature)
5956 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5957 (set_remote_protocol_packet_cmd): Delete function.
5958 (packet_config_support, packet_support): New functions.
5959 (set_remote_protocol_Z_packet_cmd): Don't call
5960 update_packet_config.
5961 (remote_query_attached, remote_pass_signals)
5962 (remote_program_signals, remote_threads_info)
5963 (remote_threads_extra_info, remote_start_remote): Use
5965 (remote_start_remote): Use packet_config_support and
5967 (init_all_packet_configs): Set all packets to unknown support,
5968 instead of calling update_packet_config.
5969 (remote_check_symbols): Use packet_support.
5970 (remote_supported_packet): Unconditionally set the packet config's
5972 (remote_multi_process_feature, remote_non_stop_feature)
5973 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5974 (remote_breakpoint_commands_feature)
5975 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5976 (remote_install_in_trace_feature)
5977 (remote_disconnected_tracing_feature)
5978 (remote_enable_disable_tracepoint_feature)
5979 (remote_string_tracing_feature)
5980 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5981 (remote_protocol_features): Adjust to use remote_supported_packet
5982 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5983 "ConditionalTracepoints", "ConditionalBreakpoints",
5984 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5985 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5986 "EnableDisableTracepoints", and "tracenz".
5987 (remote_query_supported): Use packet_support.
5988 (remote_open_1): Adjust.
5989 (extended_remote_attach_1): Use packet_support. Switch on the
5990 result of packet_ok instead of checking whether the packet ended
5992 (remote_vcont_resume): Use packet_support.
5993 (remote_resume, remote_stop_ns, fetch_register_using_p)
5994 (remote_prepare_to_store, store_register_using_P)
5995 (check_binary_download, remote_write_bytes): Use packet_support.
5996 (remote_vkill): Use packet_support. Switch on the result of
5997 packet_ok instead of checking whether the packet ended up
5999 (extended_remote_supports_disable_randomization): Use
6001 (extended_remote_run): Switch on the result of packet_ok instead
6002 of checking whether the packet ended up disabled.
6003 (remote_insert_breakpoint, remote_remove_breakpoint)
6004 (remote_insert_watchpoint, remote_remove_watchpoint)
6005 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6007 (remote_search_memory): Use packet_config_support.
6008 (remote_get_thread_local_address, remote_get_tib_address)
6009 (remote_hostio_send_command, remote_can_execute_reverse): Use
6011 (remote_supports_cond_tracepoints)
6012 (remote_supports_cond_breakpoints)
6013 (remote_supports_fast_tracepoints)
6014 (remote_supports_static_tracepoints)
6015 (remote_supports_install_in_trace)
6016 (remote_supports_enable_disable_tracepoint)
6017 (remote_supports_string_tracing)
6018 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6019 the packet config says the feature is enabled or disabled.
6020 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6021 (remote_get_trace_status): Use packet_support.
6022 (remote_set_disconnected_tracing): Adjust to check whether the
6023 feature is enabled with packet_support.
6024 (remote_set_trace_buffer_size, remote_use_agent)
6025 (remote_can_use_agent, remote_supports_btrace): Use
6027 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6028 Use packet_config_support.
6029 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6030 the packet config says the feature is enabled or disabled.
6031 (set_range_stepping): Use packet_support.
6033 2014-04-25 Tom Tromey <tromey@redhat.com>
6035 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6038 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6040 * NEWS: Mention support for C99 variable length arrays.
6042 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6044 * ada-lang.c (standard_exc): Expand introductory comment.
6046 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6047 Walfred Tedeschi <walfred.tedeschi@intel.com>
6049 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6051 (amd64_linux_read_description): Add code to handle AVX512 xstate
6052 mask and return respective tdesc.
6053 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6054 and features/i386/x32-avx512-linux.c.
6055 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6056 (amd64_linux_core_read_description): Add code to handle AVX512
6057 xstate mask and return respective tdesc.
6058 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6059 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6061 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6062 (tdesc_amd64_avx512_linux): New prototype.
6063 (tdesc_x32_avx512_linux): Likewise.
6064 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6065 features/i386/x32-avx512.c.
6066 (amd64_ymm_avx512_names): New register names for pseudo
6068 (amd64_ymmh_avx512_names): New register names for raw registers
6070 (amd64_k_names): New register names for K registers.
6071 (amd64_zmmh_names): New register names for ZMM raw registers.
6072 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6073 (amd64_xmm_avx512_names): New register names for XMM16-31
6075 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6077 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6078 if feature is present.
6079 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6080 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6081 (AMD64_NUM_REGS): Adjust to new number of registers.
6082 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6083 registers supplied via XSTATE by AVX512 registers.
6084 (i386_linux_read_description): Add case for AVX512.
6085 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6086 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6087 (i386_linux_core_read_description): Add case for AVX512.
6088 (i386_linux_init_abi): Install supported register note section
6090 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6092 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6093 registers to be number of zmm7h + 1.
6094 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6095 * i386-tdep.c: Include features/i386/i386-avx512.c.
6096 (i386_zmm_names): Add ZMM pseudo register names array.
6097 (i386_zmmh_names): Add ZMM raw register names array.
6098 (i386_k_names): Add K raw register names array.
6099 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6100 registers. AVX512 has 16 more ZMM registers than there are YMM
6102 (i386_zmmh_regnum_p): Add function to look up register number of
6104 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6105 (i386_k_regnum_p): Likewise for K raw registers.
6106 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6107 registers added by AVX512.
6108 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6109 registers added by AVX512.
6110 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6112 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6113 (i386_pseudo_register_name): Add ZMM pseudo registers.
6114 (i386_zmm_type): Construct and return vector registers type for ZMM
6116 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6117 ZMM0-31 pseudo registers and K registers.
6118 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6119 and YMM16-31 registers from register cache.
6120 (i386_pseudo_register_write): Add code to write K, ZMM and
6122 (i386_register_reggroup_p): Add code to include/exclude AVX512
6123 registers in/from respective register groups.
6124 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6125 registers if feature is present in xcr0.
6126 (i386_gdbarch_init): Add code to initialize AVX512 feature
6127 variables in tdep structure, wire in pseudo registers and call
6128 initialize_tdesc_i386_avx512.
6129 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6131 (i386_regnum): Add AVX512 registers.
6132 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6133 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6134 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6135 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6137 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6138 (i386_ymm_avx512_regnum_p): Likewise.
6139 (i386_k_regnum_p): Likewise.
6140 (i386_zmm_regnum_p): Likewise.
6141 (i386_zmmh_regnum_p): Likewise.
6142 * i387-tdep.c : Update year in copyright notice.
6143 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6145 (XSAVE_YMM_AVX512_ADDR): New macro.
6146 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6148 (XSAVE_XMM_AVX512_ADDR): New macro.
6149 (xsave_avx512_k_offset): New table for K register offsets in
6151 (XSAVE_AVX512_K_ADDR): New macro.
6152 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6154 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6155 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6157 (i387_collect_xsave): Add code to collect AVX512 registers from
6159 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6160 of XMM16-31 registers.
6161 (I387_NUM_K_REGS): New define for number of K registers.
6162 (I387_K0_REGNUM): New define for K0 register number.
6163 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6164 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6165 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6167 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6168 (I387_XMM16_REGNUM): New define for XMM16 register number.
6169 (I387_YMM0_REGNUM): New define for YMM0 register number.
6170 (I387_KEND_REGNUM): New define for last K register number.
6171 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6172 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6174 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6176 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6178 * features/Makefile: Add AVX512 related files.
6179 * features/i386/32bit-avx512.xml: New file.
6180 * features/i386/64bit-avx512.xml: Likewise.
6181 * features/i386/amd64-avx512-linux.c: Likewise.
6182 * features/i386/amd64-avx512-linux.xml: Likewise.
6183 * features/i386/amd64-avx512.c: Likewise.
6184 * features/i386/amd64-avx512.xml: Likewise.
6185 * features/i386/i386-avx512-linux.c: Likewise.
6186 * features/i386/i386-avx512-linux.xml: Likewise.
6187 * features/i386/i386-avx512.c: Likewise.
6188 * features/i386/i386-avx512.xml: Likewise.
6189 * features/i386/x32-avx512-linux.c: Likewise.
6190 * features/i386/x32-avx512-linux.xml: Likewise.
6191 * features/i386/x32-avx512.c: Likewise.
6192 * features/i386/x32-avx512.xml: Likewise.
6193 * regformats/i386/amd64-avx512-linux.dat: New file.
6194 * regformats/i386/amd64-avx512.dat: Likewise.
6195 * regformats/i386/i386-avx512-linux.dat: Likewise.
6196 * regformats/i386/i386-avx512.dat: Likewise.
6197 * regformats/i386/x32-avx512-linux.dat: Likewise.
6198 * regformats/i386/x32-avx512.dat: Likewise.
6199 * NEWS: Add note about new support for AVX512.
6202 2014-04-23 Pedro Alves <palves@redhat.com>
6204 * breakpoint.c (insert_bp_location): Tolerate errors if the
6205 breakpoint is set in a user-loaded objfile.
6206 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6207 location is marked shlib_disabled. If the breakpoint is set in a
6208 user-loaded objfile is a GDB-side memory breakpoint, validate it
6209 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6210 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6212 * mem-break.c (memory_validate_breakpoint): New function.
6213 * objfiles.c (userloaded_objfile_contains_address_p): New
6215 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6216 * target.h (memory_validate_breakpoint): New declaration.
6218 2014-04-23 Pedro Alves <palves@redhat.com>
6220 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6221 the breakpoint is set in a shared library, only suppress
6222 errors for software breakpoints, not hardware breakpoints.
6224 2014-04-22 Pedro Alves <palves@redhat.com>
6226 * infrun.c (schedlock_applies): New function, factored out from
6227 find_thread_needs_step_over.
6228 (find_thread_needs_step_over): Use it.
6229 (switch_back_to_stepped_thread): Always clear trap_expected if the
6230 step over is finished. Return early if scheduler locking applies.
6231 Look for the stepping thread and a potential step-over thread with
6233 (currently_stepping_or_nexting_callback): Delete.
6235 2014-04-22 Nick Clifton <nickc@redhat.com>
6237 * NEWS: Mention that ARM sim now supports tracing.
6239 2014-04-22 Yao Qi <yao@codesourcery.com>
6241 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6243 * tracefile.c (tracefile_fetch_registers): ... it. New
6245 * tracefile.h (tracefile_fetch_registers): Declare.
6246 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6247 tracefile_fetch_registers.
6249 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6252 * windows-nat.c (thread_rec): Don't display a warning when
6253 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6254 fails for any reason, set th->suspended to -1, so that we don't
6255 try to resume such a thread. Also, don't return NULL in these
6256 cases, to avoid completely ruin the session due to "PC register is
6257 not available" error.
6258 (do_windows_fetch_inferior_registers): Check errors in
6259 GetThreadContext call.
6260 (windows_continue): Accept an additional argument KILLED; if not
6261 zero, ignore errors in the SetThreadContext call, since the
6262 inferior was killed and is shutting down.
6263 (windows_resume, get_windows_debug_event)
6264 (windows_create_inferior, windows_mourn_inferior)
6265 (windows_kill_inferior): All callers of windows_continue changed
6266 to adjust to its new calling sequence.
6268 2014-04-19 Yao Qi <yao@codesourcery.com>
6270 * ctf.c (ctf_open): Call post_create_inferior.
6272 2014-04-19 Yao Qi <yao@codesourcery.com>
6274 * ctf.c (handle_id): New static variable.
6275 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6276 value. Get the declaration of event "register" and get length
6277 of field "contents".
6279 2014-04-19 Yao Qi <yao@codesourcery.com>
6281 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6283 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6285 * valops.c (oload_method_static): Remove unnecessary argument
6286 METHOD. Update all callers.
6288 2014-04-18 Pedro alves <palves@redhat.com>
6289 Tom Tromey <tromey@redhat.com>
6292 * frame.c (get_prev_frame_1): Rename to ...
6293 (get_prev_frame_always): ... this, and make extern. Adjust.
6294 (skip_artificial_frames): Use get_prev_frame_always.
6295 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6296 (get_frame_unwind_stop_reason): Adjust to rename.
6297 * frame.h (get_prev_frame_always): Declare.
6298 * inline-frame.c: Include frame.h.
6299 (inline_frame_this_id): Use get_prev_frame_always.
6301 2014-04-18 Tristan Gingold <gingold@adacore.com>
6303 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6304 code by using bfd_mach_o_get_base_address.
6306 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6308 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6309 (spu_ax_pseudo_register_collect): New function.
6310 (spu_ax_pseudo_register_push_stack): Likewise.
6311 (spu_dwarf_reg_to_regnum): Likewise.
6312 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6314 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6316 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6317 Replace FRAME argument with FRAME_ID.
6318 * gdbarch.c, gdbarch.h: Regenerate.
6319 * findvar.c (default_value_from_register): Add GDBARCH argument;
6320 replace FRAME by FRAME_ID. No longer call get_frame_id.
6321 (value_from_register): Update call to gdbarch_value_from_register.
6322 * value.h (default_value_from_register): Update prototype.
6323 * s390-linux-tdep.c (s390_value_from_register): Update interface
6324 and call to default_value_from_register.
6325 * spu-tdep.c (spu_value_from_register): Likewise.
6327 * findvar.c (address_from_register): Remove TYPE argument.
6328 Do not call value_from_register; use gdbarch_value_from_register
6329 with null_frame_id instead.
6330 * value.h (address_from_register): Update prototype.
6331 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6332 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6333 address_from_register interface change.
6335 2014-04-17 Yao Qi <yao@codesourcery.com>
6337 * gdbtypes.h: Update comments to link to types and macros'
6340 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6342 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6344 2014-04-16 Keith Seitz <keiths@redhat.com>
6347 * dwarf2read.c (skip_one_die): Check that all relative-offset
6348 sibling DIEs fall within range of the current reader's buffer.
6349 (read_partial_die): Likewise.
6351 2014-04-16 Keith Seitz <keiths@redhat.com>
6354 * cp-namespace.c (lookup_symbol_file): If the type name of
6355 `this' is NULL, return immediately.
6357 2014-04-14 Keith Seitz <keiths@redhat.com>
6360 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6361 from symbol_matches_domain in symtab.c. All local callers
6362 of symbol_matches_domain updated.
6363 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6364 search STRUCT_DOMAIN.
6365 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6366 independently. standard_lookup will do that automatically.
6367 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6368 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6369 (cp_lookup_symbol_in_namespace): Likewise.
6370 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6371 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6372 may return a STRUCT_DOMAIN match.
6373 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6374 * cp-support.c: Include language.h.
6375 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6377 * psymtab.c (match_partial_symbol): Compare the requested
6378 domain with the symbol's domain directly.
6379 (lookup_partial_symbol): Likewise.
6380 * symtab.c (lookup_symbol_in_language): Explain when/why
6381 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6382 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6383 appropriate languages.
6384 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6385 and moved to ada-lang.c
6386 (lookup_block_symbol): Explain that this function only returns
6387 symbol matching the requested DOMAIN.
6388 Compare the requested domain with the symbol's domain directly.
6389 (iterate_over_symbols): Compare the requested domain with the
6390 symbol's domain directly.
6391 * symtab.h (symbol_matches_domain): Remove.
6393 2014-04-14 Tom Tromey <tromey@redhat.com>
6396 * c-exp.y (type_aggregate_p): New function.
6397 (qualified_name, classify_inner_name): Use it.
6398 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6399 and TYPE_TARGET_TYPE of an enum type.
6400 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6402 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6403 handle TYPE_DECLARED_CLASS.
6404 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6406 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6407 * valops.c (enum_constant_from_type): New function.
6408 (value_aggregate_elt): Use it.
6409 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6412 2014-04-14 Tom Tromey <tromey@redhat.com>
6414 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6415 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6417 * value.h (value_aggregate_elt): Update.
6419 2014-04-14 Tom Tromey <tromey@redhat.com>
6421 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6423 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6425 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6426 (evaluate_subexp_standard): Pass noside argument.
6427 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6428 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6429 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6430 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6431 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6433 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6435 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6436 points to a constant blob.
6438 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6440 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6441 property and store it as the high bound and flag the range accordingly.
6442 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6443 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6444 * gdbtypes.h (enum range_flags): New enum.
6445 (struct range_bounds): Add flags member.
6447 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6449 * c-typeprint.c (c_type_print_varspec_suffix): Added
6450 check for not yet resolved high bound. If unresolved, print
6451 "variable length" string to the console instead of random
6454 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6456 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6458 (ada_template_to_fixed_record_type_1): Likewise.
6459 (ada_to_fixed_type_1): Likewise.
6460 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6461 (cp_print_value): Likewise.
6462 * d-valprint.c (dynamic_array_type): Likewise.
6463 * findvar.c (address_of_variable): Likewise.
6464 * jv-valprint.c (java_value_print): Likewise.
6465 * valops.c (value_ind): Likewise.
6466 * value.c (coerce_ref): Likewise.
6468 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6470 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6471 value and retrieve the dynamic type size.
6473 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6475 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6476 passed to sizeof is dynamic evaluate the argument to compute the length.
6478 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6479 Joel Brobecker <brobecker@adacore.com>
6481 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6482 (dwarf2_evaluate_property): New function.
6483 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6484 * dwarf2read.c (attr_to_dynamic_prop): New function.
6485 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6487 * gdbtypes.c: Include dwarf2loc.h.
6488 (is_dynamic_type): New function.
6489 (resolve_dynamic_type): New function.
6490 (resolve_dynamic_bounds): New function.
6491 (get_type_length): New function.
6492 (check_typedef): Use get_type_length to compute type length.
6493 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6494 (TYPE_LOW_BOUND_KIND): New macro.
6495 (is_dynamic_type): New function prototype.
6496 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6497 to resolve dynamic properties of the type. Update comment.
6498 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6500 2014-04-14 Richard Henderson <rth@redhat.com>
6502 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6504 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6505 Doug Evans <xdje42@gmail.com>
6507 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6508 dereference TYPE_CODE_REF values.
6510 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6512 Revert the following changes due to regressions:
6514 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6515 (dwarf2_evaluate_property): New function.
6516 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6517 * dwarf2read.c (attr_to_dynamic_prop): New function.
6518 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6520 * gdbtypes.c: Include dwarf2loc.h.
6521 (is_dynamic_type): New function.
6522 (resolve_dynamic_type): New function.
6523 (resolve_dynamic_bounds): New function.
6524 (get_type_length): New function.
6525 (check_typedef): Use get_type_length to compute type length.
6526 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6527 (TYPE_LOW_BOUND_KIND): New macro.
6528 (is_dynamic_type): New function prototype.
6529 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6530 to resolve dynamic properties of the type. Update comment.
6531 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6533 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6534 passed to sizeof is dynamic evaluate the argument to compute the length.
6536 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6537 value and retrieve the dynamic type size.
6539 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6540 (ada_template_to_fixed_record_type_1): Likewise.
6541 (ada_to_fixed_type_1): Likewise.
6542 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6543 (cp_print_value): Likewise.
6544 * d-valprint.c (dynamic_array_type): Likewise.
6545 * eval.c (evaluate_subexp_with_coercion): Likewise.
6546 * findvar.c (address_of_variable): Likewise.
6547 * jv-valprint.c (java_value_print): Likewise.
6548 * valops.c (value_ind): Likewise.
6549 * value.c (coerce_ref): Likewise.
6551 * c-typeprint.c (c_type_print_varspec_suffix): Added
6552 check for not yet resolved high bound. If unresolved, print
6553 "variable length" string to the console instead of random
6556 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6557 property and store it as the high bound and flag the range accordingly.
6558 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6559 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6560 * gdbtypes.h (enum range_flags): New enum.
6561 (struct range_bounds): Add flags member.
6563 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6564 points to a constant blob.
6566 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6567 (evaluate_subexp_standard): Pass noside argument.
6568 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6569 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6570 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6571 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6572 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6574 2014-04-11 Keith Seitz <keiths@redhat.com>
6577 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6578 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6581 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6583 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6584 (evaluate_subexp_standard): Pass noside argument.
6585 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6586 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6587 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6588 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6589 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6591 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6593 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6594 points to a constant blob.
6596 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6598 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6599 property and store it as the high bound and flag the range accordingly.
6600 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6601 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6602 * gdbtypes.h (enum range_flags): New enum.
6603 (struct range_bounds): Add flags member.
6605 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6607 * c-typeprint.c (c_type_print_varspec_suffix): Added
6608 check for not yet resolved high bound. If unresolved, print
6609 "variable length" string to the console instead of random
6612 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6614 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6615 (ada_template_to_fixed_record_type_1): Likewise.
6616 (ada_to_fixed_type_1): Likewise.
6617 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6618 (cp_print_value): Likewise.
6619 * d-valprint.c (dynamic_array_type): Likewise.
6620 * eval.c (evaluate_subexp_with_coercion): Likewise.
6621 * findvar.c (address_of_variable): Likewise.
6622 * jv-valprint.c (java_value_print): Likewise.
6623 * valops.c (value_ind): Likewise.
6624 * value.c (coerce_ref): Likewise.
6626 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6628 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6629 value and retrieve the dynamic type size.
6631 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6633 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6634 passed to sizeof is dynamic evaluate the argument to compute the length.
6636 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6638 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6639 (dwarf2_evaluate_property): New function.
6640 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6641 * dwarf2read.c (attr_to_dynamic_prop): New function.
6642 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6644 * gdbtypes.c: Include dwarf2loc.h.
6645 (is_dynamic_type): New function.
6646 (resolve_dynamic_type): New function.
6647 (resolve_dynamic_bounds): New function.
6648 (get_type_length): New function.
6649 (check_typedef): Use get_type_length to compute type length.
6650 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6651 (TYPE_LOW_BOUND_KIND): New macro.
6652 (is_dynamic_type): New function prototype.
6653 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6654 to resolve dynamic properties of the type. Update comment.
6655 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6657 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6659 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6660 declaring high/low bounds and change uses accordingly. Call
6661 create_range_type instead of create_static_range_type.
6662 * gdbtypes.c (create_range_type): New function.
6663 (create_range_type): Convert bounds into struct bound_prop and pass
6664 them to create_range_type.
6665 * gdbtypes.h (struct bound_prop): New struct.
6666 (create_range_type): New function prototype.
6667 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6668 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6669 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6671 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6673 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6675 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6676 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6677 * ada-lang.c: All uses of create_range_type updated.
6678 * coffread.c: All uses of create_range_type updated.
6679 * dwarf2read.c: All uses of create_range_type updated.
6680 * f-exp.y: All uses of create_range_type updated.
6681 * m2-valprint.c: All uses of create_range_type updated.
6682 * mdebugread.c: All uses of create_range_type updated.
6683 * stabsread.c: All uses of create_range_type updated.
6684 * valops.c: All uses of create_range_type updated.
6685 * valprint.c: All uses of create_range_type updated.
6687 2014-04-10 Pedro Alves <palves@redhat.com>
6689 * breakpoint.c (single_step_breakpoints)
6690 (single_step_gdbarch): Move up in the file.
6691 (one_breakpoint_xfer_memory): New function, factored out from ...
6692 (breakpoint_xfer_memory): ... here. Also process single-step
6695 2014-04-09 Tristan Gingold <gingold@adacore.com>
6697 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6699 (darwin_decode_exception_message): Free port only after use.
6701 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6703 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6704 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6705 when setting the size of call_length.
6707 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6709 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6710 dereference TYPE_CODE_REF values.
6712 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6714 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6715 end of warning message.
6717 2014-04-03 Doug Evans <dje@google.com>
6719 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6720 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6722 2014-04-02 Alan Modra <amodra@gmail.com>
6724 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6725 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6726 (struct symbol_file_add_from_memory_args): Add size field.
6727 (find_vdso_size): New function.
6728 (add_vsyscall_page): Attempt to find vdso size.
6730 2014-04-01 Doug Evans <dje@google.com>
6732 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6734 2014-04-01 Tristan Gingold <gingold@adacore.com>
6736 * darwin-nat.c (darwin_encode_reply): Add prototype.
6737 (darwin_decode_exception_message): Reply to unknown inferiors.
6738 (darwin_decode_message): Handle message by id. Ignore message
6739 to unknown inferior.
6740 (darwin_wait): Discard unknown messages, add debug trace.
6742 2014-03-31 Doug Evans <dje@google.com>
6744 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6747 2014-03-31 Doug Evans <dje@google.com>
6749 New option "set print symbol-loading".
6751 * solib.c (solib_read_symbols): Only print symbol loading messages
6753 (solib_add): If symbol loading is in "brief" mode, notify user
6754 symbols are being loaded.
6755 (reload_shared_libraries_1): Ditto.
6756 * symfile.c (print_symbol_loading_off): New static global.
6757 (print_symbol_loading_brief): New static global.
6758 (print_symbol_loading_full): New static global.
6759 (print_symbol_loading_enums): New static global.
6760 (print_symbol_loading): New static global.
6761 (print_symbol_loading_p): New function.
6762 (symbol_file_add_with_addrs): Only print symbol loading messages
6764 (_initialize_symfile): Register "print symbol-loading" set/show
6766 * symfile.h (print_symbol_loading_p): Declare.
6768 2014-03-30 Doug Evans <xdje42@gmail.com>
6770 * infrun.c (set_last_target_status): New function.
6771 (handle_inferior_event): Call it.
6773 2014-03-30 Doug Evans <xdje42@gmail.com>
6775 * inferior.h (enum stop_kind): Improve comment.
6777 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6779 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6780 a reference, strip the reference layer before calling
6781 the lang_ops value_has_mutated callback.
6783 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6785 Remove some globals from our parser.
6786 * language.c (unk_lang_parser): Add "struct parser_state"
6788 * language.h (struct language_defn) <la_parser>: Likewise.
6789 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6790 (initialize_expout): Add "struct parser_state" argument.
6791 Rewrite function to use the parser state.
6792 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6793 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6794 write_exp_elt_longcst, write_exp_elt_dblcst,
6795 write_exp_elt_decfloatcst, write_exp_elt_type,
6796 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6797 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6798 write_dollar_variable): Likewise.
6799 (parse_exp_in_context_1): Use parser state.
6800 (insert_type_address_space): Add "struct parser_state" argument.
6802 (increase_expout_size): New function.
6803 * parser-defs.h: Forward declare "struct language_defn" and
6804 "struct parser_state".
6805 (expout, expout_size, expout_ptr): Remove extern declarations.
6806 (parse_gdbarch, parse_language): Rewrite macro declarations to
6807 accept the parser state.
6808 (struct parser_state): New struct.
6809 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6810 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6811 write_exp_elt_decfloatcst, write_exp_elt_type,
6812 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6813 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6814 write_exp_msymbol, write_dollar_variable,
6815 mark_struct_expression, insert_type_address_space): Add "struct
6816 parser_state" argument.
6817 (increase_expout_size): New function.
6818 * utils.c (do_clear_parser_state): New function.
6819 (make_cleanup_clear_parser_state): Likewise.
6820 * utils.h (make_cleanup_clear_parser_state): New function
6822 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6823 Update calls to write_exp* in order to pass the parser state.
6824 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6825 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6826 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6827 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6828 * stap-probe.c (stap_parse_register_operand): Likewise.
6829 (stap_parse_single_operand): Likewise.
6830 (stap_parse_argument_1): Likewise.
6831 (stap_parse_argument): Use parser state.
6832 * stap-probe.h: Include "parser-defs.h".
6833 (struct stap_parse_info) <pstate>: New field.
6834 * c-exp.y (parse_type): Rewrite to use parser state.
6835 (yyparse): Redefine to c_parse_internal.
6836 (pstate): New global variable.
6837 (parse_number): Add "struct parser_state" argument.
6838 (write_destructor_name): Likewise.
6839 (type_exp): Update calls to write_exp* and similars in order to
6841 (exp1, exp, variable, qualified_name, space_identifier,
6842 typename, typebase): Likewise.
6843 (write_destructor_name, parse_number, lex_one_token,
6844 classify_name, classify_inner_name, c_parse): Add "struct
6845 parser_state" argument. Update function to use parser state.
6846 * c-lang.h: Forward declare "struct parser_state".
6847 (c_parse): Add "struct parser_state" argument.
6848 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6849 (yyparse): Redefine macro to ada_parse_internal.
6850 (pstate): New variable.
6851 (write_int, write_object_renaming, write_var_or_type,
6852 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6853 type_int, type_long, type_long_long, type_float, type_double,
6854 type_long_double, type_char, type_boolean, type_system_address):
6855 Add "struct parser_state" argument.
6856 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6857 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6858 var_or_type, aggregate, aggregate_component_list,
6859 positional_list, others, component_group,
6860 component_associations): Update calls to write_exp* and similar
6861 functions in order to use parser state.
6862 (ada_parse, write_var_from_sym, write_int,
6863 write_exp_op_with_string, write_object_renaming,
6864 find_primitive_type, write_selectors, write_ambiguous_var,
6865 write_var_or_type, write_name_assoc, type_int, type_long,
6866 type_long_long, type_float, type_double, type_long_double,
6867 type_char, type_boolean, type_system_address): Add "struct
6868 parser_state" argument. Adjust function to use parser state.
6869 * ada-lang.c (parse): Likewise.
6870 * ada-lang.h: Forward declare "struct parser_state".
6871 (ada_parse): Add "struct parser_state" argument.
6872 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6873 calls to both functions.
6874 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6876 (yyparse): Redefine macro to f_parse_internal.
6877 (pstate): New variable.
6878 (parse_number): Add "struct parser_state" argument.
6879 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6880 and similars in order to use parser state.
6881 (parse_number): Adjust code to use parser state.
6883 (f_parse): New function.
6884 * f-lang.h: Forward declare "struct parser_state".
6885 (f_parse): Add "struct parser_state" argument.
6886 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6888 (yyparse): Redefine macro for java_parse_internal.
6889 (pstate): New variable.
6890 (push_expression_name, push_expression_name, insert_exp): Add
6891 "struct parser_state" argument.
6892 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6893 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6894 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6895 PostIncrementExpression, PostDecrementExpression,
6896 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6897 UnaryExpressionNotPlusMinus, CastExpression,
6898 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6899 RelationalExpression, EqualityExpression, AndExpression,
6900 ExclusiveOrExpression, InclusiveOrExpression,
6901 ConditionalAndExpression, ConditionalOrExpression,
6902 ConditionalExpression, Assignment, LeftHandSide): Update
6903 calls to write_exp* and similars in order to use parser state.
6904 (parse_number): Ajust code to use parser state.
6906 (java_parse): New function.
6907 (push_variable): Add "struct parser_state" argument. Adjust
6908 code to user parser state.
6909 (push_fieldnames, push_qualified_expression_name,
6910 push_expression_name, insert_exp): Likewise.
6911 * jv-lang.h: Forward declare "struct parser_state".
6912 (java_parse): Add "struct parser_state" argument.
6913 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6915 (yyparse): Redefine macro to m2_parse_internal.
6916 (pstate): New variable.
6917 (type_exp, exp, fblock, variable, type): Update calls to
6918 write_exp* and similars to use parser state.
6920 (m2_parse): New function.
6921 * m2-lang.h: Forward declare "struct parser_state".
6922 (m2_parse): Add "struct parser_state" argument.
6923 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6924 * objc-lang.h: Forward declare "struct parser_state".
6925 (end_msglist): Add "struct parser_state" argument.
6926 * p-exp.y (parse_type): Rewrite macro to use parser state.
6927 (yyparse): Redefine macro to pascal_parse_internal.
6928 (pstate): New variable.
6929 (parse_number): Add "struct parser_state" argument.
6930 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6931 write_exp* and similars in order to use parser state.
6932 (parse_number, yylex): Adjust code to use parser state.
6933 (pascal_parse): New function.
6934 * p-lang.h: Forward declare "struct parser_state".
6935 (pascal_parse): Add "struct parser_state" argument.
6936 * go-exp.y (parse_type): Rewrite macro to use parser state.
6937 (yyparse): Redefine macro to go_parse_internal.
6938 (pstate): New variable.
6939 (parse_number): Add "struct parser_state" argument.
6940 (type_exp, exp1, exp, variable, type): Update calls to
6941 write_exp* and similars in order to use parser state.
6942 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6943 to use parser state.
6944 (go_parse): Likewise.
6945 * go-lang.h: Forward declare "struct parser_state".
6946 (go_parse): Add "struct parser_state" argument.
6948 2014-03-27 Doug Evans <dje@google.com>
6950 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6952 2014-03-27 Doug Evans <dje@google.com>
6954 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6955 Remove argument abbrev_section. All callers updated.
6957 2014-03-27 Doug Evans <dje@google.com>
6959 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6960 addr_base, ranges_base.
6962 2014-03-26 Keith Seitz <keiths@redhat.com>
6964 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6965 types, not VAR_DOMAIN.
6967 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6969 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6971 * features/nios2-linux.c: Regenerated.
6972 * features/nios2.c: Regenerated.
6974 2014-03-25 Pedro Alves <palves@redhat.com>
6976 * cli/cli-script.c (script_from_file): Force the interpreter to
6979 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6981 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6982 small stack allocation.
6984 2014-03-24 Tristan Gingold <gingold@adacore.com>
6986 * darwin-nat.c (exc_server): Remove unused prototype.
6987 (darwin_dump_message): Correctly display data on x86_64.
6988 (darwin_encode_reply): Fix style.
6989 Add comments and fix indentation.
6991 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6993 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6995 2014-03-22 Doug Evans <xdje42@gmail.com>
6997 * infcmd.c: Whitespace fixes.
6998 (interrupt_command): Merge two function comments into one.
7000 2014-03-22 Doug Evans <xdje42@gmail.com>
7002 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7005 2014-03-22 Yao Qi <yao@codesourcery.com>
7007 * remote.c (target_read_live_memory): Remove.
7008 (memory_xfer_live_readonly_partial): Rename it to
7009 remote_xfer_live_readonly_partial. Remove argument 'object'.
7010 All callers updated. Call remote_read_bytes_1
7011 instead of target_read_live_memory.
7012 * tracepoint.c (set_traceframe_number): Remove.
7013 (make_cleanup_restore_traceframe_number): Likewise .
7014 * tracepoint.h (set_traceframe_number): Remove declaration.
7015 (make_cleanup_restore_traceframe_number): Likewise.
7017 2014-03-22 Yao Qi <yao@codesourcery.com>
7019 * remote.c (remote_read_bytes): Move code on reading from the
7021 (remote_read_bytes_1): ... here. New function.
7023 2014-03-22 Yao Qi <yao@codesourcery.com>
7025 * ctf.c (ctf_xfer_partial): Check the return value of
7026 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7027 return TARGET_XFER_UNAVAILABLE.
7028 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7029 * target.c (target_read_live_memory): Move it to remote.c.
7030 (memory_xfer_live_readonly_partial): Likewise.
7031 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7032 * remote.c (target_read_live_memory): Moved from target.c.
7033 (memory_xfer_live_readonly_partial): Likewise.
7034 (remote_read_bytes): Factored out from
7035 memory_xfer_partial_1.
7037 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7039 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7042 2014-03-21 Pedro Alves <palves@redhat.com>
7044 * infrun.c (normal_stop): Extend comment.
7046 2014-03-21 Hui Zhu <hui@codesourcery.com>
7047 Pedro Alves <palves@redhat.com>
7049 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7051 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7052 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7053 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7055 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7057 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7058 `z' formatted output modifier.
7060 2014-03-20 Tom Tromey <tromey@redhat.com>
7061 Sergio Durigan Junior <sergiodj@redhat.com>
7063 * probe.c (parse_probes): Turn assert into an ordinary error.
7064 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7065 exceptions when parsing probes. Rearrange the code for clarity.
7067 2014-03-20 Tom Tromey <tromey@redhat.com>
7070 * top.c (execute_command): Only dispatch events if the command
7073 2014-03-20 Tom Tromey <tromey@redhat.com>
7076 * infcall.c: Include event-top.h.
7077 (run_inferior_call): Call async_disable_stdin if needed.
7079 2014-03-20 Pedro Alves <palves@redhat.com>
7081 * infrun.c (prepare_to_proceed): Delete.
7082 (thread_still_needs_step_over): New function.
7083 (find_thread_needs_step_over): New function.
7084 (proceed): If the current thread needs a step-over, set its
7085 steping_over_breakpoint flag. Adjust to use
7086 find_thread_needs_step_over instead of prepare_to_proceed.
7087 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7088 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7090 (switch_back_to_stepped_thread): Step over breakpoints of all
7091 threads not the stepping thread, before switching back to the
7094 2014-03-20 Pedro Alves <palves@redhat.com>
7096 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7098 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7099 * infrun.c (saved_singlestep_ptid)
7100 (stepping_past_singlestep_breakpoint): Delete.
7101 (resume): Remove stepping_past_singlestep_breakpoint handling.
7102 (proceed): Store the prev_pc of the stepping thread too.
7103 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7105 (enum infwait_states): Delete infwait_thread_hop_state.
7106 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7108 (handle_inferior_event): Adjust.
7109 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7110 handling and the thread-hop code. Before removing single-step
7111 breakpoints, check whether the thread hit a single-step breakpoint
7112 of another thread. If it did, the trap is not a random signal.
7113 (switch_back_to_stepped_thread): If the event thread hit a
7114 single-step breakpoint, unblock it before switching to the
7115 stepping thread. Handle the case of the stepped thread having
7117 (keep_going): Handle the case of the current thread moving past a
7118 single-step breakpoint.
7120 2014-03-20 Pedro Alves <palves@redhat.com>
7123 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7124 are being stepped over.
7125 (breakpoint_address_match): Make extern.
7126 * breakpoint.h (breakpoint_address_match): New declaration.
7127 * inferior.h (stepping_past_instruction_at): New declaration.
7128 * infrun.c (struct step_over_info): New type.
7129 (step_over_info): New global.
7130 (set_step_over_info, clear_step_over_info)
7131 (stepping_past_instruction_at): New functions.
7132 (handle_inferior_event): Clear the step-over info when
7133 trap_expected is cleared.
7134 (resume): Remove now stale comment.
7135 (clear_proceed_status): Clear step-over info.
7136 (proceed): Adjust step-over handling to set or clear the step-over
7137 info instead of removing all breakpoints.
7138 (handle_signal_stop): When setting up a thread-hop, don't remove
7140 (stop_stepping): Clear step-over info.
7141 (keep_going): Adjust step-over handling to set or clear step-over
7142 info and then always inserting breakpoints, instead of removing
7143 all breakpoints when stepping over one.
7145 2014-03-20 Pedro Alves <palves@redhat.com>
7147 * infrun.c (previous_inferior_ptid): Adjust comment.
7148 (deferred_step_ptid): Delete.
7149 (infrun_thread_ptid_changed, prepare_to_proceed)
7150 (init_wait_for_inferior): Adjust.
7151 (handle_signal_stop): Delete deferred_step_ptid handling.
7153 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7156 * defs.h (sync_quit_force_run): New declaration.
7157 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7158 * event-top.c (async_sigterm_handler): New declaration.
7159 (async_sigterm_token): New variable.
7160 (async_init_signals): Create also async_sigterm_token.
7161 (async_sigterm_handler): New function.
7162 (sync_quit_force_run): New variable.
7163 (handle_sigterm): Replace quit_force call by other calls.
7164 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7166 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7168 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7169 offset into SPE pseudo registers.
7171 2014-03-18 Pedro Alves <palves@redhat.com>
7174 * inferior.h (print_stop_event): Declare.
7175 * infrun.c (print_stop_event): New, factored out from ...
7176 (normal_stop): ... this.
7177 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7178 of bpstat_print/print_stack_frame.
7180 2014-03-17 Tom Tromey <tromey@redhat.com>
7182 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7184 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7186 * ada-lang.c (decode_constrained_packed_array): Perform a
7187 minimal coercion for reference with coerce_ref instead of
7190 2014-03-17 Tristan Gingold <gingold@adacore.com>
7192 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7193 (darwin_solib_create_inferior_hook): Emit a warning if version
7196 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7198 * python/py-value.c (get_field_flag): Cast flag_name argument to
7199 PyObject_GetAttrString to support Python 2.4.
7201 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7203 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7204 (Global Maintainers): Remove Jan Kratochvil.
7206 2014-03-14 Pedro Alves <palves@redhat.com>
7208 * inferior.h (terminal_ours_for_output): Rename to ...
7209 (child_terminal_ours_for_output): ... this.
7210 (terminal_save_ours): Rename to ...
7211 (child_terminal_save_ours): ... this.
7212 (terminal_ours): Rename to ...
7213 (child_terminal_ours): ... this.
7214 (terminal_inferior): Rename to ...
7215 (child_terminal_inferior): ... this.
7216 (terminal_init_inferior): Rename to ...
7217 (child_terminal_init_inferior): ... this.
7218 (terminal_init_inferior_with_pgrp): Rename to ...
7219 (child_terminal_init_inferior_with_pgrp): ... this.
7220 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7221 (child_terminal_init_with_pgrp): ... this.
7222 (terminal_save_ours): Rename to ...
7223 (child_terminal_save_ours): ... this.
7224 (terminal_init_inferior): Rename to ...
7225 (child_terminal_init): ... this. Adjust.
7226 (terminal_inferior): Rename to ...
7227 (child_terminal_inferior): ... this.
7228 (terminal_ours_for_output): Rename to ...
7229 (child_terminal_ours_for_output): ... this. Adjust.
7230 (terminal_ours): Rename to ...
7231 (child_terminal_ours): ... this.
7232 (terminal_ours_1): Rename to ...
7233 (child_terminal_ours_1): ... this. Adjust.
7234 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7235 * windows-nat.c (do_initial_windows_stuff): Adjust.
7236 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7237 (gnu_terminal_init): ... this. Adjust.
7238 (gnu_target): Adjust.
7239 * inf-child.c (inf_child_target): Adjust.
7241 2014-03-13 Doug Evans <xdje42@gmail.com>
7244 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7247 2014-03-13 Doug Evans <xdje42@gmail.com>
7249 * value.c (record_latest_value): Call release_value_or_incref
7250 instead of release_value.
7252 2014-03-13 Pedro Alves <palves@redhat.com>
7254 * procfs.c (procfs_target): Don't override to_shortname,
7255 to_longname or to_doc.
7257 2014-03-13 Pedro Alves <palves@redhat.com>
7259 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7260 Unix in user visible strings.
7262 2014-03-12 Stan Shebs <stan@codesourcery.com>
7264 * gdbtypes.h: Annotate comments for Doxygen, add a page
7265 block comment with some general info.
7267 2014-03-12 Pedro Alves <palves@redhat.com>
7269 * infcmd.c (prepare_execution_command): New function, factored out
7270 from several execution commands.
7271 (run_command_1, continue_command, step_1, jump_command)
7272 (signal_command, until_command, advance_command, finish_command)
7273 (attach_command): Use prepare_execution_command.
7275 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7277 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7280 (struct arm_linux_thread_points): Removed.
7281 (struct arm_linux_process_info): New.
7282 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7283 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7284 (arm_linux_find_breakpoints_by_tid): Removed.
7285 (struct arch_lwp_info): New.
7286 (arm_linux_find_process_pid): New functions.
7287 (arm_linux_add_process): New functions.
7288 (arm_linux_process_info_get): New functions.
7289 (arm_linux_forget_process): New function.
7290 (arm_linux_get_debug_reg_state): New function.
7291 (struct update_registers_data): New.
7292 (update_registers_callback): New function.
7293 (arm_linux_insert_hw_breakpoint1): Updated.
7294 (arm_linux_remove_hw_breakpoint1): Updated.
7295 (arm_linux_insert_hw_breakpoint): Updated.
7296 (arm_linux_remove_hw_breakpoint): Updated.
7297 (arm_linux_insert_watchpoint): Updated.
7298 (arm_linux_remove_watchpoint): Updated.
7299 (arm_linux_new_thread): Updated.
7300 (arm_linux_prepare_to_resume): New function.
7301 (arm_linux_new_fork): New function.
7302 (_initialize_arm_linux_nat): Updated.
7304 2014-03-12 Pedro Alves <palves@redhat.com>
7306 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7308 2014-03-12 Tom Tromey <tromey@redhat.com>
7310 * inf-child.c (return_zero): New function.
7311 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7312 * aix-thread.c (aix_thread_inferior_created): New function.
7313 (aix_thread_attach): Remove.
7314 (init_aix_thread_ops): Don't set to_attach.
7315 (_initialize_aix_thread): Register inferior_created observer.
7316 * corelow.c (init_core_ops): Don't set to_attach or
7318 * exec.c (init_exec_ops): Don't set to_attach or
7320 * infcmd.c (run_command_1): Use find_run_target. Make direct
7322 (attach_command): Use find_attach_target. Make direct target
7324 * record-btrace.c (init_record_btrace_ops): Don't set
7326 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7328 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7329 set to_create_inferior.
7330 * target.c (complete_target_initialization): Add assertion.
7331 (target_create_inferior): Remove.
7332 (find_default_attach, find_default_create_inferior): Remove.
7333 (find_attach_target, find_run_target): New functions.
7334 (find_default_is_async_p, find_default_can_async_p)
7335 (target_supports_non_stop, target_attach): Remove.
7336 (init_dummy_target): Don't set to_create_inferior or
7337 to_supports_non_stop.
7338 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7339 TARGET_DEFAULT_FUNC.
7340 <to_create_inferior>: Add comment.
7341 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7342 TARGET_DEFAULT_RETURN.
7343 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7344 (find_attach_target, find_run_target): Declare.
7345 (target_create_inferior): Remove.
7346 (target_has_execution_1): Update comment.
7347 (target_supports_non_stop): Remove.
7348 * target-delegates.c: Rebuild.
7350 2014-03-12 Pedro Alves <palves@redhat.com>
7352 * inf-child.h: Update comment to not mention Unix.
7354 2014-03-12 Pedro Alves <palves@redhat.com>
7356 * inf-child.c: Update top comment to not mention Unix. Add
7357 generic comment describing how this target is meant to be used.
7358 (inf_child_post_attach, inf_child_post_startup_inferior)
7359 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7362 2014-03-12 Pedro Alves <palves@redhat.com>
7364 * nto-procfs.c: Include inf-child.h.
7365 (procfs_ops): Delete global.
7366 (procfs_can_run): Delete method.
7367 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7368 target pointer instead of referencing procfs_ops.
7369 (procfs_prepare_to_store): Delete.
7370 (init_procfs_ops): Delete function.
7371 (procfs_target): New function, based on init_procfs_ops, but
7372 inherit inf_child_target.
7373 (_initialize_procfs): Use procfs_target.
7375 2014-03-12 Pedro Alves <palves@redhat.com>
7377 * windows-nat.c: Include inf-child.h.
7378 (windows_ops): Delete global.
7379 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7381 (init_windows_ops): Delete function.
7382 (windows_target): New function, based on init_windows_ops, but
7383 inherit inf_child_target.
7384 (_initialize_windows_nat): Use windows_target. Install x86
7385 specific target methods here.
7387 2014-03-10 Doug Evans <xdje42@gmail.com>
7389 * guile/guile.c (call_initialize_gdb_module): New function.
7390 (initialize_guile): Replace call to scm_init_guile with call to
7393 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7395 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7396 in call to TYPE_CODE macro.
7398 2014-03-10 Jerome Guitton <guitton@adacore.com>
7400 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7401 Resolve tagged types to full view.
7403 2014-03-10 Hui Zhu <hui@codesourcery.com>
7405 * target.h (target_insert_breakpoint): Remove "hardware" from its
7408 2014-03-07 Doug Evans <dje@google.com>
7410 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7412 2014-03-07 Doug Evans <dje@google.com>
7414 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7415 Remove unused local comp_dir_attr. Assert exactly one of
7416 stub_comp_unit_die, stub_comp_dir is non-NULL.
7418 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7420 * target.h (complete_target_initialization, add_target):
7423 2014-03-07 Pedro Alves <palves@redhat.com>
7425 * go32-nat.c: Include inf-child.h.
7426 (go32_ops): Delete global.
7427 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7429 (go32_create_inferior): Push the passed in target pointer instead
7430 of referencing go32_ops.
7431 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7432 (go32_target): New function, based on init_go32_ops, but inherit
7434 (_initialize_go32_nat): Use go32_target. Move parts of
7437 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7439 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7440 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7441 SYMBOL_VALUE_ADDRESS.
7442 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7444 2014-03-06 Yao Qi <yao@codesourcery.com>
7446 * breakpoint.c (get_tracepoint_by_number): Remove argument
7447 optional_p. All callers updated. Adjust comments. Update
7449 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7451 2014-03-06 Yao Qi <yao@codesourcery.com>
7453 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7454 early if get_number returns zero. Use 'p' instead of 'args'.
7456 2014-03-06 Yao Qi <yao@codesourcery.com>
7458 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7461 2014-03-06 Yao Qi <yao@codesourcery.com>
7463 PR breakpoints/16508
7464 * tracepoint.c (check_trace_running): New function.
7465 (trace_find_command): Move code to check_trace_running and
7466 call check_trace_running.
7467 (trace_find_pc_command): Likewise.
7468 (trace_find_tracepoint_command): Likewise.
7469 (trace_find_line_command): Likewise.
7470 (trace_find_range_command): Likewise.
7471 * tracepoint.h (check_trace_running): Likewise.
7472 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7474 2014-03-06 Yao Qi <yao@codesourcery.com>
7476 * target.h (struct target_ops) <to_traceframe_info>: Use
7477 TARGET_DEFAULT_NORETURN (tcomplain ()).
7478 * target-delegates.c: Regenerated.
7480 2014-03-05 Pedro Alves <palves@redhat.com>
7483 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7484 void. Update comment.
7485 (dcache_xfer_memory): Delete.
7486 (dcache_read_memory_partial): New, based on the read bits of
7488 (dcache_update): Add status parameter. Use ULONGEST for len, and
7489 adjust. Discard cache lines if the reason for the update was
7491 * dcache.h (dcache_xfer_memory): Delete declaration.
7492 (dcache_read_memory_partial): New declaration.
7493 (dcache_update): Update prototype.
7494 * target.c (raw_memory_xfer_partial): Update the dcache here.
7495 (memory_xfer_partial_1): Don't handle dcache writes here.
7497 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7499 * remote-sim.c (gdbsim_load): Add const to prog.
7501 2014-03-03 Tom Tromey <tromey@redhat.com>
7503 * elfread.c (probe_key): Change to bfd_data.
7504 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7505 now per-BFD, not per-objfile.
7506 * stap-probe.c (stap_probe_destroy): Update comment.
7507 (handle_stap_probe): Allocate on the per-BFD obstack.
7509 2014-03-03 Tom Tromey <tromey@redhat.com>
7511 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7512 * breakpoint.c (create_longjmp_master_breakpoint): Use
7514 (add_location_to_breakpoint, bkpt_probe_insert_location)
7515 (bkpt_probe_remove_location): Update.
7516 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7517 * elfread.c (elf_symfile_relocate_probe): Remove.
7518 (elf_probe_fns): Update.
7519 (insert_exception_resume_breakpoint): Change type of "probe"
7520 parameter to bound_probe.
7521 (check_exception_resume): Update.
7522 * objfiles.c (objfile_relocate1): Don't relocate probes.
7523 * probe.c (bound_probe_s): New typedef.
7524 (parse_probes): Use get_probe_address. Set sal's objfile.
7525 (find_probe_by_pc): Return a bound_probe.
7526 (collect_probes): Return a VEC(bound_probe_s).
7527 (compare_probes): Update.
7528 (gen_ui_out_table_header_info): Change type of "probes"
7530 (info_probes_for_ops): Update.
7531 (get_probe_address): New function.
7532 (probe_safe_evaluate_at_pc): Update.
7533 * probe.h (struct probe_ops) <get_probe_address>: New field.
7534 <set_semaphore, clear_semaphore>: Add objfile parameter.
7535 (struct probe) <objfile>: Remove field.
7537 <address>: Update comment.
7538 (struct bound_probe): New.
7539 (find_probe_by_pc): Return a bound_probe.
7540 (get_probe_address): Declare.
7541 * solib-svr4.c (struct probe_and_action) <address>: New field.
7542 (hash_probe_and_action, equal_probe_and_action): Update.
7543 (register_solib_event_probe): Add address parameter.
7544 (solib_event_probe_at): Update.
7545 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7547 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7548 (stap_get_probe_address): New function.
7549 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7550 (compile_probe_arg): Update.
7551 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7553 (handle_stap_probe): Don't relocate the probe.
7554 (stap_relocate): Remove.
7555 (stap_gen_info_probes_table_values): Update.
7556 (stap_probe_ops): Remove stap_relocate.
7557 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7558 (debug_sym_probe_fns): Update.
7559 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7560 * symtab.c (init_sal): Use memset.
7561 * symtab.h (struct symtab_and_line) <objfile>: New field.
7562 * tracepoint.c (start_tracing, stop_tracing): Update.
7564 2014-03-03 Tom Tromey <tromey@redhat.com>
7566 * probe.h (parse_probes, find_probe_by_pc)
7567 (find_probes_in_objfile): Fix comments.
7569 2014-03-02 Doug Evans <xdje42@gmail.com>
7571 * infrun.c (handle_signal_stop): Replace test for
7572 TARGET_WAITKIND_STOPPED with an assert.
7574 2014-03-02 Doug Evans <xdje42@gmail.com>
7576 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7578 2014-03-02 Doug Evans <xdje42@gmail.com>
7580 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7582 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7584 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7586 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7588 * i386obsd-nat.c: Include "obsd-nat.h".
7589 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7591 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7593 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7595 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7597 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7599 * mips64obsd-nat.c: Include "obsd-nath".
7600 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7602 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7604 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7606 * amd64obsd-nat.c: Include "obsd-nat,h.
7607 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7609 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7611 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7613 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7614 (find_overload_match): Update call to find_oload_champ.
7615 (find_oload_champ_namespace_loop): Likewise
7617 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7619 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7621 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7622 * config/sparc/obsd64.mh: New file.
7623 * sparc64obsd-nat.c: New file.
7625 * obsd-nat.h: New file.
7626 * obsd-nat.c: New file.
7627 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7628 (ALLDEPFILES): Add obsd-nat.c.
7630 2014-02-28 Tom Tromey <tromey@redhat.com>
7632 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7633 * cli-out.h (cli_ui_out_impl): Now const.
7634 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7635 * ui-out.c (struct ui_out) <impl>: Now const.
7636 (default_ui_out_impl): Now const.
7637 (ui_out_new): Make 'impl' parameter const.
7638 * ui-out.h (ui_out_new): Update.
7640 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7642 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7644 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7646 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7648 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7650 Additional PR 8882 fix.
7651 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7653 2014-02-27 Pedro Alves <palves@redhat.com>
7655 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7658 2014-02-27 Pedro Alves <palves@redhat.com>
7661 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7662 * nat/linux-waitpid.c: Include string.h.
7663 (status_to_str): Moved here and made extern.
7664 * nat/linux-waitpid.h (status_to_str): New declaration.
7666 2014-02-27 Hui Zhu <hui@codesourcery.com>
7669 * infrun.c (ptid_match): Move ...
7670 * common/ptid.c (ptid_match): ... here.
7671 * inferior.h (ptid_match): Move ...
7672 * common/ptid.h (ptid_match): ... here.
7674 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7676 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7677 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7680 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7682 * obsd-tdep.c (obsd_auxv_parse): New function.
7683 (obsd_init_abi): Set auxv_parse.
7685 * gdbarch.sh (auxv_parse): New.
7686 * gdbarch.h: Regenerated.
7687 * gdbarch.c: Regenerated.
7688 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7690 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7692 * guile/scm-value.c (gdbscm_history_append_x): New function.
7693 (value_functions): Add it.
7695 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7697 * dwarf2read.c (attr_value_as_address): New function.
7698 (dwarf2_find_base_address, read_call_site_scope): Use
7699 attr_value_as_address in place of DW_ADDR.
7700 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7701 the low and high addresses. Slight rework of the handling
7702 of the high pc being a constant form, and limit it to
7703 DWARF verson 4 or higher.
7704 (dwarf2_record_block_ranges): Likewise.
7705 (read_partial_die): Likewise.
7706 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7708 2014-02-26 Tom Tromey <tromey@redhat.com>
7710 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7712 2014-02-26 Tom Tromey <tromey@redhat.com>
7714 * elfread.c (elf_read_minimal_symbols): Return early if
7715 minimal symbols have already been read. Add "ei" parameter.
7716 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7717 * minsyms.c (prim_record_minimal_symbol_full): Update.
7718 * objfiles.h (struct objstats) <n_minsyms>: Move...
7719 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7720 * symmisc.c (print_objfile_statistics): Update.
7722 2014-02-26 Tom Tromey <tromey@redhat.com>
7724 * elfread.c (elf_read_minimal_symbols): New function, from
7726 (elf_symfile_read): Call it.
7728 2014-02-26 Tom Tromey <tromey@redhat.com>
7730 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7731 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7732 (lookup_minimal_symbol_solib_trampoline)
7733 (lookup_minimal_symbol_by_pc_section_1)
7734 (lookup_minimal_symbol_and_objfile): Update.
7735 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7736 Don't allocate a minimal symbol if minsyms have already been read.
7737 (build_minimal_symbol_hash_tables): Update.
7738 (install_minimal_symbols): Do nothing if minsyms already read.
7739 Use the per-BFD obstack.
7740 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7741 * objfiles.c (allocate_objfile): Call
7742 terminate_minimal_symbol_table later.
7743 (have_minimal_symbols): Update.
7744 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7745 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7746 Move from struct objfile.
7747 <minsyms_read>: New field.
7748 (struct objfile) <msymbols, minimal_symbol_count,
7749 msymbol_hash, msymbol_demangled_hash>: Move.
7750 (ALL_OBJFILE_MSYMBOLS): Update.
7751 * symfile.c (read_symbols): Set minsyms_read.
7752 (reread_symbols): Update.
7753 * symmisc.c (dump_objfile, dump_msymbols): Update.
7755 2014-02-26 Tom Tromey <tromey@redhat.com>
7757 * minsyms.c (msymbols_sort): Remove.
7758 * minsyms.h (msymbols_sort): Remove.
7759 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7760 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7761 * elfread.c (elf_symtab_read): Don't add section offsets.
7762 * xcoffread.c (record_minimal_symbol): Don't add section offset
7763 to minimal symbol address.
7764 * somread.c (text_offset, data_offset): Remove.
7765 (som_symtab_read): Don't add section offsets to minimal symbol
7767 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7768 Don't add section offsets to minimal symbols.
7769 * coffread.c (coff_symtab_read): Don't add section offsets
7770 to minimal symbol addresses.
7771 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7772 to minimal symbol addresses.
7773 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7774 section offset to minimal symbol addresses.
7775 * mdebugread.c (parse_partial_symbols): Don't add section
7776 offset to minimal symbol addresses.
7777 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7778 offset to minimal symbol addresses.
7780 2014-02-26 Tom Tromey <tromey@redhat.com>
7782 * ada-lang.c (ada_main_name): Update.
7783 (ada_add_standard_exceptions): Update.
7784 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7785 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7786 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7787 * auxv.c (ld_so_xfer_auxv): Update.
7788 * avr-tdep.c (avr_scan_prologue): Update.
7789 * ax-gdb.c (gen_var_ref): Update.
7790 * blockframe.c (get_pc_function_start)
7791 (find_pc_partial_function_gnu_ifunc): Update.
7792 * breakpoint.c (create_overlay_event_breakpoint)
7793 (create_longjmp_master_breakpoint)
7794 (create_std_terminate_master_breakpoint)
7795 (create_exception_master_breakpoint): Update.
7796 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7797 * c-valprint.c (c_val_print): Update.
7798 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7799 * common/agent.c (agent_look_up_symbols): Update.
7800 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7801 * dwarf2loc.c (call_site_to_target_addr): Update.
7802 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7803 * elfread.c (elf_gnu_ifunc_record_cache)
7804 (elf_gnu_ifunc_resolve_by_got): Update.
7805 * findvar.c (default_read_var_value): Update.
7806 * frame.c (inside_main_func): Update.
7807 * frv-tdep.c (frv_frame_this_id): Update.
7808 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7809 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7811 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7812 (hppa_hpux_find_dummy_bpaddr): Update.
7813 * hppa-tdep.c (hppa_symbol_address): Update.
7814 * infcmd.c (until_next_command): Update.
7815 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7817 * linespec.c (minsym_found, add_minsym): Update.
7818 * linux-nat.c (get_signo): Update.
7819 * linux-thread-db.c (inferior_has_bug): Update.
7820 * m32c-tdep.c (m32c_return_value)
7821 (m32c_m16c_address_to_pointer): Update.
7822 * m32r-tdep.c (m32r_frame_this_id): Update.
7823 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7824 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7825 * maint.c (maintenance_translate_address): Update.
7826 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7827 (frob_address): New function.
7828 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7829 frob_address. Rename parameter to "pc_in".
7830 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7832 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7834 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7835 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7836 * objc-lang.c (find_objc_msgsend): Update.
7837 * objfiles.c (objfile_relocate1): Update.
7838 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7839 * p-valprint.c (pascal_val_print): Update.
7840 * parse.c (write_exp_msymbol): Update.
7841 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7842 (ppc_elfv2_skip_entrypoint): Update.
7843 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7844 * printcmd.c (build_address_symbolic, msym_info)
7845 (address_info): Update.
7846 * proc-service.c (ps_pglobal_lookup): Update.
7847 * psymtab.c (find_pc_sect_psymtab_closer)
7848 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7849 Change msymbol parameter to bound_minimal_symbol.
7850 * ravenscar-thread.c (get_running_thread_id): Update.
7851 * remote.c (remote_check_symbols): Update.
7852 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7854 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7855 * solib-dsbt.c (lm_base): Update.
7856 * solib-frv.c (lm_base, main_got): Update.
7857 * solib-irix.c (locate_base): Update.
7858 * solib-som.c (som_solib_create_inferior_hook)
7859 (link_map_start): Update.
7860 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7861 * solib-svr4.c (elf_locate_base, enable_break): Update.
7862 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7863 (flush_ea_cache): Update.
7864 * stabsread.c (define_symbol, scan_file_globals): Update.
7865 * stack.c (find_frame_funname): Update.
7866 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7867 (debug_qf_find_pc_sect_symtab): Update.
7868 * symfile.c (simple_read_overlay_table)
7869 (simple_overlay_update): Update.
7870 * symfile.h (struct quick_symbol_functions)
7871 <find_pc_sect_symtab>: Change type of msymbol to
7872 bound_minimal_symbol.
7873 * symmisc.c (dump_msymbols): Update.
7874 * symtab.c (find_pc_sect_symtab_via_partial)
7875 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7876 (search_symbols, print_msymbol_info): Update.
7877 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7878 (MSYMBOL_VALUE_ADDRESS): Redefine.
7879 (BMSYMBOL_VALUE_ADDRESS): New macro.
7880 * tracepoint.c (scope_info): Update.
7881 * tui/tui-disasm.c (tui_find_disassembly_address)
7882 (tui_get_begin_asm_address): Update.
7883 * valops.c (find_function_in_inferior): Update.
7884 * value.c (value_static_field, value_fn_field): Update.
7886 2014-02-26 Tom Tromey <tromey@redhat.com>
7888 * ada-lang.c (ada_update_initial_language): Update.
7889 (ada_main_name, ada_has_this_exception_support): Update.
7890 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7891 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7892 * arm-tdep.c (arm_skip_stub): Update.
7893 * auxv.c (ld_so_xfer_auxv): Update.
7894 * avr-tdep.c (avr_scan_prologue): Update.
7895 * ax-gdb.c (gen_var_ref): Update.
7896 * breakpoint.c (struct breakpoint_objfile_data)
7897 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7898 type to bound_minimal_symbol.
7899 (create_overlay_event_breakpoint)
7900 (create_longjmp_master_breakpoint)
7901 (create_std_terminate_master_breakpoint)
7902 (create_exception_master_breakpoint): Update.
7903 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7904 * c-exp.y (classify_name): Update.
7905 * coffread.c (coff_symfile_read): Update.
7906 * common/agent.c (agent_look_up_symbols): Update.
7907 * d-lang.c (d_main_name): Update.
7908 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7909 * dec-thread.c (enable_dec_thread): Update.
7910 * dwarf2loc.c (call_site_to_target_addr): Update.
7911 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7912 * eval.c (evaluate_subexp_standard): Update.
7913 * findvar.c (struct minsym_lookup_data) <result>: Change type
7914 to bound_minimal_symbol.
7916 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7917 * frame.c (inside_main_func): Update.
7918 * frv-tdep.c (frv_frame_this_id): Update.
7919 * gcore.c (call_target_sbrk): Update.
7920 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7921 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7923 * go-lang.c (go_main_name): Update.
7924 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7925 (hppa_hpux_find_import_stub_for_addr): Update.
7926 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7927 Update. Change return type.
7928 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7930 * jit.c (jit_breakpoint_re_set_internal): Update.
7931 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7933 * linux-nat.c (get_signo): Update.
7934 * linux-thread-db.c (inferior_has_bug): Update
7935 * m32c-tdep.c (m32c_return_value)
7936 (m32c_m16c_address_to_pointer): Update.
7937 * m32r-tdep.c (m32r_frame_this_id): Update.
7938 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7939 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7940 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7941 lookup_minimal_symbol. Change return type.
7942 (lookup_minimal_symbol): Remove.
7943 (lookup_bound_minimal_symbol): Update.
7944 (lookup_minimal_symbol_text): Change return type.
7945 (lookup_minimal_symbol_solib_trampoline): Change return type.
7946 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7947 (lookup_minimal_symbol_solib_trampoline): Change return type.
7948 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7949 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7950 (value_nsstring, find_imps): Update.
7951 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7952 * p-lang.c (pascal_main_name): Update.
7953 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7954 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7955 * proc-service.c (ps_pglobal_lookup): Update.
7956 * ravenscar-thread.c (get_running_thread_msymbol): Change
7958 (has_ravenscar_runtime, get_running_thread_id): Update.
7959 * remote.c (remote_check_symbols): Update.
7960 * sol-thread.c (ps_pglobal_lookup): Update.
7961 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7962 * solib-dsbt.c (lm_base): Update.
7963 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7965 * solib-irix.c (locate_base): Update.
7966 * solib-som.c (som_solib_create_inferior_hook)
7967 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7969 * solib-spu.c (spu_enable_break): Update.
7970 * solib-svr4.c (elf_locate_base, enable_break): Update.
7971 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7972 (flush_ea_cache): Update.
7973 * stabsread.c (define_symbol): Update.
7974 * symfile.c (simple_read_overlay_table): Update.
7975 * symtab.c (find_pc_sect_line): Update.
7976 * tracepoint.c (scope_info): Update.
7977 * tui-disasm.c (tui_get_begin_asm_address): Update.
7978 * value.c (value_static_field): Update.
7980 2014-02-26 Tom Tromey <tromey@redhat.com>
7982 * minsyms.c (prim_record_minimal_symbol_full): Use
7983 SET_MSYMBOL_VALUE_ADDRESS.
7984 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7985 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7986 SET_MSYMBOL_VALUE_ADDRESS.
7987 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7988 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7990 2014-02-26 Tom Tromey <tromey@redhat.com>
7992 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7993 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7994 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7995 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7996 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7997 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7998 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7999 * ada-lang.c (ada_main_name): Update.
8000 (ada_lookup_simple_minsym): Update.
8001 (ada_make_symbol_completion_list): Update.
8002 (ada_add_standard_exceptions): Update.
8003 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8004 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8005 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8006 * arm-tdep.c (skip_prologue_function): Update.
8007 (arm_skip_stack_protector, arm_skip_stub): Update.
8008 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8009 (arm_wince_skip_main_prologue): Update.
8010 * auxv.c (ld_so_xfer_auxv): Update.
8011 * avr-tdep.c (avr_scan_prologue): Update.
8012 * ax-gdb.c (gen_var_ref): Update.
8013 * block.c (call_site_for_pc): Update.
8014 * blockframe.c (get_pc_function_start): Update.
8015 (find_pc_partial_function_gnu_ifunc): Update.
8016 * breakpoint.c (create_overlay_event_breakpoint): Update.
8017 (create_longjmp_master_breakpoint): Update.
8018 (create_std_terminate_master_breakpoint): Update.
8019 (create_exception_master_breakpoint): Update.
8020 (resolve_sal_pc): Update.
8021 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8022 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8024 * c-valprint.c (c_val_print): Update.
8025 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8026 * coffread.c (coff_symfile_read): Update.
8027 * common/agent.c (agent_look_up_symbols): Update.
8028 * dbxread.c (find_stab_function_addr): Update.
8029 (end_psymtab): Update.
8030 * dwarf2loc.c (call_site_to_target_addr): Update.
8031 (func_verify_no_selftailcall): Update.
8032 (tailcall_dump): Update.
8033 (call_site_find_chain_1): Update.
8034 (dwarf_expr_reg_to_entry_parameter): Update.
8035 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8036 (elf_gnu_ifunc_resolve_by_got): Update.
8037 * f-valprint.c (info_common_command): Update.
8038 * findvar.c (read_var_value): Update.
8039 * frame.c (get_prev_frame_1): Update.
8040 (inside_main_func): Update.
8041 * frv-tdep.c (frv_skip_main_prologue): Update.
8042 (frv_frame_this_id): Update.
8043 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8044 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8045 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8046 (gnuv3_skip_trampoline): Update.
8047 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8048 (hppa64_hpux_in_solib_call_trampoline): Update.
8049 (hppa_hpux_skip_trampoline_code): Update.
8050 (hppa64_hpux_search_dummy_call_sequence): Update.
8051 (hppa_hpux_find_import_stub_for_addr): Update.
8052 (hppa_hpux_find_dummy_bpaddr): Update.
8053 * hppa-tdep.c (hppa_symbol_address)
8054 (hppa_lookup_stub_minimal_symbol): Update.
8055 * i386-tdep.c (i386_skip_main_prologue): Update.
8056 (i386_pe_skip_trampoline_code): Update.
8057 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8058 * infcall.c (get_function_name): Update.
8059 * infcmd.c (until_next_command): Update.
8060 * jit.c (jit_breakpoint_re_set_internal): Update.
8061 (jit_inferior_init): Update.
8062 * linespec.c (minsym_found): Update.
8063 (add_minsym): Update.
8064 * linux-fork.c (info_checkpoints_command): Update.
8065 * linux-nat.c (get_signo): Update.
8066 * linux-thread-db.c (inferior_has_bug): Update.
8067 * m32c-tdep.c (m32c_return_value): Update.
8068 (m32c_m16c_address_to_pointer): Update.
8069 (m32c_m16c_pointer_to_address): Update.
8070 * m32r-tdep.c (m32r_frame_this_id): Update.
8071 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8072 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8073 * maint.c (maintenance_translate_address): Update.
8074 * minsyms.c (add_minsym_to_hash_table): Update.
8075 (add_minsym_to_demangled_hash_table): Update.
8076 (msymbol_objfile): Update.
8077 (lookup_minimal_symbol): Update.
8078 (iterate_over_minimal_symbols): Update.
8079 (lookup_minimal_symbol_text): Update.
8080 (lookup_minimal_symbol_by_pc_name): Update.
8081 (lookup_minimal_symbol_solib_trampoline): Update.
8082 (lookup_minimal_symbol_by_pc_section_1): Update.
8083 (lookup_minimal_symbol_and_objfile): Update.
8084 (prim_record_minimal_symbol_full): Update.
8085 (compare_minimal_symbols): Update.
8086 (compact_minimal_symbols): Update.
8087 (build_minimal_symbol_hash_tables): Update.
8088 (install_minimal_symbols): Update.
8089 (terminate_minimal_symbol_table): Update.
8090 (find_solib_trampoline_target): Update.
8091 (minimal_symbol_upper_bound): Update.
8092 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8093 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8094 (mips_skip_pic_trampoline_code): Update.
8095 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8096 * objc-lang.c (selectors_info): Update.
8097 (classes_info): Update.
8098 (find_methods): Update.
8099 (find_imps): Update.
8100 (find_objc_msgsend): Update.
8101 * objfiles.c (objfile_relocate1): Update.
8102 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8103 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8104 * p-valprint.c (pascal_val_print): Update.
8105 * parse.c (write_exp_msymbol): Update.
8106 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8107 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8108 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8109 * printcmd.c (build_address_symbolic): Update.
8111 (address_info): Update.
8112 * proc-service.c (ps_pglobal_lookup): Update.
8113 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8114 (find_pc_sect_psymtab): Update.
8115 * python/py-framefilter.c (py_print_frame): Update.
8116 * ravenscar-thread.c (get_running_thread_id): Update.
8117 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8119 * remote.c (remote_check_symbols): Update.
8120 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8121 (rs6000_skip_trampoline_code): Update.
8122 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8123 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8124 * solib-dsbt.c (lm_base): Update.
8125 * solib-frv.c (lm_base): Update.
8127 * solib-irix.c (locate_base): Update.
8128 * solib-som.c (som_solib_create_inferior_hook): Update.
8129 (som_solib_desire_dynamic_linker_symbols): Update.
8130 (link_map_start): Update.
8131 * solib-spu.c (spu_enable_break): Update.
8132 (ocl_enable_break): Update.
8133 * solib-svr4.c (elf_locate_base): Update.
8134 (enable_break): Update.
8135 * spu-tdep.c (spu_get_overlay_table): Update.
8136 (spu_catch_start): Update.
8137 (flush_ea_cache): Update.
8138 * stabsread.c (define_symbol): Update.
8139 (scan_file_globals): Update.
8140 * stack.c (find_frame_funname): Update.
8141 (frame_info): Update.
8142 * symfile.c (simple_read_overlay_table): Update.
8143 (simple_overlay_update): Update.
8144 * symmisc.c (dump_msymbols): Update.
8145 * symtab.c (fixup_section): Update.
8146 (find_pc_sect_line): Update.
8147 (skip_prologue_sal): Update.
8148 (search_symbols): Update.
8149 (print_msymbol_info): Update.
8150 (rbreak_command): Update.
8151 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8152 (completion_list_objc_symbol): Update.
8153 (default_make_symbol_completion_list_break_on): Update.
8154 * tracepoint.c (scope_info): Update.
8155 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8156 (tui_get_begin_asm_address): Update.
8157 * valops.c (find_function_in_inferior): Update.
8158 * value.c (value_static_field): Update.
8159 (value_fn_field): Update.
8161 2014-02-26 Tom Tromey <tromey@redhat.com>
8163 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8164 bound minimal symbols. Move code that knows about minsym
8166 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8168 * minsyms.h (minimal_symbol_upper_bound): Declare.
8169 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8170 minimal_symbol_upper_bound.
8172 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8174 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8175 Use the type's name if its basic type does not have a tag.
8177 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8179 * dwarf2read.c (read_subrange_type): Add comment.
8181 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8183 * dwarf2read.c (update_enumeration_type_from_children): New
8184 function, mostly extracted from process_structure_scope.
8185 (read_enumeration_type): Call update_enumeration_type_from_children.
8186 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8187 and flag_flag_enum fields.
8189 2014-02-26 Pedro Alves <palves@redhat.com>
8191 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8192 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8193 to_xfer_partial method.
8195 2014-02-26 Pedro Alves <palves@redhat.com>
8197 * target.c (complete_target_initialization): Don't install
8198 default_xfer_partial as to_xfer_partial hook.
8200 (update_current_target): Don't INHERIT nor de_fault
8201 deprecated_xfer_memory. Delete de_fault macro.
8202 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8203 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8204 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8207 2014-02-26 Pedro Alves <palves@redhat.com>
8209 * go32-nat.c (my_write_child): New function.
8210 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8211 (go32_xfer_partial): New function.
8212 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8213 Instead install a to_xfer_partial hook.
8215 2014-02-26 Pedro Alves <palves@redhat.com>
8217 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8218 to_xfer_partial helper. Rewrite.
8219 (procfs_xfer_partial): New function.
8220 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8221 Install a to_xfer_partial hook.
8223 2014-02-26 Pedro Alves <palves@redhat.com>
8225 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8226 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8227 (m32r_xfer_partial): New function.
8228 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8229 Install a to_xfer_partial hook.
8231 2014-02-26 Pedro Alves <palves@redhat.com>
8233 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8235 (mips_xfer_partial): New function.
8236 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8237 hook. Install a to_xfer_partial hook.
8239 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8241 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8242 * gdbtypes.c (create_array_type_with_stride): New function,
8243 renaming create_array_type, but with an added parameter
8244 called "bit_stride".
8245 (create_array_type): Re-implement using
8246 create_array_type_with_stride.
8247 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8248 and DW_AT_bit_stride attributes.
8250 2014-02-26 Pedro Alves <palves@redhat.com>
8252 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8253 task-specific breakpoints.
8255 2014-02-25 Pedro Alves <palves@redhat.com>
8257 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8258 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8260 2014-02-25 Stan Shebs <stan@codesourcery.com>
8262 * defs.h: Annotate comments for Doxygen.
8264 2014-02-25 Tom Tromey <tromey@redhat.com>
8266 * target.h (target_ignore): Don't declare.
8267 * target.c (target_ignore): Remove.
8269 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8272 * auto-load.c (auto_load_objfile_script_1): Change filename to
8275 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8277 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8278 documentation. Adjust prototype to match the target_ops
8279 to_xfer_partial method. Adjust implementation accordingly.
8281 2014-02-25 Hui Zhu <hui@codesourcery.com>
8283 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8286 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8288 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8289 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8290 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8291 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8292 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8293 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8294 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8295 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8297 (rl78_register_type): Use a data pointer type for SP and
8298 new pseudo registers mentioned above. Use a 16 bit integer
8299 type for all other register pairs.
8300 (rl78_register_name, rl78_g10_register_name): Update for
8301 new pseudo registers.
8302 (rl78_pseudo_register_read): Likewise.
8303 (rl78_pseudo_register_write): Likewise.
8304 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8305 to the newly added pseudo registers.
8307 2014-02-24 Doug Evans <dje@google.com>
8309 * value.c (record_latest_value): Fix comment.
8310 * printcmd.c (print_command_1): Remove code to handle -1 return from
8311 record_latest_value.
8313 2014-02-24 Pedro Alves <palves@redhat.com>
8315 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8316 deprecated_xfer_memory hook.
8317 (procfs_xfer_partial): Call procfs_xfer_memory instead
8318 of the deprecated_xfer_memory target hook.
8319 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8322 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8324 * windows-nat.c (windows_xfer_shared_libraries): Return
8325 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8326 requested object is TARGET_OBJECT_LIBRARIES.
8328 2014-02-24 Yao Qi <yao@codesourcery.com>
8330 * target.h (enum target_xfer_status)
8331 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8332 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8334 * corefile.c (memory_error_message): User updated.
8335 * exec.c (section_table_read_available_memory): Likewise.
8336 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8337 * target.c (target_xfer_status_to_string): Likewise.
8338 (raw_memory_xfer_partial): Likewise.
8339 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8340 * valops.c (read_value_memory): Likewise.
8341 * exec.h: Update comments.
8343 2014-02-24 Yao Qi <yao@codesourcery.com>
8345 * target.c (target_xfer_status_to_string): Rename argument err
8347 * target.h (target_xfer_status_to_string): Update declaration.
8348 Replace target_xfer_error_to_string with
8349 target_xfer_status_to_string in comment.
8351 2014-02-24 Yao Qi <yao@codesourcery.com>
8353 * mips-linux-nat.c (super_close): Update its type.
8354 (mips_linux_close): Pass 'self' to super_close.
8356 2014-02-24 Yao Qi <yao@codesourcery.com>
8358 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8359 * corefile.c (read_memory): Adjusted.
8360 * target.c (target_write_with_progress): Adjusted.
8362 2014-02-23 Yao Qi <yao@codesourcery.com>
8366 2013-10-25 Yao Qi <yao@codesourcery.com>
8368 * remote.c (remote_traceframe_info): Return early if
8369 traceframe is not selected.
8371 2013-07-19 Yao Qi <yao@codesourcery.com>
8373 * target.c (update_current_target): Change the default action
8374 of 'to_traceframe_info' from tcomplain to return_zero.
8375 * target.h (struct target_ops) <to_traceframe_info>: Add more
8378 2014-02-23 Yao Qi <yao@codesourcery.com>
8380 * valops.c (read_value_memory): Rewrite it. Call
8381 target_xfer_partial in a loop.
8382 * exec.h (section_table_available_memory): Remove declaration.
8383 Move comments to ...
8384 * exec.c (section_table_available_memory): ... here. Make it
8387 2014-02-23 Yao Qi <yao@codesourcery.com>
8389 * exec.c (section_table_read_available_memory): New function.
8390 * exec.h (section_table_read_available_memory): Declare.
8391 * ctf.c (ctf_xfer_partial): Call
8392 section_table_read_available_memory.
8393 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8395 2014-02-23 Yao Qi <yao@codesourcery.com>
8397 * ctf.c (ctf_xfer_partial): Move code to ...
8398 * exec.c (exec_read_partial_read_only): ... it. New function.
8399 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8400 * tracefile.c: Include "exec.h".
8401 * exec.h (exec_read_partial_read_only): Declare.
8403 2014-02-23 Yao Qi <yao@codesourcery.com>
8405 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8406 (tfile_has_memory): Remove.
8407 (init_tfile_ops): Don't set fields to_has_all_memory and
8408 to_has_memory of tfile_ops.
8409 * tracefile.c (tracefile_has_all_memory): New function.
8410 (tracefile_has_memory): New function.
8411 (init_tracefile_ops): Initialize fields to_has_all_memory and
8412 to_has_memory of 'ops'.
8414 2014-02-23 Yao Qi <yao@codesourcery.com>
8416 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8417 (ctf_thread_alive, ctf_get_trace_status): Remove.
8418 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8420 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8421 (tfile_has_stack, tfile_has_registers): Remove.
8422 (tfile_thread_alive): Remove.
8423 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8425 * tracefile.c (tracefile_has_stack): New function.
8426 (tracefile_has_registers): New function.
8427 (tracefile_thread_alive): New function.
8428 (tracefile_get_trace_status): New function.
8429 (init_tracefile_ops): New function.
8430 * tracefile.h (init_tracefile_ops): Declare.
8432 2014-02-23 Yao Qi <yao@codesourcery.com>
8434 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8435 (O_LARGEFILE): Likewise.
8436 (tfile_ops): Likewise.
8437 (TRACE_HEADER_SIZE): Likewise.
8438 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8439 (cur_data_size): Likewise.
8440 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8441 (tfile_close, tfile_files_info): Likewise.
8442 (tfile_get_trace_status): Likewise.
8443 (tfile_get_tracepoint_status): Likewise.
8444 (tfile_get_traceframe_address): Likewise.
8445 (tfile_trace_find, match_blocktype): Likewise.
8446 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8447 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8448 (tfile_get_trace_state_variable_value): Likewise.
8449 (tfile_has_all_memory, tfile_has_memory): Likewise.
8450 (tfile_has_stack, tfile_has_registers): Likewise.
8451 (tfile_thread_alive, build_traceframe_info): Likewise.
8452 (tfile_traceframe_info, init_tfile_ops): Likewise.
8453 (_initialize_tracepoint): Don't call init_tfile_ops
8454 and add_target_with_completer.
8455 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8456 exec.h, completer.h and filenames.h.
8457 (_initialize_tracefile_tfile): New function.
8459 2014-02-23 Yao Qi <yao@codesourcery.com>
8461 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8463 (HFILES_NO_SRCDIR): Add tracefile.h.
8464 * ctf.c: Include "tracefile.h".
8465 * tracefile.h: New file.
8466 * tracefile.c: New file
8467 * tracefile-tfile.c: New file.
8468 * tracepoint.c: Include "tracefile.h".
8469 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8470 (stop_reason_names): Add const.
8471 (trace_file_writer_xfree): Move it to tracefile.c.
8472 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8473 (trace_save_ctf): Likewise.
8474 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8475 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8476 (tfile_write_header, tfile_write_regblock_type): Likewise.
8477 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8478 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8479 (tfile_write_raw_data, tfile_end): Likewise.
8480 (tfile_trace_file_writer_new): Likewise.
8481 (free_uploaded_tp): Make it extern.
8482 (free_uploaded_tsv): Make it extern.
8483 (_initialize_tracepoint): Move code to register command 'tsave'
8485 * tracepoint.h (stop_reason_names): Declare.
8486 (struct trace_frame_write_ops): Move it to tracefile.h.
8487 (struct trace_file_write_ops): Likewise.
8488 (struct trace_file_writer): Likewise.
8489 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8491 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8494 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8496 (get_cores_used_by_process): New parameter num_cores, use it.
8497 (linux_xfer_osdata_processes): Pass num_cores to it.
8498 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8501 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8503 * target.c (memory_xfer_partial): Fix length arg in call to
8504 breakpoint_xfer_memory.
8506 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8509 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8510 number comes after the + or - signs. Adjust length of register
8511 name to be extracted.
8513 2014-02-20 Tom Tromey <tromey@redhat.com>
8515 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8516 (ada_varobj_ops): Mark "extern".
8518 2014-02-20 Tom Tromey <tromey@redhat.com>
8520 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8522 2014-02-20 Doug Evans <xdje42@gmail.com>
8524 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8525 All callers updated.
8526 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8527 All callers updated.
8528 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8529 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8531 2014-02-20 lin zuojian <manjian2006@gmail.com>
8532 Joel Brobecker <brobecker@adacore.com>
8533 Doug Evans <xdje42@gmail.com>
8536 * dwarf2read.c (struct die_info): New member in_process.
8537 (reset_die_in_process): New function.
8538 (process_die): Set it at the start, reset when returning.
8539 (inherit_abstract_dies): Only call process_die if origin_child_die
8540 not already being processed.
8542 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8544 * windows-nat.c (handle_unload_dll): Add function documentation.
8545 (do_initial_windows_stuff): Add comment explaining why we wait
8546 until after inferior initialization has finished before
8547 processing all DLLs.
8549 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8551 * windows-nat.c (get_module_name): Delete.
8552 (windows_get_exec_module_filename): New function, mostly
8553 inspired from get_module_name.
8554 (windows_pid_to_exec_file): Replace call to get_module_name
8555 by call to windows_get_exec_module_filename.
8557 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8559 * windows-nat.c (handle_load_dll): Rewrite this function's
8560 introductory comment. Remove code using get_module_name
8561 to get the DLL's name.
8563 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8565 * windows-nat.c (get_windows_debug_event): Ignore
8566 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8567 if windows_initialization_done == 0.
8568 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8569 Adjust implementation to always load all DLLs.
8570 (do_initial_windows_stuff): Replace call to
8571 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8573 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8575 * windows-nat.c (_initialize_windows_nat): Deprecate the
8576 "dll-symbols" command. Turn the "add-shared-symbol-files"
8577 and "assf" aliases into commands, and deprecate them as well.
8578 * NEWS: Add entry explaining that "dll-symbols" and its two
8579 aliases are now deprecated.
8581 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8583 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8584 new-line in debug string. Remove trailing spaces.
8586 2014-02-19 Stan Shebs <stan@codesourcery.com>
8588 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8590 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8592 * NEWS: Add entry for the new feature
8593 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8596 2014-02-19 Stan Shebs <stan@codesourcery.com>
8598 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8600 2014-02-19 Pedro Alves <palves@redhat.com>
8602 * common/ptid.h (struct ptid): Mention that process_stratum
8603 targets should prefer ptid.lwp.
8605 2014-02-19 Pedro Alves <palves@redhat.com>
8607 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8608 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8609 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8610 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8611 store remote thread ids rather than ptid.tid.
8612 (_initialize_remote): Adjust.
8614 2014-02-19 Tom Tromey <tromey@redhat.com>
8616 * target.c (target_get_unwinder): Rewrite.
8617 (target_get_tailcall_unwinder): Rewrite.
8618 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8619 (record_btrace_to_get_tailcall_unwinder): New function.
8620 (init_record_btrace_ops): Update.
8621 * target.h (struct target_ops) <to_get_unwinder,
8622 to_get_tailcall_unwinder>: Now function pointers. Use
8623 TARGET_DEFAULT_RETURN.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8629 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8631 2014-02-19 Tom Tromey <tromey@redhat.com>
8633 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8635 * target-delegates.c: Rebuild.
8636 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8637 TARGET_DEFAULT_FUNC.
8638 * target.c (default_target_decr_pc_after_break): Rename from
8639 forward_target_decr_pc_after_break. Simplify.
8640 (target_decr_pc_after_break): Rely on delegation.
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8644 * target.c (update_current_target): Do not INHERIT to_doc or
8645 to_magic. Do not de_fault to_open or to_close.
8647 2014-02-19 Tom Tromey <tromey@redhat.com>
8649 * gcore.h (objfile_find_memory_regions): Declare.
8650 * gcore.c (objfile_find_memory_regions): No longer static. Add
8652 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8653 * exec.c: Include gcore.h.
8654 (exec_set_find_memory_regions): Remove.
8655 (exec_find_memory_regions): Remove.
8656 (exec_do_find_memory_regions): Remove.
8657 (init_exec_ops): Update.
8658 * defs.h (exec_set_find_memory_regions): Remove.
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target-delegates.c: Rebuild.
8663 * target.h (struct target_ops) <to_extra_thread_info,
8664 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8665 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8666 not 0, in TARGET_DEFAULT_RETURN.
8668 2014-02-19 Tom Tromey <tromey@redhat.com>
8670 * target.c (complete_target_initialization): Remove casts. Use
8671 return_zero_has_execution.
8672 (return_zero): Add "ignore" argument.
8673 (return_zero_has_execution): New function.
8674 (init_dummy_target): Remove casts. Use
8675 return_zero_has_execution.
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8679 * target.c (update_current_target): Update comments. Do not
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8684 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8686 * corelow.c (core_read_description): Delegate when needed.
8687 * remote.c (remote_read_description): Delegate when needed.
8688 * target-delegates.c: Rebuild.
8689 * target.c (target_read_description): Rewrite.
8690 * target.h (struct target_ops) <to_read_description>: Update
8691 comment. Use TARGET_DEFAULT_RETURN.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8698 (find_default_run_target): Check against delegate_can_run.
8699 * target.h (struct target_ops) <to_can_run>: Use
8700 TARGET_DEFAULT_RETURN.
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8704 * target-delegates.c: Rebuild.
8705 * target.c (target_disconnect): Unconditionally delegate.
8706 * target.h (struct target_ops) <to_disconnect>: Use
8707 TARGET_DEFAULT_NORETURN.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * record.c (record_stop): Unconditionally delegate.
8712 * target-delegates.c: Rebuild.
8713 * target.c (target_stop_recording): Unconditionally delegate.
8714 * target.h (struct target_ops) <to_stop_recording>: Use
8715 TARGET_DEFAULT_IGNORE.
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8719 * target-delegates.c: Rebuild.
8720 * target.c (target_enable_btrace): Unconditionally delegate.
8721 * target.h (struct target_ops) <to_enable_btrace>: Use
8722 TARGET_DEFAULT_NORETURN.
8724 2014-02-19 Tom Tromey <tromey@redhat.com>
8726 * target-delegates.c: Rebuild.
8727 * target.c (target_read_btrace): Unconditionally delegate.
8728 * target.h (struct target_ops) <to_read_btrace>: Use
8729 TARGET_DEFAULT_NORETURN.
8731 2014-02-19 Tom Tromey <tromey@redhat.com>
8733 * target-delegates.c: Rebuild.
8734 * target.c (target_teardown_btrace): Unconditionally delegate.
8735 * target.h (struct target_ops) <to_teardown_btrace>: Use
8736 TARGET_DEFAULT_NORETURN.
8738 2014-02-19 Tom Tromey <tromey@redhat.com>
8740 * target-delegates.c: Rebuild.
8741 * target.c (target_disable_btrace): Unconditionally delegate.
8742 * target.h (struct target_ops) <to_disable_btrace>: Use
8743 TARGET_DEFAULT_NORETURN.
8745 2014-02-19 Tom Tromey <tromey@redhat.com>
8747 * target-delegates.c: Rebuild.
8748 * target.c (default_search_memory): New function.
8749 (simple_search_memory): Update comment.
8750 (target_search_memory): Unconditionally delegate.
8751 * target.h (struct target_ops) <to_search_memory>: Use
8752 TARGET_DEFAULT_FUNC.
8754 2014-02-19 Tom Tromey <tromey@redhat.com>
8756 * auxv.c (default_auxv_parse): No longer static.
8757 (target_auxv_parse): Unconditionally delegate.
8758 * auxv.h (default_auxv_parse): Declare.
8759 * target-delegates.c: Rebuild.
8760 * target.c: Include auxv.h.
8761 * target.h (struct target_ops) <to_auxv_parse>: Use
8762 TARGET_DEFAULT_FUNC.
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * target-delegates.c: Rebuild.
8767 * target.c (target_memory_map): Unconditionally delegate.
8768 * target.h (struct target_ops) <to_memory_map>: Use
8769 TARGET_DEFAULT_RETURN.
8771 2014-02-19 Tom Tromey <tromey@redhat.com>
8773 * target-delegates.c: Rebuild.
8774 * target.c (target_thread_alive): Unconditionally delegate.
8775 * target.h (struct target_ops) <to_thread_alive>: Use
8776 TARGET_DEFAULT_RETURN.
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8780 * target-delegates.c: Rebuild.
8781 * target.c (target_save_record): Unconditionally delegate.
8782 * target.h (struct target_ops) <to_save_record>: Use
8783 TARGET_DEFAULT_NORETURN.
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * target-delegates.c: Rebuild.
8788 * target.c (target_delete_record): Unconditionally delegate.
8789 * target.h (struct target_ops) <to_delete_record>: Use
8790 TARGET_DEFAULT_NORETURN.
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8794 * target-delegates.c: Rebuild.
8795 * target.c (target_record_is_replaying): Unconditionally
8797 * target.h (struct target_ops) <to_record_is_replaying>: Use
8798 TARGET_DEFAULT_RETURN.
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8802 * target-delegates.c: Rebuild.
8803 * target.c (target_goto_record_begin): Unconditionally delegate.
8804 * target.h (struct target_ops) <to_goto_record_begin>: Use
8805 TARGET_DEFAULT_NORETURN.
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8809 * target-delegates.c: Rebuild.
8810 * target.c (target_goto_record_end): Unconditionally delegate.
8811 * target.h (struct target_ops) <to_goto_record_end>: Use
8812 TARGET_DEFAULT_NORETURN.
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target-delegates.c: Rebuild.
8817 * target.c (target_goto_record): Unconditionally delegate.
8818 * target.h (struct target_ops) <to_goto_record>: Use
8819 TARGET_DEFAULT_NORETURN.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * target-delegates.c: Rebuild.
8824 * target.c (target_insn_history): Unconditionally delegate.
8825 * target.h (struct target_ops) <to_insn_history>: Use
8826 TARGET_DEFAULT_NORETURN.
8828 2014-02-19 Tom Tromey <tromey@redhat.com>
8830 * target-delegates.c: Rebuild.
8831 * target.c (target_insn_history_from): Unconditionally delegate.
8832 * target.h (struct target_ops) <to_insn_history_from>: Use
8833 TARGET_DEFAULT_NORETURN.
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8837 * target-delegates.c: Rebuild.
8838 * target.c (target_insn_history_range): Unconditionally delegate.
8839 * target.h (struct target_ops) <to_insn_history_range>: Use
8840 TARGET_DEFAULT_NORETURN.
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8844 * target-delegates.c: Rebuild.
8845 * target.c (target_call_history): Unconditionally delegate.
8846 * target.h (struct target_ops) <to_call_history>: Use
8847 TARGET_DEFAULT_NORETURN.
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8851 * target-delegates.c: Rebuild.
8852 * target.c (target_call_history_from): Unconditionally delegate.
8853 * target.h (struct target_ops) <to_call_history_from>: Use
8854 TARGET_DEFAULT_NORETURN.
8856 2014-02-19 Tom Tromey <tromey@redhat.com>
8858 * target-delegates.c: Rebuild.
8859 * target.c (target_call_history_range): Unconditionally delegate.
8860 * target.h (struct target_ops) <to_call_history_range>: Use
8861 TARGET_DEFAULT_NORETURN.
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8865 * target-delegates.c: Rebuild.
8866 * target.c (target_verify_memory): Unconditionally delegate.
8867 * target.h (struct target_ops) <to_verify_memory>: Use
8868 TARGET_DEFAULT_NORETURN.
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8872 * target-delegates.c: Rebuild.
8873 * target.c (target_core_of_thread): Unconditionally delegate.
8874 * target.h (struct target_ops) <to_core_of_thread>: Use
8875 TARGET_DEFAULT_RETURN.
8877 2014-02-19 Tom Tromey <tromey@redhat.com>
8879 * target-delegates.c: Rebuild.
8880 * target.c (target_flash_done): Unconditionally delegate.
8881 * target.h (struct target_ops) <to_flash_done>: Use
8882 TARGET_DEFAULT_NORETURN.
8884 2014-02-19 Tom Tromey <tromey@redhat.com>
8886 * target-delegates.c: Rebuild.
8887 * target.c (target_flash_erase): Unconditionally delegate.
8888 * target.h (struct target_ops) <to_flash_erase>: Use
8889 TARGET_DEFAULT_NORETURN.
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8893 * target-delegates.c: Rebuild.
8894 * target.c (target_get_section_table): Unconditionally delegate.
8895 * target.h (struct target_ops) <to_get_section_table>: Use
8896 TARGET_DEFAULT_RETURN.
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target-delegates.c: Rebuild.
8901 * target.c (target_pid_to_str): Unconditionally delegate.
8902 (init_dummy_target): Don't initialize to_pid_to_str.
8903 (default_pid_to_str): Rename from dummy_pid_to_str.
8904 * target.h (struct target_ops) <to_pid_to_str>: Use
8905 TARGET_DEFAULT_FUNC.
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8909 * target-delegates.c: Rebuild.
8910 * target.c (target_find_new_threads): Unconditionally delegate.
8911 * target.h (struct target_ops) <to_find_new_threads>: Use
8912 TARGET_DEFAULT_RETURN.
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target-delegates.c: Rebuild.
8917 * target.c (target_program_signals): Unconditionally delegate.
8918 * target.h (struct target_ops) <to_program_signals>: Use
8919 TARGET_DEFAULT_IGNORE.
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * target-delegates.c: Rebuild.
8924 * target.c (target_pass_signals): Unconditionally delegate.
8925 * target.h (struct target_ops) <to_pass_signals>: Use
8926 TARGET_DEFAULT_IGNORE.
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8930 * target-delegates.c: Rebuild.
8931 * target.c (default_mourn_inferior): New function.
8932 (target_mourn_inferior): Unconditionally delegate.
8933 * target.h (struct target_ops) <to_mourn_inferior>: Use
8934 TARGET_DEFAULT_FUNC.
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8938 * target-delegates.c: Rebuild.
8939 * target.c (default_follow_fork): New function.
8940 (target_follow_fork): Unconditionally delegate.
8941 * target.h (struct target_ops) <to_follow_fork>: Use
8942 TARGET_DEFAULT_FUNC.
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8946 * target-delegates.c: Rebuild.
8947 * target.c (target_kill): Unconditionally delegate.
8948 * target.h (struct target_ops) <to_kill>: Use
8949 TARGET_DEFAULT_NORETURN.
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8953 * target-delegates.c: Rebuild.
8954 * target.c (target_masked_watch_num_registers): Unconditionally
8956 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8957 Use TARGET_DEFAULT_RETURN.
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8961 * target-delegates.c: Rebuild.
8962 * target.c (target_remove_mask_watchpoint): Unconditionally
8964 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8965 TARGET_DEFAULT_RETURN.
8967 2014-02-19 Tom Tromey <tromey@redhat.com>
8969 * target-delegates.c: Rebuild.
8970 * target.c (target_insert_mask_watchpoint): Unconditionally
8972 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8973 TARGET_DEFAULT_RETURN.
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8977 * target-delegates.c: Rebuild.
8978 * target.c (target_ranged_break_num_registers): Unconditionally
8980 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8981 Use TARGET_DEFAULT_RETURN.
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8985 * target-delegates.c: Rebuild.
8986 * target.c (target_fetch_registers): Unconditionally delegate.
8987 * target.h (struct target_ops) <to_fetch_registers>: Use
8988 TARGET_DEFAULT_NORETURN.
8990 2014-02-19 Tom Tromey <tromey@redhat.com>
8992 * target-delegates.c: Rebuild.
8993 * target.c (update_current_target): Don't inherit or default
8995 * target.h (struct target_ops) <to_stop>: Use
8996 TARGET_DEFAULT_IGNORE.
8998 2014-02-19 Tom Tromey <tromey@redhat.com>
9000 * target-delegates.c: Rebuild.
9001 * target.c (update_current_target): Don't inherit or default
9002 to_can_run_breakpoint_commands.
9003 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9004 Use TARGET_DEFAULT_RETURN.
9006 2014-02-19 Tom Tromey <tromey@redhat.com>
9008 * target-delegates.c: Rebuild.
9009 * target.c (update_current_target): Don't inherit or default
9010 to_supports_evaluation_of_breakpoint_conditions.
9011 * target.h (struct target_ops)
9012 <to_supports_evaluation_of_breakpoint_conditions>: Use
9013 TARGET_DEFAULT_RETURN.
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9017 * target-delegates.c: Rebuild.
9018 * target.c (update_current_target): Don't inherit or default
9019 to_augmented_libraries_svr4_read.
9020 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9021 Use TARGET_DEFAULT_RETURN.
9023 2014-02-19 Tom Tromey <tromey@redhat.com>
9025 * target-delegates.c: Rebuild.
9026 * target.c (update_current_target): Don't inherit or default
9028 * target.h (struct target_ops) <to_can_use_agent>: Use
9029 TARGET_DEFAULT_RETURN.
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target-delegates.c: Rebuild.
9034 * target.c (update_current_target): Don't inherit or default
9036 * target.h (struct target_ops) <to_use_agent>: Use
9037 TARGET_DEFAULT_NORETURN.
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9041 * target-delegates.c: Rebuild.
9042 * target.c (update_current_target): Don't inherit or default
9044 (return_null): Remove.
9045 * target.h (struct target_ops) <to_traceframe_info>: Use
9046 TARGET_DEFAULT_RETURN.
9048 2014-02-19 Tom Tromey <tromey@redhat.com>
9050 * target-delegates.c: Rebuild.
9051 * target.c (update_current_target): Don't inherit or default
9052 to_static_tracepoint_markers_by_strid.
9053 * target.h (struct target_ops)
9054 <to_static_tracepoint_markers_by_strid>: Use
9055 TARGET_DEFAULT_NORETURN.
9057 2014-02-19 Tom Tromey <tromey@redhat.com>
9059 * target-delegates.c: Rebuild.
9060 * target.c (update_current_target): Don't inherit or default
9061 to_static_tracepoint_marker_at.
9062 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9063 Use TARGET_DEFAULT_RETURN.
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9067 * target-delegates.c: Rebuild.
9068 * target.c (update_current_target): Don't inherit or default
9070 * target.h (struct target_ops) <to_set_permissions>: Use
9071 TARGET_DEFAULT_IGNORE.
9073 2014-02-19 Tom Tromey <tromey@redhat.com>
9075 * target-delegates.c: Rebuild.
9076 * target.c (update_current_target): Don't inherit or default
9078 * target.h (struct target_ops) <to_get_tib_address>: Use
9079 TARGET_DEFAULT_NORETURN.
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9083 * target-delegates.c: Rebuild.
9084 * target.c (update_current_target): Don't inherit or default
9086 * target.h (struct target_ops) <to_set_trace_notes>: Use
9087 TARGET_DEFAULT_RETURN.
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target-delegates.c: Rebuild.
9092 * target.c (update_current_target): Don't initialize
9093 to_set_trace_buffer_size.
9094 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9095 TARGET_DEFAULT_IGNORE.
9097 2014-02-19 Tom Tromey <tromey@redhat.com>
9099 * target-delegates.c: Rebuild.
9100 * target.c (update_current_target): Don't inherit or default
9101 to_set_circular_trace_buffer.
9102 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9103 TARGET_DEFAULT_IGNORE.
9105 2014-02-19 Tom Tromey <tromey@redhat.com>
9107 * target-delegates.c: Rebuild.
9108 * target.c (update_current_target): Don't inherit or default
9109 to_set_disconnected_tracing.
9110 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9111 TARGET_DEFAULT_IGNORE.
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * target-delegates.c: Rebuild.
9116 * target.c (update_current_target): Don't inherit or default
9117 to_get_min_fast_tracepoint_insn_len.
9118 (return_minus_one): Remove.
9119 * target.h (struct target_ops)
9120 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9122 2014-02-19 Tom Tromey <tromey@redhat.com>
9124 * target-delegates.c: Rebuild.
9125 * target.c (update_current_target): Don't inherit or default
9126 to_get_raw_trace_data.
9127 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9128 TARGET_DEFAULT_NORETURN.
9130 2014-02-19 Tom Tromey <tromey@redhat.com>
9132 * target-delegates.c: Rebuild.
9133 * target.c (update_current_target): Don't inherit or default
9134 to_upload_trace_state_variables.
9135 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9136 Use TARGET_DEFAULT_RETURN.
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9140 * target-delegates.c: Rebuild.
9141 * target.c (update_current_target): Don't inherit or default
9142 to_upload_tracepoints.
9143 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9144 TARGET_DEFAULT_RETURN.
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9148 * target-delegates.c: Rebuild.
9149 * target.c (update_current_target): Don't inherit or default
9151 * target.h (struct target_ops) <to_save_trace_data>: Use
9152 TARGET_DEFAULT_NORETURN.
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9156 * target-delegates.c: Rebuild.
9157 * target.c (update_current_target): Don't inherit or default
9158 to_get_trace_state_variable_value.
9159 * target.h (struct target_ops)
9160 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9164 * target-delegates.c: Rebuild.
9165 * target.c (update_current_target): Don't inherit or default
9167 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9171 * target-delegates.c: Rebuild.
9172 * target.c (update_current_target): Don't inherit or default
9174 * target.h (struct target_ops) <to_trace_stop>: Use
9175 TARGET_DEFAULT_NORETURN.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * target-delegates.c: Rebuild.
9180 * target.c (update_current_target): Don't inherit or default
9181 to_get_tracepoint_status.
9182 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9183 TARGET_DEFAULT_NORETURN.
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * target-delegates.c: Rebuild.
9188 * target.c (update_current_target): Don't inherit or default
9189 to_get_trace_status.
9190 * target.h (struct target_ops) <to_get_trace_status>: Use
9191 TARGET_DEFAULT_RETURN.
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9195 * target-delegates.c: Rebuild.
9196 * target.c (update_current_target): Don't inherit or default
9198 * target.h (struct target_ops) <to_trace_start>: Use
9199 TARGET_DEFAULT_NORETURN.
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9203 * target-delegates.c: Rebuild.
9204 * target.c (update_current_target): Don't inherit or default
9205 to_trace_set_readonly_regions.
9206 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9207 Use TARGET_DEFAULT_NORETURN.
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9211 * target-delegates.c: Rebuild.
9212 * target.c (update_current_target): Don't inherit or default
9213 to_disable_tracepoint.
9214 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9215 TARGET_DEFAULT_NORETURN.
9217 2014-02-19 Tom Tromey <tromey@redhat.com>
9219 * target-delegates.c: Rebuild.
9220 * target.c (update_current_target): Don't inherit or default
9221 to_enable_tracepoint.
9222 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9223 TARGET_DEFAULT_NORETURN.
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9227 * target-delegates.c: Rebuild.
9228 * target.c (update_current_target): Don't inherit or default
9229 to_download_trace_state_variable.
9230 * target.h (struct target_ops) <to_download_trace_state_variable>:
9231 Use TARGET_DEFAULT_NORETURN.
9233 2014-02-19 Tom Tromey <tromey@redhat.com>
9235 * target-delegates.c: Rebuild.
9236 * target.c (update_current_target): Don't inherit or default
9237 to_can_download_tracepoint.
9238 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9239 TARGET_DEFAULT_RETURN.
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9243 * target-delegates.c: Rebuild.
9244 * target.c (update_current_target): Don't inherit or default
9245 to_download_tracepoint.
9246 * target.h (struct target_ops) <to_download_tracepoint>: Use
9247 TARGET_DEFAULT_NORETURN.
9249 2014-02-19 Tom Tromey <tromey@redhat.com>
9251 * target-delegates.c: Rebuild.
9252 * target.c (update_current_target): Don't inherit or default
9254 * target.h (struct target_ops) <to_trace_init>: Use
9255 TARGET_DEFAULT_RETURN.
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9259 * target-delegates.c: Rebuild.
9260 * target.c (update_current_target): Don't inherit or default
9261 to_supports_string_tracing.
9262 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9263 TARGET_DEFAULT_RETURN.
9265 2014-02-19 Tom Tromey <tromey@redhat.com>
9267 * target-delegates.c: Rebuild.
9268 * target.c (update_current_target): Don't inherit or default
9269 to_supports_enable_disable_tracepoint.
9270 * target.h (struct target_ops)
9271 <to_supports_enable_disable_tracepoint>: Use
9272 TARGET_DEFAULT_RETURN.
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9276 * target-delegates.c: Rebuild.
9277 * target.c (update_current_target): Don't inherit or default
9278 to_supports_multi_process.
9279 * target.h (struct target_ops) <to_supports_multi_process>: Use
9280 TARGET_DEFAULT_RETURN.
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * target-delegates.c: Rebuild.
9285 * target.c (update_current_target): Don't inherit or default
9286 to_get_ada_task_ptid.
9287 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9288 TARGET_DEFAULT_FUNC.
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9292 * target-delegates.c: Rebuild.
9293 * target.c (update_current_target): Don't inherit or default
9294 to_thread_architecture.
9295 * target.h (struct target_ops) <to_thread_architecture>: 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_execution_direction.
9303 * target.h (struct target_ops) <to_execution_direction>: Use
9304 TARGET_DEFAULT_FUNC.
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * target-delegates.c: Rebuild.
9309 * target.c (update_current_target): Don't inherit or default
9310 to_can_execute_reverse.
9311 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9312 TARGET_DEFAULT_RETURN.
9313 (target_can_execute_reverse): Unconditionally delegate.
9315 2014-02-19 Tom Tromey <tromey@redhat.com>
9317 * target-delegates.c: Rebuild.
9318 * target.c (update_current_target): Don't inherit or default
9320 (dummy_goto_bookmark): Remove.
9321 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9322 * target.h (struct target_ops) <to_goto_bookmark>: Use
9323 TARGET_DEFAULT_NORETURN.
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9327 * target-delegates.c: Rebuild.
9328 * target.c (update_current_target): Don't inherit or default
9330 (dummy_get_bookmark): Remove.
9331 (init_dummy_target): Don't inherit or default to_get_bookmark.
9332 * target.h (struct target_ops) <to_get_bookmark>: Use
9333 TARGET_DEFAULT_NORETURN
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9337 * target-delegates.c: Rebuild.
9338 * target.c (update_current_target): Don't inherit or default
9339 to_make_corefile_notes.
9340 (init_dummy_target): Don't initialize to_make_corefile_notes.
9341 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9342 TARGET_DEFAULT_FUNC.
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9346 * target-delegates.c: Rebuild.
9347 * target.c (update_current_target): Don't inherit or default
9348 to_find_memory_regions.
9349 (init_dummy_target): Don't initialize to_find_memory_regions.
9350 * target.h (struct target_ops) <to_find_memory_regions>: Use
9351 TARGET_DEFAULT_FUNC.
9353 2014-02-19 Tom Tromey <tromey@redhat.com>
9355 * target-delegates.c: Rebuild.
9356 * target.c (update_current_target): Don't inherit or default
9358 * target.h (struct target_ops) <to_log_command>: Use
9359 TARGET_DEFAULT_IGNORE.
9360 (target_log_command): Unconditionally delegate.
9362 2014-02-19 Tom Tromey <tromey@redhat.com>
9364 * target-delegates.c: Rebuild.
9365 * target.c (update_current_target): Don't inherit or default
9366 to_pid_to_exec_file.
9367 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9368 TARGET_DEFAULT_RETURN.
9370 2014-02-19 Tom Tromey <tromey@redhat.com>
9372 * target-delegates.c: Rebuild.
9373 * target.c (update_current_target): Don't inherit or default
9375 (target_thread_name): Unconditionally delegate.
9376 * target.h (struct target_ops) <to_thread_name>: Use
9377 TARGET_DEFAULT_RETURN.
9379 2014-02-19 Tom Tromey <tromey@redhat.com>
9381 * target-delegates.c: Rebuild.
9382 * target.c (update_current_target): Don't inherit or default
9383 to_extra_thread_info.
9384 * target.h (struct target_ops) <to_extra_thread_info>: Use
9385 TARGET_DEFAULT_RETURN.
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target-delegates.c: Rebuild.
9390 * target.c (update_current_target): Don't inherit or default
9392 * target.h (struct target_ops) <to_has_exited>: Use
9393 TARGET_DEFAULT_RETURN..
9395 2014-02-19 Tom Tromey <tromey@redhat.com>
9397 * target-delegates.c: Rebuild.
9398 * target.c (update_current_target): Don't inherit or default
9399 to_set_syscall_catchpoint.
9400 (return_one): Remove.
9401 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9402 TARGET_DEFAULT_RETURN.
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * target-delegates.c: Rebuild.
9407 * target.c (update_current_target): Don't inherit or default
9408 to_insert_exec_catchpoint.
9409 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9410 TARGET_DEFAULT_RETURN.
9412 2014-01-08 Tom Tromey <tromey@redhat.com>
9414 * target-delegates.c: Rebuild.
9415 * target.c (update_current_target): Don't inherit or default
9416 to_insert_exec_catchpoint.
9417 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9418 TARGET_DEFAULT_RETURN.
9420 2014-02-19 Tom Tromey <tromey@redhat.com>
9422 * target-delegates.c: Rebuild.
9423 * target.c (update_current_target): Don't inherit or default
9424 to_remove_vfork_catchpoint.
9425 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9426 TARGET_DEFAULT_RETURN.
9428 2014-02-19 Tom Tromey <tromey@redhat.com>
9430 * target-delegates.c: Rebuild.
9431 * target.c (update_current_target): Don't inherit or default
9432 to_insert_vfork_catchpoint.
9433 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9434 TARGET_DEFAULT_RETURN.
9436 2014-02-19 Tom Tromey <tromey@redhat.com>
9438 * target-delegates.c: Rebuild.
9439 * target.c (update_current_target): Don't inherit or default
9440 to_remove_fork_catchpoint.
9441 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9442 TARGET_DEFAULT_RETURN.
9444 2014-02-19 Tom Tromey <tromey@redhat.com>
9446 * target-delegates.c: Rebuild.
9447 * target.c (update_current_target): Don't inherit or default
9448 to_insert_fork_catchpoint.
9449 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9450 TARGET_DEFAULT_RETURN.
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9454 * target-delegates.c: Rebuild.
9455 * target.c (update_current_target): Don't inherit or default
9456 to_post_startup_inferior.
9457 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9458 TARGET_DEFAULT_IGNORE.
9460 2014-02-19 Tom Tromey <tromey@redhat.com>
9462 * target-delegates.c: Rebuild.
9463 * target.c (update_current_target): Don't inherit or default
9465 * target.h (struct target_ops) <to_load>: Use
9466 TARGET_DEFAULT_NORETURN.
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target-delegates.c: Rebuild.
9471 * target.c (update_current_target): Don't inherit or default
9473 * target.h (struct target_ops) <to_terminal_info>: Use
9474 TARGET_DEFAULT_FUNC.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target-delegates.c: Rebuild.
9479 * target.c (update_current_target): Don't inherit or default
9480 to_terminal_save_ours.
9481 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9482 TARGET_DEFAULT_IGNORE.
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9486 * target-delegates.c: Rebuild.
9487 * target.c (update_current_target): Don't inherit or default
9489 * target.h (struct target_ops) <to_terminal_ours>: Use
9490 TARGET_DEFAULT_IGNORE.
9492 2014-02-19 Tom Tromey <tromey@redhat.com>
9494 * target-delegates.c: Rebuild.
9495 * target.c (update_current_target): Don't inherit or default
9496 to_terminal_ours_for_output.
9497 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9498 TARGET_DEFAULT_IGNORE.
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9502 * target-delegates.c: Rebuild.
9503 * target.c (update_current_target): Don't inherit or default
9504 to_terminal_inferior.
9505 * target.h (struct target_ops) <to_terminal_inferior>: Use
9506 TARGET_DEFAULT_IGNORE.
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target-delegates.c: Rebuild.
9511 * target.c (update_current_target): Don't inherit or default
9513 * target.h (struct target_ops) <to_terminal_init>: Use
9514 TARGET_DEFAULT_IGNORE.
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9518 * target-delegates.c: Rebuild.
9519 * target.c (update_current_target): Don't inherit or default
9520 to_can_accel_watchpoint_condition.
9521 * target.h (struct target_ops)
9522 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9524 2014-02-19 Tom Tromey <tromey@redhat.com>
9526 * target-delegates.c: Rebuild.
9527 * target.c (update_current_target): Don't inherit or default
9528 to_region_ok_for_hw_watchpoint.
9529 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9530 Use TARGET_DEFAULT_FUNC.
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9534 * target-delegates.c: Rebuild.
9535 * target.c (update_current_target): Don't inherit or default
9536 to_watchpoint_addr_within_range.
9537 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9538 Use TARGET_DEFAULT_FUNC.
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9542 * target-delegates.c: Rebuild.
9543 * target.c (update_current_target): Don't inherit or default
9544 to_remove_watchpoint.
9545 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9546 TARGET_DEFAULT_NORETURN.
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9550 * target-delegates.c: Rebuild.
9551 * target.c (update_current_target): Don't inherit or default
9552 to_insert_watchpoint.
9553 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9554 TARGET_DEFAULT_RETURN.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target-delegates.c: Rebuild.
9559 * target.c (update_current_target): Don't inherit or default
9560 to_remove_hw_breakpoint.
9561 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9562 TARGET_DEFAULT_RETURN.
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9566 * target-delegates.c: Rebuild.
9567 * target.c (update_current_target): Don't inherit or default
9568 to_insert_hw_breakpoint.
9569 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9570 TARGET_DEFAULT_RETURN.
9572 2014-02-19 Tom Tromey <tromey@redhat.com>
9574 * target-delegates.c: Rebuild.
9575 * target.c (update_current_target): Don't inherit or default
9576 to_can_use_hw_breakpoint.
9577 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9578 TARGET_DEFAULT_RETURN.
9580 2014-02-19 Tom Tromey <tromey@redhat.com>
9582 * target-delegates.c: Rebuild.
9583 * target.c (update_current_target): Don't inherit or default
9585 * target.h (struct target_ops) <to_files_info>: Use
9586 TARGET_DEFAULT_IGNORE.
9588 2014-02-19 Tom Tromey <tromey@redhat.com>
9590 * target-delegates.c: Rebuild.
9591 * target.c (update_current_target): Don't inherit or default
9593 * target.h (struct target_ops) <to_store>: Use
9594 TARGET_DEFAULT_NORETURN.
9596 2014-02-19 Tom Tromey <tromey@redhat.com>
9598 * target-delegates.c: Rebuild.
9599 * target.c (update_current_target): Don't inherit or default
9601 * target.h (struct target_ops) <to_post_attach>: Use
9602 TARGET_DEFAULT_IGNORE.
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9606 * target-delegates.c: Rebuild.
9607 * target.c (update_current_target): Don't inherit or default
9609 (default_rcmd): New function.
9610 (do_monitor_command): Unconditionally delegate.
9611 * target.h (struct target_ops) <to_rmcd>: Use
9612 TARGET_DEFAULT_FUNC.
9614 2014-02-19 Tom Tromey <tromey@redhat.com>
9616 * target-delegates.c: Rebuild.
9617 * target.c (init_dummy_target): Don't initialize to_attach.
9618 (target_attach): Unconditionally delegate.
9619 * target.h (struct target_ops) <to_attach>: Use
9620 TARGET_DEFAULT_FUNC.
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9624 * target-delegates.c: Rebuild.
9625 * target.c (target_detach): Unconditionally delegate.
9626 (init_dummy_target): Don't initialize to_detach.
9627 * target.h (struct target_ops) <to_detach>: Use
9628 TARGET_DEFAULT_IGNORE.
9630 2014-02-19 Tom Tromey <tromey@redhat.com>
9632 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9634 (target_augmented_libraries_svr4_read): Add argument.
9635 * target.c (update_current_target): Update.
9636 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9641 * target.h (struct target_ops) <to_call_history_range>: Add
9643 * target.c (target_call_history_range): Add argument.
9644 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9646 (record_btrace_call_history_from): Update.
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9650 * target.h (struct target_ops) <to_call_history_from>: Add
9652 * target.c (target_call_history_from): Add argument.
9653 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9656 2014-02-19 Tom Tromey <tromey@redhat.com>
9658 * target.h (struct target_ops) <to_call_history>: Add argument.
9659 * target.c (target_call_history): Add argument.
9660 * record-btrace.c (record_btrace_call_history): Add 'self'
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9665 * target.h (struct target_ops) <to_insn_history_range>: Add
9667 * target.c (target_insn_history_range): Add argument.
9668 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9670 (record_btrace_insn_history_from): Update.
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9674 * target.h (struct target_ops) <to_insn_history_from>: Add
9676 * target.c (target_insn_history_from): Add argument.
9677 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9680 2014-02-19 Tom Tromey <tromey@redhat.com>
9682 * target.h (struct target_ops) <to_insn_history>: Add argument.
9683 * target.c (target_insn_history): Add argument.
9684 * record-btrace.c (record_btrace_insn_history): Add 'self'
9687 2014-02-19 Tom Tromey <tromey@redhat.com>
9689 * target.h (struct target_ops) <to_goto_record>: Add argument.
9690 * target.c (target_goto_record): Add argument.
9691 * record-full.c (record_full_goto): Add 'self' argument.
9692 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9694 2014-02-19 Tom Tromey <tromey@redhat.com>
9696 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9697 * target.c (target_goto_record_end): Add argument.
9698 * record-full.c (record_full_goto_end): Add 'self' argument.
9699 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9701 2014-02-19 Tom Tromey <tromey@redhat.com>
9703 * target.h (struct target_ops) <to_goto_record_begin>: Add
9705 * target.c (target_goto_record_begin): Add argument.
9706 * record-full.c (record_full_goto_begin): Add 'self' argument.
9707 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9710 2014-02-19 Tom Tromey <tromey@redhat.com>
9712 * target.h (struct target_ops) <to_record_is_replaying>: Add
9714 * target.c (target_record_is_replaying): Add argument.
9715 * record-full.c (record_full_is_replaying): Add 'self' argument.
9716 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9718 (record_btrace_xfer_partial, record_btrace_store_registers)
9719 (record_btrace_prepare_to_store, record_btrace_resume)
9720 (record_btrace_wait, record_btrace_decr_pc_after_break)
9721 (record_btrace_find_new_threads, record_btrace_thread_alive):
9724 2014-02-19 Tom Tromey <tromey@redhat.com>
9726 * target.h (struct target_ops) <to_delete_record>: Add argument.
9727 * target.c (target_delete_record): Add argument.
9728 * record-full.c (record_full_delete): Add 'self' argument.
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9732 * target.h (struct target_ops) <to_save_record>: Add argument.
9733 * target.c (target_save_record): Add argument.
9734 * record-full.c (record_full_save): Add 'self' argument.
9735 (record_full_save): Add 'self' argument.
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9739 * target.h (struct target_ops) <to_info_record>: Add argument.
9740 * target.c (target_info_record): Add argument.
9741 * record.c (info_record_command): Add argument.
9742 * record-full.c (record_full_info): Add 'self' argument.
9743 * record-btrace.c (record_btrace_info): Add 'self' argument.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9748 * target.c (target_stop_recording): Add argument.
9749 * record.c (record_stop): Add argument.
9750 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9755 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9756 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9757 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9759 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9760 (_initialize_amd64_linux_nat): Use it.
9761 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9762 (_initialize_i386_linux_nat): Use it.
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9766 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9767 * target.c (target_teardown_btrace): Add argument.
9768 * remote.c (remote_teardown_btrace): Add 'self' argument.
9769 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9771 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9776 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9777 * target.c (target_disable_btrace): Add argument.
9778 * remote.c (remote_disable_btrace): Add 'self' argument.
9779 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9781 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9786 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9787 * target.c (target_enable_btrace): Add argument.
9788 * remote.c (remote_enable_btrace): Add 'self' argument.
9789 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9791 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9796 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9797 (target_can_use_agent): Add argument.
9798 * target.c (update_current_target): Update.
9799 * remote.c (remote_can_use_agent): Add 'self' argument.
9800 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9804 * target.h (struct target_ops) <to_use_agent>: Add argument.
9805 (target_use_agent): Add argument.
9806 * target.c (update_current_target): Update.
9807 * remote.c (remote_use_agent): Add 'self' argument.
9808 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9812 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9813 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9814 (target_traceframe_info): Add argument.
9815 * target.c (update_current_target): Update.
9816 * remote.c (remote_traceframe_info): Add 'self' argument.
9817 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9821 * target.h (target_static_tracepoint_markers_by_strid): Add
9823 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9825 * target.c (update_current_target): Update.
9826 * remote.c (struct target_ops)
9827 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9828 * linux-nat.c (struct target_ops)
9829 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9833 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9835 (target_static_tracepoint_marker_at): Add argument.
9836 * target.c (update_current_target): Update.
9837 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9840 2014-02-19 Tom Tromey <tromey@redhat.com>
9842 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9843 (target_set_permissions): Add argument.
9844 * target.c (update_current_target): Update.
9845 * remote.c (remote_set_permissions): Add 'self' argument.
9846 (remote_start_remote): Update.
9848 2014-02-19 Tom Tromey <tromey@redhat.com>
9850 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9851 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9852 (target_get_tib_address): Add argument.
9853 * target.c (update_current_target): Update.
9854 * remote.c (remote_get_tib_address): Add 'self' argument.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9859 (target_set_trace_notes): Add argument.
9860 * target.c (update_current_target): Update.
9861 * remote.c (remote_set_trace_notes): Add 'self' argument.
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9865 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9867 (target_set_trace_buffer_size): Add argument.
9868 * target.c (update_current_target): Update.
9869 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9871 2014-02-19 Tom Tromey <tromey@redhat.com>
9873 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9875 (target_set_circular_trace_buffer): Add argument.
9876 * target.c (update_current_target): Update.
9877 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9880 2014-02-19 Tom Tromey <tromey@redhat.com>
9882 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9884 (target_set_disconnected_tracing): Add argument.
9885 * target.c (update_current_target): Update.
9886 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9888 2014-02-19 Tom Tromey <tromey@redhat.com>
9890 * target.h (struct target_ops)
9891 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9892 (target_get_min_fast_tracepoint_insn_len): Add argument.
9893 * target.c (update_current_target): Update.
9894 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9899 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9901 (target_get_raw_trace_data): Add argument.
9902 * target.c (update_current_target): Update.
9903 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9905 2014-02-19 Tom Tromey <tromey@redhat.com>
9907 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9909 (target_upload_trace_state_variables): Add argument.
9910 * target.c (update_current_target): Update.
9911 * remote.c (remote_upload_trace_state_variables): Add 'self'
9913 (remote_start_remote): Update.
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9917 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9919 (target_upload_tracepoints): Add argument.
9920 * target.c (update_current_target): Update.
9921 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9922 (remote_start_remote): Update.
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9926 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9927 (target_save_trace_data): Add argument.
9928 * target.c (update_current_target): Update.
9929 * remote.c (remote_save_trace_data): Add 'self' argument.
9931 2014-02-19 Tom Tromey <tromey@redhat.com>
9933 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9935 * target.h (struct target_ops)
9936 <to_get_trace_state_variable_value>: Add argument.
9937 (target_get_trace_state_variable_value): Add argument.
9938 * target.c (update_current_target): Update.
9939 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9941 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9945 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9946 * target.h (struct target_ops) <to_trace_find>: Add argument.
9947 (target_trace_find): Add argument.
9948 * target.c (update_current_target): Update.
9949 * remote.c (remote_trace_find): Add 'self' argument.
9950 * ctf.c (ctf_trace_find): Add 'self' argument.
9952 2014-02-19 Tom Tromey <tromey@redhat.com>
9954 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9955 (target_trace_stop): Add argument.
9956 * target.c (update_current_target): Update.
9957 * remote.c (remote_trace_stop): Add 'self' argument.
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9961 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9962 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9964 (target_get_tracepoint_status): Add argument.
9965 * target.c (update_current_target): Update.
9966 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9971 * target.h (struct target_ops) <to_get_trace_status>: Add
9973 (target_get_trace_status): Add argument.
9974 * target.c (update_current_target): Update.
9975 * remote.c (remote_get_trace_status): Add 'self' argument.
9976 (remote_start_remote, remote_can_download_tracepoint): Update.
9977 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9981 * target.h (struct target_ops) <to_trace_start>: Add argument.
9982 (target_trace_start): Add argument.
9983 * target.c (update_current_target): Update.
9984 * remote.c (remote_trace_start): Add 'self' argument.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9990 (target_trace_set_readonly_regions): Add argument.
9991 * target.c (update_current_target): Update.
9992 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9997 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9999 (target_disable_tracepoint): Add argument.
10000 * target.c (update_current_target): Update.
10001 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10003 2014-02-19 Tom Tromey <tromey@redhat.com>
10005 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10007 (target_enable_tracepoint): Add argument.
10008 * target.c (update_current_target): Update.
10009 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10011 2014-02-19 Tom Tromey <tromey@redhat.com>
10013 * target.h (struct target_ops) <to_download_trace_state_variable>:
10015 (target_download_trace_state_variable): Add argument.
10016 * target.c (update_current_target): Update.
10017 * remote.c (remote_download_trace_state_variable): Add 'self'
10020 2014-02-19 Tom Tromey <tromey@redhat.com>
10022 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10024 (target_can_download_tracepoint): Add argument.
10025 * target.c (update_current_target): Update.
10026 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10030 * target.h (struct target_ops) <to_download_tracepoint>: Add
10032 (target_download_tracepoint): Add argument.
10033 * target.c (update_current_target): Update.
10034 * remote.c (remote_download_tracepoint): Add 'self' argument.
10036 2014-02-19 Tom Tromey <tromey@redhat.com>
10038 * target.h (struct target_ops) <to_trace_init>: Add argument.
10039 (target_trace_init): Add argument.
10040 * target.c (update_current_target): Update.
10041 * remote.c (remote_trace_init): Add 'self' argument.
10043 2014-02-19 Tom Tromey <tromey@redhat.com>
10045 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10046 * target.c (target_fileio_readlink): Add argument.
10047 * remote.c (remote_hostio_readlink): Add 'self' argument.
10048 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10052 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10053 * target.c (target_fileio_unlink): Add argument.
10054 * remote.c (remote_hostio_unlink): Add 'self' argument.
10055 (remote_file_delete): Update.
10056 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10060 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10061 * target.c (target_fileio_close): Add argument.
10062 * remote.c (remote_hostio_close): Add 'self' argument.
10063 (remote_hostio_close_cleanup): Update.
10064 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10066 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10071 * target.c (target_fileio_pread): Add argument.
10072 * remote.c (remote_hostio_pread): Add 'self' argument.
10073 (remote_bfd_iovec_pread, remote_file_get): Update.
10074 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10079 * target.c (target_fileio_pwrite): Add argument.
10080 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10081 (remote_file_put): Update.
10082 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10086 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10087 * target.c (target_fileio_open): Add argument.
10088 * remote.c (remote_hostio_open): Add 'self' argument.
10089 (remote_bfd_iovec_open): Add 'self' argument.
10090 (remote_file_put): Add 'self' argument.
10091 (remote_file_get): Add 'self' argument.
10092 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10096 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10098 (target_can_run_breakpoint_commands): Add argument.
10099 * target.c (update_current_target): Update.
10100 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10102 (remote_insert_breakpoint): Add 'self' argument.
10103 (remote_insert_hw_breakpoint): Add 'self' argument.
10104 (remote_can_run_breakpoint_commands): Add 'self' argument.
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10108 * target.h (struct target_ops)
10109 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10110 (target_supports_evaluation_of_breakpoint_conditions): Add
10112 * target.c (update_current_target): Update.
10113 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10115 (remote_insert_breakpoint): Add 'self' argument.
10116 (remote_insert_hw_breakpoint): Add 'self' argument.
10117 (remote_supports_cond_breakpoints): Add 'self' argument.
10119 2014-02-19 Tom Tromey <tromey@redhat.com>
10121 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10123 (target_supports_string_tracing): Add argument.
10124 * target.c (update_current_target): Update.
10125 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10129 * target.h (struct target_ops)
10130 <to_supports_disable_randomization>: Add argument.
10131 * target.c (find_default_supports_disable_randomization): Add
10133 (target_supports_disable_randomization): Add argument.
10134 (find_default_supports_disable_randomization): Add 'self'
10136 * remote.c (extended_remote_supports_disable_randomization): Add
10138 (remote_supports_disable_randomization): Add 'self' argument.
10139 (extended_remote_create_inferior): Update.
10140 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10145 * target.h (struct target_ops)
10146 <to_supports_enable_disable_tracepoint>: Add argument.
10147 (target_supports_enable_disable_tracepoint): Add argument.
10148 * target.c (update_current_target): Update.
10149 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10154 * target.h (struct target_ops) <to_supports_multi_process>: Add
10156 (target_supports_multi_process): Add argument.
10157 * target.c (update_current_target): Update.
10158 * remote.c (remote_supports_multi_process): Add 'self' argument.
10159 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10161 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10166 * target.h (struct target_ops) <to_execution_direction>: Add
10168 (target_execution_direction): Add argument.
10169 * target.c (default_execution_direction): Add 'self' argument.
10170 * record-full.c (record_full_execution_direction): Add 'self'
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10177 (target_can_execute_reverse): Add argument.
10178 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10179 * record-full.c (record_full_can_execute_reverse): Add 'self'
10181 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10186 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10187 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10189 (target_get_ada_task_ptid): Add argument.
10190 * target.c (update_current_target): Update.
10191 (default_get_ada_task_ptid): Add 'self' argument.
10192 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10193 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10194 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10196 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10198 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10200 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10202 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10203 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10206 2014-02-19 Tom Tromey <tromey@redhat.com>
10208 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10209 (target_goto_bookmark): Add argument.
10210 * target.c (dummy_goto_bookmark): Add 'self' argument.
10211 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10213 2014-02-19 Tom Tromey <tromey@redhat.com>
10215 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10216 (target_get_bookmark): Add argument.
10217 * target.c (dummy_get_bookmark): Add 'self' argument.
10218 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10220 2014-02-19 Tom Tromey <tromey@redhat.com>
10222 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10224 (target_make_corefile_notes): Add argument.
10225 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10226 * procfs.c (procfs_make_note_section): Add 'self' argument.
10227 (procfs_make_note_section): Add 'self' argument.
10228 (procfs_make_note_section): Add 'self' argument.
10229 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10231 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10232 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10233 * exec.c (exec_make_note_section): Add 'self' argument.
10234 (exec_make_note_section): Add 'self' argument.
10236 2014-02-19 Tom Tromey <tromey@redhat.com>
10238 * target.h (struct target_ops) <to_find_memory_regions>: Add
10240 (target_find_memory_regions): Add argument.
10241 * target.c (dummy_find_memory_regions): Add 'self' argument.
10242 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10243 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10244 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10245 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10246 * exec. (exec_do_find_memory_regions): New global.
10247 (exec_set_find_memory_regions): Rewrite.
10248 (exec_find_memory_regions): New function.
10249 (init_exec_ops): Use exec_find_memory_regions.
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10253 * target.h (struct target_ops) <to_supports_non_stop>: Add
10255 * target.c (find_default_supports_non_stop): Add argument.
10256 (target_supports_non_stop): Add argument.
10257 (find_default_supports_non_stop): Add 'self' argument.
10258 * remote.c (remote_supports_non_stop): Add 'self' argument.
10259 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10261 2014-02-19 Tom Tromey <tromey@redhat.com>
10263 * target.h (struct target_ops) <to_log_command>: Add argument.
10264 (target_log_command): Add argument.
10265 * serial.h (serial_log_command): Add 'self' argument.
10266 * serial.c (serial_log_command): Add 'self' argument.
10268 2014-02-19 Tom Tromey <tromey@redhat.com>
10270 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10271 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10273 (target_pid_to_exec_file): Add argument.
10274 * target.c (debug_to_pid_to_exec_file): Add argument.
10275 (update_current_target): Update.
10276 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10277 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10278 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10279 (linux_handle_extended_wait): Update.
10280 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10281 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10282 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10283 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10287 * target.h (struct target_ops) <to_rcmd>: Add argument.
10288 (target_rcmd): Add argument.
10289 * target.c (debug_to_rcmd): Add argument.
10290 (update_current_target, do_monitor_command): Update.
10291 * remote.c (remote_rcmd): Add 'self' argument.
10292 * monitor.c (monitor_rcmd): Add 'self' argument.
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10296 * windows-nat.c (windows_stop): Add 'self' argument.
10297 * target.h (struct target_ops) <to_stop>: Add argument.
10298 * target.c (target_stop): Add argument.
10299 (debug_to_stop): Add argument.
10300 (update_current_target): Update.
10301 * remote.c (remote_stop): Add 'self' argument.
10302 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10303 (gdbsim_cntrl_c): Update.
10304 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10305 * procfs.c (procfs_stop): Add 'self' argument.
10306 * nto-procfs.c (procfs_stop): Add 'self' argument.
10307 * monitor.c (monitor_stop): Add 'self' argument.
10308 (monitor_open): Update.
10309 * linux-nat.c (linux_nat_stop): Add argument.
10310 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10311 * gnu-nat.c (gnu_stop): Add 'self' argument.
10312 * darwin-nat.c (darwin_stop): Add 'self' argument.
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10316 * target.h (struct target_ops) <to_thread_name>: Add argument.
10317 * target.c (target_thread_name): Add argument.
10318 (update_current_target): Update.
10319 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10321 2014-02-19 Tom Tromey <tromey@redhat.com>
10323 * target.h (struct target_ops) <to_extra_thread_info>: Add
10325 (target_extra_thread_info): Add argument.
10326 * target.c (update_current_target): Update.
10327 * remote.c (remote_threads_extra_info): Add 'self' argument.
10328 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10330 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10331 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10332 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10334 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10336 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10338 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target.h (struct target_ops) <to_program_signals>: Add argument.
10344 * target.c (target_program_signals): Add argument.
10345 * remote.c (remote_program_signals): Add 'self' argument.
10347 2014-02-19 Tom Tromey <tromey@redhat.com>
10349 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10350 * target.c (target_pass_signals): Add argument.
10351 * remote.c (remote_pass_signals): Add 'self' argument.
10352 (remote_start_remote): Update.
10353 * procfs.c (procfs_pass_signals): Add 'self' argument.
10354 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10355 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10356 (linux_nat_create_inferior, linux_nat_attach): Update.
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10360 * windows-nat.c (windows_can_run): Add 'self' argument.
10361 * target.h (struct target_ops) <to_can_run>: Add argument.
10362 (target_can_run): Add argument.
10363 * target.c (debug_to_can_run): Add argument.
10364 (update_current_target): Update.
10365 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10366 * inf-child.c (inf_child_can_run): Add 'self' argument.
10367 * go32-nat.c (go32_can_run): Add 'self' argument.
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target.h (struct target_ops) <to_has_exited>: Add argument.
10372 (target_has_exited): Add argument.
10373 * target.c (debug_to_has_exited): Add argument.
10374 (update_current_target): Update.
10376 2014-02-19 Tom Tromey <tromey@redhat.com>
10378 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10380 (target_set_syscall_catchpoint): Add argument.
10381 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10383 * target.c (update_current_target): Update.
10385 2014-02-19 Tom Tromey <tromey@redhat.com>
10387 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10389 (target_remove_exec_catchpoint): Add argument.
10390 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10391 (update_current_target): Update.
10392 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10399 (target_insert_exec_catchpoint): Add argument.
10400 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10401 (update_current_target): Update.
10402 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10407 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10409 (target_remove_vfork_catchpoint): Add argument.
10410 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10411 (update_current_target): Update.
10412 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10415 2014-02-19 Tom Tromey <tromey@redhat.com>
10417 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10419 (target_insert_vfork_catchpoint): Add argument.
10420 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10421 (update_current_target): Update.
10422 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10425 2014-02-19 Tom Tromey <tromey@redhat.com>
10427 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10429 (target_remove_fork_catchpoint): Add argument.
10430 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10431 (update_current_target): Update.
10432 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10437 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10439 (target_insert_fork_catchpoint): Add argument.
10440 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10441 (update_current_target): Update.
10442 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10445 2014-02-19 Tom Tromey <tromey@redhat.com>
10447 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10449 (target_post_startup_inferior): Add argument.
10450 * target.c (debug_to_post_startup_inferior): Add argument.
10451 (update_current_target): Update.
10452 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10454 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10456 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10458 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10460 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10462 (super_post_startup_inferior): Likewise.
10463 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10465 (super_post_startup_inferior): Likewise.
10466 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10467 Add 'self' argument.
10468 (super_post_startup_inferior): Likewise.
10470 2014-02-19 Tom Tromey <tromey@redhat.com>
10472 * target.h (struct target_ops) <to_load>: Add argument.
10473 * target.c (target_load): Add argument.
10474 (debug_to_load): Add argument.
10475 (update_current_target): Update.
10476 * remote.c (remote_load): Add 'self' argument.
10477 * remote-sim.c (gdbsim_load): Add 'self' argument.
10478 * remote-mips.c (mips_load): Add 'self' argument.
10479 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10480 * monitor.c (monitor_load): Add 'self' argument.
10481 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10483 2014-02-19 Tom Tromey <tromey@redhat.com>
10485 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10486 (target_terminal_info): Add argument.
10487 * target.c (debug_to_terminal_info): Add argument.
10488 (default_terminal_info): Likewise.
10489 * inflow.c (child_terminal_info): Add 'self' argument.
10490 * inferior.h (child_terminal_info): Add 'self' argument.
10491 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10493 2014-02-19 Tom Tromey <tromey@redhat.com>
10495 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10497 (target_terminal_save_ours): Add argument.
10498 * target.c (debug_to_terminal_save_ours): Add argument.
10499 (update_current_target): Update.
10500 * inflow.c (terminal_save_ours): Add 'self' argument.
10501 * inferior.h (terminal_save_ours): Add 'self' argument.
10503 2014-02-19 Tom Tromey <tromey@redhat.com>
10505 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10506 (target_terminal_ours): Add argument.
10507 * target.c (debug_to_terminal_ours): Add argument.
10508 (update_current_target): Update.
10509 * remote.c (remote_terminal_ours): Add 'self' argument.
10510 (remote_close): Update.
10511 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10512 * inflow.c (terminal_ours): Add 'self' argument.
10513 * inferior.h (terminal_ours): Add 'self' argument.
10514 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10516 2014-02-19 Pedro Alves <palves@redhat.com>
10517 Tom Tromey <tromey@redhat.com>
10519 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10521 (target_terminal_ours_for_output): Add argument.
10522 * target.c (debug_to_terminal_ours_for_output): Add argument.
10523 (update_current_target): Update.
10524 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10525 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10526 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10528 2014-02-19 Tom Tromey <tromey@redhat.com>
10530 * target.h (struct target_ops) <to_terminal_inferior>: Add
10532 * target.c (target_terminal_inferior): Add argument.
10533 (update_current_target): Update.
10534 * remote.c (remote_terminal_inferior): Add 'self' argument.
10535 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10536 * inflow.c (terminal_inferior): Add 'self' argument.
10537 * inferior.h (terminal_inferior): Add 'self' argument.
10538 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10539 (go32_terminal_inferior): Add 'self' argument.
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10543 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10544 (target_terminal_init): Add argument.
10545 * target.c (debug_to_terminal_init): Add argument.
10546 (update_current_target): Update.
10547 * inflow.c (terminal_init_inferior): Add 'self' argument.
10548 * inferior.h (terminal_init_inferior): Add 'self' argument.
10549 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10550 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10552 2014-02-19 Tom Tromey <tromey@redhat.com>
10554 * target.h (struct target_ops)
10555 <to_can_accel_watchpoint_condition>: Add argument.
10556 (target_can_accel_watchpoint_condition): Add argument.
10557 * target.c (debug_to_can_accel_watchpoint_condition): Add
10559 (update_current_target): Update.
10560 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10563 2014-02-19 Tom Tromey <tromey@redhat.com>
10565 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10567 (target_region_ok_for_hw_watchpoint): Add argument.
10568 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10569 (default_region_ok_for_hw_watchpoint): Add argument.
10570 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10571 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10573 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10575 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10577 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10579 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10581 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10583 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10584 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10586 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10587 Add 'self' argument.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10593 (target_insert_watchpoint): Add argument.
10594 * target.c (debug_to_insert_watchpoint): Add argument.
10595 (update_current_target): Update.
10596 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10597 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10598 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10599 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10600 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10601 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10603 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10604 (procfs_insert_hw_watchpoint): Add 'self' argument.
10605 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10607 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10609 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10611 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10612 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10614 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10617 2014-02-19 Tom Tromey <tromey@redhat.com>
10619 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10621 (target_remove_watchpoint): Add argument.
10622 * target.c (debug_to_remove_watchpoint): Add argument.
10623 (update_current_target): Update.
10624 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10625 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10626 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10627 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10628 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10629 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10631 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10632 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10634 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10636 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10638 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10639 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10641 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10644 2014-02-19 Tom Tromey <tromey@redhat.com>
10646 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10648 (target_remove_hw_breakpoint): Add argument.
10649 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10650 (update_current_target): Update.
10651 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10652 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10654 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10655 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10657 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10660 2014-02-19 Tom Tromey <tromey@redhat.com>
10662 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10664 (target_insert_hw_breakpoint): Add argument.
10665 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10666 (update_current_target): Update.
10667 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10668 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10670 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10671 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10672 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10674 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10681 (target_can_use_hardware_watchpoint): Add argument.
10682 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10683 (update_current_target): Update.
10684 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10686 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10688 * remote.c (remote_check_watch_resources): Add 'self' argument.
10689 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10690 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10692 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10693 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10695 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10697 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10699 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10701 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10703 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10705 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10706 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10708 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10713 * target.h (struct target_ops) <to_post_attach>: Add argument.
10714 (target_post_attach): Add argument.
10715 * target.c (debug_to_post_attach): Add argument.
10716 (update_current_target): Update.
10717 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10718 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10719 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10720 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10721 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10723 2014-02-19 Tom Tromey <tromey@redhat.com>
10725 * windows-nat.c (windows_close): Add 'self' argument.
10726 * tracepoint.c (tfile_close): Add 'self' argument.
10727 * target.h (struct target_ops) <to_close>: Add argument.
10728 * target.c (target_close): Add argument.
10729 (update_current_target): Update.
10730 * remote.c (remote_close): Add 'self' argument.
10731 * remote-sim.c (gdbsim_close): Add 'self' argument.
10732 * remote-mips.c (mips_close): Add 'self' argument.
10733 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10734 * record-full.c (record_full_close): Add 'self' argument.
10735 * record-btrace.c (record_btrace_close): Add 'self' argument.
10736 * monitor.h (monitor_close): Add 'self' argument.
10737 * monitor.c (monitor_close): Add 'self' argument.
10738 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10739 * linux-nat.c (linux_nat_close): Add argument.
10740 * go32-nat.c (go32_close): Add 'self' argument.
10741 * exec.c (exec_close_1): Add 'self' argument.
10742 * ctf.c (ctf_close): Add 'self' argument.
10743 * corelow.c (core_close): Add 'self' argument.
10744 (core_close_cleanup): Update.
10745 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10746 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10750 * remote.c (remote_load): New function.
10751 (init_remote_ops): Use it.
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10755 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10757 * common/linux-btrace.h (linux_supports_btrace): Update.
10758 * remote.c (remote_supports_btrace): Add "self" argument.
10759 * target-delegates.c: Rebuild.
10760 * target.c (target_supports_btrace): Remove.
10761 * target.h (struct target_ops) <to_supports_btrace>: Add
10762 target_ops argument.
10763 (target_supports_btrace): New define.
10765 2014-02-19 Tom Tromey <tromey@redhat.com>
10767 * record-full.c (record_full_beneath_to_resume_ops)
10768 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10769 (record_full_beneath_to_wait)
10770 (record_full_beneath_to_store_registers_ops)
10771 (record_full_beneath_to_store_registers)
10772 (record_full_beneath_to_xfer_partial_ops)
10773 (record_full_beneath_to_xfer_partial)
10774 (record_full_beneath_to_insert_breakpoint_ops)
10775 (record_full_beneath_to_insert_breakpoint)
10776 (record_full_beneath_to_remove_breakpoint_ops)
10777 (record_full_beneath_to_remove_breakpoint)
10778 (record_full_beneath_to_stopped_by_watchpoint)
10779 (record_full_beneath_to_stopped_data_address)
10780 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10781 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10782 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10783 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10784 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10785 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10786 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10787 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10788 (record_full_resume, record_full_wait_1)
10789 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10790 (record_full_store_registers, record_full_xfer_partial)
10791 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10792 (record_full_async, record_full_core_xfer_partial): Use target
10794 * target-delegates.c: Rebuild.
10795 * target.c (current_xfer_partial): Remove.
10796 (update_current_target): Do not INHERIT or de_fault
10797 to_insert_breakpoint, to_remove_breakpoint,
10798 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10799 to_is_async_p, to_async. Do not set to_xfer_partial field.
10800 (default_xfer_partial): Simplify.
10801 (current_xfer_partial): Remove.
10802 (target_wait, target_resume): Simplify.
10803 (find_default_can_async_p, find_default_is_async_p): Update.
10804 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10805 to_xfer_partial, to_stopped_by_watchpoint,
10806 to_stopped_data_address.
10807 (target_store_registers): Simplify.
10808 (forward_target_remove_breakpoint)
10809 (forward_target_insert_breakpoint): Remove.
10810 (target_remove_breakpoint, target_insert_breakpoint)
10811 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10812 * target.h (struct target_ops) <to_resume, to_wait,
10813 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10814 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10815 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10817 (forward_target_remove_breakpoint)
10818 (forward_target_insert_breakpoint): Remove.
10819 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10821 (record_btrace_insert_breakpoint): Delegate directly.
10823 2014-02-19 Tom Tromey <tromey@redhat.com>
10826 * target-delegates.c: New file.
10827 * target.c: Include target-delegates.c.
10828 (init_dummy_target): Call install_dummy_methods.
10829 (complete_target_initialization): Call install_delegators.
10830 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10831 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10832 * make-target-delegates: New file.
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * record.c (find_record_target): Use find_target_at.
10837 * target.c (find_target_at): New function.
10838 * target.h (find_target_at): Declare.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10843 Add 'ops' argument.
10844 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10846 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10847 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10849 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10851 * linux-nat.c (save_sigtrap): Update.
10852 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10853 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10854 (linux_nat_close): Update.
10855 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10857 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10859 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10860 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10861 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10862 (tmp_to_async): Add 'ops' argument.
10863 (record_full_stopped_by_watchpoint, record_full_async)
10864 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10866 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10867 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10868 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10869 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10870 (remote_is_async_p, remote_async): Add 'ops' argument.
10871 (remote_stopped_data_address): Update.
10872 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10873 * target.c (update_current_target)
10874 (find_default_can_async_p, find_default_is_async_p): Update.
10875 (init_dummy_target): Update.
10876 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10877 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10878 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10879 (target_can_async_p, target_is_async_p, target_async)
10880 (target_stopped_by_watchpoint): Update.
10882 2014-02-19 Yao Qi <yao@codesourcery.com>
10885 * gdbarch.sh: Remove startup_gdbarch.
10886 * gdbarch.c: Regenerated.
10887 * gdbarch.h: Likewise.
10889 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10891 * rl78-tdep.c (rl78_g10_register_name): New function.
10892 (rl78_return_value): Add g10 support.
10893 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10896 2014-02-17 Doug Evans <xdje42@gmail.com>
10898 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10899 (SUBDIR_GUILE_SRCS): Ditto.
10900 (scm-gsmob.o): Ditto.
10902 2014-02-17 Yao Qi <yao@codesourcery.com>
10904 * gnu-nat.c (ILL_RPC): Declare defined function.
10906 2014-02-17 Yao Qi <yao@codesourcery.com>
10908 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10909 mach_msg_type_number_t.
10910 (gnu_write_inferior): Likewise.
10912 2014-02-17 Yao Qi <yao@codesourcery.com>
10914 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10916 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10917 (inf_validate_procs, inf_signal): Likewise.
10918 (S_exception_raise_request): Likewise.
10919 (do_mach_notify_dead_name): Likewise.
10920 (steal_exc_port): Likewise.
10921 (gnu_read_inferior): Change 'copy_count''s type to
10922 mach_msg_type_number_t.
10923 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10926 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10928 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10929 flag. Adjust all users; in particular...
10930 (gnu_wait): ..., don't decrement its value in here...
10931 (gnu_create_inferior): ..., and instead set the flag in here,
10932 around the startup_inferior call, and call that one with
10933 START_INFERIOR_TRAPS_EXPECTED.
10935 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10936 (ILL_RPC): ... new macro.
10937 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10938 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10939 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10940 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10941 functions with ILL_RPC macro.
10942 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10943 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10944 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10945 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10946 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10947 (S_proc_getlogin_reply, S_proc_getsid_reply)
10948 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10949 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10950 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10951 (S_proc_getnports_reply, S_proc_is_important_reply)
10952 (S_proc_get_code_reply): New stub functions, generated with
10955 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10956 collected the type check structures.
10958 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10960 2014-02-14 Doug Evans <dje@google.com>
10962 * target.c (target_write_partial): Fix result type.
10964 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10966 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10967 the proper offsets to access fpregset_t.
10969 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10971 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10972 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10973 * h8300-tdep.c (setmachinelist): Remove global.
10974 * hppa-tdep.c (hppa_sigtramp): Remove global.
10975 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10976 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10977 * ravenscar-thread.c (update_target_observer): Remove global.
10978 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10980 2014-02-12 Tom Tromey <tromey@redhat.com>
10982 * common/rsp-low.c: Update comments.
10983 * common/rsp-low.h: Update comments.
10985 2014-02-12 Tom Tromey <tromey@redhat.com>
10987 * common/rsp-low.c (convert_ascii_to_int): Remove.
10988 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10990 2014-02-12 Tom Tromey <tromey@redhat.com>
10992 * common/rsp-low.h (unhexify): Don't declare.
10993 * common/rsp-low.c (unhexify): Remove.
10995 2014-02-12 Tom Tromey <tromey@redhat.com>
10997 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10998 * common/rsp-low.c (convert_int_to_ascii): Remove.
11000 2014-02-12 Tom Tromey <tromey@redhat.com>
11002 * common/rsp-low.h (hexify): Don't declare.
11003 * common/rsp-low.c (hexify): Remove.
11005 2014-02-12 Tom Tromey <tromey@redhat.com>
11007 * common/rsp-low.c (hexify): Never take strlen of argument.
11009 2014-02-12 Tom Tromey <tromey@redhat.com>
11011 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11012 * remote.c (extended_remote_run, remote_rcmd)
11013 (remote_download_trace_state_variable, remote_save_trace_data)
11014 (remote_set_trace_notes): Update.
11015 * tracepoint.c (encode_source_string, tfile_write_status)
11016 (tfile_write_uploaded_tsv): Update.
11018 2014-02-12 Tom Tromey <tromey@redhat.com>
11020 * tracepoint.c: Include rsp-low.h.
11021 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11022 * remote.c: Include rsp-low.h.
11023 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11024 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11025 (remote_unescape_input): Move to common/rsp-low.c.
11026 * common/rsp-low.h: New file.
11027 * common/rsp-low.c: New file.
11028 * Makefile.in (SFILES): Add common/rsp-low.c.
11029 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11030 (COMMON_OBS): Add rsp-low.o.
11031 (rsp-low.o): New target.
11033 2014-02-12 Tom Tromey <tromey@redhat.com>
11035 * utils.h: Include print-utils.h.
11036 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11037 (int_string, core_addr_to_string, core_addr_to_string_nz)
11038 (hex_string, hex_string_custom): Don't declare.
11039 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11040 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11041 (hex_string_custom, int_string, core_addr_to_string)
11042 (core_addr_to_string_nz, host_address_to_string): Move to
11043 common/print-utils.c.
11044 * common/print-utils.h: New file.
11045 * common/print-utils.c: New file
11046 * Makefile.in (SFILES): Add common/print-utils.c.
11047 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11048 (COMMON_OBS): Add print-utils.o.
11049 (print-utils.o): New target.
11051 2014-02-12 Tom Tromey <tromey@redhat.com>
11053 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11055 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11057 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11059 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11061 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11062 if a PT_IO ptrace request returns sucessfully but indicates that 0
11063 bytes were transferred.
11065 2014-02-12 Pedro Alves <palves@redhat.com>
11066 Kevin Buettner <kevinb@redhat.com>
11068 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11069 TYPE_INSTANCE_FLAG_CODE_SPACE.
11071 2014-02-12 Pedro Alves <palves@redhat.com>
11073 * h8300-tdep.c (pseudo_from_raw_register)
11074 (raw_from_pseudo_register): New functions.
11075 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11078 2014-02-12 Pedro Alves <palves@redhat.com>
11080 * h8300-tdep.c (h8300_register_sim_regno): New function.
11081 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11082 gdbarch_register_sim_regno hook.
11084 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11086 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11088 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11090 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11092 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11094 * obsd-tdep.h (obsd_init_abi): New prototype.
11095 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11096 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11097 (obsd_init_abi): New functions.
11098 * i386obsd-tdep.c: Include "obsd-tdep.h".
11099 (i386obsd_init_abi): Call obsd_init_abi.
11100 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11101 (amd64obsd_init_abi): Call obsd_init_abi.
11102 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11103 obsd-tdep.c to gdb_target_obs.
11105 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11107 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11108 double float arguments to 16-byte in the argument slots.
11110 2014-02-11 Doug Evans <xdje42@gmail.com>
11112 * configure.ac: Don't crash if pkg-config is not found and guile
11113 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11115 * configure: Regenerate.
11117 2014-02-11 Yao Qi <yao@codesourcery.com>
11119 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11120 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11121 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11122 * gnu-nat.c (gnu_xfer_memory): Likewise.
11123 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11124 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11125 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11126 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11128 2014-02-11 Yao Qi <yao@codesourcery.com>
11130 * target.h (enum target_xfer_error): Rename to ...
11131 (enum target_xfer_status): ... it. New. All users updated.
11132 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11134 (TARGET_XFER_STATUS_ERROR_P): New macro.
11135 (target_xfer_error_to_string): Remove declaration.
11136 (target_xfer_status_to_string): Declare.
11137 (target_xfer_partial_ftype): Adjust it.
11138 (struct target_ops) <to_xfer_partial>: Return
11139 target_xfer_status. Add argument xfered_len. Update
11141 * target.c (target_xfer_error_to_string): Rename to ...
11142 (target_xfer_status_to_string): ... it. New. All callers
11144 (target_read_live_memory): Likewise. Call target_xfer_partial
11145 instead of target_read.
11146 (memory_xfer_live_readonly_partial): Return
11147 target_xfer_status. Add argument xfered_len.
11148 (raw_memory_xfer_partial): Likewise.
11149 (memory_xfer_partial_1): Likewise.
11150 (memory_xfer_partial): Likewise.
11151 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11152 properly. Update debug message.
11153 (default_xfer_partial, current_xfer_partial): Likewise.
11154 (target_write_partial): Likewise.
11155 (target_read_partial): Likewise. All callers updated.
11156 (read_whatever_is_readable): Likewise.
11157 (target_write_with_progress): Likewise.
11158 (target_read_alloc_1): Likewise.
11160 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11161 * auxv.c (procfs_xfer_auxv): Likewise.
11162 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11163 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11164 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11165 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11166 * corefile.c (read_memory): Adjust.
11167 * corelow.c (core_xfer_partial): Likewise.
11168 * ctf.c (ctf_xfer_partial): Likewise.
11169 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11171 (darwin_xfer_partial): Likewise.
11172 * exec.c (section_table_xfer_memory_partial): Likewise. All
11174 (exec_xfer_partial): Likewise.
11175 * exec.h (section_table_xfer_memory_partial): Update
11177 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11179 (gnu_xfer_partial): Likewise.
11180 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11181 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11182 (ia64_hpux_xfer_solib_got): Likewise.
11183 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11184 type of 'partial_len' to ULONGEST.
11185 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11186 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11187 (linux_nat_xfer_partial): Likewise.
11188 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11189 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11190 * monitor.c (monitor_xfer_memory): Likewise.
11191 (monitor_xfer_partial): Likewise.
11192 * procfs.c (procfs_xfer_partial): Likewise.
11193 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11194 * record-full.c (record_full_xfer_partial): Likewise.
11195 (record_full_core_xfer_partial): Likewise.
11196 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11197 (gdbsim_xfer_partial): Likewise.
11198 * remote.c (remote_write_bytes_aux): Likewise. All callers
11200 (remote_write_bytes, remote_read_bytes): Likewise. All
11202 (remote_flash_erase): Likewise. All callers updated.
11203 (remote_write_qxfer): Likewise. All callers updated.
11204 (remote_read_qxfer): Likewise. All callers updated.
11205 (remote_xfer_partial): Likewise.
11206 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11207 (rs6000_xfer_shared_libraries): Likewise.
11208 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11209 (sol_thread_xfer_partial): Likewise.
11210 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11211 (sparc_xfer_partial): Likewise.
11212 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11214 (spu_xfer_partial): Likewise.
11215 * spu-multiarch.c (spu_xfer_partial): Likewise.
11216 * tracepoint.c (tfile_xfer_partial): Likewise.
11217 * windows-nat.c (windows_xfer_memory): Likewise.
11218 (windows_xfer_shared_libraries): Likewise.
11219 (windows_xfer_partial): Likewise.
11220 * valprint.c: Replace 'target_xfer_error' with
11221 'target_xfer_status' in comments.
11223 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11225 Checked in by Joel Brobecker <brobecker@adacore.com>.
11226 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11228 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11230 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11231 function parameters.
11233 2014-02-10 Will Newton <will.newton@linaro.org>
11235 * elfread.c (elf_rel_plt_read): Look for a .got section if
11236 looking up .got.plt fails.
11237 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11238 on address passed to elf_gnu_ifunc_record_cache.
11239 (elf_gnu_ifunc_resolve_addr): Likewise.
11240 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11242 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11244 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11245 (X_RETTURN): New macro.
11246 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11248 * sparc64-tdep.c (sparc64_init_abi): Hook
11249 sparc_in_function_epilogue_p.
11251 2014-02-10 Gary Benson <gbenson@redhat.com>
11253 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11254 Rename name_matcher to symbol_matcher.
11256 2014-02-10 Gary Benson <gbenson@redhat.com>
11258 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11259 Use expand_symtabs_file_matcher_ftype and
11260 expand_symtabs_symbol_matcher_ftype.
11262 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11264 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11265 (struct ada_symbol_cache): New.
11266 (ada_free_symbol_cache): Forward declare.
11267 (struct ada_pspace_data): New.
11268 (ada_pspace_data_handle): New static global.
11269 (get_ada_pspace_data, ada_pspace_data_cleanup)
11270 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11271 (cache_space, cache): Delete, now folded inside struct
11273 (ada_get_symbol_cache): New function.
11274 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11276 (_initialize_ada_language): Remove initialization of cache_space.
11277 Move call to observer_attach_inferior_exit up, grouping it
11278 with the other observer registrations inside this function.
11279 Rename command to be more general. Add call to
11280 register_program_space_data_with_cleanup.
11282 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11284 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11285 ada_new_objfile_observer.
11286 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11287 (_initialize_tasks): Update uses of ada_new_objfile_observer
11288 and ada_tasks_normal_stop_observer.
11290 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11292 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11293 returned by the 'Length attribute to integer.
11295 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11297 * ada-lang.c (_initialize_ada_language): Initialize
11298 cache_space obstack.
11300 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11302 * ada-lang.c (HASH_SIZE): New macro.
11303 (struct cache_entry): New type.
11304 (cache_space, cache): New static globals.
11305 (ada_clear_symbol_cache, find_entry): New functions.
11306 (lookup_cached_symbol, cache_symbol): Implement.
11307 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11308 (_initialize_ada_language): Attach ada_new_objfile_observer
11309 and ada_free_objfile_observer.
11311 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11313 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11314 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11315 struct block * parameter.
11316 (ada_lookup_symbol_list_worker): Constify local variable "block".
11317 Remove cast which is no longer necessary.
11319 2014-02-10 Doug Evans <xdje42@gmail.com>
11321 Add Guile as an extension language.
11322 * NEWS: Mention Guile scripting.
11323 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11324 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11325 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11326 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11327 (CLIBS): Add GUILE_LIBS.
11328 (install-guile): New rule.
11329 (guile.o): New rule.
11330 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11331 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11332 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11333 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11334 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11335 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11336 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11337 * configure.ac: New option --with-guile.
11338 * configure: Regenerate.
11339 * config.in: Regenerate.
11340 * auto-load.c: Remove #include "python/python.h". Add #include
11341 "gdb/section-scripts.h".
11342 (source_section_scripts): Handle Guile scripts.
11343 (_initialize_auto_load): Add name of Guile objfile script to
11344 scripts-directory help text.
11345 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11346 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11347 (struct breakpoint): New member scm_bp_object.
11348 * defs.h (enum command_control_type): New value guile_control.
11349 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11351 (show_user): Update comment.
11352 (_initialize_cli_cmds): Update help text for "show user". Update help
11353 text for max-user-call-depth.
11354 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11356 (multi_line_command_p): Add guile_control.
11357 (print_command_lines): Handle guile_control.
11358 (execute_control_command, recurse_read_control_structure): Ditto.
11359 (process_next_line): Recognize "guile" commands.
11360 * disasm.c (gdb_disassemble_info): Make non-static.
11361 * disasm.h: #include "dis-asm.h".
11362 (struct gdbarch): Add forward decl.
11363 (gdb_disassemble_info): Declare.
11364 * extension.c: #include "guile/guile.h".
11365 (extension_languages): Add guile.
11366 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11367 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11368 * gdbtypes.c (get_unsigned_type_max): New function.
11369 (get_signed_type_minmax): New function.
11370 * gdbtypes.h (get_unsigned_type_max): Declare.
11371 (get_signed_type_minmax): Declare.
11372 * guile/README: New file.
11373 * guile/guile-internal.h: New file.
11374 * guile/guile.c: New file.
11375 * guile/guile.h: New file.
11376 * guile/scm-arch.c: New file.
11377 * guile/scm-auto-load.c: New file.
11378 * guile/scm-block.c: New file.
11379 * guile/scm-breakpoint.c: New file.
11380 * guile/scm-disasm.c: New file.
11381 * guile/scm-exception.c: New file.
11382 * guile/scm-frame.c: New file.
11383 * guile/scm-gsmob.c: New file.
11384 * guile/scm-iterator.c: New file.
11385 * guile/scm-lazy-string.c: New file.
11386 * guile/scm-math.c: New file.
11387 * guile/scm-objfile.c: New file.
11388 * guile/scm-ports.c: New file.
11389 * guile/scm-pretty-print.c: New file.
11390 * guile/scm-safe-call.c: New file.
11391 * guile/scm-string.c: New file.
11392 * guile/scm-symbol.c: New file.
11393 * guile/scm-symtab.c: New file.
11394 * guile/scm-type.c: New file.
11395 * guile/scm-utils.c: New file.
11396 * guile/scm-value.c: New file.
11397 * guile/lib/gdb.scm: New file.
11398 * guile/lib/gdb/boot.scm: New file.
11399 * guile/lib/gdb/experimental.scm: New file.
11400 * guile/lib/gdb/init.scm: New file.
11401 * guile/lib/gdb/iterator.scm: New file.
11402 * guile/lib/gdb/printing.scm: New file.
11403 * guile/lib/gdb/types.scm: New file.
11404 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11405 (VPATH): Add $(GUILE_SRCDIR).
11406 (GUILE_DIR): New variable.
11407 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11408 (all): Add stamp-guile dependency.
11409 (stamp-guile): New rule.
11410 (clean-guile, install-guile, uninstall-guile): New rules.
11411 (install-only): Add install-guile dependency.
11412 (uninstall): Add uninstall-guile dependency.
11413 (clean): Add clean-guile dependency.
11415 2014-02-09 Doug Evans <xdje42@gmail.com>
11417 Revert this patch (which I approved, mea culpa).
11419 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11421 * Makefile.in (all-lib): Remove.
11422 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11424 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11426 Fix Python stack corruption.
11427 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11430 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11432 * Makefile.in (all-lib): Remove.
11433 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11435 2014-02-07 Doug Evans <dje@google.com>
11437 * extension-priv.h (extension_language_script_ops): Add comment.
11438 (extension_language_ops): Add comment.
11439 (active_ext_lang_state): Fix typo in comment.
11441 2014-02-07 Pedro Alves <palves@redhat.com>
11443 PR breakpoints/16292
11444 * infrun.c (handle_signal_stop) <signal arrives while stepping
11445 over a breakpoint>: Switch back to the stepping thread.
11447 2014-02-07 Yao Qi <yao@codesourcery.com>
11449 * target.c (target_xfer_partial): Return zero if LEN is zero.
11451 2014-02-07 Yao Qi <yao@codesourcery.com>
11453 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11454 (ld_so_xfer_auxv): Likewise.
11455 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11456 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11457 * corelow.c (core_xfer_partial): Likewise.
11458 * ctf.c (ctf_xfer_partial): Likewise.
11459 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11460 (darwin_xfer_partial): Likewise.
11461 * exec.c (exec_xfer_partial): Likewise.
11462 * gnu-nat.c (gnu_xfer_partial): Likewise.
11463 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11464 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11465 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11466 * linux-nat.c (linux_xfer_siginfo): Likewise.
11467 (linux_proc_xfer_spu): Likewise.
11468 * procfs.c (procfs_xfer_partial): Likewise.
11469 * record-full.c (record_full_xfer_partial): Likewise.
11470 (record_full_core_xfer_partial): Likewise.
11471 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11472 * remote.c (remote_write_qxfer): Likewise.
11473 (remote_write_qxfer, remote_read_qxfer): Likewise.
11474 (remote_xfer_partial): Likewise.
11475 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11476 (rs6000_xfer_shared_libraries): Likewise.
11477 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11478 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11479 (spu_xfer_partial): Likewise.
11480 * target.c (memory_xfer_partial_1): Likewise.
11481 * tracepoint.c (tfile_xfer_partial): Likewise.
11482 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11483 (windows_xfer_partial): Likewise.
11485 2014-02-07 Yao Qi <yao@codesourcery.com>
11487 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11489 (core_xfer_shared_libraries_aix): Likewise.
11490 * gdbarch.c, gdbarch.h: Regenerated.
11491 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11492 ULONGEST. Change 'len_avail' type to ULONGEST.
11493 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11494 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11496 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11498 2014-02-07 Yao Qi <yao@codesourcery.com>
11500 * corefile.c (memory_error): Get 'exception' from ERR and pass
11501 'exception' to throw_error.
11503 2014-02-06 Doug Evans <xdje42@gmail.com>
11505 * configure.ac (libpython checking): Remove all but python.o from
11506 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11507 * configure: Regenerate.
11509 * Makefile.in (SFILES): Add extension.c.
11510 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11511 (COMMON_OBS): Add extension.o.
11512 * extension.h: New file.
11513 * extension-priv.h: New file.
11514 * extension.c: New file.
11516 * python/python-internal.h: #include "extension.h".
11517 (gdbpy_auto_load_enabled): Declare.
11518 (gdbpy_apply_val_pretty_printer): Declare.
11519 (gdbpy_apply_frame_filter): Declare.
11520 (gdbpy_preserve_values): Declare.
11521 (gdbpy_breakpoint_cond_says_stop): Declare.
11522 (gdbpy_breakpoint_has_cond): Declare.
11523 (void source_python_script_for_objfile): Delete.
11524 * python/python.c: #include "extension-priv.h".
11525 Delete inclusion of "observer.h".
11526 (extension_language_python): Moved here and renamed from
11527 script_language_python in py-auto-load.c.
11528 Redefined to be of type extension_language_defn.
11529 (python_extension_script_ops): New global.
11530 (python_extension_ops): New global.
11531 (struct python_env): New member previous_active.
11532 (restore_python_env): Call restore_active_ext_lang.
11533 (ensure_python_env): Call set_active_ext_lang.
11534 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11536 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11538 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11540 (gdbpy_eval_from_control_command): Renamed from
11541 eval_python_from_control_command, made static. New arg extlang.
11542 (gdbpy_source_script) Renamed from source_python_script, made static.
11544 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11545 result to int. New arg extlang.
11546 (gdbpy_source_objfile_script): Renamed from
11547 source_python_script_for_objfile, made static. New arg extlang.
11548 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11549 static. New args extlang, extlang_printers. Change result type to
11551 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11552 static. New arg extlang. Rename arg printers to extlang_printers
11553 and change type to ext_lang_type_printers *.
11554 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11555 static. Replace argument arg with extlang, extlang_printers.
11556 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11557 (!HAVE_PYTHON, source_python_script): Delete.
11558 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11559 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11560 (!HAVE_PYTHON, start_type_printers): Delete.
11561 (!HAVE_PYTHON, apply_type_printers): Delete.
11562 (!HAVE_PYTHON, free_type_printers): Delete.
11563 (_initialize_python): Delete call to observer_attach_before_prompt.
11564 (finalize_python): Set/restore active extension language.
11565 (gdbpy_finish_initialization) Renamed from
11566 finish_python_initialization, made static. New arg extlang.
11567 (gdbpy_initialized): New function.
11568 * python/python.h: #include "extension.h". Delete #include
11569 "value.h", "mi/mi-cmds.h".
11570 (extension_language_python): Declare.
11571 (GDBPY_AUTO_FILE_NAME): Delete.
11572 (enum py_bt_status): Moved to extension.h and renamed to
11573 ext_lang_bt_status.
11574 (enum frame_filter_flags): Moved to extension.h.
11575 (enum py_frame_args): Moved to extension.h and renamed to
11576 ext_lang_frame_args.
11577 (finish_python_initialization): Delete.
11578 (eval_python_from_control_command): Delete.
11579 (source_python_script): Delete.
11580 (apply_val_pretty_printer): Delete.
11581 (apply_frame_filter): Delete.
11582 (preserve_python_values): Delete.
11583 (gdbpy_script_language_defn): Delete.
11584 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11585 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11587 * auto-load.c: #include "extension.h".
11588 (GDB_AUTO_FILE_NAME): Delete.
11589 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11590 (script_language_gdb): Delete, moved to extension.c and renamed to
11591 extension_language_gdb.
11592 (source_gdb_script_for_objfile): Delete.
11593 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11594 (loaded_script): Change type of language member to
11595 struct extension_language_defn *.
11596 (init_loaded_scripts_info): Initialize
11597 unsupported_script_warning_printed.
11598 (maybe_add_script): Make static. Change type of language arg to
11599 struct extension_language_defn *.
11600 (clear_section_scripts): Reset unsupported_script_warning_printed.
11601 (auto_load_objfile_script_1): Rewrite to use extension language API.
11602 (auto_load_objfile_script): Make public. Remove support-compiled-in
11603 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11604 (source_section_scripts): Rewrite to use extension language API.
11605 (load_auto_scripts_for_objfile): Rewrite to use
11606 auto_load_scripts_for_objfile.
11607 (collect_matching_scripts_data): Change type of language member to
11608 struct extension_language_defn *.
11609 (auto_load_info_scripts): Change type of language arg to
11610 struct extension_language_defn *.
11611 (unsupported_script_warning_print): New function.
11612 (script_not_found_warning_print): Make static.
11613 (_initialize_auto_load): Rewrite construction of scripts-directory
11615 * auto-load.h (struct objfile): Add forward decl.
11616 (struct script_language): Delete.
11617 (struct auto_load_pspace_info): Add forward decl.
11618 (struct extension_language_defn): Add forward decl.
11619 (maybe_add_script): Delete.
11620 (auto_load_objfile_script): Declare.
11621 (script_not_found_warning_print): Delete.
11622 (auto_load_info_scripts): Update prototype.
11623 (auto_load_gdb_scripts_enabled): Declare.
11624 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11625 auto_load_python_scripts_enabled and made public.
11626 (script_language_python): Delete, moved to python.c.
11627 (gdbpy_script_language_defn): Delete.
11628 (info_auto_load_python_scripts): Update to use
11629 extension_language_python.
11631 * breakpoint.c (condition_command): Replace call to
11632 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11633 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11634 with call to breakpoint_ext_lang_cond_says_stop.
11635 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11636 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11637 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11638 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11640 (local_setattro): Print name of extension language with existing
11643 * valprint.c (val_print, value_print): Update to call
11644 apply_ext_lang_val_pretty_printer.
11645 * cp-valprint.c (cp_print_value): Update call to
11646 apply_ext_lang_val_pretty_printer.
11647 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11648 (gdbpy_apply_val_pretty_printer): Renamed from
11649 apply_val_pretty_printer. New arg extlang.
11650 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11652 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11653 extension language API.
11654 * cli/cli-script.c (execute_control_command): Update to call
11655 eval_ext_lang_from_control_command.
11657 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11658 enum ext_lang_bt_status values. Update call to
11659 apply_ext_lang_frame_filter.
11660 (mi_cmd_stack_list_locals): Ditto.
11661 (mi_cmd_stack_list_args): Ditto.
11662 (mi_cmd_stack_list_variables): Ditto.
11663 * mi/mi-main.c: Delete #include "python/python-internal.h".
11664 Add #include "extension.h".
11665 (mi_cmd_list_features): Replace reference to python internal variable
11666 gdb_python_initialized with call to ext_lang_initialized_p.
11668 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11669 Update to use enum ext_lang_frame_args. Update to call
11670 apply_ext_lang_frame_filter.
11671 * python/py-framefilter.c (extract_sym): Update to use enum
11672 ext_lang_bt_status.
11673 (extract_value, py_print_type, py_print_value): Ditto.
11674 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11675 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11676 (py_print_frame): Ditto.
11677 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11678 New arg extlang. Update to use enum ext_lang_bt_status.
11680 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11681 finish_python_initialization. Replace with call to
11682 finish_ext_lang_initialization.
11684 * typeprint.c (do_free_global_table): Update to call
11685 free_ext_lang_type_printers.
11686 (create_global_typedef_table): Update to call
11687 start_ext_lang_type_printers.
11688 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11689 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11690 (type_print_options): Change type of global_printers from "void *"
11691 to "struct ext_lang_type_printers *".
11693 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11694 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11695 (gdbpy_preserve_values): Renamed from preserve_python_values.
11697 (!HAVE_PYTHON, preserve_python_values): Delete.
11699 * utils.c (quit_flag): Delete, moved to extension.c.
11700 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11703 * eval.c: Delete #include "python/python.h".
11704 * main.c: Delete #include "python/python.h".
11706 * defs.h: Update comment.
11708 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11712 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11714 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11717 2014-02-05 Yao Qi <yao@codesourcery.com>
11719 * remote.c (remote_pass_signals): Remove local 'buf' and use
11721 (remote_program_signals): Likewise.
11723 2014-02-05 Yao Qi <yao@codesourcery.com>
11725 * ctf.c: Include "inferior.h" and "gdbthread.h".
11726 (CTF_PID): A new macro.
11727 (ctf_open): Call inferior_appeared and add_thread_silent.
11728 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11729 (ctf_thread_alive): New function.
11730 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11732 2014-02-05 Yao Qi <yao@codesourcery.com>
11736 2013-05-24 Yao Qi <yao@codesourcery.com>
11738 * tracepoint.c (TFILE_PID): Remove.
11739 (tfile_open): Don't add thread and inferior.
11740 (tfile_close): Don't set 'inferior_ptid'. Don't call
11741 exit_inferior_silent.
11742 (tfile_thread_alive): Remove.
11743 (init_tfile_ops): Don't set field 'to_thread_alive' of
11746 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11748 * remote.c (remote_start_remote): Call remote_check_symbols even
11749 if only symbol-file (not file) has been given.
11751 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11753 * gdbarch.sh (skip_entrypoint): New callback.
11754 * gdbarch.c, gdbarch.h: Regenerate.
11755 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11756 * infrun.c (fill_in_stop_func): Likewise.
11757 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11758 (ppc_elfv2_elf_make_msymbol_special): New function.
11759 (ppc_elfv2_skip_entrypoint): Likewise.
11760 (ppc_linux_init_abi): Install them for ELFv2.
11762 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11764 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11765 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11766 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11767 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11768 structures returned in GPRs.
11770 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11772 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11773 offset to the stack parameter list for the ELFv2 ABI.
11775 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11777 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11778 set_gdbarch_convert_from_func_ptr_addr and
11779 set_gdbarch_elf_make_msymbol_special for ELFv1.
11780 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11781 function descriptors on ELFv1.
11782 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11783 set up r12 at function entry.
11785 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11787 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11788 (struct gdbarch_tdep): New member elf_abi.
11790 * rs6000-tdep.c: Include "elf/ppc64.h".
11791 (rs6000_gdbarch_init): Detect ELF ABI version.
11793 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11795 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11796 within a register pair holding a DFP 128-bit value on little-endian.
11797 (ppc64_sysv_abi_return_value_base): Likewise.
11798 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11799 (dfp_pseudo_register_write): Likewise.
11801 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11803 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11804 offset on little-endian when passing _Decimal32.
11805 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11807 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11809 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11810 of the overlapped FP register within the VSX register on little-
11812 (efpr_pseudo_register_write): Likewise.
11814 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11816 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11817 offset on little-endian when passing small structures.
11819 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11821 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11822 (struct ppc64_sysv_argpos): New data structure.
11823 (ppc64_sysv_abi_push_float): Remove.
11824 (ppc64_sysv_abi_push_val): New function.
11825 (ppc64_sysv_abi_push_integer): Likewise.
11826 (ppc64_sysv_abi_push_freg): Likewise.
11827 (ppc64_sysv_abi_push_vreg): Likewise.
11828 (ppc64_sysv_abi_push_param): Likewise.
11829 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11830 (ppc64_sysv_abi_return_value_base): New function.
11831 (ppc64_sysv_abi_return_value): Refactor to use it.
11833 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11835 * NEWS: Document new target powerpc64le-*-linux*.
11837 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11839 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11840 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11842 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11843 register set used in ELF core dumps. Add floating-point register set.
11845 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11847 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11848 dwarf2_to_gdb[] table using symbolic constants. Adjust
11849 penultimate entry from number representing the PC register
11850 to symbolic constant representing the MDR register. Add
11851 constant for the PC register to the end of the table.
11853 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11855 * bsd-kvm.c: Include <sys/param.h>
11857 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11859 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11861 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11863 * ada-lang.h (clear_ada_sym_cache): Delete.
11865 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11867 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11869 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11871 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11872 the sigreturn register save area only if the syscall is
11875 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11877 * valops.c (value_slice): Minor reformatting.
11879 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11881 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11883 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11885 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11886 New static globals.
11887 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11888 (ada_ignore_descriptive_types_p): New static global.
11889 (find_parallel_type_by_descriptive_type): Return immediately
11890 if ada_ignore_descriptive_types_p is set.
11891 (_initialize_ada_language): Register new commands "maintenance
11892 set ada", "maintenance show ada", "maintenance set ada
11893 ignore-descriptive-types" and "maintenance show ada
11894 ignore-descriptive-types".
11895 * NEWS: Add entry for new "maint ada set/show
11896 ignore-descriptive-types" commands.
11898 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11900 * record-btrace.c (record_btrace_close): Call btrace_teardown
11903 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11905 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11908 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11910 * ada-typeprint (type_is_full_subrange_of_target_type):
11912 (print_range): Add parameter bounds_prefered_p. If not set,
11913 try printing range types using the name of their base type.
11914 (print_range_type): Add parameter bounds_prefered_p.
11915 Use it in call to print_range.
11916 (print_array_type, ada_print_type): Update calls to print_range
11917 and print_range_type.
11919 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11921 * ada-typeprint.c (print_array_type, print_choices, print_range)
11922 (print_range_bound, print_dynamic_range_bound, print_range_type):
11923 Remove declaration.
11925 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11927 * ada-typeprint.c (print_range): Add missing empty line
11928 after local declaration.
11930 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11932 * ada-valprint.c (print_optional_low_bound): Get index_type's
11933 target type for as long as it is a TYPE_CODE_RANGE.
11935 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11937 * procfs.c (procfs_make_note_section): Remove assertion and
11938 associated comment.
11940 2014-01-24 Yao Qi <yao@codesourcery.com>
11942 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11943 * corelow.c (get_core_siginfo): Likewise.
11945 2014-01-24 Yao Qi <yao@codesourcery.com>
11947 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11948 ULONGEST. Don't check 'len' is negative.
11949 (remote_write_bytes): Change type of 'len' to ULONGEST.
11951 2014-01-23 Tom Tromey <tromey@redhat.com>
11954 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11955 Handle exception from frame.block.
11956 (FrameVars.fetch_frame_locals): Likewise.
11958 2014-01-23 Tom Tromey <tromey@redhat.com>
11961 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11962 on a NULL pointer. Move "goto error" to correct place.
11964 2014-01-23 Tom Tromey <tromey@redhat.com>
11967 * python/py-framefilter.c (apply_frame_filter): Call
11968 ensure_python_env after computing gdbarch.
11970 2014-01-23 Yao Qi <yao@codesourcery.com>
11972 * target.c (raw_memory_xfer_partial): Change argument type
11973 from void * to gdb_byte *.
11974 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11976 2014-01-22 Doug Evans <dje@google.com>
11978 New gdbserver option --debug-format=timestamp.
11979 * NEWS: Mention it.
11981 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11983 * syscalls/s390x-linux.xml: New file.
11984 * syscalls/s390-linux.xml: New file.
11985 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11986 (XML_SYSCALL_FILENAME_S390X): Likewise.
11987 (op_svc): New enum value for SVC opcode.
11988 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11989 (s390_linux_get_syscall_number): New function.
11990 (s390_gdbarch_init): Register '*get_syscall_number' and the
11991 syscall xml file name.
11992 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11993 "s390-linux.xml" and "s390x-linux.xml".
11994 * NEWS: Announce new feature.
11996 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11998 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12000 2014-01-22 Pedro Alves <palves@redhat.com>
12002 * xtensa-config.c: Include defs.h.
12004 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12006 * common/common-utils.h: Add "ARI:" comment beside __func__
12009 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12011 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12012 documentation a bit.
12014 2014-01-21 Roland McGrath <mcgrathr@google.com>
12016 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12017 * configure: Regenerate.
12018 * aclocal.m4: Regenerate.
12019 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12020 New substituted variables.
12021 (install-strip): New target.
12022 (INSTALL_SCRIPT): New substituted variable.
12023 (FLAGS_TO_PASS): Add it.
12024 (install-only): Use $(INSTALL_SCRIPT) rather than
12025 $(INSTALL_PROGRAM) for gcore.
12027 2014-01-20 Tom Tromey <tromey@redhat.com>
12029 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12032 2014-01-20 Tom Tromey <tromey@redhat.com>
12034 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12035 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12036 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12037 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12038 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12039 (struct cmd_list_element) <flags>: Remove.
12040 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12041 doc_allocated>: New fields.
12042 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12044 * maint.c (maintenance_do_deprecate): Update.
12045 * top.c (execute_command): Update.
12047 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12049 * xtensa-linux-nat.c: Include asm/ptrace.h.
12051 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12053 * Makefile.in (SFILES): Add d-support.c.
12054 (COMMON_OBS): Add d-support.o.
12055 * d-lang.h (d_parse_symbol): Add comment, now defined in
12057 * d-lang.c (parse_call_convention)
12058 (parse_attributes, parse_function_types)
12059 (parse_function_args, parse_type, parse_identifier)
12060 (call_convention_p, d_parse_symbol): Move functions to ...
12061 * d-support.c: ... New file.
12063 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12065 * d-lang.h (d_parse_symbol): Add declaration.
12066 * d-lang.c (extract_identifiers)
12067 (extract_type_info): Remove functions.
12068 (parse_call_convention, parse_attributes)
12069 (parse_function_types, parse_function_args)
12070 (parse_type, parse_identifier, call_convention_p)
12071 (d_parse_symbol): New functions.
12072 (d_demangle): Use d_parse_symbol to demangle D symbols.
12074 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12076 * d-lang.h (struct builtin_d_type): New data type.
12077 (builtin_d_type): Add declaration.
12078 * d-lang.c (d_language_arch_info, build_d_types)
12079 (builtin_d_type): New functions.
12080 (enum d_primitive_types): New data type.
12081 (d_language_defn): Change c_language_arch_info to
12082 d_language_arch_info.
12083 (d_type_data): New static variable.
12084 (_initialize_d_language): Initialize d_type_data.
12086 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12088 * d-lang.h (d_main_name): Add declaration.
12089 * d-lang.c (d_main_name): New function.
12090 * symtab.c (find_main_name): Add call to d_main_name.
12092 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12094 * d-lang.c (d_language_defn): Change macro_expansion_c to
12095 macro_expansion_no.
12097 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12099 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12101 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12103 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12104 gdb_exception" declaration.
12105 * remote.c (getpkt_or_notif_sane): Likewise.
12107 2014-01-17 Doug Evans <dje@google.com>
12109 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12110 function, contents of dirnames_to_char_ptr_vec_append moved here.
12111 (delim_string_to_char_ptr_vec): New function.
12112 (dirnames_to_char_ptr_vec_append): Rewrite.
12113 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12115 2014-01-17 Doug Evans <dje@google.com>
12117 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12119 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12120 #include "common-utils.h".
12121 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12122 * common/vec.h (VEC_ASSERT_PASS): Update.
12123 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12124 (MACH_CHECK_ERROR): Update.
12126 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12128 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12130 * gdbarch.h: Regenerate.
12132 2014-01-16 Tom Tromey <tromey@redhat.com>
12134 * value.c (struct value) <regnum>: Move earlier.
12136 2014-01-16 Tom Tromey <tromey@redhat.com>
12138 * remote.c (extended_remote_create_inferior): Rename from
12139 extended_remote_create_inferior_1. Add "ops" argument. Remove
12140 old implementation.
12142 2014-01-16 Pedro Alves <palves@redhat.com>
12144 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12145 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12148 2014-01-16 Doug Evans <dje@google.com>
12150 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12152 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12154 * btrace.h (btrace_thread_flag): New.
12155 (struct btrace_thread_info) <flags>: New.
12156 * record-btrace.c (record_btrace_resume_thread)
12157 (record_btrace_find_thread_to_move, btrace_step_no_history)
12158 (btrace_step_stopped, record_btrace_start_replaying)
12159 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12160 (record_btrace_find_resume_thread): New.
12161 (record_btrace_resume, record_btrace_wait): Extend.
12162 (record_btrace_can_execute_reverse): New.
12163 (record_btrace_open): Fail in non-stop mode.
12164 (record_btrace_set_replay): Split into this, ...
12165 (record_btrace_stop_replaying): ... this, ...
12166 (record_btrace_clear_histories): ... and this.
12167 (init_record_btrace_ops): Init to_can_execute_reverse.
12168 * NEWS: Announce it.
12170 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12172 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12173 (forward_target_decr_pc_after_break)
12174 (target_decr_pc_after_break): New.
12175 * target.c (forward_target_decr_pc_after_break)
12176 (target_decr_pc_after_break): New.
12177 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12178 instead of gdbarch_decr_pc_after_break.
12179 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12180 instead of gdbarch_decr_pc_after_break.
12181 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12182 instead of gdbarch_decr_pc_after_break.
12183 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12184 instead of gdbarch_decr_pc_after_break.
12185 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12186 instead of gdbarch_decr_pc_after_break.
12187 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12188 instead of gdbarch_decr_pc_after_break.
12190 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12192 * btrace.c: Include regcache.h.
12193 (btrace_add_pc): New.
12194 (btrace_enable): Call btrace_add_pc.
12195 (btrace_is_empty): New.
12196 * btrace.h (btrace_is_empty): New.
12197 * record-btrace.c (require_btrace, record_btrace_info): Call
12200 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12202 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12203 Support delta reads.
12204 (linux_disable_btrace): Change return type.
12205 * common/linux-btrace.h (linux_read_btrace): Change parameters
12206 and return type to allow error reporting. Update users.
12207 (linux_disable_btrace): Change return type. Update users.
12208 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12210 (btrace_error): New.
12211 (btrace_block) <begin>: Comment on BEGIN == 0.
12212 * btrace.c (btrace_compute_ftrace): Start from the end of
12214 (btrace_stitch_trace, btrace_clear_history): New.
12215 (btrace_fetch): Read delta trace, return if replaying.
12216 (btrace_clear): Move clear history code to btrace_clear_history.
12217 (parse_xml_btrace): Throw an error if parsing failed.
12218 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12219 and return type to allow error reporting.
12220 (target_read_btrace): Change parameters and return type to allow
12222 * target.c (target_read_btrace): Update.
12223 * remote.c (remote_read_btrace): Support delta reads. Pass
12225 * NEWS: Announce it.
12227 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12229 * record.h (record_btrace_frame_unwind)
12230 (record_btrace_tailcall_frame_unwind): New declarations.
12231 * dwarf2-frame: Include record.h
12232 (dwarf2_frame_cfa): Throw an error for btrace frames.
12233 * record-btrace.c: Include hashtab.h.
12234 (btrace_get_bfun_name): New.
12235 (btrace_call_history): Call btrace_get_bfun_name.
12236 (struct btrace_frame_cache): New.
12238 (bfcache_hash, bfcache_eq, bfcache_new): New.
12239 (btrace_get_frame_function): New.
12240 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12241 (record_btrace_frame_this_id): Compute own id.
12242 (record_btrace_frame_prev_register): Provide PC, throw_error
12243 for all other registers.
12244 (record_btrace_frame_sniffer): Detect btrace frames.
12245 (record_btrace_tailcall_frame_sniffer): New.
12246 (record_btrace_frame_dealloc_cache): New.
12247 (record_btrace_frame_unwind): Add new functions.
12248 (record_btrace_tailcall_frame_unwind): New.
12249 (_initialize_record_btrace): Allocate cache.
12250 * btrace.c (btrace_clear): Call reinit_frame_cache.
12251 * NEWS: Announce it.
12253 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12255 * record-btrace.c (record_btrace_set_replay)
12256 (record_btrace_goto_begin, record_btrace_goto_end)
12257 (record_btrace_goto): New.
12258 (init_record_btrace_ops): Initialize them.
12259 * NEWS: Announce it.
12261 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12263 * record-btrace.c (record_btrace_find_new_threads)
12264 (record_btrace_thread_alive): New.
12265 (init_record_btrace_ops): Initialize to_find_new_threads and
12268 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12270 * record-btrace.c (record_btrace_resume): New.
12271 (record_btrace_wait): New.
12272 (init_record_btrace_ops): Initialize to_wait and to_resume.
12274 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12276 * record-btrace.c (record_btrace_xfer_partial)
12277 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12278 (record_btrace_allow_memory_access): New.
12279 (init_record_btrace_ops): Initialize new methods.
12280 * target.c (raw_memory_xfer_partial): Bail out if target reports
12281 that this memory is not available.
12283 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12285 * target.h (target_ops) <to_insert_breakpoint>
12286 <to_remove_breakpoint>: Add target_ops parameter.
12287 (forward_target_insert_breakpoint): New.
12288 (forward_target_remove_breakpoint): New.
12289 (memory_remove_breakpoint, memory_insert_breakpoint):
12290 Add target_ops parameter.
12291 * target.c (target_insert_breakpoint): Split into this and ...
12292 (forward_target_insert_breakpoint): ... this.
12293 (target_remove_breakpoint): Split into this and ...
12294 (forward_target_remove_breakpoint): ... this.
12295 (debug_to_insert_breakpoint): Add target_ops parameter.
12296 Call forward_target_insert_breakpoint.
12297 (debug_to_remove_breakpoint): Add target_ops parameter.
12298 Call forward_target_remove_breakpoint.
12299 (update_current_target): Do not inherit or default to_insert_breakpoint
12300 and to_remove_breakpoint.
12301 * corelow.c (ignore): Add target_ops parameter.
12302 * exec.c (ignore): Add target_ops parameter.
12303 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12304 Add target_ops parameter.
12305 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12306 Add target_ops parameter.
12307 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12308 Add target_ops parameter.
12309 * record-full.c (record_full_beneath_to_insert_breakpoint)
12310 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12311 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12312 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12313 (record_full_core_remove_breakpoint): Add target_ops parameter.
12315 (record_full_beneath_to_insert_breakpoint_ops)
12316 (record_full_beneath_to_remove_breakpoint_ops)
12317 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12318 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12319 tmp_to_remove_breakpoint_ops,
12320 record_full_beneath_to_insert_breakpoint_ops, and
12321 record_full_beneath_to_remove_breakpoint_ops.
12322 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12323 (m32r_remove_breakpoint): Add target_ops parameter.
12324 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12325 Add target_ops parameter.
12326 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12327 Add target_ops parameter.
12329 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12330 Markus Metzger <markus.t.metzger@intel.com>
12332 * record-btrace.c: Include frame-unwind.h.
12333 (record_btrace_frame_unwind_stop_reason)
12334 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12335 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12337 (init_record_btrace_ops): Install it.
12339 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12341 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12344 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12346 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12349 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12351 * frame-unwind.c: Include target.h.
12352 (frame_unwind_try_unwinder): New function with code from ...
12353 (frame_unwind_find_by_frame): ... here. New variable
12354 unwinder_from_target, call also target_get_unwinder)
12355 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12356 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12357 * target.h (struct target_ops): New fields to_get_unwinder and
12358 to_get_tailcall_unwinder.
12359 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12361 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12363 * record-btrace.c (record_btrace_fetch_registers)
12364 (record_btrace_store_registers)
12365 (record_btrace_to_prepare_to_store): New.
12366 (init_record_btrace_ops): Add the above.
12368 2014-01-16 Tom Tromey <tromey@redhat.com>
12370 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12371 * target.h (struct target_ops) <to_prepare_to_store>: Add
12373 (target_prepare_to_store): Add argument.
12374 * target.c (debug_to_prepare_to_store): Add argument.
12375 (update_current_target): Update.
12376 * remote.c (remote_prepare_to_store): Add 'self' argument.
12377 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12378 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12379 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12380 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12382 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12383 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12384 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12385 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12386 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12388 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12390 * btrace.h (replay) <replay>: New.
12391 (btrace_is_replaying): New.
12392 * btrace.c (btrace_clear): Free replay iterator.
12393 (btrace_is_replaying): New.
12394 * record-btrace.c (record_btrace_is_replaying): New.
12395 (record_btrace_info): Print insn number if replaying.
12396 (record_btrace_insn_history): Start at replay position.
12397 (record_btrace_call_history): Start at replay position.
12398 (init_record_btrace_ops): Init to_record_is_replaying.
12400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12402 * record-btrace.c (record_btrace_insn_history_range): Include
12404 (record_btrace_insn_history_from): Adjust range.
12405 (record_btrace_call_history_range): Include
12407 (record_btrace_call_history_from): Adjust range.
12408 * NEWS: Announce changes.
12410 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12412 * record.h (enum record_print_flag)
12413 <record_print_indent_calls>: New.
12414 * record.c (get_call_history_modifiers): Recognize /c modifier.
12415 (_initialize_record): Document /c modifier.
12416 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12417 Reorder fields. Optionally indent the function name. Update
12419 * NEWS: Announce changes.
12421 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12423 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12425 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12427 * btrace.c (ftrace_new_function): Start counting at one.
12428 * record-btrace.c (record_btrace_info): Adjust number of calls
12430 * NEWS: Announce it.
12432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12434 * record-btrace.c (btrace_call_history_insn_range): Print
12435 insn range as [begin, end].
12437 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12439 * btrace.h (struct btrace_func_link): New.
12440 (enum btrace_function_flag): New.
12441 (struct btrace_inst): Rename to ...
12442 (struct btrace_insn): ...this. Update all users.
12443 (struct btrace_func) <ibegin, iend>: Remove.
12444 (struct btrace_func_link): New.
12445 (struct btrace_func): Rename to ...
12446 (struct btrace_function): ...this. Update all users.
12447 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12448 (number, level, flags>: New.
12449 (struct btrace_insn_iterator): Rename to ...
12450 (struct btrace_insn_history): ...this.
12452 (struct btrace_insn_iterator, btrace_call_iterator): New.
12453 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12454 (struct btrace_target_info) <begin, end, level>
12455 <insn_history, call_history>: New.
12456 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12457 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12458 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12459 (btrace_call_number, btrace_call_begin, btrace_call_end)
12460 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12461 (btrace_find_function_by_number, btrace_set_insn_history)
12462 (btrace_set_call_history): New.
12463 * btrace.c (btrace_init_insn_iterator)
12464 (btrace_init_func_iterator, compute_itrace): Remove.
12465 (ftrace_print_function_name, ftrace_print_filename)
12466 (ftrace_skip_file): Change
12467 parameter to const.
12468 (ftrace_init_func): Remove.
12469 (ftrace_debug): Use new btrace_function fields.
12470 (ftrace_function_switched): Also consider gaining and
12471 losing symbol information).
12472 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12473 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12474 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12476 (ftrace_new_function): Move. Remove debug print.
12477 (ftrace_update_lines, ftrace_update_insns): New.
12478 (ftrace_update_function): Check for call, ret, and jump.
12479 (compute_ftrace): Renamed to ...
12480 (btrace_compute_ftrace): ...this. Rewritten to compute call
12482 (btrace_fetch, btrace_clear): Updated.
12483 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12484 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12485 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12486 (btrace_call_number, btrace_call_begin, btrace_call_end)
12487 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12488 (btrace_find_function_by_number, btrace_set_insn_history)
12489 (btrace_set_call_history): New.
12490 * record-btrace.c (require_btrace): Use new btrace thread
12492 (record_btrace_info, btrace_insn_history)
12493 (record_btrace_insn_history, record_btrace_insn_history_range):
12494 Use new btrace thread info fields and new iterator.
12495 (btrace_func_history_src_line): Rename to ...
12496 (btrace_call_history_src_line): ...this. Use new btrace
12497 thread info fields.
12498 (btrace_func_history): Rename to ...
12499 (btrace_call_history): ...this. Use new btrace thread info
12500 fields and new iterator.
12501 (record_btrace_call_history, record_btrace_call_history_range):
12502 Use new btrace thread info fields and new iterator.
12504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12506 * frame.h (frame_id_build_unavailable_stack_special): New.
12507 * frame.c (frame_id_build_unavailable_stack_special): New.
12509 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12511 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12512 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12513 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12515 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12516 (i386_insn_is_jump, i386_jmp_p): New.
12517 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12518 insn_is_jump to gdbarch.
12519 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12520 * gdbarch.h: Regenerated.
12521 * gdbarch.c: Regenerated.
12522 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12523 (default_insn_is_jump): New.
12524 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12525 (default_insn_is_jump): New.
12527 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12529 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12531 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12532 (btrace_read_type) <btrace_read_new>: Change to ...
12533 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12535 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12537 * common/linux-btrace.c (linux_read_btrace): Free trace from
12538 previous iteration.
12540 2014-01-15 Doug Evans <dje@google.com>
12542 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12545 2014-01-15 Tom Tromey <tromey@redhat.com>
12547 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12548 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12549 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12550 (set_objfile_main_name): New function.
12551 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12552 language_of_main>: New fields.
12553 (set_objfile_main_name): Declare.
12554 * symtab.c (find_main_name): Loop over objfiles to find the main
12556 (set_main_name): Now static.
12557 (get_main_info): Add comment.
12558 * symtab.h (set_main_name): Don't declare.
12560 2014-01-15 Tom Tromey <tromey@redhat.com>
12562 * symtab.c (main_progspace_key): New global.
12563 (struct main_info): New.
12564 (name_of_main, language_of_main): Remove.
12565 (get_main_info, main_info_cleanup): New function.
12566 (set_main_name, main_name, main_language): Use get_main_info.
12567 (_initialize_symtab): Initialize main_progspace_key.
12569 2014-01-15 Tom Tromey <tromey@redhat.com>
12571 * dbxread.c (process_one_symbol): Update.
12572 * dwarf2read.c (read_partial_die): Update.
12573 * symfile.c (set_initial_language): Call main_language.
12574 * symtab.c (language_of_main): Now static.
12575 (set_main_name): Add 'lang' parameter.
12576 (find_main_name): Update.
12577 (main_language): New function.
12578 (symtab_observer_executable_changed): Update.
12579 * symtab.h (set_main_name): Update.
12580 (language_of_main): Remove.
12581 (main_language): Declare.
12583 2014-01-15 Tom Tromey <tromey@redhat.com>
12585 * symfile.c (init_entry_point_info): Use new "initialized" field.
12587 * objfiles.h (struct entry_point) <initialized>: New field.
12588 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12589 (struct objfile) <ei>: ...here. Remove.
12590 * objfiles.c (entry_point_address_query): Update.
12592 2014-01-15 Tom Tromey <tromey@redhat.com>
12594 * objfiles.c (entry_point_address_query): Relocate entry point
12596 (objfile_relocate1): Do not relocate entry point address.
12597 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12598 <the_bfd_section_index>: New field.
12599 * symfile.c (init_entry_point_info): Find the entry point's
12602 2014-01-15 Tom Tromey <tromey@redhat.com>
12604 * solib-frv.c (enable_break): Use entry_point_address_query.
12606 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12608 * NEWS: Add note on improved process record-replay on
12609 arm*-linux* targets.
12611 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12613 * arm-tdep.c (enum arm_record_result): New enum.
12614 (arm_record_unsupported_insn): New function.
12615 (arm_record_coproc_data_proc): Removed.
12616 (thumb2_record_ld_st_multiple): New function.
12617 (thumb2_record_ld_st_dual_ex_tbb): New function.
12618 (thumb2_record_data_proc_sreg_mimm): New function.
12619 (thumb2_record_ps_dest_generic): New function.
12620 (thumb2_record_branch_misc_cntrl): New function.
12621 (thumb2_record_str_single_data): New function.
12622 (thumb2_record_ld_mem_hints): New function.
12623 (thumb2_record_ld_word): New function.
12624 (thumb2_record_lmul_lmla_div): New function.
12625 (thumb2_record_decode_insn_handler): New function.
12626 (decode_insn): Add thumb32 instruction handlers.
12628 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12630 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12631 (struct arm_linux_record_tdep): Declare.
12632 (arm_canonicalize_syscall): New function.
12633 (arm_all_but_pc_registers_record): New function.
12634 (arm_linux_syscall_record): New function.
12635 (arm_linux_init_abi): Add syscall recording constructs.
12636 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12637 decoding. (arm_record_coproc_data_proc): Update arm syscall
12639 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12640 <arm_syscall_record>: New field.
12641 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12644 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12646 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12647 register for push instruction recording.
12649 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12651 * arm-tdep.c (thumb_record_misc): Update to correct logical
12652 error while recording ldm, ldmia and pop instructions.
12654 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12656 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12658 2014-01-15 Pedro Alves <palves@redhat.com>
12660 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12661 (go32_resume, go32_fetch_registers, store_register)
12662 (go32_store_registers, go32_prepare_to_store)
12663 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12664 (go32_create_inferior, go32_can_run, go32_terminal_init)
12665 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12668 2014-01-15 Tom Tromey <tromey@redhat.com>
12670 * target.h (async_callback_ftype): New typedef.
12671 (struct target_ops) <to_async>: Use it.
12673 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12675 * python/py-value.c (get_field_type): Remove unnecessary curly
12676 braces for single-statement if block.
12678 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12680 * python/py-type.c (convert_field): Add missing empty line
12681 after declarations.
12683 2014-01-14 Doug Evans <dje@google.com>
12685 * symfile.h (expand_symtabs_matching): Renamed from
12686 expand_partial_symbol_names. Update prototype.
12687 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12688 * symfile.c (expand_symtabs_matching): Renamed from
12689 expand_partial_symbol_names. New args file_matcher, kind.
12690 Rename arg fun to symbol_matcher.
12691 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12692 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12693 ada_expand_partial_symbol_name.
12694 (ada_make_symbol_completion_list): Update to call
12695 expand_symtabs_matching.
12696 (ada_add_global_exceptions): Call expand_symtabs_matching.
12697 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12698 call map_symbol_filenames.
12699 * symtab.c (sources_info): Update to call map_symbol_filenames.
12700 (search_symbols): Call expand_symtabs_matching.
12701 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12702 (default_make_symbol_completion_list_break_on): Update to call
12703 expand_symtabs_matching.
12704 (make_source_files_completion_list): Update to call
12705 map_symbol_filenames.
12707 2014-01-14 Doug Evans <dje@google.com>
12709 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12710 (expand_symtabs_symbol_matcher_ftype): New typedef.
12711 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12712 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12713 * symfile.c (expand_partial_symbol_names): Update to use
12714 expand_symtabs_symbol_matcher_ftype.
12715 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12716 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12717 Arg name_matcher renamed to symbol_matcher.
12718 * psymtab.c (recursively_search_psymtabs): Update to use
12719 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12721 (expand_symtabs_matching_via_partial): Update to use
12722 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12723 Arg name_matcher renamed to symbol_matcher.
12725 2014-01-14 Doug Evans <dje@google.com>
12727 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12728 (map_partial_symbol_filenames): Ditto.
12729 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12730 (map_partial_symbol_filenames): Ditto.
12731 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12732 (map_partial_symbol_filenames): Ditto.
12733 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12734 (map_partial_symbol_filenames): Ditto.
12735 * symtab.c: Delete #include "psymtab.h".
12737 2014-01-14 Pedro Alves <palves@redhat.com>
12738 Tom Tromey <tromey@redhat.com>
12740 * infrun.c (use_displaced_stepping): Use find_record_target
12741 instead of RECORD_IS_USED.
12742 (adjust_pc_after_break): Use record_full_is_used instead of
12744 * record-btrace.c (record_btrace_open): Call record_preopen
12745 instead of checking RECORD_IS_USED.
12746 * record-full.c (record_full_shortname)
12747 (record_full_core_shortname): New globals.
12748 (record_full_is_used): New function.
12749 (find_full_open): Call record_preopen instead of checking
12751 (init_record_full_ops): Set the target's shortname to
12752 record_full_shortname.
12753 (init_record_full_core_ops): Set the target's shortname to
12754 record_full_core_shortname.
12755 * record-full.h (record_full_is_used): Declare.
12756 * record.c (find_record_target): Make extern.
12757 (record_preopen): New function.
12758 * record.h (RECORD_IS_USED): Delete macro.
12759 (find_record_target, record_preopen): Declare functions.
12761 2014-01-14 Yao Qi <yao@codesourcery.com>
12763 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12764 'len''s type to ULONGEST.
12765 (core_xfer_shared_libraries_aix): Likewise.
12766 * gdbarch.c, gdbarch.h: Regenerated.
12767 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12768 Change type of 'len' to ULONGEST.
12769 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12770 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12772 2014-01-14 Yao Qi <yao@codesourcery.com>
12774 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12775 type of 'len' to ULONGEST.
12776 (linux_xfer_osdata_processgroups): Likewise.
12777 (linux_xfer_osdata_threads): Likewise.
12778 (linux_xfer_osdata_fds): Likewise.
12779 (linux_xfer_osdata_isockets): Likewise.
12780 (linux_xfer_osdata_shm): Likewise.
12781 (linux_xfer_osdata_sem): Likewise.
12782 (linux_xfer_osdata_msg): Likewise.
12783 (linux_common_xfer_osdata): Likewise.
12784 (struct osdata_type) <getter>: Likewise.
12785 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12788 2014-01-14 Yao Qi <yao@codesourcery.com>
12790 * target.h (target_xfer_partial_ftype): Update.
12791 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12793 * aix-thread.c (aix_thread_xfer_partial): Change type of
12794 argument 'len' to ULONGEST.
12795 * auxv.c (procfs_xfer_auxv): Likewise.
12796 (ld_so_xfer_auxv): Likewise.
12797 (memory_xfer_auxv): Likewise.
12798 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12799 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12800 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12801 * corelow.c (core_xfer_partial): Likewise.
12802 * ctf.c (ctf_xfer_partial): Likewise.
12803 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12805 (darwin_read_dyld_info): Likewise.
12806 (darwin_xfer_partial): Likewise.
12807 * exec.c (section_table_xfer_memory_partial): Likewise.
12808 (exec_xfer_partial): Likewise.
12809 * exec.h (section_table_xfer_memory_partial): Update
12811 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12812 instead of plongest.
12813 (gnu_xfer_partial): Likewise.
12814 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12815 (ia64_hpux_xfer_solib_got): Likewise.
12816 (ia64_hpux_xfer_partial): Likewise.
12817 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12818 * inf-ptrace.c (inf_ptrace_xfer_partial):
12819 * inf-ttrace.c (inf_ttrace_xfer_partial):
12820 * linux-nat.c (linux_xfer_siginfo): Likewise.
12821 (linux_nat_xfer_partial): Likewise.
12822 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12823 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12824 * monitor.c (monitor_xfer_memory): Likewise.
12825 (monitor_xfer_partial): Likewise.
12826 * procfs.c (procfs_xfer_partial): Likewise.
12827 * record-full.c (record_full_xfer_partial): Likewise.
12828 (record_full_core_xfer_partial): Likewise.
12829 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12830 instead of plongest.
12831 (gdbsim_xfer_partial): Likewise.
12832 * remote.c (remote_xfer_partial): Likewise.
12833 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12834 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12836 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12837 (rs6000_xfer_shared_libraries): Likewise.
12838 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12839 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12840 (sparc_xfer_partial): Likewise.
12841 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12842 (spu_xfer_partial): Likewise.
12843 * spu-multiarch.c (spu_xfer_partial): Likewise.
12844 * target.c (target_read_live_memory): Likewise.
12845 (memory_xfer_live_readonly_partial): Likewise.
12846 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12847 (target_xfer_partial, default_xfer_partial): Likewise.
12848 (current_xfer_partial): Likewise.
12849 * tracepoint.c (tfile_xfer_partial): Likewise.
12850 * windows-nat.c (windows_xfer_memory): Likewise. Call
12851 pulongest instead of plongest.
12852 (windows_xfer_partial): Likewise.
12853 (windows_xfer_shared_libraries): Likewise.
12855 2014-01-14 Yao Qi <yao@codesourcery.com>
12857 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12858 target_xfer_partial_ftype.
12860 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12864 * valops.c (value_struct_elt_bitpos): New function
12865 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12866 object to 'None' if the field name is an empty string ("").
12867 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12868 attribute to look for a field when 'name' is 'None'.
12869 (get_field_type): New function
12871 2014-01-13 Doug Evans <dje@google.com>
12874 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12875 (try_open_dwop_file): Ditto.
12876 * gdb_bfd.c: #include "vec.h".
12877 (bfdp): New typedef.
12878 (struct gdb_bfd_data): New member included_bfds.
12879 (gdb_bfd_unref): Unref all included bfds.
12880 (gdb_bfd_record_inclusion): New function.
12881 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12883 2014-01-13 Tom Tromey <tromey@redhat.com>
12885 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12887 2014-01-13 Tom Tromey <tromey@redhat.com>
12889 * defs.h (use_windows): Remove.
12890 * gdb.c (main): Update.
12891 * main.c (captured_main, gdb_main): Update.
12892 * main.h (struct captured_main_args) <use_windows>: Remove.
12893 * top.c (use_windows): Remove.
12895 2014-01-13 Tom Tromey <tromey@redhat.com>
12897 * defs.h (deprecated_flush_hook): Remove.
12899 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12902 * linux-thread-db.c (try_thread_db_load): Add parameter
12903 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12904 (try_thread_db_load_from_pdir_1): Move it there from here.
12905 (try_thread_db_load_from_sdir): Update caller.
12906 (try_thread_db_load_from_dir): Move it there from here.
12908 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12910 * regformats/regdat.sh: Always rewrite the register file.
12912 2014-01-13 Pedro Alves <palves@redhat.com>
12914 * Makefile.in (CHECK_HEADERS): New variable.
12915 (check-headers:): New rule.
12917 2014-01-13 Tom Tromey <tromey@redhat.com>
12919 * cli/cli-setshow.c (do_set_command): Update.
12920 * defs.h (deprecated_set_hook): Remove.
12921 * top.c (deprecated_set_hook): Remove.
12923 2014-01-13 Pedro Alves <palves@redhat.com>
12925 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12926 the tracepoint if the PC is a pseudo-register.
12928 2014-01-13 Tom Tromey <tromey@redhat.com>
12930 * defs.h (XCALLOC): Remove.
12931 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12932 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12933 * dwarf2loc.c (allocate_piece_closure): Likewise.
12934 * elfread.c (elf_symfile_segments): Likewise.
12935 (elf_symfile_segments): Likewise.
12936 * gdbtypes.c (copy_type_recursive): Likewise.
12937 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12938 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12939 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12941 * mt-tdep.c (mt_gdbarch_init): Likewise.
12942 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12944 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12945 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12946 * registry.c (registry_alloc_data): Likewise.
12947 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12948 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12949 * serial.c (serial_fdopen_ops): Likewise.
12950 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12952 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12953 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12956 2014-01-13 Tom Tromey <tromey@redhat.com>
12958 * defs.h (XMALLOC): Remove.
12959 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12960 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12961 * cli-out.c (struct ui_out *): Likewise.
12962 * cli/cli-dump.c (add_dump_command): Likewise.
12963 (add_dump_command): Likewise.
12964 * complaints.c (get_complaints): Likewise.
12965 (find_complaint): Likewise.
12966 * dwarf2-frame.c (execute_cfa_program): Likewise.
12967 * dwarf2read.c (abbrev_table_read_table): Likewise.
12968 * gdbarch.sh: Likewise.
12969 * gdbarch.c: Rebuild.
12970 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12971 * interps.c (interp_new): Likewise.
12972 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12973 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12974 * mi/mi-console.c (mi_console_file_new): Likewise.
12975 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12976 * mi/mi-out.c (mi_out_new): Likewise.
12977 * mi/mi-parse.c (mi_parse): Likewise.
12978 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12979 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12980 * observer.c (xalloc_observer_list_node): Likewise.
12981 * regcache.c (regcache_xmalloc_1): Likewise.
12982 * reggroups.c (reggroup_new): Likewise.
12983 (_initialize_reggroup): Likewise.
12984 * registry.c (register_data_with_cleanup): Likewise.
12985 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12986 * ser-base.c (serial_ttystate): Likewise.
12987 * ser-mingw.c (make_pipe_state): Likewise.
12988 * ser-pipe.c (pipe_open): Likewise.
12989 * serial.c (serial_open): Likewise.
12990 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12991 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12992 (tui_alloc_win_info): Likewise.
12993 (tui_add_content_elements): Likewise.
12994 * tui/tui-file.c (tui_file_new): Likewise.
12995 * tui/tui-out.c (tui_out_new): Likewise.
12996 * ui-file.c (mem_file_new): Likewise.
12997 * ui-out.c (push_level): Likewise.
12998 (make_cleanup_ui_out_end): Likewise.
12999 (append_header_to_list): Likewise.
13000 (ui_out_new): Likewise.
13001 * user-regs.c (user_reg_add_builtin): Likewise.
13003 2014-01-13 Tom Tromey <tromey@redhat.com>
13005 * defs.h (XZALLOC): Remove.
13006 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13007 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13008 (get_ada_tasks_inferior_data): Likewise.
13009 * auto-load.c (get_auto_load_pspace_data): Likewise.
13010 * auxv.c (get_auxv_inferior_data): Likewise.
13011 * bfd-target.c (target_bfd_reopen): Likewise.
13012 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13013 (deprecated_insert_raw_breakpoint): Likewise.
13014 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13015 * corelow.c (core_open): Likewise.
13016 * darwin-nat.c (darwin_check_new_threads): Likewise.
13017 (darwin_attach_pid): Likewise.
13018 * dummy-frame.c (dummy_frame_push): Likewise.
13019 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13020 * dwarf2loc.c (allocate_piece_closure): Likewise.
13021 * elfread.c (elf_symfile_segments): Likewise.
13022 * eval.c (ptrmath_type_p): Likewise.
13023 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13024 * gdbtypes.c (alloc_type_arch): Likewise.
13025 (alloc_type_instance): Likewise.
13026 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13027 * inf-child.c (inf_child_can_use_agent): Likewise.
13028 * inflow.c (get_inflow_inferior_data): Likewise.
13029 * infrun.c (save_infcall_suspend_state): Likewise.
13030 * jit.c (jit_reader_load): Likewise.
13031 (get_jit_objfile_data): Likewise.
13032 (get_jit_program_space_data): Likewise.
13033 (jit_object_open_impl): Likewise.
13034 (jit_symtab_open_impl): Likewise.
13035 (jit_block_open_impl): Likewise.
13036 (jit_frame_sniffer): Likewise.
13037 * linux-fork.c (add_fork): Likewise.
13038 * maint.c (make_command_stats_cleanup): Likewise.
13039 * objfiles.c (get_objfile_pspace_data): Likewise.
13040 * opencl-lang.c (struct lval_closure): Likewise.
13041 * osdata.c (osdata_start_osdata): Likewise.
13042 * progspace.c (new_address_space): Likewise.
13043 (add_program_space): Likewise.
13044 * remote-sim.c (get_sim_inferior_data): Likewise.
13045 * sh-tdep.c (sh_gdbarch_init): Likewise.
13046 * skip.c (Ignore): Likewise.
13047 (skip_delete_command): Likewise.
13048 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13049 (library_list_start_library): Likewise.
13050 (solib_aix_current_sos): Likewise.
13051 * solib-darwin.c (get_darwin_info): Likewise.
13052 (darwin_current_sos): Likewise.
13053 * solib-dsbt.c (get_dsbt_info): Likewise.
13054 * solib-ia64-hpux.c (new_so_list): Likewise.
13055 (ia64_hpux_get_solib_linkage_addr): Likewise.
13056 * solib-spu.c (append_ocl_sos): Likewise.
13057 (spu_current_sos): Likewise.
13058 * solib-svr4.c (get_svr4_info): Likewise.
13059 (svr4_keep_data_in_core): Likewise.
13060 (library_list_start_library): Likewise.
13061 (svr4_default_sos): Likewise.
13062 (svr4_read_so_list): Likewise.
13063 * solib-target.c (library_list_start_library): Likewise.
13064 (solib_target_current_sos): Likewise.
13065 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13066 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13067 * symfile.c (default_symfile_segments): Likewise.
13068 * target-descriptions.c (tdesc_data_init): Likewise.
13069 (tdesc_create_reg): Likewise.
13070 (struct tdesc_type *): Likewise.
13071 (tdesc_create_vector): Likewise.
13072 (tdesc_set_struct_size): Likewise.
13073 (struct tdesc_type *): Likewise.
13074 (tdesc_free_feature): Likewise.
13075 (tdesc_create_feature): Likewise.
13076 * windows-nat.c (windows_add_thread): Likewise.
13077 (windows_make_so): Likewise.
13078 * xml-support.c (gdb_xml_body_text): Likewise.
13079 (gdb_xml_create_parser_and_cleanup): Likewise.
13080 (xml_process_xincludes): Likewise.
13081 * xml-syscall.c (allocate_syscalls_info): Likewise.
13082 (syscall_create_syscall_desc): Likewise.
13084 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13086 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13087 function, with code from i386_stap_parse_special_token.
13088 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13089 (i386_stap_parse_special_token): Move code to the two functions
13090 above; simplify it.
13092 2014-01-09 Pedro Alves <palves@redhat.com>
13093 Hui Zhu <hui@codesourcery.com>
13096 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13097 bp_err_string. Don't mark the location shlib_disabled if the
13098 error thrown wasn't a generic or memory error. Catch errors
13099 thrown while inserting breakpoints in overlayed code. Output
13100 error message of software breakpoints.
13101 * remote.c (remote_insert_breakpoint): If this breakpoint has
13102 target-side commands but this stub doesn't support Z0 packets,
13103 throw NOT_SUPPORTED_ERROR error.
13104 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13105 * target.h (target_insert_breakpoint): Extend comment.
13106 (target_insert_hw_breakpoint): Add comment.
13108 2014-01-08 Pedro Alves <palves@redhat.com>
13110 * remote.c (remote_add_thread): Add threads silently if starting
13112 (remote_notice_new_inferior): If in all-stop, and starting up,
13113 don't call notice_new_inferior.
13114 (get_current_thread): New function, factored out from ...
13115 (add_current_inferior_and_thread): ... this. Adjust.
13116 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13117 found any thread, then select the remote's current thread as GDB's
13118 current thread too.
13120 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13122 * NEWS: Create a new section for the next release branch.
13123 Rename the section of the current branch, now that it has
13126 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13128 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13129 * version.in: Bump version to 7.7.50.DATE-cvs.
13131 2014-01-08 Yao Qi <yao@codesourcery.com>
13133 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13134 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13135 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13137 2014-01-08 Yao Qi <yao@codesourcery.com>
13139 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13140 return value of bfd_get_filename to symbol_file_add_from_bfd.
13142 2014-01-08 Pierre Muller <muller@sourceware.org>
13145 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13146 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13147 to prim_record_mininal_symbol_and_info.
13148 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13149 in call to prim_record_minimal_symbol_and_info.
13150 (read_pe_exported_syms): Set index field of section_data.
13152 2014-01-07 Andrew Pinski <apinski@cavium.com>
13154 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13155 * features/aarch64.c: Regenerate.
13157 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13159 * target.c (return_null): Define.
13160 (update_current_target): Use it instead of return_zero for
13161 functions that return a pointer.
13163 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13165 * source.c (add_path): Fix check for duplicated paths in the previously
13168 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13170 * ada-lang.c: Remove duplicated include statements.
13171 * alphabsd-nat.c: Ditto.
13172 * amd64-darwin-tdep.c: Ditto.
13173 * amd64fbsd-nat.c: Ditto.
13174 * auto-load.c: Ditto.
13176 * breakpoint.c: Ditto.
13177 * dbxread.c: Ditto.
13178 * fork-child.c: Ditto.
13179 * gdb_usleep.c: Ditto.
13180 * i386-darwin-tdep.c: Ditto.
13181 * i386fbsd-nat.c: Ditto.
13183 * inferior.c: Ditto.
13184 * jv-lang.c: Ditto.
13185 * linux-nat.c: Ditto.
13186 * linux-tdep.c: Ditto.
13187 * m68kbsd-nat.c: Ditto.
13188 * m68klinux-nat.c: Ditto.
13189 * microblaze-tdep.c: Ditto.
13190 * mips-linux-tdep.c: Ditto.
13191 * mn10300-tdep.c: Ditto.
13192 * nto-tdep.c: Ditto.
13193 * opencl-lang.c: Ditto.
13195 * printcmd.c: Ditto.
13196 * regcache.c: Ditto.
13197 * remote-m32r-sdi.c: Ditto.
13199 * symfile.c: Ditto.
13201 * tilegx-linux-nat.c: Ditto.
13202 * tilegx-tdep.c: Ditto.
13203 * tracepoint.c: Ditto.
13205 * vaxbsd-nat.c: Ditto.
13206 * windows-nat.c: Ditto.
13207 * xtensa-tdep.c: Ditto.
13209 2014-01-07 Yao Qi <yao@codesourcery.com>
13211 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13213 2014-01-07 Yao Qi <yao@codesourcery.com>
13214 Joel Brobecker <brobecker@adacore.com>
13216 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13217 (pdc_write_regs): Likewise.
13218 (fetch_regs_kernel_thread): Likewise.
13219 (store_regs_kernel_thread): Likewise.
13221 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13223 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13224 tagged type objects to their actual type.
13226 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13228 * ada-valprint.c (print_field_values): Add "language" parameter.
13229 Update calls to print_field_values and print_variant_part.
13230 Pass new parameter "language" in call to val_print instead
13231 of "current_language". Replace call to ada_val_print by call
13233 (print_variant_part): Add "language" parameter.
13234 (ada_val_print_struct_union): Update call to print_field_values.
13236 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13238 * ada-valprint.c (ui_memcpy): Delete.
13239 (ada_print_floating): Update documentation. Add empty line
13240 between between function documentation and implementation.
13241 Delete variable "buffer". Use ui_file_xstrdup in place of
13242 ui_file_put. Minor adjustments following this change.
13244 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13246 * ada-valprint.c (ada_val_print_string): New function,
13247 extracted from ada_val_print_array.
13248 (ada_val_print_array): Replace extracted code by call
13249 to ada_val_print_string followed by a return. Move
13250 "else" branch to the function's top block.
13252 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13254 * ada-valprint.c (ada_val_print_array): Move implementation
13255 down. Rename parameter "offset" and "val" into "offset_aligned"
13256 and "original_value" respectively. Add parameter "offset".
13258 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13260 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13261 re-organizing the code. Change the "???" message printed
13262 when target type is a TYPE_CODE_UNDEF into
13263 "<ref to undefined type>".
13265 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13267 * ada-valprint.c (print_record): Delete, implementation inlined...
13268 (ada_val_print_struct_union): ... here. Remove call to
13269 ada_check_typedef in inlined implementation.
13271 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13273 * ada-valprint.c (ada_val_print_gnat_array): New function,
13274 extracted from ada_val_print_1;
13275 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13276 (ada_val_print_flt, ada_val_print_struct_union)
13277 (ada_val_print_ref): Likewise.
13278 (ada_val_print_1): Delete variables i and elttype.
13279 Replace extracted-out code by call to corresponding
13282 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13284 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13286 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13288 * ada-valprint.c (ada_val_print_1): Replace calls to
13289 ada_val_print_1 by calls to val_print.
13291 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13293 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13294 Update calls to self accordingly. Replace calls to c_val_print
13295 by calls to val_print.
13297 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13299 * ada-valprint.c (print_record): Delete declaration.
13300 (adjust_type_signedness, ada_val_print_1): Likewise.
13301 (ada_val_print): Move function implementation down.
13302 (print_variant_part, print_field_values, print_record):
13303 Move function implementation up.
13305 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13307 * python/py-type.c (typy_get_name): New function.
13308 (type_object_getset): Add entry for attribute "name".
13309 * NEWS: Add entry mentioning this new attribute.
13311 2014-01-07 Yao Qi <yao@codesourcery.com>
13313 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13316 2014-01-07 Yao Qi <yao@codesourcery.com>
13318 * gnu-nat.c (info_port_rights): Add qualifier const to
13321 2014-01-07 Yao Qi <yao@codesourcery.com>
13323 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13325 2014-01-07 Yao Qi <yao@codesourcery.com>
13327 * gnu-nat.c (make_inf) Update declaration.
13328 (make_inf): Make it static.
13329 (inf_set_traced): Likewise.
13330 (inf_port_to_thread, inf_task_died_status): Likewise.
13332 2014-01-07 Yao Qi <yao@codesourcery.com>
13334 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13336 2014-01-07 Yao Qi <yao@codesourcery.com>
13338 * gnu-nat.c (_initialize_gnu_nat): Declare.
13340 2014-01-07 Yao Qi <yao@codesourcery.com>
13342 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13344 (struct gdbarch_info) <byte_order>: Change type to
13346 <byte_order_for_code>: Likewise.
13347 * gdbarch.c, gdbarch.h: Regenerated.
13349 2014-01-06 Sasha Smundak <asmundak@google.com>
13351 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13353 2014-01-06 Tom Tromey <tromey@redhat.com>
13355 * doublest.c (convert_doublest_to_floatformat): Use const, not
13357 * somread.c (som_symtab_read): Likewise.
13359 2014-01-07 Hui Zhu <hui@codesourcery.com>
13361 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13362 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13363 (gdb_bfd_fopen): Ditto.
13364 (gdb_bfd_openr): Ditto.
13365 (gdb_bfd_openw): Ditto.
13366 (gdb_bfd_openr_iovec): Ditto.
13367 (gdb_bfd_fdopenr): Ditto.
13368 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13369 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13371 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13373 * symfile-mem.c (symbol_file_add_from_memory): Removed
13374 gdb_bfd_stash_filename.
13376 2014-01-03 Doug Evans <dje@google.com>
13378 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13381 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13383 Update year range in copyright notice of all files.
13385 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13387 * top.c (print_gdb_version): Set copyright year to 2014.
13389 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13391 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13393 For older changes see ChangeLog-2013.
13399 version-control: never