1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
5 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
6 method 'make_corefile_notes'.
7 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
8 (ppcfbsd_regset_from_core_section): Remove.
9 (ppcfbsd_iterate_over_regset_sections): New.
10 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
12 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
13 (ppcnbsd_iterate_over_regset_sections): New.
14 (ppcnbsd_init_abi): Adjust.
15 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
16 (ppcobsd_iterate_over_regset_sections): New.
17 (ppcobsd_init_abi): Adjust.
18 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
19 (rs6000_aix_iterate_over_regset_sections): New.
20 (rs6000_aix_init_osabi): Adjust.
22 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
24 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
25 (nios2_regset_from_core_section): Remove.
26 (nios2_iterate_over_regset_sections): New.
27 (nios2_linux_init_abi): Adjust gdbarch initialization.
29 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
31 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
32 (am33_iterate_over_regset_sections): New.
33 (am33_linux_init_osabi): Adjust gdbarch initialization.
35 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
37 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
38 (mips_linux_iterate_over_regset_sections): New.
39 (mips_linux_init_abi): Adjust gdbarch initialization.
40 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
41 (mips64obsd_iterate_over_regset_sections): New.
42 (mips64obsd_init_abi): Adjust.
43 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
44 (mipsnbsd_iterate_over_regset_sections): New.
45 (mipsnbsd_init_abi): Adjust.
47 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
49 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
50 (m88k_iterate_over_regset_sections): New.
51 (m88k_gdbarch_init): Adjust gdbarch initialization.
53 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
55 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
56 (ia64_linux_iterate_over_regset_sections): New.
57 (ia64_linux_init_abi): Adjust gdbarch initialization.
59 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
61 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
62 (m68kbsd_iterate_over_regset_sections): New.
63 (m68kbsd_init_abi): Adjust gdbarch initialization.
64 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
65 (m68k_linux_iterate_over_regset_sections): New.
66 (m68k_linux_init_abi): Adjust gdbarch initialization.
68 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
70 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
71 (m32r_linux_regset_from_core_section): Remove.
72 (m32r_linux_iterate_over_regset_sections): New.
73 (m32r_linux_init_abi): Adjust gdbarch initialization.
75 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
77 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
78 (amd64obsd_iterate_over_regset_sections): New.
79 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
80 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
82 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
83 regset_from_core_section initialization.
84 * i386-tdep.c (i386_regset_from_core_section): Remove.
85 (i386_iterate_over_regset_sections): New.
86 (i386_gdbarch_init): Adjust gdbarch initialization.
87 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
88 (i386_iterate_over_regset_sections): New prototype.
89 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
91 (i386obsd_aout_iterate_over_regset_sections): New.
92 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
93 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
95 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
96 (amd64fbsd_init_abi): Call fbsd_init_abi.
97 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
98 (i386fbsd4_init_abi): Call fbsd_init_abi.
99 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
100 target method 'make_corefile_notes'.
101 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
103 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
105 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
106 (hppa_hpux_iterate_over_regset_sections): New.
107 (hppa_hpux_init_abi): Adjust gdbarch initialization.
108 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
109 (hppa_linux_iterate_over_regset_sections): New.
110 (hppa_linux_init_abi): Adjust.
111 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
112 (hppanbsd_iterate_over_regset_sections): New.
113 (hppanbsd_init_abi): Adjust.
114 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
115 (hppaobsd_iterate_over_regset_sections): New.
116 (hppaobsd_init_abi): Adjust.
118 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
120 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
121 (frv_linux_iterate_over_regset_sections): New.
122 (frv_linux_init_abi): Adjust gdbarch initialization.
124 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
126 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
127 (armbsd_iterate_over_regset_sections): New prototype.
128 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
129 (armbsd_iterate_over_regset_sections): New.
130 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
133 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
135 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
136 (alpha_linux_iterate_over_regset_sections): New.
137 (alpha_linux_init_abi): Adjust gdbarch initialization.
138 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
140 (alphanbsd_iterate_over_regset_sections): New prototype.
142 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
144 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
146 (aarch64_linux_iterate_over_regset_sections): New.
147 (aarch64_linux_init_abi): Adjust gdbarch initialization.
149 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
151 * fbsd-tdep.c: New file.
152 * fbsd-tdep.h: New file.
153 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
154 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
155 (ALLDEPFILES): Add fbsd-tdep.c.
157 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
159 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
161 * gdbarch.h: Regenerate.
162 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
164 (get_core_register_section): Add parameter 'regset' and use it, if
165 set. Add parameter 'min_size' and verify the bfd section size
167 (get_core_registers_cb): Add parameter 'regset' and pass it to
168 get_core_register section. For the "standard" register sections
169 ".reg" and ".reg2", set an appropriate default for human_name.
170 (get_core_registers): Don't abort when the gdbarch has an iterator
171 but no regset_from_core_section. Add NULL/0 for parameters
172 'regset'/'min_size' in calls to get_core_register_section.
173 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
174 'regset' and use it instead of calling the
175 regset_from_core_section gdbarch method.
176 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
177 * i386-tdep.c (i386_supply_xstateregset)
178 (i386_collect_xstateregset, i386_xstateregset): Moved to
180 (i386_regset_from_core_section): Drop handling for .reg-xfp and
182 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
183 core file support only if the regset iterator hasn't been set.
184 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
185 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
186 Moved from i386-tdep.c and renamed to *_linux*.
187 (i386_linux_iterate_over_regset_sections): Add regset parameter to
188 each callback invocation. Allow any .reg-xstate size when reading
190 * amd64-tdep.c (amd64_supply_xstateregset)
191 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
193 (amd64_regset_from_core_section): Remove.
194 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
195 install an amd64-specific regset_from_core_section gdbarch method.
196 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
197 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
198 Moved from amd64-tdep.c and renamed to *_linux*.
199 (amd64_linux_iterate_over_regset_sections): Add regset parameter
200 to each callback invocation. Allow any .reg-xstate size when
201 reading from a core file.
202 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
203 (arm_linux_iterate_over_regset_sections): Add regset parameter to
204 each callback invocation.
205 (arm_linux_init_abi): No longer set the regset_from_core_section
207 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
208 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
209 each callback invocation.
210 (ppc_linux_init_abi): No longer set the regset_from_core_section
212 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
213 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
214 (s390_regset_from_core_section): Remove.
215 (s390_iterate_over_regset_sections): Add regset parameter to each
217 (s390_gdbarch_init): No longer set the regset_from_core_section
218 gdbarch method. Drop initialization of deleted tdep fields.
220 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
222 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
223 (amd64_linux_iterate_over_regset_sections): New.
224 (amd64_linux_init_abi_common): Don't install the regset section
225 list, but the new iterator in gdbarch.
226 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
227 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
228 (arm_linux_iterate_over_regset_sections): ...here. New function.
229 (arm_linux_init_abi): Set iterator instead of section list.
230 * corelow.c (get_core_registers_cb): New function, logic moved
232 (get_core_registers): ...loop body here. Use new iterator method
233 instead of walking through the regset section list.
234 * gdbarch.sh: Remove 'core_regset_sections'. New method
235 'iterate_over_regset_sections'. New typedef
236 'iterate_over_regset_sections_cb'.
237 * gdbarch.c: Regenerate.
238 * gdbarch.h: Likewise.
239 * i386-linux-tdep.c (i386_linux_regset_sections)
240 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
242 (i386_linux_iterate_over_regset_sections): New.
243 (i386_linux_init_abi): Don't choose a regset section list, but
244 install new iterator in gdbarch.
245 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
246 (linux_collect_regset_section_cb): New function, logic moved
248 (linux_collect_thread_registers): ...loop body here. Use iterator
249 method instead of walking through list.
250 (linux_make_corefile_notes_1): Check for presence of iterator
251 method instead of regset section list.
252 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
253 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
254 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
255 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
256 (ppc_linux_iterate_over_regset_sections): ...here. New function.
257 (ppc_linux_init_abi): Don't choose from above regset section
258 lists, but install new iterator in gdbarch.
259 * regset.h (struct core_regset_section): Remove.
260 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
261 have_linux_v1, have_linux_v2, and have_tdb.
262 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
263 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
264 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
265 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
266 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
267 (s390_iterate_over_regset_sections): ...here. New function. Use
269 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
270 regset section lists, but install new iterator.
272 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
274 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
276 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
278 * progspace.c (print_program_space): Don't prune program spaces
279 before printing them.
281 2014-09-25 Pedro Alves <palves@redhat.com>
283 * infrun.c (user_visible_resume_ptid): Don't check
284 singlestep_breakpoints_inserted_p.
286 2014-09-25 Pedro Alves <palves@redhat.com>
288 * breakpoint.c (should_be_inserted): Add debug output.
290 2014-09-25 Pedro Alves <palves@redhat.com>
292 * infrun.c (stepping_past_instruction_at)
293 (clear_exit_convenience_vars): Point at infrun.h instead of
295 (handle_signal_stop): Fix typo.
297 2014-09-24 Yao Qi <yao@codesourcery.com>
299 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
302 2014-09-22 Gary Benson <gbenson@redhat.com>
304 * target.c (target_stop): Updated comment.
306 2014-09-22 Gary Benson <gbenson@redhat.com>
308 * target/target.h (target_stop_ptid): Renamed as...
309 (target_stop_and_wait): New function. Updated comment.
311 (target_continue_ptid): Renamed as...
312 (target_continue_no_signal): New function. Updated comment.
315 2014-09-22 Pedro Alves <palves@redhat.com>
317 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
319 * breakpoint.c (enum ugll_insert_mode): New enum.
320 (always_inserted_mode): Now a plain boolean.
321 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
322 (breakpoints_always_inserted_mode): Delete.
323 (breakpoints_should_be_inserted_now): New function.
324 (insert_breakpoints): Pass UGLL_INSERT to
325 update_global_location_list instead of calling
326 insert_breakpoint_locations manually.
327 (create_solib_event_breakpoint_1): New, factored out from ...
328 (create_solib_event_breakpoint): ... this.
329 (create_and_insert_solib_event_breakpoint): Use
330 create_solib_event_breakpoint_1 instead of calling
331 insert_breakpoint_locations manually.
332 (update_global_location_list): Change parameter type from boolean
333 to enum ugll_insert_mode. All callers adjusted. Adjust to use
334 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
335 (update_global_location_list_nothrow): Change parameter type from
336 boolean to enum ugll_insert_mode.
337 (_initialize_breakpoint): "breakpoint always-inserted" option is
338 now a boolean command. Update help text.
339 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
340 (breakpoints_should_be_inserted_now): New declaration.
341 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
342 Remove breakpoints_always_inserted_mode check.
343 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
344 * remote.c (remote_start_remote): Likewise.
346 2014-09-22 Pedro Alves <palves@redhat.com>
348 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
349 (insert_breakpoints): Don't call insert_breakpoint_locations here.
350 Instead, pass UGLL_INSERT to update_global_location_list.
351 (update_global_location_list): Change parameter type from boolean
352 to enum ugll_insert_mode. All callers adjusted. Adjust to use
353 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
354 (create_solib_event_breakpoint_1): New, factored out from ...
355 (create_solib_event_breakpoint): ... this.
356 (create_and_insert_solib_event_breakpoint): Use
357 create_solib_event_breakpoint_1 instead of calling
358 insert_breakpoint_locations manually.
359 (update_global_location_list): Handle UGLL_INSERT.
361 2014-09-22 Pedro Alves <palves@redhat.com>
363 * breakpoint.c (enum ugll_insert_mode): New enum.
364 (update_global_location_list)
365 (update_global_location_list_nothrow): Change parameter type from
366 boolean to enum ugll_insert_mode. All callers adjusted.
368 2014-09-19 Joel Brobecker <brobecker@adacore.com>
370 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
371 SystemTap support in GDB.
373 2014-09-19 Don Breazeal <donb@codesourcery.com>
375 * linux-nat.c (linux_handle_extended_wait): Call
376 linux_ptrace_get_extended_event.
377 (wait_lwp): Call linux_is_extended_waitstatus.
378 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
379 and linux_is_extended_waitstatus.
380 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
381 linux_ptrace_get_extended_event.
382 (linux_ptrace_get_extended_event): New function.
383 (linux_is_extended_waitstatus): New function.
384 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
385 (linux_is_extended_waitstatus): New declarations.
387 2014-09-19 Yao Qi <yao@codesourcery.com>
389 * dwarf2read.c (dwarf_decode_lines): Update declaration.
390 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
391 comments. Callers update.
392 (dwarf_decode_lines): Likewise.
393 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
394 comments. Skip the line table if 'lowpc' is greater than
395 'address'. Don't check
396 dwarf2_per_objfile->has_section_at_zero.
398 2014-09-18 Doug Evans <dje@google.com>
400 * NEWS: Mention new "producer" attribute of gdb.Symtab.
401 * python/py-symtab.c (stpy_get_producer): New function.
402 (symtab_object_getset): Add "producer" attribute.
404 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
407 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
408 (do_captured_read_memory_integer): Remove.
409 (safe_read_memory_integer): Use target_read_memory directly instead
410 of catching errors in do_captured_read_memory_integer.
412 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
414 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
417 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
419 * objc-lang.c (find_implementation_from_class): Remove dead code.
421 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
424 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
425 "fprintf_unfiltered (gdb_stdlog...)".
427 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
430 * breakpoint.h (struct watchpoint): New fields val_bitpos and
432 * breakpoint.c (watch_command_1): Use these fields to retain
433 bitfield information.
434 (extract_bitfield_from_watchpoint_value): New function.
435 (watchpoint_check): Use it.
436 (update_watchpoint): Use it. Optimize the address and length of a
437 HW watchpoint pointing to a bitfield.
438 * value.h (unpack_value_bitfield): New prototype.
439 * value.c (unpack_value_bitfield): Make extern.
441 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
443 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
445 * gnu-nat.c (inf_threads): New function.
446 * gnu-nat.h (inf_threads_ftype): New typedef.
447 (inf_threads): New declaration.
448 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
449 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
450 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
451 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
452 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
453 (i386_gnu_dr_get_control): New functions.
454 (reg_addr): New structure.
455 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
456 i386 debugging register hooks.
457 * NEWS: Mention this.
459 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
461 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
462 vector data transfer instructions.
463 (arm_record_coproc_data_proc): Updated.
465 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
467 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
468 arm_record_exreg_ld_st_insn.
469 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
472 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
474 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
475 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
476 processing instructions.
478 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
480 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
481 for advance SIMD struct ld/st insn.
482 (thumb2_record_decode_insn_handler): Replace stub handler with
483 thumb2_record_asimd_struct_ld_st.
485 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
487 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
488 for asimd, vfp and coprocessor insns.
489 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
490 and coprocessor insns.
491 (thumb2_record_coproc_insn): New function.
492 (thumb2_record_decode_insn_handler): Update coprocessor insns record
494 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
497 2014-09-13 Doug Evans <xdje42@gmail.com>
499 * NEWS: Mention new "queue-signal" command.
500 * infcmd.c (queue_signal_command): New function.
501 (_initialize_infcmd): Add new queue-signal command.
503 2014-09-13 Doug Evans <xdje42@gmail.com>
505 * linux-nat.c (wait_lwp): Add debugging printf.
506 (linux_nat_wait_1): Ditto.
508 2014-09-12 Pedro Alves <palves@redhat.com>
510 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
511 (create_and_insert_solib_event_breakpoint): New functions.
512 * breakpoint.h (create_and_insert_solib_event_breakpoint)
513 (remove_solib_event_breakpoints_at_next_stop): New declarations.
514 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
515 (remove_dbx_link_breakpoint): Delete function.
516 (insert_dbx_link_bpt_in_file): Use
517 create_and_insert_solib_event_breakpoint instead of
518 deprecated_insert_raw_breakpoint.
519 (procfs_wait): Don't check whether we hit __dbx_link here.
520 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
522 * solib-irix.c (base_breakpoint): Delete global.
523 (disable_break): Delete function.
524 (enable_break): Use create_solib_event_breakpoint
525 instead of deprecated_insert_raw_breakpoint.
526 (irix_solib_handle_event): New function.
527 (irix_solib_create_inferior_hook): Don't run the target or disable
528 the mapping-complete breakpoint here.
529 (_initialize_irix_solib): Install irix_solib_handle_event as
530 so_ops->handle_event hook.
532 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
533 Ulrich Weigand <uweigand@de.ibm.com>
536 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
537 instead of read_memory_unsigned_integer.
539 2014-09-12 Gary Benson <gbenson@redhat.com>
541 * nat/linux-waitpid.c: Include common-defs.h.
542 [GDBSERVER]: Add FIXME comment.
543 [!GDBSERVER]: Don't include defs.h or signal.h.
544 (linux_debug) [!GDBSERVER]: Remove empty block.
546 2014-09-12 Gary Benson <gbenson@redhat.com>
548 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
549 Don't include defs.h or server.h.
551 2014-09-12 Gary Benson <gbenson@redhat.com>
553 * nat/linux-btrace.c: Include common-defs.h.
554 Don't include defs.h, server.h or gdbthread.h.
555 * nat/linux-btrace.h (struct target_ops): New forward declaration.
557 2014-09-12 Gary Benson <gbenson@redhat.com>
559 * common/agent.c: Include common-defs.h.
560 Don't include defs.h or server.h.
561 * common/buffer.c: Likewise.
562 * common/common-debug.c: Likewise.
563 * common/common-utils.c: Likewise.
564 * common/errors.c: Likewise.
565 * common/filestuff.c: Likewise.
566 * common/format.c: Likewise.
567 * common/gdb_vecs.c: Likewise.
568 * common/print-utils.c: Likewise.
569 * common/ptid.c: Likewise.
570 * common/rsp-low.c: Likewise.
571 * common/signals.c: Likewise.
572 * common/vec.c: Likewise.
573 * common/xml-utils.c: Likewise.
574 * nat/linux-osdata.c: Likewise.
575 * nat/linux-procfs.c: Likewise.
576 * nat/linux-ptrace.c: Likewise.
577 * nat/mips-linux-watch.c: Likewise.
578 * target/waitstatus.c: Likewise.
580 2014-09-12 Tom Tromey <tromey@redhat.com>
581 Gary Benson <gbenson@redhat.com>
583 * common/common-regcache.h: New file.
584 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
585 * regcache.h: Include common-regcache.h.
586 (regcache_read_pc): Don't declare.
587 * regcache.c (get_thread_regcache_for_ptid): New function.
588 * nat/linux-btrace.c: Don't include regcache.h.
589 Include common-regcache.h.
590 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
592 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
594 * regcache.h (struct regset): Declare.
596 2014-09-11 Pedro Alves <palves@redhat.com>
599 * main.c: Include "infrun.h".
600 (catch_command_errors, catch_command_errors_const): Wait for the
601 foreground command to complete.
602 * top.c (maybe_wait_sync_command_done): New function, factored out
604 (maybe_wait_sync_command_done): ... here.
605 * top.h (maybe_wait_sync_command_done): New declaration.
607 2014-09-11 Tom Tromey <tromey@redhat.com>
608 Gary Benson <gbenson@redhat.com>
610 * common/symbol.h: New file.
611 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
612 * minsyms.c (find_minimal_symbol_address): New function.
613 * common/agent.c: Include common/symbol.h.
614 [!GDBSERVER]: Don't include objfiles.h.
615 (agent_look_up_symbols): Use find_minimal_symbol_address.
617 2014-09-11 Gary Benson <gbenson@redhat.com>
619 * target/target.h (target_stop_ptid, target_continue_ptid):
621 * target.c (target_stop_ptid, target_continue_ptid): New
623 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
624 (agent_run_command): Always use target_stop_ptid and
625 target_continue_ptid.
627 2014-09-11 Tom Tromey <tromey@redhat.com>
628 Gary Benson <gbenson@redhat.com>
630 * target/target.h: New file.
631 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
632 * target.h: Include target/target.h.
633 (target_read_memory, target_write_memory): Don't declare.
634 * target.c (target_read_uint32): New function.
635 * common/agent.c: Include target/target.h.
636 [!GDBSERVER]: Don't include target.h.
637 (helper_thread_id): Type changed to uint32_t.
638 (agent_get_helper_thread_id): Use target_read_uint32.
639 (agent_run_command): Always use target_read_memory and
641 (agent_capability): Type changed to uint32_t.
642 (agent_capability_check): Use target_read_uint32.
644 2014-09-11 Gary Benson <gbenson@redhat.com>
646 * common/common-debug.h (show_debug_regs): Declare.
647 * common/common-debug.c (show_debug_regs): Define.
648 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
649 all uses with show_debug_regs. Replace all uses that considered
650 debug_hw_points as a multi-value integer with straight boolean
652 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
653 with show_debug_regs.
654 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
655 all uses with show_debug_regs.
656 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
657 uses with show_debug_regs.
659 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
661 * findvar.c (address_from_register): Handle targets requiring
662 a special conversion routine even for plain pointer types.
664 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
666 * rs6000-nat.c (exec_one_dummy_insn): Remove.
667 (store_register): Do not call exec_one_dummy_insn.
669 2014-09-10 Joel Brobecker <brobecker@adacore.com>
671 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
672 dereference it first. Use value_enclosing_type instead of
674 (ada_array_length): Likewise.
676 2014-09-10 Joel Brobecker <brobecker@adacore.com>
678 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
679 Adjust function implementation and documentation accordingly.
680 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
681 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
682 Update call to ada_value_ptr_subscript.
684 2014-09-10 Joel Brobecker <brobecker@adacore.com>
686 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
687 instead of VAL's type.
689 2014-09-10 Joel Brobecker <brobecker@adacore.com>
691 * amd64-linux-nat.c: Add <sys/uio.h> #include.
693 2014-09-09 Doug Evans <xdje42@gmail.com>
696 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
697 last parameter to pkg-config, not first.
698 * configure.ac: Pass --with-guile provided pkg-config path to
699 GDB_GUILE_PROGRAM_NAMES.
700 * configure: Regenerate.
702 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
704 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
707 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
709 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
710 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
711 the list of sections determining GDB_OSABI_IRIX.
713 2014-09-09 James Hogan <james.hogan@imgtec.com>
715 * MAINTAINERS (Write After Approval): Add "James Hogan".
717 2014-09-09 James Hogan <james.hogan@imgtec.com>
719 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
721 2014-09-09 Joel Brobecker <brobecker@adacore.com>
723 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
725 2014-09-08 Doug Evans <xdje42@gmail.com>
728 * guile.c: #include <signal.h>.
729 (_initialize_guile): Block SIGCHLD while initializing Guile.
731 Replaces the following, which is reverted.
733 2014-07-26 Doug Evans <xdje42@gmail.com>
736 * configure.ac: Add check for header gc/gc.h.
737 Add check for function setenv.
738 * configure: Regenerate.
739 * config.in: Regenerate.
740 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
742 2014-09-08 Doug Evans <xdje42@gmail.com>
744 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
745 with named constant. Fix style of pointer comparison.
746 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
748 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
751 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
752 decide whether we display the command on "show user".
753 * cli/cli-script.c (show_user_1): Only verify cmdlines after
754 printing command name.
755 * cli/cli-decode.h (cli_user_command_p): Declare new function.
756 * cli/cli-decode.c (cli_user_command_p): Create helper function
757 to verify whether cmd_list_element is a user-defined command.
759 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
762 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
763 Fix goto out of TRY_CATCH.
765 2014-09-06 Doug Evans <xdje42@gmail.com>
766 Tom Tromey <tromey@redhat.com>
769 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
770 $_any_caller_matches.
771 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
772 * python/lib/gdb/function/caller_is.py: New file.
774 2014-09-06 Doug Evans <xdje42@gmail.com>
776 * infcmd.c (program_info): Fix typo.
778 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
781 * stap-probe.c (stap_parse_single_operand): Delete unused variable
782 'number'. New variable 'has_digit'. Rewrite code to deal with
783 subexpressions on SDT probes.
785 2014-09-04 Pedro Alves <palves@redhat.com>
787 * c-exp.y (parse_number): Skip handling base-switching prefixes if
788 the input is only one character long.
790 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
793 * f-valprint.c (f_val_print): Specify the correct print option to
794 use when printing integer values.
796 2014-09-04 Gary Benson <gbenson@redhat.com>
798 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
799 Remove code to cope with LWPs wrapped as PIDs.
800 Add assertions to ensure no wrapped LWPs are passed.
802 2014-09-04 Pedro Alves <palves@redhat.com>
804 * value.c (value_ranges_copy_adjusted): New function, factored out
806 (value_contents_copy_raw): ... here.
807 (unpack_value_bits_as_long_1): Rename back to ...
808 (unpack_bits_as_long): ... this. Remove 'original_value' and
809 'result' parameters. Change return type to LONGEST.
810 (unpack_value_bits_as_long): Delete.
811 (unpack_value_field_as_long_1): Delete.
812 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
813 (unpack_value_bitfield): New function.
814 (value_field_bitfield): Reimplement using unpack_value_bitfield.
815 (value_fetch_lazy): Use unpack_value_bitfield.
816 * value.h (unpack_value_bits_as_long): Delete declaration.
818 2014-09-03 Sasha Smundak <asmundak@google.com>
820 * python/py-frame.c (frapy_read_register): New function.
822 2014-09-03 James Hogan <james.hogan@imgtec.com>
824 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
825 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
827 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
830 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
832 (add_cmd): Set "completer_handle_brkchars" to NULL.
833 * cli/cli-decode.h (struct cmd_list_element)
834 <completer_handle_brkchars>: New field.
835 * command.h (completer_ftype_void): New typedef.
836 (set_cmd_completer_handle_brkchars): New prototype.
837 * completer.c (set_gdb_completion_word_break_characters): New
839 (complete_line_internal): Call "completer_handle_brkchars"
840 callback from command.
841 * completer.h: Include "command.h".
842 (set_gdb_completion_word_break_characters): New prototype.
843 * python/py-cmd.c (cmdpy_completer_helper): New function.
844 (cmdpy_completer_handle_brkchars): New function.
845 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
846 (cmdpy_init): Set completer_handle_brkchars to
847 cmdpy_completer_handle_brkchars.
849 2014-09-03 Gary Benson <gbenson@redhat.com>
851 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
852 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
853 Loop conditions changed to equivalent form.
854 (struct x86_debug_reg_state): Updated dr_ref_count comment.
855 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
856 ALL_DEBUG_ADDRESS_REGISTERS.
858 2014-09-03 Joel Brobecker <brobecker@adacore.com>
860 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
863 2014-09-02 Doug Evans <dje@google.com>
865 * typeprint.c (find_global_typedef): Fix comment.
867 2014-09-02 Gary Benson <gbenson@redhat.com>
869 * i386-nat.h: Renamed as...
870 * x86-nat.h: New file. All type, function and variable name
871 prefixes changed from "i386_" to "x86_". All references updated.
872 * i386-nat.c: Renamed as...
873 * x86-nat.c: New file. All type, function and variable name
874 prefixes changed from "i386_" to "x86_". All references updated.
875 * common/i386-xstate.h: Renamed as...
876 * common/x86-xstate.h: New file. All type, function and variable
877 name prefixes changed from "i386_" to "x86_". All references
879 * nat/i386-cpuid.h: Renamed as...
880 * nat/x86-cpuid.h: New file. All type, function and variable name
881 prefixes changed from "i386_" to "x86_". All references updated.
882 * nat/i386-gcc-cpuid.h: Renamed as...
883 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
884 name prefixes changed from "i386_" to "x86_". All references
886 * nat/i386-dregs.h: Renamed as...
887 * nat/x86-dregs.h: New file. All type, function and variable name
888 prefixes changed from "i386_" to "x86_". All references updated.
889 * nat/i386-dregs.c: Renamed as...
890 * nat/x86-dregs.c: New file. All type, function and variable name
891 prefixes changed from "i386_" to "x86_". All references updated.
893 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
895 * varobj.c (_initialize_varobj): Move to the end of file.
897 2014-08-29 Gary Benson <gbenson@redhat.com>
899 * common/common-exceptions.h: New file.
900 * common/common-exceptions.c: Likewise.
901 * Makefile.in (SFILES): Add common/common-exceptions.c.
902 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
903 (COMMON_OBS): Add common-exceptions.o.
904 (common-exceptions.o): New rule.
905 * exceptions.h (common-exceptions.h): Include.
906 (gdb_setjmp.h): Do not include.
907 (return_reason): Moved to common-exceptions.h.
908 (enum return_reason): Likewise.
909 (RETURN_MASK): Likewise.
910 (typedef return_mask): Likewise.
911 (enum errors): Likewise.
912 (struct gdb_exception): Likewise.
913 (exceptions_state_mc_init): Likewise.
914 (exceptions_state_mc_action_iter): Likewise.
915 (exceptions_state_mc_action_iter_1): Likewise.
916 (TRY_CATCH): Likewise.
917 (throw_exception): Likewise.
918 (throw_verror): Likewise.
919 (throw_vquit): Likewise.
920 (throw_error): Likewise.
921 (throw_quit): Likewise.
922 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
923 (enum catcher_action): Likewise.
924 (struct catcher): Likewise.
925 (current_catcher): Likewise.
926 (catcher_list_size): Likewise.
927 (exceptions_state_mc_init): Likewise.
928 (catcher_pop): Likewise.
929 (exceptions_state_mc): Likewise.
930 (exceptions_state_mc_action_iter): Likewise.
931 (exceptions_state_mc_action_iter_1): Likewise.
932 (throw_exception): Likewise.
933 (exception_messages): Likewise.
934 (exception_messages_size): Likewise.
935 (throw_it): Likewise.
936 (throw_verror): Likewise.
937 (throw_vquit): Likewise.
938 (throw_error): Likewise.
939 (throw_quit): Likewise.
940 (prepare_to_throw_exception): New function.
942 2014-08-29 Gary Benson <gbenson@redhat.com>
944 * common/gdb_setjmp.h: New file.
945 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
946 * configure.ac: Move sigsetjmp check...
947 * common/common.m4: ...here.
948 * configure: Regenerate.
949 * cp-support.c (SIGJMP_BUF): Delete.
950 (SIGSETJMP): Likewise.
951 (SIGLONGJMP): Likewise.
952 * exceptions.h (gdb_setjmp.h): Include.
953 (setjmp.h): Do not include.
954 (EXCEPTIONS_SIGJMP_BUF): Delete.
955 (EXCEPTIONS_SIGSETJMP): Likewise.
956 (EXCEPTIONS_SIGLONGJMP): Likewise.
957 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
959 * exceptions.c: Likewise.
961 2014-08-29 Gary Benson <gbenson@redhat.com>
963 * cleanups.h: Moved to...
964 * common/cleanups.h: New file.
965 * cleanups.c: Moved to...
966 * common/cleanups.c: New file. Include common-defs.h and
967 cleanups.h. Do not include defs.h.
968 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
969 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
970 (cleanups.o): New rule.
972 2014-08-29 Gary Benson <gbenson@redhat.com>
974 * common/errors.h (internal_warning): New declaration.
975 (internal_vwarning): Likewise.
976 * common/errors.c (internal_warning): New function.
977 * utils.h (internal_warning): Don't declare.
978 (internal_vwarning): Likewise.
979 * utils.c (internal_warning): Removed.
981 2014-08-29 Gary Benson <gbenson@redhat.com>
983 * main.c (captured_main): Use warning during startup.
984 Prefix startup warning messages with command name.
986 2014-08-29 Gary Benson <gbenson@redhat.com>
988 * main.c (captured_main): Handle usage errors with error.
990 2014-08-29 Gary Benson <gbenson@redhat.com>
992 * go32-nat.c (go32_create_inferior): Replace a fprintf/
993 exit pair with a call to error. Wrap the message with _().
995 2014-08-29 Gary Benson <gbenson@redhat.com>
997 * main.c (captured_main): Replace a fprintf/exit
998 pair with a call to error. Wrap the message with _().
1000 2014-08-29 Gary Benson <gbenson@redhat.com>
1002 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1003 pairs with calls to error. Wrap the message with _().
1005 2014-08-29 Gary Benson <gbenson@redhat.com>
1007 * utils.c (vwarning): Protect calls to target_terminal_ours
1010 2014-08-29 Gary Benson <gbenson@redhat.com>
1012 * exceptions.c (print_flush): Protect calls to
1013 target_terminal_ours and wrap_here.
1015 2014-08-29 Gary Benson <gbenson@redhat.com>
1017 * utils.h (filtered_printing_initialized): New declaration.
1018 * utils.c (abort_with_message): New function.
1019 (internal_vproblem): Use abort_with_message for first level
1020 recursive internal problems, and if gdb_stderr is not set up.
1021 Protect calls to target_terminal_ours, begin_line and query.
1023 2014-08-28 Doug Evans <dje@google.com>
1025 * symtab.c (in_prologue): Move definition to better spot.
1026 (skip_prologue_using_sal): Ditto.
1028 2014-08-28 Doug Evans <dje@google.com>
1030 * symtab.c (find_function_start_sal): Move definition to better spot.
1032 2014-08-28 Yao Qi <yao@codesourcery.com>
1034 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1035 found_stack_adjust in forward scan. Remove condition check
1036 on found_stack_adjust which is always true. Indent the code.
1038 2014-08-28 Yao Qi <yao@codesourcery.com>
1040 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1041 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1042 (dwarf_decode_lines): Remove argument
1043 want_line_info. Remove condition check on want_line_info.
1046 2014-08-27 Doug Evans <dje@google.com>
1048 * dwarf2read.c (dwarf_record_line): Fix typo.
1050 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1052 * target.h (struct target_ops::to_terminal_save_ours): Remove
1054 (target_terminal_save_ours): Remove macro.
1055 * target-delegates.c: Regenerate.
1056 * inf-child.c (inf_child_target): Don't set the nonexistent
1057 field to_terminal_save_ours.
1058 * inferior.h (child_terminal_save_ours): Remove declaration.
1059 * terminal.h (gdb_save_tty_state): New declaration.
1060 * inflow.c (child_terminal_save_ours): Rename to ...
1061 (gdb_save_tty_state): ... this.
1062 * tui/tui.c: Include terminal.h.
1063 (tui_enable): Use gdb_save_tty_state instead of
1064 target_terminal_save_ours.
1065 (tui_disable): Likewise.
1067 2014-08-25 Doug Evans <dje@google.com>
1069 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1070 Pass NULL instead of 0 for context pointer.
1072 2014-08-25 Yao Qi <yao@codesourcery.com>
1074 * dwarf2read.c: Fix grammatical error.
1076 2014-08-24 Yao Qi <yao@codesourcery.com>
1078 * dwarf2read.c (scan_partial_symbols): Update comments.
1079 Rename argument 'need_pc' with 'set_addrmap'.
1080 (add_partial_namespace): Rename argument 'need_pc' with
1082 (add_partial_module): Likewise.
1083 (add_partial_subprogram): Likewise. Update comments.
1084 (dwarf2_name): Fix typo.
1086 2014-08-22 Doug Evans <dje@google.com>
1089 * dwarf2read.c (dwarf_record_line_p): New function.
1090 (dwarf_decode_lines_1): Ignore subsequent line number entries
1091 for the same line if any entry had a non-zero discriminator.
1093 2014-08-22 Doug Evans <dje@google.com>
1095 * buildsym.h (record_line_ftype): New typedef.
1096 (record_line): Use it.
1097 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1098 (dwarf_decode_lines_1): Call them.
1100 2014-08-22 Yao Qi <yao@codesourcery.com>
1102 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1103 (ctf_end): Remove code.
1105 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1107 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1108 (linux_make_corefile_notes): call update_thread_list, protected against
1111 2014-08-21 Pedro Alves <palves@redhat.com>
1113 * infcmd.c (attach_command): Remove comment.
1115 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1117 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1118 unsigned LONGEST to ULONGEST.
1120 2014-08-20 Pedro Alves <palves@redhat.com>
1122 * Makefile.in (check-read1): New rule.
1124 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1126 * value.c (value_from_contents_and_address): Strip resolved_type's
1127 typedef layers before checking its TYPE_DATA_LOCATION.
1129 2014-08-20 Pedro Alves <palves@redhat.com>
1131 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1133 2014-08-20 Yao Qi <yao@codesourcery.com>
1135 * amd64-tdep.c (amd64_classify): Add a blank line after the
1136 example. Move "*/" to a new line.
1137 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1138 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1139 * dwarf2read.c (psymtab_include_file_name): Likewise.
1141 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1142 Pedro Alves <palves@redhat.com>
1146 * ada-lang.c (coerce_unspec_val_to_type): Use
1147 value_contents_copy_raw.
1148 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1149 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1150 * cp-valprint.c (cp_print_value_fields): Let the common printing
1151 code handle optimized out values.
1152 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1153 * d-valprint.c (dynamic_array_type): Use
1154 value_bits_any_optimized_out.
1155 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1156 check_any_valid fields.
1157 (check_pieced_value_bits): Delete and inline ...
1158 (check_pieced_synthetic_pointer): ... here.
1159 (check_pieced_value_validity): Delete.
1160 (check_pieced_value_invalid): Delete.
1161 (pieced_value_funcs): Remove check_validity and check_any_valid
1163 (read_pieced_value): Use mark_value_bits_optimized_out.
1164 (write_pieced_value): Switch to use
1165 mark_value_bytes_optimized_out.
1166 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1167 of assuming the whole value is optimized out.
1168 * findvar.c (read_frame_register_value): Remove special handling
1169 of optimized out registers.
1170 (value_from_register): Use mark_value_bytes_optimized_out.
1171 * frame-unwind.c (frame_unwind_got_optimized): Use
1172 mark_value_bytes_optimized_out.
1173 * jv-valprint.c (java_value_print): Adjust.
1174 (java_print_value_fields): Let the common printing code handle
1175 optimized out values.
1176 * mips-tdep.c (mips_print_register): Remove special handling of
1177 optimized out registers.
1178 * opencl-lang.c (lval_func_check_validity): Delete.
1179 (lval_func_check_any_valid): Delete.
1180 (opencl_value_funcs): Remove check_validity and check_any_valid
1182 * p-valprint.c (pascal_object_print_value_fields): Let the common
1183 printing code handle optimized out values.
1184 * stack.c (read_frame_arg): Remove special handling of optimized
1185 out values. Fetch both VAL and ENTRYVAL before comparing
1186 contents. Adjust to value_available_contents_eq rename.
1187 * valprint.c (valprint_check_validity)
1188 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1189 (val_print_array_elements): Adjust.
1190 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1191 (value_bits_any_optimized_out): New function.
1192 (value_entirely_covered_by_range_vector): New function, factored
1193 out from value_entirely_unavailable.
1194 (value_entirely_unavailable): Reimplement.
1195 (value_entirely_optimized_out): New function.
1196 (insert_into_bit_range_vector): New function, factored out from
1197 mark_value_bits_unavailable.
1198 (mark_value_bits_unavailable): Reimplement.
1199 (struct ranges_and_idx): New struct.
1200 (find_first_range_overlap_and_match): New function, factored out
1201 from value_available_contents_bits_eq.
1202 (value_available_contents_bits_eq): Rename to ...
1203 (value_contents_bits_eq): ... this. Check both unavailable
1204 contents and optimized out contents.
1205 (value_available_contents_eq): Rename to ...
1206 (value_contents_eq): ... this.
1207 (allocate_value_lazy): Remove reference to the old optimized_out
1209 (allocate_optimized_out_value): Use
1210 mark_value_bytes_optimized_out.
1211 (require_not_optimized_out): Adjust to check whether the
1212 optimized_out vec is empty.
1213 (ranges_copy_adjusted): New function, factored out from
1214 value_contents_copy_raw.
1215 (value_contents_copy_raw): Also copy the optimized out ranges.
1216 Assert the destination ranges aren't optimized out.
1217 (value_contents_copy): Update comment, remove call to
1218 require_not_optimized_out.
1219 (value_contents_equal): Adjust to check whether the optimized_out
1221 (set_value_optimized_out, value_optimized_out_const): Delete.
1222 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1224 (value_entirely_optimized_out, value_bits_valid): Delete.
1225 (value_copy): Take a VEC copy of the 'optimized_out' field.
1226 (value_primitive_field): Remove special handling of optimized out.
1227 (value_fetch_lazy): Assert that lazy values have no unavailable
1228 regions. Use value_bits_any_optimized_out. Remove some special
1229 handling for optimized out values.
1230 * value.h: Add intro comment about <optimized out> and
1232 (struct lval_funcs): Remove check_validity and check_any_valid
1234 (set_value_optimized_out, value_optimized_out_const): Remove.
1235 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1237 (value_bits_any_optimized_out): New declaration.
1238 (value_bits_valid): Delete declaration.
1239 (value_available_contents_eq): Rename to ...
1240 (value_contents_eq): ... this, and extend comments.
1242 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1244 Fix -fsanitize=address on unreadable inferior strings.
1245 * valprint.c (val_print_string): Fix access before BUFFER.
1247 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1249 * target.c (target_struct_size): Remove.
1250 (target_struct_allocsize): Remove.
1251 (DEFAULT_ALLOCSIZE): Remove.
1252 (target_ops_p): New typedef.
1253 (DEF_VEC_P (target_ops_p)): New vector type.
1254 (target_structs): Change type to VEC (target_ops_p).
1255 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1256 (find_default_run_target): Rewrite for loop following changes to
1259 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1261 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1262 Adjust code accordingly. Adjust function description comment.
1264 2014-08-19 Yao Qi <yao@codesourcery.com>
1266 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1269 2014-08-19 Alan Modra <amodra@gmail.com>
1271 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1272 * config.in: Regenerate.
1273 * configure: Regenerate.
1275 2014-08-19 Tom Tromey <tromey@redhat.com>
1276 Gary Benson <gbenson@redhat.com>
1278 * common/common-debug.h: New file.
1279 * common/common-debug.c: Likewise.
1280 * debug.c: Likewise.
1281 * Makefile.in (SFILES): Add common/common-debug.c.
1282 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1283 (COMMON_OBS): Add common-debug.o and debug.o.
1284 (common-debug.o): New rule.
1285 * common/common-defs.h: Include common-debug.h.
1286 * common/agent.c (debug_agent_printf): New function.
1287 (DEBUG_AGENT): Redefine.
1288 * nat/i386-dregs.c (debug_printf): Undefine.
1290 2014-08-19 Gary Benson <gbenson@redhat.com>
1292 * common/common-defs.h: Include print-utils.h.
1293 * utils.h: Do not include print-utils.h.
1295 2014-08-19 Tom Tromey <tromey@redhat.com>
1296 Gary Benson <gbenson@redhat.com>
1298 * common/common-types.h: New file.
1299 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1300 * common/common-defs.h: Include common-types.h.
1301 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1304 2014-08-19 Tom Tromey <tromey@redhat.com>
1305 Gary Benson <gbenson@redhat.com>
1307 * common/errors.h: New file.
1308 * common/errors.c: Likewise.
1309 * Makefile.in (SFILES): Add common/errors.c.
1310 (HFILES_NO_SRCDIR): Add common/errors.h.
1311 (COMMON_OBS): Add errors.o.
1312 (errors.o): New rule.
1313 * common/common-defs.h: Include errors.h.
1314 * utils.h (perror_with_name, error, verror, warning, vwarning):
1316 * common/common-utils.h: (malloc_failure, internal_error):
1319 2014-08-19 Gary Benson <gbenson@redhat.com>
1321 * utils.c (internal_vproblem): Always print the message.
1323 2014-08-18 Doug Evans <dje@google.com>
1325 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1327 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1329 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1330 Return 0 if TYPE is dynamic.
1331 (print_range): Add handling of dynamic ranges.
1333 2014-08-18 Keven Boell <keven.boell@intel.com>
1334 Joel Brobecker <brobecker@adacore.com>
1336 * gdbtypes.h (struct main_type): Add field "data_location".
1337 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1338 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1339 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1340 a dynamic data location.
1341 (resolve_dynamic_type): Add DW_AT_data_location handling.
1342 (copy_recursive, copy_type): Copy the data_location information
1344 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1345 * value.c (value_from_contents_and_address): Add
1346 DW_AT_data_location handling.
1348 2014-08-18 Keven Boell <keven.boell@intel.com>
1349 Joel Brobecker <brobecker@adacore.com>
1351 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1352 field "get_object_address".
1353 * dwarf2expr.c (execute_stack_op): Add handling for
1354 DW_OP_push_object_address.
1355 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1356 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1357 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1358 (dwarf_expr_get_obj_addr): New function.
1359 (dwarf_expr_ctx_funcs): Add get_object_address field.
1360 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1361 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1362 (dwarf2_evaluate_property): Add parameter "address". Use it.
1363 (needs_get_obj_addr): New function.
1364 (needs_frame_ctx_funcs): Add get_object_address field.
1365 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1366 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1367 (resolve_dynamic_array): Likewise.
1369 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1371 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1372 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1373 fixed value for records and unions for which some GNAT encodings
1376 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1378 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1379 rewrite to avoid "else if" and "else" constructs. Should be
1380 a no-op in practice.
1382 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1384 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1387 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1390 * eval.c: Update all calls to find_overload_match.
1391 * valarith.c: Likewise.
1392 (value_user_defined_cpp_op, value_user_defined_op): New
1393 argument NOSIDE. Update all callers.
1394 * valops.c (find_overload_match): New argument NOSIDE.
1395 * value.h (find_overload_match): Update signature.
1397 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1399 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1400 'items' methods instead of 'iteritems' method on dictionaries.
1402 2014-08-15 Doug Evans <dje@google.com>
1404 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1407 2014-08-15 Doug Evans <dje@google.com>
1409 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1411 2014-08-15 Doug Evans <dje@google.com>
1413 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1415 2014-08-15 Doug Evans <dje@google.com>
1417 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1420 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1422 * dcache.h: Include target.h, to avoid compile time warnings.
1424 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1426 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1427 frame_info" partial declaration.
1428 * gdbarch.h: Regenerate.
1430 2014-08-15 Yao Qi <yao@codesourcery.com>
1432 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1433 Add parameter 'decode_for_pst_p'. Callers update.
1435 2014-08-13 Yao Qi <yao@codesourcery.com>
1438 * configure.ac: Use local variable 'pos'.
1439 * configure: Regenerated.
1441 2014-08-11 Doug Evans <dje@google.com>
1443 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1444 message, it is redundant with "Reading symbols from ..." message.
1446 2014-08-10 Doug Evans <xdje42@gmail.com>
1448 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1450 2014-08-09 Yao Qi <yao@codesourcery.com>
1453 * remote.c (remote_xfer_partial): Remove dead code.
1455 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1457 * ia64-linux-tdep.c: Include "regset.h".
1458 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1459 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1460 (ia64_linux_supply_fpregset): New function.
1461 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1462 (ia64_linux_regset_from_core_section): New function.
1463 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1466 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1468 * m68klinux-tdep.c: Include "regset.h".
1469 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1470 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1471 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1472 (m68k_linux_regset_from_core_section): New function.
1473 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1476 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1478 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1479 function. Move logic to...
1480 (tilegx_linux_regmap): ... this new register map.
1481 (tilegx_linux_regset): Refer to register map, replace supply
1482 method by regcache_supply_regset, and add collect method.
1483 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1484 TILEGX_FIRST_EASY_REGNUM.
1486 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1488 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1489 that calls regcache_supply_regset and handles the EPC register
1490 separately. Move main logic to...
1491 (score7_linux_gregmap): ... this new register map.
1492 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1493 (score7_linux_gregset): Refer to register map. Add collect method.
1494 (score7_linux_regset_from_core_section): Replace
1495 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1496 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1497 (struct regset): Delete unused forward declaraction.
1498 (struct pt_regs): Delete structure definition.
1499 (elf_gregset_t): Delete typedef.
1501 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1503 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1504 (nios2_core_regset): Add collect method.
1506 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1508 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1509 platform-independent and don't write to read-only input buffer.
1510 (m32r_linux_collect_gregset): New function.
1511 (m32r_linux_gregset): Add collect method.
1513 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1515 * hppa-linux-tdep.c (greg_map): Rename to...
1516 (hppa_linux_gregmap): ... this. Also convert to
1517 regcache_map_entry format.
1518 (hppa_linux_supply_regset): Delete function.
1519 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1520 (hppa_linux_fpregmap): ... this new register map.
1521 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1522 register map, replace supply method by regcache_supply_regset, and
1523 add collect method regcache_collect_regset.
1525 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1527 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1528 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1529 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1530 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1531 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1532 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1533 (frv_linux_supply_gregset): Replace main logic by call to
1534 regcache_supply_regset, but keep clearing gr32-gr63.
1535 (frv_linux_supply_fpregset): Delete function.
1536 (frv_linux_gregset): Refer to appropriate register map and add
1537 regcache_collect_regset as the collect method.
1538 (frv_linux_fpregset): Likewise. Also exchange the supply method
1539 by regcache_supply_regset.
1541 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1543 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1544 by call to alpha_supply_int_regs.
1545 (alpha_linux_collect_gregset): New function.
1546 (alpha_linux_supply_fpregset): Replace logic by call to
1547 alpha_supply_fp_regs.
1548 (alpha_linux_collect_fpregset): New function.
1549 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1551 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1553 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1554 by call to regcache_collect_regset.
1555 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1556 instead of aarch64_linux_supply_gregset/_fpregset.
1557 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1558 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1559 header file instead.
1560 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1561 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1562 functions. Move logic to ...
1563 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1565 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1566 refer to new register maps, replace *_regset_from_core by
1567 regcache_supply_regset, and also use regcache_collect_regset.
1568 * aarch64-linux-tdep.h: Include "regset.h".
1569 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1571 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1572 macros, moved from C source file.
1573 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1574 variable declarations.
1576 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1578 * s390-linux-nat.c: Include "regset.h".
1579 (regmap_gregset): Delete macro.
1580 (s390_64_regmap_gregset): New register map for
1581 regcache_supply/_collect_regset.
1582 (s390_64_gregset): New regset.
1583 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1584 (regmap_fpregset): Delete macro.
1585 (s390_native_supply, s390_native_collect): Delete functions.
1586 (supply_gregset, fill_gregset): Replace s390-specific regmap
1587 handling by a call to regcache_supply/_collect_regset.
1588 (supply_fpregset, fill_fpregset): Call regcache_supply/
1589 _collect_regset instead of s390_native_supply/_collect.
1590 (fetch_regset, store_regset): Likewise. Also change the last
1591 parameter to a regset instead of a regmap.
1592 (s390_linux_fetch_inferior_registers)
1593 (390_linux_store_inferior_registers): Adjust last parameter in
1594 calls to fetch_regset and store_regset.
1595 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1596 (s390_gregmap): ... this. Also make static const and convert to
1597 regcache_map_entry format.
1598 (s390x_regmap_gregset): Delete.
1599 (s390_regmap_fpregset): Rename to...
1600 (s390_fpregmap): ... this. Make static const and convert to
1601 regcache_map_entry format.
1602 (s390_regmap_upper, s390_regmap_last_break)
1603 (s390x_regmap_last_break, s390_regmap_system_call)
1604 (s390_regmap_tdb): Likewise.
1605 (s390_supply_regset, s390_collect_regset): Remove functions.
1606 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1608 (s390_gregset, s390_fpregset, s390_upper_regset)
1609 (s390_last_break_regset, s390x_last_break_regset)
1610 (s390_system_call_regset, s390_tdb_regset): Make global and
1611 replace s390_supply/_collect_regset by regcache_supply/
1613 (s390x_gregset): Delete.
1614 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1615 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1616 (s390_regmap_fpregset, s390_regmap_last_break)
1617 (s390x_regmap_last_break, s390_regmap_system_call)
1618 (s390_regmap_tdb): Delete global variable declarations.
1619 (s390_gregset, s390_fpregset, s390_last_break_regset)
1620 (s390x_last_break_regset, s390_system_call_regset)
1621 (s390_tdb_regset): New global variable declarations.
1623 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1625 * regcache.c: Include "regset.h".
1626 (regcache_transfer_regset): New local function.
1627 (regcache_supply_regset, regcache_collect_regset): New functions.
1628 * regcache.h (struct regcache_map_entry): New structure.
1629 (REGCACHE_MAP_SKIP): New enum value.
1630 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1632 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1634 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1635 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1636 (ppc_linux_collect_gregset ): Likewise.
1637 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1638 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1639 (ppc_collect_vrregset): Likewise.
1640 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1643 2014-08-07 Yao Qi <yao@codesourcery.com>
1645 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1646 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1647 * remote.c (remote_read_bytes): Likewise.
1649 2014-08-07 Yao Qi <yao@codesourcery.com>
1651 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1653 2014-08-07 Yao Qi <yao@codesourcery.com>
1656 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1657 TARGET_XFER_OK instead of 0.
1659 2014-08-07 Gary Benson <gbenson@redhat.com>
1661 * common/common-defs.h: Include errno.h.
1662 * defs.h: Do not include errno.h.
1663 * ada-typeprint.c: Likewise.
1664 * c-typeprint.c: Likewise.
1665 * core-regset.c: Likewise.
1666 * corefile.c: Likewise.
1667 * corelow.c: Likewise.
1668 * event-loop.c: Likewise.
1669 * f-typeprint.c: Likewise.
1670 * gnu-nat.c: Likewise.
1671 * go32-nat.c: Likewise.
1672 * i386gnu-nat.c: Likewise.
1673 * m2-typeprint.c: Likewise.
1674 * nat/linux-btrace.c: Likewise.
1675 * p-typeprint.c: Likewise.
1676 * procfs.c: Likewise.
1677 * remote-sim.c: Likewise.
1678 * rs6000-nat.c: Likewise.
1679 * target.c: Likewise.
1680 * typeprint.c: Likewise.
1681 * ui-file.c: Likewise.
1682 * valops.c: Likewise.
1683 * valprint.c: Likewise.
1685 2014-08-07 Gary Benson <gbenson@redhat.com>
1687 * common/common-defs.h: Include string.h.
1688 * aarch64-tdep.c: Do not include string.h.
1689 * ada-exp.y: Likewise.
1690 * ada-lang.c: Likewise.
1691 * ada-lex.l: Likewise.
1692 * ada-typeprint.c: Likewise.
1693 * ada-valprint.c: Likewise.
1694 * aix-thread.c: Likewise.
1695 * alpha-linux-tdep.c: Likewise.
1696 * alpha-mdebug-tdep.c: Likewise.
1697 * alpha-nat.c: Likewise.
1698 * alpha-osf1-tdep.c: Likewise.
1699 * alpha-tdep.c: Likewise.
1700 * alphanbsd-tdep.c: Likewise.
1701 * amd64-dicos-tdep.c: Likewise.
1702 * amd64-linux-tdep.c: Likewise.
1703 * amd64-nat.c: Likewise.
1704 * amd64-sol2-tdep.c: Likewise.
1705 * amd64fbsd-tdep.c: Likewise.
1706 * amd64obsd-tdep.c: Likewise.
1707 * arch-utils.c: Likewise.
1708 * arm-linux-nat.c: Likewise.
1709 * arm-linux-tdep.c: Likewise.
1710 * arm-tdep.c: Likewise.
1711 * arm-wince-tdep.c: Likewise.
1712 * armbsd-tdep.c: Likewise.
1713 * armnbsd-nat.c: Likewise.
1714 * armnbsd-tdep.c: Likewise.
1715 * armobsd-tdep.c: Likewise.
1716 * avr-tdep.c: Likewise.
1717 * ax-gdb.c: Likewise.
1718 * ax-general.c: Likewise.
1719 * bcache.c: Likewise.
1720 * bfin-tdep.c: Likewise.
1721 * breakpoint.c: Likewise.
1722 * build-id.c: Likewise.
1723 * buildsym.c: Likewise.
1724 * c-exp.y: Likewise.
1725 * c-lang.c: Likewise.
1726 * c-typeprint.c: Likewise.
1727 * c-valprint.c: Likewise.
1728 * charset.c: Likewise.
1729 * cli-out.c: Likewise.
1730 * cli/cli-cmds.c: Likewise.
1731 * cli/cli-decode.c: Likewise.
1732 * cli/cli-dump.c: Likewise.
1733 * cli/cli-interp.c: Likewise.
1734 * cli/cli-logging.c: Likewise.
1735 * cli/cli-script.c: Likewise.
1736 * cli/cli-setshow.c: Likewise.
1737 * cli/cli-utils.c: Likewise.
1738 * coffread.c: Likewise.
1739 * common/agent.c: Likewise.
1740 * common/buffer.c: Likewise.
1741 * common/buffer.h: Likewise.
1742 * common/common-utils.c: Likewise.
1743 * common/filestuff.c: Likewise.
1744 * common/filestuff.c: Likewise.
1745 * common/format.c: Likewise.
1746 * common/print-utils.c: Likewise.
1747 * common/rsp-low.c: Likewise.
1748 * common/signals.c: Likewise.
1749 * common/vec.h: Likewise.
1750 * common/xml-utils.c: Likewise.
1751 * core-regset.c: Likewise.
1752 * corefile.c: Likewise.
1753 * corelow.c: Likewise.
1754 * cp-abi.c: Likewise.
1755 * cp-name-parser.y: Likewise.
1756 * cp-support.c: Likewise.
1757 * cp-valprint.c: Likewise.
1758 * cris-tdep.c: Likewise.
1759 * d-exp.y: Likewise.
1760 * darwin-nat.c: Likewise.
1761 * dbxread.c: Likewise.
1762 * dcache.c: Likewise.
1763 * demangle.c: Likewise.
1764 * dicos-tdep.c: Likewise.
1765 * disasm.c: Likewise.
1766 * doublest.c: Likewise.
1767 * dsrec.c: Likewise.
1768 * dummy-frame.c: Likewise.
1769 * dwarf2-frame.c: Likewise.
1770 * dwarf2loc.c: Likewise.
1771 * dwarf2read.c: Likewise.
1772 * elfread.c: Likewise.
1773 * environ.c: Likewise.
1775 * event-loop.c: Likewise.
1776 * exceptions.c: Likewise.
1778 * expprint.c: Likewise.
1779 * f-exp.y: Likewise.
1780 * f-lang.c: Likewise.
1781 * f-typeprint.c: Likewise.
1782 * f-valprint.c: Likewise.
1783 * fbsd-nat.c: Likewise.
1784 * findcmd.c: Likewise.
1785 * findvar.c: Likewise.
1786 * fork-child.c: Likewise.
1787 * frame.c: Likewise.
1788 * frv-linux-tdep.c: Likewise.
1789 * frv-tdep.c: Likewise.
1791 * gdb_bfd.c: Likewise.
1792 * gdbarch.c: Likewise.
1793 * gdbarch.sh: Likewise.
1794 * gdbtypes.c: Likewise.
1795 * gnu-nat.c: Likewise.
1796 * gnu-v2-abi.c: Likewise.
1797 * gnu-v3-abi.c: Likewise.
1798 * go-exp.y: Likewise.
1799 * go-lang.c: Likewise.
1800 * go32-nat.c: Likewise.
1801 * guile/guile.c: Likewise.
1802 * guile/scm-auto-load.c: Likewise.
1803 * hppa-hpux-tdep.c: Likewise.
1804 * hppa-linux-nat.c: Likewise.
1805 * hppanbsd-tdep.c: Likewise.
1806 * hppaobsd-tdep.c: Likewise.
1807 * i386-cygwin-tdep.c: Likewise.
1808 * i386-dicos-tdep.c: Likewise.
1809 * i386-linux-tdep.c: Likewise.
1810 * i386-nto-tdep.c: Likewise.
1811 * i386-sol2-tdep.c: Likewise.
1812 * i386-tdep.c: Likewise.
1813 * i386bsd-tdep.c: Likewise.
1814 * i386gnu-nat.c: Likewise.
1815 * i386nbsd-tdep.c: Likewise.
1816 * i386obsd-tdep.c: Likewise.
1817 * i387-tdep.c: Likewise.
1818 * ia64-libunwind-tdep.c: Likewise.
1819 * ia64-linux-nat.c: Likewise.
1820 * inf-child.c: Likewise.
1821 * inf-ptrace.c: Likewise.
1822 * inf-ttrace.c: Likewise.
1823 * infcall.c: Likewise.
1824 * infcmd.c: Likewise.
1825 * inflow.c: Likewise.
1826 * infrun.c: Likewise.
1827 * interps.c: Likewise.
1828 * iq2000-tdep.c: Likewise.
1829 * irix5-nat.c: Likewise.
1830 * jv-exp.y: Likewise.
1831 * jv-lang.c: Likewise.
1832 * jv-typeprint.c: Likewise.
1833 * jv-valprint.c: Likewise.
1834 * language.c: Likewise.
1835 * linux-fork.c: Likewise.
1836 * linux-nat.c: Likewise.
1837 * lm32-tdep.c: Likewise.
1838 * m2-exp.y: Likewise.
1839 * m2-typeprint.c: Likewise.
1840 * m32c-tdep.c: Likewise.
1841 * m32r-linux-nat.c: Likewise.
1842 * m32r-linux-tdep.c: Likewise.
1843 * m32r-rom.c: Likewise.
1844 * m32r-tdep.c: Likewise.
1845 * m68hc11-tdep.c: Likewise.
1846 * m68k-tdep.c: Likewise.
1847 * m68kbsd-tdep.c: Likewise.
1848 * m68klinux-nat.c: Likewise.
1849 * m68klinux-tdep.c: Likewise.
1850 * m88k-tdep.c: Likewise.
1851 * machoread.c: Likewise.
1852 * macrocmd.c: Likewise.
1854 * mdebugread.c: Likewise.
1855 * mem-break.c: Likewise.
1856 * memattr.c: Likewise.
1857 * memory-map.c: Likewise.
1858 * mep-tdep.c: Likewise.
1859 * mi/mi-cmd-break.c: Likewise.
1860 * mi/mi-cmd-disas.c: Likewise.
1861 * mi/mi-cmd-env.c: Likewise.
1862 * mi/mi-cmd-stack.c: Likewise.
1863 * mi/mi-cmd-var.c: Likewise.
1864 * mi/mi-cmds.c: Likewise.
1865 * mi/mi-console.c: Likewise.
1866 * mi/mi-getopt.c: Likewise.
1867 * mi/mi-interp.c: Likewise.
1868 * mi/mi-main.c: Likewise.
1869 * mi/mi-parse.c: Likewise.
1870 * microblaze-rom.c: Likewise.
1871 * microblaze-tdep.c: Likewise.
1872 * mingw-hdep.c: Likewise.
1873 * minidebug.c: Likewise.
1874 * minsyms.c: Likewise.
1875 * mips-irix-tdep.c: Likewise.
1876 * mips-linux-tdep.c: Likewise.
1877 * mips-tdep.c: Likewise.
1878 * mips64obsd-tdep.c: Likewise.
1879 * mipsnbsd-tdep.c: Likewise.
1880 * mipsread.c: Likewise.
1881 * mn10300-linux-tdep.c: Likewise.
1882 * mn10300-tdep.c: Likewise.
1883 * monitor.c: Likewise.
1884 * moxie-tdep.c: Likewise.
1885 * mt-tdep.c: Likewise.
1886 * nat/linux-btrace.c: Likewise.
1887 * nat/linux-osdata.c: Likewise.
1888 * nat/linux-procfs.c: Likewise.
1889 * nat/linux-ptrace.c: Likewise.
1890 * nat/linux-waitpid.c: Likewise.
1891 * nbsd-tdep.c: Likewise.
1892 * nios2-linux-tdep.c: Likewise.
1893 * nto-procfs.c: Likewise.
1894 * nto-tdep.c: Likewise.
1895 * objc-lang.c: Likewise.
1896 * objfiles.c: Likewise.
1897 * opencl-lang.c: Likewise.
1898 * osabi.c: Likewise.
1899 * osdata.c: Likewise.
1900 * p-exp.y: Likewise.
1901 * p-lang.c: Likewise.
1902 * p-typeprint.c: Likewise.
1903 * parse.c: Likewise.
1904 * posix-hdep.c: Likewise.
1905 * ppc-linux-nat.c: Likewise.
1906 * ppc-sysv-tdep.c: Likewise.
1907 * ppcfbsd-tdep.c: Likewise.
1908 * ppcnbsd-tdep.c: Likewise.
1909 * ppcobsd-tdep.c: Likewise.
1910 * printcmd.c: Likewise.
1911 * procfs.c: Likewise.
1912 * prologue-value.c: Likewise.
1913 * python/py-auto-load.c: Likewise.
1914 * python/py-gdb-readline.c: Likewise.
1915 * ravenscar-thread.c: Likewise.
1916 * regcache.c: Likewise.
1917 * registry.c: Likewise.
1918 * remote-fileio.c: Likewise.
1919 * remote-m32r-sdi.c: Likewise.
1920 * remote-mips.c: Likewise.
1921 * remote-notif.c: Likewise.
1922 * remote-sim.c: Likewise.
1923 * remote.c: Likewise.
1924 * reverse.c: Likewise.
1925 * rs6000-aix-tdep.c: Likewise.
1926 * ser-base.c: Likewise.
1927 * ser-go32.c: Likewise.
1928 * ser-mingw.c: Likewise.
1929 * ser-pipe.c: Likewise.
1930 * ser-tcp.c: Likewise.
1931 * ser-unix.c: Likewise.
1932 * serial.c: Likewise.
1933 * sh-tdep.c: Likewise.
1934 * sh64-tdep.c: Likewise.
1935 * shnbsd-tdep.c: Likewise.
1937 * sol-thread.c: Likewise.
1938 * solib-dsbt.c: Likewise.
1939 * solib-frv.c: Likewise.
1940 * solib-osf.c: Likewise.
1941 * solib-som.c: Likewise.
1942 * solib-spu.c: Likewise.
1943 * solib-target.c: Likewise.
1944 * solib.c: Likewise.
1945 * somread.c: Likewise.
1946 * source.c: Likewise.
1947 * sparc-nat.c: Likewise.
1948 * sparc-sol2-tdep.c: Likewise.
1949 * sparc-tdep.c: Likewise.
1950 * sparc64-tdep.c: Likewise.
1951 * sparc64fbsd-tdep.c: Likewise.
1952 * sparc64nbsd-tdep.c: Likewise.
1953 * sparcnbsd-tdep.c: Likewise.
1954 * spu-linux-nat.c: Likewise.
1955 * spu-multiarch.c: Likewise.
1956 * spu-tdep.c: Likewise.
1957 * stabsread.c: Likewise.
1958 * stack.c: Likewise.
1959 * std-regs.c: Likewise.
1960 * symfile.c: Likewise.
1961 * symmisc.c: Likewise.
1962 * symtab.c: Likewise.
1963 * target.c: Likewise.
1964 * thread.c: Likewise.
1965 * tilegx-linux-nat.c: Likewise.
1966 * tilegx-tdep.c: Likewise.
1968 * tracepoint.c: Likewise.
1969 * tui/tui-command.c: Likewise.
1970 * tui/tui-data.c: Likewise.
1971 * tui/tui-disasm.c: Likewise.
1972 * tui/tui-file.c: Likewise.
1973 * tui/tui-layout.c: Likewise.
1974 * tui/tui-out.c: Likewise.
1975 * tui/tui-regs.c: Likewise.
1976 * tui/tui-source.c: Likewise.
1977 * tui/tui-stack.c: Likewise.
1978 * tui/tui-win.c: Likewise.
1979 * tui/tui-windata.c: Likewise.
1980 * tui/tui-winsource.c: Likewise.
1981 * typeprint.c: Likewise.
1982 * ui-file.c: Likewise.
1983 * ui-out.c: Likewise.
1984 * user-regs.c: Likewise.
1985 * utils.c: Likewise.
1986 * v850-tdep.c: Likewise.
1987 * valarith.c: Likewise.
1988 * valops.c: Likewise.
1989 * valprint.c: Likewise.
1990 * value.c: Likewise.
1991 * varobj.c: Likewise.
1992 * vax-tdep.c: Likewise.
1993 * vaxnbsd-tdep.c: Likewise.
1994 * vaxobsd-tdep.c: Likewise.
1995 * windows-nat.c: Likewise.
1996 * xcoffread.c: Likewise.
1997 * xml-support.c: Likewise.
1998 * xstormy16-tdep.c: Likewise.
1999 * xtensa-linux-nat.c: Likewise.
2001 2014-08-07 Gary Benson <gbenson@redhat.com>
2003 * common/common-defs.h: Include gdb_assert.h.
2004 * aarch64-tdep.c: Do not include gdb_assert.h.
2005 * addrmap.c: Likewise.
2006 * aix-thread.c: Likewise.
2007 * alpha-linux-tdep.c: Likewise.
2008 * alpha-mdebug-tdep.c: Likewise.
2009 * alphanbsd-tdep.c: Likewise.
2010 * amd64-nat.c: Likewise.
2011 * amd64-tdep.c: Likewise.
2012 * amd64bsd-nat.c: Likewise.
2013 * amd64fbsd-nat.c: Likewise.
2014 * amd64fbsd-tdep.c: Likewise.
2015 * amd64nbsd-nat.c: Likewise.
2016 * amd64nbsd-tdep.c: Likewise.
2017 * amd64obsd-nat.c: Likewise.
2018 * amd64obsd-tdep.c: Likewise.
2019 * arch-utils.c: Likewise.
2020 * arm-tdep.c: Likewise.
2021 * armbsd-tdep.c: Likewise.
2023 * bcache.c: Likewise.
2024 * bfin-tdep.c: Likewise.
2025 * blockframe.c: Likewise.
2026 * breakpoint.c: Likewise.
2027 * bsd-kvm.c: Likewise.
2028 * bsd-uthread.c: Likewise.
2029 * buildsym.c: Likewise.
2030 * c-exp.y: Likewise.
2031 * c-lang.c: Likewise.
2032 * charset.c: Likewise.
2033 * cleanups.c: Likewise.
2034 * cli-out.c: Likewise.
2035 * cli/cli-decode.c: Likewise.
2036 * cli/cli-dump.c: Likewise.
2037 * cli/cli-logging.c: Likewise.
2038 * cli/cli-script.c: Likewise.
2039 * cli/cli-utils.c: Likewise.
2040 * coffread.c: Likewise.
2041 * common/common-utils.c: Likewise.
2042 * common/queue.h: Likewise.
2043 * common/signals.c: Likewise.
2044 * common/vec.h: Likewise.
2045 * complaints.c: Likewise.
2046 * completer.c: Likewise.
2047 * corelow.c: Likewise.
2048 * cp-abi.c: Likewise.
2049 * cp-name-parser.y: Likewise.
2050 * cp-namespace.c: Likewise.
2051 * cp-support.c: Likewise.
2052 * cris-tdep.c: Likewise.
2053 * dbxread.c: Likewise.
2054 * dictionary.c: Likewise.
2055 * doublest.c: Likewise.
2056 * dsrec.c: Likewise.
2057 * dummy-frame.c: Likewise.
2058 * dwarf2-frame-tailcall.c: Likewise.
2059 * dwarf2-frame.c: Likewise.
2060 * dwarf2expr.c: Likewise.
2061 * dwarf2loc.c: Likewise.
2062 * dwarf2read.c: Likewise.
2064 * event-loop.c: Likewise.
2065 * exceptions.c: Likewise.
2066 * expprint.c: Likewise.
2067 * f-valprint.c: Likewise.
2068 * fbsd-nat.c: Likewise.
2069 * findvar.c: Likewise.
2070 * frame-unwind.c: Likewise.
2071 * frame.c: Likewise.
2072 * frv-tdep.c: Likewise.
2073 * gcore.c: Likewise.
2074 * gdb-dlfcn.c: Likewise.
2075 * gdb_bfd.c: Likewise.
2076 * gdbarch.c: Likewise.
2077 * gdbarch.sh: Likewise.
2078 * gdbtypes.c: Likewise.
2079 * gnu-nat.c: Likewise.
2080 * gnu-v3-abi.c: Likewise.
2081 * go-lang.c: Likewise.
2082 * guile/scm-exception.c: Likewise.
2083 * guile/scm-gsmob.c: Likewise.
2084 * guile/scm-lazy-string.c: Likewise.
2085 * guile/scm-math.c: Likewise.
2086 * guile/scm-pretty-print.c: Likewise.
2087 * guile/scm-safe-call.c: Likewise.
2088 * guile/scm-utils.c: Likewise.
2089 * guile/scm-value.c: Likewise.
2090 * h8300-tdep.c: Likewise.
2091 * hppa-hpux-nat.c: Likewise.
2092 * hppa-tdep.c: Likewise.
2093 * hppanbsd-tdep.c: Likewise.
2094 * hppaobsd-tdep.c: Likewise.
2095 * i386-darwin-nat.c: Likewise.
2096 * i386-darwin-tdep.c: Likewise.
2097 * i386-nto-tdep.c: Likewise.
2098 * i386-tdep.c: Likewise.
2099 * i386bsd-nat.c: Likewise.
2100 * i386fbsd-tdep.c: Likewise.
2101 * i386gnu-nat.c: Likewise.
2102 * i386nbsd-tdep.c: Likewise.
2103 * i386obsd-tdep.c: Likewise.
2104 * i387-tdep.c: Likewise.
2105 * ia64-libunwind-tdep.c: Likewise.
2106 * ia64-tdep.c: Likewise.
2107 * inf-ptrace.c: Likewise.
2108 * inf-ttrace.c: Likewise.
2109 * infcall.c: Likewise.
2110 * infcmd.c: Likewise.
2111 * infrun.c: Likewise.
2112 * inline-frame.c: Likewise.
2113 * interps.c: Likewise.
2114 * jv-lang.c: Likewise.
2115 * jv-typeprint.c: Likewise.
2116 * linux-fork.c: Likewise.
2117 * linux-nat.c: Likewise.
2118 * linux-thread-db.c: Likewise.
2119 * m32c-tdep.c: Likewise.
2120 * m32r-linux-nat.c: Likewise.
2121 * m32r-tdep.c: Likewise.
2122 * m68k-tdep.c: Likewise.
2123 * m68kbsd-nat.c: Likewise.
2124 * m68kbsd-tdep.c: Likewise.
2125 * m88k-tdep.c: Likewise.
2126 * machoread.c: Likewise.
2127 * macroexp.c: Likewise.
2128 * macrotab.c: Likewise.
2129 * maint.c: Likewise.
2130 * mdebugread.c: Likewise.
2131 * memory-map.c: Likewise.
2132 * mep-tdep.c: Likewise.
2133 * mi/mi-common.c: Likewise.
2134 * microblaze-tdep.c: Likewise.
2135 * mingw-hdep.c: Likewise.
2136 * mips-linux-nat.c: Likewise.
2137 * mips-linux-tdep.c: Likewise.
2138 * mips-tdep.c: Likewise.
2139 * mips64obsd-tdep.c: Likewise.
2140 * mipsnbsd-tdep.c: Likewise.
2141 * mn10300-linux-tdep.c: Likewise.
2142 * mn10300-tdep.c: Likewise.
2143 * moxie-tdep.c: Likewise.
2144 * mt-tdep.c: Likewise.
2145 * nat/linux-btrace.c: Likewise.
2146 * nat/linux-osdata.c: Likewise.
2147 * nat/linux-ptrace.c: Likewise.
2148 * nat/mips-linux-watch.c: Likewise.
2149 * nios2-linux-tdep.c: Likewise.
2150 * nios2-tdep.c: Likewise.
2151 * objc-lang.c: Likewise.
2152 * objfiles.c: Likewise.
2153 * obsd-nat.c: Likewise.
2154 * opencl-lang.c: Likewise.
2155 * osabi.c: Likewise.
2156 * parse.c: Likewise.
2157 * ppc-linux-nat.c: Likewise.
2158 * ppc-sysv-tdep.c: Likewise.
2159 * ppcfbsd-nat.c: Likewise.
2160 * ppcfbsd-tdep.c: Likewise.
2161 * ppcnbsd-nat.c: Likewise.
2162 * ppcnbsd-tdep.c: Likewise.
2163 * ppcobsd-nat.c: Likewise.
2164 * ppcobsd-tdep.c: Likewise.
2165 * printcmd.c: Likewise.
2166 * procfs.c: Likewise.
2167 * prologue-value.c: Likewise.
2168 * psymtab.c: Likewise.
2169 * python/py-lazy-string.c: Likewise.
2170 * python/py-value.c: Likewise.
2171 * regcache.c: Likewise.
2172 * reggroups.c: Likewise.
2173 * registry.c: Likewise.
2174 * remote-sim.c: Likewise.
2175 * remote.c: Likewise.
2176 * rs6000-aix-tdep.c: Likewise.
2177 * rs6000-tdep.c: Likewise.
2178 * s390-linux-tdep.c: Likewise.
2179 * score-tdep.c: Likewise.
2180 * ser-base.c: Likewise.
2181 * ser-mingw.c: Likewise.
2182 * sh-tdep.c: Likewise.
2183 * sh64-tdep.c: Likewise.
2184 * solib-darwin.c: Likewise.
2185 * solib-spu.c: Likewise.
2186 * solib-svr4.c: Likewise.
2187 * source.c: Likewise.
2188 * sparc-nat.c: Likewise.
2189 * sparc-sol2-tdep.c: Likewise.
2190 * sparc-tdep.c: Likewise.
2191 * sparc64-sol2-tdep.c: Likewise.
2192 * sparc64-tdep.c: Likewise.
2193 * sparc64fbsd-tdep.c: Likewise.
2194 * sparc64nbsd-tdep.c: Likewise.
2195 * sparc64obsd-tdep.c: Likewise.
2196 * sparcnbsd-tdep.c: Likewise.
2197 * sparcobsd-tdep.c: Likewise.
2198 * spu-multiarch.c: Likewise.
2199 * spu-tdep.c: Likewise.
2200 * stabsread.c: Likewise.
2201 * stack.c: Likewise.
2202 * symfile.c: Likewise.
2203 * symtab.c: Likewise.
2204 * target-descriptions.c: Likewise.
2205 * target-memory.c: Likewise.
2206 * target.c: Likewise.
2207 * tic6x-linux-tdep.c: Likewise.
2208 * tic6x-tdep.c: Likewise.
2209 * tilegx-linux-nat.c: Likewise.
2210 * tilegx-tdep.c: Likewise.
2212 * tramp-frame.c: Likewise.
2213 * tui/tui-out.c: Likewise.
2214 * tui/tui-winsource.c: Likewise.
2215 * ui-out.c: Likewise.
2216 * user-regs.c: Likewise.
2217 * utils.c: Likewise.
2218 * v850-tdep.c: Likewise.
2219 * valops.c: Likewise.
2220 * value.c: Likewise.
2221 * varobj.c: Likewise.
2222 * vax-nat.c: Likewise.
2223 * xml-syscall.c: Likewise.
2224 * xml-tdesc.c: Likewise.
2225 * xstormy16-tdep.c: Likewise.
2226 * xtensa-linux-nat.c: Likewise.
2227 * xtensa-tdep.c: Likewise.
2229 2014-08-07 Gary Benson <gbenson@redhat.com>
2231 * common/common-defs.h: Include common-utils.h.
2232 * defs.h: Do not include common-utils.h.
2233 * common/gdb_assert.h: Likewise.
2234 * darwin-nat.h: Likewise.
2235 * nat/linux-btrace.c: Likewise.
2236 * target/waitstatus.h: Likewise.
2238 2014-08-07 Gary Benson <gbenson@redhat.com>
2240 * common/common-defs.h: Include ptid.h.
2241 * defs.h: Do not include ptid.h.
2242 * inferior.h: Likewise.
2243 * infrun.h: Likewise.
2244 * nat/linux-btrace.h: Likewise.
2245 * nat/linux-osdata.h: Likewise.
2246 * target/waitstatus.h: Likewise.
2248 2014-08-07 Gary Benson <gbenson@redhat.com>
2250 * common/common-defs.h: Include gdb_locale.h.
2251 * defs.h: Do not include gdb_locale.h.
2253 2014-08-07 Gary Benson <gbenson@redhat.com>
2255 * common/common-defs.h: Include gdb/signals.h.
2256 * defs.h: Do not include gdb/signals.h.
2258 2014-08-07 Gary Benson <gbenson@redhat.com>
2260 * common/common-defs.h: Include pathmax.h.
2261 * defs.h: Do not include pathmax.h.
2263 2014-08-07 Gary Benson <gbenson@redhat.com>
2265 * common/common-defs.h: Include libiberty.h.
2266 * defs.h: Do not include libiberty.h.
2267 * common/queue.h: Likewise.
2268 * cp-name-parser.y: Likewise.
2269 * mi/mi-cmd-catch.c: Likewise.
2270 * python/python.c: Likewise.
2272 2014-08-07 Gary Benson <gbenson@redhat.com>
2274 * common/common-defs.h: Include ansidecl.h.
2275 * defs.h: Do not include ansidecl.h.
2276 * common/buffer.h: Likewise.
2277 * common/common-utils.h: Likewise.
2279 2014-08-07 Gary Benson <gbenson@redhat.com>
2281 * common/common-defs.h: Include stddef.h.
2282 * defs.h: Do not include stddef.h.
2283 * common/common-utils.h: Likewise.
2284 * amd64fbsd-nat.c: Likewise.
2285 * bcache.c: Likewise.
2286 * charset.c: Likewise.
2287 * common/buffer.h: Likewise.
2288 * common/vec.h: Likewise.
2289 * i386bsd-nat.c: Likewise.
2290 * nat/linux-btrace.h: Likewise.
2291 * ppcfbsd-nat.c: Likewise.
2292 * ppcnbsd-tdep.h: Likewise.
2293 * ppcobsd-nat.c: Likewise.
2294 * ppcobsd-tdep.h: Likewise.
2295 * python/py-gdb-readline.c: Likewise.
2297 2014-08-07 Gary Benson <gbenson@redhat.com>
2299 * common/common-defs.h: Include stdarg.h.
2300 * defs.h: Do not include stdarg.h.
2301 * ada-lang.c: Likewise.
2302 * common/common-utils.h: Likewise.
2303 * guile/scm-string.c: Likewise.
2304 * guile/scm-utils.c: Likewise.
2305 * m32c-tdep.c: Likewise.
2307 2014-08-07 Gary Benson <gbenson@redhat.com>
2309 * common/common-defs.h: Include stdlib.h.
2310 * defs.h: Do not include stdlib.h.
2311 * addrmap.c: Likewise.
2312 * bcache.c: Likewise.
2313 * common/buffer.c: Likewise.
2314 * common/common-utils.c: Likewise.
2315 * cp-name-parser.y: Likewise.
2316 * go32-nat.c: Likewise.
2317 * mn10300-linux-tdep.c: Likewise.
2318 * nat/linux-osdata.c: Likewise.
2319 * tui/tui.c: Likewise.
2320 * windows-nat.c: Likewise.
2322 2014-08-07 Gary Benson <gbenson@redhat.com>
2324 * common/common-defs.h: Include stdio.h.
2325 * defs.h: Do not include stdio.h.
2326 * ada-lang.c: Likewise.
2327 * common/buffer.c: Likewise.
2328 * common/common-utils.c: Likewise.
2329 * cp-name-parser.y: Likewise.
2330 * gnu-nat.c: Likewise.
2331 * go32-nat.c: Likewise.
2332 * i386gnu-nat.c: Likewise.
2333 * proc-api.c: Likewise.
2334 * proc-events.c: Likewise.
2335 * proc-flags.c: Likewise.
2336 * proc-why.c: Likewise.
2337 * python/python-internal.h: Likewise.
2338 * target-memory.c: Likewise.
2339 * tui/tui-io.c: Likewise.
2340 * tui/tui.c: Likewise.
2342 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2344 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2345 (scan_dyntag_auxv): Same.
2347 2014-08-06 Yao Qi <yao@codesourcery.com>
2349 * amd64-linux-nat.c: Remove duplicated include
2351 * i386-linux-nat.c: Likewise.
2353 2014-08-06 Yao Qi <yao@codesourcery.com>
2355 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2356 operand" with "Special opcode" in comments.
2358 2014-08-05 Gary Benson <gbenson@redhat.com>
2360 * interps.c (initialize_interps): Remove prototype.
2361 (interpreter_initialized): Remove static global.
2362 (interp_add): Do not call initialize_interps.
2363 (initialize_interps): Remove function.
2365 2014-08-05 Gary Benson <gbenson@redhat.com>
2367 * utils.c (vwarning): Remove spurious va_end.
2369 2014-08-05 Alan Modra <amodra@gmail.com>
2371 * charset.c (convert_between_encodings): Cast result of obstack_base.
2372 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2373 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2374 (read_unwind_info): Use size_t for some locals.
2375 * jit.c (finalize_symtab): Likewise.
2376 * utils.c (hashtab_obstack_allocate): Likewise.
2377 * symmisc.c (print_objfile_statistics): Update format strings.
2379 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2381 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2382 (Changes in GDB 7.8): ... here.
2384 2014-08-04 Tom Tromey <tromey@redhat.com>
2386 * target.c (set_targetdebug): New function.
2387 (initialize_targets): Pass set_targetdebug when creating "set
2390 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2392 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2393 if detecting a variable-sized field that is not the last field.
2394 Fix struct type length computation.
2396 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2398 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2401 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2403 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2404 Remove "+ 8" offset in computation of CHAIN_VMA.
2406 2014-07-31 Doug Evans <dje@google.com>
2408 * inflow.c (child_terminal_inferior): Add comment.
2409 (child_terminal_ours_for_output): Add comment.
2410 (child_terminal_ours): Add comment.
2411 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2412 (linux_nat_terminal_ours): Add comment.
2414 2014-07-31 Gary Benson <gbenson@redhat.com>
2416 * common/btrace-common.h: Do not include defs.h or server.h.
2417 * nat/mips-linux-watch.h: Likewise.
2418 * gdb-dlfcn.h: Do not include defs.h.
2419 * tracefile.h: Likewise.
2421 2014-07-30 Roland McGrath <mcgrathr@google.com>
2423 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2425 2014-07-30 Tom Tromey <tromey@redhat.com>
2427 * bsd-kvm.c (bsd_kvm_open): Constify.
2428 * corelow.c (core_open): Constify.
2429 * ctf.c (ctf_open): Constify.
2430 * dbug-rom.c (dbug_open): Constify.
2431 * exec.c (exec_open): Constify.
2432 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2433 * microblaze-rom.c (picobug_open): Constify.
2434 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2436 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2437 * record-btrace.c (record_btrace_open): Constify.
2438 * record-full.c (record_full_core_open_1, record_full_open_1)
2439 (record_full_open): Constify.
2440 * remote-m32r-sdi.c (m32r_open): Constify.
2441 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2442 (rockhopper_open, lsi_open): Constify.
2443 * remote-sim.c (gdbsim_open): Constify.
2444 * remote.c (remote_open, extended_remote_open, remote_open_1):
2446 * target.h (struct target_ops) <to_open>: Make "arg" const.
2447 * tracefile-tfile.c (tfile_open): Constify.
2449 2014-07-30 Tom Tromey <tromey@redhat.com>
2451 * breakpoint.c (map_breakpoint_numbers): Update.
2452 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2453 (get_number_const): New function.
2454 (get_number): Rewrite using get_number_const.
2455 (init_number_or_range): Make "string" const.
2456 (number_is_in_list): Make "list" const.
2457 * cli/cli-utils.h (get_number_const): Declare.
2458 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2459 (init_number_or_range, number_is_in_list): Update.
2460 * printcmd.c (map_display_numbers): Update.
2461 * value.c (value_from_history_ref): Constify.
2462 * value.h (value_from_history_ref): Update.
2464 2014-07-30 Tom Tromey <tromey@redhat.com>
2466 * corefile.c (hook_type, call_extra_exec_file_hooks)
2467 (specify_exec_file_hook): Constify.
2468 * exec.c (exec_file_attach): Make "filename" const.
2469 * gdbcore.h (deprecated_exec_file_display_hook)
2470 (specify_exec_file_hook, exec_file_attach): Constify.
2471 * main.c (captured_main): Use catch_command_errors_const.
2473 2014-07-30 Tom Tromey <tromey@redhat.com>
2475 * target.c (open_target): New function.
2476 (add_target_with_completer, add_deprecated_target_alias): Use
2477 set_cmd_sfunc, set_cmd_context.
2478 (debug_to_open): Remove.
2479 (setup_target_debug): Update.
2481 2014-07-30 Yao Qi <yao@codesourcery.com>
2483 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2485 * parse.c (exp_iterate): Update comments.
2487 2014-07-30 Gary Benson <gbenson@redhat.com>
2489 * common/common-defs.h: New file.
2490 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2491 * defs.h: Include common-defs.h.
2492 Do not include config.h or build-gnulib/config.h.
2494 2014-07-30 Gary Benson <gbenson@redhat.com>
2496 * common/common-utils.h: Do not include config.h.
2497 * nat/linux-btrace.h: Likewise.
2499 2014-07-30 Gary Benson <gbenson@redhat.com>
2501 * btrace.c: Include defs.h.
2502 * common/ptid.c: Include defs.h or server.h as appropriate.
2503 * nat/mips-linux-watch.c: Likewise.
2505 2014-07-29 Tom Tromey <tromey@redhat.com>
2507 * target.c (target_is_pushed): Simplify.
2509 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2513 2014-07-29 Yao Qi <yao@codesourcery.com>
2516 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2518 2014-07-28 Doug Evans <xdje42@gmail.com>
2521 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2522 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2525 2014-07-28 Will Newton <will.newton@linaro.org>
2527 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2528 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2529 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2530 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2531 (THUMB2_EABI_SYSCALL): Likewise.
2532 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2534 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2535 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2537 2014-07-27 Doug Evans <xdje42@gmail.com>
2539 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2541 2014-07-27 Doug Evans <xdje42@gmail.com>
2543 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2545 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2546 Doug Evans <xdje42@gmail.com>
2549 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2550 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2551 * configure.ac: Try to use guild to compile an scm file, if it fails
2552 then disable guile support.
2553 * configure: Regenerate.
2554 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2556 (GUILE_COMPILED_FILES): New variable.
2557 (GUILE_FILES) Update.
2558 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2559 (stamp-guile): Compile scm files.
2560 * guile/guile.c (boot_guile_support): New function.
2561 (standard_throw_args_p): New function.
2562 (print_standard_throw_error, print_throw_error): New functions.
2563 (handle_boot_error): New function.
2564 (initialize_scheme_side): Rewrite to call boot_guile_support.
2565 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2566 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2568 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2569 Doug Evans <xdje42@gmail.com>
2572 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2573 * guile/lib/gdb/support.scm: New file.
2574 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2575 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2577 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2579 (%assert-type): Ditto, and renamed to assert-type.
2580 (%exception-print-style): Delete.
2582 2014-07-26 Doug Evans <xdje42@gmail.com>
2585 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2586 * configure: Regenerate.
2587 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2589 (PYTHON_FILES): New variable.
2590 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2591 (GUILE_FILES): New variable.
2592 (stamp-python, install-python, uninstall-python): Handle empty
2594 (stamp-guile, install-guile, uninstall-guile): Ditto.
2596 2014-07-26 Doug Evans <xdje42@gmail.com>
2599 * guile/lib/gdb.scm (pretty-printers): Export.
2600 (set-pretty-printers!): Export.
2601 * guile/lib/gdb/printing.scm (gdb module): Update.
2602 (prepend-pretty-printer!, append-pretty-printer!): Update.
2603 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2604 (pretty_printer_list_var): Delete.
2605 (pretty_printer_list): New static global.
2606 (gdbscm_pretty_printers): New function.
2607 (gdbscm_set_pretty_printers_x): New function.
2608 (ppscm_find_pretty_printer_from_gdb): Update.
2609 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2610 (gdbscm_initialize_pretty_printers): Update.
2612 2014-07-26 Doug Evans <xdje42@gmail.com>
2615 * configure.ac: Add check for header gc/gc.h.
2616 Add check for function setenv.
2617 * configure: Regenerate.
2618 * config.in: Regenerate.
2619 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2621 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2623 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2624 variation in gdbarch matching.
2626 2014-07-25 Tom Tromey <tromey@redhat.com>
2628 * exec.c (using_exec_ops): Remove.
2629 (exec_close_1): Update. Remove extraneous block, reindent.
2630 (add_target_sections): Use target_is_pushed.
2632 2014-07-25 Pedro Alves <palves@redhat.com>
2634 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2635 * monitor.c (monitor_create_inferior): Likewise.
2636 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2637 * remote-sim.c (gdbsim_create_inferior): Likewise.
2638 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2639 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2640 * windows-nat.c (do_initial_windows_stuff): Likewise.
2642 2014-07-25 Pedro Alves <palves@redhat.com>
2644 * NEWS: Mention signal passing and "signal" command changes.
2645 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2647 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2649 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2650 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2651 (jump_command): Adjust clear_proceed_status call.
2652 (signal_command): Warn if other thread that are resumed have
2653 signals that will be delivered. Adjust clear_proceed_status call.
2654 (until_next_command, finish_command)
2655 (proceed_after_attach_callback, attach_command_post_wait)
2656 (attach_command): Adjust clear_proceed_status call.
2657 * infrun.c (proceed_after_vfork_done): Likewise.
2658 (proceed_after_attach_callback): Adjust comment.
2659 (clear_proceed_status_thread): Clear stop_signal if not in pass
2661 (clear_proceed_status_callback): Delete.
2662 (clear_proceed_status): New 'step' parameter. Only clear the
2663 proceed status of threads the command being prepared is about to
2665 (proceed): If passed in an explicit signal, override stop_signal
2666 with it. Don't pass the last stop signal to the thread we're
2668 (init_wait_for_inferior): Adjust clear_proceed_status call.
2669 (switch_back_to_stepped_thread): Clear the signal if it should not
2671 * infrun.h (clear_proceed_status): New 'step' parameter.
2672 (user_visible_resume_ptid): Add comment.
2673 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2674 signal is in pass state.
2675 * remote.c (append_pending_thread_resumptions): Likewise.
2676 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2678 2014-07-25 Tom Tromey <tromey@redhat.com>
2680 * target.h (target_stopped_data_address)
2681 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2684 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2686 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2688 (avr_pointer_to_address): Likewise.
2690 2014-07-24 Tom Tromey <tromey@redhat.com>
2692 * monitor.c (compile_pattern): Update.
2693 * target.h (struct target_ops) <to_shortname, to_longname,
2696 2014-07-24 Tom Tromey <tromey@redhat.com>
2698 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2699 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2700 (add_info_alias, add_com): Make "doc" const.
2701 (print_doc_line): Make "str" const.
2702 (delete_cmd): Update.
2703 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2704 (print_doc_line): Update.
2705 * cli/cli-script.c (document_command): Update.
2706 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2707 (add_com, add_info, add_info_alias): Update.
2708 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2709 * python/py-cmd.c (cmdpy_destroyer): Update.
2711 2014-07-24 Tom Tromey <tromey@redhat.com>
2713 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2714 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2715 (help_cmd_list): Constify.
2716 (lookup_cmd): Update.
2717 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2719 (help_cmd_list, apropos_cmd): Update.
2720 * cli/cli-script.c (show_user): Update.
2721 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2722 * cli/cli-setshow.h (cmd_show_list): Update.
2723 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2724 (cmd_show_list): Update.
2725 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2726 * python/py-cmd.c (cmdpy_destroyer): Update.
2728 2014-07-24 Tom Tromey <tromey@redhat.com>
2730 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2731 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2733 * command.h (deprecate_cmd): Update.
2734 * maint.c (maintenance_do_deprecate): Add casts.
2736 2014-07-24 Tom Tromey <tromey@redhat.com>
2738 * cli/cli-decode.c (help_cmd): Make parameter "const".
2739 * cli/cli-decode.h (help_cmd): Update.
2741 2014-07-24 Tom Tromey <tromey@redhat.com>
2743 * stack.c (up_silently_base, down_silently_base): Make argument
2746 2014-07-24 Tom Tromey <tromey@redhat.com>
2748 * solib.c (solib_add): Make "pattern" const.
2749 * solib.h (solib_add): Update.
2751 2014-07-24 Tom Tromey <tromey@redhat.com>
2753 * remote.c (remote_serial_open, print_packet, putpkt)
2754 (putpkt_binary): Constify.
2755 * remote.h (putpkt): Update.
2757 2014-07-24 Tom Tromey <tromey@redhat.com>
2759 * monitor.c (monitor_open): Make "args" const.
2760 * monitor.h (monitor_open): Update.
2762 2014-07-24 Tom Tromey <tromey@redhat.com>
2764 * maint.c (match_bfd_flags): Make "string" const.
2765 (print_bfd_section_info): Remove casts.
2766 (print_objfile_section_info): Make "string" const.
2768 2014-07-24 Tom Tromey <tromey@redhat.com>
2770 * inf-child.c (inf_child_open_target): Make "arg" const.
2771 * inf-child.h (inf_child_open_target): Update.
2773 2014-07-24 Tom Tromey <tromey@redhat.com>
2775 * environ.c (unset_in_environ): Make "var" const.
2776 * environ.h (unset_in_environ): Update.
2778 2014-07-24 Tom Tromey <tromey@redhat.com>
2780 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2782 (scan_filename_with_cleanup): Likewise.
2783 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2784 Make arguments const.
2785 (restore_command): Update.
2787 2014-07-24 Pedro Alves <palves@redhat.com>
2789 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2791 2014-07-24 Tom Tromey <tromey@redhat.com>
2792 Gary Benson <gbenson@redhat.com>
2794 * nat/linux-ptrace.c (additional_flags): New global.
2795 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2796 additional_flags; don't check GDBSERVER.
2797 (linux_ptrace_set_additional_flags): New function.
2798 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2800 * linux-nat.c (_initialize_linux_nat): Call
2801 linux_ptrace_set_additional_flags.
2803 2014-07-24 Tom Tromey <tromey@redhat.com>
2805 * make-target-delegates (munge_type, write_debugmethod): New
2807 (debug_names): New global.
2808 ($TARGET_DEBUG_PRINTER): New global.
2809 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2811 Write debug methods. Generate init_debug_target.
2812 * target-debug.h: New file.
2813 * target-delegates.c: Rebuild.
2814 * target.c: Include target-debug.h.
2815 (debug_target): Hoist definition.
2816 (target_kill, target_get_section_table, target_memory_map)
2817 (target_flash_erase, target_flash_done, target_detach)
2818 (target_disconnect, target_wait, target_resume)
2819 (target_pass_signals, target_program_signals, target_follow_fork)
2820 (target_mourn_inferior, target_search_memory)
2821 (target_thread_address_space, target_close)
2822 (target_find_new_threads, target_core_of_thread)
2823 (target_verify_memory, target_insert_mask_watchpoint)
2824 (target_remove_mask_watchpoint): Remove targetdebug code.
2825 (debug_to_post_attach, debug_to_prepare_to_store)
2826 (debug_to_files_info, debug_to_insert_breakpoint)
2827 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2828 (debug_to_region_ok_for_hw_watchpoint)
2829 (debug_to_can_accel_watchpoint_condition)
2830 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2831 (debug_to_watchpoint_addr_within_range)
2832 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2833 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2834 (debug_to_terminal_init, debug_to_terminal_inferior)
2835 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2836 (debug_to_terminal_save_ours, debug_to_terminal_info)
2837 (debug_to_load, debug_to_post_startup_inferior)
2838 (debug_to_insert_fork_catchpoint)
2839 (debug_to_remove_fork_catchpoint)
2840 (debug_to_insert_vfork_catchpoint)
2841 (debug_to_remove_vfork_catchpoint)
2842 (debug_to_insert_exec_catchpoint)
2843 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2844 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2845 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2846 (setup_target_debug): Call init_debug_target.
2847 * target.h (TARGET_DEBUG_PRINTER): New macro.
2848 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2849 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2851 2014-07-24 Gary Benson <gbenson@redhat.com>
2853 * exceptions.h (throw_vfatal): Renamed to...
2854 (throw_vquit): New declaration.
2855 (throw_quit): Likewise.
2856 * exceptions.c (throw_vfatal): Renamed to...
2857 (throw_vquit): New function.
2858 (throw_quit): Likewise.
2859 (throw_error): Call throw_verror rather than throw_it.
2860 * utils.h (vfatal): Removed.
2862 * utils.c (vfatal): Removed.
2864 (internal_verror): Replaced call to fatal with call to throw_quit.
2865 (quit): Replaced calls to fatal with calls to throw_quit.
2867 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2869 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2872 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2874 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2875 less than zero in conditional expression.
2877 2014-07-23 Tom Tromey <tromey@redhat.com>
2879 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2880 ($INTRO_PART): Don't match whitespace.
2881 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2883 ($METHOD): Add $METHOD_TRAILER.
2885 (scan_target_h): New sub.
2886 Change main loop not to collect state.
2887 * target-delegates.c: Rebuild.
2889 2014-07-23 Gary Benson <gbenson@redhat.com>
2891 * cp-support.c (gdb_demangle): Fix build on systems without
2894 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2896 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2897 for reference entry value target data value.
2899 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2901 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2902 value_available_contents_eq.
2904 2014-07-22 Pedro Alves <palves@redhat.com>
2906 * value.c (allocate_optimized_out_value): Don't mark value as
2909 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2911 * MAINTAINERS (Write After Approval): Update my email address.
2913 2014-07-20 Doug Evans <dje@google.com>
2916 * remote.c (putpkt_binary): Add text to error message.
2918 2014-07-20 Yao Qi <yao@codesourcery.com>
2920 * eval.c: Remove "Chill" from comments.
2921 * gdbtypes.h: Likewise.
2922 * symtab.h: Likewise.
2924 2014-07-20 Yao Qi <yao@codesourcery.com>
2926 * std-operator.def: Update comments to TERNOP_SLICE.
2928 2014-07-20 Yao Qi <yao@codesourcery.com>
2930 * std-operator.def: Remove BINOP_RANGE.
2931 * breakpoint.c (watchpoint_exp_is_const): Update.
2932 * expprint.c (dump_subexp_body_standard): Likewise.
2933 * eval.c (init_array_element): Remove dead code.
2934 (evaluate_subexp_standard): Likewise.
2936 2014-07-20 Yao Qi <yao@codesourcery.com>
2938 * std-operator.def: Remove BINOP_IN.
2939 * breakpoint.c (watchpoint_exp_is_const): Update.
2940 * eval.c (evaluate_subexp_standard): Likewise.
2941 * expprint.c (dump_subexp_body_standard): Likewise.
2943 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2945 * microblaze-tdep.c (microblaze_register_names): Add
2946 the rshr and rslr register names.
2947 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2948 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2949 Use of tdesc_numbered_register. Use of
2950 microblaze_register_g_packet_guesses. Use of
2951 tdesc_use_registers. Use of set_gdbarch_register_type.
2952 (microblaze_register_g_packet_guesses): New.
2953 * microblaze-tdep.h (microblaze_reg_num): Add
2954 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2955 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2956 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2957 * features/microblaze-core.xml: New file.
2958 * features/microblaze-stack-protect.xml: New file.
2959 * features/microblaze-with-stack-protect.c: New file.
2960 * features/microblaze-with-stack-protect.xml: New file.
2961 * features/microblaze.xml: New file.
2962 * features/microblaze.c: New file.
2963 * features/Makefile (microblaze-with-stack-protect): Add
2964 microblaze-with-stack-protect microblaze and microblaze-expedite.
2965 * regformats/microblaze-with-stack-protect.dat: New file.
2966 * regformats/microblaze.dat: New file.
2967 * doc/gdb.texinfo (MicroBlaze Features): Added.
2969 2014-07-18 Tom Tromey <tromey@redhat.com>
2971 * exec.c (exec_ops): Now static.
2972 * exec.h (exec_ops): Don't declare.
2974 2014-07-18 Tom Tromey <tromey@redhat.com>
2976 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2977 to find_target_beneath.
2978 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2979 find_target_beneath.
2980 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2982 2014-07-18 Tom Tromey <tromey@redhat.com>
2985 * utils.c (quit): Use target_supports_terminal_ours.
2986 * target.h (target_supports_terminal_ours): Declare.
2987 * target.c (target_supports_delete_record): Don't check
2988 to_delete_record against NULL.
2989 (target_supports_terminal_ours): New function.
2991 2014-07-18 Tom Tromey <tromey@redhat.com>
2994 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2995 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2996 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2997 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2998 * windows-nat.c (windows_xfer_partial): Always delegate.
2999 * record-btrace.c (record_btrace_xfer_partial): Simplify
3001 (record_btrace_fetch_registers, record_btrace_store_registers)
3002 (record_btrace_prepare_to_store, record_btrace_resume)
3003 (record_btrace_wait, record_btrace_find_new_threads)
3004 (record_btrace_thread_alive): Likewise.
3005 * procfs.c (procfs_xfer_partial): Always delegate.
3006 * corelow.c (core_xfer_partial): Always delegate.
3007 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3009 2014-07-18 Tom Tromey <tromey@redhat.com>
3011 * exec.c (exec_make_note_section): Move earlier.
3013 2014-07-17 Doug Evans <dje@google.com>
3016 * maint.c (count_symtabs_and_blocks): Handle NULL
3017 current_program_space.
3018 (report_command_stats): Check global enabled flag in addition to
3019 recorded enabled flag.
3020 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3022 2014-07-16 Pedro Alves <palves@redhat.com>
3024 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3026 2014-07-16 Tom Tromey <tromey@redhat.com>
3028 * target.h (struct target_ops) <to_delete_record>: Reformat
3031 2014-07-16 Tom Tromey <tromey@redhat.com>
3033 * target-delegates.c: Rebuild.
3035 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3037 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3038 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3039 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3040 (avr_pointer_to_address): Likewise.
3041 (avr_address_class_type_flags): New function.
3042 (avr_address_class_type_flags_to_name): Likewise.
3043 (avr_address_class_name_to_type_flags): Likewise.
3044 (avr_gdbarch_init): Set address_class_type_flags,
3045 address_class_type_flags_to_name and
3046 address_class_name_to_type_flags.
3048 2014-07-15 Pedro Alves <palves@redhat.com>
3050 * linux-nat.c (kill_callback): Save errno and work with saved
3053 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3055 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3057 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3059 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3060 breakpoint support correctly.
3062 2014-07-14 Pedro Alves <palves@redhat.com>
3064 * utils.c (prompt_for_continue): Call target_terminal_ours.
3066 2014-07-14 Pedro Alves <palves@redhat.com>
3068 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3069 catch_errors. Don't re-enable stdin or notify observers where,
3071 (fetch_inferior_event_wrapper): Delete.
3073 2014-07-14 Pedro Alves <palves@redhat.com>
3076 * top.c: Include "inf-loop.h".
3077 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3079 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3081 (gdb_readline_wrapper): Store whether the target is async, and
3084 2014-07-14 Pedro Alves <palves@redhat.com>
3087 * top.c (gdb_readline_wrapper_line): Tweak comment.
3088 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3089 the input handler callback.
3091 2014-07-14 Pedro Alves <palves@redhat.com>
3094 * main.c: Include event-top.h.
3095 (handle_command_errors): New function.
3096 (catch_command_errors, catch_command_errors_const): Use it.
3098 2014-07-14 Pedro Alves <palves@redhat.com>
3100 * exceptions.c (catch_command_errors, catch_command_errors_const):
3102 * exceptions.h (catch_command_errors_ftype)
3103 (catch_command_errors_const_ftype): Moved to main.c.
3104 (catch_command_errors, catch_command_errors_const): Delete
3106 * main.c (catch_command_errors_ftype)
3107 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3108 (catch_command_errors, catch_command_errors_const)): Moved here
3109 from exceptions.c and make static.
3111 2014-07-14 Pedro Alves <palves@redhat.com>
3113 * exceptions.c (print_any_exception): Delete.
3114 (catch_exceptions_with_msg): Use exception_print instead of
3115 print_any_exception.
3116 (catch_errors): Use exception_fprintf instead of
3117 print_any_exception.
3118 (catch_command_errors, catch_command_errors_const): Use
3119 exception_print instead of print_any_exception.
3121 2014-07-14 Pedro Alves <palves@redhat.com>
3123 * infcall.c (run_inferior_call): Set 'sync_execution' while
3124 running the inferior call.
3126 2014-07-14 Pedro Alves <palves@redhat.com>
3128 * value.c (value_contents_equal): Delete function.
3129 * value.h (value_contents_equal): Delete declaration.
3131 2014-07-14 Tom Tromey <tromey@redhat.com>
3134 * gdbtypes.c (is_dynamic_type_internal): New function, from
3136 (is_dynamic_type): Rewrite.
3137 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3138 (resolve_dynamic_struct): Likewise.
3139 (resolve_dynamic_type_internal): New function, from
3140 resolve_dynamic_type.
3141 (resolve_dynamic_type): Rewrite.
3143 2014-07-14 Tom Tromey <tromey@redhat.com>
3145 * target.c (target_require_runnable): Also check record_stratum.
3148 2014-07-11 Yao Qi <yao@codesourcery.com>
3150 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3151 thumb_instruction_restores_sp return true.
3153 2014-07-11 Yao Qi <yao@codesourcery.com>
3155 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3156 (thumb_in_function_epilogue_p): Call
3157 thumb_instruction_restores_sp.
3159 2014-07-11 Yao Qi <yao@codesourcery.com>
3161 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3163 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3165 2014-07-11 Gary Benson <gbenson@redhat.com>
3167 * amd64-linux-nat.c (gdbcore.h): Remove include.
3168 (regset.h): Likewise.
3169 (nat/linux-btrace.h): Likewise.
3170 (btrace.h): Likewise.
3171 (gdb_assert.h): Likewise.
3172 (string.h): Likewise.
3173 (sys/uio.h): Likewise.
3174 (sys/debugreg.h): Likewise.
3175 (sys/syscall.h): Likewise.
3176 (sys/procfs.h): Likewise.
3177 (sys/user.h): Likewise.
3178 (asm/ptrace.h): Likewise.
3179 (i386-nat.h): Likewise.
3180 * i386-linux-nat.c (i386-nat.h): Likewise.
3181 (regset.h): Likewise.
3182 (target.h): Likewise.
3183 (linux-nat.h): Likewise.
3184 (nat/linux-btrace.h): Likewise.
3185 (btrace.h): Likewise.
3186 (gdb_assert.h): Likewise.
3187 (string.h): Likewise.
3188 (sys/uio.h): Likewise.
3189 (sys/user.h): Likewise.
3190 (sys/procfs.h): Likewise.
3191 (sys/reg.h): Likewise.
3192 (sys/debugreg.h): Likewise.
3193 (ORIG_EAX): Remove definition.
3195 2014-07-11 Gary Benson <gbenson@redhat.com>
3197 * i386-linux-nat.h: New file.
3198 * x86-linux-nat.h: Likewise.
3199 * x86-linux-nat.c: Likewise.
3200 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3201 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3202 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3203 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3204 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3205 (PTRACE_SETREGSET): Likewise.
3206 (arch_lwp_info): Now in x86-linux-nat.c.
3207 (have_ptrace_getregset): Now in x86-linux-nat.h.
3208 (x86_linux_dr_get): Now in x86-linux-nat.c.
3209 (x86_linux_dr_set): Likewise.
3210 (x86_linux_dr_get_addr): Likewise.
3211 (x86_linux_dr_get_control): Likewise.
3212 (x86_linux_dr_get_status): Likewise.
3213 (update_debug_registers_callback): Likewise.
3214 (x86_linux_dr_set_control): Likewise.
3215 (x86_linux_dr_set_addr): Likewise.
3216 (x86_linux_prepare_to_resume): Likewise.
3217 (x86_linux_new_thread): Likewise.
3218 (x86_linux_new_fork): Likewise.
3219 (x86_linux_get_thread_area): Likewise.
3220 (super_post_startup_inferior): Likewise.
3221 (x86_linux_child_post_startup_inferior): Likewise.
3222 (AMD64_LINUX_USER64_CS): Likewise.
3223 (AMD64_LINUX_X32_DS): Likewise.
3224 (x86_linux_read_description): Likewise.
3225 (x86_linux_enable_btrace): Likewise.
3226 (x86_linux_disable_btrace): Likewise.
3227 (x86_linux_teardown_btrace): Likewise.
3228 (x86_linux_read_btrace): Likewise.
3229 (x86_linux_create_target): Likewise.
3230 (x86_linux_add_target): Likewise.
3231 * i386-linux-nat.c (x86-linux-nat.h): New include.
3232 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3233 (PTRACE_SETREGSET): Likewise.
3234 (arch_lwp_info): Now in x86-linux-nat.c.
3235 (have_ptrace_getregset): Now in x86-linux-nat.h.
3236 (x86_linux_dr_get): Now in x86-linux-nat.c.
3237 (x86_linux_dr_set): Likewise.
3238 (x86_linux_dr_get_addr): Likewise.
3239 (x86_linux_dr_get_control): Likewise.
3240 (x86_linux_dr_get_status): Likewise.
3241 (update_debug_registers_callback): Likewise.
3242 (x86_linux_dr_set_control): Likewise.
3243 (x86_linux_dr_set_addr): Likewise.
3244 (x86_linux_prepare_to_resume): Likewise.
3245 (x86_linux_new_thread): Likewise.
3246 (x86_linux_new_fork): Likewise.
3247 (x86_linux_get_thread_area): Likewise.
3248 (super_post_startup_inferior): Likewise.
3249 (x86_linux_child_post_startup_inferior): Likewise.
3250 (AMD64_LINUX_USER64_CS): Likewise.
3251 (AMD64_LINUX_X32_DS): Likewise.
3252 (x86_linux_read_description): Likewise.
3253 (x86_linux_enable_btrace): Likewise.
3254 (x86_linux_disable_btrace): Likewise.
3255 (x86_linux_teardown_btrace): Likewise.
3256 (x86_linux_read_btrace): Likewise.
3257 (x86_linux_create_target): Likewise.
3258 (x86_linux_add_target): Likewise.
3260 2014-07-11 Gary Benson <gbenson@redhat.com>
3262 * amd64-linux-nat.c: Comment and whitespace changes.
3263 * i386-linux-nat.c: Comment and whitespace changes.
3265 2014-07-11 Gary Benson <gbenson@redhat.com>
3267 * amd64-linux-nat.c (x86_linux_create_target): New function.
3268 (x86_linux_add_target): Likewise.
3269 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3270 * i386-linux-nat.c (x86_linux_create_target): New function.
3271 (x86_linux_add_target): Likewise.
3272 (_initialize_i386_linux_nat): Delegate to the above new functions.
3274 2014-07-11 Gary Benson <gbenson@redhat.com>
3276 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3277 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3278 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3279 (ps_get_thread_area): Delegate to the above.
3281 2014-07-11 Gary Benson <gbenson@redhat.com>
3283 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3284 x86_linux_read_description. All uses updated. amd64-specific
3285 code conditionalized. Conditionalized i386-specific code added.
3286 Redundant cast removed.
3287 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3288 x86_linux_read_description. All uses updated. i386-specific
3289 code conditionalized. Conditionalized amd64-specific code added.
3290 One sizeof replaced with the actual type it is describing.
3292 2014-07-11 Gary Benson <gbenson@redhat.com>
3294 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3295 x86_linux_dr_get. All uses updated.
3296 (amd64_linux_dr_set): Renamed to
3297 x86_linux_dr_set. All uses updated.
3298 (amd64_linux_dr_get_addr): Renamed to
3299 x86_linux_dr_get_addr. All uses updated.
3300 (amd64_linux_dr_get_control): Renamed to
3301 x86_linux_dr_get_control. All uses updated.
3302 (amd64_linux_dr_get_status): Renamed to
3303 x86_linux_dr_get_status. All uses updated.
3304 (amd64_linux_dr_set_control): Renamed to
3305 x86_linux_dr_set_control. All uses updated.
3306 (amd64_linux_dr_set_addr): Renamed to
3307 x86_linux_dr_set_addr. All uses updated.
3308 (amd64_linux_prepare_to_resume): Renamed to
3309 x86_linux_prepare_to_resume. All uses updated.
3310 (amd64_linux_new_thread): Renamed to
3311 x86_linux_new_thread. All uses updated.
3312 (amd64_linux_new_fork): Renamed to
3313 x86_linux_new_fork. All uses updated.
3314 (amd64_linux_child_post_startup_inferior): Renamed to
3315 x86_linux_child_post_startup_inferior. All uses updated.
3316 (amd64_linux_enable_btrace): Renamed to
3317 x86_linux_enable_btrace. All uses updated.
3318 (amd64_linux_disable_btrace): Renamed to
3319 x86_linux_disable_btrace. All uses updated.
3320 (amd64_linux_teardown_btrace): Renamed to
3321 x86_linux_teardown_btrace. All uses updated.
3322 (amd64_linux_read_btrace): Renamed to
3323 x86_linux_read_btrace. All uses updated.
3324 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3325 x86_linux_dr_get. All uses updated.
3326 (i386_linux_dr_set): Renamed to
3327 x86_linux_dr_set. All uses updated.
3328 (i386_linux_dr_get_addr): Renamed to
3329 x86_linux_dr_get_addr. All uses updated.
3330 (i386_linux_dr_get_control): Renamed to
3331 x86_linux_dr_get_control. All uses updated.
3332 (i386_linux_dr_get_status): Renamed to
3333 x86_linux_dr_get_status. All uses updated.
3334 (i386_linux_dr_set_control): Renamed to
3335 x86_linux_dr_set_control. All uses updated.
3336 (i386_linux_dr_set_addr): Renamed to
3337 x86_linux_dr_set_addr. All uses updated.
3338 (i386_linux_prepare_to_resume): Renamed to
3339 x86_linux_prepare_to_resume. All uses updated.
3340 (i386_linux_new_thread): Renamed to
3341 x86_linux_new_thread. All uses updated.
3342 (i386_linux_new_fork): Renamed to
3343 x86_linux_new_fork. All uses updated.
3344 (i386_linux_child_post_startup_inferior): Renamed to
3345 x86_linux_child_post_startup_inferior. All uses updated.
3346 (i386_linux_enable_btrace): Renamed to
3347 x86_linux_enable_btrace. All uses updated.
3348 (i386_linux_disable_btrace): Renamed to
3349 x86_linux_disable_btrace. All uses updated.
3350 (i386_linux_teardown_btrace): Renamed to
3351 x86_linux_teardown_btrace. All uses updated.
3352 (i386_linux_read_btrace): Renamed to
3353 x86_linux_read_btrace. All uses updated.
3355 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3357 * remote.c (extended_remote_post_attach): New function.
3358 (init_extended_remote_ops): Install it as to_post_attach method.
3360 2014-07-09 Pedro Alves <palves@redhat.com>
3362 * infcmd.c (attach_command_post_wait): Don't call
3363 target_terminal_inferior here.
3364 (attach_command): Call it here instead.
3366 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3368 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3370 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3371 from varobj.c, with additional checks.
3372 (c_varobj_ops): Fill in is_path_expr_parent field.
3373 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3374 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3376 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3378 (varobj_default_is_path_expr_parent): New function.
3379 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3380 (varobj_default_is_path_expr_parent): Declare new function.
3382 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3384 * infcmd.c (finish_backward): Turn internal error into normal error.
3386 2014-07-07 Pedro Alves <palves@redhat.com>
3389 * remote.c (async_handle_remote_sigint)
3390 (async_handle_remote_sigint_twice): Call
3391 gdb_call_async_signal_handler instead of
3392 mark_async_signal_handler.
3394 2014-07-07 Tom Tromey <tromey@redhat.com>
3396 * target-delegates.c: Rebuild.
3397 * target.c (target_info_record): Remove.
3398 * record.c (info_record_command): Unconditionally call
3400 * target.h (struct target_ops) <to_info_record>: Use
3401 TARGET_DEFAULT_IGNORE.
3402 (target_info_record): Remove.
3404 2014-07-07 Tom Tromey <tromey@redhat.com>
3406 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3407 TARGET_DEFAULT_NORETURN.
3408 * target.c (generic_tls_error): New function.
3409 (target_translate_tls_address): Don't search target stack.
3410 * target-delegates.c: Rebuild.
3411 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3413 * linux-thread-db.c (thread_db_get_thread_local_address):
3414 Unconditionally call beneath target.
3416 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3418 * cli/cli-logging.c (pop_output_files): Assign targerr to
3421 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3423 * MAINTAINERS (Write After Approval): Update my email address.
3425 2014-07-02 Gary Benson <gbenson@redhat.com>
3427 * proc-service.c (ps_xfer_memory): Update comment.
3428 (ps_pstop): Remove unused function.
3429 (ps_pcontinue): Likewise.
3430 (ps_lstop): Likewise.
3431 (ps_lcontinue): Likewise.
3432 (ps_lgetxregsize): Likewise.
3433 (ps_lgetxregs): Likewise.
3434 (ps_lsetxregs): Likewise.
3435 (ps_plog): Likewise.
3436 (ps_ptread): Likewise.
3437 (ps_ptwrite): Likewise.
3439 2014-07-01 Mark Wielaard <mjw@redhat.com>
3441 * dwarf2read.c (add_array_cv_type): New function.
3442 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3443 (read_tag_volatile_type): Likewise.
3445 2014-07-01 Tom Tromey <tromey@redhat.com>
3447 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3448 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3449 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3450 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3451 * command.h (cmd_cfunc_ftype): Move earlier.
3452 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3453 (add_com, add_info): Use cmd_cfunc_ftype.
3455 2014-06-30 Tom Tromey <tromey@redhat.com>
3457 * symtab.c (operator_chars): Make parameters and return type
3459 (file_matches): Make "files" const.
3460 (struct search_symbols_data) <files>: Now const.
3461 (search_symbols): Make "regexp" and "files" parameters const.
3463 (symtab_symbol_info): Remove cast.
3464 (rbreak_command): Update.
3465 * symtab.h (search_symbols): Update.
3467 2014-06-27 Yao Qi <yao@codesourcery.com>
3469 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3470 Change parameter type to 'struct thread_info *'. Caller
3472 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3474 * dummy-frame.c (struct dummy_frame_id): New.
3475 (dummy_frame_id_eq): New function.
3476 (struct dummy_frame) <id>: Change its type to 'struct
3478 (dummy_frame_push): Add parameter ptid and save it in
3480 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3482 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3484 (lookup_dummy_frame): Change parameter type to 'struct
3485 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3486 instead of frame_id_eq.
3487 (dummy_frame_pop): Add parameter ptid. Callers updated.
3488 Update comments. Compose dummy_frame_id and pass it to
3490 (dummy_frame_discard): Add parameter ptid.
3491 (dummy_frame_sniffer): Compose dummy_frame_id and call
3492 dummy_frame_id_eq instead of frame_id_eq.
3493 (fprint_dummy_frames): Print ptid.
3494 * dummy-frame.h: Remove comments.
3495 (dummy_frame_push): Add ptid in declaration.
3496 (dummy_frame_pop, dummy_frame_discard): Likewise.
3498 2014-06-26 Tom Tromey <tromey@redhat.com>
3500 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3501 * command.h (error_no_arg): Update.
3503 2014-06-26 Tom Tromey <tromey@redhat.com>
3505 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3506 (do_show_command): Make "arg" const.
3507 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3509 2014-06-26 Tom Tromey <tromey@redhat.com>
3511 * record-full.c (record_full_get_bookmark): Make "args" const.
3512 (record_full_goto_bookmark): Make "raw_bookmark" const.
3513 * record.c (record_goto): New function.
3514 (cmd_record_goto): Use it. Now static.
3515 * record.h (record_goto): Declare.
3516 (cmd_record_goto): Remove declaration.
3517 * target-delegates.c: Rebuild.
3518 * target.h (struct target_ops) <to_get_bookmark,
3519 to_goto_bookmark>: Make parameter const.
3521 2014-06-26 Tom Tromey <tromey@redhat.com>
3523 * defs.h (generic_load): Update.
3524 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3525 * monitor.c (monitor_load): Make "args" const.
3526 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3527 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3529 (mips_load): Make "file" const.
3530 * remote-sim.c (gdbsim_load): Make "args" const.
3531 * remote.c (remote_load): Make "name" const.
3532 * symfile.c (generic_load): Make "args" const.
3533 * target-delegates.c: Rebuild.
3534 * target.c (target_load): Make "arg" const.
3535 (debug_to_load): Make "args" const.
3536 * target.h (struct target_ops) <to_load>: Make parameter const.
3537 (target_load): Update.
3539 2014-06-26 Tom Tromey <tromey@redhat.com>
3542 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3543 (dwarf2_physname, read_partial_die)
3544 (guess_partial_die_structure_name, fixup_partial_die)
3545 (guess_full_die_structure_name, anonymous_struct_prefix)
3546 (dwarf2_name): Use per-BFD obstack.
3548 2014-06-26 Yao Qi <yao@codesourcery.com>
3550 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3551 dummyframe and this_id into inner block below.
3553 2014-06-26 Yao Qi <yao@codesourcery.com>
3555 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3556 with "signal_pass[0]" in the initialization of signal_pass.
3558 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3560 * record-btrace.c (record_btrace_generating_corefile)
3561 (record_btrace_prepare_to_generate_core)
3562 (record_btrace_done_generating_core): New.
3563 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3564 (record_btrace_store_registers, record_btrace_prepare_to_store):
3565 Forward request when generating a core file.
3566 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3567 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3568 to_done_generating_core.
3570 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3572 * target.h (target_ops) <to_prepare_to_generate_core>
3573 <to_done_generating_core>: New.
3574 (target_prepare_to_generate_core, target_done_generating_core): New.
3575 * target.c (target_prepare_to_generate_core)
3576 (target_done_generating_core): New.
3577 * target-delegates.c: Regenerate.
3578 * gcore.c: (write_gcore_file): Rename to ...
3579 (write_gcore_file_1): ...this.
3580 (write_gcore_file): Call target_prepare_to_generate_core
3581 and target_done_generating_core.
3583 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3585 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3586 * gcore.c (write_gcore_file): Free memory returned from
3587 make_corefile_notes.
3588 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3589 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3591 2014-06-24 Yao Qi <yao@codesourcery.com>
3593 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3594 (arm_linux_init_abi): Set skip_trampoline_code with
3595 gdbarch_skip_trampoline_code instead of
3596 find_solib_trampoline_target.
3598 2014-06-24 Yao Qi <yao@codesourcery.com>
3600 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3601 arm_skip_bx_reg returns non-zero.
3603 2014-06-24 Yao Qi <yao@codesourcery.com>
3605 * arm-tdep.c (arm_skip_bx_reg): New function.
3606 (arm_skip_stub): Call arm_skip_bx_reg.
3608 2014-06-23 Don Breazeal <donb@codesourcery.com>
3610 * MAINTAINERS: Add myself as write-after-approval maintainer.
3612 2014-06-23 Pedro Alves <palves@redhat.com>
3614 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3615 DR_CONTROL before setting DR0..DR3.
3616 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3617 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3618 bits of DR_CONTROL related to the debug register slot being
3619 disabled. If all slots are vacant, clear local slowdown as well,
3620 and assert DR_CONTROL is 0.
3622 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3624 * python/lib/gdb/command/xmethods.py
3625 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3626 current progspace only if the string "progspace" matches LOCUS_RE.
3628 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3630 Fix --with-system-readline with readline-6.3 patch 5.
3631 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3632 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3635 2014-06-20 Tom Tromey <tromey@redhat.com>
3637 * dwarf2read.c (dw2_get_real_path): Use correct type in
3639 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3641 2014-06-20 Gary Benson <gbenson@redhat.com>
3643 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3644 * common/glibc_thread_db.h: Likewise.
3645 * common/i386-cpuid.h: Likewise.
3646 * common/i386-gcc-cpuid.h: Likewise.
3647 * common/linux-btrace.h: Likewise.
3648 * common/linux-osdata.h: Likewise.
3649 * common/linux-procfs.h: Likewise.
3650 * common/linux-ptrace.h: Likewise.
3651 * common/mips-linux-watch.h: Likewise.
3652 * common/linux-btrace.c: Moved to nat.
3653 * common/linux-osdata.c: Likewise.
3654 * common/linux-procfs.c: Likewise.
3655 * common/linux-ptrace.c: Likewise.
3656 * common/mips-linux-watch.c: Likewise.
3657 * nat/gdb_thread_db.h: Moved from common.
3658 * nat/glibc_thread_db.h: Likewise.
3659 * nat/i386-cpuid.h: Likewise.
3660 * nat/i386-gcc-cpuid.h: Likewise.
3661 * nat/linux-btrace.c: Likewise.
3662 * nat/linux-btrace.h: Likewise.
3663 * nat/linux-osdata.c: Likewise.
3664 * nat/linux-osdata.h: Likewise.
3665 * nat/linux-procfs.c: Likewise.
3666 * nat/linux-procfs.h: Likewise.
3667 * nat/linux-ptrace.c: Likewise.
3668 * nat/linux-ptrace.h: Likewise.
3669 * nat/mips-linux-watch.c: Likewise.
3670 * nat/mips-linux-watch.h: Likewise.
3671 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3672 (object file files): Reordered.
3673 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3674 of glibc_thread_db.h.
3676 2014-06-20 Gary Benson <gbenson@redhat.com>
3678 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3679 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3680 (i386_dr_low): Likewise.
3681 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3682 (i386_dr_low_set_addr): Likewise.
3683 (i386_dr_low_get_addr): Likewise.
3684 (i386_dr_low_can_set_control): Likewise.
3685 (i386_dr_low_set_control): Likewise.
3686 (i386_dr_low_get_control): Likewise.
3687 (i386_dr_low_get_status): Likewise.
3688 (i386_get_debug_register_length): Likewise.
3689 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3690 (i386_dr_low): Likewise.
3691 * nat/i386-dregs.c (i386-low.h): Remove include.
3692 (i386-nat.h): Likewise.
3693 (nat/i386-dregs.h): New include.
3694 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3695 (i386_dr_low_set_addr): Likewise.
3696 (i386_dr_low_get_addr): Likewise.
3697 (i386_dr_low_can_set_control): Likewise.
3698 (i386_dr_low_set_control): Likewise.
3699 (i386_dr_low_get_control): Likewise.
3700 (i386_dr_low_get_status): Likewise.
3701 (i386_get_debug_register_length): Likewise.
3702 (debug_hw_points): Likewise.
3704 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3706 * Makefile.in (SFILES): Add d-exp.y.
3707 (YYFILES): Add d-exp.c.
3708 (YYOBJ): Add d-exp.o.
3709 (local-maintainer-clean): Delete d-exp.c.
3710 * d-exp.y: New file.
3711 * d-lang.h (d_parse): New declaration.
3712 (d_error): New declaration.
3713 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3714 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3715 PREC_ORDER operators.
3716 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3718 2014-06-19 Yao Qi <yao@codesourcery.com>
3720 * gdbthread.h (any_running): Remove the declaration.
3721 * thread.c (any_running): Remove.
3723 2014-06-19 Yao Qi <yao@codesourcery.com>
3725 * gdbthread.h (struct thread_info) <state>: Change its type to
3726 'enum thread_state'. Update comments.
3728 2014-06-19 Pedro Alves <palves@redhat.com>
3730 * gdbthread.h (ALL_THREADS): Delete.
3731 (ALL_NON_EXITED_THREADS): New macro.
3732 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3733 instead of ALL_THREADS.
3734 * infrun.c (find_thread_needs_step_over)
3735 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3736 instead of ALL_THREADS.
3737 * record-btrace.c (record_btrace_open)
3738 (record_btrace_stop_recording, record_btrace_close)
3739 (record_btrace_is_replaying, record_btrace_resume)
3740 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3741 * remote.c (append_pending_thread_resumptions): Likewise.
3742 * thread.c (thread_apply_all_command): Likewise.
3744 2014-06-19 Gary Benson <gbenson@redhat.com>
3746 * i386-nat.c (i386_stopped_by_watchpoint):
3747 Use i386_dr_stopped_by_watchpoint.
3748 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3749 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3751 2014-06-19 Gary Benson <gbenson@redhat.com>
3753 * nat/i386-dregs.c: New file.
3754 * Makefile.in (i386-dregs.o): New rule.
3755 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3756 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3757 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3758 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3759 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3760 * config/i386/go32.mh (NATDEPFILES): Likewise.
3761 * config/i386/linux.mh (NATDEPFILES): Likewise.
3762 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3763 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3764 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3765 * i386-nat.h (debug_hw_points): New declaration.
3766 * i386-nat.c (breakpoint.h): Remove include.
3767 (command.h): Likewise.
3768 (target.h): Likewise.
3769 (gdb_assert.h): Likewise.
3770 (debug_hw_points): Made nonstatic.
3771 (debug_printf): Now in i386-dregs.c.
3772 (TARGET_HAS_DR_LEN_8): Likewise.
3773 (DR_CONTROL_SHIFT): Likewise.
3774 (DR_CONTROL_SIZE): Likewise.
3775 (DR_RW_EXECUTE): Likewise.
3776 (DR_RW_WRITE): Likewise.
3777 (DR_RW_READ): Likewise.
3778 (DR_RW_IORW): Likewise.
3779 (DR_LEN_1): Likewise.
3780 (DR_LEN_2): Likewise.
3781 (DR_LEN_4): Likewise.
3782 (DR_LEN_8): Likewise.
3783 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3784 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3785 (DR_ENABLE_SIZE): Likewise.
3786 (DR_LOCAL_SLOWDOWN): Likewise.
3787 (DR_GLOBAL_SLOWDOWN): Likewise.
3788 (DR_CONTROL_RESERVED): Likewise.
3789 (I386_DR_CONTROL_MASK): Likewise.
3790 (I386_DR_VACANT): Likewise.
3791 (I386_DR_LOCAL_ENABLE): Likewise.
3792 (I386_DR_GLOBAL_ENABLE): Likewise.
3793 (I386_DR_DISABLE): Likewise.
3794 (I386_DR_SET_RW_LEN): Likewise.
3795 (I386_DR_GET_RW_LEN): Likewise.
3796 (I386_DR_WATCH_HIT): Likewise.
3797 (i386_wp_op_t): Likewise.
3798 (i386_show_dr): Likewise.
3799 (i386_length_and_rw_bits): Likewise.
3800 (i386_insert_aligned_watchpoint): Likewise.
3801 (i386_remove_aligned_watchpoint): Likewise.
3802 (i386_handle_nonaligned_watchpoint): Likewise.
3803 (i386_update_inferior_debug_regs): Likewise.
3804 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3805 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3806 (i386_region_ok_for_watchpoint):
3807 Use i386_dr_region_ok_for_watchpoint.
3808 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3810 2014-06-19 Gary Benson <gbenson@redhat.com>
3812 * i386-nat.c (i386_insert_hw_breakpoint): Use
3813 i386_insert_watchpoint.
3814 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3816 2014-06-19 Gary Benson <gbenson@redhat.com>
3818 * i386-nat.c (i386_dr_show): Renamed to
3819 i386_show_dr and made static. All uses updated.
3820 (i386_dr_length_and_rw_bits): Renamed to
3821 i386_length_and_rw_bits and made static.
3823 (i386_dr_insert_aligned_watchpoint): Renamed to
3824 i386_insert_aligned_watchpoint and made static.
3826 (i386_dr_remove_aligned_watchpoint): Renamed to
3827 i386_remove_aligned_watchpoint and made static.
3829 (i386_dr_update_inferior_debug_regs): Renamed to
3830 i386_update_inferior_debug_regs and made static.
3832 * nat/i386-dregs.h (i386_dr_show): Removed.
3833 (i386_dr_length_and_rw_bits): Likewise.
3834 (i386_dr_insert_aligned_watchpoint): Likewise.
3835 (i386_dr_remove_aligned_watchpoint): Likewise.
3836 (i386_dr_update_inferior_debug_regs): Likewise.
3838 2014-06-19 Gary Benson <gbenson@redhat.com>
3840 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3841 * configure: Regenerate.
3842 * config.in: Likewise.
3843 * main.c (signal.h): New include.
3844 (setup_alternate_signal_stack): New function.
3845 (captured_main): Call the above.
3846 * cp-support.c (signal.h): New include.
3847 (catch_demangler_crashes): New flag.
3848 (SIGJMP_BUF): New define.
3849 (SIGSETJMP): Likewise.
3850 (SIGLONGJMP): Likewise.
3851 (gdb_demangle_jmp_buf): New static global.
3852 (gdb_demangle_attempt_core_dump): Likewise.
3853 (gdb_demangle_signal_handler): New function.
3854 (gdb_demangle): If catch_demangler_crashes is set, install the
3855 above signal handler before calling bfd_demangle, and restore
3856 the original signal handler afterwards. Display the offending
3857 symbol and call demangler_warning the first time a segmentation
3859 (_initialize_cp_support): New maint set/show command.
3861 2014-06-19 Gary Benson <gbenson@redhat.com>
3863 * utils.h (resource_limit_kind): New enum.
3864 (can_dump_core): New declaration.
3865 (warn_cant_dump_core): Likewise.
3866 (dump_core): Likewise.
3867 * utils.c (dump_core): Made nonstatic. Added new
3868 parameter "limit_kind".
3869 (can_dump_core): Made nonstatic. Moved printing code to...
3870 (warn_cant_dump_core): New function.
3871 (can_dump_core_warn): Likewise.
3872 (internal_vproblem): Replace calls to can_dump_core with
3873 calls to can_dump_core_warn. Supply new argument to each.
3875 2014-06-19 Gary Benson <gbenson@redhat.com>
3877 * utils.h (demangler_vwarning): New declaration.
3878 (demangler_warning): Likewise.
3879 * utils.c (struct internal_problem)
3880 <user_settable_should_quit>: New field.
3881 <user_settable_should_dump_core>: Likewise
3882 (internal_error_problem): Add values for above new fields.
3883 (internal_warning_problem): Likewise.
3884 (demangler_warning_problem): New static global.
3885 (demangler_vwarning): New function.
3886 (demangler_warning): Likewise.
3887 (add_internal_problem_command): Selectively add commands.
3888 (_initialize_utils): New internal problem command.
3889 * maint.c (maintenance_demangler_warning): New function.
3890 (_initialize_maint_cmds): New command.
3892 2014-06-18 Tom Tromey <tromey@redhat.com>
3894 * f-valprint.c (info_common_command_for_block): Update.
3895 * symtab.h (struct general_symbol_info) <common_block>: Now
3898 2014-06-18 Tom Tromey <tromey@redhat.com>
3900 * symtab.h (struct symtab) <blockvector>: Now const.
3901 * ada-lang.c (ada_add_global_exceptions): Update.
3902 * buildsym.c (augment_type_symtab): Update.
3903 * dwarf2read.c (dw2_lookup_symbol): Update.
3904 * jit.c (finalize_symtab): Update.
3905 * jv-lang.c (add_class_symtab_symbol): Update.
3906 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3908 * objfiles.c (objfile_relocate1): Update.
3909 * psymtab.c (lookup_symbol_aux_psymtabs)
3910 (maintenance_check_psymtabs): Update.
3911 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3913 * spu-tdep.c (spu_catch_start): Update.
3914 * symmisc.c (dump_symtab_1): Update.
3915 * symtab.c (lookup_global_symbol_from_objfile)
3916 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3917 (basic_lookup_transparent_type_quick)
3918 (basic_lookup_transparent_type, find_pc_sect_symtab)
3919 (find_pc_sect_line, search_symbols): Update.
3920 * block.c (find_block_in_blockvector): Make "bl" const.
3921 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3923 (blockvector_contains_pc): Make "bv" const.
3924 (block_for_pc_sect): Update.
3925 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3926 (blockvector_contains_pc): Update.
3927 * breakpoint.c (resolve_sal_pc): Update.
3928 * inline-frame.c (block_starting_point_at): Update.
3930 2014-06-18 Tom Tromey <tromey@redhat.com>
3932 * completer.c (complete_line): Make "line_buffer" const.
3933 * completer.h (complete_line): Update.
3935 2014-06-18 Tom Tromey <tromey@redhat.com>
3937 * symtab.c (add_macro_name): Remove unneeded cast.
3939 2014-06-18 Tom Tromey <tromey@redhat.com>
3941 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3942 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3944 2014-06-18 Tom Tromey <tromey@redhat.com>
3946 * probe.c (info_probes_for_ops): Make "arg" const.
3947 * probe.h (info_probes_for_ops): Update.
3949 2014-06-18 Tom Tromey <tromey@redhat.com>
3951 * varobj.c (varobj_create): Update.
3952 * valops.c (value_of_this): Update.
3953 * tracepoint.c (add_local_symbols, scope_info): Update.
3954 * symtab.h (struct general_symbol_info) <block>: Now const.
3955 * symtab.c (skip_prologue_sal)
3956 (default_make_symbol_completion_list_break_on)
3957 (skip_prologue_using_sal): Update.
3958 * stack.h (iterate_over_block_locals)
3959 (iterate_over_block_local_vars): Update.
3960 * stack.c (print_frame_args): Update.
3961 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3963 (get_selected_block): Make return type const.
3964 * python/py-frame.c (frapy_block): Update.
3965 * python/py-block.c (gdbpy_block_for_pc): Update.
3966 * p-exp.y (%union) <bval>: Now const.
3967 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3968 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3969 * m2-exp.y (%union) <bval>: Now const.
3970 * linespec.c (get_current_search_block): Make return type const.
3971 (create_sals_line_offset, find_label_symbols): Update.
3972 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3974 (block_starting_point_at): Make "block" const.
3975 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3976 (check_exception_resume): Update.
3977 * guile/scm-frame.c (gdbscm_frame_block): Update.
3978 * guile/scm-block.c (gdbscm_lookup_block): Update.
3979 * frame.h (get_frame_block): Update.
3980 (get_selected_block): Make return type const.
3981 * frame.c (frame_id_inner): Update.
3982 * f-valprint.c (info_common_command_for_block)
3983 (info_common_command): Update.
3984 * dwarf2loc.c (dwarf2_find_location_expression)
3985 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3986 (locexpr_describe_location_piece): Update.
3987 * c-exp.y (%union) <bval>: Now const.
3988 * breakpoint.c (resolve_sal_pc): Update.
3989 * blockframe.c (get_frame_block):Make return type const.
3990 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3991 (block_innermost_frame): Update.
3992 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3993 (block_for_pc, block_for_pc_sect): Update.
3994 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3996 (block_for_pc_sect, block_for_pc): Make return type const.
3997 * ax-gdb.c (gen_expr): Update.
3998 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3999 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4000 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4001 (ada_read_var_value): Update.
4002 * ada-exp.y (struct name_info) <block>: Now const.
4004 (block_lookup): Constify.
4006 2014-06-18 Gary Benson <gbenson@redhat.com>
4008 * nat/i386-dregs.h: New file.
4009 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4010 * i386-nat.h (i386-dregs.h): New include.
4011 (DR_FIRSTADDR): Now in i386-dregs.h.
4012 (DR_LASTADDR): Likewise.
4013 (DR_NADDR): Likewise.
4014 (DR_STATUS): Likewise.
4015 (DR_CONTROL): Likewise.
4016 (i386_debug_reg_state): Likewise.
4017 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4019 2014-06-18 Don Breazeal <donb@codesourcery.com>
4021 * breakpoint.c (set_longjmp_breakpoint): Call
4022 momentary_breakpoint_from_master with additional argument.
4023 (set_longjmp_breakpoint_for_call_dummy): Call
4024 momentary_breakpoint_from_master with additional argument.
4025 (set_std_terminate_breakpoint): Call
4026 momentary_breakpoint_from_master with additional argument.
4027 (momentary_breakpoint_from_master): Add argument to function
4028 definition and use it to initialize structure member flag.
4029 (clone_momentary_breakpoint): Call
4030 momentary_breakpoint_from_master with additional argument.
4031 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4032 member flags set in momentary_breakpoint_from_master.
4034 2014-06-18 Gary Benson <gbenson@redhat.com>
4036 * i386-nat.c (i386_show_dr): Renamed to
4037 i386_dr_show and made nonstatic. All uses updated.
4038 (i386_length_and_rw_bits): Renamed to
4039 i386_dr_length_and_rw_bits and made nonstatic.
4041 (i386_insert_aligned_watchpoint): Renamed to
4042 i386_dr_insert_aligned_watchpoint and made nonstatic.
4044 (i386_remove_aligned_watchpoint): Renamed to
4045 i386_dr_remove_aligned_watchpoint and made nonstatic.
4047 (i386_update_inferior_debug_regs): Renamed to
4048 i386_dr_update_inferior_debug_regs and made nonstatic.
4051 2014-06-18 Gary Benson <gbenson@redhat.com>
4053 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4054 (i386_dr_low_can_set_control): Likewise.
4055 (i386_dr_low_set_addr): Likewise.
4056 (i386_dr_low_set_control): Likewise.
4057 (i386_dr_low_get_addr): Likewise.
4058 (i386_dr_low_get_status): Likewise.
4059 (i386_dr_low_get_control): Likewise.
4060 (i386_insert_aligned_watchpoint): Use new macros.
4061 (i386_update_inferior_debug_regs): Likewise.
4062 (i386_stopped_data_address): Likewise.
4064 2014-06-18 Gary Benson <gbenson@redhat.com>
4066 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4067 New parameter. All uses updated.
4069 2014-06-18 Gary Benson <gbenson@redhat.com>
4071 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4074 2014-06-18 Gary Benson <gbenson@redhat.com>
4076 * i386-nat.c (debug_printf): New macro.
4077 (i386_get_debug_register_length): Likewise.
4078 (TARGET_HAS_DR_LEN_8): Use above macro.
4079 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4080 and printf_unfiltered. Use phex to format values.
4082 2014-06-18 Gary Benson <gbenson@redhat.com>
4084 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4087 2014-06-18 Gary Benson <gbenson@redhat.com>
4089 * i386-nat.c: Comment changes.
4091 2014-06-18 Gary Benson <gbenson@redhat.com>
4093 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4095 2014-06-18 Gary Benson <gbenson@redhat.com>
4097 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4098 (i386_insert_aligned_watchpoint): Likewise.
4099 (i386_remove_aligned_watchpoint): Likewise.
4100 (i386_handle_nonaligned_watchpoint): Likewise.
4102 2014-06-18 Gary Benson <gbenson@redhat.com>
4104 * i386-nat.c: Whitespace changes.
4106 2014-06-17 Samuel Bronson <naesten@gmail.com>
4108 * MAINTAINERS: Update Roland McGrath's email address.
4109 Thanks to Sergio Durigan Junior for pointing out that he left
4110 Red Hat a while ago, and giving me a current address.
4112 2014-06-17 Tom Tromey <tromey@redhat.com>
4114 * utils.h (savestring): Remove declaration.
4116 2014-06-17 Tom Tromey <tromey@redhat.com>
4118 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4120 2014-06-16 Keith Seitz <keiths@redhat.com>
4123 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4124 to update the varobj if inferior_ptid is null_ptid.
4126 2014-06-16 Tom Tromey <tromey@redhat.com>
4128 * target.h (struct target_ops) <to_info_proc>: Make parameter
4130 (target_info_proc): Update.
4131 * target.c (target_info_proc): Make "args" const.
4132 * procfs.c (procfs_info_proc): Update.
4133 * linux-tdep.c (linux_info_proc): Update.
4134 (linux_core_info_proc_mappings): Make "args" const.
4135 (linux_core_info_proc): Update.
4136 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4137 * gdbarch.c: Rebuild.
4138 * gdbarch.h: Rebuild.
4139 * corelow.c (core_info_proc): Update.
4141 2014-06-16 Tom Tromey <tromey@redhat.com>
4143 * target.h (struct target_ops) <to_disconnect>: Make parameter
4145 (target_disconnect): Update.
4146 * target.c (target_disconnect): Make "args" const.
4147 * target-delegates.c: Rebuild.
4148 * remote.c (remote_disconnect): Update.
4149 * record.h (record_disconnect): Update.
4150 * record.c (record_disconnect): Update.
4151 * inf-child.c (inf_child_disconnect): Update.
4153 2014-06-16 Tom Tromey <tromey@redhat.com>
4155 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4156 * target.c (debug_to_rcmd, default_rcmd): Update.
4157 * target-delegates.c: Rebuild.
4158 * remote.c (remote_rcmd): Update.
4159 * monitor.c (monitor_rcmd): Update.
4161 2014-06-16 Pedro Alves <palves@redhat.com>
4163 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4164 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4165 have OBJF_SHARED set.
4166 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4167 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4168 instead of OBJF_USERLOADED.
4169 * objfiles.h (OBJF_SHARED): Update comment.
4170 (userloaded_objfile_contains_address_p): Rename to ...
4171 (shared_objfile_contains_address_p): ... this, and update
4173 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4175 (remove_symbol_file_command): Skip objfiles that don't have
4178 2014-06-16 Tom Tromey <tromey@redhat.com>
4180 * minsyms.h (prim_record_minimal_symbol)
4181 (prim_record_minimal_symbol_and_info): Update comments.
4183 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4185 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4186 or --without-guile, according to how GDB was built.
4188 2014-06-13 Tom Tromey <tromey@redhat.com>
4190 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4192 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4194 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4196 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4197 help_list.Pass all_commands, not -1, to help_list.
4198 * cli/cli-dump.c (dump_command, append_command)
4199 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4200 (binary_dump_command, binary_append_command): Pass all_commands,
4201 not -1, to help_list.
4202 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4204 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4206 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4208 * top.c (set_history): Pass all_commands, not -1, to help_list.
4209 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4210 all_commands, not -1, to help_list.
4211 * symfile.c (overlay_command): Pass all_commands, not -1, to
4213 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4215 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4217 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4219 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4220 not -1, to help_list.
4221 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4222 not -1, to help_list.
4223 * maint.c (maintenance_command, maintenance_info_command)
4224 (maintenance_print_command, maintenance_set_cmd): Pass
4225 all_commands, not -1, to help_list.
4226 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4228 * language.c (set_check): Pass all_commands, not -1, to help_list.
4229 * infcmd.c (unset_command): Pass all_commands, not -1, to
4231 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4233 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4235 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4237 * breakpoint.c (save_command): Pass all_commands, not -1, to
4239 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4240 all_commands, not -1, to help_list.
4242 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4244 * regcache.c (struct register_to_invalidate): New structure.
4245 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4247 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4249 2014-06-12 Yao Qi <yao@codesourcery.com>
4251 * varobj.c (varobj_get_num_children): Call
4252 varobj_is_dynamic_p.
4253 (varobj_list_children): Likewise.
4254 (varobj_update): Likewise. Update comments.
4256 2014-06-12 Yao Qi <yao@codesourcery.com>
4258 * varobj.c (varobj_pretty_printed_p): Rename to ...
4259 (varobj_is_dynamic_p): ... this. New function.
4260 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4261 (varobj_is_dynamic_p): Declare.
4262 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4263 (mi_print_value_p, varobj_update_one): Likewise.
4265 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4266 Yao Qi <yao@codesourcery.com>
4268 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4269 (varobj_get_iterator): Wrap up code for pretty-printer by
4270 "#if HAVE_PYTHON" and "#endif".
4271 (update_dynamic_varobj_children): Likewise.
4273 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4274 Yao Qi <yao@codesourcery.com>
4276 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4277 gdb_python_initialized is false. Move some code from varobj.c.
4278 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4279 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4280 (struct varobj_item): Moved to varobj-iter.h".
4281 (varobj_clear_saved_item): New function.
4282 (update_dynamic_varobj_children): Move python-related code to
4284 (free_variable): Call varobj_clear_saved_item and
4287 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4288 Yao Qi <yao@codesourcery.com>
4290 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4291 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4292 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4293 (py-varobj.o): New rule.
4294 * python/py-varobj.c: New file.
4295 * python/python-internal.h (py_varobj_get_iterator): Declare.
4296 * varobj-iter.h: New file.
4297 * varobj.c: Include "varobj-iter.h"
4298 (struct varobj) <child_iter>: Change its type from "PyObject *"
4299 to "struct varobj_iter *".
4300 <saved_item>: Likewise.
4301 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4302 [HAVE_PYTHON] (varobj_get_iterator): New function.
4303 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4304 python-specific code to python/py-varobj.c.
4305 (install_visualizer): Call varobj_iter_delete instead of
4307 * varobj.h (varobj_ensure_python_env): Declare.
4309 2014-06-12 Yao Qi <yao@codesourcery.com>
4311 * varobj.c (struct varobj_item): New structure.
4312 (create_child_with_value): Update declaration.
4313 (varobj_add_child): Replace arguments 'name' and 'value' with
4314 'item'. All callers updated.
4315 (install_dynamic_child): Likewise.
4316 (update_dynamic_varobj_children): Likewise.
4317 (varobj_add_child): Likewise.
4318 (create_child_with_value): Likewise.
4320 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4322 * NEWS: Create a new section for the next release branch.
4323 Rename the section of the current branch, now that it has
4326 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4328 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4329 * version.in: Bump version to 7.8.50.DATE-cvs.
4331 2014-06-11 Pedro Alves <palves@redhat.com>
4334 * ser-mingw.c (net_windows_socket_check_pending): New function.
4335 (net_windows_select_thread): Ignore spurious wakeups. Use
4336 net_windows_socket_check_pending.
4337 (net_windows_wait_handle): Check for pending events with
4338 ioctlsocket, through net_windows_socket_check_pending, instead of
4339 checking the socket's event.
4341 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4343 * python/python-internal.h (gdb_PyObject_GetAttrString)
4344 (gdb_PyObject_HasAttrString): New inline function definitions.
4345 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4346 char * of the second argument to PyObject_GetAttrString.
4348 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4350 * serial.c (serial_write): Fix index of character to be printed
4351 in call to serial_logchar when serial debug traces are enabled.
4353 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4355 * gdbtypes (resolve_dynamic_range): Add function description.
4357 2014-06-09 Pedro Alves <palves@redhat.com>
4359 * linux-nat.c (linux_child_follow_fork): Initialize status with
4360 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4361 inner block. Only pass the signal to PTRACE_DETACH if in pass
4364 2014-06-09 Gary Benson <gbenson@redhat.com>
4366 * common/signals.c (gdb_signal_from_host): Reorder to separate
4367 the always-available ANSI-standard signals from the signals that
4369 (do_gdb_signal_to_host): Likewise.
4370 * proc-events.c (signal_table): Likewise.
4372 2014-06-08 Hui Zhu <hui@codesourcery.com>
4374 * common/linux-ptrace.c (linux_disable_event_reporting): New
4376 * common/linux-ptrace.h (linux_disable_event_reporting): New
4378 * linux-nat.c (linux_child_follow_fork): Do a single step before
4381 2014-06-07 Keith Seitz <keiths@redhat.com>
4385 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4386 from symbol_matches_domain in symtab.c. All local callers
4387 of symbol_matches_domain updated.
4388 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4389 search STRUCT_DOMAIN.
4390 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4391 independently. standard_lookup will do that automatically.
4392 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4393 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4394 (cp_lookup_symbol_in_namespace): Likewise.
4395 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4396 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4397 may return a STRUCT_DOMAIN match.
4398 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4399 * cp-support.c: Include language.h.
4400 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4402 * psymtab.c (match_partial_symbol): Compare the requested
4403 domain with the symbol's domain directly.
4404 (lookup_partial_symbol): Likewise.
4405 * symtab.c (lookup_symbol_in_language): Explain when/why
4406 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4407 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4408 appropriate languages.
4409 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4410 and moved to ada-lang.c
4411 (lookup_block_symbol): Explain that this function only returns
4412 symbol matching the requested DOMAIN.
4413 Compare the requested domain with the symbol's domain directly.
4414 (iterate_over_symbols): Compare the requested domain with the
4415 symbol's domain directly.
4416 * symtab.h (symbol_matches_domain): Remove.
4418 2014-06-06 Doug Evans <xdje42@gmail.com>
4420 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4421 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4422 (gdbscm_guile_version_is_at_least): Declare.
4423 (gdbscm_scm_string_to_int): Declare.
4424 * guile/guile.c (gdbscm_guile_major_version): New global.
4425 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4426 (guile_datadir): New static global.
4427 (gdbscm_guile_data_directory): New function.
4428 (initialize_scheme_side): Update.
4429 (misc_guile_functions): Add guile-data-directory.
4430 (initialize_gdb_module): Fetch guile version number.
4431 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4432 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4433 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4434 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4436 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4437 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4438 * guile/scm-value.c (gdbscm_value_to_string): Only call
4439 scm_port_conversion_strategy if Guile version >= 2.0.6.
4441 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4443 * main.c (print_gdb_help): Add -q and --silent.
4445 2014-06-06 Gary Benson <gbenson@redhat.com>
4447 * common/signals.c: Remove preprocessor conditionals for
4448 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4449 SIGSEGV and SIGTERM.
4450 * proc-events.c: Likewise.
4452 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4454 * symfile.c (symfile_free_objfile): Remove restriction to
4456 * symfile-mem.c (symbol_file_add_from_memory): Call
4457 add_target_sections_of_objfile.
4459 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4461 * guile/scm-value.c (gdbscm_history_append_x): Use
4462 'vlscm_get_value_smob_arg_unsafe' instead of
4463 'vlscm_scm_to_value'.
4465 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4468 * utils.c (printchar): Don't escape at all if quoter is NUL.
4469 Update function documentation to clarify effect of parameter
4471 * remote.c (escape_buffer): Pass '\\' as the quoter to
4472 fputstrn_unfiltered.
4473 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4474 generate the output.
4475 (mi_solib_unloaded): Same.
4477 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4479 * development.sh: Delete.
4480 * Makefile.in (config.status): Adjust dependency on development.sh.
4481 * configure.ac: Adjust development.sh source call.
4482 * configure: Regenerate.
4484 2014-06-04 Doug Evans <xdje42@gmail.com>
4486 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4487 is_scheme_bkpt, spec.
4488 (bpscm_make_breakpoint_smob): Initialize new members.
4489 (gdbscm_create_breakpoint_x): Split into two ...
4490 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4491 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4492 (scheme_function breakpoint_functions): Update.
4493 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4494 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4495 register-breakpoint!.
4497 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4500 * mem-break.c (z_type_supported): Return zero if
4501 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4503 2014-06-04 Tom Tromey <tromey@redhat.com>
4505 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4506 value_from_contents_and_address_unresolved.
4507 (ada_template_to_fixed_record_type_1): Likewise.
4508 (ada_which_variant_applies): Likewise.
4509 * value.h (value_from_contents_and_address_unresolved): Declare.
4510 * value.c (value_from_contents_and_address_unresolved): New
4512 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4513 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4514 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4516 2014-06-04 Tom Tromey <tromey@redhat.com>
4518 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4520 2014-06-04 Tom Tromey <tromey@redhat.com>
4522 * procfs.c (procfs_attach): Make "args" const.
4523 * windows-nat.c (windows_attach): Make "args" const.
4524 * nto-procfs.c (procfs_attach): Make "args" const.
4525 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4526 * go32-nat.c (go32_attach): Make "args" const.
4527 * gnu-nat.c (gnu_attach): Make "args" const.
4528 * darwin-nat.c (darwin_attach): Make "args" const.
4529 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4530 * linux-nat.c (linux_nat_attach): Make "args" const.
4531 * remote.c (extended_remote_attach_1, extended_remote_attach):
4533 * target.h (struct target_ops) <to_attach>: Make "args" const.
4534 (find_default_attach): Likewise.
4535 * utils.c (parse_pid_to_attach): Make "args" const.
4536 * utils.h (parse_pid_to_attach): Update.
4538 2014-06-04 Tom Tromey <tromey@redhat.com>
4540 * target-delegates.c: Rebuild.
4541 * target.c (default_thread_address_space): New function.
4542 (target_thread_address_space): Simplify.
4543 * target.h (struct target_ops) <to_thread_address_space>: Add
4544 TARGET_DEFAULT_FUNC.
4546 2014-06-04 Doug Evans <xdje42@gmail.com>
4548 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4550 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4552 * record-btrace.c: Include event-loop.h and inf-loop.h.
4553 (record_btrace_resume_exec_dir)
4554 (record_btrace_async_inferior_event_handler)
4555 (record_btrace_handle_async_inferior_event): New.
4556 (record_btrace_open): Create async event handler.
4557 (record_btrace_close): Delete async event handler.
4558 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4559 Mark async event handler.
4560 (record_btrace_execution_direction): New.
4561 (init_record_btrace_ops): Initialize to_execution_direction.
4563 2014-06-03 Doug Evans <xdje42@gmail.com>
4565 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4566 (gdbscm_make_parameter): Ditto.
4568 2014-06-03 Doug Evans <dje@google.com>
4570 * exec.c (exec_close_1): Call clear_section_table instead of
4571 resize_section_table.
4572 (clear_section_table): New function.
4573 (resize_section_table): Make static. Rename arg num_added to
4575 * exec.h (clear_section_table): Declare.
4576 (resize_section_table): Delete.
4577 * progspace.c (release_program_space): Call clear_section_table
4578 instead of resize_section_table.
4580 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4582 * NEWS (Python Scripting): Add entry about the new xmethods
4585 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4587 * python/py-xmethods.c: New file.
4588 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4589 (objfpy_dealloc): XDECREF on the new xmethods field.
4590 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4592 (objfpy_get_xmethods): New function.
4593 (objfile_getset): New entry 'xmethods'.
4594 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4595 (pspy_dealloc): XDECREF on the new xmethods field.
4596 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4598 (pspy_get_xmethods): New function.
4599 (pspace_getset): New entry 'xmethods'.
4600 * python/python-internal.h: Add declarations for new functions.
4601 * python/python.c (_initialize_python): Invoke
4602 gdbpy_initialize_xmethods.
4603 * python/lib/gdb/__init__.py (xmethods): New
4605 * python/lib/gdb/xmethod.py: New file.
4606 * python/lib/gdb/command/xmethods.py: New file.
4608 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4610 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4611 best match method returned by find_overload_match is an xmethod.
4612 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4613 the best matching operator returned by find_overload_match is an
4615 * valops.c: #include "extension.h".
4616 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4617 Return void. The list of matching source methods is returned in
4618 "fn_list" and a vector of matching debug method workers is
4619 returned in "xm_worker_vec". Update all callers.
4620 (value_find_oload_method_list): Likewise.
4621 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4622 non-NULL, then the index of the best matching method in this
4623 vector is returned. Update all callers.
4624 (find_overload_match): Include xmethods while performing overload
4627 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4629 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4630 * extension-priv.h (struct extension_language_ops): Add the
4632 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4633 get_matching_xmethod_workers, get_xmethod_argtypes,
4634 invoke_xmethod, free_xmethod_worker,
4635 free_xmethod_worker_vec): New functions.
4636 * extension.h: #include "common/vec.h".
4637 New function declarations.
4638 (struct xmethod_worker): New struct.
4639 (VEC (xmethod_worker_ptr)): New vector type.
4640 (xmethod_worker_ptr): New typedef.
4641 (xmethod_worker_vec): Likewise.
4642 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4644 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4645 (struct builtin_type): New field "xmethod".
4646 * valarith.c (value_ptradd): Assert that the value argument is not
4648 * valops.c (value_must_coerce_to_target): Return 0 for
4649 lval_xcallable values.
4650 * value.c (struct value): New field XM_WORKER in the field
4652 (value_address, value_raw_address): Return 0 for lval_xcallable
4654 (set_value_address): Assert that the value is not an
4656 (value_free): Free the associated xmethod worker when freeing
4657 lval_xcallable values.
4658 (set_value_component_location): Assert that the WHOLE value is not
4660 (value_of_xmethod, call_xmethod): New functions.
4661 * value.h: Declare "struct xmethod_worker".
4662 Declare new functions value_of_xmethod, call_xmethod.
4664 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4665 Pedro Alves <palves@redhat.com>
4667 PR breakpoints/17000
4668 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4669 New function, extracted from software_breakpoint_inserted_here_p.
4670 (software_breakpoint_inserted_here_p): Replace factored out code
4671 by call to find_non_raw_software_breakpoint_inserted_here.
4672 (bp_target_info_copy_insertion_state): New function.
4673 (bkpt_insert_location): Handle the case of a single-step
4674 breakpoint already inserted at the same address.
4675 (bkpt_remove_location): Handle the case of a single-step
4676 breakpoint still inserted at the same address.
4677 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4678 breakpoint already inserted at the same address.
4679 (deprecated_remove_raw_breakpoint): Handle the case of a
4680 non-raw breakpoint still inserted at the same address.
4681 (find_single_step_breakpoint): New function, extracted from
4682 single_step_breakpoint_inserted_here_p.
4683 (find_single_step_breakpoint): New function,
4684 factored out from single_step_breakpoint_inserted_here_p.
4685 (single_step_breakpoint_inserted_here_p): Reimplement.
4687 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4689 Pushed by Joel Brobecker <brobecker@adacore.com>
4690 * source.c (show_substitute_path_command): Fix display of matching
4693 2014-06-03 Gary Benson <gbenson@redhat.com>
4695 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4697 2014-06-02 Doug Evans <xdje42@gmail.com>
4699 Add parameter support for Guile.
4700 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4701 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4702 (scm-param.o): New rule.
4703 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4704 (gdbscm_misc_error): Declare.
4705 (gdbscm_canonicalize_command_name): Declare.
4706 (gdbscm_scm_to_host_string): Declare.
4707 (gdbscm_scm_from_host_string): Declare.
4708 (gdbscm_initialize_parameters): Declare.
4709 * guile/guile.c (initialize_gdb_module): Call
4710 gdbscm_initialize_parameters.
4711 * guile/lib/gdb.scm: Export parameter symbols.
4712 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4713 cmdscm_canonicalize_name and made public. All callers updated.
4714 * guile/scm-exception.c (gdbscm_misc_error): New function.
4715 * guile/scm-param.c: New file.
4716 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4717 (gdbscm_scm_to_host_string): New function.
4718 (gdbscm_scm_from_host_string): New function.
4719 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4721 2014-06-02 Doug Evans <xdje42@gmail.com>
4723 Add command support for Guile.
4724 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4725 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4726 (scm-cmd.o): New rule.
4727 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4728 (gdbscm_user_error_p): Declare.
4729 (gdbscm_parse_command_name): Declare.
4730 (gdbscm_valid_command_class_p): Declare.
4731 (gdbscm_initialize_commands): Declare.
4732 * guile/guile.c (initialize_gdb_module): Call
4733 gdbscm_initialize_commands.
4734 * guile/lib/gdb.scm: Export command symbols.
4735 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4736 (throw-user-error): New function.
4737 * guile/scm-cmd.c: New file.
4738 * guile/scm-exception.c (user_error_symbol): New static global.
4739 (gdbscm_user_error_p): New function.
4740 (gdbscm_initialize_exceptions): Set user_error_symbol.
4741 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4743 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4745 * top.c (command_loop): Handle comments here...
4746 (command_line_input): ... not here.
4748 2014-06-02 Doug Evans <xdje42@gmail.com>
4750 Add progspace support for Guile.
4751 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4752 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4753 (scm-progspace.o): New rule.
4754 * guile/guile-internal.h (pspace_smob): New typedef.
4755 (psscm_pspace_smob_pretty_printers): Declare.
4756 (psscm_pspace_smob_from_pspace): Declare.
4757 (psscm_scm_from_pspace): Declare.
4758 * guile/guile.c (initialize_gdb_module): Call
4759 gdbscm_initialize_pspaces.
4760 * guile/lib/gdb.scm: Export progspace symbols.
4761 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4763 (append-pretty-printer!): Ditto.
4764 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4766 * guile/scm-progspace.c: New file.
4768 2014-06-03 Alan Modra <amodra@gmail.com>
4770 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4771 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4773 2014-06-02 Doug Evans <dje@google.com>
4775 Add support for skeletonless type units.
4776 * dwarf2read.c (struct dwarf2_per_objfile): New member
4777 n_allocated_type_units.
4778 (struct dwarf2_per_objfile) <tu_stats>: New member
4779 nr_all_type_units_reallocs.
4780 (create_signatured_type_table_from_index): Initialize
4781 n_allocated_type_units
4782 (create_all_type_units): Ditto.
4783 (add_type_unit): Move up in file. New arg slot.
4784 All callers updated. Increase space for all_type_units more
4786 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4787 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4788 (lookup_dwp_signatured_type): Ditto.
4789 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4790 All callers updated.
4791 (build_type_psymtabs_1): Leave type_unit_groups as
4792 NULL if no TUs present.
4793 (print_tu_stats): New function.
4794 (process_skeletonless_type_unit): New function.
4795 (process_dwo_file_for_skeletonless_type_units): New
4797 (process_skeletonless_type_units): New function.
4798 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4799 Call print tu_stats if debugging enabled.
4801 2014-06-02 Pedro Alves <palves@redhat.com>
4803 * breakpoint.c (build_target_command_list): Don't build a command
4804 list if we have any duplicate location that isn't a dprintf.
4806 2014-06-02 Pedro Alves <palves@redhat.com>
4808 * breakpoint.c (dprintf_breakpoint_hit): New function.
4809 (initialize_breakpoint_ops): Install it as dprintf's
4810 breakpoint_hit method.
4812 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4814 * source.c (substitute_path_rule_matches): Simplify using
4815 filename_ncmp instead of FILENAME_CMP.
4817 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4819 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4821 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4823 * configure.ac: When Guile is available, check for the
4824 availability of 'scm_new_smob'.
4825 * configure, config.h.in: Regenerate.
4826 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4829 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4831 * frame.c (struct frame_info): Add stop_string field.
4832 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4833 (get_prev_frame_always): Old content moved into
4834 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4835 TRY_CATCH, handle MEMORY_ERROR exceptions.
4836 (frame_stop_reason_string): New function definition.
4837 * frame.h (unwind_stop_reason_to_string): Extend comment to
4838 mention frame_stop_reason_string.
4839 (frame_stop_reason_string): New function declaration.
4840 * stack.c (frame_info): Switch to frame_stop_reason_string.
4841 (backtrace_command_1): Switch to frame_stop_reason_string.
4842 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4843 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4844 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4846 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4848 * frame.c (frame_stop_reason_string): Rename to ...
4849 (unwind_stop_reason_to_string): this.
4850 * frame.h (frame_stop_reason_string): Rename to ...
4851 (unwind_stop_reason_to_string): this.
4852 * stack.c (frame_info): Update call to frame_stop_reason_string.
4853 (backtrace_command_1): Likewise.
4854 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4855 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4857 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4859 * frame.c (remove_prev_frame): New function.
4860 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4863 2014-05-29 Pedro Alves <palves@redhat.com>
4865 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4866 and make it const. When a single-step decays to a continue,
4867 clear 'step', not 'hw_step'. Pass whether the caller wanted
4868 to step to user_visible_resume_ptid, not what we ask the
4871 2014-05-29 Pedro Alves <palves@redhat.com>
4873 * infrun.c (process_event_stop_test, handle_step_into_function)
4874 (handle_step_into_function_backward): Adjust.
4875 Don't set the even thread's stop_step and call stop_waiting before
4876 calling end_stepping_range. Instead do that ...
4877 (end_stepping_range): ... here. Take an ecs pointer parameter.
4879 2014-05-29 Pedro Alves <palves@redhat.com>
4881 * infrun.c (stop_stepping): Rename to ...
4882 (stop_waiting): ... this.
4883 (proceed): Update comment.
4884 (process_event_stop_test, handle_inferior_event)
4885 (handle_signal_stop, handle_step_into_function)
4886 (handle_step_into_function_backward): Update.
4888 2014-05-29 Pedro Alves <palves@redhat.com>
4890 * infcall.c (run_inferior_call): Don't check whether the current
4891 thread is running after the proceed call.
4893 2014-05-29 Pedro Alves <palves@redhat.com>
4894 Tom Tromey <tromey@redhat.com>
4896 * NEWS: Mention "maint set target-async", "set mi-async", and that
4897 background execution commands are now always available.
4898 * target.h (target_async_permitted): Update comment.
4899 * target.c (target_async_permitted, target_async_permitted_1):
4901 (set_target_async_command): Rename to ...
4902 (maint_set_target_async_command): ... this.
4903 (show_target_async_command): Rename to ...
4904 (maint_show_target_async_command): ... this.
4905 (_initialize_target): Adjust.
4906 * infcmd.c (prepare_execution_command): Make extern.
4907 * inferior.h (prepare_execution_command): Declare.
4908 * infrun.c (set_observer_mode): Leave target async alone.
4909 * mi/mi-interp.c (mi_interpreter_init): Install
4910 mi_on_sync_execution_done as sync_execution_done observer.
4911 (mi_on_sync_execution_done): New function.
4912 (mi_execute_command_input_handler): Don't print the prompt if we
4913 just started a synchronous command with an async target.
4914 (mi_on_resume): Check sync_execution before printing prompt.
4915 * mi/mi-main.h (mi_async_p): Declare.
4916 * mi/mi-main.c: Include gdbcmd.h.
4917 (mi_async_p): New function.
4918 (mi_async, mi_async_1): New globals.
4919 (set_mi_async_command, show_mi_async_command, mi_async): New
4921 (exec_continue): Call prepare_execution_command.
4922 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4923 (mi_execute_async_cli_command): Use mi_async_p.
4924 (_initialize_mi_main): Install "set mi-async". Make
4925 "target-async" a deprecated alias.
4927 2014-05-29 Pedro Alves <palves@redhat.com>
4929 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4930 (_initialize_cli_interp): Adjust.
4931 * event-loop.c: Include "observer.h".
4932 (start_event_loop): Notify 'command_error' observers instead of
4933 calling display_gdb_prompt. Remove FIXME comment.
4934 * event-top.c (display_gdb_prompt): Remove call into the
4936 * inf-loop.c: Include "observer.h".
4937 (inferior_event_handler): Notify 'command_error' observers instead
4938 of calling display_gdb_prompt.
4939 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4940 observers instead of calling display_gdb_prompt.
4941 * interps.c (interp_set): Don't call display_gdb_prompt.
4942 (current_interp_display_prompt_p): Delete.
4943 * interps.h (interp_prompt_p): Delete declaration.
4944 (interp_prompt_p_ftype): Delete.
4945 (struct interp_procs) <prompt_proc_p>: Delete field.
4946 (current_interp_display_prompt_p): Delete declaration.
4947 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4948 (_initialize_mi_interp): Adjust.
4949 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4950 'command_error' observers.
4951 (tui_on_sync_execution_done, tui_on_command_error): New
4953 (tui_display_prompt_p): Delete.
4954 (_initialize_tui_interp): Adjust.
4956 2014-05-29 Pedro Alves <palves@redhat.com>
4959 * cli/cli-interp.c: Include infrun.h and observer.h.
4960 (cli_uiout, cli_interp): New globals.
4961 (cli_on_signal_received, cli_on_end_stepping_range)
4962 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4964 (cli_interpreter_init): Install them as 'end_stepping_range',
4965 'signal_received' 'signal_exited', 'exited' and 'no_history'
4967 (_initialize_cli_interp): Remove cli_interp local.
4968 * infrun.c (handle_inferior_event): Call the several stop reason
4969 observers instead of printing the stop reason directly.
4970 (end_stepping_range): New function.
4971 (print_end_stepping_range_reason, print_signal_exited_reason)
4972 (print_exited_reason, print_signal_received_reason)
4973 (print_no_history_reason): Make static, and add an uiout
4974 parameter. Print to that instead of to CURRENT_UIOUT.
4975 * infrun.h (print_end_stepping_range_reason)
4976 (print_signal_exited_reason, print_exited_reason)
4977 (print_signal_received_reason print_no_history_reason): New
4979 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4981 <cli_uiout>: New field.
4982 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4983 uiout for CLI output. Install 'signal_received',
4984 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4986 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4987 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4988 (mi_on_no_history): New functions.
4989 (ui_out_free_cleanup): Delete function.
4990 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4991 instead use the one already stored in the MI interpreter data.
4992 (mi_ui_out): Adjust.
4993 * tui/tui-interp.c: Include infrun.h and observer.h.
4994 (tui_interp): New global.
4995 (tui_on_signal_received, tui_on_end_stepping_range)
4996 (tui_on_signal_exited, tui_on_exited)
4997 (tui_on_no_history): New functions.
4998 (tui_init): Install them as 'end_stepping_range',
4999 'signal_received' 'signal_exited', 'exited' and 'no_history'
5001 (_initialize_tui_interp): Delete tui_interp local.
5003 2014-05-29 Pedro Alves <palves@redhat.com>
5006 * linux-nat.c (linux_nat_resume_callback): Rename the second
5007 parameter to 'except'. Skip LP if it points to EXCEPT.
5008 (linux_nat_resume): Don't mark the event lwp as not stopped
5009 before resuming sibling lwps. Instead ask
5010 linux_nat_resume_callback to skip the event lwp. Mark it as not
5011 stopped after actually resuming it.
5012 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5014 (wait_lwp): Mark the lwp as stopped here.
5015 (stop_wait_callback): Mark the lwp as not stopped right after
5016 resuming it. Don't mark lwps as stopped here.
5017 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5018 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5020 2014-05-29 Pedro Alves <palves@redhat.com>
5023 * infrun.c (resume): Determine how much to resume depending on
5024 whether the caller wanted a step, not whether we can hardware step
5025 the target. Mark all threads that we intend to run as running,
5026 unless we're calling an inferior function.
5027 (normal_stop): If the thread is running an infcall, don't finish
5029 * target.c (target_resume): Don't mark threads as running here.
5031 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5033 * serial.c (_initialize_serial): Remove support for
5034 the "set remotebaud" and "show remotebaud" commands.
5035 * NEWS: Add entry documenting the removal of that command.
5037 2014-05-28 Yao Qi <yao@codesourcery.com>
5039 * charset.c: Fix typo in comments.
5041 2014-05-27 Gary Benson <gbenson@redhat.com>
5043 * utils.c (internal_vproblem): Prompt for a bug report.
5045 2014-05-26 Andy Wingo <wingo@igalia.com>
5047 * guile/scm-arch.c (arscm_mark_arch_smob):
5048 * guile/scm-block.c (bkscm_mark_block_smob)
5049 (bkscm_mark_block_syms_progress_smob):
5050 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5051 * guile/scm-exception.c (exscm_mark_exception_smob):
5052 * guile/scm-frame.c (frscm_mark_frame_smob):
5053 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5054 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5055 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5056 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5057 (ppscm_mark_pretty_printer_worker_smob):
5058 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5059 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5060 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5061 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5063 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5066 2014-05-26 Andy Wingo <wingo@igalia.com>
5067 Doug Evans <xdje42@gmail.com>
5069 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5070 empty_base_class. All uses updated.
5071 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5072 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5074 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5075 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5076 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5077 (gdbscm_gsmob_has_property_p, add_property_name)
5078 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5079 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5080 (gdb-object-has-property?, gdb-object-properties): Remove.
5081 (gdb-object-kind): Renamed from gsmob-kind.
5083 2014-05-26 Andy Wingo <wingo@igalia.com>
5085 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5086 * configure: Regenerate.
5088 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5090 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5092 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5094 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5095 (replay_memory_access_read_only, replay_memory_access_read_write)
5096 (replay_memory_access_types, replay_memory_access)
5097 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5098 (cmd_set_record_btrace, cmd_show_record_btrace)
5099 (cmd_show_replay_memory_access): New.
5100 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5101 (record_btrace_remove_breakpoint): Replace
5102 record_btrace_allow_memory_access with replay_memory_access.
5103 (_initialize_record_btrace): Add commands.
5104 * NEWS: Announce it.
5106 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5108 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5110 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5112 * MAINTAINERS (Write After Approval): Move self back from
5115 2014-05-22 Pedro Alves <palves@redhat.com>
5117 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5118 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5119 (disable_randomization, enum exec_direction_kind)
5120 (execution_direction, stop_registers, start_remote)
5121 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5122 (wait_for_inferior, normal_stop, get_last_target_status)
5123 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5124 (insert_step_resume_breakpoint_at_sal)
5125 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5126 (set_step_info, print_stop_event, signal_stop_state)
5127 (signal_print_state, signal_pass_state, signal_stop_update)
5128 (signal_print_update, signal_pass_update)
5129 (update_signals_program_target, clear_exit_convenience_vars)
5130 (displaced_step_dump_bytes, update_observer_mode)
5131 (signal_catch_update, gdb_signal_from_command): Move
5133 * infrun.h: ... to this new file.
5134 * amd64-tdep.c: Include infrun.h.
5135 * annotate.c: Include infrun.h.
5136 * arch-utils.c: Include infrun.h.
5137 * arm-linux-tdep.c: Include infrun.h.
5138 * arm-tdep.c: Include infrun.h.
5139 * break-catch-sig.c: Include infrun.h.
5140 * breakpoint.c: Include infrun.h.
5141 * common/agent.c: Include infrun.h instead of inferior.h.
5142 * corelow.c: Include infrun.h.
5143 * event-top.c: Include infrun.h.
5144 * go32-nat.c: Include infrun.h.
5145 * i386-tdep.c: Include infrun.h.
5146 * inf-loop.c: Include infrun.h.
5147 * infcall.c: Include infrun.h.
5148 * infcmd.c: Include infrun.h.
5149 * infrun.c: Include infrun.h.
5150 * linux-fork.c: Include infrun.h.
5151 * linux-nat.c: Include infrun.h.
5152 * linux-thread-db.c: Include infrun.h.
5153 * monitor.c: Include infrun.h.
5154 * nto-tdep.c: Include infrun.h.
5155 * procfs.c: Include infrun.h.
5156 * record-btrace.c: Include infrun.h.
5157 * record-full.c: Include infrun.h.
5158 * remote-m32r-sdi.c: Include infrun.h.
5159 * remote-mips.c: Include infrun.h.
5160 * remote-notif.c: Include infrun.h.
5161 * remote-sim.c: Include infrun.h.
5162 * remote.c: Include infrun.h.
5163 * reverse.c: Include infrun.h.
5164 * rs6000-tdep.c: Include infrun.h.
5165 * s390-linux-tdep.c: Include infrun.h.
5166 * solib-irix.c: Include infrun.h.
5167 * solib-osf.c: Include infrun.h.
5168 * solib-svr4.c: Include infrun.h.
5169 * target.c: Include infrun.h.
5170 * top.c: Include infrun.h.
5171 * windows-nat.c: Include infrun.h.
5172 * mi/mi-interp.c: Include infrun.h.
5173 * mi/mi-main.c: Include infrun.h.
5174 * python/py-threadevent.c: Include infrun.h.
5176 2014-05-22 Pedro Alves <palves@redhat.com>
5178 * infrun.c (handle_inferior_event): Store the exit code for
5179 --return-child-result here, instead of ...
5180 (print_exited_reason): ... here.
5182 2014-05-21 Pedro Alves <palves@redhat.com>
5185 * gdbthread.h (struct thread_control_state): New field
5187 * infrun.c (follow_fork): Copy the new thread control field to the
5189 (clear_proceed_status_thread): Clear the new thread control field.
5190 (proceed): Set the new thread control field.
5191 * interps.h (command_interp): Declare.
5192 * interps.c (command_interpreter): New global.
5193 (command_interp): New function.
5194 (interp_exec): Set `command_interpreter' while here.
5195 * cli-out.c (cli_uiout_dtor): New function.
5196 (cli_ui_out_impl): Install it.
5197 * mi/mi-interp.c: Include cli-out.h.
5198 (mi_cmd_interpreter_exec): Add comment.
5199 (restore_current_uiout_cleanup): New function.
5200 (ui_out_free_cleanup): New function.
5201 (mi_on_normal_stop): If finishing an execution command started by
5202 a CLI command, or any kind of breakpoint-like event triggered,
5203 print the stop event to the output (CLI) stream.
5204 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5206 2014-05-21 Pedro Alves <palves@redhat.com>
5208 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5209 current source line having changed.
5210 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5211 * infrun.c (normal_stop): Adjust call to
5212 set_current_sal_from_frame.
5213 * source.c (clear_lines_listed_range): New function.
5214 (set_current_source_symtab_and_line, identify_source_line): Clear
5215 the lines listed range.
5216 (line_info): Handle the first "info line" after the current source
5217 line having changed.
5218 * stack.c (print_stack_frame): Remove center handling.
5219 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5222 2014-05-21 Pedro Alves <palves@redhat.com>
5224 * inf-child.c (inf_child_mourn_inferior): New function.
5225 * inf-child.h (inf_child_mourn_inferior): New declaration.
5226 * darwin-nat.c (darwin_mourn_inferior): Use
5227 inf_child_mourn_inferior.
5228 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5229 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5230 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5231 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5232 * windows-nat.c (windows_mourn_inferior): Likewise.
5234 2014-05-21 Doug Evans <xdje42@gmail.com>
5236 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5238 2014-05-21 Doug Evans <xdje42@gmail.com>
5240 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5241 (gdbscm_out_of_range_error): Ditto.
5242 (gdbscm_memory_error): Ditto.
5243 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5244 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5245 (gdbscm_out_of_range_error): Update.
5246 (gdbscm_memory_error): Update.
5247 (gdbscm_scm_to_target_string_unsafe): Delete.
5249 2014-05-21 Pedro Alves <palves@redhat.com>
5251 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5253 (inf_child_open_target): New function.
5254 (inf_child_open): Use inf_child_open_target to push the target
5255 instead of erroring out.
5256 (inf_child_disconnect, inf_child_close)
5257 (inf_child_maybe_unpush_target): New functions.
5258 (inf_child_target): Install inf_child_disconnect and
5259 inf_child_close. Store a pointer to the returned object.
5260 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5262 * target.c (auto_connect_native_target): New global.
5263 (show_default_run_target): New function.
5264 (find_default_run_target): Return NULL if automatically connecting
5265 to the native target is disabled.
5266 (_initialize_target): Install set/show auto-connect-native-target.
5267 * NEWS: Mention "set auto-connect-native-target", and "target
5269 * linux-nat.c (super_close): New global.
5270 (linux_nat_close): Call super_close.
5271 (linux_nat_add_target): Store a pointer to the base class's
5273 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5274 inf_child_maybe_unpush.
5275 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5277 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5278 the inferior. Use inf_child_maybe_unpush_target.
5279 (inf_ttrace_attach): Don't push the target if it is already
5281 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5282 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5283 after mourning the inferior. Use inf_child_maybe_unpush_target.
5284 (darwin_attach_pid): Don't push the target if it is already
5286 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5287 mourning the inferior. Use inf_child_maybe_unpush_target.
5288 (gnu_detach): Use inf_child_maybe_unpush_target.
5289 * go32-nat.c (go32_create_inferior): Don't push the target if it
5291 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5292 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5293 (procfs_open): Rename to ...
5294 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5295 comments. Can target_preopen before changing node. Call
5296 inf_child_open_target to push the target explicitly.
5297 (procfs_attach): Don't push the target if it is already pushed.
5298 (procfs_detach): Use inf_child_maybe_unpush_target.
5299 (procfs_create_inferior): Don't push the target if it is already
5301 (nto_native_ops): New global.
5302 (procfs_open): Reimplement.
5303 (procfs_native_open): New function.
5304 (init_procfs_targets): Install procfs_native_open as to_open of
5305 "target native". Store a pointer to the "native" target in
5307 * procfs.c (procfs_attach): Don't push the target if it is already
5309 (procfs_detach): Use inf_child_maybe_unpush_target.
5310 (procfs_mourn_inferior): Only unpush the target after mourning the
5311 inferior. Use inf_child_maybe_unpush_target.
5312 (procfs_init_inferior): Don't push the target if it is already
5314 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5315 if it is already pushed.
5317 2014-05-21 Pedro Alves <palves@redhat.com>
5319 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5320 and "procfs" targets are now called "native" instead.
5322 2014-05-21 Pedro Alves <palves@redhat.com>
5324 * go32-nat.c (go32_open): Delete.
5325 (go32_target): Don't override the to_open method.
5327 2014-05-21 Pedro Alves <palves@redhat.com>
5329 * nto-procfs.c (procfs_can_run): New function.
5330 (nto_procfs_ops): New global.
5331 (init_procfs_targets): New, based on procfs_target. Install
5332 "target native" in addition to "target procfs".
5333 (_initialize_procfs): Call init_procfs_targets instead of adding
5336 2014-05-21 Pedro Alves <palves@redhat.com>
5338 * windows-nat.c (windows_target): Don't override to_shortname,
5339 to_longname or to_doc.
5341 2014-05-21 Pedro Alves <palves@redhat.com>
5343 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5346 2014-05-21 Pedro Alves <palves@redhat.com>
5348 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5349 to_shortname, to_longname or to_doc.
5351 2014-05-21 Pedro Alves <palves@redhat.com>
5353 * go32-nat.c (go32_target): Don't override to_shortname,
5354 to_longname or to_doc.
5356 2014-05-21 Pedro Alves <palves@redhat.com>
5358 * inf-child.c (inf_child_open): Remove mention of "child".
5359 (inf_child_target): Rename target to "native" instead of "child".
5361 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5363 * Makefile.in (SFILES): Delete "regset.c".
5364 (COMMON_OBS): Delete "regset.o".
5366 * regset.h (regset_alloc): Delete prototype.
5368 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5370 * sparc-linux-tdep.c (sparc32_linux_gregset)
5371 (sparc32_linux_fpregset): New static regset structures.
5372 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5373 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5375 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5376 (sparc64_linux_fpregset): New static regset structures.
5377 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5378 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5379 New static regset structures.
5380 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5381 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5382 New static regset structures.
5383 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5384 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5385 New static regset structures.
5386 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5387 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5388 New static regset structures.
5389 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5391 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5393 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5394 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5395 register maps ("regmaps") from "*regset" to "*regmap". Do this
5396 for all regmap types and variables.
5397 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5398 (sparc32_linux_supply_core_gregset)
5399 (sparc32_linux_collect_core_gregset)
5400 (sparc32_linux_supply_core_fpregset)
5401 (sparc32_linux_collect_core_fpregset): Likewise.
5402 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5403 (sparc_gregmap, sparc_fpregmap): ... these.
5404 (sparc_supply_gregset, sparc_collect_gregset)
5405 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5406 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5407 (_initialize_sparc_nat): Rename regmaps.
5408 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5409 (sparc_gregmap, sparc_fpregmap): ... these.
5410 (sparc_supply_gregset, sparc_collect_gregset)
5411 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5412 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5414 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5415 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5417 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5419 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5420 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5421 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5423 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5424 (sparc32_bsd_fpregset): Rename to...
5425 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5426 (sparc32_bsd_fpregmap): ... these.
5427 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5428 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5429 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5430 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5431 (struct sparc_gregmap, struct sparc_fpregmap)
5432 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5433 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5434 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5435 (sparc32_supply_regset, sparc32_collect_gregset)
5436 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5438 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5439 (sparc64_linux_ptrace_gregmap): ... this.
5440 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5441 (_initialize_sparc64_linux_nat): Rename regmaps.
5442 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5443 (sparc64_linux_core_gregmap): ... this.
5444 (sparc64_linux_supply_core_gregset)
5445 (sparc64_linux_collect_core_gregset)
5446 (sparc64_linux_supply_core_fpregset)
5447 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5448 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5449 (sparc64_sol2_fpregset): Rename to...
5450 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5451 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5452 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5454 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5455 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5456 (sparc64_bsd_fpregset): Rename to...
5457 (struct sparc_gregmap, sparc64_sol2_gregmap)
5458 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5459 (sparc64_bsd_fpregmap): ... these.
5460 (sparc64_supply_gregset, sparc64_collect_gregset)
5461 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5463 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5464 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5465 (sparc64fbsd_gregmap): ... this.
5466 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5467 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5469 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5470 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5471 (sparc64nbsd_collect_fpregset): Likewise.
5472 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5473 (sparc64nbsd_gregmap): ... this.
5474 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5476 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5477 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5478 (sparc64obsd_gregmap): ... this.
5479 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5481 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5482 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5483 (sparc32nbsd_gregmap): ... this.
5484 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5487 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5489 * score-tdep.c (score7_linux_gregset): New static regset
5491 (score7_linux_regset_from_core_section): Remove dynamic regset
5493 (score_gdbarch_init): Drop allocation of tdep structure.
5494 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5496 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5498 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5500 (am33_regset_from_core_section): Remove dynamic regset
5503 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5505 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5506 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5508 (mips_linux_regset_from_core_section): Remove dynamic regset
5510 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5511 'gregset64', 'fpregset', and 'fpregset64'.
5512 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5513 deleted tdep fields.
5515 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5517 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5519 (amd64_regset_from_core_section): Remove dynamic regset
5521 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5523 (amd64obsd_regset_from_core_section): Remove dynamic regset
5525 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5527 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5528 x86-common regset supply function.
5529 * i386-tdep.c (i386_collect_gregset): Make static.
5530 (i386_gregset): New global regset structure.
5531 (i386_fpregset, i386_xstateregset): New static regset structures.
5532 (i386_regset_from_core_section): Remove dynamic regset
5534 (i386_gdbarch_init): Remove initialization of tdep fields
5535 'gregset', 'fpregset', and 'xstateregset'.
5536 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5537 'fpregset', and 'xstateregset'.
5538 (i386_collect_gregset): Remove prototype.
5539 (i386_gregset): New declaration.
5540 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5542 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5545 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5547 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5548 (arm_linux_vfpregset): New static regset structures.
5549 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5551 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5552 and 'vfpregset' fields.
5554 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5556 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5557 (aarch64_linux_fpregset): New static regset structures.
5558 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5559 of regset structures.
5560 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5563 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5565 * regset.h (struct regset): Remove gdbarch field.
5566 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5567 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5568 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5570 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5571 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5572 (ppc32_linux_vsxregset): Likewise.
5573 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5574 via the regcache instead of the regset.
5575 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5576 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5577 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5578 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5581 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5583 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5584 Constify structures.
5585 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5586 (alphanbsd_aout_gregset): Likewise.
5587 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5588 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5590 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5591 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5593 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5594 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5595 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5596 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5597 * m88k-tdep.c (m88k_gregset): Likewise.
5598 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5599 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5600 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5601 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5602 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5603 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5604 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5605 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5606 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5608 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5609 * sh-tdep.h (sh_corefile_gregset): Likewise.
5610 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5611 * vax-tdep.c (vax_gregset): Likewise.
5613 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5615 Fix TLS access for -static -pthread.
5616 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5617 (try_thread_db_load_1): Initialize it.
5618 (thread_db_get_thread_local_address): Call it if LM is zero.
5619 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5620 * target.h (struct target_ops) (to_get_thread_local_address): Add
5621 load_module_addr comment.
5623 2014-05-21 Pedro Alves <palves@redhat.com>
5625 * dcache.c (dcache_read_memory_partial): If reading the cache line
5626 fails, fallback to reading just the memory the caller wanted.
5628 2014-05-20 Doug Evans <dje@google.com>
5630 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5631 instead of get_current_arch.
5633 2014-05-20 Pedro Alves <palves@redhat.com>
5635 * NEWS: Mention that compare-sections now works with all targets.
5637 * remote.c (PACKET_qCRC): New enum value.
5638 (remote_verify_memory): Don't send qCRC if the target has no
5639 execution. Use packet_support/packet_ok. If the target doesn't
5640 support the qCRC packet, fallback to a deep memory copy.
5641 (compare_sections_command): Say "target image" instead of "remote
5643 (_initialize_remote): Add PACKET_qCRC to the list of config
5644 packets that have no associated command. Extend comment.
5645 * target.c (simple_verify_memory, default_verify_memory): New
5647 * target.h (struct target_ops) <to_verify_memory>: Default to
5648 default_verify_memory.
5649 (simple_verify_memory): New declaration.
5650 * target-delegates.c: Regenerate.
5652 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5654 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5656 2014-05-20 Hui Zhu <hui@codesourcery.com>
5657 Yao Qi <yao@codesourcery.com>
5660 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5661 and change address of sp and pc.
5663 2014-05-19 Tom Tromey <tromey@redhat.com>
5665 * gdbtypes.c (rank_function): Use XNEWVEC.
5666 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5668 2014-05-19 Doug Evans <dje@google.com>
5670 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5671 build_type_unit_groups and moved closer to only caller. Remove
5672 arguments. All references updated. Remove outdated .gdb_index
5674 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5675 build_type_psymtabs_1.
5677 2014-05-19 Doug Evans <dje@google.com>
5679 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5680 n_type_unit_groups, all_type_unit_groups. All uses removed.
5681 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5682 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5683 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5684 (add_type_unit_group_to_table): Delete.
5686 2014-05-19 Doug Evans <dje@google.com>
5688 * eval.c (evaluate_subexp_standard): Add some comments.
5690 2014-05-17 Doug Evans <xdje42@gmail.com>
5692 * progspace.c (remove_program_space): Delete, unused.
5693 * progspace.h (remove_program_space): Ditto.
5695 2014-05-17 Doug Evans <xdje42@gmail.com>
5697 * inferior.c (prune_inferiors): Fix comment.
5698 (remove_inferior_command): Call prune_program_spaces.
5700 2014-05-16 Doug Evans <dje@google.com>
5702 New command line option -D.
5704 * main.c (set_gdb_data_directory): New function.
5705 (captured_main): Recognize -D. Flag error for --data-directory "".
5706 Call set_gdb_data_directory.
5707 (print_gdb_help): Print --data-directory, -D.
5708 * main.h (set_gdb_data_directory): Declare.
5709 * top.c (staged_gdb_datadir): New static global.
5710 (set_gdb_datadir): Call set_gdb_data_directory
5711 (show_gdb_datadir): New function.
5712 (init_main): Update init of data-directory parameter.
5714 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5716 Import the "dirfd" gnulib module.
5717 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5718 * gnulib/aclocal.m4: Update.
5719 * gnulib/config.in: Update.
5720 * gnulib/configure: Update.
5721 * gnulib/import/Makefile.am: Update.
5722 * gnulib/import/Makefile.in: Update.
5723 * gnulib/import/dirfd.c: New.
5724 * gnulib/import/m4/dirfd.m4: New.
5725 * gnulib/import/m4/gnulib-cache.m4: Update.
5726 * gnulib/import/m4/gnulib-comp.m4: Update.
5728 2014-05-16 Pierre Muller <muller@sourceware.org>
5729 Yao Qi <yao@codesourcery.com>
5731 * valprint.c (print_wchar): Move the code on checking whether
5732 W is a printable wide char to the default branch of switch
5733 statement below. Call wchar_printable instead of gdb_iswprint.
5735 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5737 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5738 ldr.w and ldrd instructions.
5740 2014-05-15 Doug Evans <dje@google.com>
5742 * dwarf2read.c (read_structure_type): Delete outdated comments.
5744 2014-05-14 Tom Tromey <tromey@redhat.com>
5746 * macrocmd.c (print_macro_definition): Reindent.
5748 2014-05-13 Doug Evans <xdje42@gmail.com>
5750 * python/py-cmd.c (cmdpy_completer): Add comment.
5751 (completers): Make const.
5753 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5755 * infrun.c (resume): Remove should_resume (unused). Move up
5756 declaration of resume_ptid.
5758 2014-05-13 Tom Tromey <tromey@redhat.com>
5760 * language.h (unop_type_check): Remove.
5761 (binop_type_check): Don't declare.
5763 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5765 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5766 call to regcache_raw_collect.
5768 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5770 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5771 mi_console->quote as the quoting character.
5773 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5775 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5777 2014-04-29 Tom Tromey <tromey@redhat.com>
5779 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5780 "show debug varobj".
5782 2014-05-07 Kyle McMartin <kyle@redhat.com>
5784 Pushed by Joel Brobecker <brobecker@adacore.com>.
5785 * aarch64-tdep.c (aarch64_software_single_step): New function.
5786 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5787 with aarch64_software_single_step.
5789 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5793 2014-05-05 Keith Seitz <keiths@redhat.com>
5795 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5796 variable or history value is successfully parsed.
5798 2014-05-05 Yao Qi <yao@codesourcery.com>
5799 Pedro Alves <palves@redhat.com>
5801 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5802 address of blocks that intersects the requested range. Trim
5803 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5805 * ctf.c (ctf_xfer_partial): Likewise.
5807 2014-05-05 Yao Qi <yao@codesourcery.com>
5809 * printcmd.c (display_command): Remove the check to
5810 target_has_execution.
5812 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5814 * ppcobsd-nat.c: Include "obsd-nat.h".
5815 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5817 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5819 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5821 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5822 and 16-bit signed and unsigned arguments. Update comment.
5823 (stap_parse_probe_arguments): Extend code to handle such
5824 arguments. Use warning instead of complaint to notify about
5825 unrecognized bitness.
5827 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5829 PR breakpoints/16889
5830 * stap-probe.c (stap_parse_probe_arguments): Simplify
5831 check for non-prefixed probes (i.e., probes whose
5832 arguments do not start with "N@"). Always set the
5833 argument type to a sane value.
5835 2014-05-01 David Taylor <dtaylor@emc.com>
5837 * remote.c (compare_sections_command): Add -r option to compare
5838 all loadable read-only sections.
5840 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5842 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5843 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5845 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5846 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5847 Remove unused CORE_ADDR argument. Update all callers.
5849 2014-04-29 Pedro Alves <palves@redhat.com>
5851 * remote.c (struct packet_config) <detect>: Extend comment.
5852 (add_packet_config_cmd): Don't set the config's detect or support
5854 (init_all_packet_configs): Also initialize the config's 'detect'
5856 (reset_all_packet_configs_support): New function.
5857 (remote_open_1): Call reset_all_packet_configs_support instead of
5858 init_all_packet_configs.
5859 (_initialize_remote): Initialize all packet configs. Assert that
5860 all packets have an associated command, except a few known
5863 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5865 * dwarf2read.c (read_subrange_type): Handle dynamic
5866 DW_AT_lower_bound attributes.
5868 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5870 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5871 dynamic bounds before computing its upper bound.
5872 (ada_discrete_type_low_bound): Same as above with the lower bound.
5874 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5876 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5877 range types. Adjust the array handling implementation to
5878 take advantage of this change.
5879 (resolve_dynamic_range): New function, mostly extracted from
5880 resolve_dynamic_bounds.
5881 (resolve_dynamic_array): New function, mostly extracted from
5882 resolve_dynamic_bounds.
5883 (resolve_dynamic_bounds): Delete.
5884 (resolve_dynamic_type): Reimplement. Add handling of
5885 TYPE_CODE_RANGE types.
5887 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5889 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5890 handling of parallel ___XA types.
5892 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5894 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5895 unnecessary second call to static_unwrap_type.
5897 2014-04-27 Hui Zhu <hui@codesourcery.com>
5899 * stack.c (print_frame_info): Call do_gdb_disassembly with
5900 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5902 2014-04-26 Doug Evans <xdje42@gmail.com>
5904 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5906 2014-04-25 Pedro Alves <palves@redhat.com>
5909 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5910 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5911 and newline from built string.
5912 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5913 (linux_ptrace_attach_fail_reason): ... this.
5914 * linux-nat.c (linux_nat_attach): Adjust to use
5915 linux_ptrace_attach_fail_reason.
5917 2014-04-25 Pedro Alves <palves@redhat.com>
5919 * remote.c (struct remote_state): Remove multi_process_aware,
5920 non_stop_aware, cond_tracepoints, cond_breakpoints,
5921 breakpoint_commands, fast_tracepoints, static_tracepoints,
5922 install_in_trace, disconnected_tracing,
5923 enable_disable_tracepoints, string_tracing, and
5924 augmented_libraries_svr4_read fields.
5925 (remote_multi_process_p): Move further below in the file.
5926 (struct packet_config): Add comments.
5927 (update_packet_config): Delete function.
5928 (show_packet_config_cmd): Use packet_config_support.
5929 (add_packet_config_cmd): Use NULL as set callback.
5930 (packet_ok): "set remote foo-packet"-style commands no longer
5931 change config->supported -- adjust.
5932 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5933 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5934 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5935 (PACKET_QNonStop, PACKET_multiprocess_feature)
5936 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5937 (PACKET_DisconnectedTracing_feature)
5938 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5939 (set_remote_protocol_packet_cmd): Delete function.
5940 (packet_config_support, packet_support): New functions.
5941 (set_remote_protocol_Z_packet_cmd): Don't call
5942 update_packet_config.
5943 (remote_query_attached, remote_pass_signals)
5944 (remote_program_signals, remote_threads_info)
5945 (remote_threads_extra_info, remote_start_remote): Use
5947 (remote_start_remote): Use packet_config_support and
5949 (init_all_packet_configs): Set all packets to unknown support,
5950 instead of calling update_packet_config.
5951 (remote_check_symbols): Use packet_support.
5952 (remote_supported_packet): Unconditionally set the packet config's
5954 (remote_multi_process_feature, remote_non_stop_feature)
5955 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5956 (remote_breakpoint_commands_feature)
5957 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5958 (remote_install_in_trace_feature)
5959 (remote_disconnected_tracing_feature)
5960 (remote_enable_disable_tracepoint_feature)
5961 (remote_string_tracing_feature)
5962 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5963 (remote_protocol_features): Adjust to use remote_supported_packet
5964 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5965 "ConditionalTracepoints", "ConditionalBreakpoints",
5966 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5967 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5968 "EnableDisableTracepoints", and "tracenz".
5969 (remote_query_supported): Use packet_support.
5970 (remote_open_1): Adjust.
5971 (extended_remote_attach_1): Use packet_support. Switch on the
5972 result of packet_ok instead of checking whether the packet ended
5974 (remote_vcont_resume): Use packet_support.
5975 (remote_resume, remote_stop_ns, fetch_register_using_p)
5976 (remote_prepare_to_store, store_register_using_P)
5977 (check_binary_download, remote_write_bytes): Use packet_support.
5978 (remote_vkill): Use packet_support. Switch on the result of
5979 packet_ok instead of checking whether the packet ended up
5981 (extended_remote_supports_disable_randomization): Use
5983 (extended_remote_run): Switch on the result of packet_ok instead
5984 of checking whether the packet ended up disabled.
5985 (remote_insert_breakpoint, remote_remove_breakpoint)
5986 (remote_insert_watchpoint, remote_remove_watchpoint)
5987 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5989 (remote_search_memory): Use packet_config_support.
5990 (remote_get_thread_local_address, remote_get_tib_address)
5991 (remote_hostio_send_command, remote_can_execute_reverse): Use
5993 (remote_supports_cond_tracepoints)
5994 (remote_supports_cond_breakpoints)
5995 (remote_supports_fast_tracepoints)
5996 (remote_supports_static_tracepoints)
5997 (remote_supports_install_in_trace)
5998 (remote_supports_enable_disable_tracepoint)
5999 (remote_supports_string_tracing)
6000 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6001 the packet config says the feature is enabled or disabled.
6002 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6003 (remote_get_trace_status): Use packet_support.
6004 (remote_set_disconnected_tracing): Adjust to check whether the
6005 feature is enabled with packet_support.
6006 (remote_set_trace_buffer_size, remote_use_agent)
6007 (remote_can_use_agent, remote_supports_btrace): Use
6009 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6010 Use packet_config_support.
6011 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6012 the packet config says the feature is enabled or disabled.
6013 (set_range_stepping): Use packet_support.
6015 2014-04-25 Tom Tromey <tromey@redhat.com>
6017 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6020 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6022 * NEWS: Mention support for C99 variable length arrays.
6024 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6026 * ada-lang.c (standard_exc): Expand introductory comment.
6028 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6029 Walfred Tedeschi <walfred.tedeschi@intel.com>
6031 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6033 (amd64_linux_read_description): Add code to handle AVX512 xstate
6034 mask and return respective tdesc.
6035 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6036 and features/i386/x32-avx512-linux.c.
6037 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6038 (amd64_linux_core_read_description): Add code to handle AVX512
6039 xstate mask and return respective tdesc.
6040 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6041 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6043 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6044 (tdesc_amd64_avx512_linux): New prototype.
6045 (tdesc_x32_avx512_linux): Likewise.
6046 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6047 features/i386/x32-avx512.c.
6048 (amd64_ymm_avx512_names): New register names for pseudo
6050 (amd64_ymmh_avx512_names): New register names for raw registers
6052 (amd64_k_names): New register names for K registers.
6053 (amd64_zmmh_names): New register names for ZMM raw registers.
6054 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6055 (amd64_xmm_avx512_names): New register names for XMM16-31
6057 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6059 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6060 if feature is present.
6061 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6062 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6063 (AMD64_NUM_REGS): Adjust to new number of registers.
6064 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6065 registers supplied via XSTATE by AVX512 registers.
6066 (i386_linux_read_description): Add case for AVX512.
6067 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6068 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6069 (i386_linux_core_read_description): Add case for AVX512.
6070 (i386_linux_init_abi): Install supported register note section
6072 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6074 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6075 registers to be number of zmm7h + 1.
6076 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6077 * i386-tdep.c: Include features/i386/i386-avx512.c.
6078 (i386_zmm_names): Add ZMM pseudo register names array.
6079 (i386_zmmh_names): Add ZMM raw register names array.
6080 (i386_k_names): Add K raw register names array.
6081 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6082 registers. AVX512 has 16 more ZMM registers than there are YMM
6084 (i386_zmmh_regnum_p): Add function to look up register number of
6086 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6087 (i386_k_regnum_p): Likewise for K raw registers.
6088 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6089 registers added by AVX512.
6090 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6091 registers added by AVX512.
6092 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6094 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6095 (i386_pseudo_register_name): Add ZMM pseudo registers.
6096 (i386_zmm_type): Construct and return vector registers type for ZMM
6098 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6099 ZMM0-31 pseudo registers and K registers.
6100 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6101 and YMM16-31 registers from register cache.
6102 (i386_pseudo_register_write): Add code to write K, ZMM and
6104 (i386_register_reggroup_p): Add code to include/exclude AVX512
6105 registers in/from respective register groups.
6106 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6107 registers if feature is present in xcr0.
6108 (i386_gdbarch_init): Add code to initialize AVX512 feature
6109 variables in tdep structure, wire in pseudo registers and call
6110 initialize_tdesc_i386_avx512.
6111 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6113 (i386_regnum): Add AVX512 registers.
6114 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6115 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6116 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6117 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6119 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6120 (i386_ymm_avx512_regnum_p): Likewise.
6121 (i386_k_regnum_p): Likewise.
6122 (i386_zmm_regnum_p): Likewise.
6123 (i386_zmmh_regnum_p): Likewise.
6124 * i387-tdep.c : Update year in copyright notice.
6125 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6127 (XSAVE_YMM_AVX512_ADDR): New macro.
6128 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6130 (XSAVE_XMM_AVX512_ADDR): New macro.
6131 (xsave_avx512_k_offset): New table for K register offsets in
6133 (XSAVE_AVX512_K_ADDR): New macro.
6134 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6136 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6137 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6139 (i387_collect_xsave): Add code to collect AVX512 registers from
6141 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6142 of XMM16-31 registers.
6143 (I387_NUM_K_REGS): New define for number of K registers.
6144 (I387_K0_REGNUM): New define for K0 register number.
6145 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6146 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6147 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6149 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6150 (I387_XMM16_REGNUM): New define for XMM16 register number.
6151 (I387_YMM0_REGNUM): New define for YMM0 register number.
6152 (I387_KEND_REGNUM): New define for last K register number.
6153 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6154 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6156 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6158 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6160 * features/Makefile: Add AVX512 related files.
6161 * features/i386/32bit-avx512.xml: New file.
6162 * features/i386/64bit-avx512.xml: Likewise.
6163 * features/i386/amd64-avx512-linux.c: Likewise.
6164 * features/i386/amd64-avx512-linux.xml: Likewise.
6165 * features/i386/amd64-avx512.c: Likewise.
6166 * features/i386/amd64-avx512.xml: Likewise.
6167 * features/i386/i386-avx512-linux.c: Likewise.
6168 * features/i386/i386-avx512-linux.xml: Likewise.
6169 * features/i386/i386-avx512.c: Likewise.
6170 * features/i386/i386-avx512.xml: Likewise.
6171 * features/i386/x32-avx512-linux.c: Likewise.
6172 * features/i386/x32-avx512-linux.xml: Likewise.
6173 * features/i386/x32-avx512.c: Likewise.
6174 * features/i386/x32-avx512.xml: Likewise.
6175 * regformats/i386/amd64-avx512-linux.dat: New file.
6176 * regformats/i386/amd64-avx512.dat: Likewise.
6177 * regformats/i386/i386-avx512-linux.dat: Likewise.
6178 * regformats/i386/i386-avx512.dat: Likewise.
6179 * regformats/i386/x32-avx512-linux.dat: Likewise.
6180 * regformats/i386/x32-avx512.dat: Likewise.
6181 * NEWS: Add note about new support for AVX512.
6184 2014-04-23 Pedro Alves <palves@redhat.com>
6186 * breakpoint.c (insert_bp_location): Tolerate errors if the
6187 breakpoint is set in a user-loaded objfile.
6188 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6189 location is marked shlib_disabled. If the breakpoint is set in a
6190 user-loaded objfile is a GDB-side memory breakpoint, validate it
6191 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6192 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6194 * mem-break.c (memory_validate_breakpoint): New function.
6195 * objfiles.c (userloaded_objfile_contains_address_p): New
6197 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6198 * target.h (memory_validate_breakpoint): New declaration.
6200 2014-04-23 Pedro Alves <palves@redhat.com>
6202 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6203 the breakpoint is set in a shared library, only suppress
6204 errors for software breakpoints, not hardware breakpoints.
6206 2014-04-22 Pedro Alves <palves@redhat.com>
6208 * infrun.c (schedlock_applies): New function, factored out from
6209 find_thread_needs_step_over.
6210 (find_thread_needs_step_over): Use it.
6211 (switch_back_to_stepped_thread): Always clear trap_expected if the
6212 step over is finished. Return early if scheduler locking applies.
6213 Look for the stepping thread and a potential step-over thread with
6215 (currently_stepping_or_nexting_callback): Delete.
6217 2014-04-22 Nick Clifton <nickc@redhat.com>
6219 * NEWS: Mention that ARM sim now supports tracing.
6221 2014-04-22 Yao Qi <yao@codesourcery.com>
6223 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6225 * tracefile.c (tracefile_fetch_registers): ... it. New
6227 * tracefile.h (tracefile_fetch_registers): Declare.
6228 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6229 tracefile_fetch_registers.
6231 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6234 * windows-nat.c (thread_rec): Don't display a warning when
6235 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6236 fails for any reason, set th->suspended to -1, so that we don't
6237 try to resume such a thread. Also, don't return NULL in these
6238 cases, to avoid completely ruin the session due to "PC register is
6239 not available" error.
6240 (do_windows_fetch_inferior_registers): Check errors in
6241 GetThreadContext call.
6242 (windows_continue): Accept an additional argument KILLED; if not
6243 zero, ignore errors in the SetThreadContext call, since the
6244 inferior was killed and is shutting down.
6245 (windows_resume, get_windows_debug_event)
6246 (windows_create_inferior, windows_mourn_inferior)
6247 (windows_kill_inferior): All callers of windows_continue changed
6248 to adjust to its new calling sequence.
6250 2014-04-19 Yao Qi <yao@codesourcery.com>
6252 * ctf.c (ctf_open): Call post_create_inferior.
6254 2014-04-19 Yao Qi <yao@codesourcery.com>
6256 * ctf.c (handle_id): New static variable.
6257 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6258 value. Get the declaration of event "register" and get length
6259 of field "contents".
6261 2014-04-19 Yao Qi <yao@codesourcery.com>
6263 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6265 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6267 * valops.c (oload_method_static): Remove unnecessary argument
6268 METHOD. Update all callers.
6270 2014-04-18 Pedro alves <palves@redhat.com>
6271 Tom Tromey <tromey@redhat.com>
6274 * frame.c (get_prev_frame_1): Rename to ...
6275 (get_prev_frame_always): ... this, and make extern. Adjust.
6276 (skip_artificial_frames): Use get_prev_frame_always.
6277 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6278 (get_frame_unwind_stop_reason): Adjust to rename.
6279 * frame.h (get_prev_frame_always): Declare.
6280 * inline-frame.c: Include frame.h.
6281 (inline_frame_this_id): Use get_prev_frame_always.
6283 2014-04-18 Tristan Gingold <gingold@adacore.com>
6285 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6286 code by using bfd_mach_o_get_base_address.
6288 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6290 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6291 (spu_ax_pseudo_register_collect): New function.
6292 (spu_ax_pseudo_register_push_stack): Likewise.
6293 (spu_dwarf_reg_to_regnum): Likewise.
6294 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6296 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6298 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6299 Replace FRAME argument with FRAME_ID.
6300 * gdbarch.c, gdbarch.h: Regenerate.
6301 * findvar.c (default_value_from_register): Add GDBARCH argument;
6302 replace FRAME by FRAME_ID. No longer call get_frame_id.
6303 (value_from_register): Update call to gdbarch_value_from_register.
6304 * value.h (default_value_from_register): Update prototype.
6305 * s390-linux-tdep.c (s390_value_from_register): Update interface
6306 and call to default_value_from_register.
6307 * spu-tdep.c (spu_value_from_register): Likewise.
6309 * findvar.c (address_from_register): Remove TYPE argument.
6310 Do not call value_from_register; use gdbarch_value_from_register
6311 with null_frame_id instead.
6312 * value.h (address_from_register): Update prototype.
6313 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6314 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6315 address_from_register interface change.
6317 2014-04-17 Yao Qi <yao@codesourcery.com>
6319 * gdbtypes.h: Update comments to link to types and macros'
6322 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6324 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6326 2014-04-16 Keith Seitz <keiths@redhat.com>
6329 * dwarf2read.c (skip_one_die): Check that all relative-offset
6330 sibling DIEs fall within range of the current reader's buffer.
6331 (read_partial_die): Likewise.
6333 2014-04-16 Keith Seitz <keiths@redhat.com>
6336 * cp-namespace.c (lookup_symbol_file): If the type name of
6337 `this' is NULL, return immediately.
6339 2014-04-14 Keith Seitz <keiths@redhat.com>
6342 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6343 from symbol_matches_domain in symtab.c. All local callers
6344 of symbol_matches_domain updated.
6345 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6346 search STRUCT_DOMAIN.
6347 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6348 independently. standard_lookup will do that automatically.
6349 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6350 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6351 (cp_lookup_symbol_in_namespace): Likewise.
6352 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6353 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6354 may return a STRUCT_DOMAIN match.
6355 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6356 * cp-support.c: Include language.h.
6357 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6359 * psymtab.c (match_partial_symbol): Compare the requested
6360 domain with the symbol's domain directly.
6361 (lookup_partial_symbol): Likewise.
6362 * symtab.c (lookup_symbol_in_language): Explain when/why
6363 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6364 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6365 appropriate languages.
6366 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6367 and moved to ada-lang.c
6368 (lookup_block_symbol): Explain that this function only returns
6369 symbol matching the requested DOMAIN.
6370 Compare the requested domain with the symbol's domain directly.
6371 (iterate_over_symbols): Compare the requested domain with the
6372 symbol's domain directly.
6373 * symtab.h (symbol_matches_domain): Remove.
6375 2014-04-14 Tom Tromey <tromey@redhat.com>
6378 * c-exp.y (type_aggregate_p): New function.
6379 (qualified_name, classify_inner_name): Use it.
6380 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6381 and TYPE_TARGET_TYPE of an enum type.
6382 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6384 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6385 handle TYPE_DECLARED_CLASS.
6386 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6388 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6389 * valops.c (enum_constant_from_type): New function.
6390 (value_aggregate_elt): Use it.
6391 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6394 2014-04-14 Tom Tromey <tromey@redhat.com>
6396 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6397 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6399 * value.h (value_aggregate_elt): Update.
6401 2014-04-14 Tom Tromey <tromey@redhat.com>
6403 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6405 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6407 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6408 (evaluate_subexp_standard): Pass noside argument.
6409 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6410 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6411 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6412 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6413 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6415 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6417 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6418 points to a constant blob.
6420 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6422 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6423 property and store it as the high bound and flag the range accordingly.
6424 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6425 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6426 * gdbtypes.h (enum range_flags): New enum.
6427 (struct range_bounds): Add flags member.
6429 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6431 * c-typeprint.c (c_type_print_varspec_suffix): Added
6432 check for not yet resolved high bound. If unresolved, print
6433 "variable length" string to the console instead of random
6436 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6438 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6440 (ada_template_to_fixed_record_type_1): Likewise.
6441 (ada_to_fixed_type_1): Likewise.
6442 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6443 (cp_print_value): Likewise.
6444 * d-valprint.c (dynamic_array_type): Likewise.
6445 * findvar.c (address_of_variable): Likewise.
6446 * jv-valprint.c (java_value_print): Likewise.
6447 * valops.c (value_ind): Likewise.
6448 * value.c (coerce_ref): Likewise.
6450 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6452 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6453 value and retrieve the dynamic type size.
6455 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6457 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6458 passed to sizeof is dynamic evaluate the argument to compute the length.
6460 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6461 Joel Brobecker <brobecker@adacore.com>
6463 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6464 (dwarf2_evaluate_property): New function.
6465 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6466 * dwarf2read.c (attr_to_dynamic_prop): New function.
6467 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6469 * gdbtypes.c: Include dwarf2loc.h.
6470 (is_dynamic_type): New function.
6471 (resolve_dynamic_type): New function.
6472 (resolve_dynamic_bounds): New function.
6473 (get_type_length): New function.
6474 (check_typedef): Use get_type_length to compute type length.
6475 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6476 (TYPE_LOW_BOUND_KIND): New macro.
6477 (is_dynamic_type): New function prototype.
6478 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6479 to resolve dynamic properties of the type. Update comment.
6480 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6482 2014-04-14 Richard Henderson <rth@redhat.com>
6484 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6486 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6487 Doug Evans <xdje42@gmail.com>
6489 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6490 dereference TYPE_CODE_REF values.
6492 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6494 Revert the following changes due to regressions:
6496 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6497 (dwarf2_evaluate_property): New function.
6498 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6499 * dwarf2read.c (attr_to_dynamic_prop): New function.
6500 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6502 * gdbtypes.c: Include dwarf2loc.h.
6503 (is_dynamic_type): New function.
6504 (resolve_dynamic_type): New function.
6505 (resolve_dynamic_bounds): New function.
6506 (get_type_length): New function.
6507 (check_typedef): Use get_type_length to compute type length.
6508 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6509 (TYPE_LOW_BOUND_KIND): New macro.
6510 (is_dynamic_type): New function prototype.
6511 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6512 to resolve dynamic properties of the type. Update comment.
6513 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6515 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6516 passed to sizeof is dynamic evaluate the argument to compute the length.
6518 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6519 value and retrieve the dynamic type size.
6521 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6522 (ada_template_to_fixed_record_type_1): Likewise.
6523 (ada_to_fixed_type_1): Likewise.
6524 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6525 (cp_print_value): Likewise.
6526 * d-valprint.c (dynamic_array_type): Likewise.
6527 * eval.c (evaluate_subexp_with_coercion): Likewise.
6528 * findvar.c (address_of_variable): Likewise.
6529 * jv-valprint.c (java_value_print): Likewise.
6530 * valops.c (value_ind): Likewise.
6531 * value.c (coerce_ref): Likewise.
6533 * c-typeprint.c (c_type_print_varspec_suffix): Added
6534 check for not yet resolved high bound. If unresolved, print
6535 "variable length" string to the console instead of random
6538 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6539 property and store it as the high bound and flag the range accordingly.
6540 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6541 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6542 * gdbtypes.h (enum range_flags): New enum.
6543 (struct range_bounds): Add flags member.
6545 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6546 points to a constant blob.
6548 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6549 (evaluate_subexp_standard): Pass noside argument.
6550 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6551 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6552 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6553 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6554 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6556 2014-04-11 Keith Seitz <keiths@redhat.com>
6559 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6560 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6563 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6565 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6566 (evaluate_subexp_standard): Pass noside argument.
6567 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6568 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6569 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6570 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6571 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6573 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6575 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6576 points to a constant blob.
6578 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6580 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6581 property and store it as the high bound and flag the range accordingly.
6582 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6583 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6584 * gdbtypes.h (enum range_flags): New enum.
6585 (struct range_bounds): Add flags member.
6587 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6589 * c-typeprint.c (c_type_print_varspec_suffix): Added
6590 check for not yet resolved high bound. If unresolved, print
6591 "variable length" string to the console instead of random
6594 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6596 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6597 (ada_template_to_fixed_record_type_1): Likewise.
6598 (ada_to_fixed_type_1): Likewise.
6599 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6600 (cp_print_value): Likewise.
6601 * d-valprint.c (dynamic_array_type): Likewise.
6602 * eval.c (evaluate_subexp_with_coercion): Likewise.
6603 * findvar.c (address_of_variable): Likewise.
6604 * jv-valprint.c (java_value_print): Likewise.
6605 * valops.c (value_ind): Likewise.
6606 * value.c (coerce_ref): Likewise.
6608 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6610 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6611 value and retrieve the dynamic type size.
6613 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6615 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6616 passed to sizeof is dynamic evaluate the argument to compute the length.
6618 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6620 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6621 (dwarf2_evaluate_property): New function.
6622 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6623 * dwarf2read.c (attr_to_dynamic_prop): New function.
6624 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6626 * gdbtypes.c: Include dwarf2loc.h.
6627 (is_dynamic_type): New function.
6628 (resolve_dynamic_type): New function.
6629 (resolve_dynamic_bounds): New function.
6630 (get_type_length): New function.
6631 (check_typedef): Use get_type_length to compute type length.
6632 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6633 (TYPE_LOW_BOUND_KIND): New macro.
6634 (is_dynamic_type): New function prototype.
6635 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6636 to resolve dynamic properties of the type. Update comment.
6637 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6639 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6641 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6642 declaring high/low bounds and change uses accordingly. Call
6643 create_range_type instead of create_static_range_type.
6644 * gdbtypes.c (create_range_type): New function.
6645 (create_range_type): Convert bounds into struct bound_prop and pass
6646 them to create_range_type.
6647 * gdbtypes.h (struct bound_prop): New struct.
6648 (create_range_type): New function prototype.
6649 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6650 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6651 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6653 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6655 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6657 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6658 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6659 * ada-lang.c: All uses of create_range_type updated.
6660 * coffread.c: All uses of create_range_type updated.
6661 * dwarf2read.c: All uses of create_range_type updated.
6662 * f-exp.y: All uses of create_range_type updated.
6663 * m2-valprint.c: All uses of create_range_type updated.
6664 * mdebugread.c: All uses of create_range_type updated.
6665 * stabsread.c: All uses of create_range_type updated.
6666 * valops.c: All uses of create_range_type updated.
6667 * valprint.c: All uses of create_range_type updated.
6669 2014-04-10 Pedro Alves <palves@redhat.com>
6671 * breakpoint.c (single_step_breakpoints)
6672 (single_step_gdbarch): Move up in the file.
6673 (one_breakpoint_xfer_memory): New function, factored out from ...
6674 (breakpoint_xfer_memory): ... here. Also process single-step
6677 2014-04-09 Tristan Gingold <gingold@adacore.com>
6679 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6681 (darwin_decode_exception_message): Free port only after use.
6683 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6685 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6686 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6687 when setting the size of call_length.
6689 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6691 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6692 dereference TYPE_CODE_REF values.
6694 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6696 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6697 end of warning message.
6699 2014-04-03 Doug Evans <dje@google.com>
6701 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6702 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6704 2014-04-02 Alan Modra <amodra@gmail.com>
6706 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6707 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6708 (struct symbol_file_add_from_memory_args): Add size field.
6709 (find_vdso_size): New function.
6710 (add_vsyscall_page): Attempt to find vdso size.
6712 2014-04-01 Doug Evans <dje@google.com>
6714 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6716 2014-04-01 Tristan Gingold <gingold@adacore.com>
6718 * darwin-nat.c (darwin_encode_reply): Add prototype.
6719 (darwin_decode_exception_message): Reply to unknown inferiors.
6720 (darwin_decode_message): Handle message by id. Ignore message
6721 to unknown inferior.
6722 (darwin_wait): Discard unknown messages, add debug trace.
6724 2014-03-31 Doug Evans <dje@google.com>
6726 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6729 2014-03-31 Doug Evans <dje@google.com>
6731 New option "set print symbol-loading".
6733 * solib.c (solib_read_symbols): Only print symbol loading messages
6735 (solib_add): If symbol loading is in "brief" mode, notify user
6736 symbols are being loaded.
6737 (reload_shared_libraries_1): Ditto.
6738 * symfile.c (print_symbol_loading_off): New static global.
6739 (print_symbol_loading_brief): New static global.
6740 (print_symbol_loading_full): New static global.
6741 (print_symbol_loading_enums): New static global.
6742 (print_symbol_loading): New static global.
6743 (print_symbol_loading_p): New function.
6744 (symbol_file_add_with_addrs): Only print symbol loading messages
6746 (_initialize_symfile): Register "print symbol-loading" set/show
6748 * symfile.h (print_symbol_loading_p): Declare.
6750 2014-03-30 Doug Evans <xdje42@gmail.com>
6752 * infrun.c (set_last_target_status): New function.
6753 (handle_inferior_event): Call it.
6755 2014-03-30 Doug Evans <xdje42@gmail.com>
6757 * inferior.h (enum stop_kind): Improve comment.
6759 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6761 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6762 a reference, strip the reference layer before calling
6763 the lang_ops value_has_mutated callback.
6765 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6767 Remove some globals from our parser.
6768 * language.c (unk_lang_parser): Add "struct parser_state"
6770 * language.h (struct language_defn) <la_parser>: Likewise.
6771 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6772 (initialize_expout): Add "struct parser_state" argument.
6773 Rewrite function to use the parser state.
6774 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6775 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6776 write_exp_elt_longcst, write_exp_elt_dblcst,
6777 write_exp_elt_decfloatcst, write_exp_elt_type,
6778 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6779 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6780 write_dollar_variable): Likewise.
6781 (parse_exp_in_context_1): Use parser state.
6782 (insert_type_address_space): Add "struct parser_state" argument.
6784 (increase_expout_size): New function.
6785 * parser-defs.h: Forward declare "struct language_defn" and
6786 "struct parser_state".
6787 (expout, expout_size, expout_ptr): Remove extern declarations.
6788 (parse_gdbarch, parse_language): Rewrite macro declarations to
6789 accept the parser state.
6790 (struct parser_state): New struct.
6791 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6792 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6793 write_exp_elt_decfloatcst, write_exp_elt_type,
6794 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6795 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6796 write_exp_msymbol, write_dollar_variable,
6797 mark_struct_expression, insert_type_address_space): Add "struct
6798 parser_state" argument.
6799 (increase_expout_size): New function.
6800 * utils.c (do_clear_parser_state): New function.
6801 (make_cleanup_clear_parser_state): Likewise.
6802 * utils.h (make_cleanup_clear_parser_state): New function
6804 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6805 Update calls to write_exp* in order to pass the parser state.
6806 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6807 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6808 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6809 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6810 * stap-probe.c (stap_parse_register_operand): Likewise.
6811 (stap_parse_single_operand): Likewise.
6812 (stap_parse_argument_1): Likewise.
6813 (stap_parse_argument): Use parser state.
6814 * stap-probe.h: Include "parser-defs.h".
6815 (struct stap_parse_info) <pstate>: New field.
6816 * c-exp.y (parse_type): Rewrite to use parser state.
6817 (yyparse): Redefine to c_parse_internal.
6818 (pstate): New global variable.
6819 (parse_number): Add "struct parser_state" argument.
6820 (write_destructor_name): Likewise.
6821 (type_exp): Update calls to write_exp* and similars in order to
6823 (exp1, exp, variable, qualified_name, space_identifier,
6824 typename, typebase): Likewise.
6825 (write_destructor_name, parse_number, lex_one_token,
6826 classify_name, classify_inner_name, c_parse): Add "struct
6827 parser_state" argument. Update function to use parser state.
6828 * c-lang.h: Forward declare "struct parser_state".
6829 (c_parse): Add "struct parser_state" argument.
6830 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6831 (yyparse): Redefine macro to ada_parse_internal.
6832 (pstate): New variable.
6833 (write_int, write_object_renaming, write_var_or_type,
6834 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6835 type_int, type_long, type_long_long, type_float, type_double,
6836 type_long_double, type_char, type_boolean, type_system_address):
6837 Add "struct parser_state" argument.
6838 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6839 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6840 var_or_type, aggregate, aggregate_component_list,
6841 positional_list, others, component_group,
6842 component_associations): Update calls to write_exp* and similar
6843 functions in order to use parser state.
6844 (ada_parse, write_var_from_sym, write_int,
6845 write_exp_op_with_string, write_object_renaming,
6846 find_primitive_type, write_selectors, write_ambiguous_var,
6847 write_var_or_type, write_name_assoc, type_int, type_long,
6848 type_long_long, type_float, type_double, type_long_double,
6849 type_char, type_boolean, type_system_address): Add "struct
6850 parser_state" argument. Adjust function to use parser state.
6851 * ada-lang.c (parse): Likewise.
6852 * ada-lang.h: Forward declare "struct parser_state".
6853 (ada_parse): Add "struct parser_state" argument.
6854 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6855 calls to both functions.
6856 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6858 (yyparse): Redefine macro to f_parse_internal.
6859 (pstate): New variable.
6860 (parse_number): Add "struct parser_state" argument.
6861 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6862 and similars in order to use parser state.
6863 (parse_number): Adjust code to use parser state.
6865 (f_parse): New function.
6866 * f-lang.h: Forward declare "struct parser_state".
6867 (f_parse): Add "struct parser_state" argument.
6868 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6870 (yyparse): Redefine macro for java_parse_internal.
6871 (pstate): New variable.
6872 (push_expression_name, push_expression_name, insert_exp): Add
6873 "struct parser_state" argument.
6874 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6875 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6876 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6877 PostIncrementExpression, PostDecrementExpression,
6878 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6879 UnaryExpressionNotPlusMinus, CastExpression,
6880 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6881 RelationalExpression, EqualityExpression, AndExpression,
6882 ExclusiveOrExpression, InclusiveOrExpression,
6883 ConditionalAndExpression, ConditionalOrExpression,
6884 ConditionalExpression, Assignment, LeftHandSide): Update
6885 calls to write_exp* and similars in order to use parser state.
6886 (parse_number): Ajust code to use parser state.
6888 (java_parse): New function.
6889 (push_variable): Add "struct parser_state" argument. Adjust
6890 code to user parser state.
6891 (push_fieldnames, push_qualified_expression_name,
6892 push_expression_name, insert_exp): Likewise.
6893 * jv-lang.h: Forward declare "struct parser_state".
6894 (java_parse): Add "struct parser_state" argument.
6895 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6897 (yyparse): Redefine macro to m2_parse_internal.
6898 (pstate): New variable.
6899 (type_exp, exp, fblock, variable, type): Update calls to
6900 write_exp* and similars to use parser state.
6902 (m2_parse): New function.
6903 * m2-lang.h: Forward declare "struct parser_state".
6904 (m2_parse): Add "struct parser_state" argument.
6905 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6906 * objc-lang.h: Forward declare "struct parser_state".
6907 (end_msglist): Add "struct parser_state" argument.
6908 * p-exp.y (parse_type): Rewrite macro to use parser state.
6909 (yyparse): Redefine macro to pascal_parse_internal.
6910 (pstate): New variable.
6911 (parse_number): Add "struct parser_state" argument.
6912 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6913 write_exp* and similars in order to use parser state.
6914 (parse_number, yylex): Adjust code to use parser state.
6915 (pascal_parse): New function.
6916 * p-lang.h: Forward declare "struct parser_state".
6917 (pascal_parse): Add "struct parser_state" argument.
6918 * go-exp.y (parse_type): Rewrite macro to use parser state.
6919 (yyparse): Redefine macro to go_parse_internal.
6920 (pstate): New variable.
6921 (parse_number): Add "struct parser_state" argument.
6922 (type_exp, exp1, exp, variable, type): Update calls to
6923 write_exp* and similars in order to use parser state.
6924 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6925 to use parser state.
6926 (go_parse): Likewise.
6927 * go-lang.h: Forward declare "struct parser_state".
6928 (go_parse): Add "struct parser_state" argument.
6930 2014-03-27 Doug Evans <dje@google.com>
6932 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6934 2014-03-27 Doug Evans <dje@google.com>
6936 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6937 Remove argument abbrev_section. All callers updated.
6939 2014-03-27 Doug Evans <dje@google.com>
6941 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6942 addr_base, ranges_base.
6944 2014-03-26 Keith Seitz <keiths@redhat.com>
6946 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6947 types, not VAR_DOMAIN.
6949 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6951 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6953 * features/nios2-linux.c: Regenerated.
6954 * features/nios2.c: Regenerated.
6956 2014-03-25 Pedro Alves <palves@redhat.com>
6958 * cli/cli-script.c (script_from_file): Force the interpreter to
6961 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6963 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6964 small stack allocation.
6966 2014-03-24 Tristan Gingold <gingold@adacore.com>
6968 * darwin-nat.c (exc_server): Remove unused prototype.
6969 (darwin_dump_message): Correctly display data on x86_64.
6970 (darwin_encode_reply): Fix style.
6971 Add comments and fix indentation.
6973 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6975 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6977 2014-03-22 Doug Evans <xdje42@gmail.com>
6979 * infcmd.c: Whitespace fixes.
6980 (interrupt_command): Merge two function comments into one.
6982 2014-03-22 Doug Evans <xdje42@gmail.com>
6984 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6987 2014-03-22 Yao Qi <yao@codesourcery.com>
6989 * remote.c (target_read_live_memory): Remove.
6990 (memory_xfer_live_readonly_partial): Rename it to
6991 remote_xfer_live_readonly_partial. Remove argument 'object'.
6992 All callers updated. Call remote_read_bytes_1
6993 instead of target_read_live_memory.
6994 * tracepoint.c (set_traceframe_number): Remove.
6995 (make_cleanup_restore_traceframe_number): Likewise .
6996 * tracepoint.h (set_traceframe_number): Remove declaration.
6997 (make_cleanup_restore_traceframe_number): Likewise.
6999 2014-03-22 Yao Qi <yao@codesourcery.com>
7001 * remote.c (remote_read_bytes): Move code on reading from the
7003 (remote_read_bytes_1): ... here. New function.
7005 2014-03-22 Yao Qi <yao@codesourcery.com>
7007 * ctf.c (ctf_xfer_partial): Check the return value of
7008 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7009 return TARGET_XFER_UNAVAILABLE.
7010 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7011 * target.c (target_read_live_memory): Move it to remote.c.
7012 (memory_xfer_live_readonly_partial): Likewise.
7013 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7014 * remote.c (target_read_live_memory): Moved from target.c.
7015 (memory_xfer_live_readonly_partial): Likewise.
7016 (remote_read_bytes): Factored out from
7017 memory_xfer_partial_1.
7019 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7021 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7024 2014-03-21 Pedro Alves <palves@redhat.com>
7026 * infrun.c (normal_stop): Extend comment.
7028 2014-03-21 Hui Zhu <hui@codesourcery.com>
7029 Pedro Alves <palves@redhat.com>
7031 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7033 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7034 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7035 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7037 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7039 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7040 `z' formatted output modifier.
7042 2014-03-20 Tom Tromey <tromey@redhat.com>
7043 Sergio Durigan Junior <sergiodj@redhat.com>
7045 * probe.c (parse_probes): Turn assert into an ordinary error.
7046 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7047 exceptions when parsing probes. Rearrange the code for clarity.
7049 2014-03-20 Tom Tromey <tromey@redhat.com>
7052 * top.c (execute_command): Only dispatch events if the command
7055 2014-03-20 Tom Tromey <tromey@redhat.com>
7058 * infcall.c: Include event-top.h.
7059 (run_inferior_call): Call async_disable_stdin if needed.
7061 2014-03-20 Pedro Alves <palves@redhat.com>
7063 * infrun.c (prepare_to_proceed): Delete.
7064 (thread_still_needs_step_over): New function.
7065 (find_thread_needs_step_over): New function.
7066 (proceed): If the current thread needs a step-over, set its
7067 steping_over_breakpoint flag. Adjust to use
7068 find_thread_needs_step_over instead of prepare_to_proceed.
7069 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7070 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7072 (switch_back_to_stepped_thread): Step over breakpoints of all
7073 threads not the stepping thread, before switching back to the
7076 2014-03-20 Pedro Alves <palves@redhat.com>
7078 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7080 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7081 * infrun.c (saved_singlestep_ptid)
7082 (stepping_past_singlestep_breakpoint): Delete.
7083 (resume): Remove stepping_past_singlestep_breakpoint handling.
7084 (proceed): Store the prev_pc of the stepping thread too.
7085 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7087 (enum infwait_states): Delete infwait_thread_hop_state.
7088 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7090 (handle_inferior_event): Adjust.
7091 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7092 handling and the thread-hop code. Before removing single-step
7093 breakpoints, check whether the thread hit a single-step breakpoint
7094 of another thread. If it did, the trap is not a random signal.
7095 (switch_back_to_stepped_thread): If the event thread hit a
7096 single-step breakpoint, unblock it before switching to the
7097 stepping thread. Handle the case of the stepped thread having
7099 (keep_going): Handle the case of the current thread moving past a
7100 single-step breakpoint.
7102 2014-03-20 Pedro Alves <palves@redhat.com>
7105 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7106 are being stepped over.
7107 (breakpoint_address_match): Make extern.
7108 * breakpoint.h (breakpoint_address_match): New declaration.
7109 * inferior.h (stepping_past_instruction_at): New declaration.
7110 * infrun.c (struct step_over_info): New type.
7111 (step_over_info): New global.
7112 (set_step_over_info, clear_step_over_info)
7113 (stepping_past_instruction_at): New functions.
7114 (handle_inferior_event): Clear the step-over info when
7115 trap_expected is cleared.
7116 (resume): Remove now stale comment.
7117 (clear_proceed_status): Clear step-over info.
7118 (proceed): Adjust step-over handling to set or clear the step-over
7119 info instead of removing all breakpoints.
7120 (handle_signal_stop): When setting up a thread-hop, don't remove
7122 (stop_stepping): Clear step-over info.
7123 (keep_going): Adjust step-over handling to set or clear step-over
7124 info and then always inserting breakpoints, instead of removing
7125 all breakpoints when stepping over one.
7127 2014-03-20 Pedro Alves <palves@redhat.com>
7129 * infrun.c (previous_inferior_ptid): Adjust comment.
7130 (deferred_step_ptid): Delete.
7131 (infrun_thread_ptid_changed, prepare_to_proceed)
7132 (init_wait_for_inferior): Adjust.
7133 (handle_signal_stop): Delete deferred_step_ptid handling.
7135 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7138 * defs.h (sync_quit_force_run): New declaration.
7139 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7140 * event-top.c (async_sigterm_handler): New declaration.
7141 (async_sigterm_token): New variable.
7142 (async_init_signals): Create also async_sigterm_token.
7143 (async_sigterm_handler): New function.
7144 (sync_quit_force_run): New variable.
7145 (handle_sigterm): Replace quit_force call by other calls.
7146 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7148 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7150 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7151 offset into SPE pseudo registers.
7153 2014-03-18 Pedro Alves <palves@redhat.com>
7156 * inferior.h (print_stop_event): Declare.
7157 * infrun.c (print_stop_event): New, factored out from ...
7158 (normal_stop): ... this.
7159 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7160 of bpstat_print/print_stack_frame.
7162 2014-03-17 Tom Tromey <tromey@redhat.com>
7164 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7166 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7168 * ada-lang.c (decode_constrained_packed_array): Perform a
7169 minimal coercion for reference with coerce_ref instead of
7172 2014-03-17 Tristan Gingold <gingold@adacore.com>
7174 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7175 (darwin_solib_create_inferior_hook): Emit a warning if version
7178 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7180 * python/py-value.c (get_field_flag): Cast flag_name argument to
7181 PyObject_GetAttrString to support Python 2.4.
7183 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7185 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7186 (Global Maintainers): Remove Jan Kratochvil.
7188 2014-03-14 Pedro Alves <palves@redhat.com>
7190 * inferior.h (terminal_ours_for_output): Rename to ...
7191 (child_terminal_ours_for_output): ... this.
7192 (terminal_save_ours): Rename to ...
7193 (child_terminal_save_ours): ... this.
7194 (terminal_ours): Rename to ...
7195 (child_terminal_ours): ... this.
7196 (terminal_inferior): Rename to ...
7197 (child_terminal_inferior): ... this.
7198 (terminal_init_inferior): Rename to ...
7199 (child_terminal_init_inferior): ... this.
7200 (terminal_init_inferior_with_pgrp): Rename to ...
7201 (child_terminal_init_inferior_with_pgrp): ... this.
7202 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7203 (child_terminal_init_with_pgrp): ... this.
7204 (terminal_save_ours): Rename to ...
7205 (child_terminal_save_ours): ... this.
7206 (terminal_init_inferior): Rename to ...
7207 (child_terminal_init): ... this. Adjust.
7208 (terminal_inferior): Rename to ...
7209 (child_terminal_inferior): ... this.
7210 (terminal_ours_for_output): Rename to ...
7211 (child_terminal_ours_for_output): ... this. Adjust.
7212 (terminal_ours): Rename to ...
7213 (child_terminal_ours): ... this.
7214 (terminal_ours_1): Rename to ...
7215 (child_terminal_ours_1): ... this. Adjust.
7216 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7217 * windows-nat.c (do_initial_windows_stuff): Adjust.
7218 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7219 (gnu_terminal_init): ... this. Adjust.
7220 (gnu_target): Adjust.
7221 * inf-child.c (inf_child_target): Adjust.
7223 2014-03-13 Doug Evans <xdje42@gmail.com>
7226 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7229 2014-03-13 Doug Evans <xdje42@gmail.com>
7231 * value.c (record_latest_value): Call release_value_or_incref
7232 instead of release_value.
7234 2014-03-13 Pedro Alves <palves@redhat.com>
7236 * procfs.c (procfs_target): Don't override to_shortname,
7237 to_longname or to_doc.
7239 2014-03-13 Pedro Alves <palves@redhat.com>
7241 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7242 Unix in user visible strings.
7244 2014-03-12 Stan Shebs <stan@codesourcery.com>
7246 * gdbtypes.h: Annotate comments for Doxygen, add a page
7247 block comment with some general info.
7249 2014-03-12 Pedro Alves <palves@redhat.com>
7251 * infcmd.c (prepare_execution_command): New function, factored out
7252 from several execution commands.
7253 (run_command_1, continue_command, step_1, jump_command)
7254 (signal_command, until_command, advance_command, finish_command)
7255 (attach_command): Use prepare_execution_command.
7257 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7259 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7262 (struct arm_linux_thread_points): Removed.
7263 (struct arm_linux_process_info): New.
7264 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7265 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7266 (arm_linux_find_breakpoints_by_tid): Removed.
7267 (struct arch_lwp_info): New.
7268 (arm_linux_find_process_pid): New functions.
7269 (arm_linux_add_process): New functions.
7270 (arm_linux_process_info_get): New functions.
7271 (arm_linux_forget_process): New function.
7272 (arm_linux_get_debug_reg_state): New function.
7273 (struct update_registers_data): New.
7274 (update_registers_callback): New function.
7275 (arm_linux_insert_hw_breakpoint1): Updated.
7276 (arm_linux_remove_hw_breakpoint1): Updated.
7277 (arm_linux_insert_hw_breakpoint): Updated.
7278 (arm_linux_remove_hw_breakpoint): Updated.
7279 (arm_linux_insert_watchpoint): Updated.
7280 (arm_linux_remove_watchpoint): Updated.
7281 (arm_linux_new_thread): Updated.
7282 (arm_linux_prepare_to_resume): New function.
7283 (arm_linux_new_fork): New function.
7284 (_initialize_arm_linux_nat): Updated.
7286 2014-03-12 Pedro Alves <palves@redhat.com>
7288 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7290 2014-03-12 Tom Tromey <tromey@redhat.com>
7292 * inf-child.c (return_zero): New function.
7293 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7294 * aix-thread.c (aix_thread_inferior_created): New function.
7295 (aix_thread_attach): Remove.
7296 (init_aix_thread_ops): Don't set to_attach.
7297 (_initialize_aix_thread): Register inferior_created observer.
7298 * corelow.c (init_core_ops): Don't set to_attach or
7300 * exec.c (init_exec_ops): Don't set to_attach or
7302 * infcmd.c (run_command_1): Use find_run_target. Make direct
7304 (attach_command): Use find_attach_target. Make direct target
7306 * record-btrace.c (init_record_btrace_ops): Don't set
7308 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7310 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7311 set to_create_inferior.
7312 * target.c (complete_target_initialization): Add assertion.
7313 (target_create_inferior): Remove.
7314 (find_default_attach, find_default_create_inferior): Remove.
7315 (find_attach_target, find_run_target): New functions.
7316 (find_default_is_async_p, find_default_can_async_p)
7317 (target_supports_non_stop, target_attach): Remove.
7318 (init_dummy_target): Don't set to_create_inferior or
7319 to_supports_non_stop.
7320 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7321 TARGET_DEFAULT_FUNC.
7322 <to_create_inferior>: Add comment.
7323 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7324 TARGET_DEFAULT_RETURN.
7325 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7326 (find_attach_target, find_run_target): Declare.
7327 (target_create_inferior): Remove.
7328 (target_has_execution_1): Update comment.
7329 (target_supports_non_stop): Remove.
7330 * target-delegates.c: Rebuild.
7332 2014-03-12 Pedro Alves <palves@redhat.com>
7334 * inf-child.h: Update comment to not mention Unix.
7336 2014-03-12 Pedro Alves <palves@redhat.com>
7338 * inf-child.c: Update top comment to not mention Unix. Add
7339 generic comment describing how this target is meant to be used.
7340 (inf_child_post_attach, inf_child_post_startup_inferior)
7341 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7344 2014-03-12 Pedro Alves <palves@redhat.com>
7346 * nto-procfs.c: Include inf-child.h.
7347 (procfs_ops): Delete global.
7348 (procfs_can_run): Delete method.
7349 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7350 target pointer instead of referencing procfs_ops.
7351 (procfs_prepare_to_store): Delete.
7352 (init_procfs_ops): Delete function.
7353 (procfs_target): New function, based on init_procfs_ops, but
7354 inherit inf_child_target.
7355 (_initialize_procfs): Use procfs_target.
7357 2014-03-12 Pedro Alves <palves@redhat.com>
7359 * windows-nat.c: Include inf-child.h.
7360 (windows_ops): Delete global.
7361 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7363 (init_windows_ops): Delete function.
7364 (windows_target): New function, based on init_windows_ops, but
7365 inherit inf_child_target.
7366 (_initialize_windows_nat): Use windows_target. Install x86
7367 specific target methods here.
7369 2014-03-10 Doug Evans <xdje42@gmail.com>
7371 * guile/guile.c (call_initialize_gdb_module): New function.
7372 (initialize_guile): Replace call to scm_init_guile with call to
7375 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7377 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7378 in call to TYPE_CODE macro.
7380 2014-03-10 Jerome Guitton <guitton@adacore.com>
7382 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7383 Resolve tagged types to full view.
7385 2014-03-10 Hui Zhu <hui@codesourcery.com>
7387 * target.h (target_insert_breakpoint): Remove "hardware" from its
7390 2014-03-07 Doug Evans <dje@google.com>
7392 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7394 2014-03-07 Doug Evans <dje@google.com>
7396 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7397 Remove unused local comp_dir_attr. Assert exactly one of
7398 stub_comp_unit_die, stub_comp_dir is non-NULL.
7400 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7402 * target.h (complete_target_initialization, add_target):
7405 2014-03-07 Pedro Alves <palves@redhat.com>
7407 * go32-nat.c: Include inf-child.h.
7408 (go32_ops): Delete global.
7409 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7411 (go32_create_inferior): Push the passed in target pointer instead
7412 of referencing go32_ops.
7413 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7414 (go32_target): New function, based on init_go32_ops, but inherit
7416 (_initialize_go32_nat): Use go32_target. Move parts of
7419 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7421 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7422 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7423 SYMBOL_VALUE_ADDRESS.
7424 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7426 2014-03-06 Yao Qi <yao@codesourcery.com>
7428 * breakpoint.c (get_tracepoint_by_number): Remove argument
7429 optional_p. All callers updated. Adjust comments. Update
7431 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7433 2014-03-06 Yao Qi <yao@codesourcery.com>
7435 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7436 early if get_number returns zero. Use 'p' instead of 'args'.
7438 2014-03-06 Yao Qi <yao@codesourcery.com>
7440 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7443 2014-03-06 Yao Qi <yao@codesourcery.com>
7445 PR breakpoints/16508
7446 * tracepoint.c (check_trace_running): New function.
7447 (trace_find_command): Move code to check_trace_running and
7448 call check_trace_running.
7449 (trace_find_pc_command): Likewise.
7450 (trace_find_tracepoint_command): Likewise.
7451 (trace_find_line_command): Likewise.
7452 (trace_find_range_command): Likewise.
7453 * tracepoint.h (check_trace_running): Likewise.
7454 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7456 2014-03-06 Yao Qi <yao@codesourcery.com>
7458 * target.h (struct target_ops) <to_traceframe_info>: Use
7459 TARGET_DEFAULT_NORETURN (tcomplain ()).
7460 * target-delegates.c: Regenerated.
7462 2014-03-05 Pedro Alves <palves@redhat.com>
7465 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7466 void. Update comment.
7467 (dcache_xfer_memory): Delete.
7468 (dcache_read_memory_partial): New, based on the read bits of
7470 (dcache_update): Add status parameter. Use ULONGEST for len, and
7471 adjust. Discard cache lines if the reason for the update was
7473 * dcache.h (dcache_xfer_memory): Delete declaration.
7474 (dcache_read_memory_partial): New declaration.
7475 (dcache_update): Update prototype.
7476 * target.c (raw_memory_xfer_partial): Update the dcache here.
7477 (memory_xfer_partial_1): Don't handle dcache writes here.
7479 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7481 * remote-sim.c (gdbsim_load): Add const to prog.
7483 2014-03-03 Tom Tromey <tromey@redhat.com>
7485 * elfread.c (probe_key): Change to bfd_data.
7486 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7487 now per-BFD, not per-objfile.
7488 * stap-probe.c (stap_probe_destroy): Update comment.
7489 (handle_stap_probe): Allocate on the per-BFD obstack.
7491 2014-03-03 Tom Tromey <tromey@redhat.com>
7493 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7494 * breakpoint.c (create_longjmp_master_breakpoint): Use
7496 (add_location_to_breakpoint, bkpt_probe_insert_location)
7497 (bkpt_probe_remove_location): Update.
7498 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7499 * elfread.c (elf_symfile_relocate_probe): Remove.
7500 (elf_probe_fns): Update.
7501 (insert_exception_resume_breakpoint): Change type of "probe"
7502 parameter to bound_probe.
7503 (check_exception_resume): Update.
7504 * objfiles.c (objfile_relocate1): Don't relocate probes.
7505 * probe.c (bound_probe_s): New typedef.
7506 (parse_probes): Use get_probe_address. Set sal's objfile.
7507 (find_probe_by_pc): Return a bound_probe.
7508 (collect_probes): Return a VEC(bound_probe_s).
7509 (compare_probes): Update.
7510 (gen_ui_out_table_header_info): Change type of "probes"
7512 (info_probes_for_ops): Update.
7513 (get_probe_address): New function.
7514 (probe_safe_evaluate_at_pc): Update.
7515 * probe.h (struct probe_ops) <get_probe_address>: New field.
7516 <set_semaphore, clear_semaphore>: Add objfile parameter.
7517 (struct probe) <objfile>: Remove field.
7519 <address>: Update comment.
7520 (struct bound_probe): New.
7521 (find_probe_by_pc): Return a bound_probe.
7522 (get_probe_address): Declare.
7523 * solib-svr4.c (struct probe_and_action) <address>: New field.
7524 (hash_probe_and_action, equal_probe_and_action): Update.
7525 (register_solib_event_probe): Add address parameter.
7526 (solib_event_probe_at): Update.
7527 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7529 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7530 (stap_get_probe_address): New function.
7531 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7532 (compile_probe_arg): Update.
7533 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7535 (handle_stap_probe): Don't relocate the probe.
7536 (stap_relocate): Remove.
7537 (stap_gen_info_probes_table_values): Update.
7538 (stap_probe_ops): Remove stap_relocate.
7539 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7540 (debug_sym_probe_fns): Update.
7541 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7542 * symtab.c (init_sal): Use memset.
7543 * symtab.h (struct symtab_and_line) <objfile>: New field.
7544 * tracepoint.c (start_tracing, stop_tracing): Update.
7546 2014-03-03 Tom Tromey <tromey@redhat.com>
7548 * probe.h (parse_probes, find_probe_by_pc)
7549 (find_probes_in_objfile): Fix comments.
7551 2014-03-02 Doug Evans <xdje42@gmail.com>
7553 * infrun.c (handle_signal_stop): Replace test for
7554 TARGET_WAITKIND_STOPPED with an assert.
7556 2014-03-02 Doug Evans <xdje42@gmail.com>
7558 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7560 2014-03-02 Doug Evans <xdje42@gmail.com>
7562 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7564 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7566 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7568 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7570 * i386obsd-nat.c: Include "obsd-nat.h".
7571 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7573 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7575 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7577 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7579 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7581 * mips64obsd-nat.c: Include "obsd-nath".
7582 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7584 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7586 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7588 * amd64obsd-nat.c: Include "obsd-nat,h.
7589 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7591 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7593 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7595 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7596 (find_overload_match): Update call to find_oload_champ.
7597 (find_oload_champ_namespace_loop): Likewise
7599 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7601 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7603 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7604 * config/sparc/obsd64.mh: New file.
7605 * sparc64obsd-nat.c: New file.
7607 * obsd-nat.h: New file.
7608 * obsd-nat.c: New file.
7609 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7610 (ALLDEPFILES): Add obsd-nat.c.
7612 2014-02-28 Tom Tromey <tromey@redhat.com>
7614 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7615 * cli-out.h (cli_ui_out_impl): Now const.
7616 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7617 * ui-out.c (struct ui_out) <impl>: Now const.
7618 (default_ui_out_impl): Now const.
7619 (ui_out_new): Make 'impl' parameter const.
7620 * ui-out.h (ui_out_new): Update.
7622 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7624 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7626 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7628 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7630 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7632 Additional PR 8882 fix.
7633 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7635 2014-02-27 Pedro Alves <palves@redhat.com>
7637 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7640 2014-02-27 Pedro Alves <palves@redhat.com>
7643 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7644 * nat/linux-waitpid.c: Include string.h.
7645 (status_to_str): Moved here and made extern.
7646 * nat/linux-waitpid.h (status_to_str): New declaration.
7648 2014-02-27 Hui Zhu <hui@codesourcery.com>
7651 * infrun.c (ptid_match): Move ...
7652 * common/ptid.c (ptid_match): ... here.
7653 * inferior.h (ptid_match): Move ...
7654 * common/ptid.h (ptid_match): ... here.
7656 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7658 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7659 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7662 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7664 * obsd-tdep.c (obsd_auxv_parse): New function.
7665 (obsd_init_abi): Set auxv_parse.
7667 * gdbarch.sh (auxv_parse): New.
7668 * gdbarch.h: Regenerated.
7669 * gdbarch.c: Regenerated.
7670 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7672 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7674 * guile/scm-value.c (gdbscm_history_append_x): New function.
7675 (value_functions): Add it.
7677 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7679 * dwarf2read.c (attr_value_as_address): New function.
7680 (dwarf2_find_base_address, read_call_site_scope): Use
7681 attr_value_as_address in place of DW_ADDR.
7682 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7683 the low and high addresses. Slight rework of the handling
7684 of the high pc being a constant form, and limit it to
7685 DWARF verson 4 or higher.
7686 (dwarf2_record_block_ranges): Likewise.
7687 (read_partial_die): Likewise.
7688 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7690 2014-02-26 Tom Tromey <tromey@redhat.com>
7692 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7694 2014-02-26 Tom Tromey <tromey@redhat.com>
7696 * elfread.c (elf_read_minimal_symbols): Return early if
7697 minimal symbols have already been read. Add "ei" parameter.
7698 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7699 * minsyms.c (prim_record_minimal_symbol_full): Update.
7700 * objfiles.h (struct objstats) <n_minsyms>: Move...
7701 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7702 * symmisc.c (print_objfile_statistics): Update.
7704 2014-02-26 Tom Tromey <tromey@redhat.com>
7706 * elfread.c (elf_read_minimal_symbols): New function, from
7708 (elf_symfile_read): Call it.
7710 2014-02-26 Tom Tromey <tromey@redhat.com>
7712 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7713 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7714 (lookup_minimal_symbol_solib_trampoline)
7715 (lookup_minimal_symbol_by_pc_section_1)
7716 (lookup_minimal_symbol_and_objfile): Update.
7717 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7718 Don't allocate a minimal symbol if minsyms have already been read.
7719 (build_minimal_symbol_hash_tables): Update.
7720 (install_minimal_symbols): Do nothing if minsyms already read.
7721 Use the per-BFD obstack.
7722 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7723 * objfiles.c (allocate_objfile): Call
7724 terminate_minimal_symbol_table later.
7725 (have_minimal_symbols): Update.
7726 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7727 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7728 Move from struct objfile.
7729 <minsyms_read>: New field.
7730 (struct objfile) <msymbols, minimal_symbol_count,
7731 msymbol_hash, msymbol_demangled_hash>: Move.
7732 (ALL_OBJFILE_MSYMBOLS): Update.
7733 * symfile.c (read_symbols): Set minsyms_read.
7734 (reread_symbols): Update.
7735 * symmisc.c (dump_objfile, dump_msymbols): Update.
7737 2014-02-26 Tom Tromey <tromey@redhat.com>
7739 * minsyms.c (msymbols_sort): Remove.
7740 * minsyms.h (msymbols_sort): Remove.
7741 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7742 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7743 * elfread.c (elf_symtab_read): Don't add section offsets.
7744 * xcoffread.c (record_minimal_symbol): Don't add section offset
7745 to minimal symbol address.
7746 * somread.c (text_offset, data_offset): Remove.
7747 (som_symtab_read): Don't add section offsets to minimal symbol
7749 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7750 Don't add section offsets to minimal symbols.
7751 * coffread.c (coff_symtab_read): Don't add section offsets
7752 to minimal symbol addresses.
7753 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7754 to minimal symbol addresses.
7755 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7756 section offset to minimal symbol addresses.
7757 * mdebugread.c (parse_partial_symbols): Don't add section
7758 offset to minimal symbol addresses.
7759 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7760 offset to minimal symbol addresses.
7762 2014-02-26 Tom Tromey <tromey@redhat.com>
7764 * ada-lang.c (ada_main_name): Update.
7765 (ada_add_standard_exceptions): Update.
7766 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7767 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7768 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7769 * auxv.c (ld_so_xfer_auxv): Update.
7770 * avr-tdep.c (avr_scan_prologue): Update.
7771 * ax-gdb.c (gen_var_ref): Update.
7772 * blockframe.c (get_pc_function_start)
7773 (find_pc_partial_function_gnu_ifunc): Update.
7774 * breakpoint.c (create_overlay_event_breakpoint)
7775 (create_longjmp_master_breakpoint)
7776 (create_std_terminate_master_breakpoint)
7777 (create_exception_master_breakpoint): Update.
7778 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7779 * c-valprint.c (c_val_print): Update.
7780 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7781 * common/agent.c (agent_look_up_symbols): Update.
7782 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7783 * dwarf2loc.c (call_site_to_target_addr): Update.
7784 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7785 * elfread.c (elf_gnu_ifunc_record_cache)
7786 (elf_gnu_ifunc_resolve_by_got): Update.
7787 * findvar.c (default_read_var_value): Update.
7788 * frame.c (inside_main_func): Update.
7789 * frv-tdep.c (frv_frame_this_id): Update.
7790 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7791 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7793 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7794 (hppa_hpux_find_dummy_bpaddr): Update.
7795 * hppa-tdep.c (hppa_symbol_address): Update.
7796 * infcmd.c (until_next_command): Update.
7797 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7799 * linespec.c (minsym_found, add_minsym): Update.
7800 * linux-nat.c (get_signo): Update.
7801 * linux-thread-db.c (inferior_has_bug): Update.
7802 * m32c-tdep.c (m32c_return_value)
7803 (m32c_m16c_address_to_pointer): Update.
7804 * m32r-tdep.c (m32r_frame_this_id): Update.
7805 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7806 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7807 * maint.c (maintenance_translate_address): Update.
7808 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7809 (frob_address): New function.
7810 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7811 frob_address. Rename parameter to "pc_in".
7812 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7814 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7816 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7817 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7818 * objc-lang.c (find_objc_msgsend): Update.
7819 * objfiles.c (objfile_relocate1): Update.
7820 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7821 * p-valprint.c (pascal_val_print): Update.
7822 * parse.c (write_exp_msymbol): Update.
7823 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7824 (ppc_elfv2_skip_entrypoint): Update.
7825 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7826 * printcmd.c (build_address_symbolic, msym_info)
7827 (address_info): Update.
7828 * proc-service.c (ps_pglobal_lookup): Update.
7829 * psymtab.c (find_pc_sect_psymtab_closer)
7830 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7831 Change msymbol parameter to bound_minimal_symbol.
7832 * ravenscar-thread.c (get_running_thread_id): Update.
7833 * remote.c (remote_check_symbols): Update.
7834 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7836 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7837 * solib-dsbt.c (lm_base): Update.
7838 * solib-frv.c (lm_base, main_got): Update.
7839 * solib-irix.c (locate_base): Update.
7840 * solib-som.c (som_solib_create_inferior_hook)
7841 (link_map_start): Update.
7842 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7843 * solib-svr4.c (elf_locate_base, enable_break): Update.
7844 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7845 (flush_ea_cache): Update.
7846 * stabsread.c (define_symbol, scan_file_globals): Update.
7847 * stack.c (find_frame_funname): Update.
7848 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7849 (debug_qf_find_pc_sect_symtab): Update.
7850 * symfile.c (simple_read_overlay_table)
7851 (simple_overlay_update): Update.
7852 * symfile.h (struct quick_symbol_functions)
7853 <find_pc_sect_symtab>: Change type of msymbol to
7854 bound_minimal_symbol.
7855 * symmisc.c (dump_msymbols): Update.
7856 * symtab.c (find_pc_sect_symtab_via_partial)
7857 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7858 (search_symbols, print_msymbol_info): Update.
7859 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7860 (MSYMBOL_VALUE_ADDRESS): Redefine.
7861 (BMSYMBOL_VALUE_ADDRESS): New macro.
7862 * tracepoint.c (scope_info): Update.
7863 * tui/tui-disasm.c (tui_find_disassembly_address)
7864 (tui_get_begin_asm_address): Update.
7865 * valops.c (find_function_in_inferior): Update.
7866 * value.c (value_static_field, value_fn_field): Update.
7868 2014-02-26 Tom Tromey <tromey@redhat.com>
7870 * ada-lang.c (ada_update_initial_language): Update.
7871 (ada_main_name, ada_has_this_exception_support): Update.
7872 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7873 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7874 * arm-tdep.c (arm_skip_stub): Update.
7875 * auxv.c (ld_so_xfer_auxv): Update.
7876 * avr-tdep.c (avr_scan_prologue): Update.
7877 * ax-gdb.c (gen_var_ref): Update.
7878 * breakpoint.c (struct breakpoint_objfile_data)
7879 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7880 type to bound_minimal_symbol.
7881 (create_overlay_event_breakpoint)
7882 (create_longjmp_master_breakpoint)
7883 (create_std_terminate_master_breakpoint)
7884 (create_exception_master_breakpoint): Update.
7885 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7886 * c-exp.y (classify_name): Update.
7887 * coffread.c (coff_symfile_read): Update.
7888 * common/agent.c (agent_look_up_symbols): Update.
7889 * d-lang.c (d_main_name): Update.
7890 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7891 * dec-thread.c (enable_dec_thread): Update.
7892 * dwarf2loc.c (call_site_to_target_addr): Update.
7893 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7894 * eval.c (evaluate_subexp_standard): Update.
7895 * findvar.c (struct minsym_lookup_data) <result>: Change type
7896 to bound_minimal_symbol.
7898 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7899 * frame.c (inside_main_func): Update.
7900 * frv-tdep.c (frv_frame_this_id): Update.
7901 * gcore.c (call_target_sbrk): Update.
7902 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7903 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7905 * go-lang.c (go_main_name): Update.
7906 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7907 (hppa_hpux_find_import_stub_for_addr): Update.
7908 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7909 Update. Change return type.
7910 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7912 * jit.c (jit_breakpoint_re_set_internal): Update.
7913 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7915 * linux-nat.c (get_signo): Update.
7916 * linux-thread-db.c (inferior_has_bug): Update
7917 * m32c-tdep.c (m32c_return_value)
7918 (m32c_m16c_address_to_pointer): Update.
7919 * m32r-tdep.c (m32r_frame_this_id): Update.
7920 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7921 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7922 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7923 lookup_minimal_symbol. Change return type.
7924 (lookup_minimal_symbol): Remove.
7925 (lookup_bound_minimal_symbol): Update.
7926 (lookup_minimal_symbol_text): Change return type.
7927 (lookup_minimal_symbol_solib_trampoline): Change return type.
7928 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7929 (lookup_minimal_symbol_solib_trampoline): Change return type.
7930 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7931 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7932 (value_nsstring, find_imps): Update.
7933 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7934 * p-lang.c (pascal_main_name): Update.
7935 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7936 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7937 * proc-service.c (ps_pglobal_lookup): Update.
7938 * ravenscar-thread.c (get_running_thread_msymbol): Change
7940 (has_ravenscar_runtime, get_running_thread_id): Update.
7941 * remote.c (remote_check_symbols): Update.
7942 * sol-thread.c (ps_pglobal_lookup): Update.
7943 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7944 * solib-dsbt.c (lm_base): Update.
7945 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7947 * solib-irix.c (locate_base): Update.
7948 * solib-som.c (som_solib_create_inferior_hook)
7949 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7951 * solib-spu.c (spu_enable_break): Update.
7952 * solib-svr4.c (elf_locate_base, enable_break): Update.
7953 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7954 (flush_ea_cache): Update.
7955 * stabsread.c (define_symbol): Update.
7956 * symfile.c (simple_read_overlay_table): Update.
7957 * symtab.c (find_pc_sect_line): Update.
7958 * tracepoint.c (scope_info): Update.
7959 * tui-disasm.c (tui_get_begin_asm_address): Update.
7960 * value.c (value_static_field): Update.
7962 2014-02-26 Tom Tromey <tromey@redhat.com>
7964 * minsyms.c (prim_record_minimal_symbol_full): Use
7965 SET_MSYMBOL_VALUE_ADDRESS.
7966 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7967 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7968 SET_MSYMBOL_VALUE_ADDRESS.
7969 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7970 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7972 2014-02-26 Tom Tromey <tromey@redhat.com>
7974 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7975 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7976 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7977 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7978 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7979 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7980 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7981 * ada-lang.c (ada_main_name): Update.
7982 (ada_lookup_simple_minsym): Update.
7983 (ada_make_symbol_completion_list): Update.
7984 (ada_add_standard_exceptions): Update.
7985 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7986 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7987 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7988 * arm-tdep.c (skip_prologue_function): Update.
7989 (arm_skip_stack_protector, arm_skip_stub): Update.
7990 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7991 (arm_wince_skip_main_prologue): Update.
7992 * auxv.c (ld_so_xfer_auxv): Update.
7993 * avr-tdep.c (avr_scan_prologue): Update.
7994 * ax-gdb.c (gen_var_ref): Update.
7995 * block.c (call_site_for_pc): Update.
7996 * blockframe.c (get_pc_function_start): Update.
7997 (find_pc_partial_function_gnu_ifunc): Update.
7998 * breakpoint.c (create_overlay_event_breakpoint): Update.
7999 (create_longjmp_master_breakpoint): Update.
8000 (create_std_terminate_master_breakpoint): Update.
8001 (create_exception_master_breakpoint): Update.
8002 (resolve_sal_pc): Update.
8003 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8004 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8006 * c-valprint.c (c_val_print): Update.
8007 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8008 * coffread.c (coff_symfile_read): Update.
8009 * common/agent.c (agent_look_up_symbols): Update.
8010 * dbxread.c (find_stab_function_addr): Update.
8011 (end_psymtab): Update.
8012 * dwarf2loc.c (call_site_to_target_addr): Update.
8013 (func_verify_no_selftailcall): Update.
8014 (tailcall_dump): Update.
8015 (call_site_find_chain_1): Update.
8016 (dwarf_expr_reg_to_entry_parameter): Update.
8017 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8018 (elf_gnu_ifunc_resolve_by_got): Update.
8019 * f-valprint.c (info_common_command): Update.
8020 * findvar.c (read_var_value): Update.
8021 * frame.c (get_prev_frame_1): Update.
8022 (inside_main_func): Update.
8023 * frv-tdep.c (frv_skip_main_prologue): Update.
8024 (frv_frame_this_id): Update.
8025 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8026 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8027 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8028 (gnuv3_skip_trampoline): Update.
8029 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8030 (hppa64_hpux_in_solib_call_trampoline): Update.
8031 (hppa_hpux_skip_trampoline_code): Update.
8032 (hppa64_hpux_search_dummy_call_sequence): Update.
8033 (hppa_hpux_find_import_stub_for_addr): Update.
8034 (hppa_hpux_find_dummy_bpaddr): Update.
8035 * hppa-tdep.c (hppa_symbol_address)
8036 (hppa_lookup_stub_minimal_symbol): Update.
8037 * i386-tdep.c (i386_skip_main_prologue): Update.
8038 (i386_pe_skip_trampoline_code): Update.
8039 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8040 * infcall.c (get_function_name): Update.
8041 * infcmd.c (until_next_command): Update.
8042 * jit.c (jit_breakpoint_re_set_internal): Update.
8043 (jit_inferior_init): Update.
8044 * linespec.c (minsym_found): Update.
8045 (add_minsym): Update.
8046 * linux-fork.c (info_checkpoints_command): Update.
8047 * linux-nat.c (get_signo): Update.
8048 * linux-thread-db.c (inferior_has_bug): Update.
8049 * m32c-tdep.c (m32c_return_value): Update.
8050 (m32c_m16c_address_to_pointer): Update.
8051 (m32c_m16c_pointer_to_address): Update.
8052 * m32r-tdep.c (m32r_frame_this_id): Update.
8053 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8054 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8055 * maint.c (maintenance_translate_address): Update.
8056 * minsyms.c (add_minsym_to_hash_table): Update.
8057 (add_minsym_to_demangled_hash_table): Update.
8058 (msymbol_objfile): Update.
8059 (lookup_minimal_symbol): Update.
8060 (iterate_over_minimal_symbols): Update.
8061 (lookup_minimal_symbol_text): Update.
8062 (lookup_minimal_symbol_by_pc_name): Update.
8063 (lookup_minimal_symbol_solib_trampoline): Update.
8064 (lookup_minimal_symbol_by_pc_section_1): Update.
8065 (lookup_minimal_symbol_and_objfile): Update.
8066 (prim_record_minimal_symbol_full): Update.
8067 (compare_minimal_symbols): Update.
8068 (compact_minimal_symbols): Update.
8069 (build_minimal_symbol_hash_tables): Update.
8070 (install_minimal_symbols): Update.
8071 (terminate_minimal_symbol_table): Update.
8072 (find_solib_trampoline_target): Update.
8073 (minimal_symbol_upper_bound): Update.
8074 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8075 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8076 (mips_skip_pic_trampoline_code): Update.
8077 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8078 * objc-lang.c (selectors_info): Update.
8079 (classes_info): Update.
8080 (find_methods): Update.
8081 (find_imps): Update.
8082 (find_objc_msgsend): Update.
8083 * objfiles.c (objfile_relocate1): Update.
8084 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8085 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8086 * p-valprint.c (pascal_val_print): Update.
8087 * parse.c (write_exp_msymbol): Update.
8088 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8089 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8090 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8091 * printcmd.c (build_address_symbolic): Update.
8093 (address_info): Update.
8094 * proc-service.c (ps_pglobal_lookup): Update.
8095 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8096 (find_pc_sect_psymtab): Update.
8097 * python/py-framefilter.c (py_print_frame): Update.
8098 * ravenscar-thread.c (get_running_thread_id): Update.
8099 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8101 * remote.c (remote_check_symbols): Update.
8102 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8103 (rs6000_skip_trampoline_code): Update.
8104 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8105 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8106 * solib-dsbt.c (lm_base): Update.
8107 * solib-frv.c (lm_base): Update.
8109 * solib-irix.c (locate_base): Update.
8110 * solib-som.c (som_solib_create_inferior_hook): Update.
8111 (som_solib_desire_dynamic_linker_symbols): Update.
8112 (link_map_start): Update.
8113 * solib-spu.c (spu_enable_break): Update.
8114 (ocl_enable_break): Update.
8115 * solib-svr4.c (elf_locate_base): Update.
8116 (enable_break): Update.
8117 * spu-tdep.c (spu_get_overlay_table): Update.
8118 (spu_catch_start): Update.
8119 (flush_ea_cache): Update.
8120 * stabsread.c (define_symbol): Update.
8121 (scan_file_globals): Update.
8122 * stack.c (find_frame_funname): Update.
8123 (frame_info): Update.
8124 * symfile.c (simple_read_overlay_table): Update.
8125 (simple_overlay_update): Update.
8126 * symmisc.c (dump_msymbols): Update.
8127 * symtab.c (fixup_section): Update.
8128 (find_pc_sect_line): Update.
8129 (skip_prologue_sal): Update.
8130 (search_symbols): Update.
8131 (print_msymbol_info): Update.
8132 (rbreak_command): Update.
8133 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8134 (completion_list_objc_symbol): Update.
8135 (default_make_symbol_completion_list_break_on): Update.
8136 * tracepoint.c (scope_info): Update.
8137 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8138 (tui_get_begin_asm_address): Update.
8139 * valops.c (find_function_in_inferior): Update.
8140 * value.c (value_static_field): Update.
8141 (value_fn_field): Update.
8143 2014-02-26 Tom Tromey <tromey@redhat.com>
8145 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8146 bound minimal symbols. Move code that knows about minsym
8148 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8150 * minsyms.h (minimal_symbol_upper_bound): Declare.
8151 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8152 minimal_symbol_upper_bound.
8154 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8156 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8157 Use the type's name if its basic type does not have a tag.
8159 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8161 * dwarf2read.c (read_subrange_type): Add comment.
8163 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8165 * dwarf2read.c (update_enumeration_type_from_children): New
8166 function, mostly extracted from process_structure_scope.
8167 (read_enumeration_type): Call update_enumeration_type_from_children.
8168 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8169 and flag_flag_enum fields.
8171 2014-02-26 Pedro Alves <palves@redhat.com>
8173 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8174 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8175 to_xfer_partial method.
8177 2014-02-26 Pedro Alves <palves@redhat.com>
8179 * target.c (complete_target_initialization): Don't install
8180 default_xfer_partial as to_xfer_partial hook.
8182 (update_current_target): Don't INHERIT nor de_fault
8183 deprecated_xfer_memory. Delete de_fault macro.
8184 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8185 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8186 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8189 2014-02-26 Pedro Alves <palves@redhat.com>
8191 * go32-nat.c (my_write_child): New function.
8192 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8193 (go32_xfer_partial): New function.
8194 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8195 Instead install a to_xfer_partial hook.
8197 2014-02-26 Pedro Alves <palves@redhat.com>
8199 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8200 to_xfer_partial helper. Rewrite.
8201 (procfs_xfer_partial): New function.
8202 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8203 Install a to_xfer_partial hook.
8205 2014-02-26 Pedro Alves <palves@redhat.com>
8207 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8208 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8209 (m32r_xfer_partial): New function.
8210 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8211 Install a to_xfer_partial hook.
8213 2014-02-26 Pedro Alves <palves@redhat.com>
8215 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8217 (mips_xfer_partial): New function.
8218 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8219 hook. Install a to_xfer_partial hook.
8221 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8223 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8224 * gdbtypes.c (create_array_type_with_stride): New function,
8225 renaming create_array_type, but with an added parameter
8226 called "bit_stride".
8227 (create_array_type): Re-implement using
8228 create_array_type_with_stride.
8229 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8230 and DW_AT_bit_stride attributes.
8232 2014-02-26 Pedro Alves <palves@redhat.com>
8234 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8235 task-specific breakpoints.
8237 2014-02-25 Pedro Alves <palves@redhat.com>
8239 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8240 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8242 2014-02-25 Stan Shebs <stan@codesourcery.com>
8244 * defs.h: Annotate comments for Doxygen.
8246 2014-02-25 Tom Tromey <tromey@redhat.com>
8248 * target.h (target_ignore): Don't declare.
8249 * target.c (target_ignore): Remove.
8251 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8254 * auto-load.c (auto_load_objfile_script_1): Change filename to
8257 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8259 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8260 documentation. Adjust prototype to match the target_ops
8261 to_xfer_partial method. Adjust implementation accordingly.
8263 2014-02-25 Hui Zhu <hui@codesourcery.com>
8265 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8268 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8270 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8271 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8272 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8273 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8274 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8275 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8276 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8277 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8279 (rl78_register_type): Use a data pointer type for SP and
8280 new pseudo registers mentioned above. Use a 16 bit integer
8281 type for all other register pairs.
8282 (rl78_register_name, rl78_g10_register_name): Update for
8283 new pseudo registers.
8284 (rl78_pseudo_register_read): Likewise.
8285 (rl78_pseudo_register_write): Likewise.
8286 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8287 to the newly added pseudo registers.
8289 2014-02-24 Doug Evans <dje@google.com>
8291 * value.c (record_latest_value): Fix comment.
8292 * printcmd.c (print_command_1): Remove code to handle -1 return from
8293 record_latest_value.
8295 2014-02-24 Pedro Alves <palves@redhat.com>
8297 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8298 deprecated_xfer_memory hook.
8299 (procfs_xfer_partial): Call procfs_xfer_memory instead
8300 of the deprecated_xfer_memory target hook.
8301 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8304 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8306 * windows-nat.c (windows_xfer_shared_libraries): Return
8307 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8308 requested object is TARGET_OBJECT_LIBRARIES.
8310 2014-02-24 Yao Qi <yao@codesourcery.com>
8312 * target.h (enum target_xfer_status)
8313 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8314 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8316 * corefile.c (memory_error_message): User updated.
8317 * exec.c (section_table_read_available_memory): Likewise.
8318 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8319 * target.c (target_xfer_status_to_string): Likewise.
8320 (raw_memory_xfer_partial): Likewise.
8321 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8322 * valops.c (read_value_memory): Likewise.
8323 * exec.h: Update comments.
8325 2014-02-24 Yao Qi <yao@codesourcery.com>
8327 * target.c (target_xfer_status_to_string): Rename argument err
8329 * target.h (target_xfer_status_to_string): Update declaration.
8330 Replace target_xfer_error_to_string with
8331 target_xfer_status_to_string in comment.
8333 2014-02-24 Yao Qi <yao@codesourcery.com>
8335 * mips-linux-nat.c (super_close): Update its type.
8336 (mips_linux_close): Pass 'self' to super_close.
8338 2014-02-24 Yao Qi <yao@codesourcery.com>
8340 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8341 * corefile.c (read_memory): Adjusted.
8342 * target.c (target_write_with_progress): Adjusted.
8344 2014-02-23 Yao Qi <yao@codesourcery.com>
8348 2013-10-25 Yao Qi <yao@codesourcery.com>
8350 * remote.c (remote_traceframe_info): Return early if
8351 traceframe is not selected.
8353 2013-07-19 Yao Qi <yao@codesourcery.com>
8355 * target.c (update_current_target): Change the default action
8356 of 'to_traceframe_info' from tcomplain to return_zero.
8357 * target.h (struct target_ops) <to_traceframe_info>: Add more
8360 2014-02-23 Yao Qi <yao@codesourcery.com>
8362 * valops.c (read_value_memory): Rewrite it. Call
8363 target_xfer_partial in a loop.
8364 * exec.h (section_table_available_memory): Remove declaration.
8365 Move comments to ...
8366 * exec.c (section_table_available_memory): ... here. Make it
8369 2014-02-23 Yao Qi <yao@codesourcery.com>
8371 * exec.c (section_table_read_available_memory): New function.
8372 * exec.h (section_table_read_available_memory): Declare.
8373 * ctf.c (ctf_xfer_partial): Call
8374 section_table_read_available_memory.
8375 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8377 2014-02-23 Yao Qi <yao@codesourcery.com>
8379 * ctf.c (ctf_xfer_partial): Move code to ...
8380 * exec.c (exec_read_partial_read_only): ... it. New function.
8381 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8382 * tracefile.c: Include "exec.h".
8383 * exec.h (exec_read_partial_read_only): Declare.
8385 2014-02-23 Yao Qi <yao@codesourcery.com>
8387 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8388 (tfile_has_memory): Remove.
8389 (init_tfile_ops): Don't set fields to_has_all_memory and
8390 to_has_memory of tfile_ops.
8391 * tracefile.c (tracefile_has_all_memory): New function.
8392 (tracefile_has_memory): New function.
8393 (init_tracefile_ops): Initialize fields to_has_all_memory and
8394 to_has_memory of 'ops'.
8396 2014-02-23 Yao Qi <yao@codesourcery.com>
8398 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8399 (ctf_thread_alive, ctf_get_trace_status): Remove.
8400 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8402 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8403 (tfile_has_stack, tfile_has_registers): Remove.
8404 (tfile_thread_alive): Remove.
8405 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8407 * tracefile.c (tracefile_has_stack): New function.
8408 (tracefile_has_registers): New function.
8409 (tracefile_thread_alive): New function.
8410 (tracefile_get_trace_status): New function.
8411 (init_tracefile_ops): New function.
8412 * tracefile.h (init_tracefile_ops): Declare.
8414 2014-02-23 Yao Qi <yao@codesourcery.com>
8416 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8417 (O_LARGEFILE): Likewise.
8418 (tfile_ops): Likewise.
8419 (TRACE_HEADER_SIZE): Likewise.
8420 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8421 (cur_data_size): Likewise.
8422 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8423 (tfile_close, tfile_files_info): Likewise.
8424 (tfile_get_trace_status): Likewise.
8425 (tfile_get_tracepoint_status): Likewise.
8426 (tfile_get_traceframe_address): Likewise.
8427 (tfile_trace_find, match_blocktype): Likewise.
8428 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8429 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8430 (tfile_get_trace_state_variable_value): Likewise.
8431 (tfile_has_all_memory, tfile_has_memory): Likewise.
8432 (tfile_has_stack, tfile_has_registers): Likewise.
8433 (tfile_thread_alive, build_traceframe_info): Likewise.
8434 (tfile_traceframe_info, init_tfile_ops): Likewise.
8435 (_initialize_tracepoint): Don't call init_tfile_ops
8436 and add_target_with_completer.
8437 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8438 exec.h, completer.h and filenames.h.
8439 (_initialize_tracefile_tfile): New function.
8441 2014-02-23 Yao Qi <yao@codesourcery.com>
8443 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8445 (HFILES_NO_SRCDIR): Add tracefile.h.
8446 * ctf.c: Include "tracefile.h".
8447 * tracefile.h: New file.
8448 * tracefile.c: New file
8449 * tracefile-tfile.c: New file.
8450 * tracepoint.c: Include "tracefile.h".
8451 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8452 (stop_reason_names): Add const.
8453 (trace_file_writer_xfree): Move it to tracefile.c.
8454 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8455 (trace_save_ctf): Likewise.
8456 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8457 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8458 (tfile_write_header, tfile_write_regblock_type): Likewise.
8459 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8460 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8461 (tfile_write_raw_data, tfile_end): Likewise.
8462 (tfile_trace_file_writer_new): Likewise.
8463 (free_uploaded_tp): Make it extern.
8464 (free_uploaded_tsv): Make it extern.
8465 (_initialize_tracepoint): Move code to register command 'tsave'
8467 * tracepoint.h (stop_reason_names): Declare.
8468 (struct trace_frame_write_ops): Move it to tracefile.h.
8469 (struct trace_file_write_ops): Likewise.
8470 (struct trace_file_writer): Likewise.
8471 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8473 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8476 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8478 (get_cores_used_by_process): New parameter num_cores, use it.
8479 (linux_xfer_osdata_processes): Pass num_cores to it.
8480 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8483 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8485 * target.c (memory_xfer_partial): Fix length arg in call to
8486 breakpoint_xfer_memory.
8488 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8491 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8492 number comes after the + or - signs. Adjust length of register
8493 name to be extracted.
8495 2014-02-20 Tom Tromey <tromey@redhat.com>
8497 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8498 (ada_varobj_ops): Mark "extern".
8500 2014-02-20 Tom Tromey <tromey@redhat.com>
8502 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8504 2014-02-20 Doug Evans <xdje42@gmail.com>
8506 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8507 All callers updated.
8508 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8509 All callers updated.
8510 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8511 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8513 2014-02-20 lin zuojian <manjian2006@gmail.com>
8514 Joel Brobecker <brobecker@adacore.com>
8515 Doug Evans <xdje42@gmail.com>
8518 * dwarf2read.c (struct die_info): New member in_process.
8519 (reset_die_in_process): New function.
8520 (process_die): Set it at the start, reset when returning.
8521 (inherit_abstract_dies): Only call process_die if origin_child_die
8522 not already being processed.
8524 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8526 * windows-nat.c (handle_unload_dll): Add function documentation.
8527 (do_initial_windows_stuff): Add comment explaining why we wait
8528 until after inferior initialization has finished before
8529 processing all DLLs.
8531 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8533 * windows-nat.c (get_module_name): Delete.
8534 (windows_get_exec_module_filename): New function, mostly
8535 inspired from get_module_name.
8536 (windows_pid_to_exec_file): Replace call to get_module_name
8537 by call to windows_get_exec_module_filename.
8539 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8541 * windows-nat.c (handle_load_dll): Rewrite this function's
8542 introductory comment. Remove code using get_module_name
8543 to get the DLL's name.
8545 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8547 * windows-nat.c (get_windows_debug_event): Ignore
8548 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8549 if windows_initialization_done == 0.
8550 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8551 Adjust implementation to always load all DLLs.
8552 (do_initial_windows_stuff): Replace call to
8553 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8555 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8557 * windows-nat.c (_initialize_windows_nat): Deprecate the
8558 "dll-symbols" command. Turn the "add-shared-symbol-files"
8559 and "assf" aliases into commands, and deprecate them as well.
8560 * NEWS: Add entry explaining that "dll-symbols" and its two
8561 aliases are now deprecated.
8563 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8565 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8566 new-line in debug string. Remove trailing spaces.
8568 2014-02-19 Stan Shebs <stan@codesourcery.com>
8570 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8572 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8574 * NEWS: Add entry for the new feature
8575 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8578 2014-02-19 Stan Shebs <stan@codesourcery.com>
8580 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8582 2014-02-19 Pedro Alves <palves@redhat.com>
8584 * common/ptid.h (struct ptid): Mention that process_stratum
8585 targets should prefer ptid.lwp.
8587 2014-02-19 Pedro Alves <palves@redhat.com>
8589 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8590 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8591 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8592 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8593 store remote thread ids rather than ptid.tid.
8594 (_initialize_remote): Adjust.
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8598 * target.c (target_get_unwinder): Rewrite.
8599 (target_get_tailcall_unwinder): Rewrite.
8600 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8601 (record_btrace_to_get_tailcall_unwinder): New function.
8602 (init_record_btrace_ops): Update.
8603 * target.h (struct target_ops) <to_get_unwinder,
8604 to_get_tailcall_unwinder>: Now function pointers. Use
8605 TARGET_DEFAULT_RETURN.
8607 2014-02-19 Tom Tromey <tromey@redhat.com>
8609 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8611 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8617 * target-delegates.c: Rebuild.
8618 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8619 TARGET_DEFAULT_FUNC.
8620 * target.c (default_target_decr_pc_after_break): Rename from
8621 forward_target_decr_pc_after_break. Simplify.
8622 (target_decr_pc_after_break): Rely on delegation.
8624 2014-02-19 Tom Tromey <tromey@redhat.com>
8626 * target.c (update_current_target): Do not INHERIT to_doc or
8627 to_magic. Do not de_fault to_open or to_close.
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8631 * gcore.h (objfile_find_memory_regions): Declare.
8632 * gcore.c (objfile_find_memory_regions): No longer static. Add
8634 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8635 * exec.c: Include gcore.h.
8636 (exec_set_find_memory_regions): Remove.
8637 (exec_find_memory_regions): Remove.
8638 (exec_do_find_memory_regions): Remove.
8639 (init_exec_ops): Update.
8640 * defs.h (exec_set_find_memory_regions): Remove.
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8644 * target-delegates.c: Rebuild.
8645 * target.h (struct target_ops) <to_extra_thread_info,
8646 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8647 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8648 not 0, in TARGET_DEFAULT_RETURN.
8650 2014-02-19 Tom Tromey <tromey@redhat.com>
8652 * target.c (complete_target_initialization): Remove casts. Use
8653 return_zero_has_execution.
8654 (return_zero): Add "ignore" argument.
8655 (return_zero_has_execution): New function.
8656 (init_dummy_target): Remove casts. Use
8657 return_zero_has_execution.
8659 2014-02-19 Tom Tromey <tromey@redhat.com>
8661 * target.c (update_current_target): Update comments. Do not
8664 2014-02-19 Tom Tromey <tromey@redhat.com>
8666 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8668 * corelow.c (core_read_description): Delegate when needed.
8669 * remote.c (remote_read_description): Delegate when needed.
8670 * target-delegates.c: Rebuild.
8671 * target.c (target_read_description): Rewrite.
8672 * target.h (struct target_ops) <to_read_description>: Update
8673 comment. Use TARGET_DEFAULT_RETURN.
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8677 * target-delegates.c: Rebuild.
8678 * target.c (update_current_target): Don't inherit or default
8680 (find_default_run_target): Check against delegate_can_run.
8681 * target.h (struct target_ops) <to_can_run>: Use
8682 TARGET_DEFAULT_RETURN.
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8686 * target-delegates.c: Rebuild.
8687 * target.c (target_disconnect): Unconditionally delegate.
8688 * target.h (struct target_ops) <to_disconnect>: Use
8689 TARGET_DEFAULT_NORETURN.
8691 2014-02-19 Tom Tromey <tromey@redhat.com>
8693 * record.c (record_stop): Unconditionally delegate.
8694 * target-delegates.c: Rebuild.
8695 * target.c (target_stop_recording): Unconditionally delegate.
8696 * target.h (struct target_ops) <to_stop_recording>: Use
8697 TARGET_DEFAULT_IGNORE.
8699 2014-02-19 Tom Tromey <tromey@redhat.com>
8701 * target-delegates.c: Rebuild.
8702 * target.c (target_enable_btrace): Unconditionally delegate.
8703 * target.h (struct target_ops) <to_enable_btrace>: Use
8704 TARGET_DEFAULT_NORETURN.
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8708 * target-delegates.c: Rebuild.
8709 * target.c (target_read_btrace): Unconditionally delegate.
8710 * target.h (struct target_ops) <to_read_btrace>: Use
8711 TARGET_DEFAULT_NORETURN.
8713 2014-02-19 Tom Tromey <tromey@redhat.com>
8715 * target-delegates.c: Rebuild.
8716 * target.c (target_teardown_btrace): Unconditionally delegate.
8717 * target.h (struct target_ops) <to_teardown_btrace>: Use
8718 TARGET_DEFAULT_NORETURN.
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8722 * target-delegates.c: Rebuild.
8723 * target.c (target_disable_btrace): Unconditionally delegate.
8724 * target.h (struct target_ops) <to_disable_btrace>: Use
8725 TARGET_DEFAULT_NORETURN.
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8729 * target-delegates.c: Rebuild.
8730 * target.c (default_search_memory): New function.
8731 (simple_search_memory): Update comment.
8732 (target_search_memory): Unconditionally delegate.
8733 * target.h (struct target_ops) <to_search_memory>: Use
8734 TARGET_DEFAULT_FUNC.
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * auxv.c (default_auxv_parse): No longer static.
8739 (target_auxv_parse): Unconditionally delegate.
8740 * auxv.h (default_auxv_parse): Declare.
8741 * target-delegates.c: Rebuild.
8742 * target.c: Include auxv.h.
8743 * target.h (struct target_ops) <to_auxv_parse>: Use
8744 TARGET_DEFAULT_FUNC.
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8748 * target-delegates.c: Rebuild.
8749 * target.c (target_memory_map): Unconditionally delegate.
8750 * target.h (struct target_ops) <to_memory_map>: Use
8751 TARGET_DEFAULT_RETURN.
8753 2014-02-19 Tom Tromey <tromey@redhat.com>
8755 * target-delegates.c: Rebuild.
8756 * target.c (target_thread_alive): Unconditionally delegate.
8757 * target.h (struct target_ops) <to_thread_alive>: Use
8758 TARGET_DEFAULT_RETURN.
8760 2014-02-19 Tom Tromey <tromey@redhat.com>
8762 * target-delegates.c: Rebuild.
8763 * target.c (target_save_record): Unconditionally delegate.
8764 * target.h (struct target_ops) <to_save_record>: Use
8765 TARGET_DEFAULT_NORETURN.
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target-delegates.c: Rebuild.
8770 * target.c (target_delete_record): Unconditionally delegate.
8771 * target.h (struct target_ops) <to_delete_record>: Use
8772 TARGET_DEFAULT_NORETURN.
8774 2014-02-19 Tom Tromey <tromey@redhat.com>
8776 * target-delegates.c: Rebuild.
8777 * target.c (target_record_is_replaying): Unconditionally
8779 * target.h (struct target_ops) <to_record_is_replaying>: Use
8780 TARGET_DEFAULT_RETURN.
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8784 * target-delegates.c: Rebuild.
8785 * target.c (target_goto_record_begin): Unconditionally delegate.
8786 * target.h (struct target_ops) <to_goto_record_begin>: Use
8787 TARGET_DEFAULT_NORETURN.
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8791 * target-delegates.c: Rebuild.
8792 * target.c (target_goto_record_end): Unconditionally delegate.
8793 * target.h (struct target_ops) <to_goto_record_end>: Use
8794 TARGET_DEFAULT_NORETURN.
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target-delegates.c: Rebuild.
8799 * target.c (target_goto_record): Unconditionally delegate.
8800 * target.h (struct target_ops) <to_goto_record>: Use
8801 TARGET_DEFAULT_NORETURN.
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8805 * target-delegates.c: Rebuild.
8806 * target.c (target_insn_history): Unconditionally delegate.
8807 * target.h (struct target_ops) <to_insn_history>: Use
8808 TARGET_DEFAULT_NORETURN.
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8812 * target-delegates.c: Rebuild.
8813 * target.c (target_insn_history_from): Unconditionally delegate.
8814 * target.h (struct target_ops) <to_insn_history_from>: Use
8815 TARGET_DEFAULT_NORETURN.
8817 2014-02-19 Tom Tromey <tromey@redhat.com>
8819 * target-delegates.c: Rebuild.
8820 * target.c (target_insn_history_range): Unconditionally delegate.
8821 * target.h (struct target_ops) <to_insn_history_range>: Use
8822 TARGET_DEFAULT_NORETURN.
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target-delegates.c: Rebuild.
8827 * target.c (target_call_history): Unconditionally delegate.
8828 * target.h (struct target_ops) <to_call_history>: Use
8829 TARGET_DEFAULT_NORETURN.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target-delegates.c: Rebuild.
8834 * target.c (target_call_history_from): Unconditionally delegate.
8835 * target.h (struct target_ops) <to_call_history_from>: Use
8836 TARGET_DEFAULT_NORETURN.
8838 2014-02-19 Tom Tromey <tromey@redhat.com>
8840 * target-delegates.c: Rebuild.
8841 * target.c (target_call_history_range): Unconditionally delegate.
8842 * target.h (struct target_ops) <to_call_history_range>: Use
8843 TARGET_DEFAULT_NORETURN.
8845 2014-02-19 Tom Tromey <tromey@redhat.com>
8847 * target-delegates.c: Rebuild.
8848 * target.c (target_verify_memory): Unconditionally delegate.
8849 * target.h (struct target_ops) <to_verify_memory>: Use
8850 TARGET_DEFAULT_NORETURN.
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8854 * target-delegates.c: Rebuild.
8855 * target.c (target_core_of_thread): Unconditionally delegate.
8856 * target.h (struct target_ops) <to_core_of_thread>: Use
8857 TARGET_DEFAULT_RETURN.
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * target-delegates.c: Rebuild.
8862 * target.c (target_flash_done): Unconditionally delegate.
8863 * target.h (struct target_ops) <to_flash_done>: Use
8864 TARGET_DEFAULT_NORETURN.
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8868 * target-delegates.c: Rebuild.
8869 * target.c (target_flash_erase): Unconditionally delegate.
8870 * target.h (struct target_ops) <to_flash_erase>: Use
8871 TARGET_DEFAULT_NORETURN.
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8875 * target-delegates.c: Rebuild.
8876 * target.c (target_get_section_table): Unconditionally delegate.
8877 * target.h (struct target_ops) <to_get_section_table>: Use
8878 TARGET_DEFAULT_RETURN.
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8882 * target-delegates.c: Rebuild.
8883 * target.c (target_pid_to_str): Unconditionally delegate.
8884 (init_dummy_target): Don't initialize to_pid_to_str.
8885 (default_pid_to_str): Rename from dummy_pid_to_str.
8886 * target.h (struct target_ops) <to_pid_to_str>: Use
8887 TARGET_DEFAULT_FUNC.
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8891 * target-delegates.c: Rebuild.
8892 * target.c (target_find_new_threads): Unconditionally delegate.
8893 * target.h (struct target_ops) <to_find_new_threads>: Use
8894 TARGET_DEFAULT_RETURN.
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8898 * target-delegates.c: Rebuild.
8899 * target.c (target_program_signals): Unconditionally delegate.
8900 * target.h (struct target_ops) <to_program_signals>: Use
8901 TARGET_DEFAULT_IGNORE.
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target-delegates.c: Rebuild.
8906 * target.c (target_pass_signals): Unconditionally delegate.
8907 * target.h (struct target_ops) <to_pass_signals>: Use
8908 TARGET_DEFAULT_IGNORE.
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8912 * target-delegates.c: Rebuild.
8913 * target.c (default_mourn_inferior): New function.
8914 (target_mourn_inferior): Unconditionally delegate.
8915 * target.h (struct target_ops) <to_mourn_inferior>: Use
8916 TARGET_DEFAULT_FUNC.
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target-delegates.c: Rebuild.
8921 * target.c (default_follow_fork): New function.
8922 (target_follow_fork): Unconditionally delegate.
8923 * target.h (struct target_ops) <to_follow_fork>: Use
8924 TARGET_DEFAULT_FUNC.
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8928 * target-delegates.c: Rebuild.
8929 * target.c (target_kill): Unconditionally delegate.
8930 * target.h (struct target_ops) <to_kill>: Use
8931 TARGET_DEFAULT_NORETURN.
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8935 * target-delegates.c: Rebuild.
8936 * target.c (target_masked_watch_num_registers): Unconditionally
8938 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8939 Use TARGET_DEFAULT_RETURN.
8941 2014-02-19 Tom Tromey <tromey@redhat.com>
8943 * target-delegates.c: Rebuild.
8944 * target.c (target_remove_mask_watchpoint): Unconditionally
8946 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8947 TARGET_DEFAULT_RETURN.
8949 2014-02-19 Tom Tromey <tromey@redhat.com>
8951 * target-delegates.c: Rebuild.
8952 * target.c (target_insert_mask_watchpoint): Unconditionally
8954 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8955 TARGET_DEFAULT_RETURN.
8957 2014-02-19 Tom Tromey <tromey@redhat.com>
8959 * target-delegates.c: Rebuild.
8960 * target.c (target_ranged_break_num_registers): Unconditionally
8962 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8963 Use TARGET_DEFAULT_RETURN.
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * target-delegates.c: Rebuild.
8968 * target.c (target_fetch_registers): Unconditionally delegate.
8969 * target.h (struct target_ops) <to_fetch_registers>: Use
8970 TARGET_DEFAULT_NORETURN.
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8974 * target-delegates.c: Rebuild.
8975 * target.c (update_current_target): Don't inherit or default
8977 * target.h (struct target_ops) <to_stop>: Use
8978 TARGET_DEFAULT_IGNORE.
8980 2014-02-19 Tom Tromey <tromey@redhat.com>
8982 * target-delegates.c: Rebuild.
8983 * target.c (update_current_target): Don't inherit or default
8984 to_can_run_breakpoint_commands.
8985 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8986 Use TARGET_DEFAULT_RETURN.
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target-delegates.c: Rebuild.
8991 * target.c (update_current_target): Don't inherit or default
8992 to_supports_evaluation_of_breakpoint_conditions.
8993 * target.h (struct target_ops)
8994 <to_supports_evaluation_of_breakpoint_conditions>: Use
8995 TARGET_DEFAULT_RETURN.
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8999 * target-delegates.c: Rebuild.
9000 * target.c (update_current_target): Don't inherit or default
9001 to_augmented_libraries_svr4_read.
9002 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9003 Use TARGET_DEFAULT_RETURN.
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9007 * target-delegates.c: Rebuild.
9008 * target.c (update_current_target): Don't inherit or default
9010 * target.h (struct target_ops) <to_can_use_agent>: Use
9011 TARGET_DEFAULT_RETURN.
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9015 * target-delegates.c: Rebuild.
9016 * target.c (update_current_target): Don't inherit or default
9018 * target.h (struct target_ops) <to_use_agent>: Use
9019 TARGET_DEFAULT_NORETURN.
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9023 * target-delegates.c: Rebuild.
9024 * target.c (update_current_target): Don't inherit or default
9026 (return_null): Remove.
9027 * target.h (struct target_ops) <to_traceframe_info>: Use
9028 TARGET_DEFAULT_RETURN.
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target-delegates.c: Rebuild.
9033 * target.c (update_current_target): Don't inherit or default
9034 to_static_tracepoint_markers_by_strid.
9035 * target.h (struct target_ops)
9036 <to_static_tracepoint_markers_by_strid>: 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
9043 to_static_tracepoint_marker_at.
9044 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9045 Use TARGET_DEFAULT_RETURN.
9047 2014-02-19 Tom Tromey <tromey@redhat.com>
9049 * target-delegates.c: Rebuild.
9050 * target.c (update_current_target): Don't inherit or default
9052 * target.h (struct target_ops) <to_set_permissions>: Use
9053 TARGET_DEFAULT_IGNORE.
9055 2014-02-19 Tom Tromey <tromey@redhat.com>
9057 * target-delegates.c: Rebuild.
9058 * target.c (update_current_target): Don't inherit or default
9060 * target.h (struct target_ops) <to_get_tib_address>: Use
9061 TARGET_DEFAULT_NORETURN.
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9065 * target-delegates.c: Rebuild.
9066 * target.c (update_current_target): Don't inherit or default
9068 * target.h (struct target_ops) <to_set_trace_notes>: Use
9069 TARGET_DEFAULT_RETURN.
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9073 * target-delegates.c: Rebuild.
9074 * target.c (update_current_target): Don't initialize
9075 to_set_trace_buffer_size.
9076 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9077 TARGET_DEFAULT_IGNORE.
9079 2014-02-19 Tom Tromey <tromey@redhat.com>
9081 * target-delegates.c: Rebuild.
9082 * target.c (update_current_target): Don't inherit or default
9083 to_set_circular_trace_buffer.
9084 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9085 TARGET_DEFAULT_IGNORE.
9087 2014-02-19 Tom Tromey <tromey@redhat.com>
9089 * target-delegates.c: Rebuild.
9090 * target.c (update_current_target): Don't inherit or default
9091 to_set_disconnected_tracing.
9092 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9093 TARGET_DEFAULT_IGNORE.
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9097 * target-delegates.c: Rebuild.
9098 * target.c (update_current_target): Don't inherit or default
9099 to_get_min_fast_tracepoint_insn_len.
9100 (return_minus_one): Remove.
9101 * target.h (struct target_ops)
9102 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * target-delegates.c: Rebuild.
9107 * target.c (update_current_target): Don't inherit or default
9108 to_get_raw_trace_data.
9109 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9110 TARGET_DEFAULT_NORETURN.
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9114 * target-delegates.c: Rebuild.
9115 * target.c (update_current_target): Don't inherit or default
9116 to_upload_trace_state_variables.
9117 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9118 Use TARGET_DEFAULT_RETURN.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target-delegates.c: Rebuild.
9123 * target.c (update_current_target): Don't inherit or default
9124 to_upload_tracepoints.
9125 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9126 TARGET_DEFAULT_RETURN.
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9130 * target-delegates.c: Rebuild.
9131 * target.c (update_current_target): Don't inherit or default
9133 * target.h (struct target_ops) <to_save_trace_data>: Use
9134 TARGET_DEFAULT_NORETURN.
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * target-delegates.c: Rebuild.
9139 * target.c (update_current_target): Don't inherit or default
9140 to_get_trace_state_variable_value.
9141 * target.h (struct target_ops)
9142 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9146 * target-delegates.c: Rebuild.
9147 * target.c (update_current_target): Don't inherit or default
9149 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9151 2014-02-19 Tom Tromey <tromey@redhat.com>
9153 * target-delegates.c: Rebuild.
9154 * target.c (update_current_target): Don't inherit or default
9156 * target.h (struct target_ops) <to_trace_stop>: Use
9157 TARGET_DEFAULT_NORETURN.
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9161 * target-delegates.c: Rebuild.
9162 * target.c (update_current_target): Don't inherit or default
9163 to_get_tracepoint_status.
9164 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9165 TARGET_DEFAULT_NORETURN.
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9169 * target-delegates.c: Rebuild.
9170 * target.c (update_current_target): Don't inherit or default
9171 to_get_trace_status.
9172 * target.h (struct target_ops) <to_get_trace_status>: Use
9173 TARGET_DEFAULT_RETURN.
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9177 * target-delegates.c: Rebuild.
9178 * target.c (update_current_target): Don't inherit or default
9180 * target.h (struct target_ops) <to_trace_start>: Use
9181 TARGET_DEFAULT_NORETURN.
9183 2014-02-19 Tom Tromey <tromey@redhat.com>
9185 * target-delegates.c: Rebuild.
9186 * target.c (update_current_target): Don't inherit or default
9187 to_trace_set_readonly_regions.
9188 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9189 Use TARGET_DEFAULT_NORETURN.
9191 2014-02-19 Tom Tromey <tromey@redhat.com>
9193 * target-delegates.c: Rebuild.
9194 * target.c (update_current_target): Don't inherit or default
9195 to_disable_tracepoint.
9196 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9197 TARGET_DEFAULT_NORETURN.
9199 2014-02-19 Tom Tromey <tromey@redhat.com>
9201 * target-delegates.c: Rebuild.
9202 * target.c (update_current_target): Don't inherit or default
9203 to_enable_tracepoint.
9204 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9205 TARGET_DEFAULT_NORETURN.
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9209 * target-delegates.c: Rebuild.
9210 * target.c (update_current_target): Don't inherit or default
9211 to_download_trace_state_variable.
9212 * target.h (struct target_ops) <to_download_trace_state_variable>:
9213 Use TARGET_DEFAULT_NORETURN.
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9217 * target-delegates.c: Rebuild.
9218 * target.c (update_current_target): Don't inherit or default
9219 to_can_download_tracepoint.
9220 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9221 TARGET_DEFAULT_RETURN.
9223 2014-02-19 Tom Tromey <tromey@redhat.com>
9225 * target-delegates.c: Rebuild.
9226 * target.c (update_current_target): Don't inherit or default
9227 to_download_tracepoint.
9228 * target.h (struct target_ops) <to_download_tracepoint>: Use
9229 TARGET_DEFAULT_NORETURN.
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9233 * target-delegates.c: Rebuild.
9234 * target.c (update_current_target): Don't inherit or default
9236 * target.h (struct target_ops) <to_trace_init>: Use
9237 TARGET_DEFAULT_RETURN.
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9241 * target-delegates.c: Rebuild.
9242 * target.c (update_current_target): Don't inherit or default
9243 to_supports_string_tracing.
9244 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9245 TARGET_DEFAULT_RETURN.
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9249 * target-delegates.c: Rebuild.
9250 * target.c (update_current_target): Don't inherit or default
9251 to_supports_enable_disable_tracepoint.
9252 * target.h (struct target_ops)
9253 <to_supports_enable_disable_tracepoint>: Use
9254 TARGET_DEFAULT_RETURN.
9256 2014-02-19 Tom Tromey <tromey@redhat.com>
9258 * target-delegates.c: Rebuild.
9259 * target.c (update_current_target): Don't inherit or default
9260 to_supports_multi_process.
9261 * target.h (struct target_ops) <to_supports_multi_process>: Use
9262 TARGET_DEFAULT_RETURN.
9264 2014-02-19 Tom Tromey <tromey@redhat.com>
9266 * target-delegates.c: Rebuild.
9267 * target.c (update_current_target): Don't inherit or default
9268 to_get_ada_task_ptid.
9269 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9270 TARGET_DEFAULT_FUNC.
9272 2014-02-19 Tom Tromey <tromey@redhat.com>
9274 * target-delegates.c: Rebuild.
9275 * target.c (update_current_target): Don't inherit or default
9276 to_thread_architecture.
9277 * target.h (struct target_ops) <to_thread_architecture>: Use
9278 TARGET_DEFAULT_FUNC.
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9282 * target-delegates.c: Rebuild.
9283 * target.c (update_current_target): Don't inherit or default
9284 to_execution_direction.
9285 * target.h (struct target_ops) <to_execution_direction>: Use
9286 TARGET_DEFAULT_FUNC.
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9290 * target-delegates.c: Rebuild.
9291 * target.c (update_current_target): Don't inherit or default
9292 to_can_execute_reverse.
9293 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9294 TARGET_DEFAULT_RETURN.
9295 (target_can_execute_reverse): Unconditionally delegate.
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9299 * target-delegates.c: Rebuild.
9300 * target.c (update_current_target): Don't inherit or default
9302 (dummy_goto_bookmark): Remove.
9303 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9304 * target.h (struct target_ops) <to_goto_bookmark>: Use
9305 TARGET_DEFAULT_NORETURN.
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9309 * target-delegates.c: Rebuild.
9310 * target.c (update_current_target): Don't inherit or default
9312 (dummy_get_bookmark): Remove.
9313 (init_dummy_target): Don't inherit or default to_get_bookmark.
9314 * target.h (struct target_ops) <to_get_bookmark>: Use
9315 TARGET_DEFAULT_NORETURN
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9319 * target-delegates.c: Rebuild.
9320 * target.c (update_current_target): Don't inherit or default
9321 to_make_corefile_notes.
9322 (init_dummy_target): Don't initialize to_make_corefile_notes.
9323 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9324 TARGET_DEFAULT_FUNC.
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target-delegates.c: Rebuild.
9329 * target.c (update_current_target): Don't inherit or default
9330 to_find_memory_regions.
9331 (init_dummy_target): Don't initialize to_find_memory_regions.
9332 * target.h (struct target_ops) <to_find_memory_regions>: Use
9333 TARGET_DEFAULT_FUNC.
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
9340 * target.h (struct target_ops) <to_log_command>: Use
9341 TARGET_DEFAULT_IGNORE.
9342 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
9349 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9350 TARGET_DEFAULT_RETURN.
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9354 * target-delegates.c: Rebuild.
9355 * target.c (update_current_target): Don't inherit or default
9357 (target_thread_name): Unconditionally delegate.
9358 * target.h (struct target_ops) <to_thread_name>: Use
9359 TARGET_DEFAULT_RETURN.
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9363 * target-delegates.c: Rebuild.
9364 * target.c (update_current_target): Don't inherit or default
9365 to_extra_thread_info.
9366 * target.h (struct target_ops) <to_extra_thread_info>: Use
9367 TARGET_DEFAULT_RETURN.
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * target-delegates.c: Rebuild.
9372 * target.c (update_current_target): Don't inherit or default
9374 * target.h (struct target_ops) <to_has_exited>: Use
9375 TARGET_DEFAULT_RETURN..
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9379 * target-delegates.c: Rebuild.
9380 * target.c (update_current_target): Don't inherit or default
9381 to_set_syscall_catchpoint.
9382 (return_one): Remove.
9383 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9384 TARGET_DEFAULT_RETURN.
9386 2014-02-19 Tom Tromey <tromey@redhat.com>
9388 * target-delegates.c: Rebuild.
9389 * target.c (update_current_target): Don't inherit or default
9390 to_insert_exec_catchpoint.
9391 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9392 TARGET_DEFAULT_RETURN.
9394 2014-01-08 Tom Tromey <tromey@redhat.com>
9396 * target-delegates.c: Rebuild.
9397 * target.c (update_current_target): Don't inherit or default
9398 to_insert_exec_catchpoint.
9399 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9400 TARGET_DEFAULT_RETURN.
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9404 * target-delegates.c: Rebuild.
9405 * target.c (update_current_target): Don't inherit or default
9406 to_remove_vfork_catchpoint.
9407 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9408 TARGET_DEFAULT_RETURN.
9410 2014-02-19 Tom Tromey <tromey@redhat.com>
9412 * target-delegates.c: Rebuild.
9413 * target.c (update_current_target): Don't inherit or default
9414 to_insert_vfork_catchpoint.
9415 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9416 TARGET_DEFAULT_RETURN.
9418 2014-02-19 Tom Tromey <tromey@redhat.com>
9420 * target-delegates.c: Rebuild.
9421 * target.c (update_current_target): Don't inherit or default
9422 to_remove_fork_catchpoint.
9423 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9424 TARGET_DEFAULT_RETURN.
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9428 * target-delegates.c: Rebuild.
9429 * target.c (update_current_target): Don't inherit or default
9430 to_insert_fork_catchpoint.
9431 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9432 TARGET_DEFAULT_RETURN.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target-delegates.c: Rebuild.
9437 * target.c (update_current_target): Don't inherit or default
9438 to_post_startup_inferior.
9439 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9440 TARGET_DEFAULT_IGNORE.
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9444 * target-delegates.c: Rebuild.
9445 * target.c (update_current_target): Don't inherit or default
9447 * target.h (struct target_ops) <to_load>: Use
9448 TARGET_DEFAULT_NORETURN.
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9452 * target-delegates.c: Rebuild.
9453 * target.c (update_current_target): Don't inherit or default
9455 * target.h (struct target_ops) <to_terminal_info>: Use
9456 TARGET_DEFAULT_FUNC.
9458 2014-02-19 Tom Tromey <tromey@redhat.com>
9460 * target-delegates.c: Rebuild.
9461 * target.c (update_current_target): Don't inherit or default
9462 to_terminal_save_ours.
9463 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9464 TARGET_DEFAULT_IGNORE.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target-delegates.c: Rebuild.
9469 * target.c (update_current_target): Don't inherit or default
9471 * target.h (struct target_ops) <to_terminal_ours>: Use
9472 TARGET_DEFAULT_IGNORE.
9474 2014-02-19 Tom Tromey <tromey@redhat.com>
9476 * target-delegates.c: Rebuild.
9477 * target.c (update_current_target): Don't inherit or default
9478 to_terminal_ours_for_output.
9479 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9480 TARGET_DEFAULT_IGNORE.
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9484 * target-delegates.c: Rebuild.
9485 * target.c (update_current_target): Don't inherit or default
9486 to_terminal_inferior.
9487 * target.h (struct target_ops) <to_terminal_inferior>: Use
9488 TARGET_DEFAULT_IGNORE.
9490 2014-02-19 Tom Tromey <tromey@redhat.com>
9492 * target-delegates.c: Rebuild.
9493 * target.c (update_current_target): Don't inherit or default
9495 * target.h (struct target_ops) <to_terminal_init>: Use
9496 TARGET_DEFAULT_IGNORE.
9498 2014-02-19 Tom Tromey <tromey@redhat.com>
9500 * target-delegates.c: Rebuild.
9501 * target.c (update_current_target): Don't inherit or default
9502 to_can_accel_watchpoint_condition.
9503 * target.h (struct target_ops)
9504 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9506 2014-02-19 Tom Tromey <tromey@redhat.com>
9508 * target-delegates.c: Rebuild.
9509 * target.c (update_current_target): Don't inherit or default
9510 to_region_ok_for_hw_watchpoint.
9511 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9512 Use TARGET_DEFAULT_FUNC.
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9516 * target-delegates.c: Rebuild.
9517 * target.c (update_current_target): Don't inherit or default
9518 to_watchpoint_addr_within_range.
9519 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9520 Use TARGET_DEFAULT_FUNC.
9522 2014-02-19 Tom Tromey <tromey@redhat.com>
9524 * target-delegates.c: Rebuild.
9525 * target.c (update_current_target): Don't inherit or default
9526 to_remove_watchpoint.
9527 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9528 TARGET_DEFAULT_NORETURN.
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * target-delegates.c: Rebuild.
9533 * target.c (update_current_target): Don't inherit or default
9534 to_insert_watchpoint.
9535 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9536 TARGET_DEFAULT_RETURN.
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9540 * target-delegates.c: Rebuild.
9541 * target.c (update_current_target): Don't inherit or default
9542 to_remove_hw_breakpoint.
9543 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9544 TARGET_DEFAULT_RETURN.
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9548 * target-delegates.c: Rebuild.
9549 * target.c (update_current_target): Don't inherit or default
9550 to_insert_hw_breakpoint.
9551 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9552 TARGET_DEFAULT_RETURN.
9554 2014-02-19 Tom Tromey <tromey@redhat.com>
9556 * target-delegates.c: Rebuild.
9557 * target.c (update_current_target): Don't inherit or default
9558 to_can_use_hw_breakpoint.
9559 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9560 TARGET_DEFAULT_RETURN.
9562 2014-02-19 Tom Tromey <tromey@redhat.com>
9564 * target-delegates.c: Rebuild.
9565 * target.c (update_current_target): Don't inherit or default
9567 * target.h (struct target_ops) <to_files_info>: Use
9568 TARGET_DEFAULT_IGNORE.
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9572 * target-delegates.c: Rebuild.
9573 * target.c (update_current_target): Don't inherit or default
9575 * target.h (struct target_ops) <to_store>: Use
9576 TARGET_DEFAULT_NORETURN.
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9580 * target-delegates.c: Rebuild.
9581 * target.c (update_current_target): Don't inherit or default
9583 * target.h (struct target_ops) <to_post_attach>: Use
9584 TARGET_DEFAULT_IGNORE.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target-delegates.c: Rebuild.
9589 * target.c (update_current_target): Don't inherit or default
9591 (default_rcmd): New function.
9592 (do_monitor_command): Unconditionally delegate.
9593 * target.h (struct target_ops) <to_rmcd>: Use
9594 TARGET_DEFAULT_FUNC.
9596 2014-02-19 Tom Tromey <tromey@redhat.com>
9598 * target-delegates.c: Rebuild.
9599 * target.c (init_dummy_target): Don't initialize to_attach.
9600 (target_attach): Unconditionally delegate.
9601 * target.h (struct target_ops) <to_attach>: Use
9602 TARGET_DEFAULT_FUNC.
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9606 * target-delegates.c: Rebuild.
9607 * target.c (target_detach): Unconditionally delegate.
9608 (init_dummy_target): Don't initialize to_detach.
9609 * target.h (struct target_ops) <to_detach>: Use
9610 TARGET_DEFAULT_IGNORE.
9612 2014-02-19 Tom Tromey <tromey@redhat.com>
9614 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9616 (target_augmented_libraries_svr4_read): Add argument.
9617 * target.c (update_current_target): Update.
9618 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9621 2014-02-19 Tom Tromey <tromey@redhat.com>
9623 * target.h (struct target_ops) <to_call_history_range>: Add
9625 * target.c (target_call_history_range): Add argument.
9626 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9628 (record_btrace_call_history_from): Update.
9630 2014-02-19 Tom Tromey <tromey@redhat.com>
9632 * target.h (struct target_ops) <to_call_history_from>: Add
9634 * target.c (target_call_history_from): Add argument.
9635 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9640 * target.h (struct target_ops) <to_call_history>: Add argument.
9641 * target.c (target_call_history): Add argument.
9642 * record-btrace.c (record_btrace_call_history): Add 'self'
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9647 * target.h (struct target_ops) <to_insn_history_range>: Add
9649 * target.c (target_insn_history_range): Add argument.
9650 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9652 (record_btrace_insn_history_from): Update.
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9656 * target.h (struct target_ops) <to_insn_history_from>: Add
9658 * target.c (target_insn_history_from): Add argument.
9659 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9662 2014-02-19 Tom Tromey <tromey@redhat.com>
9664 * target.h (struct target_ops) <to_insn_history>: Add argument.
9665 * target.c (target_insn_history): Add argument.
9666 * record-btrace.c (record_btrace_insn_history): Add 'self'
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9671 * target.h (struct target_ops) <to_goto_record>: Add argument.
9672 * target.c (target_goto_record): Add argument.
9673 * record-full.c (record_full_goto): Add 'self' argument.
9674 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9678 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9679 * target.c (target_goto_record_end): Add argument.
9680 * record-full.c (record_full_goto_end): Add 'self' argument.
9681 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9685 * target.h (struct target_ops) <to_goto_record_begin>: Add
9687 * target.c (target_goto_record_begin): Add argument.
9688 * record-full.c (record_full_goto_begin): Add 'self' argument.
9689 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9694 * target.h (struct target_ops) <to_record_is_replaying>: Add
9696 * target.c (target_record_is_replaying): Add argument.
9697 * record-full.c (record_full_is_replaying): Add 'self' argument.
9698 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9700 (record_btrace_xfer_partial, record_btrace_store_registers)
9701 (record_btrace_prepare_to_store, record_btrace_resume)
9702 (record_btrace_wait, record_btrace_decr_pc_after_break)
9703 (record_btrace_find_new_threads, record_btrace_thread_alive):
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9708 * target.h (struct target_ops) <to_delete_record>: Add argument.
9709 * target.c (target_delete_record): Add argument.
9710 * record-full.c (record_full_delete): Add 'self' argument.
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9714 * target.h (struct target_ops) <to_save_record>: Add argument.
9715 * target.c (target_save_record): Add argument.
9716 * record-full.c (record_full_save): Add 'self' argument.
9717 (record_full_save): Add 'self' argument.
9719 2014-02-19 Tom Tromey <tromey@redhat.com>
9721 * target.h (struct target_ops) <to_info_record>: Add argument.
9722 * target.c (target_info_record): Add argument.
9723 * record.c (info_record_command): Add argument.
9724 * record-full.c (record_full_info): Add 'self' argument.
9725 * record-btrace.c (record_btrace_info): Add 'self' argument.
9727 2014-02-19 Tom Tromey <tromey@redhat.com>
9729 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9730 * target.c (target_stop_recording): Add argument.
9731 * record.c (record_stop): Add argument.
9732 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9735 2014-02-19 Tom Tromey <tromey@redhat.com>
9737 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9738 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9739 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9741 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9742 (_initialize_amd64_linux_nat): Use it.
9743 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9744 (_initialize_i386_linux_nat): Use it.
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9748 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9749 * target.c (target_teardown_btrace): Add argument.
9750 * remote.c (remote_teardown_btrace): Add 'self' argument.
9751 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9753 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9758 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9759 * target.c (target_disable_btrace): Add argument.
9760 * remote.c (remote_disable_btrace): Add 'self' argument.
9761 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9763 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9766 2014-02-19 Tom Tromey <tromey@redhat.com>
9768 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9769 * target.c (target_enable_btrace): Add argument.
9770 * remote.c (remote_enable_btrace): Add 'self' argument.
9771 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9773 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9778 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9779 (target_can_use_agent): Add argument.
9780 * target.c (update_current_target): Update.
9781 * remote.c (remote_can_use_agent): Add 'self' argument.
9782 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9786 * target.h (struct target_ops) <to_use_agent>: Add argument.
9787 (target_use_agent): Add argument.
9788 * target.c (update_current_target): Update.
9789 * remote.c (remote_use_agent): Add 'self' argument.
9790 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9794 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9795 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9796 (target_traceframe_info): Add argument.
9797 * target.c (update_current_target): Update.
9798 * remote.c (remote_traceframe_info): Add 'self' argument.
9799 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9803 * target.h (target_static_tracepoint_markers_by_strid): Add
9805 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9807 * target.c (update_current_target): Update.
9808 * remote.c (struct target_ops)
9809 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9810 * linux-nat.c (struct target_ops)
9811 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9815 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9817 (target_static_tracepoint_marker_at): Add argument.
9818 * target.c (update_current_target): Update.
9819 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9824 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9825 (target_set_permissions): Add argument.
9826 * target.c (update_current_target): Update.
9827 * remote.c (remote_set_permissions): Add 'self' argument.
9828 (remote_start_remote): Update.
9830 2014-02-19 Tom Tromey <tromey@redhat.com>
9832 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9833 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9834 (target_get_tib_address): Add argument.
9835 * target.c (update_current_target): Update.
9836 * remote.c (remote_get_tib_address): Add 'self' argument.
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9840 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9841 (target_set_trace_notes): Add argument.
9842 * target.c (update_current_target): Update.
9843 * remote.c (remote_set_trace_notes): Add 'self' argument.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9849 (target_set_trace_buffer_size): Add argument.
9850 * target.c (update_current_target): Update.
9851 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9855 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9857 (target_set_circular_trace_buffer): Add argument.
9858 * target.c (update_current_target): Update.
9859 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9864 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9866 (target_set_disconnected_tracing): Add argument.
9867 * target.c (update_current_target): Update.
9868 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target.h (struct target_ops)
9873 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9874 (target_get_min_fast_tracepoint_insn_len): Add argument.
9875 * target.c (update_current_target): Update.
9876 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9879 2014-02-19 Tom Tromey <tromey@redhat.com>
9881 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9883 (target_get_raw_trace_data): Add argument.
9884 * target.c (update_current_target): Update.
9885 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9889 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9891 (target_upload_trace_state_variables): Add argument.
9892 * target.c (update_current_target): Update.
9893 * remote.c (remote_upload_trace_state_variables): Add 'self'
9895 (remote_start_remote): Update.
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9899 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9901 (target_upload_tracepoints): Add argument.
9902 * target.c (update_current_target): Update.
9903 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9904 (remote_start_remote): Update.
9906 2014-02-19 Tom Tromey <tromey@redhat.com>
9908 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9909 (target_save_trace_data): Add argument.
9910 * target.c (update_current_target): Update.
9911 * remote.c (remote_save_trace_data): Add 'self' argument.
9913 2014-02-19 Tom Tromey <tromey@redhat.com>
9915 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9917 * target.h (struct target_ops)
9918 <to_get_trace_state_variable_value>: Add argument.
9919 (target_get_trace_state_variable_value): Add argument.
9920 * target.c (update_current_target): Update.
9921 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9923 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9927 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9928 * target.h (struct target_ops) <to_trace_find>: Add argument.
9929 (target_trace_find): Add argument.
9930 * target.c (update_current_target): Update.
9931 * remote.c (remote_trace_find): Add 'self' argument.
9932 * ctf.c (ctf_trace_find): Add 'self' argument.
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9936 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9937 (target_trace_stop): Add argument.
9938 * target.c (update_current_target): Update.
9939 * remote.c (remote_trace_stop): Add 'self' argument.
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9943 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9944 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9946 (target_get_tracepoint_status): Add argument.
9947 * target.c (update_current_target): Update.
9948 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9952 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9953 * target.h (struct target_ops) <to_get_trace_status>: Add
9955 (target_get_trace_status): Add argument.
9956 * target.c (update_current_target): Update.
9957 * remote.c (remote_get_trace_status): Add 'self' argument.
9958 (remote_start_remote, remote_can_download_tracepoint): Update.
9959 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9961 2014-02-19 Tom Tromey <tromey@redhat.com>
9963 * target.h (struct target_ops) <to_trace_start>: Add argument.
9964 (target_trace_start): Add argument.
9965 * target.c (update_current_target): Update.
9966 * remote.c (remote_trace_start): Add 'self' argument.
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9972 (target_trace_set_readonly_regions): Add argument.
9973 * target.c (update_current_target): Update.
9974 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9979 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9981 (target_disable_tracepoint): Add argument.
9982 * target.c (update_current_target): Update.
9983 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9985 2014-02-19 Tom Tromey <tromey@redhat.com>
9987 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9989 (target_enable_tracepoint): Add argument.
9990 * target.c (update_current_target): Update.
9991 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9993 2014-02-19 Tom Tromey <tromey@redhat.com>
9995 * target.h (struct target_ops) <to_download_trace_state_variable>:
9997 (target_download_trace_state_variable): Add argument.
9998 * target.c (update_current_target): Update.
9999 * remote.c (remote_download_trace_state_variable): Add 'self'
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10004 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10006 (target_can_download_tracepoint): Add argument.
10007 * target.c (update_current_target): Update.
10008 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10010 2014-02-19 Tom Tromey <tromey@redhat.com>
10012 * target.h (struct target_ops) <to_download_tracepoint>: Add
10014 (target_download_tracepoint): Add argument.
10015 * target.c (update_current_target): Update.
10016 * remote.c (remote_download_tracepoint): Add 'self' argument.
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10020 * target.h (struct target_ops) <to_trace_init>: Add argument.
10021 (target_trace_init): Add argument.
10022 * target.c (update_current_target): Update.
10023 * remote.c (remote_trace_init): Add 'self' argument.
10025 2014-02-19 Tom Tromey <tromey@redhat.com>
10027 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10028 * target.c (target_fileio_readlink): Add argument.
10029 * remote.c (remote_hostio_readlink): Add 'self' argument.
10030 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10034 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10035 * target.c (target_fileio_unlink): Add argument.
10036 * remote.c (remote_hostio_unlink): Add 'self' argument.
10037 (remote_file_delete): Update.
10038 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10042 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10043 * target.c (target_fileio_close): Add argument.
10044 * remote.c (remote_hostio_close): Add 'self' argument.
10045 (remote_hostio_close_cleanup): Update.
10046 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10048 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10052 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10053 * target.c (target_fileio_pread): Add argument.
10054 * remote.c (remote_hostio_pread): Add 'self' argument.
10055 (remote_bfd_iovec_pread, remote_file_get): Update.
10056 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10060 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10061 * target.c (target_fileio_pwrite): Add argument.
10062 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10063 (remote_file_put): Update.
10064 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10066 2014-02-19 Tom Tromey <tromey@redhat.com>
10068 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10069 * target.c (target_fileio_open): Add argument.
10070 * remote.c (remote_hostio_open): Add 'self' argument.
10071 (remote_bfd_iovec_open): Add 'self' argument.
10072 (remote_file_put): Add 'self' argument.
10073 (remote_file_get): Add 'self' argument.
10074 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10080 (target_can_run_breakpoint_commands): Add argument.
10081 * target.c (update_current_target): Update.
10082 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10084 (remote_insert_breakpoint): Add 'self' argument.
10085 (remote_insert_hw_breakpoint): Add 'self' argument.
10086 (remote_can_run_breakpoint_commands): Add 'self' argument.
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10090 * target.h (struct target_ops)
10091 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10092 (target_supports_evaluation_of_breakpoint_conditions): Add
10094 * target.c (update_current_target): Update.
10095 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10097 (remote_insert_breakpoint): Add 'self' argument.
10098 (remote_insert_hw_breakpoint): Add 'self' argument.
10099 (remote_supports_cond_breakpoints): Add 'self' argument.
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10103 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10105 (target_supports_string_tracing): Add argument.
10106 * target.c (update_current_target): Update.
10107 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * target.h (struct target_ops)
10112 <to_supports_disable_randomization>: Add argument.
10113 * target.c (find_default_supports_disable_randomization): Add
10115 (target_supports_disable_randomization): Add argument.
10116 (find_default_supports_disable_randomization): Add 'self'
10118 * remote.c (extended_remote_supports_disable_randomization): Add
10120 (remote_supports_disable_randomization): Add 'self' argument.
10121 (extended_remote_create_inferior): Update.
10122 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10125 2014-02-19 Tom Tromey <tromey@redhat.com>
10127 * target.h (struct target_ops)
10128 <to_supports_enable_disable_tracepoint>: Add argument.
10129 (target_supports_enable_disable_tracepoint): Add argument.
10130 * target.c (update_current_target): Update.
10131 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10136 * target.h (struct target_ops) <to_supports_multi_process>: Add
10138 (target_supports_multi_process): Add argument.
10139 * target.c (update_current_target): Update.
10140 * remote.c (remote_supports_multi_process): Add 'self' argument.
10141 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10143 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10146 2014-02-19 Tom Tromey <tromey@redhat.com>
10148 * target.h (struct target_ops) <to_execution_direction>: Add
10150 (target_execution_direction): Add argument.
10151 * target.c (default_execution_direction): Add 'self' argument.
10152 * record-full.c (record_full_execution_direction): Add 'self'
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10157 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10159 (target_can_execute_reverse): Add argument.
10160 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10161 * record-full.c (record_full_can_execute_reverse): Add 'self'
10163 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10168 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10169 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10171 (target_get_ada_task_ptid): Add argument.
10172 * target.c (update_current_target): Update.
10173 (default_get_ada_task_ptid): Add 'self' argument.
10174 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10175 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10176 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10178 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10180 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10182 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10184 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10185 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10188 2014-02-19 Tom Tromey <tromey@redhat.com>
10190 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10191 (target_goto_bookmark): Add argument.
10192 * target.c (dummy_goto_bookmark): Add 'self' argument.
10193 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10195 2014-02-19 Tom Tromey <tromey@redhat.com>
10197 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10198 (target_get_bookmark): Add argument.
10199 * target.c (dummy_get_bookmark): Add 'self' argument.
10200 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10202 2014-02-19 Tom Tromey <tromey@redhat.com>
10204 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10206 (target_make_corefile_notes): Add argument.
10207 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10208 * procfs.c (procfs_make_note_section): Add 'self' argument.
10209 (procfs_make_note_section): Add 'self' argument.
10210 (procfs_make_note_section): Add 'self' argument.
10211 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10213 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10214 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10215 * exec.c (exec_make_note_section): Add 'self' argument.
10216 (exec_make_note_section): Add 'self' argument.
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10220 * target.h (struct target_ops) <to_find_memory_regions>: Add
10222 (target_find_memory_regions): Add argument.
10223 * target.c (dummy_find_memory_regions): Add 'self' argument.
10224 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10225 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10226 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10227 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10228 * exec. (exec_do_find_memory_regions): New global.
10229 (exec_set_find_memory_regions): Rewrite.
10230 (exec_find_memory_regions): New function.
10231 (init_exec_ops): Use exec_find_memory_regions.
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * target.h (struct target_ops) <to_supports_non_stop>: Add
10237 * target.c (find_default_supports_non_stop): Add argument.
10238 (target_supports_non_stop): Add argument.
10239 (find_default_supports_non_stop): Add 'self' argument.
10240 * remote.c (remote_supports_non_stop): Add 'self' argument.
10241 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10245 * target.h (struct target_ops) <to_log_command>: Add argument.
10246 (target_log_command): Add argument.
10247 * serial.h (serial_log_command): Add 'self' argument.
10248 * serial.c (serial_log_command): Add 'self' argument.
10250 2014-02-19 Tom Tromey <tromey@redhat.com>
10252 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10253 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10255 (target_pid_to_exec_file): Add argument.
10256 * target.c (debug_to_pid_to_exec_file): Add argument.
10257 (update_current_target): Update.
10258 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10259 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10260 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10261 (linux_handle_extended_wait): Update.
10262 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10263 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10264 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10265 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10269 * target.h (struct target_ops) <to_rcmd>: Add argument.
10270 (target_rcmd): Add argument.
10271 * target.c (debug_to_rcmd): Add argument.
10272 (update_current_target, do_monitor_command): Update.
10273 * remote.c (remote_rcmd): Add 'self' argument.
10274 * monitor.c (monitor_rcmd): Add 'self' argument.
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10278 * windows-nat.c (windows_stop): Add 'self' argument.
10279 * target.h (struct target_ops) <to_stop>: Add argument.
10280 * target.c (target_stop): Add argument.
10281 (debug_to_stop): Add argument.
10282 (update_current_target): Update.
10283 * remote.c (remote_stop): Add 'self' argument.
10284 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10285 (gdbsim_cntrl_c): Update.
10286 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10287 * procfs.c (procfs_stop): Add 'self' argument.
10288 * nto-procfs.c (procfs_stop): Add 'self' argument.
10289 * monitor.c (monitor_stop): Add 'self' argument.
10290 (monitor_open): Update.
10291 * linux-nat.c (linux_nat_stop): Add argument.
10292 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10293 * gnu-nat.c (gnu_stop): Add 'self' argument.
10294 * darwin-nat.c (darwin_stop): Add 'self' argument.
10296 2014-02-19 Tom Tromey <tromey@redhat.com>
10298 * target.h (struct target_ops) <to_thread_name>: Add argument.
10299 * target.c (target_thread_name): Add argument.
10300 (update_current_target): Update.
10301 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10305 * target.h (struct target_ops) <to_extra_thread_info>: Add
10307 (target_extra_thread_info): Add argument.
10308 * target.c (update_current_target): Update.
10309 * remote.c (remote_threads_extra_info): Add 'self' argument.
10310 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10312 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10313 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10314 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10316 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10318 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10320 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10325 * target.h (struct target_ops) <to_program_signals>: Add argument.
10326 * target.c (target_program_signals): Add argument.
10327 * remote.c (remote_program_signals): Add 'self' argument.
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10331 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10332 * target.c (target_pass_signals): Add argument.
10333 * remote.c (remote_pass_signals): Add 'self' argument.
10334 (remote_start_remote): Update.
10335 * procfs.c (procfs_pass_signals): Add 'self' argument.
10336 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10337 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10338 (linux_nat_create_inferior, linux_nat_attach): Update.
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10342 * windows-nat.c (windows_can_run): Add 'self' argument.
10343 * target.h (struct target_ops) <to_can_run>: Add argument.
10344 (target_can_run): Add argument.
10345 * target.c (debug_to_can_run): Add argument.
10346 (update_current_target): Update.
10347 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10348 * inf-child.c (inf_child_can_run): Add 'self' argument.
10349 * go32-nat.c (go32_can_run): Add 'self' argument.
10351 2014-02-19 Tom Tromey <tromey@redhat.com>
10353 * target.h (struct target_ops) <to_has_exited>: Add argument.
10354 (target_has_exited): Add argument.
10355 * target.c (debug_to_has_exited): Add argument.
10356 (update_current_target): Update.
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10360 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10362 (target_set_syscall_catchpoint): Add argument.
10363 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10365 * target.c (update_current_target): Update.
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10369 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10371 (target_remove_exec_catchpoint): Add argument.
10372 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10373 (update_current_target): Update.
10374 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10377 2014-02-19 Tom Tromey <tromey@redhat.com>
10379 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10381 (target_insert_exec_catchpoint): Add argument.
10382 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10383 (update_current_target): Update.
10384 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10389 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10391 (target_remove_vfork_catchpoint): Add argument.
10392 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10393 (update_current_target): Update.
10394 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10397 2014-02-19 Tom Tromey <tromey@redhat.com>
10399 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10401 (target_insert_vfork_catchpoint): Add argument.
10402 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10403 (update_current_target): Update.
10404 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10409 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10411 (target_remove_fork_catchpoint): Add argument.
10412 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10413 (update_current_target): Update.
10414 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10419 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10421 (target_insert_fork_catchpoint): Add argument.
10422 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10423 (update_current_target): Update.
10424 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10429 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10431 (target_post_startup_inferior): Add argument.
10432 * target.c (debug_to_post_startup_inferior): Add argument.
10433 (update_current_target): Update.
10434 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10436 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10438 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10440 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10442 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10444 (super_post_startup_inferior): Likewise.
10445 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10447 (super_post_startup_inferior): Likewise.
10448 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10449 Add 'self' argument.
10450 (super_post_startup_inferior): Likewise.
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10454 * target.h (struct target_ops) <to_load>: Add argument.
10455 * target.c (target_load): Add argument.
10456 (debug_to_load): Add argument.
10457 (update_current_target): Update.
10458 * remote.c (remote_load): Add 'self' argument.
10459 * remote-sim.c (gdbsim_load): Add 'self' argument.
10460 * remote-mips.c (mips_load): Add 'self' argument.
10461 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10462 * monitor.c (monitor_load): Add 'self' argument.
10463 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10465 2014-02-19 Tom Tromey <tromey@redhat.com>
10467 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10468 (target_terminal_info): Add argument.
10469 * target.c (debug_to_terminal_info): Add argument.
10470 (default_terminal_info): Likewise.
10471 * inflow.c (child_terminal_info): Add 'self' argument.
10472 * inferior.h (child_terminal_info): Add 'self' argument.
10473 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10475 2014-02-19 Tom Tromey <tromey@redhat.com>
10477 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10479 (target_terminal_save_ours): Add argument.
10480 * target.c (debug_to_terminal_save_ours): Add argument.
10481 (update_current_target): Update.
10482 * inflow.c (terminal_save_ours): Add 'self' argument.
10483 * inferior.h (terminal_save_ours): Add 'self' argument.
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10487 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10488 (target_terminal_ours): Add argument.
10489 * target.c (debug_to_terminal_ours): Add argument.
10490 (update_current_target): Update.
10491 * remote.c (remote_terminal_ours): Add 'self' argument.
10492 (remote_close): Update.
10493 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10494 * inflow.c (terminal_ours): Add 'self' argument.
10495 * inferior.h (terminal_ours): Add 'self' argument.
10496 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10498 2014-02-19 Pedro Alves <palves@redhat.com>
10499 Tom Tromey <tromey@redhat.com>
10501 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10503 (target_terminal_ours_for_output): Add argument.
10504 * target.c (debug_to_terminal_ours_for_output): Add argument.
10505 (update_current_target): Update.
10506 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10507 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10508 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10510 2014-02-19 Tom Tromey <tromey@redhat.com>
10512 * target.h (struct target_ops) <to_terminal_inferior>: Add
10514 * target.c (target_terminal_inferior): Add argument.
10515 (update_current_target): Update.
10516 * remote.c (remote_terminal_inferior): Add 'self' argument.
10517 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10518 * inflow.c (terminal_inferior): Add 'self' argument.
10519 * inferior.h (terminal_inferior): Add 'self' argument.
10520 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10521 (go32_terminal_inferior): Add 'self' argument.
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10525 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10526 (target_terminal_init): Add argument.
10527 * target.c (debug_to_terminal_init): Add argument.
10528 (update_current_target): Update.
10529 * inflow.c (terminal_init_inferior): Add 'self' argument.
10530 * inferior.h (terminal_init_inferior): Add 'self' argument.
10531 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10532 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10536 * target.h (struct target_ops)
10537 <to_can_accel_watchpoint_condition>: Add argument.
10538 (target_can_accel_watchpoint_condition): Add argument.
10539 * target.c (debug_to_can_accel_watchpoint_condition): Add
10541 (update_current_target): Update.
10542 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10547 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10549 (target_region_ok_for_hw_watchpoint): Add argument.
10550 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10551 (default_region_ok_for_hw_watchpoint): Add argument.
10552 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10553 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10555 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10557 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10559 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10561 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10563 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10565 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10566 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10568 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10569 Add 'self' argument.
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10573 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10575 (target_insert_watchpoint): Add argument.
10576 * target.c (debug_to_insert_watchpoint): Add argument.
10577 (update_current_target): Update.
10578 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10579 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10580 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10581 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10582 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10583 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10585 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10586 (procfs_insert_hw_watchpoint): Add 'self' argument.
10587 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10589 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10591 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10593 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10594 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10596 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10599 2014-02-19 Tom Tromey <tromey@redhat.com>
10601 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10603 (target_remove_watchpoint): Add argument.
10604 * target.c (debug_to_remove_watchpoint): Add argument.
10605 (update_current_target): Update.
10606 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10607 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10608 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10609 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10610 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10611 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10613 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10614 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10616 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10618 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10620 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10621 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10623 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10628 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10630 (target_remove_hw_breakpoint): Add argument.
10631 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10632 (update_current_target): Update.
10633 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10634 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10636 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10637 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10639 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10642 2014-02-19 Tom Tromey <tromey@redhat.com>
10644 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10646 (target_insert_hw_breakpoint): Add argument.
10647 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10648 (update_current_target): Update.
10649 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10650 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10652 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10653 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10654 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10656 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10659 2014-02-19 Tom Tromey <tromey@redhat.com>
10661 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10663 (target_can_use_hardware_watchpoint): Add argument.
10664 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10665 (update_current_target): Update.
10666 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10668 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10670 * remote.c (remote_check_watch_resources): Add 'self' argument.
10671 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10672 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10674 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10675 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10677 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10679 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10681 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10683 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10685 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10687 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10688 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10690 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10695 * target.h (struct target_ops) <to_post_attach>: Add argument.
10696 (target_post_attach): Add argument.
10697 * target.c (debug_to_post_attach): Add argument.
10698 (update_current_target): Update.
10699 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10700 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10701 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10702 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10703 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10707 * windows-nat.c (windows_close): Add 'self' argument.
10708 * tracepoint.c (tfile_close): Add 'self' argument.
10709 * target.h (struct target_ops) <to_close>: Add argument.
10710 * target.c (target_close): Add argument.
10711 (update_current_target): Update.
10712 * remote.c (remote_close): Add 'self' argument.
10713 * remote-sim.c (gdbsim_close): Add 'self' argument.
10714 * remote-mips.c (mips_close): Add 'self' argument.
10715 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10716 * record-full.c (record_full_close): Add 'self' argument.
10717 * record-btrace.c (record_btrace_close): Add 'self' argument.
10718 * monitor.h (monitor_close): Add 'self' argument.
10719 * monitor.c (monitor_close): Add 'self' argument.
10720 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10721 * linux-nat.c (linux_nat_close): Add argument.
10722 * go32-nat.c (go32_close): Add 'self' argument.
10723 * exec.c (exec_close_1): Add 'self' argument.
10724 * ctf.c (ctf_close): Add 'self' argument.
10725 * corelow.c (core_close): Add 'self' argument.
10726 (core_close_cleanup): Update.
10727 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10728 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10730 2014-02-19 Tom Tromey <tromey@redhat.com>
10732 * remote.c (remote_load): New function.
10733 (init_remote_ops): Use it.
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10737 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10739 * common/linux-btrace.h (linux_supports_btrace): Update.
10740 * remote.c (remote_supports_btrace): Add "self" argument.
10741 * target-delegates.c: Rebuild.
10742 * target.c (target_supports_btrace): Remove.
10743 * target.h (struct target_ops) <to_supports_btrace>: Add
10744 target_ops argument.
10745 (target_supports_btrace): New define.
10747 2014-02-19 Tom Tromey <tromey@redhat.com>
10749 * record-full.c (record_full_beneath_to_resume_ops)
10750 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10751 (record_full_beneath_to_wait)
10752 (record_full_beneath_to_store_registers_ops)
10753 (record_full_beneath_to_store_registers)
10754 (record_full_beneath_to_xfer_partial_ops)
10755 (record_full_beneath_to_xfer_partial)
10756 (record_full_beneath_to_insert_breakpoint_ops)
10757 (record_full_beneath_to_insert_breakpoint)
10758 (record_full_beneath_to_remove_breakpoint_ops)
10759 (record_full_beneath_to_remove_breakpoint)
10760 (record_full_beneath_to_stopped_by_watchpoint)
10761 (record_full_beneath_to_stopped_data_address)
10762 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10763 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10764 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10765 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10766 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10767 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10768 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10769 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10770 (record_full_resume, record_full_wait_1)
10771 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10772 (record_full_store_registers, record_full_xfer_partial)
10773 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10774 (record_full_async, record_full_core_xfer_partial): Use target
10776 * target-delegates.c: Rebuild.
10777 * target.c (current_xfer_partial): Remove.
10778 (update_current_target): Do not INHERIT or de_fault
10779 to_insert_breakpoint, to_remove_breakpoint,
10780 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10781 to_is_async_p, to_async. Do not set to_xfer_partial field.
10782 (default_xfer_partial): Simplify.
10783 (current_xfer_partial): Remove.
10784 (target_wait, target_resume): Simplify.
10785 (find_default_can_async_p, find_default_is_async_p): Update.
10786 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10787 to_xfer_partial, to_stopped_by_watchpoint,
10788 to_stopped_data_address.
10789 (target_store_registers): Simplify.
10790 (forward_target_remove_breakpoint)
10791 (forward_target_insert_breakpoint): Remove.
10792 (target_remove_breakpoint, target_insert_breakpoint)
10793 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10794 * target.h (struct target_ops) <to_resume, to_wait,
10795 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10796 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10797 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10799 (forward_target_remove_breakpoint)
10800 (forward_target_insert_breakpoint): Remove.
10801 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10803 (record_btrace_insert_breakpoint): Delegate directly.
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10808 * target-delegates.c: New file.
10809 * target.c: Include target-delegates.c.
10810 (init_dummy_target): Call install_dummy_methods.
10811 (complete_target_initialization): Call install_delegators.
10812 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10813 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10814 * make-target-delegates: New file.
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10818 * record.c (find_record_target): Use find_target_at.
10819 * target.c (find_target_at): New function.
10820 * target.h (find_target_at): Declare.
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10824 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10825 Add 'ops' argument.
10826 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10828 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10829 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10831 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10833 * linux-nat.c (save_sigtrap): Update.
10834 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10835 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10836 (linux_nat_close): Update.
10837 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10839 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10841 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10842 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10843 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10844 (tmp_to_async): Add 'ops' argument.
10845 (record_full_stopped_by_watchpoint, record_full_async)
10846 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10848 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10849 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10850 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10851 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10852 (remote_is_async_p, remote_async): Add 'ops' argument.
10853 (remote_stopped_data_address): Update.
10854 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10855 * target.c (update_current_target)
10856 (find_default_can_async_p, find_default_is_async_p): Update.
10857 (init_dummy_target): Update.
10858 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10859 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10860 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10861 (target_can_async_p, target_is_async_p, target_async)
10862 (target_stopped_by_watchpoint): Update.
10864 2014-02-19 Yao Qi <yao@codesourcery.com>
10867 * gdbarch.sh: Remove startup_gdbarch.
10868 * gdbarch.c: Regenerated.
10869 * gdbarch.h: Likewise.
10871 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10873 * rl78-tdep.c (rl78_g10_register_name): New function.
10874 (rl78_return_value): Add g10 support.
10875 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10878 2014-02-17 Doug Evans <xdje42@gmail.com>
10880 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10881 (SUBDIR_GUILE_SRCS): Ditto.
10882 (scm-gsmob.o): Ditto.
10884 2014-02-17 Yao Qi <yao@codesourcery.com>
10886 * gnu-nat.c (ILL_RPC): Declare defined function.
10888 2014-02-17 Yao Qi <yao@codesourcery.com>
10890 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10891 mach_msg_type_number_t.
10892 (gnu_write_inferior): Likewise.
10894 2014-02-17 Yao Qi <yao@codesourcery.com>
10896 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10898 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10899 (inf_validate_procs, inf_signal): Likewise.
10900 (S_exception_raise_request): Likewise.
10901 (do_mach_notify_dead_name): Likewise.
10902 (steal_exc_port): Likewise.
10903 (gnu_read_inferior): Change 'copy_count''s type to
10904 mach_msg_type_number_t.
10905 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10908 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10910 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10911 flag. Adjust all users; in particular...
10912 (gnu_wait): ..., don't decrement its value in here...
10913 (gnu_create_inferior): ..., and instead set the flag in here,
10914 around the startup_inferior call, and call that one with
10915 START_INFERIOR_TRAPS_EXPECTED.
10917 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10918 (ILL_RPC): ... new macro.
10919 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10920 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10921 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10922 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10923 functions with ILL_RPC macro.
10924 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10925 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10926 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10927 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10928 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10929 (S_proc_getlogin_reply, S_proc_getsid_reply)
10930 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10931 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10932 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10933 (S_proc_getnports_reply, S_proc_is_important_reply)
10934 (S_proc_get_code_reply): New stub functions, generated with
10937 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10938 collected the type check structures.
10940 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10942 2014-02-14 Doug Evans <dje@google.com>
10944 * target.c (target_write_partial): Fix result type.
10946 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10948 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10949 the proper offsets to access fpregset_t.
10951 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10953 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10954 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10955 * h8300-tdep.c (setmachinelist): Remove global.
10956 * hppa-tdep.c (hppa_sigtramp): Remove global.
10957 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10958 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10959 * ravenscar-thread.c (update_target_observer): Remove global.
10960 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10962 2014-02-12 Tom Tromey <tromey@redhat.com>
10964 * common/rsp-low.c: Update comments.
10965 * common/rsp-low.h: Update comments.
10967 2014-02-12 Tom Tromey <tromey@redhat.com>
10969 * common/rsp-low.c (convert_ascii_to_int): Remove.
10970 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10972 2014-02-12 Tom Tromey <tromey@redhat.com>
10974 * common/rsp-low.h (unhexify): Don't declare.
10975 * common/rsp-low.c (unhexify): Remove.
10977 2014-02-12 Tom Tromey <tromey@redhat.com>
10979 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10980 * common/rsp-low.c (convert_int_to_ascii): Remove.
10982 2014-02-12 Tom Tromey <tromey@redhat.com>
10984 * common/rsp-low.h (hexify): Don't declare.
10985 * common/rsp-low.c (hexify): Remove.
10987 2014-02-12 Tom Tromey <tromey@redhat.com>
10989 * common/rsp-low.c (hexify): Never take strlen of argument.
10991 2014-02-12 Tom Tromey <tromey@redhat.com>
10993 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10994 * remote.c (extended_remote_run, remote_rcmd)
10995 (remote_download_trace_state_variable, remote_save_trace_data)
10996 (remote_set_trace_notes): Update.
10997 * tracepoint.c (encode_source_string, tfile_write_status)
10998 (tfile_write_uploaded_tsv): Update.
11000 2014-02-12 Tom Tromey <tromey@redhat.com>
11002 * tracepoint.c: Include rsp-low.h.
11003 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11004 * remote.c: Include rsp-low.h.
11005 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11006 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11007 (remote_unescape_input): Move to common/rsp-low.c.
11008 * common/rsp-low.h: New file.
11009 * common/rsp-low.c: New file.
11010 * Makefile.in (SFILES): Add common/rsp-low.c.
11011 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11012 (COMMON_OBS): Add rsp-low.o.
11013 (rsp-low.o): New target.
11015 2014-02-12 Tom Tromey <tromey@redhat.com>
11017 * utils.h: Include print-utils.h.
11018 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11019 (int_string, core_addr_to_string, core_addr_to_string_nz)
11020 (hex_string, hex_string_custom): Don't declare.
11021 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11022 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11023 (hex_string_custom, int_string, core_addr_to_string)
11024 (core_addr_to_string_nz, host_address_to_string): Move to
11025 common/print-utils.c.
11026 * common/print-utils.h: New file.
11027 * common/print-utils.c: New file
11028 * Makefile.in (SFILES): Add common/print-utils.c.
11029 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11030 (COMMON_OBS): Add print-utils.o.
11031 (print-utils.o): New target.
11033 2014-02-12 Tom Tromey <tromey@redhat.com>
11035 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11037 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11039 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11041 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11043 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11044 if a PT_IO ptrace request returns sucessfully but indicates that 0
11045 bytes were transferred.
11047 2014-02-12 Pedro Alves <palves@redhat.com>
11048 Kevin Buettner <kevinb@redhat.com>
11050 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11051 TYPE_INSTANCE_FLAG_CODE_SPACE.
11053 2014-02-12 Pedro Alves <palves@redhat.com>
11055 * h8300-tdep.c (pseudo_from_raw_register)
11056 (raw_from_pseudo_register): New functions.
11057 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11060 2014-02-12 Pedro Alves <palves@redhat.com>
11062 * h8300-tdep.c (h8300_register_sim_regno): New function.
11063 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11064 gdbarch_register_sim_regno hook.
11066 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11068 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11070 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11072 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11074 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11076 * obsd-tdep.h (obsd_init_abi): New prototype.
11077 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11078 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11079 (obsd_init_abi): New functions.
11080 * i386obsd-tdep.c: Include "obsd-tdep.h".
11081 (i386obsd_init_abi): Call obsd_init_abi.
11082 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11083 (amd64obsd_init_abi): Call obsd_init_abi.
11084 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11085 obsd-tdep.c to gdb_target_obs.
11087 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11089 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11090 double float arguments to 16-byte in the argument slots.
11092 2014-02-11 Doug Evans <xdje42@gmail.com>
11094 * configure.ac: Don't crash if pkg-config is not found and guile
11095 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11097 * configure: Regenerate.
11099 2014-02-11 Yao Qi <yao@codesourcery.com>
11101 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11102 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11103 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11104 * gnu-nat.c (gnu_xfer_memory): Likewise.
11105 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11106 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11107 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11108 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11110 2014-02-11 Yao Qi <yao@codesourcery.com>
11112 * target.h (enum target_xfer_error): Rename to ...
11113 (enum target_xfer_status): ... it. New. All users updated.
11114 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11116 (TARGET_XFER_STATUS_ERROR_P): New macro.
11117 (target_xfer_error_to_string): Remove declaration.
11118 (target_xfer_status_to_string): Declare.
11119 (target_xfer_partial_ftype): Adjust it.
11120 (struct target_ops) <to_xfer_partial>: Return
11121 target_xfer_status. Add argument xfered_len. Update
11123 * target.c (target_xfer_error_to_string): Rename to ...
11124 (target_xfer_status_to_string): ... it. New. All callers
11126 (target_read_live_memory): Likewise. Call target_xfer_partial
11127 instead of target_read.
11128 (memory_xfer_live_readonly_partial): Return
11129 target_xfer_status. Add argument xfered_len.
11130 (raw_memory_xfer_partial): Likewise.
11131 (memory_xfer_partial_1): Likewise.
11132 (memory_xfer_partial): Likewise.
11133 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11134 properly. Update debug message.
11135 (default_xfer_partial, current_xfer_partial): Likewise.
11136 (target_write_partial): Likewise.
11137 (target_read_partial): Likewise. All callers updated.
11138 (read_whatever_is_readable): Likewise.
11139 (target_write_with_progress): Likewise.
11140 (target_read_alloc_1): Likewise.
11142 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11143 * auxv.c (procfs_xfer_auxv): Likewise.
11144 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11145 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11146 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11147 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11148 * corefile.c (read_memory): Adjust.
11149 * corelow.c (core_xfer_partial): Likewise.
11150 * ctf.c (ctf_xfer_partial): Likewise.
11151 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11153 (darwin_xfer_partial): Likewise.
11154 * exec.c (section_table_xfer_memory_partial): Likewise. All
11156 (exec_xfer_partial): Likewise.
11157 * exec.h (section_table_xfer_memory_partial): Update
11159 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11161 (gnu_xfer_partial): Likewise.
11162 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11163 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11164 (ia64_hpux_xfer_solib_got): Likewise.
11165 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11166 type of 'partial_len' to ULONGEST.
11167 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11168 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11169 (linux_nat_xfer_partial): Likewise.
11170 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11171 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11172 * monitor.c (monitor_xfer_memory): Likewise.
11173 (monitor_xfer_partial): Likewise.
11174 * procfs.c (procfs_xfer_partial): Likewise.
11175 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11176 * record-full.c (record_full_xfer_partial): Likewise.
11177 (record_full_core_xfer_partial): Likewise.
11178 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11179 (gdbsim_xfer_partial): Likewise.
11180 * remote.c (remote_write_bytes_aux): Likewise. All callers
11182 (remote_write_bytes, remote_read_bytes): Likewise. All
11184 (remote_flash_erase): Likewise. All callers updated.
11185 (remote_write_qxfer): Likewise. All callers updated.
11186 (remote_read_qxfer): Likewise. All callers updated.
11187 (remote_xfer_partial): Likewise.
11188 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11189 (rs6000_xfer_shared_libraries): Likewise.
11190 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11191 (sol_thread_xfer_partial): Likewise.
11192 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11193 (sparc_xfer_partial): Likewise.
11194 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11196 (spu_xfer_partial): Likewise.
11197 * spu-multiarch.c (spu_xfer_partial): Likewise.
11198 * tracepoint.c (tfile_xfer_partial): Likewise.
11199 * windows-nat.c (windows_xfer_memory): Likewise.
11200 (windows_xfer_shared_libraries): Likewise.
11201 (windows_xfer_partial): Likewise.
11202 * valprint.c: Replace 'target_xfer_error' with
11203 'target_xfer_status' in comments.
11205 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11207 Checked in by Joel Brobecker <brobecker@adacore.com>.
11208 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11210 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11212 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11213 function parameters.
11215 2014-02-10 Will Newton <will.newton@linaro.org>
11217 * elfread.c (elf_rel_plt_read): Look for a .got section if
11218 looking up .got.plt fails.
11219 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11220 on address passed to elf_gnu_ifunc_record_cache.
11221 (elf_gnu_ifunc_resolve_addr): Likewise.
11222 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11224 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11226 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11227 (X_RETTURN): New macro.
11228 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11230 * sparc64-tdep.c (sparc64_init_abi): Hook
11231 sparc_in_function_epilogue_p.
11233 2014-02-10 Gary Benson <gbenson@redhat.com>
11235 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11236 Rename name_matcher to symbol_matcher.
11238 2014-02-10 Gary Benson <gbenson@redhat.com>
11240 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11241 Use expand_symtabs_file_matcher_ftype and
11242 expand_symtabs_symbol_matcher_ftype.
11244 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11246 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11247 (struct ada_symbol_cache): New.
11248 (ada_free_symbol_cache): Forward declare.
11249 (struct ada_pspace_data): New.
11250 (ada_pspace_data_handle): New static global.
11251 (get_ada_pspace_data, ada_pspace_data_cleanup)
11252 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11253 (cache_space, cache): Delete, now folded inside struct
11255 (ada_get_symbol_cache): New function.
11256 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11258 (_initialize_ada_language): Remove initialization of cache_space.
11259 Move call to observer_attach_inferior_exit up, grouping it
11260 with the other observer registrations inside this function.
11261 Rename command to be more general. Add call to
11262 register_program_space_data_with_cleanup.
11264 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11266 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11267 ada_new_objfile_observer.
11268 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11269 (_initialize_tasks): Update uses of ada_new_objfile_observer
11270 and ada_tasks_normal_stop_observer.
11272 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11274 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11275 returned by the 'Length attribute to integer.
11277 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11279 * ada-lang.c (_initialize_ada_language): Initialize
11280 cache_space obstack.
11282 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11284 * ada-lang.c (HASH_SIZE): New macro.
11285 (struct cache_entry): New type.
11286 (cache_space, cache): New static globals.
11287 (ada_clear_symbol_cache, find_entry): New functions.
11288 (lookup_cached_symbol, cache_symbol): Implement.
11289 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11290 (_initialize_ada_language): Attach ada_new_objfile_observer
11291 and ada_free_objfile_observer.
11293 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11295 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11296 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11297 struct block * parameter.
11298 (ada_lookup_symbol_list_worker): Constify local variable "block".
11299 Remove cast which is no longer necessary.
11301 2014-02-10 Doug Evans <xdje42@gmail.com>
11303 Add Guile as an extension language.
11304 * NEWS: Mention Guile scripting.
11305 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11306 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11307 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11308 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11309 (CLIBS): Add GUILE_LIBS.
11310 (install-guile): New rule.
11311 (guile.o): New rule.
11312 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11313 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11314 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11315 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11316 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11317 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11318 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11319 * configure.ac: New option --with-guile.
11320 * configure: Regenerate.
11321 * config.in: Regenerate.
11322 * auto-load.c: Remove #include "python/python.h". Add #include
11323 "gdb/section-scripts.h".
11324 (source_section_scripts): Handle Guile scripts.
11325 (_initialize_auto_load): Add name of Guile objfile script to
11326 scripts-directory help text.
11327 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11328 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11329 (struct breakpoint): New member scm_bp_object.
11330 * defs.h (enum command_control_type): New value guile_control.
11331 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11333 (show_user): Update comment.
11334 (_initialize_cli_cmds): Update help text for "show user". Update help
11335 text for max-user-call-depth.
11336 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11338 (multi_line_command_p): Add guile_control.
11339 (print_command_lines): Handle guile_control.
11340 (execute_control_command, recurse_read_control_structure): Ditto.
11341 (process_next_line): Recognize "guile" commands.
11342 * disasm.c (gdb_disassemble_info): Make non-static.
11343 * disasm.h: #include "dis-asm.h".
11344 (struct gdbarch): Add forward decl.
11345 (gdb_disassemble_info): Declare.
11346 * extension.c: #include "guile/guile.h".
11347 (extension_languages): Add guile.
11348 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11349 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11350 * gdbtypes.c (get_unsigned_type_max): New function.
11351 (get_signed_type_minmax): New function.
11352 * gdbtypes.h (get_unsigned_type_max): Declare.
11353 (get_signed_type_minmax): Declare.
11354 * guile/README: New file.
11355 * guile/guile-internal.h: New file.
11356 * guile/guile.c: New file.
11357 * guile/guile.h: New file.
11358 * guile/scm-arch.c: New file.
11359 * guile/scm-auto-load.c: New file.
11360 * guile/scm-block.c: New file.
11361 * guile/scm-breakpoint.c: New file.
11362 * guile/scm-disasm.c: New file.
11363 * guile/scm-exception.c: New file.
11364 * guile/scm-frame.c: New file.
11365 * guile/scm-gsmob.c: New file.
11366 * guile/scm-iterator.c: New file.
11367 * guile/scm-lazy-string.c: New file.
11368 * guile/scm-math.c: New file.
11369 * guile/scm-objfile.c: New file.
11370 * guile/scm-ports.c: New file.
11371 * guile/scm-pretty-print.c: New file.
11372 * guile/scm-safe-call.c: New file.
11373 * guile/scm-string.c: New file.
11374 * guile/scm-symbol.c: New file.
11375 * guile/scm-symtab.c: New file.
11376 * guile/scm-type.c: New file.
11377 * guile/scm-utils.c: New file.
11378 * guile/scm-value.c: New file.
11379 * guile/lib/gdb.scm: New file.
11380 * guile/lib/gdb/boot.scm: New file.
11381 * guile/lib/gdb/experimental.scm: New file.
11382 * guile/lib/gdb/init.scm: New file.
11383 * guile/lib/gdb/iterator.scm: New file.
11384 * guile/lib/gdb/printing.scm: New file.
11385 * guile/lib/gdb/types.scm: New file.
11386 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11387 (VPATH): Add $(GUILE_SRCDIR).
11388 (GUILE_DIR): New variable.
11389 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11390 (all): Add stamp-guile dependency.
11391 (stamp-guile): New rule.
11392 (clean-guile, install-guile, uninstall-guile): New rules.
11393 (install-only): Add install-guile dependency.
11394 (uninstall): Add uninstall-guile dependency.
11395 (clean): Add clean-guile dependency.
11397 2014-02-09 Doug Evans <xdje42@gmail.com>
11399 Revert this patch (which I approved, mea culpa).
11401 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11403 * Makefile.in (all-lib): Remove.
11404 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11406 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11408 Fix Python stack corruption.
11409 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11412 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11414 * Makefile.in (all-lib): Remove.
11415 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11417 2014-02-07 Doug Evans <dje@google.com>
11419 * extension-priv.h (extension_language_script_ops): Add comment.
11420 (extension_language_ops): Add comment.
11421 (active_ext_lang_state): Fix typo in comment.
11423 2014-02-07 Pedro Alves <palves@redhat.com>
11425 PR breakpoints/16292
11426 * infrun.c (handle_signal_stop) <signal arrives while stepping
11427 over a breakpoint>: Switch back to the stepping thread.
11429 2014-02-07 Yao Qi <yao@codesourcery.com>
11431 * target.c (target_xfer_partial): Return zero if LEN is zero.
11433 2014-02-07 Yao Qi <yao@codesourcery.com>
11435 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11436 (ld_so_xfer_auxv): Likewise.
11437 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11438 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11439 * corelow.c (core_xfer_partial): Likewise.
11440 * ctf.c (ctf_xfer_partial): Likewise.
11441 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11442 (darwin_xfer_partial): Likewise.
11443 * exec.c (exec_xfer_partial): Likewise.
11444 * gnu-nat.c (gnu_xfer_partial): Likewise.
11445 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11446 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11447 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11448 * linux-nat.c (linux_xfer_siginfo): Likewise.
11449 (linux_proc_xfer_spu): Likewise.
11450 * procfs.c (procfs_xfer_partial): Likewise.
11451 * record-full.c (record_full_xfer_partial): Likewise.
11452 (record_full_core_xfer_partial): Likewise.
11453 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11454 * remote.c (remote_write_qxfer): Likewise.
11455 (remote_write_qxfer, remote_read_qxfer): Likewise.
11456 (remote_xfer_partial): Likewise.
11457 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11458 (rs6000_xfer_shared_libraries): Likewise.
11459 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11460 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11461 (spu_xfer_partial): Likewise.
11462 * target.c (memory_xfer_partial_1): Likewise.
11463 * tracepoint.c (tfile_xfer_partial): Likewise.
11464 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11465 (windows_xfer_partial): Likewise.
11467 2014-02-07 Yao Qi <yao@codesourcery.com>
11469 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11471 (core_xfer_shared_libraries_aix): Likewise.
11472 * gdbarch.c, gdbarch.h: Regenerated.
11473 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11474 ULONGEST. Change 'len_avail' type to ULONGEST.
11475 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11476 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11478 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11480 2014-02-07 Yao Qi <yao@codesourcery.com>
11482 * corefile.c (memory_error): Get 'exception' from ERR and pass
11483 'exception' to throw_error.
11485 2014-02-06 Doug Evans <xdje42@gmail.com>
11487 * configure.ac (libpython checking): Remove all but python.o from
11488 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11489 * configure: Regenerate.
11491 * Makefile.in (SFILES): Add extension.c.
11492 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11493 (COMMON_OBS): Add extension.o.
11494 * extension.h: New file.
11495 * extension-priv.h: New file.
11496 * extension.c: New file.
11498 * python/python-internal.h: #include "extension.h".
11499 (gdbpy_auto_load_enabled): Declare.
11500 (gdbpy_apply_val_pretty_printer): Declare.
11501 (gdbpy_apply_frame_filter): Declare.
11502 (gdbpy_preserve_values): Declare.
11503 (gdbpy_breakpoint_cond_says_stop): Declare.
11504 (gdbpy_breakpoint_has_cond): Declare.
11505 (void source_python_script_for_objfile): Delete.
11506 * python/python.c: #include "extension-priv.h".
11507 Delete inclusion of "observer.h".
11508 (extension_language_python): Moved here and renamed from
11509 script_language_python in py-auto-load.c.
11510 Redefined to be of type extension_language_defn.
11511 (python_extension_script_ops): New global.
11512 (python_extension_ops): New global.
11513 (struct python_env): New member previous_active.
11514 (restore_python_env): Call restore_active_ext_lang.
11515 (ensure_python_env): Call set_active_ext_lang.
11516 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11518 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11520 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11522 (gdbpy_eval_from_control_command): Renamed from
11523 eval_python_from_control_command, made static. New arg extlang.
11524 (gdbpy_source_script) Renamed from source_python_script, made static.
11526 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11527 result to int. New arg extlang.
11528 (gdbpy_source_objfile_script): Renamed from
11529 source_python_script_for_objfile, made static. New arg extlang.
11530 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11531 static. New args extlang, extlang_printers. Change result type to
11533 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11534 static. New arg extlang. Rename arg printers to extlang_printers
11535 and change type to ext_lang_type_printers *.
11536 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11537 static. Replace argument arg with extlang, extlang_printers.
11538 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11539 (!HAVE_PYTHON, source_python_script): Delete.
11540 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11541 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11542 (!HAVE_PYTHON, start_type_printers): Delete.
11543 (!HAVE_PYTHON, apply_type_printers): Delete.
11544 (!HAVE_PYTHON, free_type_printers): Delete.
11545 (_initialize_python): Delete call to observer_attach_before_prompt.
11546 (finalize_python): Set/restore active extension language.
11547 (gdbpy_finish_initialization) Renamed from
11548 finish_python_initialization, made static. New arg extlang.
11549 (gdbpy_initialized): New function.
11550 * python/python.h: #include "extension.h". Delete #include
11551 "value.h", "mi/mi-cmds.h".
11552 (extension_language_python): Declare.
11553 (GDBPY_AUTO_FILE_NAME): Delete.
11554 (enum py_bt_status): Moved to extension.h and renamed to
11555 ext_lang_bt_status.
11556 (enum frame_filter_flags): Moved to extension.h.
11557 (enum py_frame_args): Moved to extension.h and renamed to
11558 ext_lang_frame_args.
11559 (finish_python_initialization): Delete.
11560 (eval_python_from_control_command): Delete.
11561 (source_python_script): Delete.
11562 (apply_val_pretty_printer): Delete.
11563 (apply_frame_filter): Delete.
11564 (preserve_python_values): Delete.
11565 (gdbpy_script_language_defn): Delete.
11566 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11567 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11569 * auto-load.c: #include "extension.h".
11570 (GDB_AUTO_FILE_NAME): Delete.
11571 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11572 (script_language_gdb): Delete, moved to extension.c and renamed to
11573 extension_language_gdb.
11574 (source_gdb_script_for_objfile): Delete.
11575 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11576 (loaded_script): Change type of language member to
11577 struct extension_language_defn *.
11578 (init_loaded_scripts_info): Initialize
11579 unsupported_script_warning_printed.
11580 (maybe_add_script): Make static. Change type of language arg to
11581 struct extension_language_defn *.
11582 (clear_section_scripts): Reset unsupported_script_warning_printed.
11583 (auto_load_objfile_script_1): Rewrite to use extension language API.
11584 (auto_load_objfile_script): Make public. Remove support-compiled-in
11585 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11586 (source_section_scripts): Rewrite to use extension language API.
11587 (load_auto_scripts_for_objfile): Rewrite to use
11588 auto_load_scripts_for_objfile.
11589 (collect_matching_scripts_data): Change type of language member to
11590 struct extension_language_defn *.
11591 (auto_load_info_scripts): Change type of language arg to
11592 struct extension_language_defn *.
11593 (unsupported_script_warning_print): New function.
11594 (script_not_found_warning_print): Make static.
11595 (_initialize_auto_load): Rewrite construction of scripts-directory
11597 * auto-load.h (struct objfile): Add forward decl.
11598 (struct script_language): Delete.
11599 (struct auto_load_pspace_info): Add forward decl.
11600 (struct extension_language_defn): Add forward decl.
11601 (maybe_add_script): Delete.
11602 (auto_load_objfile_script): Declare.
11603 (script_not_found_warning_print): Delete.
11604 (auto_load_info_scripts): Update prototype.
11605 (auto_load_gdb_scripts_enabled): Declare.
11606 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11607 auto_load_python_scripts_enabled and made public.
11608 (script_language_python): Delete, moved to python.c.
11609 (gdbpy_script_language_defn): Delete.
11610 (info_auto_load_python_scripts): Update to use
11611 extension_language_python.
11613 * breakpoint.c (condition_command): Replace call to
11614 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11615 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11616 with call to breakpoint_ext_lang_cond_says_stop.
11617 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11618 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11619 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11620 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11622 (local_setattro): Print name of extension language with existing
11625 * valprint.c (val_print, value_print): Update to call
11626 apply_ext_lang_val_pretty_printer.
11627 * cp-valprint.c (cp_print_value): Update call to
11628 apply_ext_lang_val_pretty_printer.
11629 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11630 (gdbpy_apply_val_pretty_printer): Renamed from
11631 apply_val_pretty_printer. New arg extlang.
11632 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11634 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11635 extension language API.
11636 * cli/cli-script.c (execute_control_command): Update to call
11637 eval_ext_lang_from_control_command.
11639 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11640 enum ext_lang_bt_status values. Update call to
11641 apply_ext_lang_frame_filter.
11642 (mi_cmd_stack_list_locals): Ditto.
11643 (mi_cmd_stack_list_args): Ditto.
11644 (mi_cmd_stack_list_variables): Ditto.
11645 * mi/mi-main.c: Delete #include "python/python-internal.h".
11646 Add #include "extension.h".
11647 (mi_cmd_list_features): Replace reference to python internal variable
11648 gdb_python_initialized with call to ext_lang_initialized_p.
11650 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11651 Update to use enum ext_lang_frame_args. Update to call
11652 apply_ext_lang_frame_filter.
11653 * python/py-framefilter.c (extract_sym): Update to use enum
11654 ext_lang_bt_status.
11655 (extract_value, py_print_type, py_print_value): Ditto.
11656 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11657 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11658 (py_print_frame): Ditto.
11659 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11660 New arg extlang. Update to use enum ext_lang_bt_status.
11662 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11663 finish_python_initialization. Replace with call to
11664 finish_ext_lang_initialization.
11666 * typeprint.c (do_free_global_table): Update to call
11667 free_ext_lang_type_printers.
11668 (create_global_typedef_table): Update to call
11669 start_ext_lang_type_printers.
11670 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11671 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11672 (type_print_options): Change type of global_printers from "void *"
11673 to "struct ext_lang_type_printers *".
11675 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11676 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11677 (gdbpy_preserve_values): Renamed from preserve_python_values.
11679 (!HAVE_PYTHON, preserve_python_values): Delete.
11681 * utils.c (quit_flag): Delete, moved to extension.c.
11682 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11685 * eval.c: Delete #include "python/python.h".
11686 * main.c: Delete #include "python/python.h".
11688 * defs.h: Update comment.
11690 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11694 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11696 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11699 2014-02-05 Yao Qi <yao@codesourcery.com>
11701 * remote.c (remote_pass_signals): Remove local 'buf' and use
11703 (remote_program_signals): Likewise.
11705 2014-02-05 Yao Qi <yao@codesourcery.com>
11707 * ctf.c: Include "inferior.h" and "gdbthread.h".
11708 (CTF_PID): A new macro.
11709 (ctf_open): Call inferior_appeared and add_thread_silent.
11710 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11711 (ctf_thread_alive): New function.
11712 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11714 2014-02-05 Yao Qi <yao@codesourcery.com>
11718 2013-05-24 Yao Qi <yao@codesourcery.com>
11720 * tracepoint.c (TFILE_PID): Remove.
11721 (tfile_open): Don't add thread and inferior.
11722 (tfile_close): Don't set 'inferior_ptid'. Don't call
11723 exit_inferior_silent.
11724 (tfile_thread_alive): Remove.
11725 (init_tfile_ops): Don't set field 'to_thread_alive' of
11728 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11730 * remote.c (remote_start_remote): Call remote_check_symbols even
11731 if only symbol-file (not file) has been given.
11733 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11735 * gdbarch.sh (skip_entrypoint): New callback.
11736 * gdbarch.c, gdbarch.h: Regenerate.
11737 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11738 * infrun.c (fill_in_stop_func): Likewise.
11739 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11740 (ppc_elfv2_elf_make_msymbol_special): New function.
11741 (ppc_elfv2_skip_entrypoint): Likewise.
11742 (ppc_linux_init_abi): Install them for ELFv2.
11744 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11746 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11747 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11748 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11749 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11750 structures returned in GPRs.
11752 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11754 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11755 offset to the stack parameter list for the ELFv2 ABI.
11757 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11759 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11760 set_gdbarch_convert_from_func_ptr_addr and
11761 set_gdbarch_elf_make_msymbol_special for ELFv1.
11762 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11763 function descriptors on ELFv1.
11764 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11765 set up r12 at function entry.
11767 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11769 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11770 (struct gdbarch_tdep): New member elf_abi.
11772 * rs6000-tdep.c: Include "elf/ppc64.h".
11773 (rs6000_gdbarch_init): Detect ELF ABI version.
11775 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11777 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11778 within a register pair holding a DFP 128-bit value on little-endian.
11779 (ppc64_sysv_abi_return_value_base): Likewise.
11780 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11781 (dfp_pseudo_register_write): Likewise.
11783 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11785 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11786 offset on little-endian when passing _Decimal32.
11787 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11789 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11791 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11792 of the overlapped FP register within the VSX register on little-
11794 (efpr_pseudo_register_write): Likewise.
11796 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11798 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11799 offset on little-endian when passing small structures.
11801 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11803 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11804 (struct ppc64_sysv_argpos): New data structure.
11805 (ppc64_sysv_abi_push_float): Remove.
11806 (ppc64_sysv_abi_push_val): New function.
11807 (ppc64_sysv_abi_push_integer): Likewise.
11808 (ppc64_sysv_abi_push_freg): Likewise.
11809 (ppc64_sysv_abi_push_vreg): Likewise.
11810 (ppc64_sysv_abi_push_param): Likewise.
11811 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11812 (ppc64_sysv_abi_return_value_base): New function.
11813 (ppc64_sysv_abi_return_value): Refactor to use it.
11815 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11817 * NEWS: Document new target powerpc64le-*-linux*.
11819 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11821 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11822 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11824 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11825 register set used in ELF core dumps. Add floating-point register set.
11827 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11829 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11830 dwarf2_to_gdb[] table using symbolic constants. Adjust
11831 penultimate entry from number representing the PC register
11832 to symbolic constant representing the MDR register. Add
11833 constant for the PC register to the end of the table.
11835 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11837 * bsd-kvm.c: Include <sys/param.h>
11839 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11841 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11843 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11845 * ada-lang.h (clear_ada_sym_cache): Delete.
11847 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11849 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11851 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11853 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11854 the sigreturn register save area only if the syscall is
11857 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11859 * valops.c (value_slice): Minor reformatting.
11861 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11863 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11865 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11867 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11868 New static globals.
11869 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11870 (ada_ignore_descriptive_types_p): New static global.
11871 (find_parallel_type_by_descriptive_type): Return immediately
11872 if ada_ignore_descriptive_types_p is set.
11873 (_initialize_ada_language): Register new commands "maintenance
11874 set ada", "maintenance show ada", "maintenance set ada
11875 ignore-descriptive-types" and "maintenance show ada
11876 ignore-descriptive-types".
11877 * NEWS: Add entry for new "maint ada set/show
11878 ignore-descriptive-types" commands.
11880 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11882 * record-btrace.c (record_btrace_close): Call btrace_teardown
11885 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11887 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11890 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11892 * ada-typeprint (type_is_full_subrange_of_target_type):
11894 (print_range): Add parameter bounds_prefered_p. If not set,
11895 try printing range types using the name of their base type.
11896 (print_range_type): Add parameter bounds_prefered_p.
11897 Use it in call to print_range.
11898 (print_array_type, ada_print_type): Update calls to print_range
11899 and print_range_type.
11901 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11903 * ada-typeprint.c (print_array_type, print_choices, print_range)
11904 (print_range_bound, print_dynamic_range_bound, print_range_type):
11905 Remove declaration.
11907 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11909 * ada-typeprint.c (print_range): Add missing empty line
11910 after local declaration.
11912 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11914 * ada-valprint.c (print_optional_low_bound): Get index_type's
11915 target type for as long as it is a TYPE_CODE_RANGE.
11917 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11919 * procfs.c (procfs_make_note_section): Remove assertion and
11920 associated comment.
11922 2014-01-24 Yao Qi <yao@codesourcery.com>
11924 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11925 * corelow.c (get_core_siginfo): Likewise.
11927 2014-01-24 Yao Qi <yao@codesourcery.com>
11929 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11930 ULONGEST. Don't check 'len' is negative.
11931 (remote_write_bytes): Change type of 'len' to ULONGEST.
11933 2014-01-23 Tom Tromey <tromey@redhat.com>
11936 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11937 Handle exception from frame.block.
11938 (FrameVars.fetch_frame_locals): Likewise.
11940 2014-01-23 Tom Tromey <tromey@redhat.com>
11943 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11944 on a NULL pointer. Move "goto error" to correct place.
11946 2014-01-23 Tom Tromey <tromey@redhat.com>
11949 * python/py-framefilter.c (apply_frame_filter): Call
11950 ensure_python_env after computing gdbarch.
11952 2014-01-23 Yao Qi <yao@codesourcery.com>
11954 * target.c (raw_memory_xfer_partial): Change argument type
11955 from void * to gdb_byte *.
11956 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11958 2014-01-22 Doug Evans <dje@google.com>
11960 New gdbserver option --debug-format=timestamp.
11961 * NEWS: Mention it.
11963 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11965 * syscalls/s390x-linux.xml: New file.
11966 * syscalls/s390-linux.xml: New file.
11967 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11968 (XML_SYSCALL_FILENAME_S390X): Likewise.
11969 (op_svc): New enum value for SVC opcode.
11970 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11971 (s390_linux_get_syscall_number): New function.
11972 (s390_gdbarch_init): Register '*get_syscall_number' and the
11973 syscall xml file name.
11974 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11975 "s390-linux.xml" and "s390x-linux.xml".
11976 * NEWS: Announce new feature.
11978 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11980 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11982 2014-01-22 Pedro Alves <palves@redhat.com>
11984 * xtensa-config.c: Include defs.h.
11986 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11988 * common/common-utils.h: Add "ARI:" comment beside __func__
11991 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11993 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11994 documentation a bit.
11996 2014-01-21 Roland McGrath <mcgrathr@google.com>
11998 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11999 * configure: Regenerate.
12000 * aclocal.m4: Regenerate.
12001 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12002 New substituted variables.
12003 (install-strip): New target.
12004 (INSTALL_SCRIPT): New substituted variable.
12005 (FLAGS_TO_PASS): Add it.
12006 (install-only): Use $(INSTALL_SCRIPT) rather than
12007 $(INSTALL_PROGRAM) for gcore.
12009 2014-01-20 Tom Tromey <tromey@redhat.com>
12011 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12014 2014-01-20 Tom Tromey <tromey@redhat.com>
12016 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12017 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12018 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12019 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12020 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12021 (struct cmd_list_element) <flags>: Remove.
12022 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12023 doc_allocated>: New fields.
12024 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12026 * maint.c (maintenance_do_deprecate): Update.
12027 * top.c (execute_command): Update.
12029 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12031 * xtensa-linux-nat.c: Include asm/ptrace.h.
12033 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12035 * Makefile.in (SFILES): Add d-support.c.
12036 (COMMON_OBS): Add d-support.o.
12037 * d-lang.h (d_parse_symbol): Add comment, now defined in
12039 * d-lang.c (parse_call_convention)
12040 (parse_attributes, parse_function_types)
12041 (parse_function_args, parse_type, parse_identifier)
12042 (call_convention_p, d_parse_symbol): Move functions to ...
12043 * d-support.c: ... New file.
12045 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12047 * d-lang.h (d_parse_symbol): Add declaration.
12048 * d-lang.c (extract_identifiers)
12049 (extract_type_info): Remove functions.
12050 (parse_call_convention, parse_attributes)
12051 (parse_function_types, parse_function_args)
12052 (parse_type, parse_identifier, call_convention_p)
12053 (d_parse_symbol): New functions.
12054 (d_demangle): Use d_parse_symbol to demangle D symbols.
12056 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12058 * d-lang.h (struct builtin_d_type): New data type.
12059 (builtin_d_type): Add declaration.
12060 * d-lang.c (d_language_arch_info, build_d_types)
12061 (builtin_d_type): New functions.
12062 (enum d_primitive_types): New data type.
12063 (d_language_defn): Change c_language_arch_info to
12064 d_language_arch_info.
12065 (d_type_data): New static variable.
12066 (_initialize_d_language): Initialize d_type_data.
12068 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12070 * d-lang.h (d_main_name): Add declaration.
12071 * d-lang.c (d_main_name): New function.
12072 * symtab.c (find_main_name): Add call to d_main_name.
12074 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12076 * d-lang.c (d_language_defn): Change macro_expansion_c to
12077 macro_expansion_no.
12079 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12081 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12083 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12085 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12086 gdb_exception" declaration.
12087 * remote.c (getpkt_or_notif_sane): Likewise.
12089 2014-01-17 Doug Evans <dje@google.com>
12091 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12092 function, contents of dirnames_to_char_ptr_vec_append moved here.
12093 (delim_string_to_char_ptr_vec): New function.
12094 (dirnames_to_char_ptr_vec_append): Rewrite.
12095 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12097 2014-01-17 Doug Evans <dje@google.com>
12099 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12101 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12102 #include "common-utils.h".
12103 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12104 * common/vec.h (VEC_ASSERT_PASS): Update.
12105 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12106 (MACH_CHECK_ERROR): Update.
12108 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12110 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12112 * gdbarch.h: Regenerate.
12114 2014-01-16 Tom Tromey <tromey@redhat.com>
12116 * value.c (struct value) <regnum>: Move earlier.
12118 2014-01-16 Tom Tromey <tromey@redhat.com>
12120 * remote.c (extended_remote_create_inferior): Rename from
12121 extended_remote_create_inferior_1. Add "ops" argument. Remove
12122 old implementation.
12124 2014-01-16 Pedro Alves <palves@redhat.com>
12126 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12127 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12130 2014-01-16 Doug Evans <dje@google.com>
12132 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12134 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12136 * btrace.h (btrace_thread_flag): New.
12137 (struct btrace_thread_info) <flags>: New.
12138 * record-btrace.c (record_btrace_resume_thread)
12139 (record_btrace_find_thread_to_move, btrace_step_no_history)
12140 (btrace_step_stopped, record_btrace_start_replaying)
12141 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12142 (record_btrace_find_resume_thread): New.
12143 (record_btrace_resume, record_btrace_wait): Extend.
12144 (record_btrace_can_execute_reverse): New.
12145 (record_btrace_open): Fail in non-stop mode.
12146 (record_btrace_set_replay): Split into this, ...
12147 (record_btrace_stop_replaying): ... this, ...
12148 (record_btrace_clear_histories): ... and this.
12149 (init_record_btrace_ops): Init to_can_execute_reverse.
12150 * NEWS: Announce it.
12152 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12154 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12155 (forward_target_decr_pc_after_break)
12156 (target_decr_pc_after_break): New.
12157 * target.c (forward_target_decr_pc_after_break)
12158 (target_decr_pc_after_break): New.
12159 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12160 instead of gdbarch_decr_pc_after_break.
12161 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12162 instead of gdbarch_decr_pc_after_break.
12163 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12164 instead of gdbarch_decr_pc_after_break.
12165 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12166 instead of gdbarch_decr_pc_after_break.
12167 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12168 instead of gdbarch_decr_pc_after_break.
12169 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12170 instead of gdbarch_decr_pc_after_break.
12172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12174 * btrace.c: Include regcache.h.
12175 (btrace_add_pc): New.
12176 (btrace_enable): Call btrace_add_pc.
12177 (btrace_is_empty): New.
12178 * btrace.h (btrace_is_empty): New.
12179 * record-btrace.c (require_btrace, record_btrace_info): Call
12182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12184 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12185 Support delta reads.
12186 (linux_disable_btrace): Change return type.
12187 * common/linux-btrace.h (linux_read_btrace): Change parameters
12188 and return type to allow error reporting. Update users.
12189 (linux_disable_btrace): Change return type. Update users.
12190 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12192 (btrace_error): New.
12193 (btrace_block) <begin>: Comment on BEGIN == 0.
12194 * btrace.c (btrace_compute_ftrace): Start from the end of
12196 (btrace_stitch_trace, btrace_clear_history): New.
12197 (btrace_fetch): Read delta trace, return if replaying.
12198 (btrace_clear): Move clear history code to btrace_clear_history.
12199 (parse_xml_btrace): Throw an error if parsing failed.
12200 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12201 and return type to allow error reporting.
12202 (target_read_btrace): Change parameters and return type to allow
12204 * target.c (target_read_btrace): Update.
12205 * remote.c (remote_read_btrace): Support delta reads. Pass
12207 * NEWS: Announce it.
12209 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12211 * record.h (record_btrace_frame_unwind)
12212 (record_btrace_tailcall_frame_unwind): New declarations.
12213 * dwarf2-frame: Include record.h
12214 (dwarf2_frame_cfa): Throw an error for btrace frames.
12215 * record-btrace.c: Include hashtab.h.
12216 (btrace_get_bfun_name): New.
12217 (btrace_call_history): Call btrace_get_bfun_name.
12218 (struct btrace_frame_cache): New.
12220 (bfcache_hash, bfcache_eq, bfcache_new): New.
12221 (btrace_get_frame_function): New.
12222 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12223 (record_btrace_frame_this_id): Compute own id.
12224 (record_btrace_frame_prev_register): Provide PC, throw_error
12225 for all other registers.
12226 (record_btrace_frame_sniffer): Detect btrace frames.
12227 (record_btrace_tailcall_frame_sniffer): New.
12228 (record_btrace_frame_dealloc_cache): New.
12229 (record_btrace_frame_unwind): Add new functions.
12230 (record_btrace_tailcall_frame_unwind): New.
12231 (_initialize_record_btrace): Allocate cache.
12232 * btrace.c (btrace_clear): Call reinit_frame_cache.
12233 * NEWS: Announce it.
12235 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12237 * record-btrace.c (record_btrace_set_replay)
12238 (record_btrace_goto_begin, record_btrace_goto_end)
12239 (record_btrace_goto): New.
12240 (init_record_btrace_ops): Initialize them.
12241 * NEWS: Announce it.
12243 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12245 * record-btrace.c (record_btrace_find_new_threads)
12246 (record_btrace_thread_alive): New.
12247 (init_record_btrace_ops): Initialize to_find_new_threads and
12250 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12252 * record-btrace.c (record_btrace_resume): New.
12253 (record_btrace_wait): New.
12254 (init_record_btrace_ops): Initialize to_wait and to_resume.
12256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12258 * record-btrace.c (record_btrace_xfer_partial)
12259 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12260 (record_btrace_allow_memory_access): New.
12261 (init_record_btrace_ops): Initialize new methods.
12262 * target.c (raw_memory_xfer_partial): Bail out if target reports
12263 that this memory is not available.
12265 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12267 * target.h (target_ops) <to_insert_breakpoint>
12268 <to_remove_breakpoint>: Add target_ops parameter.
12269 (forward_target_insert_breakpoint): New.
12270 (forward_target_remove_breakpoint): New.
12271 (memory_remove_breakpoint, memory_insert_breakpoint):
12272 Add target_ops parameter.
12273 * target.c (target_insert_breakpoint): Split into this and ...
12274 (forward_target_insert_breakpoint): ... this.
12275 (target_remove_breakpoint): Split into this and ...
12276 (forward_target_remove_breakpoint): ... this.
12277 (debug_to_insert_breakpoint): Add target_ops parameter.
12278 Call forward_target_insert_breakpoint.
12279 (debug_to_remove_breakpoint): Add target_ops parameter.
12280 Call forward_target_remove_breakpoint.
12281 (update_current_target): Do not inherit or default to_insert_breakpoint
12282 and to_remove_breakpoint.
12283 * corelow.c (ignore): Add target_ops parameter.
12284 * exec.c (ignore): Add target_ops parameter.
12285 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12286 Add target_ops parameter.
12287 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12288 Add target_ops parameter.
12289 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12290 Add target_ops parameter.
12291 * record-full.c (record_full_beneath_to_insert_breakpoint)
12292 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12293 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12294 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12295 (record_full_core_remove_breakpoint): Add target_ops parameter.
12297 (record_full_beneath_to_insert_breakpoint_ops)
12298 (record_full_beneath_to_remove_breakpoint_ops)
12299 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12300 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12301 tmp_to_remove_breakpoint_ops,
12302 record_full_beneath_to_insert_breakpoint_ops, and
12303 record_full_beneath_to_remove_breakpoint_ops.
12304 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12305 (m32r_remove_breakpoint): Add target_ops parameter.
12306 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12307 Add target_ops parameter.
12308 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12309 Add target_ops parameter.
12311 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12312 Markus Metzger <markus.t.metzger@intel.com>
12314 * record-btrace.c: Include frame-unwind.h.
12315 (record_btrace_frame_unwind_stop_reason)
12316 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12317 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12319 (init_record_btrace_ops): Install it.
12321 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12323 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12326 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12328 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12331 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12333 * frame-unwind.c: Include target.h.
12334 (frame_unwind_try_unwinder): New function with code from ...
12335 (frame_unwind_find_by_frame): ... here. New variable
12336 unwinder_from_target, call also target_get_unwinder)
12337 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12338 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12339 * target.h (struct target_ops): New fields to_get_unwinder and
12340 to_get_tailcall_unwinder.
12341 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12345 * record-btrace.c (record_btrace_fetch_registers)
12346 (record_btrace_store_registers)
12347 (record_btrace_to_prepare_to_store): New.
12348 (init_record_btrace_ops): Add the above.
12350 2014-01-16 Tom Tromey <tromey@redhat.com>
12352 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12353 * target.h (struct target_ops) <to_prepare_to_store>: Add
12355 (target_prepare_to_store): Add argument.
12356 * target.c (debug_to_prepare_to_store): Add argument.
12357 (update_current_target): Update.
12358 * remote.c (remote_prepare_to_store): Add 'self' argument.
12359 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12360 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12361 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12362 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12364 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12365 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12366 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12367 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12368 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12370 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12372 * btrace.h (replay) <replay>: New.
12373 (btrace_is_replaying): New.
12374 * btrace.c (btrace_clear): Free replay iterator.
12375 (btrace_is_replaying): New.
12376 * record-btrace.c (record_btrace_is_replaying): New.
12377 (record_btrace_info): Print insn number if replaying.
12378 (record_btrace_insn_history): Start at replay position.
12379 (record_btrace_call_history): Start at replay position.
12380 (init_record_btrace_ops): Init to_record_is_replaying.
12382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12384 * record-btrace.c (record_btrace_insn_history_range): Include
12386 (record_btrace_insn_history_from): Adjust range.
12387 (record_btrace_call_history_range): Include
12389 (record_btrace_call_history_from): Adjust range.
12390 * NEWS: Announce changes.
12392 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12394 * record.h (enum record_print_flag)
12395 <record_print_indent_calls>: New.
12396 * record.c (get_call_history_modifiers): Recognize /c modifier.
12397 (_initialize_record): Document /c modifier.
12398 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12399 Reorder fields. Optionally indent the function name. Update
12401 * NEWS: Announce changes.
12403 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12405 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12407 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12409 * btrace.c (ftrace_new_function): Start counting at one.
12410 * record-btrace.c (record_btrace_info): Adjust number of calls
12412 * NEWS: Announce it.
12414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12416 * record-btrace.c (btrace_call_history_insn_range): Print
12417 insn range as [begin, end].
12419 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12421 * btrace.h (struct btrace_func_link): New.
12422 (enum btrace_function_flag): New.
12423 (struct btrace_inst): Rename to ...
12424 (struct btrace_insn): ...this. Update all users.
12425 (struct btrace_func) <ibegin, iend>: Remove.
12426 (struct btrace_func_link): New.
12427 (struct btrace_func): Rename to ...
12428 (struct btrace_function): ...this. Update all users.
12429 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12430 (number, level, flags>: New.
12431 (struct btrace_insn_iterator): Rename to ...
12432 (struct btrace_insn_history): ...this.
12434 (struct btrace_insn_iterator, btrace_call_iterator): New.
12435 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12436 (struct btrace_target_info) <begin, end, level>
12437 <insn_history, call_history>: New.
12438 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12439 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12440 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12441 (btrace_call_number, btrace_call_begin, btrace_call_end)
12442 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12443 (btrace_find_function_by_number, btrace_set_insn_history)
12444 (btrace_set_call_history): New.
12445 * btrace.c (btrace_init_insn_iterator)
12446 (btrace_init_func_iterator, compute_itrace): Remove.
12447 (ftrace_print_function_name, ftrace_print_filename)
12448 (ftrace_skip_file): Change
12449 parameter to const.
12450 (ftrace_init_func): Remove.
12451 (ftrace_debug): Use new btrace_function fields.
12452 (ftrace_function_switched): Also consider gaining and
12453 losing symbol information).
12454 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12455 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12456 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12458 (ftrace_new_function): Move. Remove debug print.
12459 (ftrace_update_lines, ftrace_update_insns): New.
12460 (ftrace_update_function): Check for call, ret, and jump.
12461 (compute_ftrace): Renamed to ...
12462 (btrace_compute_ftrace): ...this. Rewritten to compute call
12464 (btrace_fetch, btrace_clear): Updated.
12465 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12466 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12467 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12468 (btrace_call_number, btrace_call_begin, btrace_call_end)
12469 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12470 (btrace_find_function_by_number, btrace_set_insn_history)
12471 (btrace_set_call_history): New.
12472 * record-btrace.c (require_btrace): Use new btrace thread
12474 (record_btrace_info, btrace_insn_history)
12475 (record_btrace_insn_history, record_btrace_insn_history_range):
12476 Use new btrace thread info fields and new iterator.
12477 (btrace_func_history_src_line): Rename to ...
12478 (btrace_call_history_src_line): ...this. Use new btrace
12479 thread info fields.
12480 (btrace_func_history): Rename to ...
12481 (btrace_call_history): ...this. Use new btrace thread info
12482 fields and new iterator.
12483 (record_btrace_call_history, record_btrace_call_history_range):
12484 Use new btrace thread info fields and new iterator.
12486 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12488 * frame.h (frame_id_build_unavailable_stack_special): New.
12489 * frame.c (frame_id_build_unavailable_stack_special): New.
12491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12493 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12494 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12495 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12497 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12498 (i386_insn_is_jump, i386_jmp_p): New.
12499 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12500 insn_is_jump to gdbarch.
12501 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12502 * gdbarch.h: Regenerated.
12503 * gdbarch.c: Regenerated.
12504 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12505 (default_insn_is_jump): New.
12506 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12507 (default_insn_is_jump): New.
12509 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12511 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12513 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12514 (btrace_read_type) <btrace_read_new>: Change to ...
12515 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12517 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12519 * common/linux-btrace.c (linux_read_btrace): Free trace from
12520 previous iteration.
12522 2014-01-15 Doug Evans <dje@google.com>
12524 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12527 2014-01-15 Tom Tromey <tromey@redhat.com>
12529 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12530 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12531 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12532 (set_objfile_main_name): New function.
12533 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12534 language_of_main>: New fields.
12535 (set_objfile_main_name): Declare.
12536 * symtab.c (find_main_name): Loop over objfiles to find the main
12538 (set_main_name): Now static.
12539 (get_main_info): Add comment.
12540 * symtab.h (set_main_name): Don't declare.
12542 2014-01-15 Tom Tromey <tromey@redhat.com>
12544 * symtab.c (main_progspace_key): New global.
12545 (struct main_info): New.
12546 (name_of_main, language_of_main): Remove.
12547 (get_main_info, main_info_cleanup): New function.
12548 (set_main_name, main_name, main_language): Use get_main_info.
12549 (_initialize_symtab): Initialize main_progspace_key.
12551 2014-01-15 Tom Tromey <tromey@redhat.com>
12553 * dbxread.c (process_one_symbol): Update.
12554 * dwarf2read.c (read_partial_die): Update.
12555 * symfile.c (set_initial_language): Call main_language.
12556 * symtab.c (language_of_main): Now static.
12557 (set_main_name): Add 'lang' parameter.
12558 (find_main_name): Update.
12559 (main_language): New function.
12560 (symtab_observer_executable_changed): Update.
12561 * symtab.h (set_main_name): Update.
12562 (language_of_main): Remove.
12563 (main_language): Declare.
12565 2014-01-15 Tom Tromey <tromey@redhat.com>
12567 * symfile.c (init_entry_point_info): Use new "initialized" field.
12569 * objfiles.h (struct entry_point) <initialized>: New field.
12570 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12571 (struct objfile) <ei>: ...here. Remove.
12572 * objfiles.c (entry_point_address_query): Update.
12574 2014-01-15 Tom Tromey <tromey@redhat.com>
12576 * objfiles.c (entry_point_address_query): Relocate entry point
12578 (objfile_relocate1): Do not relocate entry point address.
12579 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12580 <the_bfd_section_index>: New field.
12581 * symfile.c (init_entry_point_info): Find the entry point's
12584 2014-01-15 Tom Tromey <tromey@redhat.com>
12586 * solib-frv.c (enable_break): Use entry_point_address_query.
12588 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12590 * NEWS: Add note on improved process record-replay on
12591 arm*-linux* targets.
12593 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12595 * arm-tdep.c (enum arm_record_result): New enum.
12596 (arm_record_unsupported_insn): New function.
12597 (arm_record_coproc_data_proc): Removed.
12598 (thumb2_record_ld_st_multiple): New function.
12599 (thumb2_record_ld_st_dual_ex_tbb): New function.
12600 (thumb2_record_data_proc_sreg_mimm): New function.
12601 (thumb2_record_ps_dest_generic): New function.
12602 (thumb2_record_branch_misc_cntrl): New function.
12603 (thumb2_record_str_single_data): New function.
12604 (thumb2_record_ld_mem_hints): New function.
12605 (thumb2_record_ld_word): New function.
12606 (thumb2_record_lmul_lmla_div): New function.
12607 (thumb2_record_decode_insn_handler): New function.
12608 (decode_insn): Add thumb32 instruction handlers.
12610 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12612 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12613 (struct arm_linux_record_tdep): Declare.
12614 (arm_canonicalize_syscall): New function.
12615 (arm_all_but_pc_registers_record): New function.
12616 (arm_linux_syscall_record): New function.
12617 (arm_linux_init_abi): Add syscall recording constructs.
12618 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12619 decoding. (arm_record_coproc_data_proc): Update arm syscall
12621 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12622 <arm_syscall_record>: New field.
12623 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12626 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12628 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12629 register for push instruction recording.
12631 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12633 * arm-tdep.c (thumb_record_misc): Update to correct logical
12634 error while recording ldm, ldmia and pop instructions.
12636 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12638 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12640 2014-01-15 Pedro Alves <palves@redhat.com>
12642 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12643 (go32_resume, go32_fetch_registers, store_register)
12644 (go32_store_registers, go32_prepare_to_store)
12645 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12646 (go32_create_inferior, go32_can_run, go32_terminal_init)
12647 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12650 2014-01-15 Tom Tromey <tromey@redhat.com>
12652 * target.h (async_callback_ftype): New typedef.
12653 (struct target_ops) <to_async>: Use it.
12655 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12657 * python/py-value.c (get_field_type): Remove unnecessary curly
12658 braces for single-statement if block.
12660 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12662 * python/py-type.c (convert_field): Add missing empty line
12663 after declarations.
12665 2014-01-14 Doug Evans <dje@google.com>
12667 * symfile.h (expand_symtabs_matching): Renamed from
12668 expand_partial_symbol_names. Update prototype.
12669 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12670 * symfile.c (expand_symtabs_matching): Renamed from
12671 expand_partial_symbol_names. New args file_matcher, kind.
12672 Rename arg fun to symbol_matcher.
12673 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12674 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12675 ada_expand_partial_symbol_name.
12676 (ada_make_symbol_completion_list): Update to call
12677 expand_symtabs_matching.
12678 (ada_add_global_exceptions): Call expand_symtabs_matching.
12679 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12680 call map_symbol_filenames.
12681 * symtab.c (sources_info): Update to call map_symbol_filenames.
12682 (search_symbols): Call expand_symtabs_matching.
12683 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12684 (default_make_symbol_completion_list_break_on): Update to call
12685 expand_symtabs_matching.
12686 (make_source_files_completion_list): Update to call
12687 map_symbol_filenames.
12689 2014-01-14 Doug Evans <dje@google.com>
12691 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12692 (expand_symtabs_symbol_matcher_ftype): New typedef.
12693 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12694 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12695 * symfile.c (expand_partial_symbol_names): Update to use
12696 expand_symtabs_symbol_matcher_ftype.
12697 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12698 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12699 Arg name_matcher renamed to symbol_matcher.
12700 * psymtab.c (recursively_search_psymtabs): Update to use
12701 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12703 (expand_symtabs_matching_via_partial): Update to use
12704 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12705 Arg name_matcher renamed to symbol_matcher.
12707 2014-01-14 Doug Evans <dje@google.com>
12709 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12710 (map_partial_symbol_filenames): Ditto.
12711 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12712 (map_partial_symbol_filenames): Ditto.
12713 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12714 (map_partial_symbol_filenames): Ditto.
12715 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12716 (map_partial_symbol_filenames): Ditto.
12717 * symtab.c: Delete #include "psymtab.h".
12719 2014-01-14 Pedro Alves <palves@redhat.com>
12720 Tom Tromey <tromey@redhat.com>
12722 * infrun.c (use_displaced_stepping): Use find_record_target
12723 instead of RECORD_IS_USED.
12724 (adjust_pc_after_break): Use record_full_is_used instead of
12726 * record-btrace.c (record_btrace_open): Call record_preopen
12727 instead of checking RECORD_IS_USED.
12728 * record-full.c (record_full_shortname)
12729 (record_full_core_shortname): New globals.
12730 (record_full_is_used): New function.
12731 (find_full_open): Call record_preopen instead of checking
12733 (init_record_full_ops): Set the target's shortname to
12734 record_full_shortname.
12735 (init_record_full_core_ops): Set the target's shortname to
12736 record_full_core_shortname.
12737 * record-full.h (record_full_is_used): Declare.
12738 * record.c (find_record_target): Make extern.
12739 (record_preopen): New function.
12740 * record.h (RECORD_IS_USED): Delete macro.
12741 (find_record_target, record_preopen): Declare functions.
12743 2014-01-14 Yao Qi <yao@codesourcery.com>
12745 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12746 'len''s type to ULONGEST.
12747 (core_xfer_shared_libraries_aix): Likewise.
12748 * gdbarch.c, gdbarch.h: Regenerated.
12749 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12750 Change type of 'len' to ULONGEST.
12751 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12752 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12754 2014-01-14 Yao Qi <yao@codesourcery.com>
12756 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12757 type of 'len' to ULONGEST.
12758 (linux_xfer_osdata_processgroups): Likewise.
12759 (linux_xfer_osdata_threads): Likewise.
12760 (linux_xfer_osdata_fds): Likewise.
12761 (linux_xfer_osdata_isockets): Likewise.
12762 (linux_xfer_osdata_shm): Likewise.
12763 (linux_xfer_osdata_sem): Likewise.
12764 (linux_xfer_osdata_msg): Likewise.
12765 (linux_common_xfer_osdata): Likewise.
12766 (struct osdata_type) <getter>: Likewise.
12767 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12770 2014-01-14 Yao Qi <yao@codesourcery.com>
12772 * target.h (target_xfer_partial_ftype): Update.
12773 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12775 * aix-thread.c (aix_thread_xfer_partial): Change type of
12776 argument 'len' to ULONGEST.
12777 * auxv.c (procfs_xfer_auxv): Likewise.
12778 (ld_so_xfer_auxv): Likewise.
12779 (memory_xfer_auxv): Likewise.
12780 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12781 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12782 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12783 * corelow.c (core_xfer_partial): Likewise.
12784 * ctf.c (ctf_xfer_partial): Likewise.
12785 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12787 (darwin_read_dyld_info): Likewise.
12788 (darwin_xfer_partial): Likewise.
12789 * exec.c (section_table_xfer_memory_partial): Likewise.
12790 (exec_xfer_partial): Likewise.
12791 * exec.h (section_table_xfer_memory_partial): Update
12793 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12794 instead of plongest.
12795 (gnu_xfer_partial): Likewise.
12796 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12797 (ia64_hpux_xfer_solib_got): Likewise.
12798 (ia64_hpux_xfer_partial): Likewise.
12799 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12800 * inf-ptrace.c (inf_ptrace_xfer_partial):
12801 * inf-ttrace.c (inf_ttrace_xfer_partial):
12802 * linux-nat.c (linux_xfer_siginfo): Likewise.
12803 (linux_nat_xfer_partial): Likewise.
12804 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12805 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12806 * monitor.c (monitor_xfer_memory): Likewise.
12807 (monitor_xfer_partial): Likewise.
12808 * procfs.c (procfs_xfer_partial): Likewise.
12809 * record-full.c (record_full_xfer_partial): Likewise.
12810 (record_full_core_xfer_partial): Likewise.
12811 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12812 instead of plongest.
12813 (gdbsim_xfer_partial): Likewise.
12814 * remote.c (remote_xfer_partial): Likewise.
12815 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12816 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12818 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12819 (rs6000_xfer_shared_libraries): Likewise.
12820 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12821 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12822 (sparc_xfer_partial): Likewise.
12823 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12824 (spu_xfer_partial): Likewise.
12825 * spu-multiarch.c (spu_xfer_partial): Likewise.
12826 * target.c (target_read_live_memory): Likewise.
12827 (memory_xfer_live_readonly_partial): Likewise.
12828 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12829 (target_xfer_partial, default_xfer_partial): Likewise.
12830 (current_xfer_partial): Likewise.
12831 * tracepoint.c (tfile_xfer_partial): Likewise.
12832 * windows-nat.c (windows_xfer_memory): Likewise. Call
12833 pulongest instead of plongest.
12834 (windows_xfer_partial): Likewise.
12835 (windows_xfer_shared_libraries): Likewise.
12837 2014-01-14 Yao Qi <yao@codesourcery.com>
12839 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12840 target_xfer_partial_ftype.
12842 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12846 * valops.c (value_struct_elt_bitpos): New function
12847 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12848 object to 'None' if the field name is an empty string ("").
12849 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12850 attribute to look for a field when 'name' is 'None'.
12851 (get_field_type): New function
12853 2014-01-13 Doug Evans <dje@google.com>
12856 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12857 (try_open_dwop_file): Ditto.
12858 * gdb_bfd.c: #include "vec.h".
12859 (bfdp): New typedef.
12860 (struct gdb_bfd_data): New member included_bfds.
12861 (gdb_bfd_unref): Unref all included bfds.
12862 (gdb_bfd_record_inclusion): New function.
12863 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12865 2014-01-13 Tom Tromey <tromey@redhat.com>
12867 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12869 2014-01-13 Tom Tromey <tromey@redhat.com>
12871 * defs.h (use_windows): Remove.
12872 * gdb.c (main): Update.
12873 * main.c (captured_main, gdb_main): Update.
12874 * main.h (struct captured_main_args) <use_windows>: Remove.
12875 * top.c (use_windows): Remove.
12877 2014-01-13 Tom Tromey <tromey@redhat.com>
12879 * defs.h (deprecated_flush_hook): Remove.
12881 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12884 * linux-thread-db.c (try_thread_db_load): Add parameter
12885 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12886 (try_thread_db_load_from_pdir_1): Move it there from here.
12887 (try_thread_db_load_from_sdir): Update caller.
12888 (try_thread_db_load_from_dir): Move it there from here.
12890 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12892 * regformats/regdat.sh: Always rewrite the register file.
12894 2014-01-13 Pedro Alves <palves@redhat.com>
12896 * Makefile.in (CHECK_HEADERS): New variable.
12897 (check-headers:): New rule.
12899 2014-01-13 Tom Tromey <tromey@redhat.com>
12901 * cli/cli-setshow.c (do_set_command): Update.
12902 * defs.h (deprecated_set_hook): Remove.
12903 * top.c (deprecated_set_hook): Remove.
12905 2014-01-13 Pedro Alves <palves@redhat.com>
12907 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12908 the tracepoint if the PC is a pseudo-register.
12910 2014-01-13 Tom Tromey <tromey@redhat.com>
12912 * defs.h (XCALLOC): Remove.
12913 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12914 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12915 * dwarf2loc.c (allocate_piece_closure): Likewise.
12916 * elfread.c (elf_symfile_segments): Likewise.
12917 (elf_symfile_segments): Likewise.
12918 * gdbtypes.c (copy_type_recursive): Likewise.
12919 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12920 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12921 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12923 * mt-tdep.c (mt_gdbarch_init): Likewise.
12924 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12926 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12927 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12928 * registry.c (registry_alloc_data): Likewise.
12929 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12930 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12931 * serial.c (serial_fdopen_ops): Likewise.
12932 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12934 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12935 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12938 2014-01-13 Tom Tromey <tromey@redhat.com>
12940 * defs.h (XMALLOC): Remove.
12941 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12942 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12943 * cli-out.c (struct ui_out *): Likewise.
12944 * cli/cli-dump.c (add_dump_command): Likewise.
12945 (add_dump_command): Likewise.
12946 * complaints.c (get_complaints): Likewise.
12947 (find_complaint): Likewise.
12948 * dwarf2-frame.c (execute_cfa_program): Likewise.
12949 * dwarf2read.c (abbrev_table_read_table): Likewise.
12950 * gdbarch.sh: Likewise.
12951 * gdbarch.c: Rebuild.
12952 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12953 * interps.c (interp_new): Likewise.
12954 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12955 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12956 * mi/mi-console.c (mi_console_file_new): Likewise.
12957 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12958 * mi/mi-out.c (mi_out_new): Likewise.
12959 * mi/mi-parse.c (mi_parse): Likewise.
12960 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12961 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12962 * observer.c (xalloc_observer_list_node): Likewise.
12963 * regcache.c (regcache_xmalloc_1): Likewise.
12964 * reggroups.c (reggroup_new): Likewise.
12965 (_initialize_reggroup): Likewise.
12966 * registry.c (register_data_with_cleanup): Likewise.
12967 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12968 * ser-base.c (serial_ttystate): Likewise.
12969 * ser-mingw.c (make_pipe_state): Likewise.
12970 * ser-pipe.c (pipe_open): Likewise.
12971 * serial.c (serial_open): Likewise.
12972 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12973 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12974 (tui_alloc_win_info): Likewise.
12975 (tui_add_content_elements): Likewise.
12976 * tui/tui-file.c (tui_file_new): Likewise.
12977 * tui/tui-out.c (tui_out_new): Likewise.
12978 * ui-file.c (mem_file_new): Likewise.
12979 * ui-out.c (push_level): Likewise.
12980 (make_cleanup_ui_out_end): Likewise.
12981 (append_header_to_list): Likewise.
12982 (ui_out_new): Likewise.
12983 * user-regs.c (user_reg_add_builtin): Likewise.
12985 2014-01-13 Tom Tromey <tromey@redhat.com>
12987 * defs.h (XZALLOC): Remove.
12988 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12989 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12990 (get_ada_tasks_inferior_data): Likewise.
12991 * auto-load.c (get_auto_load_pspace_data): Likewise.
12992 * auxv.c (get_auxv_inferior_data): Likewise.
12993 * bfd-target.c (target_bfd_reopen): Likewise.
12994 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12995 (deprecated_insert_raw_breakpoint): Likewise.
12996 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12997 * corelow.c (core_open): Likewise.
12998 * darwin-nat.c (darwin_check_new_threads): Likewise.
12999 (darwin_attach_pid): Likewise.
13000 * dummy-frame.c (dummy_frame_push): Likewise.
13001 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13002 * dwarf2loc.c (allocate_piece_closure): Likewise.
13003 * elfread.c (elf_symfile_segments): Likewise.
13004 * eval.c (ptrmath_type_p): Likewise.
13005 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13006 * gdbtypes.c (alloc_type_arch): Likewise.
13007 (alloc_type_instance): Likewise.
13008 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13009 * inf-child.c (inf_child_can_use_agent): Likewise.
13010 * inflow.c (get_inflow_inferior_data): Likewise.
13011 * infrun.c (save_infcall_suspend_state): Likewise.
13012 * jit.c (jit_reader_load): Likewise.
13013 (get_jit_objfile_data): Likewise.
13014 (get_jit_program_space_data): Likewise.
13015 (jit_object_open_impl): Likewise.
13016 (jit_symtab_open_impl): Likewise.
13017 (jit_block_open_impl): Likewise.
13018 (jit_frame_sniffer): Likewise.
13019 * linux-fork.c (add_fork): Likewise.
13020 * maint.c (make_command_stats_cleanup): Likewise.
13021 * objfiles.c (get_objfile_pspace_data): Likewise.
13022 * opencl-lang.c (struct lval_closure): Likewise.
13023 * osdata.c (osdata_start_osdata): Likewise.
13024 * progspace.c (new_address_space): Likewise.
13025 (add_program_space): Likewise.
13026 * remote-sim.c (get_sim_inferior_data): Likewise.
13027 * sh-tdep.c (sh_gdbarch_init): Likewise.
13028 * skip.c (Ignore): Likewise.
13029 (skip_delete_command): Likewise.
13030 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13031 (library_list_start_library): Likewise.
13032 (solib_aix_current_sos): Likewise.
13033 * solib-darwin.c (get_darwin_info): Likewise.
13034 (darwin_current_sos): Likewise.
13035 * solib-dsbt.c (get_dsbt_info): Likewise.
13036 * solib-ia64-hpux.c (new_so_list): Likewise.
13037 (ia64_hpux_get_solib_linkage_addr): Likewise.
13038 * solib-spu.c (append_ocl_sos): Likewise.
13039 (spu_current_sos): Likewise.
13040 * solib-svr4.c (get_svr4_info): Likewise.
13041 (svr4_keep_data_in_core): Likewise.
13042 (library_list_start_library): Likewise.
13043 (svr4_default_sos): Likewise.
13044 (svr4_read_so_list): Likewise.
13045 * solib-target.c (library_list_start_library): Likewise.
13046 (solib_target_current_sos): Likewise.
13047 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13048 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13049 * symfile.c (default_symfile_segments): Likewise.
13050 * target-descriptions.c (tdesc_data_init): Likewise.
13051 (tdesc_create_reg): Likewise.
13052 (struct tdesc_type *): Likewise.
13053 (tdesc_create_vector): Likewise.
13054 (tdesc_set_struct_size): Likewise.
13055 (struct tdesc_type *): Likewise.
13056 (tdesc_free_feature): Likewise.
13057 (tdesc_create_feature): Likewise.
13058 * windows-nat.c (windows_add_thread): Likewise.
13059 (windows_make_so): Likewise.
13060 * xml-support.c (gdb_xml_body_text): Likewise.
13061 (gdb_xml_create_parser_and_cleanup): Likewise.
13062 (xml_process_xincludes): Likewise.
13063 * xml-syscall.c (allocate_syscalls_info): Likewise.
13064 (syscall_create_syscall_desc): Likewise.
13066 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13068 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13069 function, with code from i386_stap_parse_special_token.
13070 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13071 (i386_stap_parse_special_token): Move code to the two functions
13072 above; simplify it.
13074 2014-01-09 Pedro Alves <palves@redhat.com>
13075 Hui Zhu <hui@codesourcery.com>
13078 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13079 bp_err_string. Don't mark the location shlib_disabled if the
13080 error thrown wasn't a generic or memory error. Catch errors
13081 thrown while inserting breakpoints in overlayed code. Output
13082 error message of software breakpoints.
13083 * remote.c (remote_insert_breakpoint): If this breakpoint has
13084 target-side commands but this stub doesn't support Z0 packets,
13085 throw NOT_SUPPORTED_ERROR error.
13086 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13087 * target.h (target_insert_breakpoint): Extend comment.
13088 (target_insert_hw_breakpoint): Add comment.
13090 2014-01-08 Pedro Alves <palves@redhat.com>
13092 * remote.c (remote_add_thread): Add threads silently if starting
13094 (remote_notice_new_inferior): If in all-stop, and starting up,
13095 don't call notice_new_inferior.
13096 (get_current_thread): New function, factored out from ...
13097 (add_current_inferior_and_thread): ... this. Adjust.
13098 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13099 found any thread, then select the remote's current thread as GDB's
13100 current thread too.
13102 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13104 * NEWS: Create a new section for the next release branch.
13105 Rename the section of the current branch, now that it has
13108 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13110 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13111 * version.in: Bump version to 7.7.50.DATE-cvs.
13113 2014-01-08 Yao Qi <yao@codesourcery.com>
13115 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13116 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13117 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13119 2014-01-08 Yao Qi <yao@codesourcery.com>
13121 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13122 return value of bfd_get_filename to symbol_file_add_from_bfd.
13124 2014-01-08 Pierre Muller <muller@sourceware.org>
13127 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13128 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13129 to prim_record_mininal_symbol_and_info.
13130 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13131 in call to prim_record_minimal_symbol_and_info.
13132 (read_pe_exported_syms): Set index field of section_data.
13134 2014-01-07 Andrew Pinski <apinski@cavium.com>
13136 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13137 * features/aarch64.c: Regenerate.
13139 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13141 * target.c (return_null): Define.
13142 (update_current_target): Use it instead of return_zero for
13143 functions that return a pointer.
13145 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13147 * source.c (add_path): Fix check for duplicated paths in the previously
13150 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13152 * ada-lang.c: Remove duplicated include statements.
13153 * alphabsd-nat.c: Ditto.
13154 * amd64-darwin-tdep.c: Ditto.
13155 * amd64fbsd-nat.c: Ditto.
13156 * auto-load.c: Ditto.
13158 * breakpoint.c: Ditto.
13159 * dbxread.c: Ditto.
13160 * fork-child.c: Ditto.
13161 * gdb_usleep.c: Ditto.
13162 * i386-darwin-tdep.c: Ditto.
13163 * i386fbsd-nat.c: Ditto.
13165 * inferior.c: Ditto.
13166 * jv-lang.c: Ditto.
13167 * linux-nat.c: Ditto.
13168 * linux-tdep.c: Ditto.
13169 * m68kbsd-nat.c: Ditto.
13170 * m68klinux-nat.c: Ditto.
13171 * microblaze-tdep.c: Ditto.
13172 * mips-linux-tdep.c: Ditto.
13173 * mn10300-tdep.c: Ditto.
13174 * nto-tdep.c: Ditto.
13175 * opencl-lang.c: Ditto.
13177 * printcmd.c: Ditto.
13178 * regcache.c: Ditto.
13179 * remote-m32r-sdi.c: Ditto.
13181 * symfile.c: Ditto.
13183 * tilegx-linux-nat.c: Ditto.
13184 * tilegx-tdep.c: Ditto.
13185 * tracepoint.c: Ditto.
13187 * vaxbsd-nat.c: Ditto.
13188 * windows-nat.c: Ditto.
13189 * xtensa-tdep.c: Ditto.
13191 2014-01-07 Yao Qi <yao@codesourcery.com>
13193 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13195 2014-01-07 Yao Qi <yao@codesourcery.com>
13196 Joel Brobecker <brobecker@adacore.com>
13198 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13199 (pdc_write_regs): Likewise.
13200 (fetch_regs_kernel_thread): Likewise.
13201 (store_regs_kernel_thread): Likewise.
13203 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13205 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13206 tagged type objects to their actual type.
13208 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13210 * ada-valprint.c (print_field_values): Add "language" parameter.
13211 Update calls to print_field_values and print_variant_part.
13212 Pass new parameter "language" in call to val_print instead
13213 of "current_language". Replace call to ada_val_print by call
13215 (print_variant_part): Add "language" parameter.
13216 (ada_val_print_struct_union): Update call to print_field_values.
13218 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13220 * ada-valprint.c (ui_memcpy): Delete.
13221 (ada_print_floating): Update documentation. Add empty line
13222 between between function documentation and implementation.
13223 Delete variable "buffer". Use ui_file_xstrdup in place of
13224 ui_file_put. Minor adjustments following this change.
13226 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13228 * ada-valprint.c (ada_val_print_string): New function,
13229 extracted from ada_val_print_array.
13230 (ada_val_print_array): Replace extracted code by call
13231 to ada_val_print_string followed by a return. Move
13232 "else" branch to the function's top block.
13234 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13236 * ada-valprint.c (ada_val_print_array): Move implementation
13237 down. Rename parameter "offset" and "val" into "offset_aligned"
13238 and "original_value" respectively. Add parameter "offset".
13240 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13242 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13243 re-organizing the code. Change the "???" message printed
13244 when target type is a TYPE_CODE_UNDEF into
13245 "<ref to undefined type>".
13247 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13249 * ada-valprint.c (print_record): Delete, implementation inlined...
13250 (ada_val_print_struct_union): ... here. Remove call to
13251 ada_check_typedef in inlined implementation.
13253 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13255 * ada-valprint.c (ada_val_print_gnat_array): New function,
13256 extracted from ada_val_print_1;
13257 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13258 (ada_val_print_flt, ada_val_print_struct_union)
13259 (ada_val_print_ref): Likewise.
13260 (ada_val_print_1): Delete variables i and elttype.
13261 Replace extracted-out code by call to corresponding
13264 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13266 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13268 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13270 * ada-valprint.c (ada_val_print_1): Replace calls to
13271 ada_val_print_1 by calls to val_print.
13273 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13275 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13276 Update calls to self accordingly. Replace calls to c_val_print
13277 by calls to val_print.
13279 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13281 * ada-valprint.c (print_record): Delete declaration.
13282 (adjust_type_signedness, ada_val_print_1): Likewise.
13283 (ada_val_print): Move function implementation down.
13284 (print_variant_part, print_field_values, print_record):
13285 Move function implementation up.
13287 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13289 * python/py-type.c (typy_get_name): New function.
13290 (type_object_getset): Add entry for attribute "name".
13291 * NEWS: Add entry mentioning this new attribute.
13293 2014-01-07 Yao Qi <yao@codesourcery.com>
13295 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13298 2014-01-07 Yao Qi <yao@codesourcery.com>
13300 * gnu-nat.c (info_port_rights): Add qualifier const to
13303 2014-01-07 Yao Qi <yao@codesourcery.com>
13305 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13307 2014-01-07 Yao Qi <yao@codesourcery.com>
13309 * gnu-nat.c (make_inf) Update declaration.
13310 (make_inf): Make it static.
13311 (inf_set_traced): Likewise.
13312 (inf_port_to_thread, inf_task_died_status): Likewise.
13314 2014-01-07 Yao Qi <yao@codesourcery.com>
13316 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13318 2014-01-07 Yao Qi <yao@codesourcery.com>
13320 * gnu-nat.c (_initialize_gnu_nat): Declare.
13322 2014-01-07 Yao Qi <yao@codesourcery.com>
13324 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13326 (struct gdbarch_info) <byte_order>: Change type to
13328 <byte_order_for_code>: Likewise.
13329 * gdbarch.c, gdbarch.h: Regenerated.
13331 2014-01-06 Sasha Smundak <asmundak@google.com>
13333 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13335 2014-01-06 Tom Tromey <tromey@redhat.com>
13337 * doublest.c (convert_doublest_to_floatformat): Use const, not
13339 * somread.c (som_symtab_read): Likewise.
13341 2014-01-07 Hui Zhu <hui@codesourcery.com>
13343 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13344 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13345 (gdb_bfd_fopen): Ditto.
13346 (gdb_bfd_openr): Ditto.
13347 (gdb_bfd_openw): Ditto.
13348 (gdb_bfd_openr_iovec): Ditto.
13349 (gdb_bfd_fdopenr): Ditto.
13350 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13351 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13353 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13355 * symfile-mem.c (symbol_file_add_from_memory): Removed
13356 gdb_bfd_stash_filename.
13358 2014-01-03 Doug Evans <dje@google.com>
13360 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13363 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13365 Update year range in copyright notice of all files.
13367 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13369 * top.c (print_gdb_version): Set copyright year to 2014.
13371 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13373 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13375 For older changes see ChangeLog-2013.
13381 version-control: never