1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
4 (mips_linux_iterate_over_regset_sections): New.
5 (mips_linux_init_abi): Adjust gdbarch initialization.
6 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
7 (mips64obsd_iterate_over_regset_sections): New.
8 (mips64obsd_init_abi): Adjust.
9 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
10 (mipsnbsd_iterate_over_regset_sections): New.
11 (mipsnbsd_init_abi): Adjust.
13 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
15 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
16 (m88k_iterate_over_regset_sections): New.
17 (m88k_gdbarch_init): Adjust gdbarch initialization.
19 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
21 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
22 (ia64_linux_iterate_over_regset_sections): New.
23 (ia64_linux_init_abi): Adjust gdbarch initialization.
25 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
27 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
28 (m68kbsd_iterate_over_regset_sections): New.
29 (m68kbsd_init_abi): Adjust gdbarch initialization.
30 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
31 (m68k_linux_iterate_over_regset_sections): New.
32 (m68k_linux_init_abi): Adjust gdbarch initialization.
34 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
36 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
37 (m32r_linux_regset_from_core_section): Remove.
38 (m32r_linux_iterate_over_regset_sections): New.
39 (m32r_linux_init_abi): Adjust gdbarch initialization.
41 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
43 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
44 (amd64obsd_iterate_over_regset_sections): New.
45 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
46 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
48 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
49 regset_from_core_section initialization.
50 * i386-tdep.c (i386_regset_from_core_section): Remove.
51 (i386_iterate_over_regset_sections): New.
52 (i386_gdbarch_init): Adjust gdbarch initialization.
53 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
54 (i386_iterate_over_regset_sections): New prototype.
55 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
57 (i386obsd_aout_iterate_over_regset_sections): New.
58 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
59 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
61 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
62 (amd64fbsd_init_abi): Call fbsd_init_abi.
63 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
64 (i386fbsd4_init_abi): Call fbsd_init_abi.
65 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
66 target method 'make_corefile_notes'.
67 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
69 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
71 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
72 (hppa_hpux_iterate_over_regset_sections): New.
73 (hppa_hpux_init_abi): Adjust gdbarch initialization.
74 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
75 (hppa_linux_iterate_over_regset_sections): New.
76 (hppa_linux_init_abi): Adjust.
77 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
78 (hppanbsd_iterate_over_regset_sections): New.
79 (hppanbsd_init_abi): Adjust.
80 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
81 (hppaobsd_iterate_over_regset_sections): New.
82 (hppaobsd_init_abi): Adjust.
84 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
86 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
87 (frv_linux_iterate_over_regset_sections): New.
88 (frv_linux_init_abi): Adjust gdbarch initialization.
90 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
92 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
93 (armbsd_iterate_over_regset_sections): New prototype.
94 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
95 (armbsd_iterate_over_regset_sections): New.
96 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
99 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
101 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
102 (alpha_linux_iterate_over_regset_sections): New.
103 (alpha_linux_init_abi): Adjust gdbarch initialization.
104 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
106 (alphanbsd_iterate_over_regset_sections): New prototype.
108 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
110 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
112 (aarch64_linux_iterate_over_regset_sections): New.
113 (aarch64_linux_init_abi): Adjust gdbarch initialization.
115 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
117 * fbsd-tdep.c: New file.
118 * fbsd-tdep.h: New file.
119 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
120 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
121 (ALLDEPFILES): Add fbsd-tdep.c.
123 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
125 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
127 * gdbarch.h: Regenerate.
128 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
130 (get_core_register_section): Add parameter 'regset' and use it, if
131 set. Add parameter 'min_size' and verify the bfd section size
133 (get_core_registers_cb): Add parameter 'regset' and pass it to
134 get_core_register section. For the "standard" register sections
135 ".reg" and ".reg2", set an appropriate default for human_name.
136 (get_core_registers): Don't abort when the gdbarch has an iterator
137 but no regset_from_core_section. Add NULL/0 for parameters
138 'regset'/'min_size' in calls to get_core_register_section.
139 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
140 'regset' and use it instead of calling the
141 regset_from_core_section gdbarch method.
142 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
143 * i386-tdep.c (i386_supply_xstateregset)
144 (i386_collect_xstateregset, i386_xstateregset): Moved to
146 (i386_regset_from_core_section): Drop handling for .reg-xfp and
148 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
149 core file support only if the regset iterator hasn't been set.
150 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
151 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
152 Moved from i386-tdep.c and renamed to *_linux*.
153 (i386_linux_iterate_over_regset_sections): Add regset parameter to
154 each callback invocation. Allow any .reg-xstate size when reading
156 * amd64-tdep.c (amd64_supply_xstateregset)
157 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
159 (amd64_regset_from_core_section): Remove.
160 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
161 install an amd64-specific regset_from_core_section gdbarch method.
162 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
163 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
164 Moved from amd64-tdep.c and renamed to *_linux*.
165 (amd64_linux_iterate_over_regset_sections): Add regset parameter
166 to each callback invocation. Allow any .reg-xstate size when
167 reading from a core file.
168 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
169 (arm_linux_iterate_over_regset_sections): Add regset parameter to
170 each callback invocation.
171 (arm_linux_init_abi): No longer set the regset_from_core_section
173 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
174 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
175 each callback invocation.
176 (ppc_linux_init_abi): No longer set the regset_from_core_section
178 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
179 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
180 (s390_regset_from_core_section): Remove.
181 (s390_iterate_over_regset_sections): Add regset parameter to each
183 (s390_gdbarch_init): No longer set the regset_from_core_section
184 gdbarch method. Drop initialization of deleted tdep fields.
186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
188 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
189 (amd64_linux_iterate_over_regset_sections): New.
190 (amd64_linux_init_abi_common): Don't install the regset section
191 list, but the new iterator in gdbarch.
192 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
193 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
194 (arm_linux_iterate_over_regset_sections): ...here. New function.
195 (arm_linux_init_abi): Set iterator instead of section list.
196 * corelow.c (get_core_registers_cb): New function, logic moved
198 (get_core_registers): ...loop body here. Use new iterator method
199 instead of walking through the regset section list.
200 * gdbarch.sh: Remove 'core_regset_sections'. New method
201 'iterate_over_regset_sections'. New typedef
202 'iterate_over_regset_sections_cb'.
203 * gdbarch.c: Regenerate.
204 * gdbarch.h: Likewise.
205 * i386-linux-tdep.c (i386_linux_regset_sections)
206 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
208 (i386_linux_iterate_over_regset_sections): New.
209 (i386_linux_init_abi): Don't choose a regset section list, but
210 install new iterator in gdbarch.
211 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
212 (linux_collect_regset_section_cb): New function, logic moved
214 (linux_collect_thread_registers): ...loop body here. Use iterator
215 method instead of walking through list.
216 (linux_make_corefile_notes_1): Check for presence of iterator
217 method instead of regset section list.
218 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
219 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
220 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
221 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
222 (ppc_linux_iterate_over_regset_sections): ...here. New function.
223 (ppc_linux_init_abi): Don't choose from above regset section
224 lists, but install new iterator in gdbarch.
225 * regset.h (struct core_regset_section): Remove.
226 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
227 have_linux_v1, have_linux_v2, and have_tdb.
228 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
229 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
230 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
231 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
232 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
233 (s390_iterate_over_regset_sections): ...here. New function. Use
235 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
236 regset section lists, but install new iterator.
238 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
240 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
242 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
244 * progspace.c (print_program_space): Don't prune program spaces
245 before printing them.
247 2014-09-25 Pedro Alves <palves@redhat.com>
249 * infrun.c (user_visible_resume_ptid): Don't check
250 singlestep_breakpoints_inserted_p.
252 2014-09-25 Pedro Alves <palves@redhat.com>
254 * breakpoint.c (should_be_inserted): Add debug output.
256 2014-09-25 Pedro Alves <palves@redhat.com>
258 * infrun.c (stepping_past_instruction_at)
259 (clear_exit_convenience_vars): Point at infrun.h instead of
261 (handle_signal_stop): Fix typo.
263 2014-09-24 Yao Qi <yao@codesourcery.com>
265 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
268 2014-09-22 Gary Benson <gbenson@redhat.com>
270 * target.c (target_stop): Updated comment.
272 2014-09-22 Gary Benson <gbenson@redhat.com>
274 * target/target.h (target_stop_ptid): Renamed as...
275 (target_stop_and_wait): New function. Updated comment.
277 (target_continue_ptid): Renamed as...
278 (target_continue_no_signal): New function. Updated comment.
281 2014-09-22 Pedro Alves <palves@redhat.com>
283 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
285 * breakpoint.c (enum ugll_insert_mode): New enum.
286 (always_inserted_mode): Now a plain boolean.
287 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
288 (breakpoints_always_inserted_mode): Delete.
289 (breakpoints_should_be_inserted_now): New function.
290 (insert_breakpoints): Pass UGLL_INSERT to
291 update_global_location_list instead of calling
292 insert_breakpoint_locations manually.
293 (create_solib_event_breakpoint_1): New, factored out from ...
294 (create_solib_event_breakpoint): ... this.
295 (create_and_insert_solib_event_breakpoint): Use
296 create_solib_event_breakpoint_1 instead of calling
297 insert_breakpoint_locations manually.
298 (update_global_location_list): Change parameter type from boolean
299 to enum ugll_insert_mode. All callers adjusted. Adjust to use
300 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
301 (update_global_location_list_nothrow): Change parameter type from
302 boolean to enum ugll_insert_mode.
303 (_initialize_breakpoint): "breakpoint always-inserted" option is
304 now a boolean command. Update help text.
305 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
306 (breakpoints_should_be_inserted_now): New declaration.
307 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
308 Remove breakpoints_always_inserted_mode check.
309 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
310 * remote.c (remote_start_remote): Likewise.
312 2014-09-22 Pedro Alves <palves@redhat.com>
314 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
315 (insert_breakpoints): Don't call insert_breakpoint_locations here.
316 Instead, pass UGLL_INSERT to update_global_location_list.
317 (update_global_location_list): Change parameter type from boolean
318 to enum ugll_insert_mode. All callers adjusted. Adjust to use
319 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
320 (create_solib_event_breakpoint_1): New, factored out from ...
321 (create_solib_event_breakpoint): ... this.
322 (create_and_insert_solib_event_breakpoint): Use
323 create_solib_event_breakpoint_1 instead of calling
324 insert_breakpoint_locations manually.
325 (update_global_location_list): Handle UGLL_INSERT.
327 2014-09-22 Pedro Alves <palves@redhat.com>
329 * breakpoint.c (enum ugll_insert_mode): New enum.
330 (update_global_location_list)
331 (update_global_location_list_nothrow): Change parameter type from
332 boolean to enum ugll_insert_mode. All callers adjusted.
334 2014-09-19 Joel Brobecker <brobecker@adacore.com>
336 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
337 SystemTap support in GDB.
339 2014-09-19 Don Breazeal <donb@codesourcery.com>
341 * linux-nat.c (linux_handle_extended_wait): Call
342 linux_ptrace_get_extended_event.
343 (wait_lwp): Call linux_is_extended_waitstatus.
344 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
345 and linux_is_extended_waitstatus.
346 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
347 linux_ptrace_get_extended_event.
348 (linux_ptrace_get_extended_event): New function.
349 (linux_is_extended_waitstatus): New function.
350 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
351 (linux_is_extended_waitstatus): New declarations.
353 2014-09-19 Yao Qi <yao@codesourcery.com>
355 * dwarf2read.c (dwarf_decode_lines): Update declaration.
356 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
357 comments. Callers update.
358 (dwarf_decode_lines): Likewise.
359 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
360 comments. Skip the line table if 'lowpc' is greater than
361 'address'. Don't check
362 dwarf2_per_objfile->has_section_at_zero.
364 2014-09-18 Doug Evans <dje@google.com>
366 * NEWS: Mention new "producer" attribute of gdb.Symtab.
367 * python/py-symtab.c (stpy_get_producer): New function.
368 (symtab_object_getset): Add "producer" attribute.
370 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
373 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
374 (do_captured_read_memory_integer): Remove.
375 (safe_read_memory_integer): Use target_read_memory directly instead
376 of catching errors in do_captured_read_memory_integer.
378 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
380 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
383 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
385 * objc-lang.c (find_implementation_from_class): Remove dead code.
387 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
390 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
391 "fprintf_unfiltered (gdb_stdlog...)".
393 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
396 * breakpoint.h (struct watchpoint): New fields val_bitpos and
398 * breakpoint.c (watch_command_1): Use these fields to retain
399 bitfield information.
400 (extract_bitfield_from_watchpoint_value): New function.
401 (watchpoint_check): Use it.
402 (update_watchpoint): Use it. Optimize the address and length of a
403 HW watchpoint pointing to a bitfield.
404 * value.h (unpack_value_bitfield): New prototype.
405 * value.c (unpack_value_bitfield): Make extern.
407 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
409 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
411 * gnu-nat.c (inf_threads): New function.
412 * gnu-nat.h (inf_threads_ftype): New typedef.
413 (inf_threads): New declaration.
414 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
415 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
416 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
417 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
418 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
419 (i386_gnu_dr_get_control): New functions.
420 (reg_addr): New structure.
421 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
422 i386 debugging register hooks.
423 * NEWS: Mention this.
425 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
427 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
428 vector data transfer instructions.
429 (arm_record_coproc_data_proc): Updated.
431 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
433 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
434 arm_record_exreg_ld_st_insn.
435 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
438 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
440 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
441 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
442 processing instructions.
444 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
446 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
447 for advance SIMD struct ld/st insn.
448 (thumb2_record_decode_insn_handler): Replace stub handler with
449 thumb2_record_asimd_struct_ld_st.
451 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
453 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
454 for asimd, vfp and coprocessor insns.
455 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
456 and coprocessor insns.
457 (thumb2_record_coproc_insn): New function.
458 (thumb2_record_decode_insn_handler): Update coprocessor insns record
460 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
463 2014-09-13 Doug Evans <xdje42@gmail.com>
465 * NEWS: Mention new "queue-signal" command.
466 * infcmd.c (queue_signal_command): New function.
467 (_initialize_infcmd): Add new queue-signal command.
469 2014-09-13 Doug Evans <xdje42@gmail.com>
471 * linux-nat.c (wait_lwp): Add debugging printf.
472 (linux_nat_wait_1): Ditto.
474 2014-09-12 Pedro Alves <palves@redhat.com>
476 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
477 (create_and_insert_solib_event_breakpoint): New functions.
478 * breakpoint.h (create_and_insert_solib_event_breakpoint)
479 (remove_solib_event_breakpoints_at_next_stop): New declarations.
480 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
481 (remove_dbx_link_breakpoint): Delete function.
482 (insert_dbx_link_bpt_in_file): Use
483 create_and_insert_solib_event_breakpoint instead of
484 deprecated_insert_raw_breakpoint.
485 (procfs_wait): Don't check whether we hit __dbx_link here.
486 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
488 * solib-irix.c (base_breakpoint): Delete global.
489 (disable_break): Delete function.
490 (enable_break): Use create_solib_event_breakpoint
491 instead of deprecated_insert_raw_breakpoint.
492 (irix_solib_handle_event): New function.
493 (irix_solib_create_inferior_hook): Don't run the target or disable
494 the mapping-complete breakpoint here.
495 (_initialize_irix_solib): Install irix_solib_handle_event as
496 so_ops->handle_event hook.
498 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
499 Ulrich Weigand <uweigand@de.ibm.com>
502 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
503 instead of read_memory_unsigned_integer.
505 2014-09-12 Gary Benson <gbenson@redhat.com>
507 * nat/linux-waitpid.c: Include common-defs.h.
508 [GDBSERVER]: Add FIXME comment.
509 [!GDBSERVER]: Don't include defs.h or signal.h.
510 (linux_debug) [!GDBSERVER]: Remove empty block.
512 2014-09-12 Gary Benson <gbenson@redhat.com>
514 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
515 Don't include defs.h or server.h.
517 2014-09-12 Gary Benson <gbenson@redhat.com>
519 * nat/linux-btrace.c: Include common-defs.h.
520 Don't include defs.h, server.h or gdbthread.h.
521 * nat/linux-btrace.h (struct target_ops): New forward declaration.
523 2014-09-12 Gary Benson <gbenson@redhat.com>
525 * common/agent.c: Include common-defs.h.
526 Don't include defs.h or server.h.
527 * common/buffer.c: Likewise.
528 * common/common-debug.c: Likewise.
529 * common/common-utils.c: Likewise.
530 * common/errors.c: Likewise.
531 * common/filestuff.c: Likewise.
532 * common/format.c: Likewise.
533 * common/gdb_vecs.c: Likewise.
534 * common/print-utils.c: Likewise.
535 * common/ptid.c: Likewise.
536 * common/rsp-low.c: Likewise.
537 * common/signals.c: Likewise.
538 * common/vec.c: Likewise.
539 * common/xml-utils.c: Likewise.
540 * nat/linux-osdata.c: Likewise.
541 * nat/linux-procfs.c: Likewise.
542 * nat/linux-ptrace.c: Likewise.
543 * nat/mips-linux-watch.c: Likewise.
544 * target/waitstatus.c: Likewise.
546 2014-09-12 Tom Tromey <tromey@redhat.com>
547 Gary Benson <gbenson@redhat.com>
549 * common/common-regcache.h: New file.
550 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
551 * regcache.h: Include common-regcache.h.
552 (regcache_read_pc): Don't declare.
553 * regcache.c (get_thread_regcache_for_ptid): New function.
554 * nat/linux-btrace.c: Don't include regcache.h.
555 Include common-regcache.h.
556 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
558 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
560 * regcache.h (struct regset): Declare.
562 2014-09-11 Pedro Alves <palves@redhat.com>
565 * main.c: Include "infrun.h".
566 (catch_command_errors, catch_command_errors_const): Wait for the
567 foreground command to complete.
568 * top.c (maybe_wait_sync_command_done): New function, factored out
570 (maybe_wait_sync_command_done): ... here.
571 * top.h (maybe_wait_sync_command_done): New declaration.
573 2014-09-11 Tom Tromey <tromey@redhat.com>
574 Gary Benson <gbenson@redhat.com>
576 * common/symbol.h: New file.
577 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
578 * minsyms.c (find_minimal_symbol_address): New function.
579 * common/agent.c: Include common/symbol.h.
580 [!GDBSERVER]: Don't include objfiles.h.
581 (agent_look_up_symbols): Use find_minimal_symbol_address.
583 2014-09-11 Gary Benson <gbenson@redhat.com>
585 * target/target.h (target_stop_ptid, target_continue_ptid):
587 * target.c (target_stop_ptid, target_continue_ptid): New
589 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
590 (agent_run_command): Always use target_stop_ptid and
591 target_continue_ptid.
593 2014-09-11 Tom Tromey <tromey@redhat.com>
594 Gary Benson <gbenson@redhat.com>
596 * target/target.h: New file.
597 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
598 * target.h: Include target/target.h.
599 (target_read_memory, target_write_memory): Don't declare.
600 * target.c (target_read_uint32): New function.
601 * common/agent.c: Include target/target.h.
602 [!GDBSERVER]: Don't include target.h.
603 (helper_thread_id): Type changed to uint32_t.
604 (agent_get_helper_thread_id): Use target_read_uint32.
605 (agent_run_command): Always use target_read_memory and
607 (agent_capability): Type changed to uint32_t.
608 (agent_capability_check): Use target_read_uint32.
610 2014-09-11 Gary Benson <gbenson@redhat.com>
612 * common/common-debug.h (show_debug_regs): Declare.
613 * common/common-debug.c (show_debug_regs): Define.
614 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
615 all uses with show_debug_regs. Replace all uses that considered
616 debug_hw_points as a multi-value integer with straight boolean
618 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
619 with show_debug_regs.
620 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
621 all uses with show_debug_regs.
622 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
623 uses with show_debug_regs.
625 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
627 * findvar.c (address_from_register): Handle targets requiring
628 a special conversion routine even for plain pointer types.
630 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
632 * rs6000-nat.c (exec_one_dummy_insn): Remove.
633 (store_register): Do not call exec_one_dummy_insn.
635 2014-09-10 Joel Brobecker <brobecker@adacore.com>
637 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
638 dereference it first. Use value_enclosing_type instead of
640 (ada_array_length): Likewise.
642 2014-09-10 Joel Brobecker <brobecker@adacore.com>
644 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
645 Adjust function implementation and documentation accordingly.
646 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
647 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
648 Update call to ada_value_ptr_subscript.
650 2014-09-10 Joel Brobecker <brobecker@adacore.com>
652 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
653 instead of VAL's type.
655 2014-09-10 Joel Brobecker <brobecker@adacore.com>
657 * amd64-linux-nat.c: Add <sys/uio.h> #include.
659 2014-09-09 Doug Evans <xdje42@gmail.com>
662 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
663 last parameter to pkg-config, not first.
664 * configure.ac: Pass --with-guile provided pkg-config path to
665 GDB_GUILE_PROGRAM_NAMES.
666 * configure: Regenerate.
668 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
670 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
673 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
675 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
676 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
677 the list of sections determining GDB_OSABI_IRIX.
679 2014-09-09 James Hogan <james.hogan@imgtec.com>
681 * MAINTAINERS (Write After Approval): Add "James Hogan".
683 2014-09-09 James Hogan <james.hogan@imgtec.com>
685 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
687 2014-09-09 Joel Brobecker <brobecker@adacore.com>
689 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
691 2014-09-08 Doug Evans <xdje42@gmail.com>
694 * guile.c: #include <signal.h>.
695 (_initialize_guile): Block SIGCHLD while initializing Guile.
697 Replaces the following, which is reverted.
699 2014-07-26 Doug Evans <xdje42@gmail.com>
702 * configure.ac: Add check for header gc/gc.h.
703 Add check for function setenv.
704 * configure: Regenerate.
705 * config.in: Regenerate.
706 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
708 2014-09-08 Doug Evans <xdje42@gmail.com>
710 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
711 with named constant. Fix style of pointer comparison.
712 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
714 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
717 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
718 decide whether we display the command on "show user".
719 * cli/cli-script.c (show_user_1): Only verify cmdlines after
720 printing command name.
721 * cli/cli-decode.h (cli_user_command_p): Declare new function.
722 * cli/cli-decode.c (cli_user_command_p): Create helper function
723 to verify whether cmd_list_element is a user-defined command.
725 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
728 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
729 Fix goto out of TRY_CATCH.
731 2014-09-06 Doug Evans <xdje42@gmail.com>
732 Tom Tromey <tromey@redhat.com>
735 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
736 $_any_caller_matches.
737 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
738 * python/lib/gdb/function/caller_is.py: New file.
740 2014-09-06 Doug Evans <xdje42@gmail.com>
742 * infcmd.c (program_info): Fix typo.
744 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
747 * stap-probe.c (stap_parse_single_operand): Delete unused variable
748 'number'. New variable 'has_digit'. Rewrite code to deal with
749 subexpressions on SDT probes.
751 2014-09-04 Pedro Alves <palves@redhat.com>
753 * c-exp.y (parse_number): Skip handling base-switching prefixes if
754 the input is only one character long.
756 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
759 * f-valprint.c (f_val_print): Specify the correct print option to
760 use when printing integer values.
762 2014-09-04 Gary Benson <gbenson@redhat.com>
764 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
765 Remove code to cope with LWPs wrapped as PIDs.
766 Add assertions to ensure no wrapped LWPs are passed.
768 2014-09-04 Pedro Alves <palves@redhat.com>
770 * value.c (value_ranges_copy_adjusted): New function, factored out
772 (value_contents_copy_raw): ... here.
773 (unpack_value_bits_as_long_1): Rename back to ...
774 (unpack_bits_as_long): ... this. Remove 'original_value' and
775 'result' parameters. Change return type to LONGEST.
776 (unpack_value_bits_as_long): Delete.
777 (unpack_value_field_as_long_1): Delete.
778 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
779 (unpack_value_bitfield): New function.
780 (value_field_bitfield): Reimplement using unpack_value_bitfield.
781 (value_fetch_lazy): Use unpack_value_bitfield.
782 * value.h (unpack_value_bits_as_long): Delete declaration.
784 2014-09-03 Sasha Smundak <asmundak@google.com>
786 * python/py-frame.c (frapy_read_register): New function.
788 2014-09-03 James Hogan <james.hogan@imgtec.com>
790 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
791 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
793 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
796 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
798 (add_cmd): Set "completer_handle_brkchars" to NULL.
799 * cli/cli-decode.h (struct cmd_list_element)
800 <completer_handle_brkchars>: New field.
801 * command.h (completer_ftype_void): New typedef.
802 (set_cmd_completer_handle_brkchars): New prototype.
803 * completer.c (set_gdb_completion_word_break_characters): New
805 (complete_line_internal): Call "completer_handle_brkchars"
806 callback from command.
807 * completer.h: Include "command.h".
808 (set_gdb_completion_word_break_characters): New prototype.
809 * python/py-cmd.c (cmdpy_completer_helper): New function.
810 (cmdpy_completer_handle_brkchars): New function.
811 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
812 (cmdpy_init): Set completer_handle_brkchars to
813 cmdpy_completer_handle_brkchars.
815 2014-09-03 Gary Benson <gbenson@redhat.com>
817 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
818 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
819 Loop conditions changed to equivalent form.
820 (struct x86_debug_reg_state): Updated dr_ref_count comment.
821 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
822 ALL_DEBUG_ADDRESS_REGISTERS.
824 2014-09-03 Joel Brobecker <brobecker@adacore.com>
826 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
829 2014-09-02 Doug Evans <dje@google.com>
831 * typeprint.c (find_global_typedef): Fix comment.
833 2014-09-02 Gary Benson <gbenson@redhat.com>
835 * i386-nat.h: Renamed as...
836 * x86-nat.h: New file. All type, function and variable name
837 prefixes changed from "i386_" to "x86_". All references updated.
838 * i386-nat.c: Renamed as...
839 * x86-nat.c: New file. All type, function and variable name
840 prefixes changed from "i386_" to "x86_". All references updated.
841 * common/i386-xstate.h: Renamed as...
842 * common/x86-xstate.h: New file. All type, function and variable
843 name prefixes changed from "i386_" to "x86_". All references
845 * nat/i386-cpuid.h: Renamed as...
846 * nat/x86-cpuid.h: New file. All type, function and variable name
847 prefixes changed from "i386_" to "x86_". All references updated.
848 * nat/i386-gcc-cpuid.h: Renamed as...
849 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
850 name prefixes changed from "i386_" to "x86_". All references
852 * nat/i386-dregs.h: Renamed as...
853 * nat/x86-dregs.h: New file. All type, function and variable name
854 prefixes changed from "i386_" to "x86_". All references updated.
855 * nat/i386-dregs.c: Renamed as...
856 * nat/x86-dregs.c: New file. All type, function and variable name
857 prefixes changed from "i386_" to "x86_". All references updated.
859 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
861 * varobj.c (_initialize_varobj): Move to the end of file.
863 2014-08-29 Gary Benson <gbenson@redhat.com>
865 * common/common-exceptions.h: New file.
866 * common/common-exceptions.c: Likewise.
867 * Makefile.in (SFILES): Add common/common-exceptions.c.
868 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
869 (COMMON_OBS): Add common-exceptions.o.
870 (common-exceptions.o): New rule.
871 * exceptions.h (common-exceptions.h): Include.
872 (gdb_setjmp.h): Do not include.
873 (return_reason): Moved to common-exceptions.h.
874 (enum return_reason): Likewise.
875 (RETURN_MASK): Likewise.
876 (typedef return_mask): Likewise.
877 (enum errors): Likewise.
878 (struct gdb_exception): Likewise.
879 (exceptions_state_mc_init): Likewise.
880 (exceptions_state_mc_action_iter): Likewise.
881 (exceptions_state_mc_action_iter_1): Likewise.
882 (TRY_CATCH): Likewise.
883 (throw_exception): Likewise.
884 (throw_verror): Likewise.
885 (throw_vquit): Likewise.
886 (throw_error): Likewise.
887 (throw_quit): Likewise.
888 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
889 (enum catcher_action): Likewise.
890 (struct catcher): Likewise.
891 (current_catcher): Likewise.
892 (catcher_list_size): Likewise.
893 (exceptions_state_mc_init): Likewise.
894 (catcher_pop): Likewise.
895 (exceptions_state_mc): Likewise.
896 (exceptions_state_mc_action_iter): Likewise.
897 (exceptions_state_mc_action_iter_1): Likewise.
898 (throw_exception): Likewise.
899 (exception_messages): Likewise.
900 (exception_messages_size): Likewise.
901 (throw_it): Likewise.
902 (throw_verror): Likewise.
903 (throw_vquit): Likewise.
904 (throw_error): Likewise.
905 (throw_quit): Likewise.
906 (prepare_to_throw_exception): New function.
908 2014-08-29 Gary Benson <gbenson@redhat.com>
910 * common/gdb_setjmp.h: New file.
911 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
912 * configure.ac: Move sigsetjmp check...
913 * common/common.m4: ...here.
914 * configure: Regenerate.
915 * cp-support.c (SIGJMP_BUF): Delete.
916 (SIGSETJMP): Likewise.
917 (SIGLONGJMP): Likewise.
918 * exceptions.h (gdb_setjmp.h): Include.
919 (setjmp.h): Do not include.
920 (EXCEPTIONS_SIGJMP_BUF): Delete.
921 (EXCEPTIONS_SIGSETJMP): Likewise.
922 (EXCEPTIONS_SIGLONGJMP): Likewise.
923 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
925 * exceptions.c: Likewise.
927 2014-08-29 Gary Benson <gbenson@redhat.com>
929 * cleanups.h: Moved to...
930 * common/cleanups.h: New file.
931 * cleanups.c: Moved to...
932 * common/cleanups.c: New file. Include common-defs.h and
933 cleanups.h. Do not include defs.h.
934 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
935 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
936 (cleanups.o): New rule.
938 2014-08-29 Gary Benson <gbenson@redhat.com>
940 * common/errors.h (internal_warning): New declaration.
941 (internal_vwarning): Likewise.
942 * common/errors.c (internal_warning): New function.
943 * utils.h (internal_warning): Don't declare.
944 (internal_vwarning): Likewise.
945 * utils.c (internal_warning): Removed.
947 2014-08-29 Gary Benson <gbenson@redhat.com>
949 * main.c (captured_main): Use warning during startup.
950 Prefix startup warning messages with command name.
952 2014-08-29 Gary Benson <gbenson@redhat.com>
954 * main.c (captured_main): Handle usage errors with error.
956 2014-08-29 Gary Benson <gbenson@redhat.com>
958 * go32-nat.c (go32_create_inferior): Replace a fprintf/
959 exit pair with a call to error. Wrap the message with _().
961 2014-08-29 Gary Benson <gbenson@redhat.com>
963 * main.c (captured_main): Replace a fprintf/exit
964 pair with a call to error. Wrap the message with _().
966 2014-08-29 Gary Benson <gbenson@redhat.com>
968 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
969 pairs with calls to error. Wrap the message with _().
971 2014-08-29 Gary Benson <gbenson@redhat.com>
973 * utils.c (vwarning): Protect calls to target_terminal_ours
976 2014-08-29 Gary Benson <gbenson@redhat.com>
978 * exceptions.c (print_flush): Protect calls to
979 target_terminal_ours and wrap_here.
981 2014-08-29 Gary Benson <gbenson@redhat.com>
983 * utils.h (filtered_printing_initialized): New declaration.
984 * utils.c (abort_with_message): New function.
985 (internal_vproblem): Use abort_with_message for first level
986 recursive internal problems, and if gdb_stderr is not set up.
987 Protect calls to target_terminal_ours, begin_line and query.
989 2014-08-28 Doug Evans <dje@google.com>
991 * symtab.c (in_prologue): Move definition to better spot.
992 (skip_prologue_using_sal): Ditto.
994 2014-08-28 Doug Evans <dje@google.com>
996 * symtab.c (find_function_start_sal): Move definition to better spot.
998 2014-08-28 Yao Qi <yao@codesourcery.com>
1000 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1001 found_stack_adjust in forward scan. Remove condition check
1002 on found_stack_adjust which is always true. Indent the code.
1004 2014-08-28 Yao Qi <yao@codesourcery.com>
1006 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1007 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1008 (dwarf_decode_lines): Remove argument
1009 want_line_info. Remove condition check on want_line_info.
1012 2014-08-27 Doug Evans <dje@google.com>
1014 * dwarf2read.c (dwarf_record_line): Fix typo.
1016 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1018 * target.h (struct target_ops::to_terminal_save_ours): Remove
1020 (target_terminal_save_ours): Remove macro.
1021 * target-delegates.c: Regenerate.
1022 * inf-child.c (inf_child_target): Don't set the nonexistent
1023 field to_terminal_save_ours.
1024 * inferior.h (child_terminal_save_ours): Remove declaration.
1025 * terminal.h (gdb_save_tty_state): New declaration.
1026 * inflow.c (child_terminal_save_ours): Rename to ...
1027 (gdb_save_tty_state): ... this.
1028 * tui/tui.c: Include terminal.h.
1029 (tui_enable): Use gdb_save_tty_state instead of
1030 target_terminal_save_ours.
1031 (tui_disable): Likewise.
1033 2014-08-25 Doug Evans <dje@google.com>
1035 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1036 Pass NULL instead of 0 for context pointer.
1038 2014-08-25 Yao Qi <yao@codesourcery.com>
1040 * dwarf2read.c: Fix grammatical error.
1042 2014-08-24 Yao Qi <yao@codesourcery.com>
1044 * dwarf2read.c (scan_partial_symbols): Update comments.
1045 Rename argument 'need_pc' with 'set_addrmap'.
1046 (add_partial_namespace): Rename argument 'need_pc' with
1048 (add_partial_module): Likewise.
1049 (add_partial_subprogram): Likewise. Update comments.
1050 (dwarf2_name): Fix typo.
1052 2014-08-22 Doug Evans <dje@google.com>
1055 * dwarf2read.c (dwarf_record_line_p): New function.
1056 (dwarf_decode_lines_1): Ignore subsequent line number entries
1057 for the same line if any entry had a non-zero discriminator.
1059 2014-08-22 Doug Evans <dje@google.com>
1061 * buildsym.h (record_line_ftype): New typedef.
1062 (record_line): Use it.
1063 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1064 (dwarf_decode_lines_1): Call them.
1066 2014-08-22 Yao Qi <yao@codesourcery.com>
1068 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1069 (ctf_end): Remove code.
1071 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1073 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1074 (linux_make_corefile_notes): call update_thread_list, protected against
1077 2014-08-21 Pedro Alves <palves@redhat.com>
1079 * infcmd.c (attach_command): Remove comment.
1081 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1083 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1084 unsigned LONGEST to ULONGEST.
1086 2014-08-20 Pedro Alves <palves@redhat.com>
1088 * Makefile.in (check-read1): New rule.
1090 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1092 * value.c (value_from_contents_and_address): Strip resolved_type's
1093 typedef layers before checking its TYPE_DATA_LOCATION.
1095 2014-08-20 Pedro Alves <palves@redhat.com>
1097 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1099 2014-08-20 Yao Qi <yao@codesourcery.com>
1101 * amd64-tdep.c (amd64_classify): Add a blank line after the
1102 example. Move "*/" to a new line.
1103 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1104 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1105 * dwarf2read.c (psymtab_include_file_name): Likewise.
1107 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1108 Pedro Alves <palves@redhat.com>
1112 * ada-lang.c (coerce_unspec_val_to_type): Use
1113 value_contents_copy_raw.
1114 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1115 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1116 * cp-valprint.c (cp_print_value_fields): Let the common printing
1117 code handle optimized out values.
1118 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1119 * d-valprint.c (dynamic_array_type): Use
1120 value_bits_any_optimized_out.
1121 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1122 check_any_valid fields.
1123 (check_pieced_value_bits): Delete and inline ...
1124 (check_pieced_synthetic_pointer): ... here.
1125 (check_pieced_value_validity): Delete.
1126 (check_pieced_value_invalid): Delete.
1127 (pieced_value_funcs): Remove check_validity and check_any_valid
1129 (read_pieced_value): Use mark_value_bits_optimized_out.
1130 (write_pieced_value): Switch to use
1131 mark_value_bytes_optimized_out.
1132 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1133 of assuming the whole value is optimized out.
1134 * findvar.c (read_frame_register_value): Remove special handling
1135 of optimized out registers.
1136 (value_from_register): Use mark_value_bytes_optimized_out.
1137 * frame-unwind.c (frame_unwind_got_optimized): Use
1138 mark_value_bytes_optimized_out.
1139 * jv-valprint.c (java_value_print): Adjust.
1140 (java_print_value_fields): Let the common printing code handle
1141 optimized out values.
1142 * mips-tdep.c (mips_print_register): Remove special handling of
1143 optimized out registers.
1144 * opencl-lang.c (lval_func_check_validity): Delete.
1145 (lval_func_check_any_valid): Delete.
1146 (opencl_value_funcs): Remove check_validity and check_any_valid
1148 * p-valprint.c (pascal_object_print_value_fields): Let the common
1149 printing code handle optimized out values.
1150 * stack.c (read_frame_arg): Remove special handling of optimized
1151 out values. Fetch both VAL and ENTRYVAL before comparing
1152 contents. Adjust to value_available_contents_eq rename.
1153 * valprint.c (valprint_check_validity)
1154 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1155 (val_print_array_elements): Adjust.
1156 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1157 (value_bits_any_optimized_out): New function.
1158 (value_entirely_covered_by_range_vector): New function, factored
1159 out from value_entirely_unavailable.
1160 (value_entirely_unavailable): Reimplement.
1161 (value_entirely_optimized_out): New function.
1162 (insert_into_bit_range_vector): New function, factored out from
1163 mark_value_bits_unavailable.
1164 (mark_value_bits_unavailable): Reimplement.
1165 (struct ranges_and_idx): New struct.
1166 (find_first_range_overlap_and_match): New function, factored out
1167 from value_available_contents_bits_eq.
1168 (value_available_contents_bits_eq): Rename to ...
1169 (value_contents_bits_eq): ... this. Check both unavailable
1170 contents and optimized out contents.
1171 (value_available_contents_eq): Rename to ...
1172 (value_contents_eq): ... this.
1173 (allocate_value_lazy): Remove reference to the old optimized_out
1175 (allocate_optimized_out_value): Use
1176 mark_value_bytes_optimized_out.
1177 (require_not_optimized_out): Adjust to check whether the
1178 optimized_out vec is empty.
1179 (ranges_copy_adjusted): New function, factored out from
1180 value_contents_copy_raw.
1181 (value_contents_copy_raw): Also copy the optimized out ranges.
1182 Assert the destination ranges aren't optimized out.
1183 (value_contents_copy): Update comment, remove call to
1184 require_not_optimized_out.
1185 (value_contents_equal): Adjust to check whether the optimized_out
1187 (set_value_optimized_out, value_optimized_out_const): Delete.
1188 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1190 (value_entirely_optimized_out, value_bits_valid): Delete.
1191 (value_copy): Take a VEC copy of the 'optimized_out' field.
1192 (value_primitive_field): Remove special handling of optimized out.
1193 (value_fetch_lazy): Assert that lazy values have no unavailable
1194 regions. Use value_bits_any_optimized_out. Remove some special
1195 handling for optimized out values.
1196 * value.h: Add intro comment about <optimized out> and
1198 (struct lval_funcs): Remove check_validity and check_any_valid
1200 (set_value_optimized_out, value_optimized_out_const): Remove.
1201 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1203 (value_bits_any_optimized_out): New declaration.
1204 (value_bits_valid): Delete declaration.
1205 (value_available_contents_eq): Rename to ...
1206 (value_contents_eq): ... this, and extend comments.
1208 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1210 Fix -fsanitize=address on unreadable inferior strings.
1211 * valprint.c (val_print_string): Fix access before BUFFER.
1213 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1215 * target.c (target_struct_size): Remove.
1216 (target_struct_allocsize): Remove.
1217 (DEFAULT_ALLOCSIZE): Remove.
1218 (target_ops_p): New typedef.
1219 (DEF_VEC_P (target_ops_p)): New vector type.
1220 (target_structs): Change type to VEC (target_ops_p).
1221 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1222 (find_default_run_target): Rewrite for loop following changes to
1225 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1227 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1228 Adjust code accordingly. Adjust function description comment.
1230 2014-08-19 Yao Qi <yao@codesourcery.com>
1232 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1235 2014-08-19 Alan Modra <amodra@gmail.com>
1237 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1238 * config.in: Regenerate.
1239 * configure: Regenerate.
1241 2014-08-19 Tom Tromey <tromey@redhat.com>
1242 Gary Benson <gbenson@redhat.com>
1244 * common/common-debug.h: New file.
1245 * common/common-debug.c: Likewise.
1246 * debug.c: Likewise.
1247 * Makefile.in (SFILES): Add common/common-debug.c.
1248 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1249 (COMMON_OBS): Add common-debug.o and debug.o.
1250 (common-debug.o): New rule.
1251 * common/common-defs.h: Include common-debug.h.
1252 * common/agent.c (debug_agent_printf): New function.
1253 (DEBUG_AGENT): Redefine.
1254 * nat/i386-dregs.c (debug_printf): Undefine.
1256 2014-08-19 Gary Benson <gbenson@redhat.com>
1258 * common/common-defs.h: Include print-utils.h.
1259 * utils.h: Do not include print-utils.h.
1261 2014-08-19 Tom Tromey <tromey@redhat.com>
1262 Gary Benson <gbenson@redhat.com>
1264 * common/common-types.h: New file.
1265 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1266 * common/common-defs.h: Include common-types.h.
1267 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1270 2014-08-19 Tom Tromey <tromey@redhat.com>
1271 Gary Benson <gbenson@redhat.com>
1273 * common/errors.h: New file.
1274 * common/errors.c: Likewise.
1275 * Makefile.in (SFILES): Add common/errors.c.
1276 (HFILES_NO_SRCDIR): Add common/errors.h.
1277 (COMMON_OBS): Add errors.o.
1278 (errors.o): New rule.
1279 * common/common-defs.h: Include errors.h.
1280 * utils.h (perror_with_name, error, verror, warning, vwarning):
1282 * common/common-utils.h: (malloc_failure, internal_error):
1285 2014-08-19 Gary Benson <gbenson@redhat.com>
1287 * utils.c (internal_vproblem): Always print the message.
1289 2014-08-18 Doug Evans <dje@google.com>
1291 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1293 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1295 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1296 Return 0 if TYPE is dynamic.
1297 (print_range): Add handling of dynamic ranges.
1299 2014-08-18 Keven Boell <keven.boell@intel.com>
1300 Joel Brobecker <brobecker@adacore.com>
1302 * gdbtypes.h (struct main_type): Add field "data_location".
1303 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1304 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1305 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1306 a dynamic data location.
1307 (resolve_dynamic_type): Add DW_AT_data_location handling.
1308 (copy_recursive, copy_type): Copy the data_location information
1310 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1311 * value.c (value_from_contents_and_address): Add
1312 DW_AT_data_location handling.
1314 2014-08-18 Keven Boell <keven.boell@intel.com>
1315 Joel Brobecker <brobecker@adacore.com>
1317 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1318 field "get_object_address".
1319 * dwarf2expr.c (execute_stack_op): Add handling for
1320 DW_OP_push_object_address.
1321 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1322 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1323 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1324 (dwarf_expr_get_obj_addr): New function.
1325 (dwarf_expr_ctx_funcs): Add get_object_address field.
1326 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1327 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1328 (dwarf2_evaluate_property): Add parameter "address". Use it.
1329 (needs_get_obj_addr): New function.
1330 (needs_frame_ctx_funcs): Add get_object_address field.
1331 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1332 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1333 (resolve_dynamic_array): Likewise.
1335 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1337 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1338 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1339 fixed value for records and unions for which some GNAT encodings
1342 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1344 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1345 rewrite to avoid "else if" and "else" constructs. Should be
1346 a no-op in practice.
1348 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1350 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1353 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1356 * eval.c: Update all calls to find_overload_match.
1357 * valarith.c: Likewise.
1358 (value_user_defined_cpp_op, value_user_defined_op): New
1359 argument NOSIDE. Update all callers.
1360 * valops.c (find_overload_match): New argument NOSIDE.
1361 * value.h (find_overload_match): Update signature.
1363 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1365 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1366 'items' methods instead of 'iteritems' method on dictionaries.
1368 2014-08-15 Doug Evans <dje@google.com>
1370 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1373 2014-08-15 Doug Evans <dje@google.com>
1375 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1377 2014-08-15 Doug Evans <dje@google.com>
1379 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1381 2014-08-15 Doug Evans <dje@google.com>
1383 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1386 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1388 * dcache.h: Include target.h, to avoid compile time warnings.
1390 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1392 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1393 frame_info" partial declaration.
1394 * gdbarch.h: Regenerate.
1396 2014-08-15 Yao Qi <yao@codesourcery.com>
1398 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1399 Add parameter 'decode_for_pst_p'. Callers update.
1401 2014-08-13 Yao Qi <yao@codesourcery.com>
1404 * configure.ac: Use local variable 'pos'.
1405 * configure: Regenerated.
1407 2014-08-11 Doug Evans <dje@google.com>
1409 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1410 message, it is redundant with "Reading symbols from ..." message.
1412 2014-08-10 Doug Evans <xdje42@gmail.com>
1414 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1416 2014-08-09 Yao Qi <yao@codesourcery.com>
1419 * remote.c (remote_xfer_partial): Remove dead code.
1421 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1423 * ia64-linux-tdep.c: Include "regset.h".
1424 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1425 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1426 (ia64_linux_supply_fpregset): New function.
1427 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1428 (ia64_linux_regset_from_core_section): New function.
1429 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1432 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1434 * m68klinux-tdep.c: Include "regset.h".
1435 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1436 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1437 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1438 (m68k_linux_regset_from_core_section): New function.
1439 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1442 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1444 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1445 function. Move logic to...
1446 (tilegx_linux_regmap): ... this new register map.
1447 (tilegx_linux_regset): Refer to register map, replace supply
1448 method by regcache_supply_regset, and add collect method.
1449 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1450 TILEGX_FIRST_EASY_REGNUM.
1452 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1454 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1455 that calls regcache_supply_regset and handles the EPC register
1456 separately. Move main logic to...
1457 (score7_linux_gregmap): ... this new register map.
1458 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1459 (score7_linux_gregset): Refer to register map. Add collect method.
1460 (score7_linux_regset_from_core_section): Replace
1461 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1462 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1463 (struct regset): Delete unused forward declaraction.
1464 (struct pt_regs): Delete structure definition.
1465 (elf_gregset_t): Delete typedef.
1467 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1469 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1470 (nios2_core_regset): Add collect method.
1472 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1474 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1475 platform-independent and don't write to read-only input buffer.
1476 (m32r_linux_collect_gregset): New function.
1477 (m32r_linux_gregset): Add collect method.
1479 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1481 * hppa-linux-tdep.c (greg_map): Rename to...
1482 (hppa_linux_gregmap): ... this. Also convert to
1483 regcache_map_entry format.
1484 (hppa_linux_supply_regset): Delete function.
1485 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1486 (hppa_linux_fpregmap): ... this new register map.
1487 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1488 register map, replace supply method by regcache_supply_regset, and
1489 add collect method regcache_collect_regset.
1491 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1493 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1494 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1495 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1496 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1497 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1498 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1499 (frv_linux_supply_gregset): Replace main logic by call to
1500 regcache_supply_regset, but keep clearing gr32-gr63.
1501 (frv_linux_supply_fpregset): Delete function.
1502 (frv_linux_gregset): Refer to appropriate register map and add
1503 regcache_collect_regset as the collect method.
1504 (frv_linux_fpregset): Likewise. Also exchange the supply method
1505 by regcache_supply_regset.
1507 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1509 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1510 by call to alpha_supply_int_regs.
1511 (alpha_linux_collect_gregset): New function.
1512 (alpha_linux_supply_fpregset): Replace logic by call to
1513 alpha_supply_fp_regs.
1514 (alpha_linux_collect_fpregset): New function.
1515 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1517 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1519 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1520 by call to regcache_collect_regset.
1521 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1522 instead of aarch64_linux_supply_gregset/_fpregset.
1523 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1524 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1525 header file instead.
1526 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1527 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1528 functions. Move logic to ...
1529 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1531 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1532 refer to new register maps, replace *_regset_from_core by
1533 regcache_supply_regset, and also use regcache_collect_regset.
1534 * aarch64-linux-tdep.h: Include "regset.h".
1535 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1537 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1538 macros, moved from C source file.
1539 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1540 variable declarations.
1542 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1544 * s390-linux-nat.c: Include "regset.h".
1545 (regmap_gregset): Delete macro.
1546 (s390_64_regmap_gregset): New register map for
1547 regcache_supply/_collect_regset.
1548 (s390_64_gregset): New regset.
1549 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1550 (regmap_fpregset): Delete macro.
1551 (s390_native_supply, s390_native_collect): Delete functions.
1552 (supply_gregset, fill_gregset): Replace s390-specific regmap
1553 handling by a call to regcache_supply/_collect_regset.
1554 (supply_fpregset, fill_fpregset): Call regcache_supply/
1555 _collect_regset instead of s390_native_supply/_collect.
1556 (fetch_regset, store_regset): Likewise. Also change the last
1557 parameter to a regset instead of a regmap.
1558 (s390_linux_fetch_inferior_registers)
1559 (390_linux_store_inferior_registers): Adjust last parameter in
1560 calls to fetch_regset and store_regset.
1561 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1562 (s390_gregmap): ... this. Also make static const and convert to
1563 regcache_map_entry format.
1564 (s390x_regmap_gregset): Delete.
1565 (s390_regmap_fpregset): Rename to...
1566 (s390_fpregmap): ... this. Make static const and convert to
1567 regcache_map_entry format.
1568 (s390_regmap_upper, s390_regmap_last_break)
1569 (s390x_regmap_last_break, s390_regmap_system_call)
1570 (s390_regmap_tdb): Likewise.
1571 (s390_supply_regset, s390_collect_regset): Remove functions.
1572 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1574 (s390_gregset, s390_fpregset, s390_upper_regset)
1575 (s390_last_break_regset, s390x_last_break_regset)
1576 (s390_system_call_regset, s390_tdb_regset): Make global and
1577 replace s390_supply/_collect_regset by regcache_supply/
1579 (s390x_gregset): Delete.
1580 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1581 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1582 (s390_regmap_fpregset, s390_regmap_last_break)
1583 (s390x_regmap_last_break, s390_regmap_system_call)
1584 (s390_regmap_tdb): Delete global variable declarations.
1585 (s390_gregset, s390_fpregset, s390_last_break_regset)
1586 (s390x_last_break_regset, s390_system_call_regset)
1587 (s390_tdb_regset): New global variable declarations.
1589 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1591 * regcache.c: Include "regset.h".
1592 (regcache_transfer_regset): New local function.
1593 (regcache_supply_regset, regcache_collect_regset): New functions.
1594 * regcache.h (struct regcache_map_entry): New structure.
1595 (REGCACHE_MAP_SKIP): New enum value.
1596 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1598 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1600 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1601 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1602 (ppc_linux_collect_gregset ): Likewise.
1603 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1604 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1605 (ppc_collect_vrregset): Likewise.
1606 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1609 2014-08-07 Yao Qi <yao@codesourcery.com>
1611 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1612 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1613 * remote.c (remote_read_bytes): Likewise.
1615 2014-08-07 Yao Qi <yao@codesourcery.com>
1617 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1619 2014-08-07 Yao Qi <yao@codesourcery.com>
1622 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1623 TARGET_XFER_OK instead of 0.
1625 2014-08-07 Gary Benson <gbenson@redhat.com>
1627 * common/common-defs.h: Include errno.h.
1628 * defs.h: Do not include errno.h.
1629 * ada-typeprint.c: Likewise.
1630 * c-typeprint.c: Likewise.
1631 * core-regset.c: Likewise.
1632 * corefile.c: Likewise.
1633 * corelow.c: Likewise.
1634 * event-loop.c: Likewise.
1635 * f-typeprint.c: Likewise.
1636 * gnu-nat.c: Likewise.
1637 * go32-nat.c: Likewise.
1638 * i386gnu-nat.c: Likewise.
1639 * m2-typeprint.c: Likewise.
1640 * nat/linux-btrace.c: Likewise.
1641 * p-typeprint.c: Likewise.
1642 * procfs.c: Likewise.
1643 * remote-sim.c: Likewise.
1644 * rs6000-nat.c: Likewise.
1645 * target.c: Likewise.
1646 * typeprint.c: Likewise.
1647 * ui-file.c: Likewise.
1648 * valops.c: Likewise.
1649 * valprint.c: Likewise.
1651 2014-08-07 Gary Benson <gbenson@redhat.com>
1653 * common/common-defs.h: Include string.h.
1654 * aarch64-tdep.c: Do not include string.h.
1655 * ada-exp.y: Likewise.
1656 * ada-lang.c: Likewise.
1657 * ada-lex.l: Likewise.
1658 * ada-typeprint.c: Likewise.
1659 * ada-valprint.c: Likewise.
1660 * aix-thread.c: Likewise.
1661 * alpha-linux-tdep.c: Likewise.
1662 * alpha-mdebug-tdep.c: Likewise.
1663 * alpha-nat.c: Likewise.
1664 * alpha-osf1-tdep.c: Likewise.
1665 * alpha-tdep.c: Likewise.
1666 * alphanbsd-tdep.c: Likewise.
1667 * amd64-dicos-tdep.c: Likewise.
1668 * amd64-linux-tdep.c: Likewise.
1669 * amd64-nat.c: Likewise.
1670 * amd64-sol2-tdep.c: Likewise.
1671 * amd64fbsd-tdep.c: Likewise.
1672 * amd64obsd-tdep.c: Likewise.
1673 * arch-utils.c: Likewise.
1674 * arm-linux-nat.c: Likewise.
1675 * arm-linux-tdep.c: Likewise.
1676 * arm-tdep.c: Likewise.
1677 * arm-wince-tdep.c: Likewise.
1678 * armbsd-tdep.c: Likewise.
1679 * armnbsd-nat.c: Likewise.
1680 * armnbsd-tdep.c: Likewise.
1681 * armobsd-tdep.c: Likewise.
1682 * avr-tdep.c: Likewise.
1683 * ax-gdb.c: Likewise.
1684 * ax-general.c: Likewise.
1685 * bcache.c: Likewise.
1686 * bfin-tdep.c: Likewise.
1687 * breakpoint.c: Likewise.
1688 * build-id.c: Likewise.
1689 * buildsym.c: Likewise.
1690 * c-exp.y: Likewise.
1691 * c-lang.c: Likewise.
1692 * c-typeprint.c: Likewise.
1693 * c-valprint.c: Likewise.
1694 * charset.c: Likewise.
1695 * cli-out.c: Likewise.
1696 * cli/cli-cmds.c: Likewise.
1697 * cli/cli-decode.c: Likewise.
1698 * cli/cli-dump.c: Likewise.
1699 * cli/cli-interp.c: Likewise.
1700 * cli/cli-logging.c: Likewise.
1701 * cli/cli-script.c: Likewise.
1702 * cli/cli-setshow.c: Likewise.
1703 * cli/cli-utils.c: Likewise.
1704 * coffread.c: Likewise.
1705 * common/agent.c: Likewise.
1706 * common/buffer.c: Likewise.
1707 * common/buffer.h: Likewise.
1708 * common/common-utils.c: Likewise.
1709 * common/filestuff.c: Likewise.
1710 * common/filestuff.c: Likewise.
1711 * common/format.c: Likewise.
1712 * common/print-utils.c: Likewise.
1713 * common/rsp-low.c: Likewise.
1714 * common/signals.c: Likewise.
1715 * common/vec.h: Likewise.
1716 * common/xml-utils.c: Likewise.
1717 * core-regset.c: Likewise.
1718 * corefile.c: Likewise.
1719 * corelow.c: Likewise.
1720 * cp-abi.c: Likewise.
1721 * cp-name-parser.y: Likewise.
1722 * cp-support.c: Likewise.
1723 * cp-valprint.c: Likewise.
1724 * cris-tdep.c: Likewise.
1725 * d-exp.y: Likewise.
1726 * darwin-nat.c: Likewise.
1727 * dbxread.c: Likewise.
1728 * dcache.c: Likewise.
1729 * demangle.c: Likewise.
1730 * dicos-tdep.c: Likewise.
1731 * disasm.c: Likewise.
1732 * doublest.c: Likewise.
1733 * dsrec.c: Likewise.
1734 * dummy-frame.c: Likewise.
1735 * dwarf2-frame.c: Likewise.
1736 * dwarf2loc.c: Likewise.
1737 * dwarf2read.c: Likewise.
1738 * elfread.c: Likewise.
1739 * environ.c: Likewise.
1741 * event-loop.c: Likewise.
1742 * exceptions.c: Likewise.
1744 * expprint.c: Likewise.
1745 * f-exp.y: Likewise.
1746 * f-lang.c: Likewise.
1747 * f-typeprint.c: Likewise.
1748 * f-valprint.c: Likewise.
1749 * fbsd-nat.c: Likewise.
1750 * findcmd.c: Likewise.
1751 * findvar.c: Likewise.
1752 * fork-child.c: Likewise.
1753 * frame.c: Likewise.
1754 * frv-linux-tdep.c: Likewise.
1755 * frv-tdep.c: Likewise.
1757 * gdb_bfd.c: Likewise.
1758 * gdbarch.c: Likewise.
1759 * gdbarch.sh: Likewise.
1760 * gdbtypes.c: Likewise.
1761 * gnu-nat.c: Likewise.
1762 * gnu-v2-abi.c: Likewise.
1763 * gnu-v3-abi.c: Likewise.
1764 * go-exp.y: Likewise.
1765 * go-lang.c: Likewise.
1766 * go32-nat.c: Likewise.
1767 * guile/guile.c: Likewise.
1768 * guile/scm-auto-load.c: Likewise.
1769 * hppa-hpux-tdep.c: Likewise.
1770 * hppa-linux-nat.c: Likewise.
1771 * hppanbsd-tdep.c: Likewise.
1772 * hppaobsd-tdep.c: Likewise.
1773 * i386-cygwin-tdep.c: Likewise.
1774 * i386-dicos-tdep.c: Likewise.
1775 * i386-linux-tdep.c: Likewise.
1776 * i386-nto-tdep.c: Likewise.
1777 * i386-sol2-tdep.c: Likewise.
1778 * i386-tdep.c: Likewise.
1779 * i386bsd-tdep.c: Likewise.
1780 * i386gnu-nat.c: Likewise.
1781 * i386nbsd-tdep.c: Likewise.
1782 * i386obsd-tdep.c: Likewise.
1783 * i387-tdep.c: Likewise.
1784 * ia64-libunwind-tdep.c: Likewise.
1785 * ia64-linux-nat.c: Likewise.
1786 * inf-child.c: Likewise.
1787 * inf-ptrace.c: Likewise.
1788 * inf-ttrace.c: Likewise.
1789 * infcall.c: Likewise.
1790 * infcmd.c: Likewise.
1791 * inflow.c: Likewise.
1792 * infrun.c: Likewise.
1793 * interps.c: Likewise.
1794 * iq2000-tdep.c: Likewise.
1795 * irix5-nat.c: Likewise.
1796 * jv-exp.y: Likewise.
1797 * jv-lang.c: Likewise.
1798 * jv-typeprint.c: Likewise.
1799 * jv-valprint.c: Likewise.
1800 * language.c: Likewise.
1801 * linux-fork.c: Likewise.
1802 * linux-nat.c: Likewise.
1803 * lm32-tdep.c: Likewise.
1804 * m2-exp.y: Likewise.
1805 * m2-typeprint.c: Likewise.
1806 * m32c-tdep.c: Likewise.
1807 * m32r-linux-nat.c: Likewise.
1808 * m32r-linux-tdep.c: Likewise.
1809 * m32r-rom.c: Likewise.
1810 * m32r-tdep.c: Likewise.
1811 * m68hc11-tdep.c: Likewise.
1812 * m68k-tdep.c: Likewise.
1813 * m68kbsd-tdep.c: Likewise.
1814 * m68klinux-nat.c: Likewise.
1815 * m68klinux-tdep.c: Likewise.
1816 * m88k-tdep.c: Likewise.
1817 * machoread.c: Likewise.
1818 * macrocmd.c: Likewise.
1820 * mdebugread.c: Likewise.
1821 * mem-break.c: Likewise.
1822 * memattr.c: Likewise.
1823 * memory-map.c: Likewise.
1824 * mep-tdep.c: Likewise.
1825 * mi/mi-cmd-break.c: Likewise.
1826 * mi/mi-cmd-disas.c: Likewise.
1827 * mi/mi-cmd-env.c: Likewise.
1828 * mi/mi-cmd-stack.c: Likewise.
1829 * mi/mi-cmd-var.c: Likewise.
1830 * mi/mi-cmds.c: Likewise.
1831 * mi/mi-console.c: Likewise.
1832 * mi/mi-getopt.c: Likewise.
1833 * mi/mi-interp.c: Likewise.
1834 * mi/mi-main.c: Likewise.
1835 * mi/mi-parse.c: Likewise.
1836 * microblaze-rom.c: Likewise.
1837 * microblaze-tdep.c: Likewise.
1838 * mingw-hdep.c: Likewise.
1839 * minidebug.c: Likewise.
1840 * minsyms.c: Likewise.
1841 * mips-irix-tdep.c: Likewise.
1842 * mips-linux-tdep.c: Likewise.
1843 * mips-tdep.c: Likewise.
1844 * mips64obsd-tdep.c: Likewise.
1845 * mipsnbsd-tdep.c: Likewise.
1846 * mipsread.c: Likewise.
1847 * mn10300-linux-tdep.c: Likewise.
1848 * mn10300-tdep.c: Likewise.
1849 * monitor.c: Likewise.
1850 * moxie-tdep.c: Likewise.
1851 * mt-tdep.c: Likewise.
1852 * nat/linux-btrace.c: Likewise.
1853 * nat/linux-osdata.c: Likewise.
1854 * nat/linux-procfs.c: Likewise.
1855 * nat/linux-ptrace.c: Likewise.
1856 * nat/linux-waitpid.c: Likewise.
1857 * nbsd-tdep.c: Likewise.
1858 * nios2-linux-tdep.c: Likewise.
1859 * nto-procfs.c: Likewise.
1860 * nto-tdep.c: Likewise.
1861 * objc-lang.c: Likewise.
1862 * objfiles.c: Likewise.
1863 * opencl-lang.c: Likewise.
1864 * osabi.c: Likewise.
1865 * osdata.c: Likewise.
1866 * p-exp.y: Likewise.
1867 * p-lang.c: Likewise.
1868 * p-typeprint.c: Likewise.
1869 * parse.c: Likewise.
1870 * posix-hdep.c: Likewise.
1871 * ppc-linux-nat.c: Likewise.
1872 * ppc-sysv-tdep.c: Likewise.
1873 * ppcfbsd-tdep.c: Likewise.
1874 * ppcnbsd-tdep.c: Likewise.
1875 * ppcobsd-tdep.c: Likewise.
1876 * printcmd.c: Likewise.
1877 * procfs.c: Likewise.
1878 * prologue-value.c: Likewise.
1879 * python/py-auto-load.c: Likewise.
1880 * python/py-gdb-readline.c: Likewise.
1881 * ravenscar-thread.c: Likewise.
1882 * regcache.c: Likewise.
1883 * registry.c: Likewise.
1884 * remote-fileio.c: Likewise.
1885 * remote-m32r-sdi.c: Likewise.
1886 * remote-mips.c: Likewise.
1887 * remote-notif.c: Likewise.
1888 * remote-sim.c: Likewise.
1889 * remote.c: Likewise.
1890 * reverse.c: Likewise.
1891 * rs6000-aix-tdep.c: Likewise.
1892 * ser-base.c: Likewise.
1893 * ser-go32.c: Likewise.
1894 * ser-mingw.c: Likewise.
1895 * ser-pipe.c: Likewise.
1896 * ser-tcp.c: Likewise.
1897 * ser-unix.c: Likewise.
1898 * serial.c: Likewise.
1899 * sh-tdep.c: Likewise.
1900 * sh64-tdep.c: Likewise.
1901 * shnbsd-tdep.c: Likewise.
1903 * sol-thread.c: Likewise.
1904 * solib-dsbt.c: Likewise.
1905 * solib-frv.c: Likewise.
1906 * solib-osf.c: Likewise.
1907 * solib-som.c: Likewise.
1908 * solib-spu.c: Likewise.
1909 * solib-target.c: Likewise.
1910 * solib.c: Likewise.
1911 * somread.c: Likewise.
1912 * source.c: Likewise.
1913 * sparc-nat.c: Likewise.
1914 * sparc-sol2-tdep.c: Likewise.
1915 * sparc-tdep.c: Likewise.
1916 * sparc64-tdep.c: Likewise.
1917 * sparc64fbsd-tdep.c: Likewise.
1918 * sparc64nbsd-tdep.c: Likewise.
1919 * sparcnbsd-tdep.c: Likewise.
1920 * spu-linux-nat.c: Likewise.
1921 * spu-multiarch.c: Likewise.
1922 * spu-tdep.c: Likewise.
1923 * stabsread.c: Likewise.
1924 * stack.c: Likewise.
1925 * std-regs.c: Likewise.
1926 * symfile.c: Likewise.
1927 * symmisc.c: Likewise.
1928 * symtab.c: Likewise.
1929 * target.c: Likewise.
1930 * thread.c: Likewise.
1931 * tilegx-linux-nat.c: Likewise.
1932 * tilegx-tdep.c: Likewise.
1934 * tracepoint.c: Likewise.
1935 * tui/tui-command.c: Likewise.
1936 * tui/tui-data.c: Likewise.
1937 * tui/tui-disasm.c: Likewise.
1938 * tui/tui-file.c: Likewise.
1939 * tui/tui-layout.c: Likewise.
1940 * tui/tui-out.c: Likewise.
1941 * tui/tui-regs.c: Likewise.
1942 * tui/tui-source.c: Likewise.
1943 * tui/tui-stack.c: Likewise.
1944 * tui/tui-win.c: Likewise.
1945 * tui/tui-windata.c: Likewise.
1946 * tui/tui-winsource.c: Likewise.
1947 * typeprint.c: Likewise.
1948 * ui-file.c: Likewise.
1949 * ui-out.c: Likewise.
1950 * user-regs.c: Likewise.
1951 * utils.c: Likewise.
1952 * v850-tdep.c: Likewise.
1953 * valarith.c: Likewise.
1954 * valops.c: Likewise.
1955 * valprint.c: Likewise.
1956 * value.c: Likewise.
1957 * varobj.c: Likewise.
1958 * vax-tdep.c: Likewise.
1959 * vaxnbsd-tdep.c: Likewise.
1960 * vaxobsd-tdep.c: Likewise.
1961 * windows-nat.c: Likewise.
1962 * xcoffread.c: Likewise.
1963 * xml-support.c: Likewise.
1964 * xstormy16-tdep.c: Likewise.
1965 * xtensa-linux-nat.c: Likewise.
1967 2014-08-07 Gary Benson <gbenson@redhat.com>
1969 * common/common-defs.h: Include gdb_assert.h.
1970 * aarch64-tdep.c: Do not include gdb_assert.h.
1971 * addrmap.c: Likewise.
1972 * aix-thread.c: Likewise.
1973 * alpha-linux-tdep.c: Likewise.
1974 * alpha-mdebug-tdep.c: Likewise.
1975 * alphanbsd-tdep.c: Likewise.
1976 * amd64-nat.c: Likewise.
1977 * amd64-tdep.c: Likewise.
1978 * amd64bsd-nat.c: Likewise.
1979 * amd64fbsd-nat.c: Likewise.
1980 * amd64fbsd-tdep.c: Likewise.
1981 * amd64nbsd-nat.c: Likewise.
1982 * amd64nbsd-tdep.c: Likewise.
1983 * amd64obsd-nat.c: Likewise.
1984 * amd64obsd-tdep.c: Likewise.
1985 * arch-utils.c: Likewise.
1986 * arm-tdep.c: Likewise.
1987 * armbsd-tdep.c: Likewise.
1989 * bcache.c: Likewise.
1990 * bfin-tdep.c: Likewise.
1991 * blockframe.c: Likewise.
1992 * breakpoint.c: Likewise.
1993 * bsd-kvm.c: Likewise.
1994 * bsd-uthread.c: Likewise.
1995 * buildsym.c: Likewise.
1996 * c-exp.y: Likewise.
1997 * c-lang.c: Likewise.
1998 * charset.c: Likewise.
1999 * cleanups.c: Likewise.
2000 * cli-out.c: Likewise.
2001 * cli/cli-decode.c: Likewise.
2002 * cli/cli-dump.c: Likewise.
2003 * cli/cli-logging.c: Likewise.
2004 * cli/cli-script.c: Likewise.
2005 * cli/cli-utils.c: Likewise.
2006 * coffread.c: Likewise.
2007 * common/common-utils.c: Likewise.
2008 * common/queue.h: Likewise.
2009 * common/signals.c: Likewise.
2010 * common/vec.h: Likewise.
2011 * complaints.c: Likewise.
2012 * completer.c: Likewise.
2013 * corelow.c: Likewise.
2014 * cp-abi.c: Likewise.
2015 * cp-name-parser.y: Likewise.
2016 * cp-namespace.c: Likewise.
2017 * cp-support.c: Likewise.
2018 * cris-tdep.c: Likewise.
2019 * dbxread.c: Likewise.
2020 * dictionary.c: Likewise.
2021 * doublest.c: Likewise.
2022 * dsrec.c: Likewise.
2023 * dummy-frame.c: Likewise.
2024 * dwarf2-frame-tailcall.c: Likewise.
2025 * dwarf2-frame.c: Likewise.
2026 * dwarf2expr.c: Likewise.
2027 * dwarf2loc.c: Likewise.
2028 * dwarf2read.c: Likewise.
2030 * event-loop.c: Likewise.
2031 * exceptions.c: Likewise.
2032 * expprint.c: Likewise.
2033 * f-valprint.c: Likewise.
2034 * fbsd-nat.c: Likewise.
2035 * findvar.c: Likewise.
2036 * frame-unwind.c: Likewise.
2037 * frame.c: Likewise.
2038 * frv-tdep.c: Likewise.
2039 * gcore.c: Likewise.
2040 * gdb-dlfcn.c: Likewise.
2041 * gdb_bfd.c: Likewise.
2042 * gdbarch.c: Likewise.
2043 * gdbarch.sh: Likewise.
2044 * gdbtypes.c: Likewise.
2045 * gnu-nat.c: Likewise.
2046 * gnu-v3-abi.c: Likewise.
2047 * go-lang.c: Likewise.
2048 * guile/scm-exception.c: Likewise.
2049 * guile/scm-gsmob.c: Likewise.
2050 * guile/scm-lazy-string.c: Likewise.
2051 * guile/scm-math.c: Likewise.
2052 * guile/scm-pretty-print.c: Likewise.
2053 * guile/scm-safe-call.c: Likewise.
2054 * guile/scm-utils.c: Likewise.
2055 * guile/scm-value.c: Likewise.
2056 * h8300-tdep.c: Likewise.
2057 * hppa-hpux-nat.c: Likewise.
2058 * hppa-tdep.c: Likewise.
2059 * hppanbsd-tdep.c: Likewise.
2060 * hppaobsd-tdep.c: Likewise.
2061 * i386-darwin-nat.c: Likewise.
2062 * i386-darwin-tdep.c: Likewise.
2063 * i386-nto-tdep.c: Likewise.
2064 * i386-tdep.c: Likewise.
2065 * i386bsd-nat.c: Likewise.
2066 * i386fbsd-tdep.c: Likewise.
2067 * i386gnu-nat.c: Likewise.
2068 * i386nbsd-tdep.c: Likewise.
2069 * i386obsd-tdep.c: Likewise.
2070 * i387-tdep.c: Likewise.
2071 * ia64-libunwind-tdep.c: Likewise.
2072 * ia64-tdep.c: Likewise.
2073 * inf-ptrace.c: Likewise.
2074 * inf-ttrace.c: Likewise.
2075 * infcall.c: Likewise.
2076 * infcmd.c: Likewise.
2077 * infrun.c: Likewise.
2078 * inline-frame.c: Likewise.
2079 * interps.c: Likewise.
2080 * jv-lang.c: Likewise.
2081 * jv-typeprint.c: Likewise.
2082 * linux-fork.c: Likewise.
2083 * linux-nat.c: Likewise.
2084 * linux-thread-db.c: Likewise.
2085 * m32c-tdep.c: Likewise.
2086 * m32r-linux-nat.c: Likewise.
2087 * m32r-tdep.c: Likewise.
2088 * m68k-tdep.c: Likewise.
2089 * m68kbsd-nat.c: Likewise.
2090 * m68kbsd-tdep.c: Likewise.
2091 * m88k-tdep.c: Likewise.
2092 * machoread.c: Likewise.
2093 * macroexp.c: Likewise.
2094 * macrotab.c: Likewise.
2095 * maint.c: Likewise.
2096 * mdebugread.c: Likewise.
2097 * memory-map.c: Likewise.
2098 * mep-tdep.c: Likewise.
2099 * mi/mi-common.c: Likewise.
2100 * microblaze-tdep.c: Likewise.
2101 * mingw-hdep.c: Likewise.
2102 * mips-linux-nat.c: Likewise.
2103 * mips-linux-tdep.c: Likewise.
2104 * mips-tdep.c: Likewise.
2105 * mips64obsd-tdep.c: Likewise.
2106 * mipsnbsd-tdep.c: Likewise.
2107 * mn10300-linux-tdep.c: Likewise.
2108 * mn10300-tdep.c: Likewise.
2109 * moxie-tdep.c: Likewise.
2110 * mt-tdep.c: Likewise.
2111 * nat/linux-btrace.c: Likewise.
2112 * nat/linux-osdata.c: Likewise.
2113 * nat/linux-ptrace.c: Likewise.
2114 * nat/mips-linux-watch.c: Likewise.
2115 * nios2-linux-tdep.c: Likewise.
2116 * nios2-tdep.c: Likewise.
2117 * objc-lang.c: Likewise.
2118 * objfiles.c: Likewise.
2119 * obsd-nat.c: Likewise.
2120 * opencl-lang.c: Likewise.
2121 * osabi.c: Likewise.
2122 * parse.c: Likewise.
2123 * ppc-linux-nat.c: Likewise.
2124 * ppc-sysv-tdep.c: Likewise.
2125 * ppcfbsd-nat.c: Likewise.
2126 * ppcfbsd-tdep.c: Likewise.
2127 * ppcnbsd-nat.c: Likewise.
2128 * ppcnbsd-tdep.c: Likewise.
2129 * ppcobsd-nat.c: Likewise.
2130 * ppcobsd-tdep.c: Likewise.
2131 * printcmd.c: Likewise.
2132 * procfs.c: Likewise.
2133 * prologue-value.c: Likewise.
2134 * psymtab.c: Likewise.
2135 * python/py-lazy-string.c: Likewise.
2136 * python/py-value.c: Likewise.
2137 * regcache.c: Likewise.
2138 * reggroups.c: Likewise.
2139 * registry.c: Likewise.
2140 * remote-sim.c: Likewise.
2141 * remote.c: Likewise.
2142 * rs6000-aix-tdep.c: Likewise.
2143 * rs6000-tdep.c: Likewise.
2144 * s390-linux-tdep.c: Likewise.
2145 * score-tdep.c: Likewise.
2146 * ser-base.c: Likewise.
2147 * ser-mingw.c: Likewise.
2148 * sh-tdep.c: Likewise.
2149 * sh64-tdep.c: Likewise.
2150 * solib-darwin.c: Likewise.
2151 * solib-spu.c: Likewise.
2152 * solib-svr4.c: Likewise.
2153 * source.c: Likewise.
2154 * sparc-nat.c: Likewise.
2155 * sparc-sol2-tdep.c: Likewise.
2156 * sparc-tdep.c: Likewise.
2157 * sparc64-sol2-tdep.c: Likewise.
2158 * sparc64-tdep.c: Likewise.
2159 * sparc64fbsd-tdep.c: Likewise.
2160 * sparc64nbsd-tdep.c: Likewise.
2161 * sparc64obsd-tdep.c: Likewise.
2162 * sparcnbsd-tdep.c: Likewise.
2163 * sparcobsd-tdep.c: Likewise.
2164 * spu-multiarch.c: Likewise.
2165 * spu-tdep.c: Likewise.
2166 * stabsread.c: Likewise.
2167 * stack.c: Likewise.
2168 * symfile.c: Likewise.
2169 * symtab.c: Likewise.
2170 * target-descriptions.c: Likewise.
2171 * target-memory.c: Likewise.
2172 * target.c: Likewise.
2173 * tic6x-linux-tdep.c: Likewise.
2174 * tic6x-tdep.c: Likewise.
2175 * tilegx-linux-nat.c: Likewise.
2176 * tilegx-tdep.c: Likewise.
2178 * tramp-frame.c: Likewise.
2179 * tui/tui-out.c: Likewise.
2180 * tui/tui-winsource.c: Likewise.
2181 * ui-out.c: Likewise.
2182 * user-regs.c: Likewise.
2183 * utils.c: Likewise.
2184 * v850-tdep.c: Likewise.
2185 * valops.c: Likewise.
2186 * value.c: Likewise.
2187 * varobj.c: Likewise.
2188 * vax-nat.c: Likewise.
2189 * xml-syscall.c: Likewise.
2190 * xml-tdesc.c: Likewise.
2191 * xstormy16-tdep.c: Likewise.
2192 * xtensa-linux-nat.c: Likewise.
2193 * xtensa-tdep.c: Likewise.
2195 2014-08-07 Gary Benson <gbenson@redhat.com>
2197 * common/common-defs.h: Include common-utils.h.
2198 * defs.h: Do not include common-utils.h.
2199 * common/gdb_assert.h: Likewise.
2200 * darwin-nat.h: Likewise.
2201 * nat/linux-btrace.c: Likewise.
2202 * target/waitstatus.h: Likewise.
2204 2014-08-07 Gary Benson <gbenson@redhat.com>
2206 * common/common-defs.h: Include ptid.h.
2207 * defs.h: Do not include ptid.h.
2208 * inferior.h: Likewise.
2209 * infrun.h: Likewise.
2210 * nat/linux-btrace.h: Likewise.
2211 * nat/linux-osdata.h: Likewise.
2212 * target/waitstatus.h: Likewise.
2214 2014-08-07 Gary Benson <gbenson@redhat.com>
2216 * common/common-defs.h: Include gdb_locale.h.
2217 * defs.h: Do not include gdb_locale.h.
2219 2014-08-07 Gary Benson <gbenson@redhat.com>
2221 * common/common-defs.h: Include gdb/signals.h.
2222 * defs.h: Do not include gdb/signals.h.
2224 2014-08-07 Gary Benson <gbenson@redhat.com>
2226 * common/common-defs.h: Include pathmax.h.
2227 * defs.h: Do not include pathmax.h.
2229 2014-08-07 Gary Benson <gbenson@redhat.com>
2231 * common/common-defs.h: Include libiberty.h.
2232 * defs.h: Do not include libiberty.h.
2233 * common/queue.h: Likewise.
2234 * cp-name-parser.y: Likewise.
2235 * mi/mi-cmd-catch.c: Likewise.
2236 * python/python.c: Likewise.
2238 2014-08-07 Gary Benson <gbenson@redhat.com>
2240 * common/common-defs.h: Include ansidecl.h.
2241 * defs.h: Do not include ansidecl.h.
2242 * common/buffer.h: Likewise.
2243 * common/common-utils.h: Likewise.
2245 2014-08-07 Gary Benson <gbenson@redhat.com>
2247 * common/common-defs.h: Include stddef.h.
2248 * defs.h: Do not include stddef.h.
2249 * common/common-utils.h: Likewise.
2250 * amd64fbsd-nat.c: Likewise.
2251 * bcache.c: Likewise.
2252 * charset.c: Likewise.
2253 * common/buffer.h: Likewise.
2254 * common/vec.h: Likewise.
2255 * i386bsd-nat.c: Likewise.
2256 * nat/linux-btrace.h: Likewise.
2257 * ppcfbsd-nat.c: Likewise.
2258 * ppcnbsd-tdep.h: Likewise.
2259 * ppcobsd-nat.c: Likewise.
2260 * ppcobsd-tdep.h: Likewise.
2261 * python/py-gdb-readline.c: Likewise.
2263 2014-08-07 Gary Benson <gbenson@redhat.com>
2265 * common/common-defs.h: Include stdarg.h.
2266 * defs.h: Do not include stdarg.h.
2267 * ada-lang.c: Likewise.
2268 * common/common-utils.h: Likewise.
2269 * guile/scm-string.c: Likewise.
2270 * guile/scm-utils.c: Likewise.
2271 * m32c-tdep.c: Likewise.
2273 2014-08-07 Gary Benson <gbenson@redhat.com>
2275 * common/common-defs.h: Include stdlib.h.
2276 * defs.h: Do not include stdlib.h.
2277 * addrmap.c: Likewise.
2278 * bcache.c: Likewise.
2279 * common/buffer.c: Likewise.
2280 * common/common-utils.c: Likewise.
2281 * cp-name-parser.y: Likewise.
2282 * go32-nat.c: Likewise.
2283 * mn10300-linux-tdep.c: Likewise.
2284 * nat/linux-osdata.c: Likewise.
2285 * tui/tui.c: Likewise.
2286 * windows-nat.c: Likewise.
2288 2014-08-07 Gary Benson <gbenson@redhat.com>
2290 * common/common-defs.h: Include stdio.h.
2291 * defs.h: Do not include stdio.h.
2292 * ada-lang.c: Likewise.
2293 * common/buffer.c: Likewise.
2294 * common/common-utils.c: Likewise.
2295 * cp-name-parser.y: Likewise.
2296 * gnu-nat.c: Likewise.
2297 * go32-nat.c: Likewise.
2298 * i386gnu-nat.c: Likewise.
2299 * proc-api.c: Likewise.
2300 * proc-events.c: Likewise.
2301 * proc-flags.c: Likewise.
2302 * proc-why.c: Likewise.
2303 * python/python-internal.h: Likewise.
2304 * target-memory.c: Likewise.
2305 * tui/tui-io.c: Likewise.
2306 * tui/tui.c: Likewise.
2308 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2310 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2311 (scan_dyntag_auxv): Same.
2313 2014-08-06 Yao Qi <yao@codesourcery.com>
2315 * amd64-linux-nat.c: Remove duplicated include
2317 * i386-linux-nat.c: Likewise.
2319 2014-08-06 Yao Qi <yao@codesourcery.com>
2321 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2322 operand" with "Special opcode" in comments.
2324 2014-08-05 Gary Benson <gbenson@redhat.com>
2326 * interps.c (initialize_interps): Remove prototype.
2327 (interpreter_initialized): Remove static global.
2328 (interp_add): Do not call initialize_interps.
2329 (initialize_interps): Remove function.
2331 2014-08-05 Gary Benson <gbenson@redhat.com>
2333 * utils.c (vwarning): Remove spurious va_end.
2335 2014-08-05 Alan Modra <amodra@gmail.com>
2337 * charset.c (convert_between_encodings): Cast result of obstack_base.
2338 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2339 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2340 (read_unwind_info): Use size_t for some locals.
2341 * jit.c (finalize_symtab): Likewise.
2342 * utils.c (hashtab_obstack_allocate): Likewise.
2343 * symmisc.c (print_objfile_statistics): Update format strings.
2345 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2347 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2348 (Changes in GDB 7.8): ... here.
2350 2014-08-04 Tom Tromey <tromey@redhat.com>
2352 * target.c (set_targetdebug): New function.
2353 (initialize_targets): Pass set_targetdebug when creating "set
2356 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2358 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2359 if detecting a variable-sized field that is not the last field.
2360 Fix struct type length computation.
2362 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2364 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2367 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2369 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2370 Remove "+ 8" offset in computation of CHAIN_VMA.
2372 2014-07-31 Doug Evans <dje@google.com>
2374 * inflow.c (child_terminal_inferior): Add comment.
2375 (child_terminal_ours_for_output): Add comment.
2376 (child_terminal_ours): Add comment.
2377 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2378 (linux_nat_terminal_ours): Add comment.
2380 2014-07-31 Gary Benson <gbenson@redhat.com>
2382 * common/btrace-common.h: Do not include defs.h or server.h.
2383 * nat/mips-linux-watch.h: Likewise.
2384 * gdb-dlfcn.h: Do not include defs.h.
2385 * tracefile.h: Likewise.
2387 2014-07-30 Roland McGrath <mcgrathr@google.com>
2389 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2391 2014-07-30 Tom Tromey <tromey@redhat.com>
2393 * bsd-kvm.c (bsd_kvm_open): Constify.
2394 * corelow.c (core_open): Constify.
2395 * ctf.c (ctf_open): Constify.
2396 * dbug-rom.c (dbug_open): Constify.
2397 * exec.c (exec_open): Constify.
2398 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2399 * microblaze-rom.c (picobug_open): Constify.
2400 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2402 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2403 * record-btrace.c (record_btrace_open): Constify.
2404 * record-full.c (record_full_core_open_1, record_full_open_1)
2405 (record_full_open): Constify.
2406 * remote-m32r-sdi.c (m32r_open): Constify.
2407 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2408 (rockhopper_open, lsi_open): Constify.
2409 * remote-sim.c (gdbsim_open): Constify.
2410 * remote.c (remote_open, extended_remote_open, remote_open_1):
2412 * target.h (struct target_ops) <to_open>: Make "arg" const.
2413 * tracefile-tfile.c (tfile_open): Constify.
2415 2014-07-30 Tom Tromey <tromey@redhat.com>
2417 * breakpoint.c (map_breakpoint_numbers): Update.
2418 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2419 (get_number_const): New function.
2420 (get_number): Rewrite using get_number_const.
2421 (init_number_or_range): Make "string" const.
2422 (number_is_in_list): Make "list" const.
2423 * cli/cli-utils.h (get_number_const): Declare.
2424 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2425 (init_number_or_range, number_is_in_list): Update.
2426 * printcmd.c (map_display_numbers): Update.
2427 * value.c (value_from_history_ref): Constify.
2428 * value.h (value_from_history_ref): Update.
2430 2014-07-30 Tom Tromey <tromey@redhat.com>
2432 * corefile.c (hook_type, call_extra_exec_file_hooks)
2433 (specify_exec_file_hook): Constify.
2434 * exec.c (exec_file_attach): Make "filename" const.
2435 * gdbcore.h (deprecated_exec_file_display_hook)
2436 (specify_exec_file_hook, exec_file_attach): Constify.
2437 * main.c (captured_main): Use catch_command_errors_const.
2439 2014-07-30 Tom Tromey <tromey@redhat.com>
2441 * target.c (open_target): New function.
2442 (add_target_with_completer, add_deprecated_target_alias): Use
2443 set_cmd_sfunc, set_cmd_context.
2444 (debug_to_open): Remove.
2445 (setup_target_debug): Update.
2447 2014-07-30 Yao Qi <yao@codesourcery.com>
2449 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2451 * parse.c (exp_iterate): Update comments.
2453 2014-07-30 Gary Benson <gbenson@redhat.com>
2455 * common/common-defs.h: New file.
2456 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2457 * defs.h: Include common-defs.h.
2458 Do not include config.h or build-gnulib/config.h.
2460 2014-07-30 Gary Benson <gbenson@redhat.com>
2462 * common/common-utils.h: Do not include config.h.
2463 * nat/linux-btrace.h: Likewise.
2465 2014-07-30 Gary Benson <gbenson@redhat.com>
2467 * btrace.c: Include defs.h.
2468 * common/ptid.c: Include defs.h or server.h as appropriate.
2469 * nat/mips-linux-watch.c: Likewise.
2471 2014-07-29 Tom Tromey <tromey@redhat.com>
2473 * target.c (target_is_pushed): Simplify.
2475 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2479 2014-07-29 Yao Qi <yao@codesourcery.com>
2482 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2484 2014-07-28 Doug Evans <xdje42@gmail.com>
2487 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2488 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2491 2014-07-28 Will Newton <will.newton@linaro.org>
2493 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2494 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2495 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2496 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2497 (THUMB2_EABI_SYSCALL): Likewise.
2498 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2500 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2501 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2503 2014-07-27 Doug Evans <xdje42@gmail.com>
2505 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2507 2014-07-27 Doug Evans <xdje42@gmail.com>
2509 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2511 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2512 Doug Evans <xdje42@gmail.com>
2515 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2516 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2517 * configure.ac: Try to use guild to compile an scm file, if it fails
2518 then disable guile support.
2519 * configure: Regenerate.
2520 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2522 (GUILE_COMPILED_FILES): New variable.
2523 (GUILE_FILES) Update.
2524 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2525 (stamp-guile): Compile scm files.
2526 * guile/guile.c (boot_guile_support): New function.
2527 (standard_throw_args_p): New function.
2528 (print_standard_throw_error, print_throw_error): New functions.
2529 (handle_boot_error): New function.
2530 (initialize_scheme_side): Rewrite to call boot_guile_support.
2531 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2532 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2534 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2535 Doug Evans <xdje42@gmail.com>
2538 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2539 * guile/lib/gdb/support.scm: New file.
2540 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2541 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2543 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2545 (%assert-type): Ditto, and renamed to assert-type.
2546 (%exception-print-style): Delete.
2548 2014-07-26 Doug Evans <xdje42@gmail.com>
2551 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2552 * configure: Regenerate.
2553 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2555 (PYTHON_FILES): New variable.
2556 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2557 (GUILE_FILES): New variable.
2558 (stamp-python, install-python, uninstall-python): Handle empty
2560 (stamp-guile, install-guile, uninstall-guile): Ditto.
2562 2014-07-26 Doug Evans <xdje42@gmail.com>
2565 * guile/lib/gdb.scm (pretty-printers): Export.
2566 (set-pretty-printers!): Export.
2567 * guile/lib/gdb/printing.scm (gdb module): Update.
2568 (prepend-pretty-printer!, append-pretty-printer!): Update.
2569 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2570 (pretty_printer_list_var): Delete.
2571 (pretty_printer_list): New static global.
2572 (gdbscm_pretty_printers): New function.
2573 (gdbscm_set_pretty_printers_x): New function.
2574 (ppscm_find_pretty_printer_from_gdb): Update.
2575 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2576 (gdbscm_initialize_pretty_printers): Update.
2578 2014-07-26 Doug Evans <xdje42@gmail.com>
2581 * configure.ac: Add check for header gc/gc.h.
2582 Add check for function setenv.
2583 * configure: Regenerate.
2584 * config.in: Regenerate.
2585 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2587 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2589 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2590 variation in gdbarch matching.
2592 2014-07-25 Tom Tromey <tromey@redhat.com>
2594 * exec.c (using_exec_ops): Remove.
2595 (exec_close_1): Update. Remove extraneous block, reindent.
2596 (add_target_sections): Use target_is_pushed.
2598 2014-07-25 Pedro Alves <palves@redhat.com>
2600 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2601 * monitor.c (monitor_create_inferior): Likewise.
2602 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2603 * remote-sim.c (gdbsim_create_inferior): Likewise.
2604 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2605 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2606 * windows-nat.c (do_initial_windows_stuff): Likewise.
2608 2014-07-25 Pedro Alves <palves@redhat.com>
2610 * NEWS: Mention signal passing and "signal" command changes.
2611 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2613 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2615 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2616 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2617 (jump_command): Adjust clear_proceed_status call.
2618 (signal_command): Warn if other thread that are resumed have
2619 signals that will be delivered. Adjust clear_proceed_status call.
2620 (until_next_command, finish_command)
2621 (proceed_after_attach_callback, attach_command_post_wait)
2622 (attach_command): Adjust clear_proceed_status call.
2623 * infrun.c (proceed_after_vfork_done): Likewise.
2624 (proceed_after_attach_callback): Adjust comment.
2625 (clear_proceed_status_thread): Clear stop_signal if not in pass
2627 (clear_proceed_status_callback): Delete.
2628 (clear_proceed_status): New 'step' parameter. Only clear the
2629 proceed status of threads the command being prepared is about to
2631 (proceed): If passed in an explicit signal, override stop_signal
2632 with it. Don't pass the last stop signal to the thread we're
2634 (init_wait_for_inferior): Adjust clear_proceed_status call.
2635 (switch_back_to_stepped_thread): Clear the signal if it should not
2637 * infrun.h (clear_proceed_status): New 'step' parameter.
2638 (user_visible_resume_ptid): Add comment.
2639 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2640 signal is in pass state.
2641 * remote.c (append_pending_thread_resumptions): Likewise.
2642 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2644 2014-07-25 Tom Tromey <tromey@redhat.com>
2646 * target.h (target_stopped_data_address)
2647 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2650 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2652 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2654 (avr_pointer_to_address): Likewise.
2656 2014-07-24 Tom Tromey <tromey@redhat.com>
2658 * monitor.c (compile_pattern): Update.
2659 * target.h (struct target_ops) <to_shortname, to_longname,
2662 2014-07-24 Tom Tromey <tromey@redhat.com>
2664 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2665 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2666 (add_info_alias, add_com): Make "doc" const.
2667 (print_doc_line): Make "str" const.
2668 (delete_cmd): Update.
2669 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2670 (print_doc_line): Update.
2671 * cli/cli-script.c (document_command): Update.
2672 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2673 (add_com, add_info, add_info_alias): Update.
2674 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2675 * python/py-cmd.c (cmdpy_destroyer): Update.
2677 2014-07-24 Tom Tromey <tromey@redhat.com>
2679 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2680 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2681 (help_cmd_list): Constify.
2682 (lookup_cmd): Update.
2683 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2685 (help_cmd_list, apropos_cmd): Update.
2686 * cli/cli-script.c (show_user): Update.
2687 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2688 * cli/cli-setshow.h (cmd_show_list): Update.
2689 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2690 (cmd_show_list): Update.
2691 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2692 * python/py-cmd.c (cmdpy_destroyer): Update.
2694 2014-07-24 Tom Tromey <tromey@redhat.com>
2696 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2697 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2699 * command.h (deprecate_cmd): Update.
2700 * maint.c (maintenance_do_deprecate): Add casts.
2702 2014-07-24 Tom Tromey <tromey@redhat.com>
2704 * cli/cli-decode.c (help_cmd): Make parameter "const".
2705 * cli/cli-decode.h (help_cmd): Update.
2707 2014-07-24 Tom Tromey <tromey@redhat.com>
2709 * stack.c (up_silently_base, down_silently_base): Make argument
2712 2014-07-24 Tom Tromey <tromey@redhat.com>
2714 * solib.c (solib_add): Make "pattern" const.
2715 * solib.h (solib_add): Update.
2717 2014-07-24 Tom Tromey <tromey@redhat.com>
2719 * remote.c (remote_serial_open, print_packet, putpkt)
2720 (putpkt_binary): Constify.
2721 * remote.h (putpkt): Update.
2723 2014-07-24 Tom Tromey <tromey@redhat.com>
2725 * monitor.c (monitor_open): Make "args" const.
2726 * monitor.h (monitor_open): Update.
2728 2014-07-24 Tom Tromey <tromey@redhat.com>
2730 * maint.c (match_bfd_flags): Make "string" const.
2731 (print_bfd_section_info): Remove casts.
2732 (print_objfile_section_info): Make "string" const.
2734 2014-07-24 Tom Tromey <tromey@redhat.com>
2736 * inf-child.c (inf_child_open_target): Make "arg" const.
2737 * inf-child.h (inf_child_open_target): Update.
2739 2014-07-24 Tom Tromey <tromey@redhat.com>
2741 * environ.c (unset_in_environ): Make "var" const.
2742 * environ.h (unset_in_environ): Update.
2744 2014-07-24 Tom Tromey <tromey@redhat.com>
2746 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2748 (scan_filename_with_cleanup): Likewise.
2749 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2750 Make arguments const.
2751 (restore_command): Update.
2753 2014-07-24 Pedro Alves <palves@redhat.com>
2755 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2757 2014-07-24 Tom Tromey <tromey@redhat.com>
2758 Gary Benson <gbenson@redhat.com>
2760 * nat/linux-ptrace.c (additional_flags): New global.
2761 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2762 additional_flags; don't check GDBSERVER.
2763 (linux_ptrace_set_additional_flags): New function.
2764 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2766 * linux-nat.c (_initialize_linux_nat): Call
2767 linux_ptrace_set_additional_flags.
2769 2014-07-24 Tom Tromey <tromey@redhat.com>
2771 * make-target-delegates (munge_type, write_debugmethod): New
2773 (debug_names): New global.
2774 ($TARGET_DEBUG_PRINTER): New global.
2775 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2777 Write debug methods. Generate init_debug_target.
2778 * target-debug.h: New file.
2779 * target-delegates.c: Rebuild.
2780 * target.c: Include target-debug.h.
2781 (debug_target): Hoist definition.
2782 (target_kill, target_get_section_table, target_memory_map)
2783 (target_flash_erase, target_flash_done, target_detach)
2784 (target_disconnect, target_wait, target_resume)
2785 (target_pass_signals, target_program_signals, target_follow_fork)
2786 (target_mourn_inferior, target_search_memory)
2787 (target_thread_address_space, target_close)
2788 (target_find_new_threads, target_core_of_thread)
2789 (target_verify_memory, target_insert_mask_watchpoint)
2790 (target_remove_mask_watchpoint): Remove targetdebug code.
2791 (debug_to_post_attach, debug_to_prepare_to_store)
2792 (debug_to_files_info, debug_to_insert_breakpoint)
2793 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2794 (debug_to_region_ok_for_hw_watchpoint)
2795 (debug_to_can_accel_watchpoint_condition)
2796 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2797 (debug_to_watchpoint_addr_within_range)
2798 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2799 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2800 (debug_to_terminal_init, debug_to_terminal_inferior)
2801 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2802 (debug_to_terminal_save_ours, debug_to_terminal_info)
2803 (debug_to_load, debug_to_post_startup_inferior)
2804 (debug_to_insert_fork_catchpoint)
2805 (debug_to_remove_fork_catchpoint)
2806 (debug_to_insert_vfork_catchpoint)
2807 (debug_to_remove_vfork_catchpoint)
2808 (debug_to_insert_exec_catchpoint)
2809 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2810 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2811 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2812 (setup_target_debug): Call init_debug_target.
2813 * target.h (TARGET_DEBUG_PRINTER): New macro.
2814 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2815 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2817 2014-07-24 Gary Benson <gbenson@redhat.com>
2819 * exceptions.h (throw_vfatal): Renamed to...
2820 (throw_vquit): New declaration.
2821 (throw_quit): Likewise.
2822 * exceptions.c (throw_vfatal): Renamed to...
2823 (throw_vquit): New function.
2824 (throw_quit): Likewise.
2825 (throw_error): Call throw_verror rather than throw_it.
2826 * utils.h (vfatal): Removed.
2828 * utils.c (vfatal): Removed.
2830 (internal_verror): Replaced call to fatal with call to throw_quit.
2831 (quit): Replaced calls to fatal with calls to throw_quit.
2833 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2835 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2838 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2840 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2841 less than zero in conditional expression.
2843 2014-07-23 Tom Tromey <tromey@redhat.com>
2845 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2846 ($INTRO_PART): Don't match whitespace.
2847 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2849 ($METHOD): Add $METHOD_TRAILER.
2851 (scan_target_h): New sub.
2852 Change main loop not to collect state.
2853 * target-delegates.c: Rebuild.
2855 2014-07-23 Gary Benson <gbenson@redhat.com>
2857 * cp-support.c (gdb_demangle): Fix build on systems without
2860 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2862 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2863 for reference entry value target data value.
2865 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2867 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2868 value_available_contents_eq.
2870 2014-07-22 Pedro Alves <palves@redhat.com>
2872 * value.c (allocate_optimized_out_value): Don't mark value as
2875 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2877 * MAINTAINERS (Write After Approval): Update my email address.
2879 2014-07-20 Doug Evans <dje@google.com>
2882 * remote.c (putpkt_binary): Add text to error message.
2884 2014-07-20 Yao Qi <yao@codesourcery.com>
2886 * eval.c: Remove "Chill" from comments.
2887 * gdbtypes.h: Likewise.
2888 * symtab.h: Likewise.
2890 2014-07-20 Yao Qi <yao@codesourcery.com>
2892 * std-operator.def: Update comments to TERNOP_SLICE.
2894 2014-07-20 Yao Qi <yao@codesourcery.com>
2896 * std-operator.def: Remove BINOP_RANGE.
2897 * breakpoint.c (watchpoint_exp_is_const): Update.
2898 * expprint.c (dump_subexp_body_standard): Likewise.
2899 * eval.c (init_array_element): Remove dead code.
2900 (evaluate_subexp_standard): Likewise.
2902 2014-07-20 Yao Qi <yao@codesourcery.com>
2904 * std-operator.def: Remove BINOP_IN.
2905 * breakpoint.c (watchpoint_exp_is_const): Update.
2906 * eval.c (evaluate_subexp_standard): Likewise.
2907 * expprint.c (dump_subexp_body_standard): Likewise.
2909 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2911 * microblaze-tdep.c (microblaze_register_names): Add
2912 the rshr and rslr register names.
2913 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2914 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2915 Use of tdesc_numbered_register. Use of
2916 microblaze_register_g_packet_guesses. Use of
2917 tdesc_use_registers. Use of set_gdbarch_register_type.
2918 (microblaze_register_g_packet_guesses): New.
2919 * microblaze-tdep.h (microblaze_reg_num): Add
2920 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2921 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2922 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2923 * features/microblaze-core.xml: New file.
2924 * features/microblaze-stack-protect.xml: New file.
2925 * features/microblaze-with-stack-protect.c: New file.
2926 * features/microblaze-with-stack-protect.xml: New file.
2927 * features/microblaze.xml: New file.
2928 * features/microblaze.c: New file.
2929 * features/Makefile (microblaze-with-stack-protect): Add
2930 microblaze-with-stack-protect microblaze and microblaze-expedite.
2931 * regformats/microblaze-with-stack-protect.dat: New file.
2932 * regformats/microblaze.dat: New file.
2933 * doc/gdb.texinfo (MicroBlaze Features): Added.
2935 2014-07-18 Tom Tromey <tromey@redhat.com>
2937 * exec.c (exec_ops): Now static.
2938 * exec.h (exec_ops): Don't declare.
2940 2014-07-18 Tom Tromey <tromey@redhat.com>
2942 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2943 to find_target_beneath.
2944 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2945 find_target_beneath.
2946 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2948 2014-07-18 Tom Tromey <tromey@redhat.com>
2951 * utils.c (quit): Use target_supports_terminal_ours.
2952 * target.h (target_supports_terminal_ours): Declare.
2953 * target.c (target_supports_delete_record): Don't check
2954 to_delete_record against NULL.
2955 (target_supports_terminal_ours): New function.
2957 2014-07-18 Tom Tromey <tromey@redhat.com>
2960 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2961 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2962 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2963 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2964 * windows-nat.c (windows_xfer_partial): Always delegate.
2965 * record-btrace.c (record_btrace_xfer_partial): Simplify
2967 (record_btrace_fetch_registers, record_btrace_store_registers)
2968 (record_btrace_prepare_to_store, record_btrace_resume)
2969 (record_btrace_wait, record_btrace_find_new_threads)
2970 (record_btrace_thread_alive): Likewise.
2971 * procfs.c (procfs_xfer_partial): Always delegate.
2972 * corelow.c (core_xfer_partial): Always delegate.
2973 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2975 2014-07-18 Tom Tromey <tromey@redhat.com>
2977 * exec.c (exec_make_note_section): Move earlier.
2979 2014-07-17 Doug Evans <dje@google.com>
2982 * maint.c (count_symtabs_and_blocks): Handle NULL
2983 current_program_space.
2984 (report_command_stats): Check global enabled flag in addition to
2985 recorded enabled flag.
2986 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2988 2014-07-16 Pedro Alves <palves@redhat.com>
2990 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2992 2014-07-16 Tom Tromey <tromey@redhat.com>
2994 * target.h (struct target_ops) <to_delete_record>: Reformat
2997 2014-07-16 Tom Tromey <tromey@redhat.com>
2999 * target-delegates.c: Rebuild.
3001 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3003 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3004 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3005 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3006 (avr_pointer_to_address): Likewise.
3007 (avr_address_class_type_flags): New function.
3008 (avr_address_class_type_flags_to_name): Likewise.
3009 (avr_address_class_name_to_type_flags): Likewise.
3010 (avr_gdbarch_init): Set address_class_type_flags,
3011 address_class_type_flags_to_name and
3012 address_class_name_to_type_flags.
3014 2014-07-15 Pedro Alves <palves@redhat.com>
3016 * linux-nat.c (kill_callback): Save errno and work with saved
3019 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3021 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3023 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3025 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3026 breakpoint support correctly.
3028 2014-07-14 Pedro Alves <palves@redhat.com>
3030 * utils.c (prompt_for_continue): Call target_terminal_ours.
3032 2014-07-14 Pedro Alves <palves@redhat.com>
3034 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3035 catch_errors. Don't re-enable stdin or notify observers where,
3037 (fetch_inferior_event_wrapper): Delete.
3039 2014-07-14 Pedro Alves <palves@redhat.com>
3042 * top.c: Include "inf-loop.h".
3043 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3045 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3047 (gdb_readline_wrapper): Store whether the target is async, and
3050 2014-07-14 Pedro Alves <palves@redhat.com>
3053 * top.c (gdb_readline_wrapper_line): Tweak comment.
3054 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3055 the input handler callback.
3057 2014-07-14 Pedro Alves <palves@redhat.com>
3060 * main.c: Include event-top.h.
3061 (handle_command_errors): New function.
3062 (catch_command_errors, catch_command_errors_const): Use it.
3064 2014-07-14 Pedro Alves <palves@redhat.com>
3066 * exceptions.c (catch_command_errors, catch_command_errors_const):
3068 * exceptions.h (catch_command_errors_ftype)
3069 (catch_command_errors_const_ftype): Moved to main.c.
3070 (catch_command_errors, catch_command_errors_const): Delete
3072 * main.c (catch_command_errors_ftype)
3073 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3074 (catch_command_errors, catch_command_errors_const)): Moved here
3075 from exceptions.c and make static.
3077 2014-07-14 Pedro Alves <palves@redhat.com>
3079 * exceptions.c (print_any_exception): Delete.
3080 (catch_exceptions_with_msg): Use exception_print instead of
3081 print_any_exception.
3082 (catch_errors): Use exception_fprintf instead of
3083 print_any_exception.
3084 (catch_command_errors, catch_command_errors_const): Use
3085 exception_print instead of print_any_exception.
3087 2014-07-14 Pedro Alves <palves@redhat.com>
3089 * infcall.c (run_inferior_call): Set 'sync_execution' while
3090 running the inferior call.
3092 2014-07-14 Pedro Alves <palves@redhat.com>
3094 * value.c (value_contents_equal): Delete function.
3095 * value.h (value_contents_equal): Delete declaration.
3097 2014-07-14 Tom Tromey <tromey@redhat.com>
3100 * gdbtypes.c (is_dynamic_type_internal): New function, from
3102 (is_dynamic_type): Rewrite.
3103 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3104 (resolve_dynamic_struct): Likewise.
3105 (resolve_dynamic_type_internal): New function, from
3106 resolve_dynamic_type.
3107 (resolve_dynamic_type): Rewrite.
3109 2014-07-14 Tom Tromey <tromey@redhat.com>
3111 * target.c (target_require_runnable): Also check record_stratum.
3114 2014-07-11 Yao Qi <yao@codesourcery.com>
3116 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3117 thumb_instruction_restores_sp return true.
3119 2014-07-11 Yao Qi <yao@codesourcery.com>
3121 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3122 (thumb_in_function_epilogue_p): Call
3123 thumb_instruction_restores_sp.
3125 2014-07-11 Yao Qi <yao@codesourcery.com>
3127 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3129 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3131 2014-07-11 Gary Benson <gbenson@redhat.com>
3133 * amd64-linux-nat.c (gdbcore.h): Remove include.
3134 (regset.h): Likewise.
3135 (nat/linux-btrace.h): Likewise.
3136 (btrace.h): Likewise.
3137 (gdb_assert.h): Likewise.
3138 (string.h): Likewise.
3139 (sys/uio.h): Likewise.
3140 (sys/debugreg.h): Likewise.
3141 (sys/syscall.h): Likewise.
3142 (sys/procfs.h): Likewise.
3143 (sys/user.h): Likewise.
3144 (asm/ptrace.h): Likewise.
3145 (i386-nat.h): Likewise.
3146 * i386-linux-nat.c (i386-nat.h): Likewise.
3147 (regset.h): Likewise.
3148 (target.h): Likewise.
3149 (linux-nat.h): Likewise.
3150 (nat/linux-btrace.h): Likewise.
3151 (btrace.h): Likewise.
3152 (gdb_assert.h): Likewise.
3153 (string.h): Likewise.
3154 (sys/uio.h): Likewise.
3155 (sys/user.h): Likewise.
3156 (sys/procfs.h): Likewise.
3157 (sys/reg.h): Likewise.
3158 (sys/debugreg.h): Likewise.
3159 (ORIG_EAX): Remove definition.
3161 2014-07-11 Gary Benson <gbenson@redhat.com>
3163 * i386-linux-nat.h: New file.
3164 * x86-linux-nat.h: Likewise.
3165 * x86-linux-nat.c: Likewise.
3166 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3167 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3168 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3169 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3170 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3171 (PTRACE_SETREGSET): Likewise.
3172 (arch_lwp_info): Now in x86-linux-nat.c.
3173 (have_ptrace_getregset): Now in x86-linux-nat.h.
3174 (x86_linux_dr_get): Now in x86-linux-nat.c.
3175 (x86_linux_dr_set): Likewise.
3176 (x86_linux_dr_get_addr): Likewise.
3177 (x86_linux_dr_get_control): Likewise.
3178 (x86_linux_dr_get_status): Likewise.
3179 (update_debug_registers_callback): Likewise.
3180 (x86_linux_dr_set_control): Likewise.
3181 (x86_linux_dr_set_addr): Likewise.
3182 (x86_linux_prepare_to_resume): Likewise.
3183 (x86_linux_new_thread): Likewise.
3184 (x86_linux_new_fork): Likewise.
3185 (x86_linux_get_thread_area): Likewise.
3186 (super_post_startup_inferior): Likewise.
3187 (x86_linux_child_post_startup_inferior): Likewise.
3188 (AMD64_LINUX_USER64_CS): Likewise.
3189 (AMD64_LINUX_X32_DS): Likewise.
3190 (x86_linux_read_description): Likewise.
3191 (x86_linux_enable_btrace): Likewise.
3192 (x86_linux_disable_btrace): Likewise.
3193 (x86_linux_teardown_btrace): Likewise.
3194 (x86_linux_read_btrace): Likewise.
3195 (x86_linux_create_target): Likewise.
3196 (x86_linux_add_target): Likewise.
3197 * i386-linux-nat.c (x86-linux-nat.h): New include.
3198 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3199 (PTRACE_SETREGSET): Likewise.
3200 (arch_lwp_info): Now in x86-linux-nat.c.
3201 (have_ptrace_getregset): Now in x86-linux-nat.h.
3202 (x86_linux_dr_get): Now in x86-linux-nat.c.
3203 (x86_linux_dr_set): Likewise.
3204 (x86_linux_dr_get_addr): Likewise.
3205 (x86_linux_dr_get_control): Likewise.
3206 (x86_linux_dr_get_status): Likewise.
3207 (update_debug_registers_callback): Likewise.
3208 (x86_linux_dr_set_control): Likewise.
3209 (x86_linux_dr_set_addr): Likewise.
3210 (x86_linux_prepare_to_resume): Likewise.
3211 (x86_linux_new_thread): Likewise.
3212 (x86_linux_new_fork): Likewise.
3213 (x86_linux_get_thread_area): Likewise.
3214 (super_post_startup_inferior): Likewise.
3215 (x86_linux_child_post_startup_inferior): Likewise.
3216 (AMD64_LINUX_USER64_CS): Likewise.
3217 (AMD64_LINUX_X32_DS): Likewise.
3218 (x86_linux_read_description): Likewise.
3219 (x86_linux_enable_btrace): Likewise.
3220 (x86_linux_disable_btrace): Likewise.
3221 (x86_linux_teardown_btrace): Likewise.
3222 (x86_linux_read_btrace): Likewise.
3223 (x86_linux_create_target): Likewise.
3224 (x86_linux_add_target): Likewise.
3226 2014-07-11 Gary Benson <gbenson@redhat.com>
3228 * amd64-linux-nat.c: Comment and whitespace changes.
3229 * i386-linux-nat.c: Comment and whitespace changes.
3231 2014-07-11 Gary Benson <gbenson@redhat.com>
3233 * amd64-linux-nat.c (x86_linux_create_target): New function.
3234 (x86_linux_add_target): Likewise.
3235 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3236 * i386-linux-nat.c (x86_linux_create_target): New function.
3237 (x86_linux_add_target): Likewise.
3238 (_initialize_i386_linux_nat): Delegate to the above new functions.
3240 2014-07-11 Gary Benson <gbenson@redhat.com>
3242 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3243 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3244 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3245 (ps_get_thread_area): Delegate to the above.
3247 2014-07-11 Gary Benson <gbenson@redhat.com>
3249 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3250 x86_linux_read_description. All uses updated. amd64-specific
3251 code conditionalized. Conditionalized i386-specific code added.
3252 Redundant cast removed.
3253 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3254 x86_linux_read_description. All uses updated. i386-specific
3255 code conditionalized. Conditionalized amd64-specific code added.
3256 One sizeof replaced with the actual type it is describing.
3258 2014-07-11 Gary Benson <gbenson@redhat.com>
3260 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3261 x86_linux_dr_get. All uses updated.
3262 (amd64_linux_dr_set): Renamed to
3263 x86_linux_dr_set. All uses updated.
3264 (amd64_linux_dr_get_addr): Renamed to
3265 x86_linux_dr_get_addr. All uses updated.
3266 (amd64_linux_dr_get_control): Renamed to
3267 x86_linux_dr_get_control. All uses updated.
3268 (amd64_linux_dr_get_status): Renamed to
3269 x86_linux_dr_get_status. All uses updated.
3270 (amd64_linux_dr_set_control): Renamed to
3271 x86_linux_dr_set_control. All uses updated.
3272 (amd64_linux_dr_set_addr): Renamed to
3273 x86_linux_dr_set_addr. All uses updated.
3274 (amd64_linux_prepare_to_resume): Renamed to
3275 x86_linux_prepare_to_resume. All uses updated.
3276 (amd64_linux_new_thread): Renamed to
3277 x86_linux_new_thread. All uses updated.
3278 (amd64_linux_new_fork): Renamed to
3279 x86_linux_new_fork. All uses updated.
3280 (amd64_linux_child_post_startup_inferior): Renamed to
3281 x86_linux_child_post_startup_inferior. All uses updated.
3282 (amd64_linux_enable_btrace): Renamed to
3283 x86_linux_enable_btrace. All uses updated.
3284 (amd64_linux_disable_btrace): Renamed to
3285 x86_linux_disable_btrace. All uses updated.
3286 (amd64_linux_teardown_btrace): Renamed to
3287 x86_linux_teardown_btrace. All uses updated.
3288 (amd64_linux_read_btrace): Renamed to
3289 x86_linux_read_btrace. All uses updated.
3290 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3291 x86_linux_dr_get. All uses updated.
3292 (i386_linux_dr_set): Renamed to
3293 x86_linux_dr_set. All uses updated.
3294 (i386_linux_dr_get_addr): Renamed to
3295 x86_linux_dr_get_addr. All uses updated.
3296 (i386_linux_dr_get_control): Renamed to
3297 x86_linux_dr_get_control. All uses updated.
3298 (i386_linux_dr_get_status): Renamed to
3299 x86_linux_dr_get_status. All uses updated.
3300 (i386_linux_dr_set_control): Renamed to
3301 x86_linux_dr_set_control. All uses updated.
3302 (i386_linux_dr_set_addr): Renamed to
3303 x86_linux_dr_set_addr. All uses updated.
3304 (i386_linux_prepare_to_resume): Renamed to
3305 x86_linux_prepare_to_resume. All uses updated.
3306 (i386_linux_new_thread): Renamed to
3307 x86_linux_new_thread. All uses updated.
3308 (i386_linux_new_fork): Renamed to
3309 x86_linux_new_fork. All uses updated.
3310 (i386_linux_child_post_startup_inferior): Renamed to
3311 x86_linux_child_post_startup_inferior. All uses updated.
3312 (i386_linux_enable_btrace): Renamed to
3313 x86_linux_enable_btrace. All uses updated.
3314 (i386_linux_disable_btrace): Renamed to
3315 x86_linux_disable_btrace. All uses updated.
3316 (i386_linux_teardown_btrace): Renamed to
3317 x86_linux_teardown_btrace. All uses updated.
3318 (i386_linux_read_btrace): Renamed to
3319 x86_linux_read_btrace. All uses updated.
3321 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3323 * remote.c (extended_remote_post_attach): New function.
3324 (init_extended_remote_ops): Install it as to_post_attach method.
3326 2014-07-09 Pedro Alves <palves@redhat.com>
3328 * infcmd.c (attach_command_post_wait): Don't call
3329 target_terminal_inferior here.
3330 (attach_command): Call it here instead.
3332 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3334 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3336 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3337 from varobj.c, with additional checks.
3338 (c_varobj_ops): Fill in is_path_expr_parent field.
3339 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3340 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3342 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3344 (varobj_default_is_path_expr_parent): New function.
3345 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3346 (varobj_default_is_path_expr_parent): Declare new function.
3348 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3350 * infcmd.c (finish_backward): Turn internal error into normal error.
3352 2014-07-07 Pedro Alves <palves@redhat.com>
3355 * remote.c (async_handle_remote_sigint)
3356 (async_handle_remote_sigint_twice): Call
3357 gdb_call_async_signal_handler instead of
3358 mark_async_signal_handler.
3360 2014-07-07 Tom Tromey <tromey@redhat.com>
3362 * target-delegates.c: Rebuild.
3363 * target.c (target_info_record): Remove.
3364 * record.c (info_record_command): Unconditionally call
3366 * target.h (struct target_ops) <to_info_record>: Use
3367 TARGET_DEFAULT_IGNORE.
3368 (target_info_record): Remove.
3370 2014-07-07 Tom Tromey <tromey@redhat.com>
3372 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3373 TARGET_DEFAULT_NORETURN.
3374 * target.c (generic_tls_error): New function.
3375 (target_translate_tls_address): Don't search target stack.
3376 * target-delegates.c: Rebuild.
3377 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3379 * linux-thread-db.c (thread_db_get_thread_local_address):
3380 Unconditionally call beneath target.
3382 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3384 * cli/cli-logging.c (pop_output_files): Assign targerr to
3387 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3389 * MAINTAINERS (Write After Approval): Update my email address.
3391 2014-07-02 Gary Benson <gbenson@redhat.com>
3393 * proc-service.c (ps_xfer_memory): Update comment.
3394 (ps_pstop): Remove unused function.
3395 (ps_pcontinue): Likewise.
3396 (ps_lstop): Likewise.
3397 (ps_lcontinue): Likewise.
3398 (ps_lgetxregsize): Likewise.
3399 (ps_lgetxregs): Likewise.
3400 (ps_lsetxregs): Likewise.
3401 (ps_plog): Likewise.
3402 (ps_ptread): Likewise.
3403 (ps_ptwrite): Likewise.
3405 2014-07-01 Mark Wielaard <mjw@redhat.com>
3407 * dwarf2read.c (add_array_cv_type): New function.
3408 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3409 (read_tag_volatile_type): Likewise.
3411 2014-07-01 Tom Tromey <tromey@redhat.com>
3413 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3414 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3415 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3416 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3417 * command.h (cmd_cfunc_ftype): Move earlier.
3418 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3419 (add_com, add_info): Use cmd_cfunc_ftype.
3421 2014-06-30 Tom Tromey <tromey@redhat.com>
3423 * symtab.c (operator_chars): Make parameters and return type
3425 (file_matches): Make "files" const.
3426 (struct search_symbols_data) <files>: Now const.
3427 (search_symbols): Make "regexp" and "files" parameters const.
3429 (symtab_symbol_info): Remove cast.
3430 (rbreak_command): Update.
3431 * symtab.h (search_symbols): Update.
3433 2014-06-27 Yao Qi <yao@codesourcery.com>
3435 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3436 Change parameter type to 'struct thread_info *'. Caller
3438 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3440 * dummy-frame.c (struct dummy_frame_id): New.
3441 (dummy_frame_id_eq): New function.
3442 (struct dummy_frame) <id>: Change its type to 'struct
3444 (dummy_frame_push): Add parameter ptid and save it in
3446 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3448 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3450 (lookup_dummy_frame): Change parameter type to 'struct
3451 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3452 instead of frame_id_eq.
3453 (dummy_frame_pop): Add parameter ptid. Callers updated.
3454 Update comments. Compose dummy_frame_id and pass it to
3456 (dummy_frame_discard): Add parameter ptid.
3457 (dummy_frame_sniffer): Compose dummy_frame_id and call
3458 dummy_frame_id_eq instead of frame_id_eq.
3459 (fprint_dummy_frames): Print ptid.
3460 * dummy-frame.h: Remove comments.
3461 (dummy_frame_push): Add ptid in declaration.
3462 (dummy_frame_pop, dummy_frame_discard): Likewise.
3464 2014-06-26 Tom Tromey <tromey@redhat.com>
3466 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3467 * command.h (error_no_arg): Update.
3469 2014-06-26 Tom Tromey <tromey@redhat.com>
3471 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3472 (do_show_command): Make "arg" const.
3473 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3475 2014-06-26 Tom Tromey <tromey@redhat.com>
3477 * record-full.c (record_full_get_bookmark): Make "args" const.
3478 (record_full_goto_bookmark): Make "raw_bookmark" const.
3479 * record.c (record_goto): New function.
3480 (cmd_record_goto): Use it. Now static.
3481 * record.h (record_goto): Declare.
3482 (cmd_record_goto): Remove declaration.
3483 * target-delegates.c: Rebuild.
3484 * target.h (struct target_ops) <to_get_bookmark,
3485 to_goto_bookmark>: Make parameter const.
3487 2014-06-26 Tom Tromey <tromey@redhat.com>
3489 * defs.h (generic_load): Update.
3490 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3491 * monitor.c (monitor_load): Make "args" const.
3492 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3493 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3495 (mips_load): Make "file" const.
3496 * remote-sim.c (gdbsim_load): Make "args" const.
3497 * remote.c (remote_load): Make "name" const.
3498 * symfile.c (generic_load): Make "args" const.
3499 * target-delegates.c: Rebuild.
3500 * target.c (target_load): Make "arg" const.
3501 (debug_to_load): Make "args" const.
3502 * target.h (struct target_ops) <to_load>: Make parameter const.
3503 (target_load): Update.
3505 2014-06-26 Tom Tromey <tromey@redhat.com>
3508 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3509 (dwarf2_physname, read_partial_die)
3510 (guess_partial_die_structure_name, fixup_partial_die)
3511 (guess_full_die_structure_name, anonymous_struct_prefix)
3512 (dwarf2_name): Use per-BFD obstack.
3514 2014-06-26 Yao Qi <yao@codesourcery.com>
3516 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3517 dummyframe and this_id into inner block below.
3519 2014-06-26 Yao Qi <yao@codesourcery.com>
3521 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3522 with "signal_pass[0]" in the initialization of signal_pass.
3524 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3526 * record-btrace.c (record_btrace_generating_corefile)
3527 (record_btrace_prepare_to_generate_core)
3528 (record_btrace_done_generating_core): New.
3529 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3530 (record_btrace_store_registers, record_btrace_prepare_to_store):
3531 Forward request when generating a core file.
3532 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3533 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3534 to_done_generating_core.
3536 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3538 * target.h (target_ops) <to_prepare_to_generate_core>
3539 <to_done_generating_core>: New.
3540 (target_prepare_to_generate_core, target_done_generating_core): New.
3541 * target.c (target_prepare_to_generate_core)
3542 (target_done_generating_core): New.
3543 * target-delegates.c: Regenerate.
3544 * gcore.c: (write_gcore_file): Rename to ...
3545 (write_gcore_file_1): ...this.
3546 (write_gcore_file): Call target_prepare_to_generate_core
3547 and target_done_generating_core.
3549 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3551 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3552 * gcore.c (write_gcore_file): Free memory returned from
3553 make_corefile_notes.
3554 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3555 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3557 2014-06-24 Yao Qi <yao@codesourcery.com>
3559 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3560 (arm_linux_init_abi): Set skip_trampoline_code with
3561 gdbarch_skip_trampoline_code instead of
3562 find_solib_trampoline_target.
3564 2014-06-24 Yao Qi <yao@codesourcery.com>
3566 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3567 arm_skip_bx_reg returns non-zero.
3569 2014-06-24 Yao Qi <yao@codesourcery.com>
3571 * arm-tdep.c (arm_skip_bx_reg): New function.
3572 (arm_skip_stub): Call arm_skip_bx_reg.
3574 2014-06-23 Don Breazeal <donb@codesourcery.com>
3576 * MAINTAINERS: Add myself as write-after-approval maintainer.
3578 2014-06-23 Pedro Alves <palves@redhat.com>
3580 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3581 DR_CONTROL before setting DR0..DR3.
3582 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3583 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3584 bits of DR_CONTROL related to the debug register slot being
3585 disabled. If all slots are vacant, clear local slowdown as well,
3586 and assert DR_CONTROL is 0.
3588 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3590 * python/lib/gdb/command/xmethods.py
3591 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3592 current progspace only if the string "progspace" matches LOCUS_RE.
3594 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3596 Fix --with-system-readline with readline-6.3 patch 5.
3597 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3598 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3601 2014-06-20 Tom Tromey <tromey@redhat.com>
3603 * dwarf2read.c (dw2_get_real_path): Use correct type in
3605 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3607 2014-06-20 Gary Benson <gbenson@redhat.com>
3609 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3610 * common/glibc_thread_db.h: Likewise.
3611 * common/i386-cpuid.h: Likewise.
3612 * common/i386-gcc-cpuid.h: Likewise.
3613 * common/linux-btrace.h: Likewise.
3614 * common/linux-osdata.h: Likewise.
3615 * common/linux-procfs.h: Likewise.
3616 * common/linux-ptrace.h: Likewise.
3617 * common/mips-linux-watch.h: Likewise.
3618 * common/linux-btrace.c: Moved to nat.
3619 * common/linux-osdata.c: Likewise.
3620 * common/linux-procfs.c: Likewise.
3621 * common/linux-ptrace.c: Likewise.
3622 * common/mips-linux-watch.c: Likewise.
3623 * nat/gdb_thread_db.h: Moved from common.
3624 * nat/glibc_thread_db.h: Likewise.
3625 * nat/i386-cpuid.h: Likewise.
3626 * nat/i386-gcc-cpuid.h: Likewise.
3627 * nat/linux-btrace.c: Likewise.
3628 * nat/linux-btrace.h: Likewise.
3629 * nat/linux-osdata.c: Likewise.
3630 * nat/linux-osdata.h: Likewise.
3631 * nat/linux-procfs.c: Likewise.
3632 * nat/linux-procfs.h: Likewise.
3633 * nat/linux-ptrace.c: Likewise.
3634 * nat/linux-ptrace.h: Likewise.
3635 * nat/mips-linux-watch.c: Likewise.
3636 * nat/mips-linux-watch.h: Likewise.
3637 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3638 (object file files): Reordered.
3639 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3640 of glibc_thread_db.h.
3642 2014-06-20 Gary Benson <gbenson@redhat.com>
3644 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3645 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3646 (i386_dr_low): Likewise.
3647 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3648 (i386_dr_low_set_addr): Likewise.
3649 (i386_dr_low_get_addr): Likewise.
3650 (i386_dr_low_can_set_control): Likewise.
3651 (i386_dr_low_set_control): Likewise.
3652 (i386_dr_low_get_control): Likewise.
3653 (i386_dr_low_get_status): Likewise.
3654 (i386_get_debug_register_length): Likewise.
3655 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3656 (i386_dr_low): Likewise.
3657 * nat/i386-dregs.c (i386-low.h): Remove include.
3658 (i386-nat.h): Likewise.
3659 (nat/i386-dregs.h): New include.
3660 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3661 (i386_dr_low_set_addr): Likewise.
3662 (i386_dr_low_get_addr): Likewise.
3663 (i386_dr_low_can_set_control): Likewise.
3664 (i386_dr_low_set_control): Likewise.
3665 (i386_dr_low_get_control): Likewise.
3666 (i386_dr_low_get_status): Likewise.
3667 (i386_get_debug_register_length): Likewise.
3668 (debug_hw_points): Likewise.
3670 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3672 * Makefile.in (SFILES): Add d-exp.y.
3673 (YYFILES): Add d-exp.c.
3674 (YYOBJ): Add d-exp.o.
3675 (local-maintainer-clean): Delete d-exp.c.
3676 * d-exp.y: New file.
3677 * d-lang.h (d_parse): New declaration.
3678 (d_error): New declaration.
3679 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3680 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3681 PREC_ORDER operators.
3682 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3684 2014-06-19 Yao Qi <yao@codesourcery.com>
3686 * gdbthread.h (any_running): Remove the declaration.
3687 * thread.c (any_running): Remove.
3689 2014-06-19 Yao Qi <yao@codesourcery.com>
3691 * gdbthread.h (struct thread_info) <state>: Change its type to
3692 'enum thread_state'. Update comments.
3694 2014-06-19 Pedro Alves <palves@redhat.com>
3696 * gdbthread.h (ALL_THREADS): Delete.
3697 (ALL_NON_EXITED_THREADS): New macro.
3698 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3699 instead of ALL_THREADS.
3700 * infrun.c (find_thread_needs_step_over)
3701 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3702 instead of ALL_THREADS.
3703 * record-btrace.c (record_btrace_open)
3704 (record_btrace_stop_recording, record_btrace_close)
3705 (record_btrace_is_replaying, record_btrace_resume)
3706 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3707 * remote.c (append_pending_thread_resumptions): Likewise.
3708 * thread.c (thread_apply_all_command): Likewise.
3710 2014-06-19 Gary Benson <gbenson@redhat.com>
3712 * i386-nat.c (i386_stopped_by_watchpoint):
3713 Use i386_dr_stopped_by_watchpoint.
3714 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3715 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3717 2014-06-19 Gary Benson <gbenson@redhat.com>
3719 * nat/i386-dregs.c: New file.
3720 * Makefile.in (i386-dregs.o): New rule.
3721 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3722 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3723 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3724 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3725 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3726 * config/i386/go32.mh (NATDEPFILES): Likewise.
3727 * config/i386/linux.mh (NATDEPFILES): Likewise.
3728 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3729 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3730 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3731 * i386-nat.h (debug_hw_points): New declaration.
3732 * i386-nat.c (breakpoint.h): Remove include.
3733 (command.h): Likewise.
3734 (target.h): Likewise.
3735 (gdb_assert.h): Likewise.
3736 (debug_hw_points): Made nonstatic.
3737 (debug_printf): Now in i386-dregs.c.
3738 (TARGET_HAS_DR_LEN_8): Likewise.
3739 (DR_CONTROL_SHIFT): Likewise.
3740 (DR_CONTROL_SIZE): Likewise.
3741 (DR_RW_EXECUTE): Likewise.
3742 (DR_RW_WRITE): Likewise.
3743 (DR_RW_READ): Likewise.
3744 (DR_RW_IORW): Likewise.
3745 (DR_LEN_1): Likewise.
3746 (DR_LEN_2): Likewise.
3747 (DR_LEN_4): Likewise.
3748 (DR_LEN_8): Likewise.
3749 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3750 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3751 (DR_ENABLE_SIZE): Likewise.
3752 (DR_LOCAL_SLOWDOWN): Likewise.
3753 (DR_GLOBAL_SLOWDOWN): Likewise.
3754 (DR_CONTROL_RESERVED): Likewise.
3755 (I386_DR_CONTROL_MASK): Likewise.
3756 (I386_DR_VACANT): Likewise.
3757 (I386_DR_LOCAL_ENABLE): Likewise.
3758 (I386_DR_GLOBAL_ENABLE): Likewise.
3759 (I386_DR_DISABLE): Likewise.
3760 (I386_DR_SET_RW_LEN): Likewise.
3761 (I386_DR_GET_RW_LEN): Likewise.
3762 (I386_DR_WATCH_HIT): Likewise.
3763 (i386_wp_op_t): Likewise.
3764 (i386_show_dr): Likewise.
3765 (i386_length_and_rw_bits): Likewise.
3766 (i386_insert_aligned_watchpoint): Likewise.
3767 (i386_remove_aligned_watchpoint): Likewise.
3768 (i386_handle_nonaligned_watchpoint): Likewise.
3769 (i386_update_inferior_debug_regs): Likewise.
3770 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3771 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3772 (i386_region_ok_for_watchpoint):
3773 Use i386_dr_region_ok_for_watchpoint.
3774 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3776 2014-06-19 Gary Benson <gbenson@redhat.com>
3778 * i386-nat.c (i386_insert_hw_breakpoint): Use
3779 i386_insert_watchpoint.
3780 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3782 2014-06-19 Gary Benson <gbenson@redhat.com>
3784 * i386-nat.c (i386_dr_show): Renamed to
3785 i386_show_dr and made static. All uses updated.
3786 (i386_dr_length_and_rw_bits): Renamed to
3787 i386_length_and_rw_bits and made static.
3789 (i386_dr_insert_aligned_watchpoint): Renamed to
3790 i386_insert_aligned_watchpoint and made static.
3792 (i386_dr_remove_aligned_watchpoint): Renamed to
3793 i386_remove_aligned_watchpoint and made static.
3795 (i386_dr_update_inferior_debug_regs): Renamed to
3796 i386_update_inferior_debug_regs and made static.
3798 * nat/i386-dregs.h (i386_dr_show): Removed.
3799 (i386_dr_length_and_rw_bits): Likewise.
3800 (i386_dr_insert_aligned_watchpoint): Likewise.
3801 (i386_dr_remove_aligned_watchpoint): Likewise.
3802 (i386_dr_update_inferior_debug_regs): Likewise.
3804 2014-06-19 Gary Benson <gbenson@redhat.com>
3806 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3807 * configure: Regenerate.
3808 * config.in: Likewise.
3809 * main.c (signal.h): New include.
3810 (setup_alternate_signal_stack): New function.
3811 (captured_main): Call the above.
3812 * cp-support.c (signal.h): New include.
3813 (catch_demangler_crashes): New flag.
3814 (SIGJMP_BUF): New define.
3815 (SIGSETJMP): Likewise.
3816 (SIGLONGJMP): Likewise.
3817 (gdb_demangle_jmp_buf): New static global.
3818 (gdb_demangle_attempt_core_dump): Likewise.
3819 (gdb_demangle_signal_handler): New function.
3820 (gdb_demangle): If catch_demangler_crashes is set, install the
3821 above signal handler before calling bfd_demangle, and restore
3822 the original signal handler afterwards. Display the offending
3823 symbol and call demangler_warning the first time a segmentation
3825 (_initialize_cp_support): New maint set/show command.
3827 2014-06-19 Gary Benson <gbenson@redhat.com>
3829 * utils.h (resource_limit_kind): New enum.
3830 (can_dump_core): New declaration.
3831 (warn_cant_dump_core): Likewise.
3832 (dump_core): Likewise.
3833 * utils.c (dump_core): Made nonstatic. Added new
3834 parameter "limit_kind".
3835 (can_dump_core): Made nonstatic. Moved printing code to...
3836 (warn_cant_dump_core): New function.
3837 (can_dump_core_warn): Likewise.
3838 (internal_vproblem): Replace calls to can_dump_core with
3839 calls to can_dump_core_warn. Supply new argument to each.
3841 2014-06-19 Gary Benson <gbenson@redhat.com>
3843 * utils.h (demangler_vwarning): New declaration.
3844 (demangler_warning): Likewise.
3845 * utils.c (struct internal_problem)
3846 <user_settable_should_quit>: New field.
3847 <user_settable_should_dump_core>: Likewise
3848 (internal_error_problem): Add values for above new fields.
3849 (internal_warning_problem): Likewise.
3850 (demangler_warning_problem): New static global.
3851 (demangler_vwarning): New function.
3852 (demangler_warning): Likewise.
3853 (add_internal_problem_command): Selectively add commands.
3854 (_initialize_utils): New internal problem command.
3855 * maint.c (maintenance_demangler_warning): New function.
3856 (_initialize_maint_cmds): New command.
3858 2014-06-18 Tom Tromey <tromey@redhat.com>
3860 * f-valprint.c (info_common_command_for_block): Update.
3861 * symtab.h (struct general_symbol_info) <common_block>: Now
3864 2014-06-18 Tom Tromey <tromey@redhat.com>
3866 * symtab.h (struct symtab) <blockvector>: Now const.
3867 * ada-lang.c (ada_add_global_exceptions): Update.
3868 * buildsym.c (augment_type_symtab): Update.
3869 * dwarf2read.c (dw2_lookup_symbol): Update.
3870 * jit.c (finalize_symtab): Update.
3871 * jv-lang.c (add_class_symtab_symbol): Update.
3872 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3874 * objfiles.c (objfile_relocate1): Update.
3875 * psymtab.c (lookup_symbol_aux_psymtabs)
3876 (maintenance_check_psymtabs): Update.
3877 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3879 * spu-tdep.c (spu_catch_start): Update.
3880 * symmisc.c (dump_symtab_1): Update.
3881 * symtab.c (lookup_global_symbol_from_objfile)
3882 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3883 (basic_lookup_transparent_type_quick)
3884 (basic_lookup_transparent_type, find_pc_sect_symtab)
3885 (find_pc_sect_line, search_symbols): Update.
3886 * block.c (find_block_in_blockvector): Make "bl" const.
3887 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3889 (blockvector_contains_pc): Make "bv" const.
3890 (block_for_pc_sect): Update.
3891 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3892 (blockvector_contains_pc): Update.
3893 * breakpoint.c (resolve_sal_pc): Update.
3894 * inline-frame.c (block_starting_point_at): Update.
3896 2014-06-18 Tom Tromey <tromey@redhat.com>
3898 * completer.c (complete_line): Make "line_buffer" const.
3899 * completer.h (complete_line): Update.
3901 2014-06-18 Tom Tromey <tromey@redhat.com>
3903 * symtab.c (add_macro_name): Remove unneeded cast.
3905 2014-06-18 Tom Tromey <tromey@redhat.com>
3907 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3908 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3910 2014-06-18 Tom Tromey <tromey@redhat.com>
3912 * probe.c (info_probes_for_ops): Make "arg" const.
3913 * probe.h (info_probes_for_ops): Update.
3915 2014-06-18 Tom Tromey <tromey@redhat.com>
3917 * varobj.c (varobj_create): Update.
3918 * valops.c (value_of_this): Update.
3919 * tracepoint.c (add_local_symbols, scope_info): Update.
3920 * symtab.h (struct general_symbol_info) <block>: Now const.
3921 * symtab.c (skip_prologue_sal)
3922 (default_make_symbol_completion_list_break_on)
3923 (skip_prologue_using_sal): Update.
3924 * stack.h (iterate_over_block_locals)
3925 (iterate_over_block_local_vars): Update.
3926 * stack.c (print_frame_args): Update.
3927 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3929 (get_selected_block): Make return type const.
3930 * python/py-frame.c (frapy_block): Update.
3931 * python/py-block.c (gdbpy_block_for_pc): Update.
3932 * p-exp.y (%union) <bval>: Now const.
3933 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3934 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3935 * m2-exp.y (%union) <bval>: Now const.
3936 * linespec.c (get_current_search_block): Make return type const.
3937 (create_sals_line_offset, find_label_symbols): Update.
3938 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3940 (block_starting_point_at): Make "block" const.
3941 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3942 (check_exception_resume): Update.
3943 * guile/scm-frame.c (gdbscm_frame_block): Update.
3944 * guile/scm-block.c (gdbscm_lookup_block): Update.
3945 * frame.h (get_frame_block): Update.
3946 (get_selected_block): Make return type const.
3947 * frame.c (frame_id_inner): Update.
3948 * f-valprint.c (info_common_command_for_block)
3949 (info_common_command): Update.
3950 * dwarf2loc.c (dwarf2_find_location_expression)
3951 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3952 (locexpr_describe_location_piece): Update.
3953 * c-exp.y (%union) <bval>: Now const.
3954 * breakpoint.c (resolve_sal_pc): Update.
3955 * blockframe.c (get_frame_block):Make return type const.
3956 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3957 (block_innermost_frame): Update.
3958 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3959 (block_for_pc, block_for_pc_sect): Update.
3960 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3962 (block_for_pc_sect, block_for_pc): Make return type const.
3963 * ax-gdb.c (gen_expr): Update.
3964 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3965 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3966 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3967 (ada_read_var_value): Update.
3968 * ada-exp.y (struct name_info) <block>: Now const.
3970 (block_lookup): Constify.
3972 2014-06-18 Gary Benson <gbenson@redhat.com>
3974 * nat/i386-dregs.h: New file.
3975 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3976 * i386-nat.h (i386-dregs.h): New include.
3977 (DR_FIRSTADDR): Now in i386-dregs.h.
3978 (DR_LASTADDR): Likewise.
3979 (DR_NADDR): Likewise.
3980 (DR_STATUS): Likewise.
3981 (DR_CONTROL): Likewise.
3982 (i386_debug_reg_state): Likewise.
3983 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3985 2014-06-18 Don Breazeal <donb@codesourcery.com>
3987 * breakpoint.c (set_longjmp_breakpoint): Call
3988 momentary_breakpoint_from_master with additional argument.
3989 (set_longjmp_breakpoint_for_call_dummy): Call
3990 momentary_breakpoint_from_master with additional argument.
3991 (set_std_terminate_breakpoint): Call
3992 momentary_breakpoint_from_master with additional argument.
3993 (momentary_breakpoint_from_master): Add argument to function
3994 definition and use it to initialize structure member flag.
3995 (clone_momentary_breakpoint): Call
3996 momentary_breakpoint_from_master with additional argument.
3997 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3998 member flags set in momentary_breakpoint_from_master.
4000 2014-06-18 Gary Benson <gbenson@redhat.com>
4002 * i386-nat.c (i386_show_dr): Renamed to
4003 i386_dr_show and made nonstatic. All uses updated.
4004 (i386_length_and_rw_bits): Renamed to
4005 i386_dr_length_and_rw_bits and made nonstatic.
4007 (i386_insert_aligned_watchpoint): Renamed to
4008 i386_dr_insert_aligned_watchpoint and made nonstatic.
4010 (i386_remove_aligned_watchpoint): Renamed to
4011 i386_dr_remove_aligned_watchpoint and made nonstatic.
4013 (i386_update_inferior_debug_regs): Renamed to
4014 i386_dr_update_inferior_debug_regs and made nonstatic.
4017 2014-06-18 Gary Benson <gbenson@redhat.com>
4019 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4020 (i386_dr_low_can_set_control): Likewise.
4021 (i386_dr_low_set_addr): Likewise.
4022 (i386_dr_low_set_control): Likewise.
4023 (i386_dr_low_get_addr): Likewise.
4024 (i386_dr_low_get_status): Likewise.
4025 (i386_dr_low_get_control): Likewise.
4026 (i386_insert_aligned_watchpoint): Use new macros.
4027 (i386_update_inferior_debug_regs): Likewise.
4028 (i386_stopped_data_address): Likewise.
4030 2014-06-18 Gary Benson <gbenson@redhat.com>
4032 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4033 New parameter. All uses updated.
4035 2014-06-18 Gary Benson <gbenson@redhat.com>
4037 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4040 2014-06-18 Gary Benson <gbenson@redhat.com>
4042 * i386-nat.c (debug_printf): New macro.
4043 (i386_get_debug_register_length): Likewise.
4044 (TARGET_HAS_DR_LEN_8): Use above macro.
4045 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4046 and printf_unfiltered. Use phex to format values.
4048 2014-06-18 Gary Benson <gbenson@redhat.com>
4050 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4053 2014-06-18 Gary Benson <gbenson@redhat.com>
4055 * i386-nat.c: Comment changes.
4057 2014-06-18 Gary Benson <gbenson@redhat.com>
4059 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4061 2014-06-18 Gary Benson <gbenson@redhat.com>
4063 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4064 (i386_insert_aligned_watchpoint): Likewise.
4065 (i386_remove_aligned_watchpoint): Likewise.
4066 (i386_handle_nonaligned_watchpoint): Likewise.
4068 2014-06-18 Gary Benson <gbenson@redhat.com>
4070 * i386-nat.c: Whitespace changes.
4072 2014-06-17 Samuel Bronson <naesten@gmail.com>
4074 * MAINTAINERS: Update Roland McGrath's email address.
4075 Thanks to Sergio Durigan Junior for pointing out that he left
4076 Red Hat a while ago, and giving me a current address.
4078 2014-06-17 Tom Tromey <tromey@redhat.com>
4080 * utils.h (savestring): Remove declaration.
4082 2014-06-17 Tom Tromey <tromey@redhat.com>
4084 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4086 2014-06-16 Keith Seitz <keiths@redhat.com>
4089 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4090 to update the varobj if inferior_ptid is null_ptid.
4092 2014-06-16 Tom Tromey <tromey@redhat.com>
4094 * target.h (struct target_ops) <to_info_proc>: Make parameter
4096 (target_info_proc): Update.
4097 * target.c (target_info_proc): Make "args" const.
4098 * procfs.c (procfs_info_proc): Update.
4099 * linux-tdep.c (linux_info_proc): Update.
4100 (linux_core_info_proc_mappings): Make "args" const.
4101 (linux_core_info_proc): Update.
4102 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4103 * gdbarch.c: Rebuild.
4104 * gdbarch.h: Rebuild.
4105 * corelow.c (core_info_proc): Update.
4107 2014-06-16 Tom Tromey <tromey@redhat.com>
4109 * target.h (struct target_ops) <to_disconnect>: Make parameter
4111 (target_disconnect): Update.
4112 * target.c (target_disconnect): Make "args" const.
4113 * target-delegates.c: Rebuild.
4114 * remote.c (remote_disconnect): Update.
4115 * record.h (record_disconnect): Update.
4116 * record.c (record_disconnect): Update.
4117 * inf-child.c (inf_child_disconnect): Update.
4119 2014-06-16 Tom Tromey <tromey@redhat.com>
4121 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4122 * target.c (debug_to_rcmd, default_rcmd): Update.
4123 * target-delegates.c: Rebuild.
4124 * remote.c (remote_rcmd): Update.
4125 * monitor.c (monitor_rcmd): Update.
4127 2014-06-16 Pedro Alves <palves@redhat.com>
4129 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4130 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4131 have OBJF_SHARED set.
4132 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4133 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4134 instead of OBJF_USERLOADED.
4135 * objfiles.h (OBJF_SHARED): Update comment.
4136 (userloaded_objfile_contains_address_p): Rename to ...
4137 (shared_objfile_contains_address_p): ... this, and update
4139 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4141 (remove_symbol_file_command): Skip objfiles that don't have
4144 2014-06-16 Tom Tromey <tromey@redhat.com>
4146 * minsyms.h (prim_record_minimal_symbol)
4147 (prim_record_minimal_symbol_and_info): Update comments.
4149 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4151 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4152 or --without-guile, according to how GDB was built.
4154 2014-06-13 Tom Tromey <tromey@redhat.com>
4156 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4158 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4160 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4162 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4163 help_list.Pass all_commands, not -1, to help_list.
4164 * cli/cli-dump.c (dump_command, append_command)
4165 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4166 (binary_dump_command, binary_append_command): Pass all_commands,
4167 not -1, to help_list.
4168 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4170 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4172 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4174 * top.c (set_history): Pass all_commands, not -1, to help_list.
4175 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4176 all_commands, not -1, to help_list.
4177 * symfile.c (overlay_command): Pass all_commands, not -1, to
4179 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4181 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4183 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4185 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4186 not -1, to help_list.
4187 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4188 not -1, to help_list.
4189 * maint.c (maintenance_command, maintenance_info_command)
4190 (maintenance_print_command, maintenance_set_cmd): Pass
4191 all_commands, not -1, to help_list.
4192 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4194 * language.c (set_check): Pass all_commands, not -1, to help_list.
4195 * infcmd.c (unset_command): Pass all_commands, not -1, to
4197 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4199 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4201 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4203 * breakpoint.c (save_command): Pass all_commands, not -1, to
4205 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4206 all_commands, not -1, to help_list.
4208 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4210 * regcache.c (struct register_to_invalidate): New structure.
4211 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4213 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4215 2014-06-12 Yao Qi <yao@codesourcery.com>
4217 * varobj.c (varobj_get_num_children): Call
4218 varobj_is_dynamic_p.
4219 (varobj_list_children): Likewise.
4220 (varobj_update): Likewise. Update comments.
4222 2014-06-12 Yao Qi <yao@codesourcery.com>
4224 * varobj.c (varobj_pretty_printed_p): Rename to ...
4225 (varobj_is_dynamic_p): ... this. New function.
4226 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4227 (varobj_is_dynamic_p): Declare.
4228 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4229 (mi_print_value_p, varobj_update_one): Likewise.
4231 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4232 Yao Qi <yao@codesourcery.com>
4234 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4235 (varobj_get_iterator): Wrap up code for pretty-printer by
4236 "#if HAVE_PYTHON" and "#endif".
4237 (update_dynamic_varobj_children): Likewise.
4239 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4240 Yao Qi <yao@codesourcery.com>
4242 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4243 gdb_python_initialized is false. Move some code from varobj.c.
4244 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4245 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4246 (struct varobj_item): Moved to varobj-iter.h".
4247 (varobj_clear_saved_item): New function.
4248 (update_dynamic_varobj_children): Move python-related code to
4250 (free_variable): Call varobj_clear_saved_item and
4253 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4254 Yao Qi <yao@codesourcery.com>
4256 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4257 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4258 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4259 (py-varobj.o): New rule.
4260 * python/py-varobj.c: New file.
4261 * python/python-internal.h (py_varobj_get_iterator): Declare.
4262 * varobj-iter.h: New file.
4263 * varobj.c: Include "varobj-iter.h"
4264 (struct varobj) <child_iter>: Change its type from "PyObject *"
4265 to "struct varobj_iter *".
4266 <saved_item>: Likewise.
4267 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4268 [HAVE_PYTHON] (varobj_get_iterator): New function.
4269 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4270 python-specific code to python/py-varobj.c.
4271 (install_visualizer): Call varobj_iter_delete instead of
4273 * varobj.h (varobj_ensure_python_env): Declare.
4275 2014-06-12 Yao Qi <yao@codesourcery.com>
4277 * varobj.c (struct varobj_item): New structure.
4278 (create_child_with_value): Update declaration.
4279 (varobj_add_child): Replace arguments 'name' and 'value' with
4280 'item'. All callers updated.
4281 (install_dynamic_child): Likewise.
4282 (update_dynamic_varobj_children): Likewise.
4283 (varobj_add_child): Likewise.
4284 (create_child_with_value): Likewise.
4286 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4288 * NEWS: Create a new section for the next release branch.
4289 Rename the section of the current branch, now that it has
4292 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4294 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4295 * version.in: Bump version to 7.8.50.DATE-cvs.
4297 2014-06-11 Pedro Alves <palves@redhat.com>
4300 * ser-mingw.c (net_windows_socket_check_pending): New function.
4301 (net_windows_select_thread): Ignore spurious wakeups. Use
4302 net_windows_socket_check_pending.
4303 (net_windows_wait_handle): Check for pending events with
4304 ioctlsocket, through net_windows_socket_check_pending, instead of
4305 checking the socket's event.
4307 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4309 * python/python-internal.h (gdb_PyObject_GetAttrString)
4310 (gdb_PyObject_HasAttrString): New inline function definitions.
4311 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4312 char * of the second argument to PyObject_GetAttrString.
4314 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4316 * serial.c (serial_write): Fix index of character to be printed
4317 in call to serial_logchar when serial debug traces are enabled.
4319 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4321 * gdbtypes (resolve_dynamic_range): Add function description.
4323 2014-06-09 Pedro Alves <palves@redhat.com>
4325 * linux-nat.c (linux_child_follow_fork): Initialize status with
4326 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4327 inner block. Only pass the signal to PTRACE_DETACH if in pass
4330 2014-06-09 Gary Benson <gbenson@redhat.com>
4332 * common/signals.c (gdb_signal_from_host): Reorder to separate
4333 the always-available ANSI-standard signals from the signals that
4335 (do_gdb_signal_to_host): Likewise.
4336 * proc-events.c (signal_table): Likewise.
4338 2014-06-08 Hui Zhu <hui@codesourcery.com>
4340 * common/linux-ptrace.c (linux_disable_event_reporting): New
4342 * common/linux-ptrace.h (linux_disable_event_reporting): New
4344 * linux-nat.c (linux_child_follow_fork): Do a single step before
4347 2014-06-07 Keith Seitz <keiths@redhat.com>
4351 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4352 from symbol_matches_domain in symtab.c. All local callers
4353 of symbol_matches_domain updated.
4354 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4355 search STRUCT_DOMAIN.
4356 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4357 independently. standard_lookup will do that automatically.
4358 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4359 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4360 (cp_lookup_symbol_in_namespace): Likewise.
4361 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4362 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4363 may return a STRUCT_DOMAIN match.
4364 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4365 * cp-support.c: Include language.h.
4366 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4368 * psymtab.c (match_partial_symbol): Compare the requested
4369 domain with the symbol's domain directly.
4370 (lookup_partial_symbol): Likewise.
4371 * symtab.c (lookup_symbol_in_language): Explain when/why
4372 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4373 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4374 appropriate languages.
4375 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4376 and moved to ada-lang.c
4377 (lookup_block_symbol): Explain that this function only returns
4378 symbol matching the requested DOMAIN.
4379 Compare the requested domain with the symbol's domain directly.
4380 (iterate_over_symbols): Compare the requested domain with the
4381 symbol's domain directly.
4382 * symtab.h (symbol_matches_domain): Remove.
4384 2014-06-06 Doug Evans <xdje42@gmail.com>
4386 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4387 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4388 (gdbscm_guile_version_is_at_least): Declare.
4389 (gdbscm_scm_string_to_int): Declare.
4390 * guile/guile.c (gdbscm_guile_major_version): New global.
4391 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4392 (guile_datadir): New static global.
4393 (gdbscm_guile_data_directory): New function.
4394 (initialize_scheme_side): Update.
4395 (misc_guile_functions): Add guile-data-directory.
4396 (initialize_gdb_module): Fetch guile version number.
4397 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4398 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4399 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4400 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4402 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4403 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4404 * guile/scm-value.c (gdbscm_value_to_string): Only call
4405 scm_port_conversion_strategy if Guile version >= 2.0.6.
4407 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4409 * main.c (print_gdb_help): Add -q and --silent.
4411 2014-06-06 Gary Benson <gbenson@redhat.com>
4413 * common/signals.c: Remove preprocessor conditionals for
4414 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4415 SIGSEGV and SIGTERM.
4416 * proc-events.c: Likewise.
4418 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4420 * symfile.c (symfile_free_objfile): Remove restriction to
4422 * symfile-mem.c (symbol_file_add_from_memory): Call
4423 add_target_sections_of_objfile.
4425 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4427 * guile/scm-value.c (gdbscm_history_append_x): Use
4428 'vlscm_get_value_smob_arg_unsafe' instead of
4429 'vlscm_scm_to_value'.
4431 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4434 * utils.c (printchar): Don't escape at all if quoter is NUL.
4435 Update function documentation to clarify effect of parameter
4437 * remote.c (escape_buffer): Pass '\\' as the quoter to
4438 fputstrn_unfiltered.
4439 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4440 generate the output.
4441 (mi_solib_unloaded): Same.
4443 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4445 * development.sh: Delete.
4446 * Makefile.in (config.status): Adjust dependency on development.sh.
4447 * configure.ac: Adjust development.sh source call.
4448 * configure: Regenerate.
4450 2014-06-04 Doug Evans <xdje42@gmail.com>
4452 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4453 is_scheme_bkpt, spec.
4454 (bpscm_make_breakpoint_smob): Initialize new members.
4455 (gdbscm_create_breakpoint_x): Split into two ...
4456 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4457 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4458 (scheme_function breakpoint_functions): Update.
4459 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4460 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4461 register-breakpoint!.
4463 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4466 * mem-break.c (z_type_supported): Return zero if
4467 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4469 2014-06-04 Tom Tromey <tromey@redhat.com>
4471 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4472 value_from_contents_and_address_unresolved.
4473 (ada_template_to_fixed_record_type_1): Likewise.
4474 (ada_which_variant_applies): Likewise.
4475 * value.h (value_from_contents_and_address_unresolved): Declare.
4476 * value.c (value_from_contents_and_address_unresolved): New
4478 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4479 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4480 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4482 2014-06-04 Tom Tromey <tromey@redhat.com>
4484 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4486 2014-06-04 Tom Tromey <tromey@redhat.com>
4488 * procfs.c (procfs_attach): Make "args" const.
4489 * windows-nat.c (windows_attach): Make "args" const.
4490 * nto-procfs.c (procfs_attach): Make "args" const.
4491 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4492 * go32-nat.c (go32_attach): Make "args" const.
4493 * gnu-nat.c (gnu_attach): Make "args" const.
4494 * darwin-nat.c (darwin_attach): Make "args" const.
4495 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4496 * linux-nat.c (linux_nat_attach): Make "args" const.
4497 * remote.c (extended_remote_attach_1, extended_remote_attach):
4499 * target.h (struct target_ops) <to_attach>: Make "args" const.
4500 (find_default_attach): Likewise.
4501 * utils.c (parse_pid_to_attach): Make "args" const.
4502 * utils.h (parse_pid_to_attach): Update.
4504 2014-06-04 Tom Tromey <tromey@redhat.com>
4506 * target-delegates.c: Rebuild.
4507 * target.c (default_thread_address_space): New function.
4508 (target_thread_address_space): Simplify.
4509 * target.h (struct target_ops) <to_thread_address_space>: Add
4510 TARGET_DEFAULT_FUNC.
4512 2014-06-04 Doug Evans <xdje42@gmail.com>
4514 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4516 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4518 * record-btrace.c: Include event-loop.h and inf-loop.h.
4519 (record_btrace_resume_exec_dir)
4520 (record_btrace_async_inferior_event_handler)
4521 (record_btrace_handle_async_inferior_event): New.
4522 (record_btrace_open): Create async event handler.
4523 (record_btrace_close): Delete async event handler.
4524 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4525 Mark async event handler.
4526 (record_btrace_execution_direction): New.
4527 (init_record_btrace_ops): Initialize to_execution_direction.
4529 2014-06-03 Doug Evans <xdje42@gmail.com>
4531 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4532 (gdbscm_make_parameter): Ditto.
4534 2014-06-03 Doug Evans <dje@google.com>
4536 * exec.c (exec_close_1): Call clear_section_table instead of
4537 resize_section_table.
4538 (clear_section_table): New function.
4539 (resize_section_table): Make static. Rename arg num_added to
4541 * exec.h (clear_section_table): Declare.
4542 (resize_section_table): Delete.
4543 * progspace.c (release_program_space): Call clear_section_table
4544 instead of resize_section_table.
4546 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4548 * NEWS (Python Scripting): Add entry about the new xmethods
4551 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4553 * python/py-xmethods.c: New file.
4554 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4555 (objfpy_dealloc): XDECREF on the new xmethods field.
4556 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4558 (objfpy_get_xmethods): New function.
4559 (objfile_getset): New entry 'xmethods'.
4560 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4561 (pspy_dealloc): XDECREF on the new xmethods field.
4562 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4564 (pspy_get_xmethods): New function.
4565 (pspace_getset): New entry 'xmethods'.
4566 * python/python-internal.h: Add declarations for new functions.
4567 * python/python.c (_initialize_python): Invoke
4568 gdbpy_initialize_xmethods.
4569 * python/lib/gdb/__init__.py (xmethods): New
4571 * python/lib/gdb/xmethod.py: New file.
4572 * python/lib/gdb/command/xmethods.py: New file.
4574 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4576 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4577 best match method returned by find_overload_match is an xmethod.
4578 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4579 the best matching operator returned by find_overload_match is an
4581 * valops.c: #include "extension.h".
4582 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4583 Return void. The list of matching source methods is returned in
4584 "fn_list" and a vector of matching debug method workers is
4585 returned in "xm_worker_vec". Update all callers.
4586 (value_find_oload_method_list): Likewise.
4587 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4588 non-NULL, then the index of the best matching method in this
4589 vector is returned. Update all callers.
4590 (find_overload_match): Include xmethods while performing overload
4593 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4595 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4596 * extension-priv.h (struct extension_language_ops): Add the
4598 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4599 get_matching_xmethod_workers, get_xmethod_argtypes,
4600 invoke_xmethod, free_xmethod_worker,
4601 free_xmethod_worker_vec): New functions.
4602 * extension.h: #include "common/vec.h".
4603 New function declarations.
4604 (struct xmethod_worker): New struct.
4605 (VEC (xmethod_worker_ptr)): New vector type.
4606 (xmethod_worker_ptr): New typedef.
4607 (xmethod_worker_vec): Likewise.
4608 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4610 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4611 (struct builtin_type): New field "xmethod".
4612 * valarith.c (value_ptradd): Assert that the value argument is not
4614 * valops.c (value_must_coerce_to_target): Return 0 for
4615 lval_xcallable values.
4616 * value.c (struct value): New field XM_WORKER in the field
4618 (value_address, value_raw_address): Return 0 for lval_xcallable
4620 (set_value_address): Assert that the value is not an
4622 (value_free): Free the associated xmethod worker when freeing
4623 lval_xcallable values.
4624 (set_value_component_location): Assert that the WHOLE value is not
4626 (value_of_xmethod, call_xmethod): New functions.
4627 * value.h: Declare "struct xmethod_worker".
4628 Declare new functions value_of_xmethod, call_xmethod.
4630 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4631 Pedro Alves <palves@redhat.com>
4633 PR breakpoints/17000
4634 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4635 New function, extracted from software_breakpoint_inserted_here_p.
4636 (software_breakpoint_inserted_here_p): Replace factored out code
4637 by call to find_non_raw_software_breakpoint_inserted_here.
4638 (bp_target_info_copy_insertion_state): New function.
4639 (bkpt_insert_location): Handle the case of a single-step
4640 breakpoint already inserted at the same address.
4641 (bkpt_remove_location): Handle the case of a single-step
4642 breakpoint still inserted at the same address.
4643 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4644 breakpoint already inserted at the same address.
4645 (deprecated_remove_raw_breakpoint): Handle the case of a
4646 non-raw breakpoint still inserted at the same address.
4647 (find_single_step_breakpoint): New function, extracted from
4648 single_step_breakpoint_inserted_here_p.
4649 (find_single_step_breakpoint): New function,
4650 factored out from single_step_breakpoint_inserted_here_p.
4651 (single_step_breakpoint_inserted_here_p): Reimplement.
4653 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4655 Pushed by Joel Brobecker <brobecker@adacore.com>
4656 * source.c (show_substitute_path_command): Fix display of matching
4659 2014-06-03 Gary Benson <gbenson@redhat.com>
4661 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4663 2014-06-02 Doug Evans <xdje42@gmail.com>
4665 Add parameter support for Guile.
4666 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4667 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4668 (scm-param.o): New rule.
4669 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4670 (gdbscm_misc_error): Declare.
4671 (gdbscm_canonicalize_command_name): Declare.
4672 (gdbscm_scm_to_host_string): Declare.
4673 (gdbscm_scm_from_host_string): Declare.
4674 (gdbscm_initialize_parameters): Declare.
4675 * guile/guile.c (initialize_gdb_module): Call
4676 gdbscm_initialize_parameters.
4677 * guile/lib/gdb.scm: Export parameter symbols.
4678 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4679 cmdscm_canonicalize_name and made public. All callers updated.
4680 * guile/scm-exception.c (gdbscm_misc_error): New function.
4681 * guile/scm-param.c: New file.
4682 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4683 (gdbscm_scm_to_host_string): New function.
4684 (gdbscm_scm_from_host_string): New function.
4685 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4687 2014-06-02 Doug Evans <xdje42@gmail.com>
4689 Add command support for Guile.
4690 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4691 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4692 (scm-cmd.o): New rule.
4693 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4694 (gdbscm_user_error_p): Declare.
4695 (gdbscm_parse_command_name): Declare.
4696 (gdbscm_valid_command_class_p): Declare.
4697 (gdbscm_initialize_commands): Declare.
4698 * guile/guile.c (initialize_gdb_module): Call
4699 gdbscm_initialize_commands.
4700 * guile/lib/gdb.scm: Export command symbols.
4701 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4702 (throw-user-error): New function.
4703 * guile/scm-cmd.c: New file.
4704 * guile/scm-exception.c (user_error_symbol): New static global.
4705 (gdbscm_user_error_p): New function.
4706 (gdbscm_initialize_exceptions): Set user_error_symbol.
4707 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4709 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4711 * top.c (command_loop): Handle comments here...
4712 (command_line_input): ... not here.
4714 2014-06-02 Doug Evans <xdje42@gmail.com>
4716 Add progspace support for Guile.
4717 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4718 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4719 (scm-progspace.o): New rule.
4720 * guile/guile-internal.h (pspace_smob): New typedef.
4721 (psscm_pspace_smob_pretty_printers): Declare.
4722 (psscm_pspace_smob_from_pspace): Declare.
4723 (psscm_scm_from_pspace): Declare.
4724 * guile/guile.c (initialize_gdb_module): Call
4725 gdbscm_initialize_pspaces.
4726 * guile/lib/gdb.scm: Export progspace symbols.
4727 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4729 (append-pretty-printer!): Ditto.
4730 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4732 * guile/scm-progspace.c: New file.
4734 2014-06-03 Alan Modra <amodra@gmail.com>
4736 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4737 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4739 2014-06-02 Doug Evans <dje@google.com>
4741 Add support for skeletonless type units.
4742 * dwarf2read.c (struct dwarf2_per_objfile): New member
4743 n_allocated_type_units.
4744 (struct dwarf2_per_objfile) <tu_stats>: New member
4745 nr_all_type_units_reallocs.
4746 (create_signatured_type_table_from_index): Initialize
4747 n_allocated_type_units
4748 (create_all_type_units): Ditto.
4749 (add_type_unit): Move up in file. New arg slot.
4750 All callers updated. Increase space for all_type_units more
4752 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4753 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4754 (lookup_dwp_signatured_type): Ditto.
4755 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4756 All callers updated.
4757 (build_type_psymtabs_1): Leave type_unit_groups as
4758 NULL if no TUs present.
4759 (print_tu_stats): New function.
4760 (process_skeletonless_type_unit): New function.
4761 (process_dwo_file_for_skeletonless_type_units): New
4763 (process_skeletonless_type_units): New function.
4764 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4765 Call print tu_stats if debugging enabled.
4767 2014-06-02 Pedro Alves <palves@redhat.com>
4769 * breakpoint.c (build_target_command_list): Don't build a command
4770 list if we have any duplicate location that isn't a dprintf.
4772 2014-06-02 Pedro Alves <palves@redhat.com>
4774 * breakpoint.c (dprintf_breakpoint_hit): New function.
4775 (initialize_breakpoint_ops): Install it as dprintf's
4776 breakpoint_hit method.
4778 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4780 * source.c (substitute_path_rule_matches): Simplify using
4781 filename_ncmp instead of FILENAME_CMP.
4783 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4785 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4787 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4789 * configure.ac: When Guile is available, check for the
4790 availability of 'scm_new_smob'.
4791 * configure, config.h.in: Regenerate.
4792 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4795 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4797 * frame.c (struct frame_info): Add stop_string field.
4798 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4799 (get_prev_frame_always): Old content moved into
4800 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4801 TRY_CATCH, handle MEMORY_ERROR exceptions.
4802 (frame_stop_reason_string): New function definition.
4803 * frame.h (unwind_stop_reason_to_string): Extend comment to
4804 mention frame_stop_reason_string.
4805 (frame_stop_reason_string): New function declaration.
4806 * stack.c (frame_info): Switch to frame_stop_reason_string.
4807 (backtrace_command_1): Switch to frame_stop_reason_string.
4808 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4809 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4810 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4812 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4814 * frame.c (frame_stop_reason_string): Rename to ...
4815 (unwind_stop_reason_to_string): this.
4816 * frame.h (frame_stop_reason_string): Rename to ...
4817 (unwind_stop_reason_to_string): this.
4818 * stack.c (frame_info): Update call to frame_stop_reason_string.
4819 (backtrace_command_1): Likewise.
4820 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4821 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4823 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4825 * frame.c (remove_prev_frame): New function.
4826 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4829 2014-05-29 Pedro Alves <palves@redhat.com>
4831 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4832 and make it const. When a single-step decays to a continue,
4833 clear 'step', not 'hw_step'. Pass whether the caller wanted
4834 to step to user_visible_resume_ptid, not what we ask the
4837 2014-05-29 Pedro Alves <palves@redhat.com>
4839 * infrun.c (process_event_stop_test, handle_step_into_function)
4840 (handle_step_into_function_backward): Adjust.
4841 Don't set the even thread's stop_step and call stop_waiting before
4842 calling end_stepping_range. Instead do that ...
4843 (end_stepping_range): ... here. Take an ecs pointer parameter.
4845 2014-05-29 Pedro Alves <palves@redhat.com>
4847 * infrun.c (stop_stepping): Rename to ...
4848 (stop_waiting): ... this.
4849 (proceed): Update comment.
4850 (process_event_stop_test, handle_inferior_event)
4851 (handle_signal_stop, handle_step_into_function)
4852 (handle_step_into_function_backward): Update.
4854 2014-05-29 Pedro Alves <palves@redhat.com>
4856 * infcall.c (run_inferior_call): Don't check whether the current
4857 thread is running after the proceed call.
4859 2014-05-29 Pedro Alves <palves@redhat.com>
4860 Tom Tromey <tromey@redhat.com>
4862 * NEWS: Mention "maint set target-async", "set mi-async", and that
4863 background execution commands are now always available.
4864 * target.h (target_async_permitted): Update comment.
4865 * target.c (target_async_permitted, target_async_permitted_1):
4867 (set_target_async_command): Rename to ...
4868 (maint_set_target_async_command): ... this.
4869 (show_target_async_command): Rename to ...
4870 (maint_show_target_async_command): ... this.
4871 (_initialize_target): Adjust.
4872 * infcmd.c (prepare_execution_command): Make extern.
4873 * inferior.h (prepare_execution_command): Declare.
4874 * infrun.c (set_observer_mode): Leave target async alone.
4875 * mi/mi-interp.c (mi_interpreter_init): Install
4876 mi_on_sync_execution_done as sync_execution_done observer.
4877 (mi_on_sync_execution_done): New function.
4878 (mi_execute_command_input_handler): Don't print the prompt if we
4879 just started a synchronous command with an async target.
4880 (mi_on_resume): Check sync_execution before printing prompt.
4881 * mi/mi-main.h (mi_async_p): Declare.
4882 * mi/mi-main.c: Include gdbcmd.h.
4883 (mi_async_p): New function.
4884 (mi_async, mi_async_1): New globals.
4885 (set_mi_async_command, show_mi_async_command, mi_async): New
4887 (exec_continue): Call prepare_execution_command.
4888 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4889 (mi_execute_async_cli_command): Use mi_async_p.
4890 (_initialize_mi_main): Install "set mi-async". Make
4891 "target-async" a deprecated alias.
4893 2014-05-29 Pedro Alves <palves@redhat.com>
4895 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4896 (_initialize_cli_interp): Adjust.
4897 * event-loop.c: Include "observer.h".
4898 (start_event_loop): Notify 'command_error' observers instead of
4899 calling display_gdb_prompt. Remove FIXME comment.
4900 * event-top.c (display_gdb_prompt): Remove call into the
4902 * inf-loop.c: Include "observer.h".
4903 (inferior_event_handler): Notify 'command_error' observers instead
4904 of calling display_gdb_prompt.
4905 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4906 observers instead of calling display_gdb_prompt.
4907 * interps.c (interp_set): Don't call display_gdb_prompt.
4908 (current_interp_display_prompt_p): Delete.
4909 * interps.h (interp_prompt_p): Delete declaration.
4910 (interp_prompt_p_ftype): Delete.
4911 (struct interp_procs) <prompt_proc_p>: Delete field.
4912 (current_interp_display_prompt_p): Delete declaration.
4913 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4914 (_initialize_mi_interp): Adjust.
4915 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4916 'command_error' observers.
4917 (tui_on_sync_execution_done, tui_on_command_error): New
4919 (tui_display_prompt_p): Delete.
4920 (_initialize_tui_interp): Adjust.
4922 2014-05-29 Pedro Alves <palves@redhat.com>
4925 * cli/cli-interp.c: Include infrun.h and observer.h.
4926 (cli_uiout, cli_interp): New globals.
4927 (cli_on_signal_received, cli_on_end_stepping_range)
4928 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4930 (cli_interpreter_init): Install them as 'end_stepping_range',
4931 'signal_received' 'signal_exited', 'exited' and 'no_history'
4933 (_initialize_cli_interp): Remove cli_interp local.
4934 * infrun.c (handle_inferior_event): Call the several stop reason
4935 observers instead of printing the stop reason directly.
4936 (end_stepping_range): New function.
4937 (print_end_stepping_range_reason, print_signal_exited_reason)
4938 (print_exited_reason, print_signal_received_reason)
4939 (print_no_history_reason): Make static, and add an uiout
4940 parameter. Print to that instead of to CURRENT_UIOUT.
4941 * infrun.h (print_end_stepping_range_reason)
4942 (print_signal_exited_reason, print_exited_reason)
4943 (print_signal_received_reason print_no_history_reason): New
4945 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4947 <cli_uiout>: New field.
4948 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4949 uiout for CLI output. Install 'signal_received',
4950 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4952 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4953 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4954 (mi_on_no_history): New functions.
4955 (ui_out_free_cleanup): Delete function.
4956 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4957 instead use the one already stored in the MI interpreter data.
4958 (mi_ui_out): Adjust.
4959 * tui/tui-interp.c: Include infrun.h and observer.h.
4960 (tui_interp): New global.
4961 (tui_on_signal_received, tui_on_end_stepping_range)
4962 (tui_on_signal_exited, tui_on_exited)
4963 (tui_on_no_history): New functions.
4964 (tui_init): Install them as 'end_stepping_range',
4965 'signal_received' 'signal_exited', 'exited' and 'no_history'
4967 (_initialize_tui_interp): Delete tui_interp local.
4969 2014-05-29 Pedro Alves <palves@redhat.com>
4972 * linux-nat.c (linux_nat_resume_callback): Rename the second
4973 parameter to 'except'. Skip LP if it points to EXCEPT.
4974 (linux_nat_resume): Don't mark the event lwp as not stopped
4975 before resuming sibling lwps. Instead ask
4976 linux_nat_resume_callback to skip the event lwp. Mark it as not
4977 stopped after actually resuming it.
4978 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4980 (wait_lwp): Mark the lwp as stopped here.
4981 (stop_wait_callback): Mark the lwp as not stopped right after
4982 resuming it. Don't mark lwps as stopped here.
4983 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4984 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4986 2014-05-29 Pedro Alves <palves@redhat.com>
4989 * infrun.c (resume): Determine how much to resume depending on
4990 whether the caller wanted a step, not whether we can hardware step
4991 the target. Mark all threads that we intend to run as running,
4992 unless we're calling an inferior function.
4993 (normal_stop): If the thread is running an infcall, don't finish
4995 * target.c (target_resume): Don't mark threads as running here.
4997 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4999 * serial.c (_initialize_serial): Remove support for
5000 the "set remotebaud" and "show remotebaud" commands.
5001 * NEWS: Add entry documenting the removal of that command.
5003 2014-05-28 Yao Qi <yao@codesourcery.com>
5005 * charset.c: Fix typo in comments.
5007 2014-05-27 Gary Benson <gbenson@redhat.com>
5009 * utils.c (internal_vproblem): Prompt for a bug report.
5011 2014-05-26 Andy Wingo <wingo@igalia.com>
5013 * guile/scm-arch.c (arscm_mark_arch_smob):
5014 * guile/scm-block.c (bkscm_mark_block_smob)
5015 (bkscm_mark_block_syms_progress_smob):
5016 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5017 * guile/scm-exception.c (exscm_mark_exception_smob):
5018 * guile/scm-frame.c (frscm_mark_frame_smob):
5019 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5020 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5021 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5022 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5023 (ppscm_mark_pretty_printer_worker_smob):
5024 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5025 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5026 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5027 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5029 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5032 2014-05-26 Andy Wingo <wingo@igalia.com>
5033 Doug Evans <xdje42@gmail.com>
5035 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5036 empty_base_class. All uses updated.
5037 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5038 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5040 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5041 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5042 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5043 (gdbscm_gsmob_has_property_p, add_property_name)
5044 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5045 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5046 (gdb-object-has-property?, gdb-object-properties): Remove.
5047 (gdb-object-kind): Renamed from gsmob-kind.
5049 2014-05-26 Andy Wingo <wingo@igalia.com>
5051 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5052 * configure: Regenerate.
5054 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5056 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5058 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5060 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5061 (replay_memory_access_read_only, replay_memory_access_read_write)
5062 (replay_memory_access_types, replay_memory_access)
5063 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5064 (cmd_set_record_btrace, cmd_show_record_btrace)
5065 (cmd_show_replay_memory_access): New.
5066 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5067 (record_btrace_remove_breakpoint): Replace
5068 record_btrace_allow_memory_access with replay_memory_access.
5069 (_initialize_record_btrace): Add commands.
5070 * NEWS: Announce it.
5072 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5074 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5076 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5078 * MAINTAINERS (Write After Approval): Move self back from
5081 2014-05-22 Pedro Alves <palves@redhat.com>
5083 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5084 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5085 (disable_randomization, enum exec_direction_kind)
5086 (execution_direction, stop_registers, start_remote)
5087 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5088 (wait_for_inferior, normal_stop, get_last_target_status)
5089 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5090 (insert_step_resume_breakpoint_at_sal)
5091 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5092 (set_step_info, print_stop_event, signal_stop_state)
5093 (signal_print_state, signal_pass_state, signal_stop_update)
5094 (signal_print_update, signal_pass_update)
5095 (update_signals_program_target, clear_exit_convenience_vars)
5096 (displaced_step_dump_bytes, update_observer_mode)
5097 (signal_catch_update, gdb_signal_from_command): Move
5099 * infrun.h: ... to this new file.
5100 * amd64-tdep.c: Include infrun.h.
5101 * annotate.c: Include infrun.h.
5102 * arch-utils.c: Include infrun.h.
5103 * arm-linux-tdep.c: Include infrun.h.
5104 * arm-tdep.c: Include infrun.h.
5105 * break-catch-sig.c: Include infrun.h.
5106 * breakpoint.c: Include infrun.h.
5107 * common/agent.c: Include infrun.h instead of inferior.h.
5108 * corelow.c: Include infrun.h.
5109 * event-top.c: Include infrun.h.
5110 * go32-nat.c: Include infrun.h.
5111 * i386-tdep.c: Include infrun.h.
5112 * inf-loop.c: Include infrun.h.
5113 * infcall.c: Include infrun.h.
5114 * infcmd.c: Include infrun.h.
5115 * infrun.c: Include infrun.h.
5116 * linux-fork.c: Include infrun.h.
5117 * linux-nat.c: Include infrun.h.
5118 * linux-thread-db.c: Include infrun.h.
5119 * monitor.c: Include infrun.h.
5120 * nto-tdep.c: Include infrun.h.
5121 * procfs.c: Include infrun.h.
5122 * record-btrace.c: Include infrun.h.
5123 * record-full.c: Include infrun.h.
5124 * remote-m32r-sdi.c: Include infrun.h.
5125 * remote-mips.c: Include infrun.h.
5126 * remote-notif.c: Include infrun.h.
5127 * remote-sim.c: Include infrun.h.
5128 * remote.c: Include infrun.h.
5129 * reverse.c: Include infrun.h.
5130 * rs6000-tdep.c: Include infrun.h.
5131 * s390-linux-tdep.c: Include infrun.h.
5132 * solib-irix.c: Include infrun.h.
5133 * solib-osf.c: Include infrun.h.
5134 * solib-svr4.c: Include infrun.h.
5135 * target.c: Include infrun.h.
5136 * top.c: Include infrun.h.
5137 * windows-nat.c: Include infrun.h.
5138 * mi/mi-interp.c: Include infrun.h.
5139 * mi/mi-main.c: Include infrun.h.
5140 * python/py-threadevent.c: Include infrun.h.
5142 2014-05-22 Pedro Alves <palves@redhat.com>
5144 * infrun.c (handle_inferior_event): Store the exit code for
5145 --return-child-result here, instead of ...
5146 (print_exited_reason): ... here.
5148 2014-05-21 Pedro Alves <palves@redhat.com>
5151 * gdbthread.h (struct thread_control_state): New field
5153 * infrun.c (follow_fork): Copy the new thread control field to the
5155 (clear_proceed_status_thread): Clear the new thread control field.
5156 (proceed): Set the new thread control field.
5157 * interps.h (command_interp): Declare.
5158 * interps.c (command_interpreter): New global.
5159 (command_interp): New function.
5160 (interp_exec): Set `command_interpreter' while here.
5161 * cli-out.c (cli_uiout_dtor): New function.
5162 (cli_ui_out_impl): Install it.
5163 * mi/mi-interp.c: Include cli-out.h.
5164 (mi_cmd_interpreter_exec): Add comment.
5165 (restore_current_uiout_cleanup): New function.
5166 (ui_out_free_cleanup): New function.
5167 (mi_on_normal_stop): If finishing an execution command started by
5168 a CLI command, or any kind of breakpoint-like event triggered,
5169 print the stop event to the output (CLI) stream.
5170 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5172 2014-05-21 Pedro Alves <palves@redhat.com>
5174 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5175 current source line having changed.
5176 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5177 * infrun.c (normal_stop): Adjust call to
5178 set_current_sal_from_frame.
5179 * source.c (clear_lines_listed_range): New function.
5180 (set_current_source_symtab_and_line, identify_source_line): Clear
5181 the lines listed range.
5182 (line_info): Handle the first "info line" after the current source
5183 line having changed.
5184 * stack.c (print_stack_frame): Remove center handling.
5185 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5188 2014-05-21 Pedro Alves <palves@redhat.com>
5190 * inf-child.c (inf_child_mourn_inferior): New function.
5191 * inf-child.h (inf_child_mourn_inferior): New declaration.
5192 * darwin-nat.c (darwin_mourn_inferior): Use
5193 inf_child_mourn_inferior.
5194 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5195 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5196 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5197 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5198 * windows-nat.c (windows_mourn_inferior): Likewise.
5200 2014-05-21 Doug Evans <xdje42@gmail.com>
5202 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5204 2014-05-21 Doug Evans <xdje42@gmail.com>
5206 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5207 (gdbscm_out_of_range_error): Ditto.
5208 (gdbscm_memory_error): Ditto.
5209 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5210 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5211 (gdbscm_out_of_range_error): Update.
5212 (gdbscm_memory_error): Update.
5213 (gdbscm_scm_to_target_string_unsafe): Delete.
5215 2014-05-21 Pedro Alves <palves@redhat.com>
5217 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5219 (inf_child_open_target): New function.
5220 (inf_child_open): Use inf_child_open_target to push the target
5221 instead of erroring out.
5222 (inf_child_disconnect, inf_child_close)
5223 (inf_child_maybe_unpush_target): New functions.
5224 (inf_child_target): Install inf_child_disconnect and
5225 inf_child_close. Store a pointer to the returned object.
5226 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5228 * target.c (auto_connect_native_target): New global.
5229 (show_default_run_target): New function.
5230 (find_default_run_target): Return NULL if automatically connecting
5231 to the native target is disabled.
5232 (_initialize_target): Install set/show auto-connect-native-target.
5233 * NEWS: Mention "set auto-connect-native-target", and "target
5235 * linux-nat.c (super_close): New global.
5236 (linux_nat_close): Call super_close.
5237 (linux_nat_add_target): Store a pointer to the base class's
5239 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5240 inf_child_maybe_unpush.
5241 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5243 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5244 the inferior. Use inf_child_maybe_unpush_target.
5245 (inf_ttrace_attach): Don't push the target if it is already
5247 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5248 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5249 after mourning the inferior. Use inf_child_maybe_unpush_target.
5250 (darwin_attach_pid): Don't push the target if it is already
5252 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5253 mourning the inferior. Use inf_child_maybe_unpush_target.
5254 (gnu_detach): Use inf_child_maybe_unpush_target.
5255 * go32-nat.c (go32_create_inferior): Don't push the target if it
5257 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5258 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5259 (procfs_open): Rename to ...
5260 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5261 comments. Can target_preopen before changing node. Call
5262 inf_child_open_target to push the target explicitly.
5263 (procfs_attach): Don't push the target if it is already pushed.
5264 (procfs_detach): Use inf_child_maybe_unpush_target.
5265 (procfs_create_inferior): Don't push the target if it is already
5267 (nto_native_ops): New global.
5268 (procfs_open): Reimplement.
5269 (procfs_native_open): New function.
5270 (init_procfs_targets): Install procfs_native_open as to_open of
5271 "target native". Store a pointer to the "native" target in
5273 * procfs.c (procfs_attach): Don't push the target if it is already
5275 (procfs_detach): Use inf_child_maybe_unpush_target.
5276 (procfs_mourn_inferior): Only unpush the target after mourning the
5277 inferior. Use inf_child_maybe_unpush_target.
5278 (procfs_init_inferior): Don't push the target if it is already
5280 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5281 if it is already pushed.
5283 2014-05-21 Pedro Alves <palves@redhat.com>
5285 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5286 and "procfs" targets are now called "native" instead.
5288 2014-05-21 Pedro Alves <palves@redhat.com>
5290 * go32-nat.c (go32_open): Delete.
5291 (go32_target): Don't override the to_open method.
5293 2014-05-21 Pedro Alves <palves@redhat.com>
5295 * nto-procfs.c (procfs_can_run): New function.
5296 (nto_procfs_ops): New global.
5297 (init_procfs_targets): New, based on procfs_target. Install
5298 "target native" in addition to "target procfs".
5299 (_initialize_procfs): Call init_procfs_targets instead of adding
5302 2014-05-21 Pedro Alves <palves@redhat.com>
5304 * windows-nat.c (windows_target): Don't override to_shortname,
5305 to_longname or to_doc.
5307 2014-05-21 Pedro Alves <palves@redhat.com>
5309 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5312 2014-05-21 Pedro Alves <palves@redhat.com>
5314 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5315 to_shortname, to_longname or to_doc.
5317 2014-05-21 Pedro Alves <palves@redhat.com>
5319 * go32-nat.c (go32_target): Don't override to_shortname,
5320 to_longname or to_doc.
5322 2014-05-21 Pedro Alves <palves@redhat.com>
5324 * inf-child.c (inf_child_open): Remove mention of "child".
5325 (inf_child_target): Rename target to "native" instead of "child".
5327 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5329 * Makefile.in (SFILES): Delete "regset.c".
5330 (COMMON_OBS): Delete "regset.o".
5332 * regset.h (regset_alloc): Delete prototype.
5334 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5336 * sparc-linux-tdep.c (sparc32_linux_gregset)
5337 (sparc32_linux_fpregset): New static regset structures.
5338 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5339 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5341 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5342 (sparc64_linux_fpregset): New static regset structures.
5343 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5344 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5345 New static regset structures.
5346 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5347 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5348 New static regset structures.
5349 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5350 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5351 New static regset structures.
5352 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5353 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5354 New static regset structures.
5355 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5357 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5359 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5360 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5361 register maps ("regmaps") from "*regset" to "*regmap". Do this
5362 for all regmap types and variables.
5363 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5364 (sparc32_linux_supply_core_gregset)
5365 (sparc32_linux_collect_core_gregset)
5366 (sparc32_linux_supply_core_fpregset)
5367 (sparc32_linux_collect_core_fpregset): Likewise.
5368 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5369 (sparc_gregmap, sparc_fpregmap): ... these.
5370 (sparc_supply_gregset, sparc_collect_gregset)
5371 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5372 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5373 (_initialize_sparc_nat): Rename regmaps.
5374 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5375 (sparc_gregmap, sparc_fpregmap): ... these.
5376 (sparc_supply_gregset, sparc_collect_gregset)
5377 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5378 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5380 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5381 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5383 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5385 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5386 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5387 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5389 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5390 (sparc32_bsd_fpregset): Rename to...
5391 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5392 (sparc32_bsd_fpregmap): ... these.
5393 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5394 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5395 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5396 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5397 (struct sparc_gregmap, struct sparc_fpregmap)
5398 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5399 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5400 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5401 (sparc32_supply_regset, sparc32_collect_gregset)
5402 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5404 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5405 (sparc64_linux_ptrace_gregmap): ... this.
5406 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5407 (_initialize_sparc64_linux_nat): Rename regmaps.
5408 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5409 (sparc64_linux_core_gregmap): ... this.
5410 (sparc64_linux_supply_core_gregset)
5411 (sparc64_linux_collect_core_gregset)
5412 (sparc64_linux_supply_core_fpregset)
5413 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5414 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5415 (sparc64_sol2_fpregset): Rename to...
5416 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5417 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5418 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5420 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5421 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5422 (sparc64_bsd_fpregset): Rename to...
5423 (struct sparc_gregmap, sparc64_sol2_gregmap)
5424 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5425 (sparc64_bsd_fpregmap): ... these.
5426 (sparc64_supply_gregset, sparc64_collect_gregset)
5427 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5429 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5430 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5431 (sparc64fbsd_gregmap): ... this.
5432 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5433 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5435 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5436 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5437 (sparc64nbsd_collect_fpregset): Likewise.
5438 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5439 (sparc64nbsd_gregmap): ... this.
5440 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5442 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5443 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5444 (sparc64obsd_gregmap): ... this.
5445 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5447 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5448 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5449 (sparc32nbsd_gregmap): ... this.
5450 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5453 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5455 * score-tdep.c (score7_linux_gregset): New static regset
5457 (score7_linux_regset_from_core_section): Remove dynamic regset
5459 (score_gdbarch_init): Drop allocation of tdep structure.
5460 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5462 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5464 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5466 (am33_regset_from_core_section): Remove dynamic regset
5469 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5471 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5472 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5474 (mips_linux_regset_from_core_section): Remove dynamic regset
5476 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5477 'gregset64', 'fpregset', and 'fpregset64'.
5478 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5479 deleted tdep fields.
5481 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5483 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5485 (amd64_regset_from_core_section): Remove dynamic regset
5487 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5489 (amd64obsd_regset_from_core_section): Remove dynamic regset
5491 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5493 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5494 x86-common regset supply function.
5495 * i386-tdep.c (i386_collect_gregset): Make static.
5496 (i386_gregset): New global regset structure.
5497 (i386_fpregset, i386_xstateregset): New static regset structures.
5498 (i386_regset_from_core_section): Remove dynamic regset
5500 (i386_gdbarch_init): Remove initialization of tdep fields
5501 'gregset', 'fpregset', and 'xstateregset'.
5502 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5503 'fpregset', and 'xstateregset'.
5504 (i386_collect_gregset): Remove prototype.
5505 (i386_gregset): New declaration.
5506 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5508 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5511 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5513 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5514 (arm_linux_vfpregset): New static regset structures.
5515 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5517 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5518 and 'vfpregset' fields.
5520 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5522 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5523 (aarch64_linux_fpregset): New static regset structures.
5524 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5525 of regset structures.
5526 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5529 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5531 * regset.h (struct regset): Remove gdbarch field.
5532 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5533 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5534 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5536 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5537 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5538 (ppc32_linux_vsxregset): Likewise.
5539 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5540 via the regcache instead of the regset.
5541 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5542 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5543 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5544 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5547 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5549 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5550 Constify structures.
5551 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5552 (alphanbsd_aout_gregset): Likewise.
5553 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5554 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5556 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5557 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5559 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5560 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5561 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5562 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5563 * m88k-tdep.c (m88k_gregset): Likewise.
5564 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5565 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5566 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5567 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5568 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5569 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5570 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5571 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5572 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5574 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5575 * sh-tdep.h (sh_corefile_gregset): Likewise.
5576 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5577 * vax-tdep.c (vax_gregset): Likewise.
5579 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5581 Fix TLS access for -static -pthread.
5582 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5583 (try_thread_db_load_1): Initialize it.
5584 (thread_db_get_thread_local_address): Call it if LM is zero.
5585 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5586 * target.h (struct target_ops) (to_get_thread_local_address): Add
5587 load_module_addr comment.
5589 2014-05-21 Pedro Alves <palves@redhat.com>
5591 * dcache.c (dcache_read_memory_partial): If reading the cache line
5592 fails, fallback to reading just the memory the caller wanted.
5594 2014-05-20 Doug Evans <dje@google.com>
5596 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5597 instead of get_current_arch.
5599 2014-05-20 Pedro Alves <palves@redhat.com>
5601 * NEWS: Mention that compare-sections now works with all targets.
5603 * remote.c (PACKET_qCRC): New enum value.
5604 (remote_verify_memory): Don't send qCRC if the target has no
5605 execution. Use packet_support/packet_ok. If the target doesn't
5606 support the qCRC packet, fallback to a deep memory copy.
5607 (compare_sections_command): Say "target image" instead of "remote
5609 (_initialize_remote): Add PACKET_qCRC to the list of config
5610 packets that have no associated command. Extend comment.
5611 * target.c (simple_verify_memory, default_verify_memory): New
5613 * target.h (struct target_ops) <to_verify_memory>: Default to
5614 default_verify_memory.
5615 (simple_verify_memory): New declaration.
5616 * target-delegates.c: Regenerate.
5618 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5620 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5622 2014-05-20 Hui Zhu <hui@codesourcery.com>
5623 Yao Qi <yao@codesourcery.com>
5626 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5627 and change address of sp and pc.
5629 2014-05-19 Tom Tromey <tromey@redhat.com>
5631 * gdbtypes.c (rank_function): Use XNEWVEC.
5632 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5634 2014-05-19 Doug Evans <dje@google.com>
5636 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5637 build_type_unit_groups and moved closer to only caller. Remove
5638 arguments. All references updated. Remove outdated .gdb_index
5640 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5641 build_type_psymtabs_1.
5643 2014-05-19 Doug Evans <dje@google.com>
5645 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5646 n_type_unit_groups, all_type_unit_groups. All uses removed.
5647 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5648 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5649 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5650 (add_type_unit_group_to_table): Delete.
5652 2014-05-19 Doug Evans <dje@google.com>
5654 * eval.c (evaluate_subexp_standard): Add some comments.
5656 2014-05-17 Doug Evans <xdje42@gmail.com>
5658 * progspace.c (remove_program_space): Delete, unused.
5659 * progspace.h (remove_program_space): Ditto.
5661 2014-05-17 Doug Evans <xdje42@gmail.com>
5663 * inferior.c (prune_inferiors): Fix comment.
5664 (remove_inferior_command): Call prune_program_spaces.
5666 2014-05-16 Doug Evans <dje@google.com>
5668 New command line option -D.
5670 * main.c (set_gdb_data_directory): New function.
5671 (captured_main): Recognize -D. Flag error for --data-directory "".
5672 Call set_gdb_data_directory.
5673 (print_gdb_help): Print --data-directory, -D.
5674 * main.h (set_gdb_data_directory): Declare.
5675 * top.c (staged_gdb_datadir): New static global.
5676 (set_gdb_datadir): Call set_gdb_data_directory
5677 (show_gdb_datadir): New function.
5678 (init_main): Update init of data-directory parameter.
5680 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5682 Import the "dirfd" gnulib module.
5683 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5684 * gnulib/aclocal.m4: Update.
5685 * gnulib/config.in: Update.
5686 * gnulib/configure: Update.
5687 * gnulib/import/Makefile.am: Update.
5688 * gnulib/import/Makefile.in: Update.
5689 * gnulib/import/dirfd.c: New.
5690 * gnulib/import/m4/dirfd.m4: New.
5691 * gnulib/import/m4/gnulib-cache.m4: Update.
5692 * gnulib/import/m4/gnulib-comp.m4: Update.
5694 2014-05-16 Pierre Muller <muller@sourceware.org>
5695 Yao Qi <yao@codesourcery.com>
5697 * valprint.c (print_wchar): Move the code on checking whether
5698 W is a printable wide char to the default branch of switch
5699 statement below. Call wchar_printable instead of gdb_iswprint.
5701 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5703 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5704 ldr.w and ldrd instructions.
5706 2014-05-15 Doug Evans <dje@google.com>
5708 * dwarf2read.c (read_structure_type): Delete outdated comments.
5710 2014-05-14 Tom Tromey <tromey@redhat.com>
5712 * macrocmd.c (print_macro_definition): Reindent.
5714 2014-05-13 Doug Evans <xdje42@gmail.com>
5716 * python/py-cmd.c (cmdpy_completer): Add comment.
5717 (completers): Make const.
5719 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5721 * infrun.c (resume): Remove should_resume (unused). Move up
5722 declaration of resume_ptid.
5724 2014-05-13 Tom Tromey <tromey@redhat.com>
5726 * language.h (unop_type_check): Remove.
5727 (binop_type_check): Don't declare.
5729 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5731 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5732 call to regcache_raw_collect.
5734 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5736 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5737 mi_console->quote as the quoting character.
5739 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5741 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5743 2014-04-29 Tom Tromey <tromey@redhat.com>
5745 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5746 "show debug varobj".
5748 2014-05-07 Kyle McMartin <kyle@redhat.com>
5750 Pushed by Joel Brobecker <brobecker@adacore.com>.
5751 * aarch64-tdep.c (aarch64_software_single_step): New function.
5752 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5753 with aarch64_software_single_step.
5755 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5759 2014-05-05 Keith Seitz <keiths@redhat.com>
5761 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5762 variable or history value is successfully parsed.
5764 2014-05-05 Yao Qi <yao@codesourcery.com>
5765 Pedro Alves <palves@redhat.com>
5767 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5768 address of blocks that intersects the requested range. Trim
5769 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5771 * ctf.c (ctf_xfer_partial): Likewise.
5773 2014-05-05 Yao Qi <yao@codesourcery.com>
5775 * printcmd.c (display_command): Remove the check to
5776 target_has_execution.
5778 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5780 * ppcobsd-nat.c: Include "obsd-nat.h".
5781 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5783 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5785 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5787 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5788 and 16-bit signed and unsigned arguments. Update comment.
5789 (stap_parse_probe_arguments): Extend code to handle such
5790 arguments. Use warning instead of complaint to notify about
5791 unrecognized bitness.
5793 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5795 PR breakpoints/16889
5796 * stap-probe.c (stap_parse_probe_arguments): Simplify
5797 check for non-prefixed probes (i.e., probes whose
5798 arguments do not start with "N@"). Always set the
5799 argument type to a sane value.
5801 2014-05-01 David Taylor <dtaylor@emc.com>
5803 * remote.c (compare_sections_command): Add -r option to compare
5804 all loadable read-only sections.
5806 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5808 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5809 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5811 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5812 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5813 Remove unused CORE_ADDR argument. Update all callers.
5815 2014-04-29 Pedro Alves <palves@redhat.com>
5817 * remote.c (struct packet_config) <detect>: Extend comment.
5818 (add_packet_config_cmd): Don't set the config's detect or support
5820 (init_all_packet_configs): Also initialize the config's 'detect'
5822 (reset_all_packet_configs_support): New function.
5823 (remote_open_1): Call reset_all_packet_configs_support instead of
5824 init_all_packet_configs.
5825 (_initialize_remote): Initialize all packet configs. Assert that
5826 all packets have an associated command, except a few known
5829 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5831 * dwarf2read.c (read_subrange_type): Handle dynamic
5832 DW_AT_lower_bound attributes.
5834 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5836 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5837 dynamic bounds before computing its upper bound.
5838 (ada_discrete_type_low_bound): Same as above with the lower bound.
5840 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5842 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5843 range types. Adjust the array handling implementation to
5844 take advantage of this change.
5845 (resolve_dynamic_range): New function, mostly extracted from
5846 resolve_dynamic_bounds.
5847 (resolve_dynamic_array): New function, mostly extracted from
5848 resolve_dynamic_bounds.
5849 (resolve_dynamic_bounds): Delete.
5850 (resolve_dynamic_type): Reimplement. Add handling of
5851 TYPE_CODE_RANGE types.
5853 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5855 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5856 handling of parallel ___XA types.
5858 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5860 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5861 unnecessary second call to static_unwrap_type.
5863 2014-04-27 Hui Zhu <hui@codesourcery.com>
5865 * stack.c (print_frame_info): Call do_gdb_disassembly with
5866 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5868 2014-04-26 Doug Evans <xdje42@gmail.com>
5870 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5872 2014-04-25 Pedro Alves <palves@redhat.com>
5875 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5876 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5877 and newline from built string.
5878 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5879 (linux_ptrace_attach_fail_reason): ... this.
5880 * linux-nat.c (linux_nat_attach): Adjust to use
5881 linux_ptrace_attach_fail_reason.
5883 2014-04-25 Pedro Alves <palves@redhat.com>
5885 * remote.c (struct remote_state): Remove multi_process_aware,
5886 non_stop_aware, cond_tracepoints, cond_breakpoints,
5887 breakpoint_commands, fast_tracepoints, static_tracepoints,
5888 install_in_trace, disconnected_tracing,
5889 enable_disable_tracepoints, string_tracing, and
5890 augmented_libraries_svr4_read fields.
5891 (remote_multi_process_p): Move further below in the file.
5892 (struct packet_config): Add comments.
5893 (update_packet_config): Delete function.
5894 (show_packet_config_cmd): Use packet_config_support.
5895 (add_packet_config_cmd): Use NULL as set callback.
5896 (packet_ok): "set remote foo-packet"-style commands no longer
5897 change config->supported -- adjust.
5898 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5899 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5900 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5901 (PACKET_QNonStop, PACKET_multiprocess_feature)
5902 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5903 (PACKET_DisconnectedTracing_feature)
5904 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5905 (set_remote_protocol_packet_cmd): Delete function.
5906 (packet_config_support, packet_support): New functions.
5907 (set_remote_protocol_Z_packet_cmd): Don't call
5908 update_packet_config.
5909 (remote_query_attached, remote_pass_signals)
5910 (remote_program_signals, remote_threads_info)
5911 (remote_threads_extra_info, remote_start_remote): Use
5913 (remote_start_remote): Use packet_config_support and
5915 (init_all_packet_configs): Set all packets to unknown support,
5916 instead of calling update_packet_config.
5917 (remote_check_symbols): Use packet_support.
5918 (remote_supported_packet): Unconditionally set the packet config's
5920 (remote_multi_process_feature, remote_non_stop_feature)
5921 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5922 (remote_breakpoint_commands_feature)
5923 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5924 (remote_install_in_trace_feature)
5925 (remote_disconnected_tracing_feature)
5926 (remote_enable_disable_tracepoint_feature)
5927 (remote_string_tracing_feature)
5928 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5929 (remote_protocol_features): Adjust to use remote_supported_packet
5930 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5931 "ConditionalTracepoints", "ConditionalBreakpoints",
5932 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5933 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5934 "EnableDisableTracepoints", and "tracenz".
5935 (remote_query_supported): Use packet_support.
5936 (remote_open_1): Adjust.
5937 (extended_remote_attach_1): Use packet_support. Switch on the
5938 result of packet_ok instead of checking whether the packet ended
5940 (remote_vcont_resume): Use packet_support.
5941 (remote_resume, remote_stop_ns, fetch_register_using_p)
5942 (remote_prepare_to_store, store_register_using_P)
5943 (check_binary_download, remote_write_bytes): Use packet_support.
5944 (remote_vkill): Use packet_support. Switch on the result of
5945 packet_ok instead of checking whether the packet ended up
5947 (extended_remote_supports_disable_randomization): Use
5949 (extended_remote_run): Switch on the result of packet_ok instead
5950 of checking whether the packet ended up disabled.
5951 (remote_insert_breakpoint, remote_remove_breakpoint)
5952 (remote_insert_watchpoint, remote_remove_watchpoint)
5953 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5955 (remote_search_memory): Use packet_config_support.
5956 (remote_get_thread_local_address, remote_get_tib_address)
5957 (remote_hostio_send_command, remote_can_execute_reverse): Use
5959 (remote_supports_cond_tracepoints)
5960 (remote_supports_cond_breakpoints)
5961 (remote_supports_fast_tracepoints)
5962 (remote_supports_static_tracepoints)
5963 (remote_supports_install_in_trace)
5964 (remote_supports_enable_disable_tracepoint)
5965 (remote_supports_string_tracing)
5966 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5967 the packet config says the feature is enabled or disabled.
5968 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5969 (remote_get_trace_status): Use packet_support.
5970 (remote_set_disconnected_tracing): Adjust to check whether the
5971 feature is enabled with packet_support.
5972 (remote_set_trace_buffer_size, remote_use_agent)
5973 (remote_can_use_agent, remote_supports_btrace): Use
5975 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5976 Use packet_config_support.
5977 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5978 the packet config says the feature is enabled or disabled.
5979 (set_range_stepping): Use packet_support.
5981 2014-04-25 Tom Tromey <tromey@redhat.com>
5983 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5986 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5988 * NEWS: Mention support for C99 variable length arrays.
5990 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5992 * ada-lang.c (standard_exc): Expand introductory comment.
5994 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5995 Walfred Tedeschi <walfred.tedeschi@intel.com>
5997 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5999 (amd64_linux_read_description): Add code to handle AVX512 xstate
6000 mask and return respective tdesc.
6001 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6002 and features/i386/x32-avx512-linux.c.
6003 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6004 (amd64_linux_core_read_description): Add code to handle AVX512
6005 xstate mask and return respective tdesc.
6006 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6007 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6009 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6010 (tdesc_amd64_avx512_linux): New prototype.
6011 (tdesc_x32_avx512_linux): Likewise.
6012 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6013 features/i386/x32-avx512.c.
6014 (amd64_ymm_avx512_names): New register names for pseudo
6016 (amd64_ymmh_avx512_names): New register names for raw registers
6018 (amd64_k_names): New register names for K registers.
6019 (amd64_zmmh_names): New register names for ZMM raw registers.
6020 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6021 (amd64_xmm_avx512_names): New register names for XMM16-31
6023 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6025 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6026 if feature is present.
6027 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6028 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6029 (AMD64_NUM_REGS): Adjust to new number of registers.
6030 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6031 registers supplied via XSTATE by AVX512 registers.
6032 (i386_linux_read_description): Add case for AVX512.
6033 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6034 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6035 (i386_linux_core_read_description): Add case for AVX512.
6036 (i386_linux_init_abi): Install supported register note section
6038 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6040 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6041 registers to be number of zmm7h + 1.
6042 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6043 * i386-tdep.c: Include features/i386/i386-avx512.c.
6044 (i386_zmm_names): Add ZMM pseudo register names array.
6045 (i386_zmmh_names): Add ZMM raw register names array.
6046 (i386_k_names): Add K raw register names array.
6047 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6048 registers. AVX512 has 16 more ZMM registers than there are YMM
6050 (i386_zmmh_regnum_p): Add function to look up register number of
6052 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6053 (i386_k_regnum_p): Likewise for K raw registers.
6054 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6055 registers added by AVX512.
6056 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6057 registers added by AVX512.
6058 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6060 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6061 (i386_pseudo_register_name): Add ZMM pseudo registers.
6062 (i386_zmm_type): Construct and return vector registers type for ZMM
6064 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6065 ZMM0-31 pseudo registers and K registers.
6066 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6067 and YMM16-31 registers from register cache.
6068 (i386_pseudo_register_write): Add code to write K, ZMM and
6070 (i386_register_reggroup_p): Add code to include/exclude AVX512
6071 registers in/from respective register groups.
6072 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6073 registers if feature is present in xcr0.
6074 (i386_gdbarch_init): Add code to initialize AVX512 feature
6075 variables in tdep structure, wire in pseudo registers and call
6076 initialize_tdesc_i386_avx512.
6077 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6079 (i386_regnum): Add AVX512 registers.
6080 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6081 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6082 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6083 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6085 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6086 (i386_ymm_avx512_regnum_p): Likewise.
6087 (i386_k_regnum_p): Likewise.
6088 (i386_zmm_regnum_p): Likewise.
6089 (i386_zmmh_regnum_p): Likewise.
6090 * i387-tdep.c : Update year in copyright notice.
6091 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6093 (XSAVE_YMM_AVX512_ADDR): New macro.
6094 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6096 (XSAVE_XMM_AVX512_ADDR): New macro.
6097 (xsave_avx512_k_offset): New table for K register offsets in
6099 (XSAVE_AVX512_K_ADDR): New macro.
6100 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6102 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6103 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6105 (i387_collect_xsave): Add code to collect AVX512 registers from
6107 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6108 of XMM16-31 registers.
6109 (I387_NUM_K_REGS): New define for number of K registers.
6110 (I387_K0_REGNUM): New define for K0 register number.
6111 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6112 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6113 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6115 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6116 (I387_XMM16_REGNUM): New define for XMM16 register number.
6117 (I387_YMM0_REGNUM): New define for YMM0 register number.
6118 (I387_KEND_REGNUM): New define for last K register number.
6119 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6120 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6122 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6124 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6126 * features/Makefile: Add AVX512 related files.
6127 * features/i386/32bit-avx512.xml: New file.
6128 * features/i386/64bit-avx512.xml: Likewise.
6129 * features/i386/amd64-avx512-linux.c: Likewise.
6130 * features/i386/amd64-avx512-linux.xml: Likewise.
6131 * features/i386/amd64-avx512.c: Likewise.
6132 * features/i386/amd64-avx512.xml: Likewise.
6133 * features/i386/i386-avx512-linux.c: Likewise.
6134 * features/i386/i386-avx512-linux.xml: Likewise.
6135 * features/i386/i386-avx512.c: Likewise.
6136 * features/i386/i386-avx512.xml: Likewise.
6137 * features/i386/x32-avx512-linux.c: Likewise.
6138 * features/i386/x32-avx512-linux.xml: Likewise.
6139 * features/i386/x32-avx512.c: Likewise.
6140 * features/i386/x32-avx512.xml: Likewise.
6141 * regformats/i386/amd64-avx512-linux.dat: New file.
6142 * regformats/i386/amd64-avx512.dat: Likewise.
6143 * regformats/i386/i386-avx512-linux.dat: Likewise.
6144 * regformats/i386/i386-avx512.dat: Likewise.
6145 * regformats/i386/x32-avx512-linux.dat: Likewise.
6146 * regformats/i386/x32-avx512.dat: Likewise.
6147 * NEWS: Add note about new support for AVX512.
6150 2014-04-23 Pedro Alves <palves@redhat.com>
6152 * breakpoint.c (insert_bp_location): Tolerate errors if the
6153 breakpoint is set in a user-loaded objfile.
6154 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6155 location is marked shlib_disabled. If the breakpoint is set in a
6156 user-loaded objfile is a GDB-side memory breakpoint, validate it
6157 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6158 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6160 * mem-break.c (memory_validate_breakpoint): New function.
6161 * objfiles.c (userloaded_objfile_contains_address_p): New
6163 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6164 * target.h (memory_validate_breakpoint): New declaration.
6166 2014-04-23 Pedro Alves <palves@redhat.com>
6168 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6169 the breakpoint is set in a shared library, only suppress
6170 errors for software breakpoints, not hardware breakpoints.
6172 2014-04-22 Pedro Alves <palves@redhat.com>
6174 * infrun.c (schedlock_applies): New function, factored out from
6175 find_thread_needs_step_over.
6176 (find_thread_needs_step_over): Use it.
6177 (switch_back_to_stepped_thread): Always clear trap_expected if the
6178 step over is finished. Return early if scheduler locking applies.
6179 Look for the stepping thread and a potential step-over thread with
6181 (currently_stepping_or_nexting_callback): Delete.
6183 2014-04-22 Nick Clifton <nickc@redhat.com>
6185 * NEWS: Mention that ARM sim now supports tracing.
6187 2014-04-22 Yao Qi <yao@codesourcery.com>
6189 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6191 * tracefile.c (tracefile_fetch_registers): ... it. New
6193 * tracefile.h (tracefile_fetch_registers): Declare.
6194 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6195 tracefile_fetch_registers.
6197 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6200 * windows-nat.c (thread_rec): Don't display a warning when
6201 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6202 fails for any reason, set th->suspended to -1, so that we don't
6203 try to resume such a thread. Also, don't return NULL in these
6204 cases, to avoid completely ruin the session due to "PC register is
6205 not available" error.
6206 (do_windows_fetch_inferior_registers): Check errors in
6207 GetThreadContext call.
6208 (windows_continue): Accept an additional argument KILLED; if not
6209 zero, ignore errors in the SetThreadContext call, since the
6210 inferior was killed and is shutting down.
6211 (windows_resume, get_windows_debug_event)
6212 (windows_create_inferior, windows_mourn_inferior)
6213 (windows_kill_inferior): All callers of windows_continue changed
6214 to adjust to its new calling sequence.
6216 2014-04-19 Yao Qi <yao@codesourcery.com>
6218 * ctf.c (ctf_open): Call post_create_inferior.
6220 2014-04-19 Yao Qi <yao@codesourcery.com>
6222 * ctf.c (handle_id): New static variable.
6223 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6224 value. Get the declaration of event "register" and get length
6225 of field "contents".
6227 2014-04-19 Yao Qi <yao@codesourcery.com>
6229 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6231 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6233 * valops.c (oload_method_static): Remove unnecessary argument
6234 METHOD. Update all callers.
6236 2014-04-18 Pedro alves <palves@redhat.com>
6237 Tom Tromey <tromey@redhat.com>
6240 * frame.c (get_prev_frame_1): Rename to ...
6241 (get_prev_frame_always): ... this, and make extern. Adjust.
6242 (skip_artificial_frames): Use get_prev_frame_always.
6243 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6244 (get_frame_unwind_stop_reason): Adjust to rename.
6245 * frame.h (get_prev_frame_always): Declare.
6246 * inline-frame.c: Include frame.h.
6247 (inline_frame_this_id): Use get_prev_frame_always.
6249 2014-04-18 Tristan Gingold <gingold@adacore.com>
6251 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6252 code by using bfd_mach_o_get_base_address.
6254 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6256 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6257 (spu_ax_pseudo_register_collect): New function.
6258 (spu_ax_pseudo_register_push_stack): Likewise.
6259 (spu_dwarf_reg_to_regnum): Likewise.
6260 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6262 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6264 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6265 Replace FRAME argument with FRAME_ID.
6266 * gdbarch.c, gdbarch.h: Regenerate.
6267 * findvar.c (default_value_from_register): Add GDBARCH argument;
6268 replace FRAME by FRAME_ID. No longer call get_frame_id.
6269 (value_from_register): Update call to gdbarch_value_from_register.
6270 * value.h (default_value_from_register): Update prototype.
6271 * s390-linux-tdep.c (s390_value_from_register): Update interface
6272 and call to default_value_from_register.
6273 * spu-tdep.c (spu_value_from_register): Likewise.
6275 * findvar.c (address_from_register): Remove TYPE argument.
6276 Do not call value_from_register; use gdbarch_value_from_register
6277 with null_frame_id instead.
6278 * value.h (address_from_register): Update prototype.
6279 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6280 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6281 address_from_register interface change.
6283 2014-04-17 Yao Qi <yao@codesourcery.com>
6285 * gdbtypes.h: Update comments to link to types and macros'
6288 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6290 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6292 2014-04-16 Keith Seitz <keiths@redhat.com>
6295 * dwarf2read.c (skip_one_die): Check that all relative-offset
6296 sibling DIEs fall within range of the current reader's buffer.
6297 (read_partial_die): Likewise.
6299 2014-04-16 Keith Seitz <keiths@redhat.com>
6302 * cp-namespace.c (lookup_symbol_file): If the type name of
6303 `this' is NULL, return immediately.
6305 2014-04-14 Keith Seitz <keiths@redhat.com>
6308 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6309 from symbol_matches_domain in symtab.c. All local callers
6310 of symbol_matches_domain updated.
6311 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6312 search STRUCT_DOMAIN.
6313 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6314 independently. standard_lookup will do that automatically.
6315 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6316 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6317 (cp_lookup_symbol_in_namespace): Likewise.
6318 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6319 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6320 may return a STRUCT_DOMAIN match.
6321 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6322 * cp-support.c: Include language.h.
6323 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6325 * psymtab.c (match_partial_symbol): Compare the requested
6326 domain with the symbol's domain directly.
6327 (lookup_partial_symbol): Likewise.
6328 * symtab.c (lookup_symbol_in_language): Explain when/why
6329 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6330 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6331 appropriate languages.
6332 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6333 and moved to ada-lang.c
6334 (lookup_block_symbol): Explain that this function only returns
6335 symbol matching the requested DOMAIN.
6336 Compare the requested domain with the symbol's domain directly.
6337 (iterate_over_symbols): Compare the requested domain with the
6338 symbol's domain directly.
6339 * symtab.h (symbol_matches_domain): Remove.
6341 2014-04-14 Tom Tromey <tromey@redhat.com>
6344 * c-exp.y (type_aggregate_p): New function.
6345 (qualified_name, classify_inner_name): Use it.
6346 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6347 and TYPE_TARGET_TYPE of an enum type.
6348 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6350 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6351 handle TYPE_DECLARED_CLASS.
6352 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6354 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6355 * valops.c (enum_constant_from_type): New function.
6356 (value_aggregate_elt): Use it.
6357 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6360 2014-04-14 Tom Tromey <tromey@redhat.com>
6362 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6363 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6365 * value.h (value_aggregate_elt): Update.
6367 2014-04-14 Tom Tromey <tromey@redhat.com>
6369 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6371 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6373 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6374 (evaluate_subexp_standard): Pass noside argument.
6375 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6376 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6377 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6378 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6379 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6381 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6383 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6384 points to a constant blob.
6386 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6388 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6389 property and store it as the high bound and flag the range accordingly.
6390 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6391 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6392 * gdbtypes.h (enum range_flags): New enum.
6393 (struct range_bounds): Add flags member.
6395 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6397 * c-typeprint.c (c_type_print_varspec_suffix): Added
6398 check for not yet resolved high bound. If unresolved, print
6399 "variable length" string to the console instead of random
6402 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6404 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6406 (ada_template_to_fixed_record_type_1): Likewise.
6407 (ada_to_fixed_type_1): Likewise.
6408 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6409 (cp_print_value): Likewise.
6410 * d-valprint.c (dynamic_array_type): Likewise.
6411 * findvar.c (address_of_variable): Likewise.
6412 * jv-valprint.c (java_value_print): Likewise.
6413 * valops.c (value_ind): Likewise.
6414 * value.c (coerce_ref): Likewise.
6416 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6418 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6419 value and retrieve the dynamic type size.
6421 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6423 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6424 passed to sizeof is dynamic evaluate the argument to compute the length.
6426 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6427 Joel Brobecker <brobecker@adacore.com>
6429 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6430 (dwarf2_evaluate_property): New function.
6431 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6432 * dwarf2read.c (attr_to_dynamic_prop): New function.
6433 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6435 * gdbtypes.c: Include dwarf2loc.h.
6436 (is_dynamic_type): New function.
6437 (resolve_dynamic_type): New function.
6438 (resolve_dynamic_bounds): New function.
6439 (get_type_length): New function.
6440 (check_typedef): Use get_type_length to compute type length.
6441 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6442 (TYPE_LOW_BOUND_KIND): New macro.
6443 (is_dynamic_type): New function prototype.
6444 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6445 to resolve dynamic properties of the type. Update comment.
6446 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6448 2014-04-14 Richard Henderson <rth@redhat.com>
6450 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6452 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6453 Doug Evans <xdje42@gmail.com>
6455 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6456 dereference TYPE_CODE_REF values.
6458 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6460 Revert the following changes due to regressions:
6462 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6463 (dwarf2_evaluate_property): New function.
6464 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6465 * dwarf2read.c (attr_to_dynamic_prop): New function.
6466 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6468 * gdbtypes.c: Include dwarf2loc.h.
6469 (is_dynamic_type): New function.
6470 (resolve_dynamic_type): New function.
6471 (resolve_dynamic_bounds): New function.
6472 (get_type_length): New function.
6473 (check_typedef): Use get_type_length to compute type length.
6474 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6475 (TYPE_LOW_BOUND_KIND): New macro.
6476 (is_dynamic_type): New function prototype.
6477 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6478 to resolve dynamic properties of the type. Update comment.
6479 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6481 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6482 passed to sizeof is dynamic evaluate the argument to compute the length.
6484 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6485 value and retrieve the dynamic type size.
6487 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6488 (ada_template_to_fixed_record_type_1): Likewise.
6489 (ada_to_fixed_type_1): Likewise.
6490 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6491 (cp_print_value): Likewise.
6492 * d-valprint.c (dynamic_array_type): Likewise.
6493 * eval.c (evaluate_subexp_with_coercion): Likewise.
6494 * findvar.c (address_of_variable): Likewise.
6495 * jv-valprint.c (java_value_print): Likewise.
6496 * valops.c (value_ind): Likewise.
6497 * value.c (coerce_ref): Likewise.
6499 * c-typeprint.c (c_type_print_varspec_suffix): Added
6500 check for not yet resolved high bound. If unresolved, print
6501 "variable length" string to the console instead of random
6504 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6505 property and store it as the high bound and flag the range accordingly.
6506 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6507 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6508 * gdbtypes.h (enum range_flags): New enum.
6509 (struct range_bounds): Add flags member.
6511 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6512 points to a constant blob.
6514 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6515 (evaluate_subexp_standard): Pass noside argument.
6516 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6517 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6518 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6519 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6520 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6522 2014-04-11 Keith Seitz <keiths@redhat.com>
6525 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6526 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6529 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6531 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6532 (evaluate_subexp_standard): Pass noside argument.
6533 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6534 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6535 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6536 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6537 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6539 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6541 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6542 points to a constant blob.
6544 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6546 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6547 property and store it as the high bound and flag the range accordingly.
6548 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6549 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6550 * gdbtypes.h (enum range_flags): New enum.
6551 (struct range_bounds): Add flags member.
6553 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6555 * c-typeprint.c (c_type_print_varspec_suffix): Added
6556 check for not yet resolved high bound. If unresolved, print
6557 "variable length" string to the console instead of random
6560 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6562 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6563 (ada_template_to_fixed_record_type_1): Likewise.
6564 (ada_to_fixed_type_1): Likewise.
6565 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6566 (cp_print_value): Likewise.
6567 * d-valprint.c (dynamic_array_type): Likewise.
6568 * eval.c (evaluate_subexp_with_coercion): Likewise.
6569 * findvar.c (address_of_variable): Likewise.
6570 * jv-valprint.c (java_value_print): Likewise.
6571 * valops.c (value_ind): Likewise.
6572 * value.c (coerce_ref): Likewise.
6574 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6576 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6577 value and retrieve the dynamic type size.
6579 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6581 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6582 passed to sizeof is dynamic evaluate the argument to compute the length.
6584 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6586 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6587 (dwarf2_evaluate_property): New function.
6588 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6589 * dwarf2read.c (attr_to_dynamic_prop): New function.
6590 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6592 * gdbtypes.c: Include dwarf2loc.h.
6593 (is_dynamic_type): New function.
6594 (resolve_dynamic_type): New function.
6595 (resolve_dynamic_bounds): New function.
6596 (get_type_length): New function.
6597 (check_typedef): Use get_type_length to compute type length.
6598 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6599 (TYPE_LOW_BOUND_KIND): New macro.
6600 (is_dynamic_type): New function prototype.
6601 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6602 to resolve dynamic properties of the type. Update comment.
6603 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6605 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6607 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6608 declaring high/low bounds and change uses accordingly. Call
6609 create_range_type instead of create_static_range_type.
6610 * gdbtypes.c (create_range_type): New function.
6611 (create_range_type): Convert bounds into struct bound_prop and pass
6612 them to create_range_type.
6613 * gdbtypes.h (struct bound_prop): New struct.
6614 (create_range_type): New function prototype.
6615 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6616 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6617 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6619 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6621 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6623 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6624 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6625 * ada-lang.c: All uses of create_range_type updated.
6626 * coffread.c: All uses of create_range_type updated.
6627 * dwarf2read.c: All uses of create_range_type updated.
6628 * f-exp.y: All uses of create_range_type updated.
6629 * m2-valprint.c: All uses of create_range_type updated.
6630 * mdebugread.c: All uses of create_range_type updated.
6631 * stabsread.c: All uses of create_range_type updated.
6632 * valops.c: All uses of create_range_type updated.
6633 * valprint.c: All uses of create_range_type updated.
6635 2014-04-10 Pedro Alves <palves@redhat.com>
6637 * breakpoint.c (single_step_breakpoints)
6638 (single_step_gdbarch): Move up in the file.
6639 (one_breakpoint_xfer_memory): New function, factored out from ...
6640 (breakpoint_xfer_memory): ... here. Also process single-step
6643 2014-04-09 Tristan Gingold <gingold@adacore.com>
6645 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6647 (darwin_decode_exception_message): Free port only after use.
6649 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6651 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6652 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6653 when setting the size of call_length.
6655 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6657 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6658 dereference TYPE_CODE_REF values.
6660 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6662 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6663 end of warning message.
6665 2014-04-03 Doug Evans <dje@google.com>
6667 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6668 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6670 2014-04-02 Alan Modra <amodra@gmail.com>
6672 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6673 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6674 (struct symbol_file_add_from_memory_args): Add size field.
6675 (find_vdso_size): New function.
6676 (add_vsyscall_page): Attempt to find vdso size.
6678 2014-04-01 Doug Evans <dje@google.com>
6680 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6682 2014-04-01 Tristan Gingold <gingold@adacore.com>
6684 * darwin-nat.c (darwin_encode_reply): Add prototype.
6685 (darwin_decode_exception_message): Reply to unknown inferiors.
6686 (darwin_decode_message): Handle message by id. Ignore message
6687 to unknown inferior.
6688 (darwin_wait): Discard unknown messages, add debug trace.
6690 2014-03-31 Doug Evans <dje@google.com>
6692 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6695 2014-03-31 Doug Evans <dje@google.com>
6697 New option "set print symbol-loading".
6699 * solib.c (solib_read_symbols): Only print symbol loading messages
6701 (solib_add): If symbol loading is in "brief" mode, notify user
6702 symbols are being loaded.
6703 (reload_shared_libraries_1): Ditto.
6704 * symfile.c (print_symbol_loading_off): New static global.
6705 (print_symbol_loading_brief): New static global.
6706 (print_symbol_loading_full): New static global.
6707 (print_symbol_loading_enums): New static global.
6708 (print_symbol_loading): New static global.
6709 (print_symbol_loading_p): New function.
6710 (symbol_file_add_with_addrs): Only print symbol loading messages
6712 (_initialize_symfile): Register "print symbol-loading" set/show
6714 * symfile.h (print_symbol_loading_p): Declare.
6716 2014-03-30 Doug Evans <xdje42@gmail.com>
6718 * infrun.c (set_last_target_status): New function.
6719 (handle_inferior_event): Call it.
6721 2014-03-30 Doug Evans <xdje42@gmail.com>
6723 * inferior.h (enum stop_kind): Improve comment.
6725 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6727 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6728 a reference, strip the reference layer before calling
6729 the lang_ops value_has_mutated callback.
6731 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6733 Remove some globals from our parser.
6734 * language.c (unk_lang_parser): Add "struct parser_state"
6736 * language.h (struct language_defn) <la_parser>: Likewise.
6737 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6738 (initialize_expout): Add "struct parser_state" argument.
6739 Rewrite function to use the parser state.
6740 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6741 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6742 write_exp_elt_longcst, write_exp_elt_dblcst,
6743 write_exp_elt_decfloatcst, write_exp_elt_type,
6744 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6745 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6746 write_dollar_variable): Likewise.
6747 (parse_exp_in_context_1): Use parser state.
6748 (insert_type_address_space): Add "struct parser_state" argument.
6750 (increase_expout_size): New function.
6751 * parser-defs.h: Forward declare "struct language_defn" and
6752 "struct parser_state".
6753 (expout, expout_size, expout_ptr): Remove extern declarations.
6754 (parse_gdbarch, parse_language): Rewrite macro declarations to
6755 accept the parser state.
6756 (struct parser_state): New struct.
6757 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6758 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6759 write_exp_elt_decfloatcst, write_exp_elt_type,
6760 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6761 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6762 write_exp_msymbol, write_dollar_variable,
6763 mark_struct_expression, insert_type_address_space): Add "struct
6764 parser_state" argument.
6765 (increase_expout_size): New function.
6766 * utils.c (do_clear_parser_state): New function.
6767 (make_cleanup_clear_parser_state): Likewise.
6768 * utils.h (make_cleanup_clear_parser_state): New function
6770 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6771 Update calls to write_exp* in order to pass the parser state.
6772 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6773 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6774 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6775 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6776 * stap-probe.c (stap_parse_register_operand): Likewise.
6777 (stap_parse_single_operand): Likewise.
6778 (stap_parse_argument_1): Likewise.
6779 (stap_parse_argument): Use parser state.
6780 * stap-probe.h: Include "parser-defs.h".
6781 (struct stap_parse_info) <pstate>: New field.
6782 * c-exp.y (parse_type): Rewrite to use parser state.
6783 (yyparse): Redefine to c_parse_internal.
6784 (pstate): New global variable.
6785 (parse_number): Add "struct parser_state" argument.
6786 (write_destructor_name): Likewise.
6787 (type_exp): Update calls to write_exp* and similars in order to
6789 (exp1, exp, variable, qualified_name, space_identifier,
6790 typename, typebase): Likewise.
6791 (write_destructor_name, parse_number, lex_one_token,
6792 classify_name, classify_inner_name, c_parse): Add "struct
6793 parser_state" argument. Update function to use parser state.
6794 * c-lang.h: Forward declare "struct parser_state".
6795 (c_parse): Add "struct parser_state" argument.
6796 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6797 (yyparse): Redefine macro to ada_parse_internal.
6798 (pstate): New variable.
6799 (write_int, write_object_renaming, write_var_or_type,
6800 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6801 type_int, type_long, type_long_long, type_float, type_double,
6802 type_long_double, type_char, type_boolean, type_system_address):
6803 Add "struct parser_state" argument.
6804 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6805 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6806 var_or_type, aggregate, aggregate_component_list,
6807 positional_list, others, component_group,
6808 component_associations): Update calls to write_exp* and similar
6809 functions in order to use parser state.
6810 (ada_parse, write_var_from_sym, write_int,
6811 write_exp_op_with_string, write_object_renaming,
6812 find_primitive_type, write_selectors, write_ambiguous_var,
6813 write_var_or_type, write_name_assoc, type_int, type_long,
6814 type_long_long, type_float, type_double, type_long_double,
6815 type_char, type_boolean, type_system_address): Add "struct
6816 parser_state" argument. Adjust function to use parser state.
6817 * ada-lang.c (parse): Likewise.
6818 * ada-lang.h: Forward declare "struct parser_state".
6819 (ada_parse): Add "struct parser_state" argument.
6820 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6821 calls to both functions.
6822 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6824 (yyparse): Redefine macro to f_parse_internal.
6825 (pstate): New variable.
6826 (parse_number): Add "struct parser_state" argument.
6827 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6828 and similars in order to use parser state.
6829 (parse_number): Adjust code to use parser state.
6831 (f_parse): New function.
6832 * f-lang.h: Forward declare "struct parser_state".
6833 (f_parse): Add "struct parser_state" argument.
6834 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6836 (yyparse): Redefine macro for java_parse_internal.
6837 (pstate): New variable.
6838 (push_expression_name, push_expression_name, insert_exp): Add
6839 "struct parser_state" argument.
6840 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6841 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6842 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6843 PostIncrementExpression, PostDecrementExpression,
6844 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6845 UnaryExpressionNotPlusMinus, CastExpression,
6846 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6847 RelationalExpression, EqualityExpression, AndExpression,
6848 ExclusiveOrExpression, InclusiveOrExpression,
6849 ConditionalAndExpression, ConditionalOrExpression,
6850 ConditionalExpression, Assignment, LeftHandSide): Update
6851 calls to write_exp* and similars in order to use parser state.
6852 (parse_number): Ajust code to use parser state.
6854 (java_parse): New function.
6855 (push_variable): Add "struct parser_state" argument. Adjust
6856 code to user parser state.
6857 (push_fieldnames, push_qualified_expression_name,
6858 push_expression_name, insert_exp): Likewise.
6859 * jv-lang.h: Forward declare "struct parser_state".
6860 (java_parse): Add "struct parser_state" argument.
6861 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6863 (yyparse): Redefine macro to m2_parse_internal.
6864 (pstate): New variable.
6865 (type_exp, exp, fblock, variable, type): Update calls to
6866 write_exp* and similars to use parser state.
6868 (m2_parse): New function.
6869 * m2-lang.h: Forward declare "struct parser_state".
6870 (m2_parse): Add "struct parser_state" argument.
6871 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6872 * objc-lang.h: Forward declare "struct parser_state".
6873 (end_msglist): Add "struct parser_state" argument.
6874 * p-exp.y (parse_type): Rewrite macro to use parser state.
6875 (yyparse): Redefine macro to pascal_parse_internal.
6876 (pstate): New variable.
6877 (parse_number): Add "struct parser_state" argument.
6878 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6879 write_exp* and similars in order to use parser state.
6880 (parse_number, yylex): Adjust code to use parser state.
6881 (pascal_parse): New function.
6882 * p-lang.h: Forward declare "struct parser_state".
6883 (pascal_parse): Add "struct parser_state" argument.
6884 * go-exp.y (parse_type): Rewrite macro to use parser state.
6885 (yyparse): Redefine macro to go_parse_internal.
6886 (pstate): New variable.
6887 (parse_number): Add "struct parser_state" argument.
6888 (type_exp, exp1, exp, variable, type): Update calls to
6889 write_exp* and similars in order to use parser state.
6890 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6891 to use parser state.
6892 (go_parse): Likewise.
6893 * go-lang.h: Forward declare "struct parser_state".
6894 (go_parse): Add "struct parser_state" argument.
6896 2014-03-27 Doug Evans <dje@google.com>
6898 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6900 2014-03-27 Doug Evans <dje@google.com>
6902 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6903 Remove argument abbrev_section. All callers updated.
6905 2014-03-27 Doug Evans <dje@google.com>
6907 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6908 addr_base, ranges_base.
6910 2014-03-26 Keith Seitz <keiths@redhat.com>
6912 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6913 types, not VAR_DOMAIN.
6915 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6917 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6919 * features/nios2-linux.c: Regenerated.
6920 * features/nios2.c: Regenerated.
6922 2014-03-25 Pedro Alves <palves@redhat.com>
6924 * cli/cli-script.c (script_from_file): Force the interpreter to
6927 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6929 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6930 small stack allocation.
6932 2014-03-24 Tristan Gingold <gingold@adacore.com>
6934 * darwin-nat.c (exc_server): Remove unused prototype.
6935 (darwin_dump_message): Correctly display data on x86_64.
6936 (darwin_encode_reply): Fix style.
6937 Add comments and fix indentation.
6939 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6941 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6943 2014-03-22 Doug Evans <xdje42@gmail.com>
6945 * infcmd.c: Whitespace fixes.
6946 (interrupt_command): Merge two function comments into one.
6948 2014-03-22 Doug Evans <xdje42@gmail.com>
6950 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6953 2014-03-22 Yao Qi <yao@codesourcery.com>
6955 * remote.c (target_read_live_memory): Remove.
6956 (memory_xfer_live_readonly_partial): Rename it to
6957 remote_xfer_live_readonly_partial. Remove argument 'object'.
6958 All callers updated. Call remote_read_bytes_1
6959 instead of target_read_live_memory.
6960 * tracepoint.c (set_traceframe_number): Remove.
6961 (make_cleanup_restore_traceframe_number): Likewise .
6962 * tracepoint.h (set_traceframe_number): Remove declaration.
6963 (make_cleanup_restore_traceframe_number): Likewise.
6965 2014-03-22 Yao Qi <yao@codesourcery.com>
6967 * remote.c (remote_read_bytes): Move code on reading from the
6969 (remote_read_bytes_1): ... here. New function.
6971 2014-03-22 Yao Qi <yao@codesourcery.com>
6973 * ctf.c (ctf_xfer_partial): Check the return value of
6974 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6975 return TARGET_XFER_UNAVAILABLE.
6976 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6977 * target.c (target_read_live_memory): Move it to remote.c.
6978 (memory_xfer_live_readonly_partial): Likewise.
6979 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6980 * remote.c (target_read_live_memory): Moved from target.c.
6981 (memory_xfer_live_readonly_partial): Likewise.
6982 (remote_read_bytes): Factored out from
6983 memory_xfer_partial_1.
6985 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6987 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6990 2014-03-21 Pedro Alves <palves@redhat.com>
6992 * infrun.c (normal_stop): Extend comment.
6994 2014-03-21 Hui Zhu <hui@codesourcery.com>
6995 Pedro Alves <palves@redhat.com>
6997 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6999 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7000 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7001 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7003 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7005 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7006 `z' formatted output modifier.
7008 2014-03-20 Tom Tromey <tromey@redhat.com>
7009 Sergio Durigan Junior <sergiodj@redhat.com>
7011 * probe.c (parse_probes): Turn assert into an ordinary error.
7012 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7013 exceptions when parsing probes. Rearrange the code for clarity.
7015 2014-03-20 Tom Tromey <tromey@redhat.com>
7018 * top.c (execute_command): Only dispatch events if the command
7021 2014-03-20 Tom Tromey <tromey@redhat.com>
7024 * infcall.c: Include event-top.h.
7025 (run_inferior_call): Call async_disable_stdin if needed.
7027 2014-03-20 Pedro Alves <palves@redhat.com>
7029 * infrun.c (prepare_to_proceed): Delete.
7030 (thread_still_needs_step_over): New function.
7031 (find_thread_needs_step_over): New function.
7032 (proceed): If the current thread needs a step-over, set its
7033 steping_over_breakpoint flag. Adjust to use
7034 find_thread_needs_step_over instead of prepare_to_proceed.
7035 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7036 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7038 (switch_back_to_stepped_thread): Step over breakpoints of all
7039 threads not the stepping thread, before switching back to the
7042 2014-03-20 Pedro Alves <palves@redhat.com>
7044 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7046 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7047 * infrun.c (saved_singlestep_ptid)
7048 (stepping_past_singlestep_breakpoint): Delete.
7049 (resume): Remove stepping_past_singlestep_breakpoint handling.
7050 (proceed): Store the prev_pc of the stepping thread too.
7051 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7053 (enum infwait_states): Delete infwait_thread_hop_state.
7054 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7056 (handle_inferior_event): Adjust.
7057 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7058 handling and the thread-hop code. Before removing single-step
7059 breakpoints, check whether the thread hit a single-step breakpoint
7060 of another thread. If it did, the trap is not a random signal.
7061 (switch_back_to_stepped_thread): If the event thread hit a
7062 single-step breakpoint, unblock it before switching to the
7063 stepping thread. Handle the case of the stepped thread having
7065 (keep_going): Handle the case of the current thread moving past a
7066 single-step breakpoint.
7068 2014-03-20 Pedro Alves <palves@redhat.com>
7071 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7072 are being stepped over.
7073 (breakpoint_address_match): Make extern.
7074 * breakpoint.h (breakpoint_address_match): New declaration.
7075 * inferior.h (stepping_past_instruction_at): New declaration.
7076 * infrun.c (struct step_over_info): New type.
7077 (step_over_info): New global.
7078 (set_step_over_info, clear_step_over_info)
7079 (stepping_past_instruction_at): New functions.
7080 (handle_inferior_event): Clear the step-over info when
7081 trap_expected is cleared.
7082 (resume): Remove now stale comment.
7083 (clear_proceed_status): Clear step-over info.
7084 (proceed): Adjust step-over handling to set or clear the step-over
7085 info instead of removing all breakpoints.
7086 (handle_signal_stop): When setting up a thread-hop, don't remove
7088 (stop_stepping): Clear step-over info.
7089 (keep_going): Adjust step-over handling to set or clear step-over
7090 info and then always inserting breakpoints, instead of removing
7091 all breakpoints when stepping over one.
7093 2014-03-20 Pedro Alves <palves@redhat.com>
7095 * infrun.c (previous_inferior_ptid): Adjust comment.
7096 (deferred_step_ptid): Delete.
7097 (infrun_thread_ptid_changed, prepare_to_proceed)
7098 (init_wait_for_inferior): Adjust.
7099 (handle_signal_stop): Delete deferred_step_ptid handling.
7101 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7104 * defs.h (sync_quit_force_run): New declaration.
7105 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7106 * event-top.c (async_sigterm_handler): New declaration.
7107 (async_sigterm_token): New variable.
7108 (async_init_signals): Create also async_sigterm_token.
7109 (async_sigterm_handler): New function.
7110 (sync_quit_force_run): New variable.
7111 (handle_sigterm): Replace quit_force call by other calls.
7112 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7114 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7116 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7117 offset into SPE pseudo registers.
7119 2014-03-18 Pedro Alves <palves@redhat.com>
7122 * inferior.h (print_stop_event): Declare.
7123 * infrun.c (print_stop_event): New, factored out from ...
7124 (normal_stop): ... this.
7125 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7126 of bpstat_print/print_stack_frame.
7128 2014-03-17 Tom Tromey <tromey@redhat.com>
7130 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7132 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7134 * ada-lang.c (decode_constrained_packed_array): Perform a
7135 minimal coercion for reference with coerce_ref instead of
7138 2014-03-17 Tristan Gingold <gingold@adacore.com>
7140 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7141 (darwin_solib_create_inferior_hook): Emit a warning if version
7144 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7146 * python/py-value.c (get_field_flag): Cast flag_name argument to
7147 PyObject_GetAttrString to support Python 2.4.
7149 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7151 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7152 (Global Maintainers): Remove Jan Kratochvil.
7154 2014-03-14 Pedro Alves <palves@redhat.com>
7156 * inferior.h (terminal_ours_for_output): Rename to ...
7157 (child_terminal_ours_for_output): ... this.
7158 (terminal_save_ours): Rename to ...
7159 (child_terminal_save_ours): ... this.
7160 (terminal_ours): Rename to ...
7161 (child_terminal_ours): ... this.
7162 (terminal_inferior): Rename to ...
7163 (child_terminal_inferior): ... this.
7164 (terminal_init_inferior): Rename to ...
7165 (child_terminal_init_inferior): ... this.
7166 (terminal_init_inferior_with_pgrp): Rename to ...
7167 (child_terminal_init_inferior_with_pgrp): ... this.
7168 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7169 (child_terminal_init_with_pgrp): ... this.
7170 (terminal_save_ours): Rename to ...
7171 (child_terminal_save_ours): ... this.
7172 (terminal_init_inferior): Rename to ...
7173 (child_terminal_init): ... this. Adjust.
7174 (terminal_inferior): Rename to ...
7175 (child_terminal_inferior): ... this.
7176 (terminal_ours_for_output): Rename to ...
7177 (child_terminal_ours_for_output): ... this. Adjust.
7178 (terminal_ours): Rename to ...
7179 (child_terminal_ours): ... this.
7180 (terminal_ours_1): Rename to ...
7181 (child_terminal_ours_1): ... this. Adjust.
7182 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7183 * windows-nat.c (do_initial_windows_stuff): Adjust.
7184 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7185 (gnu_terminal_init): ... this. Adjust.
7186 (gnu_target): Adjust.
7187 * inf-child.c (inf_child_target): Adjust.
7189 2014-03-13 Doug Evans <xdje42@gmail.com>
7192 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7195 2014-03-13 Doug Evans <xdje42@gmail.com>
7197 * value.c (record_latest_value): Call release_value_or_incref
7198 instead of release_value.
7200 2014-03-13 Pedro Alves <palves@redhat.com>
7202 * procfs.c (procfs_target): Don't override to_shortname,
7203 to_longname or to_doc.
7205 2014-03-13 Pedro Alves <palves@redhat.com>
7207 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7208 Unix in user visible strings.
7210 2014-03-12 Stan Shebs <stan@codesourcery.com>
7212 * gdbtypes.h: Annotate comments for Doxygen, add a page
7213 block comment with some general info.
7215 2014-03-12 Pedro Alves <palves@redhat.com>
7217 * infcmd.c (prepare_execution_command): New function, factored out
7218 from several execution commands.
7219 (run_command_1, continue_command, step_1, jump_command)
7220 (signal_command, until_command, advance_command, finish_command)
7221 (attach_command): Use prepare_execution_command.
7223 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7225 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7228 (struct arm_linux_thread_points): Removed.
7229 (struct arm_linux_process_info): New.
7230 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7231 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7232 (arm_linux_find_breakpoints_by_tid): Removed.
7233 (struct arch_lwp_info): New.
7234 (arm_linux_find_process_pid): New functions.
7235 (arm_linux_add_process): New functions.
7236 (arm_linux_process_info_get): New functions.
7237 (arm_linux_forget_process): New function.
7238 (arm_linux_get_debug_reg_state): New function.
7239 (struct update_registers_data): New.
7240 (update_registers_callback): New function.
7241 (arm_linux_insert_hw_breakpoint1): Updated.
7242 (arm_linux_remove_hw_breakpoint1): Updated.
7243 (arm_linux_insert_hw_breakpoint): Updated.
7244 (arm_linux_remove_hw_breakpoint): Updated.
7245 (arm_linux_insert_watchpoint): Updated.
7246 (arm_linux_remove_watchpoint): Updated.
7247 (arm_linux_new_thread): Updated.
7248 (arm_linux_prepare_to_resume): New function.
7249 (arm_linux_new_fork): New function.
7250 (_initialize_arm_linux_nat): Updated.
7252 2014-03-12 Pedro Alves <palves@redhat.com>
7254 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7256 2014-03-12 Tom Tromey <tromey@redhat.com>
7258 * inf-child.c (return_zero): New function.
7259 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7260 * aix-thread.c (aix_thread_inferior_created): New function.
7261 (aix_thread_attach): Remove.
7262 (init_aix_thread_ops): Don't set to_attach.
7263 (_initialize_aix_thread): Register inferior_created observer.
7264 * corelow.c (init_core_ops): Don't set to_attach or
7266 * exec.c (init_exec_ops): Don't set to_attach or
7268 * infcmd.c (run_command_1): Use find_run_target. Make direct
7270 (attach_command): Use find_attach_target. Make direct target
7272 * record-btrace.c (init_record_btrace_ops): Don't set
7274 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7276 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7277 set to_create_inferior.
7278 * target.c (complete_target_initialization): Add assertion.
7279 (target_create_inferior): Remove.
7280 (find_default_attach, find_default_create_inferior): Remove.
7281 (find_attach_target, find_run_target): New functions.
7282 (find_default_is_async_p, find_default_can_async_p)
7283 (target_supports_non_stop, target_attach): Remove.
7284 (init_dummy_target): Don't set to_create_inferior or
7285 to_supports_non_stop.
7286 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7287 TARGET_DEFAULT_FUNC.
7288 <to_create_inferior>: Add comment.
7289 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7290 TARGET_DEFAULT_RETURN.
7291 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7292 (find_attach_target, find_run_target): Declare.
7293 (target_create_inferior): Remove.
7294 (target_has_execution_1): Update comment.
7295 (target_supports_non_stop): Remove.
7296 * target-delegates.c: Rebuild.
7298 2014-03-12 Pedro Alves <palves@redhat.com>
7300 * inf-child.h: Update comment to not mention Unix.
7302 2014-03-12 Pedro Alves <palves@redhat.com>
7304 * inf-child.c: Update top comment to not mention Unix. Add
7305 generic comment describing how this target is meant to be used.
7306 (inf_child_post_attach, inf_child_post_startup_inferior)
7307 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7310 2014-03-12 Pedro Alves <palves@redhat.com>
7312 * nto-procfs.c: Include inf-child.h.
7313 (procfs_ops): Delete global.
7314 (procfs_can_run): Delete method.
7315 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7316 target pointer instead of referencing procfs_ops.
7317 (procfs_prepare_to_store): Delete.
7318 (init_procfs_ops): Delete function.
7319 (procfs_target): New function, based on init_procfs_ops, but
7320 inherit inf_child_target.
7321 (_initialize_procfs): Use procfs_target.
7323 2014-03-12 Pedro Alves <palves@redhat.com>
7325 * windows-nat.c: Include inf-child.h.
7326 (windows_ops): Delete global.
7327 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7329 (init_windows_ops): Delete function.
7330 (windows_target): New function, based on init_windows_ops, but
7331 inherit inf_child_target.
7332 (_initialize_windows_nat): Use windows_target. Install x86
7333 specific target methods here.
7335 2014-03-10 Doug Evans <xdje42@gmail.com>
7337 * guile/guile.c (call_initialize_gdb_module): New function.
7338 (initialize_guile): Replace call to scm_init_guile with call to
7341 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7343 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7344 in call to TYPE_CODE macro.
7346 2014-03-10 Jerome Guitton <guitton@adacore.com>
7348 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7349 Resolve tagged types to full view.
7351 2014-03-10 Hui Zhu <hui@codesourcery.com>
7353 * target.h (target_insert_breakpoint): Remove "hardware" from its
7356 2014-03-07 Doug Evans <dje@google.com>
7358 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7360 2014-03-07 Doug Evans <dje@google.com>
7362 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7363 Remove unused local comp_dir_attr. Assert exactly one of
7364 stub_comp_unit_die, stub_comp_dir is non-NULL.
7366 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7368 * target.h (complete_target_initialization, add_target):
7371 2014-03-07 Pedro Alves <palves@redhat.com>
7373 * go32-nat.c: Include inf-child.h.
7374 (go32_ops): Delete global.
7375 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7377 (go32_create_inferior): Push the passed in target pointer instead
7378 of referencing go32_ops.
7379 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7380 (go32_target): New function, based on init_go32_ops, but inherit
7382 (_initialize_go32_nat): Use go32_target. Move parts of
7385 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7387 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7388 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7389 SYMBOL_VALUE_ADDRESS.
7390 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7392 2014-03-06 Yao Qi <yao@codesourcery.com>
7394 * breakpoint.c (get_tracepoint_by_number): Remove argument
7395 optional_p. All callers updated. Adjust comments. Update
7397 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7399 2014-03-06 Yao Qi <yao@codesourcery.com>
7401 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7402 early if get_number returns zero. Use 'p' instead of 'args'.
7404 2014-03-06 Yao Qi <yao@codesourcery.com>
7406 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7409 2014-03-06 Yao Qi <yao@codesourcery.com>
7411 PR breakpoints/16508
7412 * tracepoint.c (check_trace_running): New function.
7413 (trace_find_command): Move code to check_trace_running and
7414 call check_trace_running.
7415 (trace_find_pc_command): Likewise.
7416 (trace_find_tracepoint_command): Likewise.
7417 (trace_find_line_command): Likewise.
7418 (trace_find_range_command): Likewise.
7419 * tracepoint.h (check_trace_running): Likewise.
7420 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7422 2014-03-06 Yao Qi <yao@codesourcery.com>
7424 * target.h (struct target_ops) <to_traceframe_info>: Use
7425 TARGET_DEFAULT_NORETURN (tcomplain ()).
7426 * target-delegates.c: Regenerated.
7428 2014-03-05 Pedro Alves <palves@redhat.com>
7431 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7432 void. Update comment.
7433 (dcache_xfer_memory): Delete.
7434 (dcache_read_memory_partial): New, based on the read bits of
7436 (dcache_update): Add status parameter. Use ULONGEST for len, and
7437 adjust. Discard cache lines if the reason for the update was
7439 * dcache.h (dcache_xfer_memory): Delete declaration.
7440 (dcache_read_memory_partial): New declaration.
7441 (dcache_update): Update prototype.
7442 * target.c (raw_memory_xfer_partial): Update the dcache here.
7443 (memory_xfer_partial_1): Don't handle dcache writes here.
7445 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7447 * remote-sim.c (gdbsim_load): Add const to prog.
7449 2014-03-03 Tom Tromey <tromey@redhat.com>
7451 * elfread.c (probe_key): Change to bfd_data.
7452 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7453 now per-BFD, not per-objfile.
7454 * stap-probe.c (stap_probe_destroy): Update comment.
7455 (handle_stap_probe): Allocate on the per-BFD obstack.
7457 2014-03-03 Tom Tromey <tromey@redhat.com>
7459 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7460 * breakpoint.c (create_longjmp_master_breakpoint): Use
7462 (add_location_to_breakpoint, bkpt_probe_insert_location)
7463 (bkpt_probe_remove_location): Update.
7464 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7465 * elfread.c (elf_symfile_relocate_probe): Remove.
7466 (elf_probe_fns): Update.
7467 (insert_exception_resume_breakpoint): Change type of "probe"
7468 parameter to bound_probe.
7469 (check_exception_resume): Update.
7470 * objfiles.c (objfile_relocate1): Don't relocate probes.
7471 * probe.c (bound_probe_s): New typedef.
7472 (parse_probes): Use get_probe_address. Set sal's objfile.
7473 (find_probe_by_pc): Return a bound_probe.
7474 (collect_probes): Return a VEC(bound_probe_s).
7475 (compare_probes): Update.
7476 (gen_ui_out_table_header_info): Change type of "probes"
7478 (info_probes_for_ops): Update.
7479 (get_probe_address): New function.
7480 (probe_safe_evaluate_at_pc): Update.
7481 * probe.h (struct probe_ops) <get_probe_address>: New field.
7482 <set_semaphore, clear_semaphore>: Add objfile parameter.
7483 (struct probe) <objfile>: Remove field.
7485 <address>: Update comment.
7486 (struct bound_probe): New.
7487 (find_probe_by_pc): Return a bound_probe.
7488 (get_probe_address): Declare.
7489 * solib-svr4.c (struct probe_and_action) <address>: New field.
7490 (hash_probe_and_action, equal_probe_and_action): Update.
7491 (register_solib_event_probe): Add address parameter.
7492 (solib_event_probe_at): Update.
7493 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7495 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7496 (stap_get_probe_address): New function.
7497 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7498 (compile_probe_arg): Update.
7499 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7501 (handle_stap_probe): Don't relocate the probe.
7502 (stap_relocate): Remove.
7503 (stap_gen_info_probes_table_values): Update.
7504 (stap_probe_ops): Remove stap_relocate.
7505 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7506 (debug_sym_probe_fns): Update.
7507 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7508 * symtab.c (init_sal): Use memset.
7509 * symtab.h (struct symtab_and_line) <objfile>: New field.
7510 * tracepoint.c (start_tracing, stop_tracing): Update.
7512 2014-03-03 Tom Tromey <tromey@redhat.com>
7514 * probe.h (parse_probes, find_probe_by_pc)
7515 (find_probes_in_objfile): Fix comments.
7517 2014-03-02 Doug Evans <xdje42@gmail.com>
7519 * infrun.c (handle_signal_stop): Replace test for
7520 TARGET_WAITKIND_STOPPED with an assert.
7522 2014-03-02 Doug Evans <xdje42@gmail.com>
7524 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7526 2014-03-02 Doug Evans <xdje42@gmail.com>
7528 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7530 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7532 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7534 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7536 * i386obsd-nat.c: Include "obsd-nat.h".
7537 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7539 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7541 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7543 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7545 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7547 * mips64obsd-nat.c: Include "obsd-nath".
7548 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7550 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7552 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7554 * amd64obsd-nat.c: Include "obsd-nat,h.
7555 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7557 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7559 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7561 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7562 (find_overload_match): Update call to find_oload_champ.
7563 (find_oload_champ_namespace_loop): Likewise
7565 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7567 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7569 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7570 * config/sparc/obsd64.mh: New file.
7571 * sparc64obsd-nat.c: New file.
7573 * obsd-nat.h: New file.
7574 * obsd-nat.c: New file.
7575 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7576 (ALLDEPFILES): Add obsd-nat.c.
7578 2014-02-28 Tom Tromey <tromey@redhat.com>
7580 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7581 * cli-out.h (cli_ui_out_impl): Now const.
7582 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7583 * ui-out.c (struct ui_out) <impl>: Now const.
7584 (default_ui_out_impl): Now const.
7585 (ui_out_new): Make 'impl' parameter const.
7586 * ui-out.h (ui_out_new): Update.
7588 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7590 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7592 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7594 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7596 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7598 Additional PR 8882 fix.
7599 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7601 2014-02-27 Pedro Alves <palves@redhat.com>
7603 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7606 2014-02-27 Pedro Alves <palves@redhat.com>
7609 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7610 * nat/linux-waitpid.c: Include string.h.
7611 (status_to_str): Moved here and made extern.
7612 * nat/linux-waitpid.h (status_to_str): New declaration.
7614 2014-02-27 Hui Zhu <hui@codesourcery.com>
7617 * infrun.c (ptid_match): Move ...
7618 * common/ptid.c (ptid_match): ... here.
7619 * inferior.h (ptid_match): Move ...
7620 * common/ptid.h (ptid_match): ... here.
7622 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7624 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7625 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7628 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7630 * obsd-tdep.c (obsd_auxv_parse): New function.
7631 (obsd_init_abi): Set auxv_parse.
7633 * gdbarch.sh (auxv_parse): New.
7634 * gdbarch.h: Regenerated.
7635 * gdbarch.c: Regenerated.
7636 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7638 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7640 * guile/scm-value.c (gdbscm_history_append_x): New function.
7641 (value_functions): Add it.
7643 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7645 * dwarf2read.c (attr_value_as_address): New function.
7646 (dwarf2_find_base_address, read_call_site_scope): Use
7647 attr_value_as_address in place of DW_ADDR.
7648 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7649 the low and high addresses. Slight rework of the handling
7650 of the high pc being a constant form, and limit it to
7651 DWARF verson 4 or higher.
7652 (dwarf2_record_block_ranges): Likewise.
7653 (read_partial_die): Likewise.
7654 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7656 2014-02-26 Tom Tromey <tromey@redhat.com>
7658 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7660 2014-02-26 Tom Tromey <tromey@redhat.com>
7662 * elfread.c (elf_read_minimal_symbols): Return early if
7663 minimal symbols have already been read. Add "ei" parameter.
7664 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7665 * minsyms.c (prim_record_minimal_symbol_full): Update.
7666 * objfiles.h (struct objstats) <n_minsyms>: Move...
7667 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7668 * symmisc.c (print_objfile_statistics): Update.
7670 2014-02-26 Tom Tromey <tromey@redhat.com>
7672 * elfread.c (elf_read_minimal_symbols): New function, from
7674 (elf_symfile_read): Call it.
7676 2014-02-26 Tom Tromey <tromey@redhat.com>
7678 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7679 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7680 (lookup_minimal_symbol_solib_trampoline)
7681 (lookup_minimal_symbol_by_pc_section_1)
7682 (lookup_minimal_symbol_and_objfile): Update.
7683 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7684 Don't allocate a minimal symbol if minsyms have already been read.
7685 (build_minimal_symbol_hash_tables): Update.
7686 (install_minimal_symbols): Do nothing if minsyms already read.
7687 Use the per-BFD obstack.
7688 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7689 * objfiles.c (allocate_objfile): Call
7690 terminate_minimal_symbol_table later.
7691 (have_minimal_symbols): Update.
7692 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7693 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7694 Move from struct objfile.
7695 <minsyms_read>: New field.
7696 (struct objfile) <msymbols, minimal_symbol_count,
7697 msymbol_hash, msymbol_demangled_hash>: Move.
7698 (ALL_OBJFILE_MSYMBOLS): Update.
7699 * symfile.c (read_symbols): Set minsyms_read.
7700 (reread_symbols): Update.
7701 * symmisc.c (dump_objfile, dump_msymbols): Update.
7703 2014-02-26 Tom Tromey <tromey@redhat.com>
7705 * minsyms.c (msymbols_sort): Remove.
7706 * minsyms.h (msymbols_sort): Remove.
7707 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7708 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7709 * elfread.c (elf_symtab_read): Don't add section offsets.
7710 * xcoffread.c (record_minimal_symbol): Don't add section offset
7711 to minimal symbol address.
7712 * somread.c (text_offset, data_offset): Remove.
7713 (som_symtab_read): Don't add section offsets to minimal symbol
7715 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7716 Don't add section offsets to minimal symbols.
7717 * coffread.c (coff_symtab_read): Don't add section offsets
7718 to minimal symbol addresses.
7719 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7720 to minimal symbol addresses.
7721 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7722 section offset to minimal symbol addresses.
7723 * mdebugread.c (parse_partial_symbols): Don't add section
7724 offset to minimal symbol addresses.
7725 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7726 offset to minimal symbol addresses.
7728 2014-02-26 Tom Tromey <tromey@redhat.com>
7730 * ada-lang.c (ada_main_name): Update.
7731 (ada_add_standard_exceptions): Update.
7732 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7733 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7734 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7735 * auxv.c (ld_so_xfer_auxv): Update.
7736 * avr-tdep.c (avr_scan_prologue): Update.
7737 * ax-gdb.c (gen_var_ref): Update.
7738 * blockframe.c (get_pc_function_start)
7739 (find_pc_partial_function_gnu_ifunc): Update.
7740 * breakpoint.c (create_overlay_event_breakpoint)
7741 (create_longjmp_master_breakpoint)
7742 (create_std_terminate_master_breakpoint)
7743 (create_exception_master_breakpoint): Update.
7744 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7745 * c-valprint.c (c_val_print): Update.
7746 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7747 * common/agent.c (agent_look_up_symbols): Update.
7748 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7749 * dwarf2loc.c (call_site_to_target_addr): Update.
7750 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7751 * elfread.c (elf_gnu_ifunc_record_cache)
7752 (elf_gnu_ifunc_resolve_by_got): Update.
7753 * findvar.c (default_read_var_value): Update.
7754 * frame.c (inside_main_func): Update.
7755 * frv-tdep.c (frv_frame_this_id): Update.
7756 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7757 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7759 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7760 (hppa_hpux_find_dummy_bpaddr): Update.
7761 * hppa-tdep.c (hppa_symbol_address): Update.
7762 * infcmd.c (until_next_command): Update.
7763 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7765 * linespec.c (minsym_found, add_minsym): Update.
7766 * linux-nat.c (get_signo): Update.
7767 * linux-thread-db.c (inferior_has_bug): Update.
7768 * m32c-tdep.c (m32c_return_value)
7769 (m32c_m16c_address_to_pointer): Update.
7770 * m32r-tdep.c (m32r_frame_this_id): Update.
7771 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7772 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7773 * maint.c (maintenance_translate_address): Update.
7774 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7775 (frob_address): New function.
7776 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7777 frob_address. Rename parameter to "pc_in".
7778 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7780 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7782 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7783 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7784 * objc-lang.c (find_objc_msgsend): Update.
7785 * objfiles.c (objfile_relocate1): Update.
7786 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7787 * p-valprint.c (pascal_val_print): Update.
7788 * parse.c (write_exp_msymbol): Update.
7789 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7790 (ppc_elfv2_skip_entrypoint): Update.
7791 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7792 * printcmd.c (build_address_symbolic, msym_info)
7793 (address_info): Update.
7794 * proc-service.c (ps_pglobal_lookup): Update.
7795 * psymtab.c (find_pc_sect_psymtab_closer)
7796 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7797 Change msymbol parameter to bound_minimal_symbol.
7798 * ravenscar-thread.c (get_running_thread_id): Update.
7799 * remote.c (remote_check_symbols): Update.
7800 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7802 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7803 * solib-dsbt.c (lm_base): Update.
7804 * solib-frv.c (lm_base, main_got): Update.
7805 * solib-irix.c (locate_base): Update.
7806 * solib-som.c (som_solib_create_inferior_hook)
7807 (link_map_start): Update.
7808 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7809 * solib-svr4.c (elf_locate_base, enable_break): Update.
7810 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7811 (flush_ea_cache): Update.
7812 * stabsread.c (define_symbol, scan_file_globals): Update.
7813 * stack.c (find_frame_funname): Update.
7814 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7815 (debug_qf_find_pc_sect_symtab): Update.
7816 * symfile.c (simple_read_overlay_table)
7817 (simple_overlay_update): Update.
7818 * symfile.h (struct quick_symbol_functions)
7819 <find_pc_sect_symtab>: Change type of msymbol to
7820 bound_minimal_symbol.
7821 * symmisc.c (dump_msymbols): Update.
7822 * symtab.c (find_pc_sect_symtab_via_partial)
7823 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7824 (search_symbols, print_msymbol_info): Update.
7825 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7826 (MSYMBOL_VALUE_ADDRESS): Redefine.
7827 (BMSYMBOL_VALUE_ADDRESS): New macro.
7828 * tracepoint.c (scope_info): Update.
7829 * tui/tui-disasm.c (tui_find_disassembly_address)
7830 (tui_get_begin_asm_address): Update.
7831 * valops.c (find_function_in_inferior): Update.
7832 * value.c (value_static_field, value_fn_field): Update.
7834 2014-02-26 Tom Tromey <tromey@redhat.com>
7836 * ada-lang.c (ada_update_initial_language): Update.
7837 (ada_main_name, ada_has_this_exception_support): Update.
7838 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7839 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7840 * arm-tdep.c (arm_skip_stub): Update.
7841 * auxv.c (ld_so_xfer_auxv): Update.
7842 * avr-tdep.c (avr_scan_prologue): Update.
7843 * ax-gdb.c (gen_var_ref): Update.
7844 * breakpoint.c (struct breakpoint_objfile_data)
7845 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7846 type to bound_minimal_symbol.
7847 (create_overlay_event_breakpoint)
7848 (create_longjmp_master_breakpoint)
7849 (create_std_terminate_master_breakpoint)
7850 (create_exception_master_breakpoint): Update.
7851 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7852 * c-exp.y (classify_name): Update.
7853 * coffread.c (coff_symfile_read): Update.
7854 * common/agent.c (agent_look_up_symbols): Update.
7855 * d-lang.c (d_main_name): Update.
7856 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7857 * dec-thread.c (enable_dec_thread): Update.
7858 * dwarf2loc.c (call_site_to_target_addr): Update.
7859 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7860 * eval.c (evaluate_subexp_standard): Update.
7861 * findvar.c (struct minsym_lookup_data) <result>: Change type
7862 to bound_minimal_symbol.
7864 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7865 * frame.c (inside_main_func): Update.
7866 * frv-tdep.c (frv_frame_this_id): Update.
7867 * gcore.c (call_target_sbrk): Update.
7868 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7869 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7871 * go-lang.c (go_main_name): Update.
7872 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7873 (hppa_hpux_find_import_stub_for_addr): Update.
7874 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7875 Update. Change return type.
7876 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7878 * jit.c (jit_breakpoint_re_set_internal): Update.
7879 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7881 * linux-nat.c (get_signo): Update.
7882 * linux-thread-db.c (inferior_has_bug): Update
7883 * m32c-tdep.c (m32c_return_value)
7884 (m32c_m16c_address_to_pointer): Update.
7885 * m32r-tdep.c (m32r_frame_this_id): Update.
7886 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7887 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7888 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7889 lookup_minimal_symbol. Change return type.
7890 (lookup_minimal_symbol): Remove.
7891 (lookup_bound_minimal_symbol): Update.
7892 (lookup_minimal_symbol_text): Change return type.
7893 (lookup_minimal_symbol_solib_trampoline): Change return type.
7894 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7895 (lookup_minimal_symbol_solib_trampoline): Change return type.
7896 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7897 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7898 (value_nsstring, find_imps): Update.
7899 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7900 * p-lang.c (pascal_main_name): Update.
7901 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7902 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7903 * proc-service.c (ps_pglobal_lookup): Update.
7904 * ravenscar-thread.c (get_running_thread_msymbol): Change
7906 (has_ravenscar_runtime, get_running_thread_id): Update.
7907 * remote.c (remote_check_symbols): Update.
7908 * sol-thread.c (ps_pglobal_lookup): Update.
7909 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7910 * solib-dsbt.c (lm_base): Update.
7911 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7913 * solib-irix.c (locate_base): Update.
7914 * solib-som.c (som_solib_create_inferior_hook)
7915 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7917 * solib-spu.c (spu_enable_break): Update.
7918 * solib-svr4.c (elf_locate_base, enable_break): Update.
7919 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7920 (flush_ea_cache): Update.
7921 * stabsread.c (define_symbol): Update.
7922 * symfile.c (simple_read_overlay_table): Update.
7923 * symtab.c (find_pc_sect_line): Update.
7924 * tracepoint.c (scope_info): Update.
7925 * tui-disasm.c (tui_get_begin_asm_address): Update.
7926 * value.c (value_static_field): Update.
7928 2014-02-26 Tom Tromey <tromey@redhat.com>
7930 * minsyms.c (prim_record_minimal_symbol_full): Use
7931 SET_MSYMBOL_VALUE_ADDRESS.
7932 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7933 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7934 SET_MSYMBOL_VALUE_ADDRESS.
7935 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7936 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7938 2014-02-26 Tom Tromey <tromey@redhat.com>
7940 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7941 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7942 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7943 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7944 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7945 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7946 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7947 * ada-lang.c (ada_main_name): Update.
7948 (ada_lookup_simple_minsym): Update.
7949 (ada_make_symbol_completion_list): Update.
7950 (ada_add_standard_exceptions): Update.
7951 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7952 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7953 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7954 * arm-tdep.c (skip_prologue_function): Update.
7955 (arm_skip_stack_protector, arm_skip_stub): Update.
7956 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7957 (arm_wince_skip_main_prologue): Update.
7958 * auxv.c (ld_so_xfer_auxv): Update.
7959 * avr-tdep.c (avr_scan_prologue): Update.
7960 * ax-gdb.c (gen_var_ref): Update.
7961 * block.c (call_site_for_pc): Update.
7962 * blockframe.c (get_pc_function_start): Update.
7963 (find_pc_partial_function_gnu_ifunc): Update.
7964 * breakpoint.c (create_overlay_event_breakpoint): Update.
7965 (create_longjmp_master_breakpoint): Update.
7966 (create_std_terminate_master_breakpoint): Update.
7967 (create_exception_master_breakpoint): Update.
7968 (resolve_sal_pc): Update.
7969 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7970 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7972 * c-valprint.c (c_val_print): Update.
7973 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7974 * coffread.c (coff_symfile_read): Update.
7975 * common/agent.c (agent_look_up_symbols): Update.
7976 * dbxread.c (find_stab_function_addr): Update.
7977 (end_psymtab): Update.
7978 * dwarf2loc.c (call_site_to_target_addr): Update.
7979 (func_verify_no_selftailcall): Update.
7980 (tailcall_dump): Update.
7981 (call_site_find_chain_1): Update.
7982 (dwarf_expr_reg_to_entry_parameter): Update.
7983 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7984 (elf_gnu_ifunc_resolve_by_got): Update.
7985 * f-valprint.c (info_common_command): Update.
7986 * findvar.c (read_var_value): Update.
7987 * frame.c (get_prev_frame_1): Update.
7988 (inside_main_func): Update.
7989 * frv-tdep.c (frv_skip_main_prologue): Update.
7990 (frv_frame_this_id): Update.
7991 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7992 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7993 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7994 (gnuv3_skip_trampoline): Update.
7995 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7996 (hppa64_hpux_in_solib_call_trampoline): Update.
7997 (hppa_hpux_skip_trampoline_code): Update.
7998 (hppa64_hpux_search_dummy_call_sequence): Update.
7999 (hppa_hpux_find_import_stub_for_addr): Update.
8000 (hppa_hpux_find_dummy_bpaddr): Update.
8001 * hppa-tdep.c (hppa_symbol_address)
8002 (hppa_lookup_stub_minimal_symbol): Update.
8003 * i386-tdep.c (i386_skip_main_prologue): Update.
8004 (i386_pe_skip_trampoline_code): Update.
8005 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8006 * infcall.c (get_function_name): Update.
8007 * infcmd.c (until_next_command): Update.
8008 * jit.c (jit_breakpoint_re_set_internal): Update.
8009 (jit_inferior_init): Update.
8010 * linespec.c (minsym_found): Update.
8011 (add_minsym): Update.
8012 * linux-fork.c (info_checkpoints_command): Update.
8013 * linux-nat.c (get_signo): Update.
8014 * linux-thread-db.c (inferior_has_bug): Update.
8015 * m32c-tdep.c (m32c_return_value): Update.
8016 (m32c_m16c_address_to_pointer): Update.
8017 (m32c_m16c_pointer_to_address): Update.
8018 * m32r-tdep.c (m32r_frame_this_id): Update.
8019 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8020 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8021 * maint.c (maintenance_translate_address): Update.
8022 * minsyms.c (add_minsym_to_hash_table): Update.
8023 (add_minsym_to_demangled_hash_table): Update.
8024 (msymbol_objfile): Update.
8025 (lookup_minimal_symbol): Update.
8026 (iterate_over_minimal_symbols): Update.
8027 (lookup_minimal_symbol_text): Update.
8028 (lookup_minimal_symbol_by_pc_name): Update.
8029 (lookup_minimal_symbol_solib_trampoline): Update.
8030 (lookup_minimal_symbol_by_pc_section_1): Update.
8031 (lookup_minimal_symbol_and_objfile): Update.
8032 (prim_record_minimal_symbol_full): Update.
8033 (compare_minimal_symbols): Update.
8034 (compact_minimal_symbols): Update.
8035 (build_minimal_symbol_hash_tables): Update.
8036 (install_minimal_symbols): Update.
8037 (terminate_minimal_symbol_table): Update.
8038 (find_solib_trampoline_target): Update.
8039 (minimal_symbol_upper_bound): Update.
8040 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8041 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8042 (mips_skip_pic_trampoline_code): Update.
8043 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8044 * objc-lang.c (selectors_info): Update.
8045 (classes_info): Update.
8046 (find_methods): Update.
8047 (find_imps): Update.
8048 (find_objc_msgsend): Update.
8049 * objfiles.c (objfile_relocate1): Update.
8050 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8051 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8052 * p-valprint.c (pascal_val_print): Update.
8053 * parse.c (write_exp_msymbol): Update.
8054 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8055 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8056 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8057 * printcmd.c (build_address_symbolic): Update.
8059 (address_info): Update.
8060 * proc-service.c (ps_pglobal_lookup): Update.
8061 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8062 (find_pc_sect_psymtab): Update.
8063 * python/py-framefilter.c (py_print_frame): Update.
8064 * ravenscar-thread.c (get_running_thread_id): Update.
8065 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8067 * remote.c (remote_check_symbols): Update.
8068 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8069 (rs6000_skip_trampoline_code): Update.
8070 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8071 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8072 * solib-dsbt.c (lm_base): Update.
8073 * solib-frv.c (lm_base): Update.
8075 * solib-irix.c (locate_base): Update.
8076 * solib-som.c (som_solib_create_inferior_hook): Update.
8077 (som_solib_desire_dynamic_linker_symbols): Update.
8078 (link_map_start): Update.
8079 * solib-spu.c (spu_enable_break): Update.
8080 (ocl_enable_break): Update.
8081 * solib-svr4.c (elf_locate_base): Update.
8082 (enable_break): Update.
8083 * spu-tdep.c (spu_get_overlay_table): Update.
8084 (spu_catch_start): Update.
8085 (flush_ea_cache): Update.
8086 * stabsread.c (define_symbol): Update.
8087 (scan_file_globals): Update.
8088 * stack.c (find_frame_funname): Update.
8089 (frame_info): Update.
8090 * symfile.c (simple_read_overlay_table): Update.
8091 (simple_overlay_update): Update.
8092 * symmisc.c (dump_msymbols): Update.
8093 * symtab.c (fixup_section): Update.
8094 (find_pc_sect_line): Update.
8095 (skip_prologue_sal): Update.
8096 (search_symbols): Update.
8097 (print_msymbol_info): Update.
8098 (rbreak_command): Update.
8099 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8100 (completion_list_objc_symbol): Update.
8101 (default_make_symbol_completion_list_break_on): Update.
8102 * tracepoint.c (scope_info): Update.
8103 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8104 (tui_get_begin_asm_address): Update.
8105 * valops.c (find_function_in_inferior): Update.
8106 * value.c (value_static_field): Update.
8107 (value_fn_field): Update.
8109 2014-02-26 Tom Tromey <tromey@redhat.com>
8111 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8112 bound minimal symbols. Move code that knows about minsym
8114 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8116 * minsyms.h (minimal_symbol_upper_bound): Declare.
8117 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8118 minimal_symbol_upper_bound.
8120 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8122 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8123 Use the type's name if its basic type does not have a tag.
8125 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8127 * dwarf2read.c (read_subrange_type): Add comment.
8129 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8131 * dwarf2read.c (update_enumeration_type_from_children): New
8132 function, mostly extracted from process_structure_scope.
8133 (read_enumeration_type): Call update_enumeration_type_from_children.
8134 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8135 and flag_flag_enum fields.
8137 2014-02-26 Pedro Alves <palves@redhat.com>
8139 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8140 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8141 to_xfer_partial method.
8143 2014-02-26 Pedro Alves <palves@redhat.com>
8145 * target.c (complete_target_initialization): Don't install
8146 default_xfer_partial as to_xfer_partial hook.
8148 (update_current_target): Don't INHERIT nor de_fault
8149 deprecated_xfer_memory. Delete de_fault macro.
8150 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8151 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8152 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8155 2014-02-26 Pedro Alves <palves@redhat.com>
8157 * go32-nat.c (my_write_child): New function.
8158 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8159 (go32_xfer_partial): New function.
8160 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8161 Instead install a to_xfer_partial hook.
8163 2014-02-26 Pedro Alves <palves@redhat.com>
8165 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8166 to_xfer_partial helper. Rewrite.
8167 (procfs_xfer_partial): New function.
8168 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8169 Install a to_xfer_partial hook.
8171 2014-02-26 Pedro Alves <palves@redhat.com>
8173 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8174 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8175 (m32r_xfer_partial): New function.
8176 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8177 Install a to_xfer_partial hook.
8179 2014-02-26 Pedro Alves <palves@redhat.com>
8181 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8183 (mips_xfer_partial): New function.
8184 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8185 hook. Install a to_xfer_partial hook.
8187 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8189 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8190 * gdbtypes.c (create_array_type_with_stride): New function,
8191 renaming create_array_type, but with an added parameter
8192 called "bit_stride".
8193 (create_array_type): Re-implement using
8194 create_array_type_with_stride.
8195 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8196 and DW_AT_bit_stride attributes.
8198 2014-02-26 Pedro Alves <palves@redhat.com>
8200 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8201 task-specific breakpoints.
8203 2014-02-25 Pedro Alves <palves@redhat.com>
8205 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8206 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8208 2014-02-25 Stan Shebs <stan@codesourcery.com>
8210 * defs.h: Annotate comments for Doxygen.
8212 2014-02-25 Tom Tromey <tromey@redhat.com>
8214 * target.h (target_ignore): Don't declare.
8215 * target.c (target_ignore): Remove.
8217 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8220 * auto-load.c (auto_load_objfile_script_1): Change filename to
8223 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8225 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8226 documentation. Adjust prototype to match the target_ops
8227 to_xfer_partial method. Adjust implementation accordingly.
8229 2014-02-25 Hui Zhu <hui@codesourcery.com>
8231 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8234 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8236 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8237 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8238 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8239 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8240 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8241 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8242 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8243 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8245 (rl78_register_type): Use a data pointer type for SP and
8246 new pseudo registers mentioned above. Use a 16 bit integer
8247 type for all other register pairs.
8248 (rl78_register_name, rl78_g10_register_name): Update for
8249 new pseudo registers.
8250 (rl78_pseudo_register_read): Likewise.
8251 (rl78_pseudo_register_write): Likewise.
8252 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8253 to the newly added pseudo registers.
8255 2014-02-24 Doug Evans <dje@google.com>
8257 * value.c (record_latest_value): Fix comment.
8258 * printcmd.c (print_command_1): Remove code to handle -1 return from
8259 record_latest_value.
8261 2014-02-24 Pedro Alves <palves@redhat.com>
8263 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8264 deprecated_xfer_memory hook.
8265 (procfs_xfer_partial): Call procfs_xfer_memory instead
8266 of the deprecated_xfer_memory target hook.
8267 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8270 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8272 * windows-nat.c (windows_xfer_shared_libraries): Return
8273 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8274 requested object is TARGET_OBJECT_LIBRARIES.
8276 2014-02-24 Yao Qi <yao@codesourcery.com>
8278 * target.h (enum target_xfer_status)
8279 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8280 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8282 * corefile.c (memory_error_message): User updated.
8283 * exec.c (section_table_read_available_memory): Likewise.
8284 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8285 * target.c (target_xfer_status_to_string): Likewise.
8286 (raw_memory_xfer_partial): Likewise.
8287 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8288 * valops.c (read_value_memory): Likewise.
8289 * exec.h: Update comments.
8291 2014-02-24 Yao Qi <yao@codesourcery.com>
8293 * target.c (target_xfer_status_to_string): Rename argument err
8295 * target.h (target_xfer_status_to_string): Update declaration.
8296 Replace target_xfer_error_to_string with
8297 target_xfer_status_to_string in comment.
8299 2014-02-24 Yao Qi <yao@codesourcery.com>
8301 * mips-linux-nat.c (super_close): Update its type.
8302 (mips_linux_close): Pass 'self' to super_close.
8304 2014-02-24 Yao Qi <yao@codesourcery.com>
8306 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8307 * corefile.c (read_memory): Adjusted.
8308 * target.c (target_write_with_progress): Adjusted.
8310 2014-02-23 Yao Qi <yao@codesourcery.com>
8314 2013-10-25 Yao Qi <yao@codesourcery.com>
8316 * remote.c (remote_traceframe_info): Return early if
8317 traceframe is not selected.
8319 2013-07-19 Yao Qi <yao@codesourcery.com>
8321 * target.c (update_current_target): Change the default action
8322 of 'to_traceframe_info' from tcomplain to return_zero.
8323 * target.h (struct target_ops) <to_traceframe_info>: Add more
8326 2014-02-23 Yao Qi <yao@codesourcery.com>
8328 * valops.c (read_value_memory): Rewrite it. Call
8329 target_xfer_partial in a loop.
8330 * exec.h (section_table_available_memory): Remove declaration.
8331 Move comments to ...
8332 * exec.c (section_table_available_memory): ... here. Make it
8335 2014-02-23 Yao Qi <yao@codesourcery.com>
8337 * exec.c (section_table_read_available_memory): New function.
8338 * exec.h (section_table_read_available_memory): Declare.
8339 * ctf.c (ctf_xfer_partial): Call
8340 section_table_read_available_memory.
8341 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8343 2014-02-23 Yao Qi <yao@codesourcery.com>
8345 * ctf.c (ctf_xfer_partial): Move code to ...
8346 * exec.c (exec_read_partial_read_only): ... it. New function.
8347 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8348 * tracefile.c: Include "exec.h".
8349 * exec.h (exec_read_partial_read_only): Declare.
8351 2014-02-23 Yao Qi <yao@codesourcery.com>
8353 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8354 (tfile_has_memory): Remove.
8355 (init_tfile_ops): Don't set fields to_has_all_memory and
8356 to_has_memory of tfile_ops.
8357 * tracefile.c (tracefile_has_all_memory): New function.
8358 (tracefile_has_memory): New function.
8359 (init_tracefile_ops): Initialize fields to_has_all_memory and
8360 to_has_memory of 'ops'.
8362 2014-02-23 Yao Qi <yao@codesourcery.com>
8364 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8365 (ctf_thread_alive, ctf_get_trace_status): Remove.
8366 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8368 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8369 (tfile_has_stack, tfile_has_registers): Remove.
8370 (tfile_thread_alive): Remove.
8371 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8373 * tracefile.c (tracefile_has_stack): New function.
8374 (tracefile_has_registers): New function.
8375 (tracefile_thread_alive): New function.
8376 (tracefile_get_trace_status): New function.
8377 (init_tracefile_ops): New function.
8378 * tracefile.h (init_tracefile_ops): Declare.
8380 2014-02-23 Yao Qi <yao@codesourcery.com>
8382 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8383 (O_LARGEFILE): Likewise.
8384 (tfile_ops): Likewise.
8385 (TRACE_HEADER_SIZE): Likewise.
8386 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8387 (cur_data_size): Likewise.
8388 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8389 (tfile_close, tfile_files_info): Likewise.
8390 (tfile_get_trace_status): Likewise.
8391 (tfile_get_tracepoint_status): Likewise.
8392 (tfile_get_traceframe_address): Likewise.
8393 (tfile_trace_find, match_blocktype): Likewise.
8394 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8395 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8396 (tfile_get_trace_state_variable_value): Likewise.
8397 (tfile_has_all_memory, tfile_has_memory): Likewise.
8398 (tfile_has_stack, tfile_has_registers): Likewise.
8399 (tfile_thread_alive, build_traceframe_info): Likewise.
8400 (tfile_traceframe_info, init_tfile_ops): Likewise.
8401 (_initialize_tracepoint): Don't call init_tfile_ops
8402 and add_target_with_completer.
8403 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8404 exec.h, completer.h and filenames.h.
8405 (_initialize_tracefile_tfile): New function.
8407 2014-02-23 Yao Qi <yao@codesourcery.com>
8409 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8411 (HFILES_NO_SRCDIR): Add tracefile.h.
8412 * ctf.c: Include "tracefile.h".
8413 * tracefile.h: New file.
8414 * tracefile.c: New file
8415 * tracefile-tfile.c: New file.
8416 * tracepoint.c: Include "tracefile.h".
8417 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8418 (stop_reason_names): Add const.
8419 (trace_file_writer_xfree): Move it to tracefile.c.
8420 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8421 (trace_save_ctf): Likewise.
8422 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8423 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8424 (tfile_write_header, tfile_write_regblock_type): Likewise.
8425 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8426 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8427 (tfile_write_raw_data, tfile_end): Likewise.
8428 (tfile_trace_file_writer_new): Likewise.
8429 (free_uploaded_tp): Make it extern.
8430 (free_uploaded_tsv): Make it extern.
8431 (_initialize_tracepoint): Move code to register command 'tsave'
8433 * tracepoint.h (stop_reason_names): Declare.
8434 (struct trace_frame_write_ops): Move it to tracefile.h.
8435 (struct trace_file_write_ops): Likewise.
8436 (struct trace_file_writer): Likewise.
8437 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8439 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8442 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8444 (get_cores_used_by_process): New parameter num_cores, use it.
8445 (linux_xfer_osdata_processes): Pass num_cores to it.
8446 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8449 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8451 * target.c (memory_xfer_partial): Fix length arg in call to
8452 breakpoint_xfer_memory.
8454 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8457 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8458 number comes after the + or - signs. Adjust length of register
8459 name to be extracted.
8461 2014-02-20 Tom Tromey <tromey@redhat.com>
8463 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8464 (ada_varobj_ops): Mark "extern".
8466 2014-02-20 Tom Tromey <tromey@redhat.com>
8468 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8470 2014-02-20 Doug Evans <xdje42@gmail.com>
8472 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8473 All callers updated.
8474 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8475 All callers updated.
8476 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8477 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8479 2014-02-20 lin zuojian <manjian2006@gmail.com>
8480 Joel Brobecker <brobecker@adacore.com>
8481 Doug Evans <xdje42@gmail.com>
8484 * dwarf2read.c (struct die_info): New member in_process.
8485 (reset_die_in_process): New function.
8486 (process_die): Set it at the start, reset when returning.
8487 (inherit_abstract_dies): Only call process_die if origin_child_die
8488 not already being processed.
8490 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8492 * windows-nat.c (handle_unload_dll): Add function documentation.
8493 (do_initial_windows_stuff): Add comment explaining why we wait
8494 until after inferior initialization has finished before
8495 processing all DLLs.
8497 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8499 * windows-nat.c (get_module_name): Delete.
8500 (windows_get_exec_module_filename): New function, mostly
8501 inspired from get_module_name.
8502 (windows_pid_to_exec_file): Replace call to get_module_name
8503 by call to windows_get_exec_module_filename.
8505 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8507 * windows-nat.c (handle_load_dll): Rewrite this function's
8508 introductory comment. Remove code using get_module_name
8509 to get the DLL's name.
8511 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8513 * windows-nat.c (get_windows_debug_event): Ignore
8514 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8515 if windows_initialization_done == 0.
8516 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8517 Adjust implementation to always load all DLLs.
8518 (do_initial_windows_stuff): Replace call to
8519 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8521 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8523 * windows-nat.c (_initialize_windows_nat): Deprecate the
8524 "dll-symbols" command. Turn the "add-shared-symbol-files"
8525 and "assf" aliases into commands, and deprecate them as well.
8526 * NEWS: Add entry explaining that "dll-symbols" and its two
8527 aliases are now deprecated.
8529 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8531 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8532 new-line in debug string. Remove trailing spaces.
8534 2014-02-19 Stan Shebs <stan@codesourcery.com>
8536 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8538 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8540 * NEWS: Add entry for the new feature
8541 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8544 2014-02-19 Stan Shebs <stan@codesourcery.com>
8546 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8548 2014-02-19 Pedro Alves <palves@redhat.com>
8550 * common/ptid.h (struct ptid): Mention that process_stratum
8551 targets should prefer ptid.lwp.
8553 2014-02-19 Pedro Alves <palves@redhat.com>
8555 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8556 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8557 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8558 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8559 store remote thread ids rather than ptid.tid.
8560 (_initialize_remote): Adjust.
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8564 * target.c (target_get_unwinder): Rewrite.
8565 (target_get_tailcall_unwinder): Rewrite.
8566 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8567 (record_btrace_to_get_tailcall_unwinder): New function.
8568 (init_record_btrace_ops): Update.
8569 * target.h (struct target_ops) <to_get_unwinder,
8570 to_get_tailcall_unwinder>: Now function pointers. Use
8571 TARGET_DEFAULT_RETURN.
8573 2014-02-19 Tom Tromey <tromey@redhat.com>
8575 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8577 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8583 * target-delegates.c: Rebuild.
8584 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8585 TARGET_DEFAULT_FUNC.
8586 * target.c (default_target_decr_pc_after_break): Rename from
8587 forward_target_decr_pc_after_break. Simplify.
8588 (target_decr_pc_after_break): Rely on delegation.
8590 2014-02-19 Tom Tromey <tromey@redhat.com>
8592 * target.c (update_current_target): Do not INHERIT to_doc or
8593 to_magic. Do not de_fault to_open or to_close.
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8597 * gcore.h (objfile_find_memory_regions): Declare.
8598 * gcore.c (objfile_find_memory_regions): No longer static. Add
8600 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8601 * exec.c: Include gcore.h.
8602 (exec_set_find_memory_regions): Remove.
8603 (exec_find_memory_regions): Remove.
8604 (exec_do_find_memory_regions): Remove.
8605 (init_exec_ops): Update.
8606 * defs.h (exec_set_find_memory_regions): Remove.
8608 2014-02-19 Tom Tromey <tromey@redhat.com>
8610 * target-delegates.c: Rebuild.
8611 * target.h (struct target_ops) <to_extra_thread_info,
8612 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8613 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8614 not 0, in TARGET_DEFAULT_RETURN.
8616 2014-02-19 Tom Tromey <tromey@redhat.com>
8618 * target.c (complete_target_initialization): Remove casts. Use
8619 return_zero_has_execution.
8620 (return_zero): Add "ignore" argument.
8621 (return_zero_has_execution): New function.
8622 (init_dummy_target): Remove casts. Use
8623 return_zero_has_execution.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target.c (update_current_target): Update comments. Do not
8630 2014-02-19 Tom Tromey <tromey@redhat.com>
8632 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8634 * corelow.c (core_read_description): Delegate when needed.
8635 * remote.c (remote_read_description): Delegate when needed.
8636 * target-delegates.c: Rebuild.
8637 * target.c (target_read_description): Rewrite.
8638 * target.h (struct target_ops) <to_read_description>: Update
8639 comment. Use TARGET_DEFAULT_RETURN.
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target-delegates.c: Rebuild.
8644 * target.c (update_current_target): Don't inherit or default
8646 (find_default_run_target): Check against delegate_can_run.
8647 * target.h (struct target_ops) <to_can_run>: Use
8648 TARGET_DEFAULT_RETURN.
8650 2014-02-19 Tom Tromey <tromey@redhat.com>
8652 * target-delegates.c: Rebuild.
8653 * target.c (target_disconnect): Unconditionally delegate.
8654 * target.h (struct target_ops) <to_disconnect>: Use
8655 TARGET_DEFAULT_NORETURN.
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8659 * record.c (record_stop): Unconditionally delegate.
8660 * target-delegates.c: Rebuild.
8661 * target.c (target_stop_recording): Unconditionally delegate.
8662 * target.h (struct target_ops) <to_stop_recording>: Use
8663 TARGET_DEFAULT_IGNORE.
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8667 * target-delegates.c: Rebuild.
8668 * target.c (target_enable_btrace): Unconditionally delegate.
8669 * target.h (struct target_ops) <to_enable_btrace>: Use
8670 TARGET_DEFAULT_NORETURN.
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8674 * target-delegates.c: Rebuild.
8675 * target.c (target_read_btrace): Unconditionally delegate.
8676 * target.h (struct target_ops) <to_read_btrace>: Use
8677 TARGET_DEFAULT_NORETURN.
8679 2014-02-19 Tom Tromey <tromey@redhat.com>
8681 * target-delegates.c: Rebuild.
8682 * target.c (target_teardown_btrace): Unconditionally delegate.
8683 * target.h (struct target_ops) <to_teardown_btrace>: Use
8684 TARGET_DEFAULT_NORETURN.
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8688 * target-delegates.c: Rebuild.
8689 * target.c (target_disable_btrace): Unconditionally delegate.
8690 * target.h (struct target_ops) <to_disable_btrace>: Use
8691 TARGET_DEFAULT_NORETURN.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target-delegates.c: Rebuild.
8696 * target.c (default_search_memory): New function.
8697 (simple_search_memory): Update comment.
8698 (target_search_memory): Unconditionally delegate.
8699 * target.h (struct target_ops) <to_search_memory>: Use
8700 TARGET_DEFAULT_FUNC.
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8704 * auxv.c (default_auxv_parse): No longer static.
8705 (target_auxv_parse): Unconditionally delegate.
8706 * auxv.h (default_auxv_parse): Declare.
8707 * target-delegates.c: Rebuild.
8708 * target.c: Include auxv.h.
8709 * target.h (struct target_ops) <to_auxv_parse>: Use
8710 TARGET_DEFAULT_FUNC.
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8714 * target-delegates.c: Rebuild.
8715 * target.c (target_memory_map): Unconditionally delegate.
8716 * target.h (struct target_ops) <to_memory_map>: Use
8717 TARGET_DEFAULT_RETURN.
8719 2014-02-19 Tom Tromey <tromey@redhat.com>
8721 * target-delegates.c: Rebuild.
8722 * target.c (target_thread_alive): Unconditionally delegate.
8723 * target.h (struct target_ops) <to_thread_alive>: Use
8724 TARGET_DEFAULT_RETURN.
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * target-delegates.c: Rebuild.
8729 * target.c (target_save_record): Unconditionally delegate.
8730 * target.h (struct target_ops) <to_save_record>: Use
8731 TARGET_DEFAULT_NORETURN.
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8735 * target-delegates.c: Rebuild.
8736 * target.c (target_delete_record): Unconditionally delegate.
8737 * target.h (struct target_ops) <to_delete_record>: Use
8738 TARGET_DEFAULT_NORETURN.
8740 2014-02-19 Tom Tromey <tromey@redhat.com>
8742 * target-delegates.c: Rebuild.
8743 * target.c (target_record_is_replaying): Unconditionally
8745 * target.h (struct target_ops) <to_record_is_replaying>: Use
8746 TARGET_DEFAULT_RETURN.
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8750 * target-delegates.c: Rebuild.
8751 * target.c (target_goto_record_begin): Unconditionally delegate.
8752 * target.h (struct target_ops) <to_goto_record_begin>: Use
8753 TARGET_DEFAULT_NORETURN.
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target-delegates.c: Rebuild.
8758 * target.c (target_goto_record_end): Unconditionally delegate.
8759 * target.h (struct target_ops) <to_goto_record_end>: Use
8760 TARGET_DEFAULT_NORETURN.
8762 2014-02-19 Tom Tromey <tromey@redhat.com>
8764 * target-delegates.c: Rebuild.
8765 * target.c (target_goto_record): Unconditionally delegate.
8766 * target.h (struct target_ops) <to_goto_record>: Use
8767 TARGET_DEFAULT_NORETURN.
8769 2014-02-19 Tom Tromey <tromey@redhat.com>
8771 * target-delegates.c: Rebuild.
8772 * target.c (target_insn_history): Unconditionally delegate.
8773 * target.h (struct target_ops) <to_insn_history>: Use
8774 TARGET_DEFAULT_NORETURN.
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8778 * target-delegates.c: Rebuild.
8779 * target.c (target_insn_history_from): Unconditionally delegate.
8780 * target.h (struct target_ops) <to_insn_history_from>: Use
8781 TARGET_DEFAULT_NORETURN.
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * target-delegates.c: Rebuild.
8786 * target.c (target_insn_history_range): Unconditionally delegate.
8787 * target.h (struct target_ops) <to_insn_history_range>: Use
8788 TARGET_DEFAULT_NORETURN.
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8792 * target-delegates.c: Rebuild.
8793 * target.c (target_call_history): Unconditionally delegate.
8794 * target.h (struct target_ops) <to_call_history>: Use
8795 TARGET_DEFAULT_NORETURN.
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8799 * target-delegates.c: Rebuild.
8800 * target.c (target_call_history_from): Unconditionally delegate.
8801 * target.h (struct target_ops) <to_call_history_from>: Use
8802 TARGET_DEFAULT_NORETURN.
8804 2014-02-19 Tom Tromey <tromey@redhat.com>
8806 * target-delegates.c: Rebuild.
8807 * target.c (target_call_history_range): Unconditionally delegate.
8808 * target.h (struct target_ops) <to_call_history_range>: Use
8809 TARGET_DEFAULT_NORETURN.
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8813 * target-delegates.c: Rebuild.
8814 * target.c (target_verify_memory): Unconditionally delegate.
8815 * target.h (struct target_ops) <to_verify_memory>: Use
8816 TARGET_DEFAULT_NORETURN.
8818 2014-02-19 Tom Tromey <tromey@redhat.com>
8820 * target-delegates.c: Rebuild.
8821 * target.c (target_core_of_thread): Unconditionally delegate.
8822 * target.h (struct target_ops) <to_core_of_thread>: Use
8823 TARGET_DEFAULT_RETURN.
8825 2014-02-19 Tom Tromey <tromey@redhat.com>
8827 * target-delegates.c: Rebuild.
8828 * target.c (target_flash_done): Unconditionally delegate.
8829 * target.h (struct target_ops) <to_flash_done>: Use
8830 TARGET_DEFAULT_NORETURN.
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8834 * target-delegates.c: Rebuild.
8835 * target.c (target_flash_erase): Unconditionally delegate.
8836 * target.h (struct target_ops) <to_flash_erase>: Use
8837 TARGET_DEFAULT_NORETURN.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target-delegates.c: Rebuild.
8842 * target.c (target_get_section_table): Unconditionally delegate.
8843 * target.h (struct target_ops) <to_get_section_table>: Use
8844 TARGET_DEFAULT_RETURN.
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8848 * target-delegates.c: Rebuild.
8849 * target.c (target_pid_to_str): Unconditionally delegate.
8850 (init_dummy_target): Don't initialize to_pid_to_str.
8851 (default_pid_to_str): Rename from dummy_pid_to_str.
8852 * target.h (struct target_ops) <to_pid_to_str>: Use
8853 TARGET_DEFAULT_FUNC.
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8857 * target-delegates.c: Rebuild.
8858 * target.c (target_find_new_threads): Unconditionally delegate.
8859 * target.h (struct target_ops) <to_find_new_threads>: Use
8860 TARGET_DEFAULT_RETURN.
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target-delegates.c: Rebuild.
8865 * target.c (target_program_signals): Unconditionally delegate.
8866 * target.h (struct target_ops) <to_program_signals>: Use
8867 TARGET_DEFAULT_IGNORE.
8869 2014-02-19 Tom Tromey <tromey@redhat.com>
8871 * target-delegates.c: Rebuild.
8872 * target.c (target_pass_signals): Unconditionally delegate.
8873 * target.h (struct target_ops) <to_pass_signals>: Use
8874 TARGET_DEFAULT_IGNORE.
8876 2014-02-19 Tom Tromey <tromey@redhat.com>
8878 * target-delegates.c: Rebuild.
8879 * target.c (default_mourn_inferior): New function.
8880 (target_mourn_inferior): Unconditionally delegate.
8881 * target.h (struct target_ops) <to_mourn_inferior>: Use
8882 TARGET_DEFAULT_FUNC.
8884 2014-02-19 Tom Tromey <tromey@redhat.com>
8886 * target-delegates.c: Rebuild.
8887 * target.c (default_follow_fork): New function.
8888 (target_follow_fork): Unconditionally delegate.
8889 * target.h (struct target_ops) <to_follow_fork>: Use
8890 TARGET_DEFAULT_FUNC.
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8894 * target-delegates.c: Rebuild.
8895 * target.c (target_kill): Unconditionally delegate.
8896 * target.h (struct target_ops) <to_kill>: Use
8897 TARGET_DEFAULT_NORETURN.
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8901 * target-delegates.c: Rebuild.
8902 * target.c (target_masked_watch_num_registers): Unconditionally
8904 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8905 Use TARGET_DEFAULT_RETURN.
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8909 * target-delegates.c: Rebuild.
8910 * target.c (target_remove_mask_watchpoint): Unconditionally
8912 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8913 TARGET_DEFAULT_RETURN.
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8917 * target-delegates.c: Rebuild.
8918 * target.c (target_insert_mask_watchpoint): Unconditionally
8920 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8921 TARGET_DEFAULT_RETURN.
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8925 * target-delegates.c: Rebuild.
8926 * target.c (target_ranged_break_num_registers): Unconditionally
8928 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8929 Use TARGET_DEFAULT_RETURN.
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8933 * target-delegates.c: Rebuild.
8934 * target.c (target_fetch_registers): Unconditionally delegate.
8935 * target.h (struct target_ops) <to_fetch_registers>: Use
8936 TARGET_DEFAULT_NORETURN.
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8940 * target-delegates.c: Rebuild.
8941 * target.c (update_current_target): Don't inherit or default
8943 * target.h (struct target_ops) <to_stop>: Use
8944 TARGET_DEFAULT_IGNORE.
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * target-delegates.c: Rebuild.
8949 * target.c (update_current_target): Don't inherit or default
8950 to_can_run_breakpoint_commands.
8951 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8952 Use TARGET_DEFAULT_RETURN.
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8956 * target-delegates.c: Rebuild.
8957 * target.c (update_current_target): Don't inherit or default
8958 to_supports_evaluation_of_breakpoint_conditions.
8959 * target.h (struct target_ops)
8960 <to_supports_evaluation_of_breakpoint_conditions>: Use
8961 TARGET_DEFAULT_RETURN.
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8965 * target-delegates.c: Rebuild.
8966 * target.c (update_current_target): Don't inherit or default
8967 to_augmented_libraries_svr4_read.
8968 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8969 Use TARGET_DEFAULT_RETURN.
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8973 * target-delegates.c: Rebuild.
8974 * target.c (update_current_target): Don't inherit or default
8976 * target.h (struct target_ops) <to_can_use_agent>: Use
8977 TARGET_DEFAULT_RETURN.
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8981 * target-delegates.c: Rebuild.
8982 * target.c (update_current_target): Don't inherit or default
8984 * target.h (struct target_ops) <to_use_agent>: Use
8985 TARGET_DEFAULT_NORETURN.
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target-delegates.c: Rebuild.
8990 * target.c (update_current_target): Don't inherit or default
8992 (return_null): Remove.
8993 * target.h (struct target_ops) <to_traceframe_info>: Use
8994 TARGET_DEFAULT_RETURN.
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8998 * target-delegates.c: Rebuild.
8999 * target.c (update_current_target): Don't inherit or default
9000 to_static_tracepoint_markers_by_strid.
9001 * target.h (struct target_ops)
9002 <to_static_tracepoint_markers_by_strid>: Use
9003 TARGET_DEFAULT_NORETURN.
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
9009 to_static_tracepoint_marker_at.
9010 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9011 Use 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_set_permissions>: Use
9019 TARGET_DEFAULT_IGNORE.
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 * target.h (struct target_ops) <to_get_tib_address>: Use
9027 TARGET_DEFAULT_NORETURN.
9029 2014-02-19 Tom Tromey <tromey@redhat.com>
9031 * target-delegates.c: Rebuild.
9032 * target.c (update_current_target): Don't inherit or default
9034 * target.h (struct target_ops) <to_set_trace_notes>: Use
9035 TARGET_DEFAULT_RETURN.
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9039 * target-delegates.c: Rebuild.
9040 * target.c (update_current_target): Don't initialize
9041 to_set_trace_buffer_size.
9042 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9043 TARGET_DEFAULT_IGNORE.
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9047 * target-delegates.c: Rebuild.
9048 * target.c (update_current_target): Don't inherit or default
9049 to_set_circular_trace_buffer.
9050 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9051 TARGET_DEFAULT_IGNORE.
9053 2014-02-19 Tom Tromey <tromey@redhat.com>
9055 * target-delegates.c: Rebuild.
9056 * target.c (update_current_target): Don't inherit or default
9057 to_set_disconnected_tracing.
9058 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9059 TARGET_DEFAULT_IGNORE.
9061 2014-02-19 Tom Tromey <tromey@redhat.com>
9063 * target-delegates.c: Rebuild.
9064 * target.c (update_current_target): Don't inherit or default
9065 to_get_min_fast_tracepoint_insn_len.
9066 (return_minus_one): Remove.
9067 * target.h (struct target_ops)
9068 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9070 2014-02-19 Tom Tromey <tromey@redhat.com>
9072 * target-delegates.c: Rebuild.
9073 * target.c (update_current_target): Don't inherit or default
9074 to_get_raw_trace_data.
9075 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9076 TARGET_DEFAULT_NORETURN.
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9080 * target-delegates.c: Rebuild.
9081 * target.c (update_current_target): Don't inherit or default
9082 to_upload_trace_state_variables.
9083 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9084 Use TARGET_DEFAULT_RETURN.
9086 2014-02-19 Tom Tromey <tromey@redhat.com>
9088 * target-delegates.c: Rebuild.
9089 * target.c (update_current_target): Don't inherit or default
9090 to_upload_tracepoints.
9091 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9092 TARGET_DEFAULT_RETURN.
9094 2014-02-19 Tom Tromey <tromey@redhat.com>
9096 * target-delegates.c: Rebuild.
9097 * target.c (update_current_target): Don't inherit or default
9099 * target.h (struct target_ops) <to_save_trace_data>: Use
9100 TARGET_DEFAULT_NORETURN.
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * target-delegates.c: Rebuild.
9105 * target.c (update_current_target): Don't inherit or default
9106 to_get_trace_state_variable_value.
9107 * target.h (struct target_ops)
9108 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9110 2014-02-19 Tom Tromey <tromey@redhat.com>
9112 * target-delegates.c: Rebuild.
9113 * target.c (update_current_target): Don't inherit or default
9115 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9119 * target-delegates.c: Rebuild.
9120 * target.c (update_current_target): Don't inherit or default
9122 * target.h (struct target_ops) <to_trace_stop>: Use
9123 TARGET_DEFAULT_NORETURN.
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9127 * target-delegates.c: Rebuild.
9128 * target.c (update_current_target): Don't inherit or default
9129 to_get_tracepoint_status.
9130 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9131 TARGET_DEFAULT_NORETURN.
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target-delegates.c: Rebuild.
9136 * target.c (update_current_target): Don't inherit or default
9137 to_get_trace_status.
9138 * target.h (struct target_ops) <to_get_trace_status>: Use
9139 TARGET_DEFAULT_RETURN.
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9143 * target-delegates.c: Rebuild.
9144 * target.c (update_current_target): Don't inherit or default
9146 * target.h (struct target_ops) <to_trace_start>: Use
9147 TARGET_DEFAULT_NORETURN.
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9151 * target-delegates.c: Rebuild.
9152 * target.c (update_current_target): Don't inherit or default
9153 to_trace_set_readonly_regions.
9154 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9155 Use TARGET_DEFAULT_NORETURN.
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9159 * target-delegates.c: Rebuild.
9160 * target.c (update_current_target): Don't inherit or default
9161 to_disable_tracepoint.
9162 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9163 TARGET_DEFAULT_NORETURN.
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9167 * target-delegates.c: Rebuild.
9168 * target.c (update_current_target): Don't inherit or default
9169 to_enable_tracepoint.
9170 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9171 TARGET_DEFAULT_NORETURN.
9173 2014-02-19 Tom Tromey <tromey@redhat.com>
9175 * target-delegates.c: Rebuild.
9176 * target.c (update_current_target): Don't inherit or default
9177 to_download_trace_state_variable.
9178 * target.h (struct target_ops) <to_download_trace_state_variable>:
9179 Use TARGET_DEFAULT_NORETURN.
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9183 * target-delegates.c: Rebuild.
9184 * target.c (update_current_target): Don't inherit or default
9185 to_can_download_tracepoint.
9186 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9187 TARGET_DEFAULT_RETURN.
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9191 * target-delegates.c: Rebuild.
9192 * target.c (update_current_target): Don't inherit or default
9193 to_download_tracepoint.
9194 * target.h (struct target_ops) <to_download_tracepoint>: Use
9195 TARGET_DEFAULT_NORETURN.
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9199 * target-delegates.c: Rebuild.
9200 * target.c (update_current_target): Don't inherit or default
9202 * target.h (struct target_ops) <to_trace_init>: Use
9203 TARGET_DEFAULT_RETURN.
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9209 to_supports_string_tracing.
9210 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9211 TARGET_DEFAULT_RETURN.
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9217 to_supports_enable_disable_tracepoint.
9218 * target.h (struct target_ops)
9219 <to_supports_enable_disable_tracepoint>: Use
9220 TARGET_DEFAULT_RETURN.
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9224 * target-delegates.c: Rebuild.
9225 * target.c (update_current_target): Don't inherit or default
9226 to_supports_multi_process.
9227 * target.h (struct target_ops) <to_supports_multi_process>: Use
9228 TARGET_DEFAULT_RETURN.
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9232 * target-delegates.c: Rebuild.
9233 * target.c (update_current_target): Don't inherit or default
9234 to_get_ada_task_ptid.
9235 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9236 TARGET_DEFAULT_FUNC.
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9240 * target-delegates.c: Rebuild.
9241 * target.c (update_current_target): Don't inherit or default
9242 to_thread_architecture.
9243 * target.h (struct target_ops) <to_thread_architecture>: Use
9244 TARGET_DEFAULT_FUNC.
9246 2014-02-19 Tom Tromey <tromey@redhat.com>
9248 * target-delegates.c: Rebuild.
9249 * target.c (update_current_target): Don't inherit or default
9250 to_execution_direction.
9251 * target.h (struct target_ops) <to_execution_direction>: Use
9252 TARGET_DEFAULT_FUNC.
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target-delegates.c: Rebuild.
9257 * target.c (update_current_target): Don't inherit or default
9258 to_can_execute_reverse.
9259 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9260 TARGET_DEFAULT_RETURN.
9261 (target_can_execute_reverse): Unconditionally delegate.
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target-delegates.c: Rebuild.
9266 * target.c (update_current_target): Don't inherit or default
9268 (dummy_goto_bookmark): Remove.
9269 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9270 * target.h (struct target_ops) <to_goto_bookmark>: Use
9271 TARGET_DEFAULT_NORETURN.
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * target-delegates.c: Rebuild.
9276 * target.c (update_current_target): Don't inherit or default
9278 (dummy_get_bookmark): Remove.
9279 (init_dummy_target): Don't inherit or default to_get_bookmark.
9280 * target.h (struct target_ops) <to_get_bookmark>: Use
9281 TARGET_DEFAULT_NORETURN
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9285 * target-delegates.c: Rebuild.
9286 * target.c (update_current_target): Don't inherit or default
9287 to_make_corefile_notes.
9288 (init_dummy_target): Don't initialize to_make_corefile_notes.
9289 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9290 TARGET_DEFAULT_FUNC.
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9294 * target-delegates.c: Rebuild.
9295 * target.c (update_current_target): Don't inherit or default
9296 to_find_memory_regions.
9297 (init_dummy_target): Don't initialize to_find_memory_regions.
9298 * target.h (struct target_ops) <to_find_memory_regions>: Use
9299 TARGET_DEFAULT_FUNC.
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * target-delegates.c: Rebuild.
9304 * target.c (update_current_target): Don't inherit or default
9306 * target.h (struct target_ops) <to_log_command>: Use
9307 TARGET_DEFAULT_IGNORE.
9308 (target_log_command): Unconditionally delegate.
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9312 * target-delegates.c: Rebuild.
9313 * target.c (update_current_target): Don't inherit or default
9314 to_pid_to_exec_file.
9315 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9316 TARGET_DEFAULT_RETURN.
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9320 * target-delegates.c: Rebuild.
9321 * target.c (update_current_target): Don't inherit or default
9323 (target_thread_name): Unconditionally delegate.
9324 * target.h (struct target_ops) <to_thread_name>: Use
9325 TARGET_DEFAULT_RETURN.
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9329 * target-delegates.c: Rebuild.
9330 * target.c (update_current_target): Don't inherit or default
9331 to_extra_thread_info.
9332 * target.h (struct target_ops) <to_extra_thread_info>: Use
9333 TARGET_DEFAULT_RETURN.
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_has_exited>: Use
9341 TARGET_DEFAULT_RETURN..
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9345 * target-delegates.c: Rebuild.
9346 * target.c (update_current_target): Don't inherit or default
9347 to_set_syscall_catchpoint.
9348 (return_one): Remove.
9349 * target.h (struct target_ops) <to_set_syscall_catchpoint>: 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
9356 to_insert_exec_catchpoint.
9357 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9358 TARGET_DEFAULT_RETURN.
9360 2014-01-08 Tom Tromey <tromey@redhat.com>
9362 * target-delegates.c: Rebuild.
9363 * target.c (update_current_target): Don't inherit or default
9364 to_insert_exec_catchpoint.
9365 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9366 TARGET_DEFAULT_RETURN.
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9370 * target-delegates.c: Rebuild.
9371 * target.c (update_current_target): Don't inherit or default
9372 to_remove_vfork_catchpoint.
9373 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9374 TARGET_DEFAULT_RETURN.
9376 2014-02-19 Tom Tromey <tromey@redhat.com>
9378 * target-delegates.c: Rebuild.
9379 * target.c (update_current_target): Don't inherit or default
9380 to_insert_vfork_catchpoint.
9381 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9382 TARGET_DEFAULT_RETURN.
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9386 * target-delegates.c: Rebuild.
9387 * target.c (update_current_target): Don't inherit or default
9388 to_remove_fork_catchpoint.
9389 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9390 TARGET_DEFAULT_RETURN.
9392 2014-02-19 Tom Tromey <tromey@redhat.com>
9394 * target-delegates.c: Rebuild.
9395 * target.c (update_current_target): Don't inherit or default
9396 to_insert_fork_catchpoint.
9397 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9398 TARGET_DEFAULT_RETURN.
9400 2014-02-19 Tom Tromey <tromey@redhat.com>
9402 * target-delegates.c: Rebuild.
9403 * target.c (update_current_target): Don't inherit or default
9404 to_post_startup_inferior.
9405 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9406 TARGET_DEFAULT_IGNORE.
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9410 * target-delegates.c: Rebuild.
9411 * target.c (update_current_target): Don't inherit or default
9413 * target.h (struct target_ops) <to_load>: Use
9414 TARGET_DEFAULT_NORETURN.
9416 2014-02-19 Tom Tromey <tromey@redhat.com>
9418 * target-delegates.c: Rebuild.
9419 * target.c (update_current_target): Don't inherit or default
9421 * target.h (struct target_ops) <to_terminal_info>: Use
9422 TARGET_DEFAULT_FUNC.
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9426 * target-delegates.c: Rebuild.
9427 * target.c (update_current_target): Don't inherit or default
9428 to_terminal_save_ours.
9429 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9430 TARGET_DEFAULT_IGNORE.
9432 2014-02-19 Tom Tromey <tromey@redhat.com>
9434 * target-delegates.c: Rebuild.
9435 * target.c (update_current_target): Don't inherit or default
9437 * target.h (struct target_ops) <to_terminal_ours>: Use
9438 TARGET_DEFAULT_IGNORE.
9440 2014-02-19 Tom Tromey <tromey@redhat.com>
9442 * target-delegates.c: Rebuild.
9443 * target.c (update_current_target): Don't inherit or default
9444 to_terminal_ours_for_output.
9445 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9446 TARGET_DEFAULT_IGNORE.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * target-delegates.c: Rebuild.
9451 * target.c (update_current_target): Don't inherit or default
9452 to_terminal_inferior.
9453 * target.h (struct target_ops) <to_terminal_inferior>: Use
9454 TARGET_DEFAULT_IGNORE.
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9458 * target-delegates.c: Rebuild.
9459 * target.c (update_current_target): Don't inherit or default
9461 * target.h (struct target_ops) <to_terminal_init>: Use
9462 TARGET_DEFAULT_IGNORE.
9464 2014-02-19 Tom Tromey <tromey@redhat.com>
9466 * target-delegates.c: Rebuild.
9467 * target.c (update_current_target): Don't inherit or default
9468 to_can_accel_watchpoint_condition.
9469 * target.h (struct target_ops)
9470 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9472 2014-02-19 Tom Tromey <tromey@redhat.com>
9474 * target-delegates.c: Rebuild.
9475 * target.c (update_current_target): Don't inherit or default
9476 to_region_ok_for_hw_watchpoint.
9477 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9478 Use TARGET_DEFAULT_FUNC.
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9482 * target-delegates.c: Rebuild.
9483 * target.c (update_current_target): Don't inherit or default
9484 to_watchpoint_addr_within_range.
9485 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9486 Use TARGET_DEFAULT_FUNC.
9488 2014-02-19 Tom Tromey <tromey@redhat.com>
9490 * target-delegates.c: Rebuild.
9491 * target.c (update_current_target): Don't inherit or default
9492 to_remove_watchpoint.
9493 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9494 TARGET_DEFAULT_NORETURN.
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9498 * target-delegates.c: Rebuild.
9499 * target.c (update_current_target): Don't inherit or default
9500 to_insert_watchpoint.
9501 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9502 TARGET_DEFAULT_RETURN.
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9506 * target-delegates.c: Rebuild.
9507 * target.c (update_current_target): Don't inherit or default
9508 to_remove_hw_breakpoint.
9509 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9510 TARGET_DEFAULT_RETURN.
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9514 * target-delegates.c: Rebuild.
9515 * target.c (update_current_target): Don't inherit or default
9516 to_insert_hw_breakpoint.
9517 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9518 TARGET_DEFAULT_RETURN.
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9522 * target-delegates.c: Rebuild.
9523 * target.c (update_current_target): Don't inherit or default
9524 to_can_use_hw_breakpoint.
9525 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9526 TARGET_DEFAULT_RETURN.
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9530 * target-delegates.c: Rebuild.
9531 * target.c (update_current_target): Don't inherit or default
9533 * target.h (struct target_ops) <to_files_info>: Use
9534 TARGET_DEFAULT_IGNORE.
9536 2014-02-19 Tom Tromey <tromey@redhat.com>
9538 * target-delegates.c: Rebuild.
9539 * target.c (update_current_target): Don't inherit or default
9541 * target.h (struct target_ops) <to_store>: Use
9542 TARGET_DEFAULT_NORETURN.
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9546 * target-delegates.c: Rebuild.
9547 * target.c (update_current_target): Don't inherit or default
9549 * target.h (struct target_ops) <to_post_attach>: Use
9550 TARGET_DEFAULT_IGNORE.
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9554 * target-delegates.c: Rebuild.
9555 * target.c (update_current_target): Don't inherit or default
9557 (default_rcmd): New function.
9558 (do_monitor_command): Unconditionally delegate.
9559 * target.h (struct target_ops) <to_rmcd>: Use
9560 TARGET_DEFAULT_FUNC.
9562 2014-02-19 Tom Tromey <tromey@redhat.com>
9564 * target-delegates.c: Rebuild.
9565 * target.c (init_dummy_target): Don't initialize to_attach.
9566 (target_attach): Unconditionally delegate.
9567 * target.h (struct target_ops) <to_attach>: Use
9568 TARGET_DEFAULT_FUNC.
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9572 * target-delegates.c: Rebuild.
9573 * target.c (target_detach): Unconditionally delegate.
9574 (init_dummy_target): Don't initialize to_detach.
9575 * target.h (struct target_ops) <to_detach>: Use
9576 TARGET_DEFAULT_IGNORE.
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9580 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9582 (target_augmented_libraries_svr4_read): Add argument.
9583 * target.c (update_current_target): Update.
9584 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9589 * target.h (struct target_ops) <to_call_history_range>: Add
9591 * target.c (target_call_history_range): Add argument.
9592 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9594 (record_btrace_call_history_from): Update.
9596 2014-02-19 Tom Tromey <tromey@redhat.com>
9598 * target.h (struct target_ops) <to_call_history_from>: Add
9600 * target.c (target_call_history_from): Add argument.
9601 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9606 * target.h (struct target_ops) <to_call_history>: Add argument.
9607 * target.c (target_call_history): Add argument.
9608 * record-btrace.c (record_btrace_call_history): Add 'self'
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9613 * target.h (struct target_ops) <to_insn_history_range>: Add
9615 * target.c (target_insn_history_range): Add argument.
9616 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9618 (record_btrace_insn_history_from): Update.
9620 2014-02-19 Tom Tromey <tromey@redhat.com>
9622 * target.h (struct target_ops) <to_insn_history_from>: Add
9624 * target.c (target_insn_history_from): Add argument.
9625 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9630 * target.h (struct target_ops) <to_insn_history>: Add argument.
9631 * target.c (target_insn_history): Add argument.
9632 * record-btrace.c (record_btrace_insn_history): Add 'self'
9635 2014-02-19 Tom Tromey <tromey@redhat.com>
9637 * target.h (struct target_ops) <to_goto_record>: Add argument.
9638 * target.c (target_goto_record): Add argument.
9639 * record-full.c (record_full_goto): Add 'self' argument.
9640 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9642 2014-02-19 Tom Tromey <tromey@redhat.com>
9644 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9645 * target.c (target_goto_record_end): Add argument.
9646 * record-full.c (record_full_goto_end): Add 'self' argument.
9647 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9649 2014-02-19 Tom Tromey <tromey@redhat.com>
9651 * target.h (struct target_ops) <to_goto_record_begin>: Add
9653 * target.c (target_goto_record_begin): Add argument.
9654 * record-full.c (record_full_goto_begin): Add 'self' argument.
9655 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9658 2014-02-19 Tom Tromey <tromey@redhat.com>
9660 * target.h (struct target_ops) <to_record_is_replaying>: Add
9662 * target.c (target_record_is_replaying): Add argument.
9663 * record-full.c (record_full_is_replaying): Add 'self' argument.
9664 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9666 (record_btrace_xfer_partial, record_btrace_store_registers)
9667 (record_btrace_prepare_to_store, record_btrace_resume)
9668 (record_btrace_wait, record_btrace_decr_pc_after_break)
9669 (record_btrace_find_new_threads, record_btrace_thread_alive):
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9674 * target.h (struct target_ops) <to_delete_record>: Add argument.
9675 * target.c (target_delete_record): Add argument.
9676 * record-full.c (record_full_delete): Add 'self' argument.
9678 2014-02-19 Tom Tromey <tromey@redhat.com>
9680 * target.h (struct target_ops) <to_save_record>: Add argument.
9681 * target.c (target_save_record): Add argument.
9682 * record-full.c (record_full_save): Add 'self' argument.
9683 (record_full_save): Add 'self' argument.
9685 2014-02-19 Tom Tromey <tromey@redhat.com>
9687 * target.h (struct target_ops) <to_info_record>: Add argument.
9688 * target.c (target_info_record): Add argument.
9689 * record.c (info_record_command): Add argument.
9690 * record-full.c (record_full_info): Add 'self' argument.
9691 * record-btrace.c (record_btrace_info): Add 'self' argument.
9693 2014-02-19 Tom Tromey <tromey@redhat.com>
9695 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9696 * target.c (target_stop_recording): Add argument.
9697 * record.c (record_stop): Add argument.
9698 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9701 2014-02-19 Tom Tromey <tromey@redhat.com>
9703 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9704 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9705 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9707 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9708 (_initialize_amd64_linux_nat): Use it.
9709 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9710 (_initialize_i386_linux_nat): Use it.
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9714 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9715 * target.c (target_teardown_btrace): Add argument.
9716 * remote.c (remote_teardown_btrace): Add 'self' argument.
9717 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9719 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9724 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9725 * target.c (target_disable_btrace): Add argument.
9726 * remote.c (remote_disable_btrace): Add 'self' argument.
9727 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9729 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9734 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9735 * target.c (target_enable_btrace): Add argument.
9736 * remote.c (remote_enable_btrace): Add 'self' argument.
9737 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9739 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9744 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9745 (target_can_use_agent): Add argument.
9746 * target.c (update_current_target): Update.
9747 * remote.c (remote_can_use_agent): Add 'self' argument.
9748 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9750 2014-02-19 Tom Tromey <tromey@redhat.com>
9752 * target.h (struct target_ops) <to_use_agent>: Add argument.
9753 (target_use_agent): Add argument.
9754 * target.c (update_current_target): Update.
9755 * remote.c (remote_use_agent): Add 'self' argument.
9756 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9760 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9761 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9762 (target_traceframe_info): Add argument.
9763 * target.c (update_current_target): Update.
9764 * remote.c (remote_traceframe_info): Add 'self' argument.
9765 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9767 2014-02-19 Tom Tromey <tromey@redhat.com>
9769 * target.h (target_static_tracepoint_markers_by_strid): Add
9771 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9773 * target.c (update_current_target): Update.
9774 * remote.c (struct target_ops)
9775 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9776 * linux-nat.c (struct target_ops)
9777 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9783 (target_static_tracepoint_marker_at): Add argument.
9784 * target.c (update_current_target): Update.
9785 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9790 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9791 (target_set_permissions): Add argument.
9792 * target.c (update_current_target): Update.
9793 * remote.c (remote_set_permissions): Add 'self' argument.
9794 (remote_start_remote): Update.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9799 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9800 (target_get_tib_address): Add argument.
9801 * target.c (update_current_target): Update.
9802 * remote.c (remote_get_tib_address): Add 'self' argument.
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9806 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9807 (target_set_trace_notes): Add argument.
9808 * target.c (update_current_target): Update.
9809 * remote.c (remote_set_trace_notes): Add 'self' argument.
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9813 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9815 (target_set_trace_buffer_size): Add argument.
9816 * target.c (update_current_target): Update.
9817 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9821 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9823 (target_set_circular_trace_buffer): Add argument.
9824 * target.c (update_current_target): Update.
9825 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9830 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9832 (target_set_disconnected_tracing): Add argument.
9833 * target.c (update_current_target): Update.
9834 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9838 * target.h (struct target_ops)
9839 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9840 (target_get_min_fast_tracepoint_insn_len): Add argument.
9841 * target.c (update_current_target): Update.
9842 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9849 (target_get_raw_trace_data): Add argument.
9850 * target.c (update_current_target): Update.
9851 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9855 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9857 (target_upload_trace_state_variables): Add argument.
9858 * target.c (update_current_target): Update.
9859 * remote.c (remote_upload_trace_state_variables): Add 'self'
9861 (remote_start_remote): Update.
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9865 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9867 (target_upload_tracepoints): Add argument.
9868 * target.c (update_current_target): Update.
9869 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9870 (remote_start_remote): Update.
9872 2014-02-19 Tom Tromey <tromey@redhat.com>
9874 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9875 (target_save_trace_data): Add argument.
9876 * target.c (update_current_target): Update.
9877 * remote.c (remote_save_trace_data): Add 'self' argument.
9879 2014-02-19 Tom Tromey <tromey@redhat.com>
9881 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9883 * target.h (struct target_ops)
9884 <to_get_trace_state_variable_value>: Add argument.
9885 (target_get_trace_state_variable_value): Add argument.
9886 * target.c (update_current_target): Update.
9887 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9889 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9894 * target.h (struct target_ops) <to_trace_find>: Add argument.
9895 (target_trace_find): Add argument.
9896 * target.c (update_current_target): Update.
9897 * remote.c (remote_trace_find): Add 'self' argument.
9898 * ctf.c (ctf_trace_find): Add 'self' argument.
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9902 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9903 (target_trace_stop): Add argument.
9904 * target.c (update_current_target): Update.
9905 * remote.c (remote_trace_stop): Add 'self' argument.
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9909 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9910 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9912 (target_get_tracepoint_status): Add argument.
9913 * target.c (update_current_target): Update.
9914 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9918 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9919 * target.h (struct target_ops) <to_get_trace_status>: Add
9921 (target_get_trace_status): Add argument.
9922 * target.c (update_current_target): Update.
9923 * remote.c (remote_get_trace_status): Add 'self' argument.
9924 (remote_start_remote, remote_can_download_tracepoint): Update.
9925 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9927 2014-02-19 Tom Tromey <tromey@redhat.com>
9929 * target.h (struct target_ops) <to_trace_start>: Add argument.
9930 (target_trace_start): Add argument.
9931 * target.c (update_current_target): Update.
9932 * remote.c (remote_trace_start): Add 'self' argument.
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9936 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9938 (target_trace_set_readonly_regions): Add argument.
9939 * target.c (update_current_target): Update.
9940 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9945 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9947 (target_disable_tracepoint): Add argument.
9948 * target.c (update_current_target): Update.
9949 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9953 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9955 (target_enable_tracepoint): Add argument.
9956 * target.c (update_current_target): Update.
9957 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9961 * target.h (struct target_ops) <to_download_trace_state_variable>:
9963 (target_download_trace_state_variable): Add argument.
9964 * target.c (update_current_target): Update.
9965 * remote.c (remote_download_trace_state_variable): Add 'self'
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9972 (target_can_download_tracepoint): Add argument.
9973 * target.c (update_current_target): Update.
9974 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9976 2014-02-19 Tom Tromey <tromey@redhat.com>
9978 * target.h (struct target_ops) <to_download_tracepoint>: Add
9980 (target_download_tracepoint): Add argument.
9981 * target.c (update_current_target): Update.
9982 * remote.c (remote_download_tracepoint): Add 'self' argument.
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9986 * target.h (struct target_ops) <to_trace_init>: Add argument.
9987 (target_trace_init): Add argument.
9988 * target.c (update_current_target): Update.
9989 * remote.c (remote_trace_init): Add 'self' argument.
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9994 * target.c (target_fileio_readlink): Add argument.
9995 * remote.c (remote_hostio_readlink): Add 'self' argument.
9996 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10001 * target.c (target_fileio_unlink): Add argument.
10002 * remote.c (remote_hostio_unlink): Add 'self' argument.
10003 (remote_file_delete): Update.
10004 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10008 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10009 * target.c (target_fileio_close): Add argument.
10010 * remote.c (remote_hostio_close): Add 'self' argument.
10011 (remote_hostio_close_cleanup): Update.
10012 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10014 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10019 * target.c (target_fileio_pread): Add argument.
10020 * remote.c (remote_hostio_pread): Add 'self' argument.
10021 (remote_bfd_iovec_pread, remote_file_get): Update.
10022 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10024 2014-02-19 Tom Tromey <tromey@redhat.com>
10026 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10027 * target.c (target_fileio_pwrite): Add argument.
10028 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10029 (remote_file_put): Update.
10030 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10034 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10035 * target.c (target_fileio_open): Add argument.
10036 * remote.c (remote_hostio_open): Add 'self' argument.
10037 (remote_bfd_iovec_open): Add 'self' argument.
10038 (remote_file_put): Add 'self' argument.
10039 (remote_file_get): Add 'self' argument.
10040 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10042 2014-02-19 Tom Tromey <tromey@redhat.com>
10044 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10046 (target_can_run_breakpoint_commands): Add argument.
10047 * target.c (update_current_target): Update.
10048 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10050 (remote_insert_breakpoint): Add 'self' argument.
10051 (remote_insert_hw_breakpoint): Add 'self' argument.
10052 (remote_can_run_breakpoint_commands): Add 'self' argument.
10054 2014-02-19 Tom Tromey <tromey@redhat.com>
10056 * target.h (struct target_ops)
10057 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10058 (target_supports_evaluation_of_breakpoint_conditions): Add
10060 * target.c (update_current_target): Update.
10061 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10063 (remote_insert_breakpoint): Add 'self' argument.
10064 (remote_insert_hw_breakpoint): Add 'self' argument.
10065 (remote_supports_cond_breakpoints): Add 'self' argument.
10067 2014-02-19 Tom Tromey <tromey@redhat.com>
10069 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10071 (target_supports_string_tracing): Add argument.
10072 * target.c (update_current_target): Update.
10073 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10077 * target.h (struct target_ops)
10078 <to_supports_disable_randomization>: Add argument.
10079 * target.c (find_default_supports_disable_randomization): Add
10081 (target_supports_disable_randomization): Add argument.
10082 (find_default_supports_disable_randomization): Add 'self'
10084 * remote.c (extended_remote_supports_disable_randomization): Add
10086 (remote_supports_disable_randomization): Add 'self' argument.
10087 (extended_remote_create_inferior): Update.
10088 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10091 2014-02-19 Tom Tromey <tromey@redhat.com>
10093 * target.h (struct target_ops)
10094 <to_supports_enable_disable_tracepoint>: Add argument.
10095 (target_supports_enable_disable_tracepoint): Add argument.
10096 * target.c (update_current_target): Update.
10097 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10100 2014-02-19 Tom Tromey <tromey@redhat.com>
10102 * target.h (struct target_ops) <to_supports_multi_process>: Add
10104 (target_supports_multi_process): Add argument.
10105 * target.c (update_current_target): Update.
10106 * remote.c (remote_supports_multi_process): Add 'self' argument.
10107 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10109 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10114 * target.h (struct target_ops) <to_execution_direction>: Add
10116 (target_execution_direction): Add argument.
10117 * target.c (default_execution_direction): Add 'self' argument.
10118 * record-full.c (record_full_execution_direction): Add 'self'
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10123 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10125 (target_can_execute_reverse): Add argument.
10126 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10127 * record-full.c (record_full_can_execute_reverse): Add 'self'
10129 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10134 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10135 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10137 (target_get_ada_task_ptid): Add argument.
10138 * target.c (update_current_target): Update.
10139 (default_get_ada_task_ptid): Add 'self' argument.
10140 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10141 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10142 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10144 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10146 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10148 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10150 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10151 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10156 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10157 (target_goto_bookmark): Add argument.
10158 * target.c (dummy_goto_bookmark): Add 'self' argument.
10159 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10163 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10164 (target_get_bookmark): Add argument.
10165 * target.c (dummy_get_bookmark): Add 'self' argument.
10166 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10170 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10172 (target_make_corefile_notes): Add argument.
10173 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10174 * procfs.c (procfs_make_note_section): Add 'self' argument.
10175 (procfs_make_note_section): Add 'self' argument.
10176 (procfs_make_note_section): Add 'self' argument.
10177 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10179 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10180 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10181 * exec.c (exec_make_note_section): Add 'self' argument.
10182 (exec_make_note_section): Add 'self' argument.
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10186 * target.h (struct target_ops) <to_find_memory_regions>: Add
10188 (target_find_memory_regions): Add argument.
10189 * target.c (dummy_find_memory_regions): Add 'self' argument.
10190 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10191 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10192 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10193 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10194 * exec. (exec_do_find_memory_regions): New global.
10195 (exec_set_find_memory_regions): Rewrite.
10196 (exec_find_memory_regions): New function.
10197 (init_exec_ops): Use exec_find_memory_regions.
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10201 * target.h (struct target_ops) <to_supports_non_stop>: Add
10203 * target.c (find_default_supports_non_stop): Add argument.
10204 (target_supports_non_stop): Add argument.
10205 (find_default_supports_non_stop): Add 'self' argument.
10206 * remote.c (remote_supports_non_stop): Add 'self' argument.
10207 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10211 * target.h (struct target_ops) <to_log_command>: Add argument.
10212 (target_log_command): Add argument.
10213 * serial.h (serial_log_command): Add 'self' argument.
10214 * serial.c (serial_log_command): Add 'self' argument.
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10218 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10219 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10221 (target_pid_to_exec_file): Add argument.
10222 * target.c (debug_to_pid_to_exec_file): Add argument.
10223 (update_current_target): Update.
10224 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10225 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10226 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10227 (linux_handle_extended_wait): Update.
10228 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10229 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10230 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10231 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * target.h (struct target_ops) <to_rcmd>: Add argument.
10236 (target_rcmd): Add argument.
10237 * target.c (debug_to_rcmd): Add argument.
10238 (update_current_target, do_monitor_command): Update.
10239 * remote.c (remote_rcmd): Add 'self' argument.
10240 * monitor.c (monitor_rcmd): Add 'self' argument.
10242 2014-02-19 Tom Tromey <tromey@redhat.com>
10244 * windows-nat.c (windows_stop): Add 'self' argument.
10245 * target.h (struct target_ops) <to_stop>: Add argument.
10246 * target.c (target_stop): Add argument.
10247 (debug_to_stop): Add argument.
10248 (update_current_target): Update.
10249 * remote.c (remote_stop): Add 'self' argument.
10250 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10251 (gdbsim_cntrl_c): Update.
10252 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10253 * procfs.c (procfs_stop): Add 'self' argument.
10254 * nto-procfs.c (procfs_stop): Add 'self' argument.
10255 * monitor.c (monitor_stop): Add 'self' argument.
10256 (monitor_open): Update.
10257 * linux-nat.c (linux_nat_stop): Add argument.
10258 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10259 * gnu-nat.c (gnu_stop): Add 'self' argument.
10260 * darwin-nat.c (darwin_stop): Add 'self' argument.
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target.h (struct target_ops) <to_thread_name>: Add argument.
10265 * target.c (target_thread_name): Add argument.
10266 (update_current_target): Update.
10267 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10269 2014-02-19 Tom Tromey <tromey@redhat.com>
10271 * target.h (struct target_ops) <to_extra_thread_info>: Add
10273 (target_extra_thread_info): Add argument.
10274 * target.c (update_current_target): Update.
10275 * remote.c (remote_threads_extra_info): Add 'self' argument.
10276 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10278 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10279 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10280 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10282 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10284 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10286 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10289 2014-02-19 Tom Tromey <tromey@redhat.com>
10291 * target.h (struct target_ops) <to_program_signals>: Add argument.
10292 * target.c (target_program_signals): Add argument.
10293 * remote.c (remote_program_signals): Add 'self' argument.
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10298 * target.c (target_pass_signals): Add argument.
10299 * remote.c (remote_pass_signals): Add 'self' argument.
10300 (remote_start_remote): Update.
10301 * procfs.c (procfs_pass_signals): Add 'self' argument.
10302 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10303 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10304 (linux_nat_create_inferior, linux_nat_attach): Update.
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10308 * windows-nat.c (windows_can_run): Add 'self' argument.
10309 * target.h (struct target_ops) <to_can_run>: Add argument.
10310 (target_can_run): Add argument.
10311 * target.c (debug_to_can_run): Add argument.
10312 (update_current_target): Update.
10313 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10314 * inf-child.c (inf_child_can_run): Add 'self' argument.
10315 * go32-nat.c (go32_can_run): Add 'self' argument.
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10319 * target.h (struct target_ops) <to_has_exited>: Add argument.
10320 (target_has_exited): Add argument.
10321 * target.c (debug_to_has_exited): Add argument.
10322 (update_current_target): Update.
10324 2014-02-19 Tom Tromey <tromey@redhat.com>
10326 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10328 (target_set_syscall_catchpoint): Add argument.
10329 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10331 * target.c (update_current_target): Update.
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10335 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10337 (target_remove_exec_catchpoint): Add argument.
10338 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10339 (update_current_target): Update.
10340 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10345 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10347 (target_insert_exec_catchpoint): Add argument.
10348 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10349 (update_current_target): Update.
10350 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10355 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10357 (target_remove_vfork_catchpoint): Add argument.
10358 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10359 (update_current_target): Update.
10360 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10365 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10367 (target_insert_vfork_catchpoint): Add argument.
10368 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10369 (update_current_target): Update.
10370 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10373 2014-02-19 Tom Tromey <tromey@redhat.com>
10375 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10377 (target_remove_fork_catchpoint): Add argument.
10378 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10379 (update_current_target): Update.
10380 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10387 (target_insert_fork_catchpoint): Add argument.
10388 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10389 (update_current_target): Update.
10390 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10393 2014-02-19 Tom Tromey <tromey@redhat.com>
10395 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10397 (target_post_startup_inferior): Add argument.
10398 * target.c (debug_to_post_startup_inferior): Add argument.
10399 (update_current_target): Update.
10400 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10402 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10404 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10406 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10408 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10410 (super_post_startup_inferior): Likewise.
10411 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10413 (super_post_startup_inferior): Likewise.
10414 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10415 Add 'self' argument.
10416 (super_post_startup_inferior): Likewise.
10418 2014-02-19 Tom Tromey <tromey@redhat.com>
10420 * target.h (struct target_ops) <to_load>: Add argument.
10421 * target.c (target_load): Add argument.
10422 (debug_to_load): Add argument.
10423 (update_current_target): Update.
10424 * remote.c (remote_load): Add 'self' argument.
10425 * remote-sim.c (gdbsim_load): Add 'self' argument.
10426 * remote-mips.c (mips_load): Add 'self' argument.
10427 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10428 * monitor.c (monitor_load): Add 'self' argument.
10429 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10431 2014-02-19 Tom Tromey <tromey@redhat.com>
10433 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10434 (target_terminal_info): Add argument.
10435 * target.c (debug_to_terminal_info): Add argument.
10436 (default_terminal_info): Likewise.
10437 * inflow.c (child_terminal_info): Add 'self' argument.
10438 * inferior.h (child_terminal_info): Add 'self' argument.
10439 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10443 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10445 (target_terminal_save_ours): Add argument.
10446 * target.c (debug_to_terminal_save_ours): Add argument.
10447 (update_current_target): Update.
10448 * inflow.c (terminal_save_ours): Add 'self' argument.
10449 * inferior.h (terminal_save_ours): Add 'self' argument.
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10453 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10454 (target_terminal_ours): Add argument.
10455 * target.c (debug_to_terminal_ours): Add argument.
10456 (update_current_target): Update.
10457 * remote.c (remote_terminal_ours): Add 'self' argument.
10458 (remote_close): Update.
10459 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10460 * inflow.c (terminal_ours): Add 'self' argument.
10461 * inferior.h (terminal_ours): Add 'self' argument.
10462 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10464 2014-02-19 Pedro Alves <palves@redhat.com>
10465 Tom Tromey <tromey@redhat.com>
10467 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10469 (target_terminal_ours_for_output): Add argument.
10470 * target.c (debug_to_terminal_ours_for_output): Add argument.
10471 (update_current_target): Update.
10472 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10473 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10474 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10478 * target.h (struct target_ops) <to_terminal_inferior>: Add
10480 * target.c (target_terminal_inferior): Add argument.
10481 (update_current_target): Update.
10482 * remote.c (remote_terminal_inferior): Add 'self' argument.
10483 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10484 * inflow.c (terminal_inferior): Add 'self' argument.
10485 * inferior.h (terminal_inferior): Add 'self' argument.
10486 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10487 (go32_terminal_inferior): Add 'self' argument.
10489 2014-02-19 Tom Tromey <tromey@redhat.com>
10491 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10492 (target_terminal_init): Add argument.
10493 * target.c (debug_to_terminal_init): Add argument.
10494 (update_current_target): Update.
10495 * inflow.c (terminal_init_inferior): Add 'self' argument.
10496 * inferior.h (terminal_init_inferior): Add 'self' argument.
10497 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10498 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10500 2014-02-19 Tom Tromey <tromey@redhat.com>
10502 * target.h (struct target_ops)
10503 <to_can_accel_watchpoint_condition>: Add argument.
10504 (target_can_accel_watchpoint_condition): Add argument.
10505 * target.c (debug_to_can_accel_watchpoint_condition): Add
10507 (update_current_target): Update.
10508 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10513 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10515 (target_region_ok_for_hw_watchpoint): Add argument.
10516 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10517 (default_region_ok_for_hw_watchpoint): Add argument.
10518 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10519 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10521 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10523 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10525 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10527 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10529 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10531 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10532 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10534 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10535 Add 'self' argument.
10537 2014-02-19 Tom Tromey <tromey@redhat.com>
10539 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10541 (target_insert_watchpoint): Add argument.
10542 * target.c (debug_to_insert_watchpoint): Add argument.
10543 (update_current_target): Update.
10544 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10545 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10546 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10547 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10548 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10549 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10551 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10552 (procfs_insert_hw_watchpoint): Add 'self' argument.
10553 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10555 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10557 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10559 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10560 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10562 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10565 2014-02-19 Tom Tromey <tromey@redhat.com>
10567 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10569 (target_remove_watchpoint): Add argument.
10570 * target.c (debug_to_remove_watchpoint): Add argument.
10571 (update_current_target): Update.
10572 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10573 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10574 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10575 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10576 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10577 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10579 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10580 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10582 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10584 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10586 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10587 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10589 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10594 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10596 (target_remove_hw_breakpoint): Add argument.
10597 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10598 (update_current_target): Update.
10599 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10600 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10602 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10603 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10605 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10610 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10612 (target_insert_hw_breakpoint): Add argument.
10613 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10614 (update_current_target): Update.
10615 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10616 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10618 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10619 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10620 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10622 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10627 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10629 (target_can_use_hardware_watchpoint): Add argument.
10630 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10631 (update_current_target): Update.
10632 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10634 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10636 * remote.c (remote_check_watch_resources): Add 'self' argument.
10637 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10638 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10640 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10641 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10643 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10645 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10647 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10649 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10651 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10653 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10654 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10656 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10659 2014-02-19 Tom Tromey <tromey@redhat.com>
10661 * target.h (struct target_ops) <to_post_attach>: Add argument.
10662 (target_post_attach): Add argument.
10663 * target.c (debug_to_post_attach): Add argument.
10664 (update_current_target): Update.
10665 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10666 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10667 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10668 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10669 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10673 * windows-nat.c (windows_close): Add 'self' argument.
10674 * tracepoint.c (tfile_close): Add 'self' argument.
10675 * target.h (struct target_ops) <to_close>: Add argument.
10676 * target.c (target_close): Add argument.
10677 (update_current_target): Update.
10678 * remote.c (remote_close): Add 'self' argument.
10679 * remote-sim.c (gdbsim_close): Add 'self' argument.
10680 * remote-mips.c (mips_close): Add 'self' argument.
10681 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10682 * record-full.c (record_full_close): Add 'self' argument.
10683 * record-btrace.c (record_btrace_close): Add 'self' argument.
10684 * monitor.h (monitor_close): Add 'self' argument.
10685 * monitor.c (monitor_close): Add 'self' argument.
10686 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10687 * linux-nat.c (linux_nat_close): Add argument.
10688 * go32-nat.c (go32_close): Add 'self' argument.
10689 * exec.c (exec_close_1): Add 'self' argument.
10690 * ctf.c (ctf_close): Add 'self' argument.
10691 * corelow.c (core_close): Add 'self' argument.
10692 (core_close_cleanup): Update.
10693 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10694 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10698 * remote.c (remote_load): New function.
10699 (init_remote_ops): Use it.
10701 2014-02-19 Tom Tromey <tromey@redhat.com>
10703 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10705 * common/linux-btrace.h (linux_supports_btrace): Update.
10706 * remote.c (remote_supports_btrace): Add "self" argument.
10707 * target-delegates.c: Rebuild.
10708 * target.c (target_supports_btrace): Remove.
10709 * target.h (struct target_ops) <to_supports_btrace>: Add
10710 target_ops argument.
10711 (target_supports_btrace): New define.
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10715 * record-full.c (record_full_beneath_to_resume_ops)
10716 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10717 (record_full_beneath_to_wait)
10718 (record_full_beneath_to_store_registers_ops)
10719 (record_full_beneath_to_store_registers)
10720 (record_full_beneath_to_xfer_partial_ops)
10721 (record_full_beneath_to_xfer_partial)
10722 (record_full_beneath_to_insert_breakpoint_ops)
10723 (record_full_beneath_to_insert_breakpoint)
10724 (record_full_beneath_to_remove_breakpoint_ops)
10725 (record_full_beneath_to_remove_breakpoint)
10726 (record_full_beneath_to_stopped_by_watchpoint)
10727 (record_full_beneath_to_stopped_data_address)
10728 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10729 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10730 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10731 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10732 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10733 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10734 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10735 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10736 (record_full_resume, record_full_wait_1)
10737 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10738 (record_full_store_registers, record_full_xfer_partial)
10739 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10740 (record_full_async, record_full_core_xfer_partial): Use target
10742 * target-delegates.c: Rebuild.
10743 * target.c (current_xfer_partial): Remove.
10744 (update_current_target): Do not INHERIT or de_fault
10745 to_insert_breakpoint, to_remove_breakpoint,
10746 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10747 to_is_async_p, to_async. Do not set to_xfer_partial field.
10748 (default_xfer_partial): Simplify.
10749 (current_xfer_partial): Remove.
10750 (target_wait, target_resume): Simplify.
10751 (find_default_can_async_p, find_default_is_async_p): Update.
10752 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10753 to_xfer_partial, to_stopped_by_watchpoint,
10754 to_stopped_data_address.
10755 (target_store_registers): Simplify.
10756 (forward_target_remove_breakpoint)
10757 (forward_target_insert_breakpoint): Remove.
10758 (target_remove_breakpoint, target_insert_breakpoint)
10759 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10760 * target.h (struct target_ops) <to_resume, to_wait,
10761 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10762 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10763 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10765 (forward_target_remove_breakpoint)
10766 (forward_target_insert_breakpoint): Remove.
10767 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10769 (record_btrace_insert_breakpoint): Delegate directly.
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10774 * target-delegates.c: New file.
10775 * target.c: Include target-delegates.c.
10776 (init_dummy_target): Call install_dummy_methods.
10777 (complete_target_initialization): Call install_delegators.
10778 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10779 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10780 * make-target-delegates: New file.
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10784 * record.c (find_record_target): Use find_target_at.
10785 * target.c (find_target_at): New function.
10786 * target.h (find_target_at): Declare.
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10790 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10791 Add 'ops' argument.
10792 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10794 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10795 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10797 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10799 * linux-nat.c (save_sigtrap): Update.
10800 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10801 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10802 (linux_nat_close): Update.
10803 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10805 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10807 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10808 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10809 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10810 (tmp_to_async): Add 'ops' argument.
10811 (record_full_stopped_by_watchpoint, record_full_async)
10812 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10814 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10815 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10816 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10817 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10818 (remote_is_async_p, remote_async): Add 'ops' argument.
10819 (remote_stopped_data_address): Update.
10820 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10821 * target.c (update_current_target)
10822 (find_default_can_async_p, find_default_is_async_p): Update.
10823 (init_dummy_target): Update.
10824 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10825 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10826 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10827 (target_can_async_p, target_is_async_p, target_async)
10828 (target_stopped_by_watchpoint): Update.
10830 2014-02-19 Yao Qi <yao@codesourcery.com>
10833 * gdbarch.sh: Remove startup_gdbarch.
10834 * gdbarch.c: Regenerated.
10835 * gdbarch.h: Likewise.
10837 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10839 * rl78-tdep.c (rl78_g10_register_name): New function.
10840 (rl78_return_value): Add g10 support.
10841 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10844 2014-02-17 Doug Evans <xdje42@gmail.com>
10846 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10847 (SUBDIR_GUILE_SRCS): Ditto.
10848 (scm-gsmob.o): Ditto.
10850 2014-02-17 Yao Qi <yao@codesourcery.com>
10852 * gnu-nat.c (ILL_RPC): Declare defined function.
10854 2014-02-17 Yao Qi <yao@codesourcery.com>
10856 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10857 mach_msg_type_number_t.
10858 (gnu_write_inferior): Likewise.
10860 2014-02-17 Yao Qi <yao@codesourcery.com>
10862 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10864 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10865 (inf_validate_procs, inf_signal): Likewise.
10866 (S_exception_raise_request): Likewise.
10867 (do_mach_notify_dead_name): Likewise.
10868 (steal_exc_port): Likewise.
10869 (gnu_read_inferior): Change 'copy_count''s type to
10870 mach_msg_type_number_t.
10871 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10874 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10876 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10877 flag. Adjust all users; in particular...
10878 (gnu_wait): ..., don't decrement its value in here...
10879 (gnu_create_inferior): ..., and instead set the flag in here,
10880 around the startup_inferior call, and call that one with
10881 START_INFERIOR_TRAPS_EXPECTED.
10883 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10884 (ILL_RPC): ... new macro.
10885 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10886 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10887 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10888 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10889 functions with ILL_RPC macro.
10890 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10891 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10892 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10893 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10894 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10895 (S_proc_getlogin_reply, S_proc_getsid_reply)
10896 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10897 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10898 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10899 (S_proc_getnports_reply, S_proc_is_important_reply)
10900 (S_proc_get_code_reply): New stub functions, generated with
10903 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10904 collected the type check structures.
10906 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10908 2014-02-14 Doug Evans <dje@google.com>
10910 * target.c (target_write_partial): Fix result type.
10912 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10914 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10915 the proper offsets to access fpregset_t.
10917 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10919 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10920 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10921 * h8300-tdep.c (setmachinelist): Remove global.
10922 * hppa-tdep.c (hppa_sigtramp): Remove global.
10923 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10924 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10925 * ravenscar-thread.c (update_target_observer): Remove global.
10926 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10928 2014-02-12 Tom Tromey <tromey@redhat.com>
10930 * common/rsp-low.c: Update comments.
10931 * common/rsp-low.h: Update comments.
10933 2014-02-12 Tom Tromey <tromey@redhat.com>
10935 * common/rsp-low.c (convert_ascii_to_int): Remove.
10936 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10938 2014-02-12 Tom Tromey <tromey@redhat.com>
10940 * common/rsp-low.h (unhexify): Don't declare.
10941 * common/rsp-low.c (unhexify): Remove.
10943 2014-02-12 Tom Tromey <tromey@redhat.com>
10945 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10946 * common/rsp-low.c (convert_int_to_ascii): Remove.
10948 2014-02-12 Tom Tromey <tromey@redhat.com>
10950 * common/rsp-low.h (hexify): Don't declare.
10951 * common/rsp-low.c (hexify): Remove.
10953 2014-02-12 Tom Tromey <tromey@redhat.com>
10955 * common/rsp-low.c (hexify): Never take strlen of argument.
10957 2014-02-12 Tom Tromey <tromey@redhat.com>
10959 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10960 * remote.c (extended_remote_run, remote_rcmd)
10961 (remote_download_trace_state_variable, remote_save_trace_data)
10962 (remote_set_trace_notes): Update.
10963 * tracepoint.c (encode_source_string, tfile_write_status)
10964 (tfile_write_uploaded_tsv): Update.
10966 2014-02-12 Tom Tromey <tromey@redhat.com>
10968 * tracepoint.c: Include rsp-low.h.
10969 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10970 * remote.c: Include rsp-low.h.
10971 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10972 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10973 (remote_unescape_input): Move to common/rsp-low.c.
10974 * common/rsp-low.h: New file.
10975 * common/rsp-low.c: New file.
10976 * Makefile.in (SFILES): Add common/rsp-low.c.
10977 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10978 (COMMON_OBS): Add rsp-low.o.
10979 (rsp-low.o): New target.
10981 2014-02-12 Tom Tromey <tromey@redhat.com>
10983 * utils.h: Include print-utils.h.
10984 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10985 (int_string, core_addr_to_string, core_addr_to_string_nz)
10986 (hex_string, hex_string_custom): Don't declare.
10987 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10988 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10989 (hex_string_custom, int_string, core_addr_to_string)
10990 (core_addr_to_string_nz, host_address_to_string): Move to
10991 common/print-utils.c.
10992 * common/print-utils.h: New file.
10993 * common/print-utils.c: New file
10994 * Makefile.in (SFILES): Add common/print-utils.c.
10995 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10996 (COMMON_OBS): Add print-utils.o.
10997 (print-utils.o): New target.
10999 2014-02-12 Tom Tromey <tromey@redhat.com>
11001 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11003 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11005 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11007 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11009 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11010 if a PT_IO ptrace request returns sucessfully but indicates that 0
11011 bytes were transferred.
11013 2014-02-12 Pedro Alves <palves@redhat.com>
11014 Kevin Buettner <kevinb@redhat.com>
11016 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11017 TYPE_INSTANCE_FLAG_CODE_SPACE.
11019 2014-02-12 Pedro Alves <palves@redhat.com>
11021 * h8300-tdep.c (pseudo_from_raw_register)
11022 (raw_from_pseudo_register): New functions.
11023 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11026 2014-02-12 Pedro Alves <palves@redhat.com>
11028 * h8300-tdep.c (h8300_register_sim_regno): New function.
11029 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11030 gdbarch_register_sim_regno hook.
11032 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11034 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11036 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11038 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11040 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11042 * obsd-tdep.h (obsd_init_abi): New prototype.
11043 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11044 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11045 (obsd_init_abi): New functions.
11046 * i386obsd-tdep.c: Include "obsd-tdep.h".
11047 (i386obsd_init_abi): Call obsd_init_abi.
11048 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11049 (amd64obsd_init_abi): Call obsd_init_abi.
11050 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11051 obsd-tdep.c to gdb_target_obs.
11053 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11055 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11056 double float arguments to 16-byte in the argument slots.
11058 2014-02-11 Doug Evans <xdje42@gmail.com>
11060 * configure.ac: Don't crash if pkg-config is not found and guile
11061 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11063 * configure: Regenerate.
11065 2014-02-11 Yao Qi <yao@codesourcery.com>
11067 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11068 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11069 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11070 * gnu-nat.c (gnu_xfer_memory): Likewise.
11071 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11072 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11073 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11074 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11076 2014-02-11 Yao Qi <yao@codesourcery.com>
11078 * target.h (enum target_xfer_error): Rename to ...
11079 (enum target_xfer_status): ... it. New. All users updated.
11080 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11082 (TARGET_XFER_STATUS_ERROR_P): New macro.
11083 (target_xfer_error_to_string): Remove declaration.
11084 (target_xfer_status_to_string): Declare.
11085 (target_xfer_partial_ftype): Adjust it.
11086 (struct target_ops) <to_xfer_partial>: Return
11087 target_xfer_status. Add argument xfered_len. Update
11089 * target.c (target_xfer_error_to_string): Rename to ...
11090 (target_xfer_status_to_string): ... it. New. All callers
11092 (target_read_live_memory): Likewise. Call target_xfer_partial
11093 instead of target_read.
11094 (memory_xfer_live_readonly_partial): Return
11095 target_xfer_status. Add argument xfered_len.
11096 (raw_memory_xfer_partial): Likewise.
11097 (memory_xfer_partial_1): Likewise.
11098 (memory_xfer_partial): Likewise.
11099 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11100 properly. Update debug message.
11101 (default_xfer_partial, current_xfer_partial): Likewise.
11102 (target_write_partial): Likewise.
11103 (target_read_partial): Likewise. All callers updated.
11104 (read_whatever_is_readable): Likewise.
11105 (target_write_with_progress): Likewise.
11106 (target_read_alloc_1): Likewise.
11108 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11109 * auxv.c (procfs_xfer_auxv): Likewise.
11110 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11111 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11112 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11113 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11114 * corefile.c (read_memory): Adjust.
11115 * corelow.c (core_xfer_partial): Likewise.
11116 * ctf.c (ctf_xfer_partial): Likewise.
11117 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11119 (darwin_xfer_partial): Likewise.
11120 * exec.c (section_table_xfer_memory_partial): Likewise. All
11122 (exec_xfer_partial): Likewise.
11123 * exec.h (section_table_xfer_memory_partial): Update
11125 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11127 (gnu_xfer_partial): Likewise.
11128 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11129 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11130 (ia64_hpux_xfer_solib_got): Likewise.
11131 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11132 type of 'partial_len' to ULONGEST.
11133 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11134 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11135 (linux_nat_xfer_partial): Likewise.
11136 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11137 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11138 * monitor.c (monitor_xfer_memory): Likewise.
11139 (monitor_xfer_partial): Likewise.
11140 * procfs.c (procfs_xfer_partial): Likewise.
11141 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11142 * record-full.c (record_full_xfer_partial): Likewise.
11143 (record_full_core_xfer_partial): Likewise.
11144 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11145 (gdbsim_xfer_partial): Likewise.
11146 * remote.c (remote_write_bytes_aux): Likewise. All callers
11148 (remote_write_bytes, remote_read_bytes): Likewise. All
11150 (remote_flash_erase): Likewise. All callers updated.
11151 (remote_write_qxfer): Likewise. All callers updated.
11152 (remote_read_qxfer): Likewise. All callers updated.
11153 (remote_xfer_partial): Likewise.
11154 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11155 (rs6000_xfer_shared_libraries): Likewise.
11156 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11157 (sol_thread_xfer_partial): Likewise.
11158 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11159 (sparc_xfer_partial): Likewise.
11160 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11162 (spu_xfer_partial): Likewise.
11163 * spu-multiarch.c (spu_xfer_partial): Likewise.
11164 * tracepoint.c (tfile_xfer_partial): Likewise.
11165 * windows-nat.c (windows_xfer_memory): Likewise.
11166 (windows_xfer_shared_libraries): Likewise.
11167 (windows_xfer_partial): Likewise.
11168 * valprint.c: Replace 'target_xfer_error' with
11169 'target_xfer_status' in comments.
11171 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11173 Checked in by Joel Brobecker <brobecker@adacore.com>.
11174 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11176 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11178 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11179 function parameters.
11181 2014-02-10 Will Newton <will.newton@linaro.org>
11183 * elfread.c (elf_rel_plt_read): Look for a .got section if
11184 looking up .got.plt fails.
11185 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11186 on address passed to elf_gnu_ifunc_record_cache.
11187 (elf_gnu_ifunc_resolve_addr): Likewise.
11188 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11190 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11192 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11193 (X_RETTURN): New macro.
11194 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11196 * sparc64-tdep.c (sparc64_init_abi): Hook
11197 sparc_in_function_epilogue_p.
11199 2014-02-10 Gary Benson <gbenson@redhat.com>
11201 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11202 Rename name_matcher to symbol_matcher.
11204 2014-02-10 Gary Benson <gbenson@redhat.com>
11206 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11207 Use expand_symtabs_file_matcher_ftype and
11208 expand_symtabs_symbol_matcher_ftype.
11210 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11212 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11213 (struct ada_symbol_cache): New.
11214 (ada_free_symbol_cache): Forward declare.
11215 (struct ada_pspace_data): New.
11216 (ada_pspace_data_handle): New static global.
11217 (get_ada_pspace_data, ada_pspace_data_cleanup)
11218 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11219 (cache_space, cache): Delete, now folded inside struct
11221 (ada_get_symbol_cache): New function.
11222 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11224 (_initialize_ada_language): Remove initialization of cache_space.
11225 Move call to observer_attach_inferior_exit up, grouping it
11226 with the other observer registrations inside this function.
11227 Rename command to be more general. Add call to
11228 register_program_space_data_with_cleanup.
11230 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11232 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11233 ada_new_objfile_observer.
11234 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11235 (_initialize_tasks): Update uses of ada_new_objfile_observer
11236 and ada_tasks_normal_stop_observer.
11238 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11240 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11241 returned by the 'Length attribute to integer.
11243 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11245 * ada-lang.c (_initialize_ada_language): Initialize
11246 cache_space obstack.
11248 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11250 * ada-lang.c (HASH_SIZE): New macro.
11251 (struct cache_entry): New type.
11252 (cache_space, cache): New static globals.
11253 (ada_clear_symbol_cache, find_entry): New functions.
11254 (lookup_cached_symbol, cache_symbol): Implement.
11255 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11256 (_initialize_ada_language): Attach ada_new_objfile_observer
11257 and ada_free_objfile_observer.
11259 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11261 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11262 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11263 struct block * parameter.
11264 (ada_lookup_symbol_list_worker): Constify local variable "block".
11265 Remove cast which is no longer necessary.
11267 2014-02-10 Doug Evans <xdje42@gmail.com>
11269 Add Guile as an extension language.
11270 * NEWS: Mention Guile scripting.
11271 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11272 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11273 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11274 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11275 (CLIBS): Add GUILE_LIBS.
11276 (install-guile): New rule.
11277 (guile.o): New rule.
11278 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11279 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11280 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11281 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11282 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11283 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11284 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11285 * configure.ac: New option --with-guile.
11286 * configure: Regenerate.
11287 * config.in: Regenerate.
11288 * auto-load.c: Remove #include "python/python.h". Add #include
11289 "gdb/section-scripts.h".
11290 (source_section_scripts): Handle Guile scripts.
11291 (_initialize_auto_load): Add name of Guile objfile script to
11292 scripts-directory help text.
11293 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11294 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11295 (struct breakpoint): New member scm_bp_object.
11296 * defs.h (enum command_control_type): New value guile_control.
11297 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11299 (show_user): Update comment.
11300 (_initialize_cli_cmds): Update help text for "show user". Update help
11301 text for max-user-call-depth.
11302 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11304 (multi_line_command_p): Add guile_control.
11305 (print_command_lines): Handle guile_control.
11306 (execute_control_command, recurse_read_control_structure): Ditto.
11307 (process_next_line): Recognize "guile" commands.
11308 * disasm.c (gdb_disassemble_info): Make non-static.
11309 * disasm.h: #include "dis-asm.h".
11310 (struct gdbarch): Add forward decl.
11311 (gdb_disassemble_info): Declare.
11312 * extension.c: #include "guile/guile.h".
11313 (extension_languages): Add guile.
11314 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11315 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11316 * gdbtypes.c (get_unsigned_type_max): New function.
11317 (get_signed_type_minmax): New function.
11318 * gdbtypes.h (get_unsigned_type_max): Declare.
11319 (get_signed_type_minmax): Declare.
11320 * guile/README: New file.
11321 * guile/guile-internal.h: New file.
11322 * guile/guile.c: New file.
11323 * guile/guile.h: New file.
11324 * guile/scm-arch.c: New file.
11325 * guile/scm-auto-load.c: New file.
11326 * guile/scm-block.c: New file.
11327 * guile/scm-breakpoint.c: New file.
11328 * guile/scm-disasm.c: New file.
11329 * guile/scm-exception.c: New file.
11330 * guile/scm-frame.c: New file.
11331 * guile/scm-gsmob.c: New file.
11332 * guile/scm-iterator.c: New file.
11333 * guile/scm-lazy-string.c: New file.
11334 * guile/scm-math.c: New file.
11335 * guile/scm-objfile.c: New file.
11336 * guile/scm-ports.c: New file.
11337 * guile/scm-pretty-print.c: New file.
11338 * guile/scm-safe-call.c: New file.
11339 * guile/scm-string.c: New file.
11340 * guile/scm-symbol.c: New file.
11341 * guile/scm-symtab.c: New file.
11342 * guile/scm-type.c: New file.
11343 * guile/scm-utils.c: New file.
11344 * guile/scm-value.c: New file.
11345 * guile/lib/gdb.scm: New file.
11346 * guile/lib/gdb/boot.scm: New file.
11347 * guile/lib/gdb/experimental.scm: New file.
11348 * guile/lib/gdb/init.scm: New file.
11349 * guile/lib/gdb/iterator.scm: New file.
11350 * guile/lib/gdb/printing.scm: New file.
11351 * guile/lib/gdb/types.scm: New file.
11352 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11353 (VPATH): Add $(GUILE_SRCDIR).
11354 (GUILE_DIR): New variable.
11355 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11356 (all): Add stamp-guile dependency.
11357 (stamp-guile): New rule.
11358 (clean-guile, install-guile, uninstall-guile): New rules.
11359 (install-only): Add install-guile dependency.
11360 (uninstall): Add uninstall-guile dependency.
11361 (clean): Add clean-guile dependency.
11363 2014-02-09 Doug Evans <xdje42@gmail.com>
11365 Revert this patch (which I approved, mea culpa).
11367 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11369 * Makefile.in (all-lib): Remove.
11370 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11372 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11374 Fix Python stack corruption.
11375 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11378 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11380 * Makefile.in (all-lib): Remove.
11381 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11383 2014-02-07 Doug Evans <dje@google.com>
11385 * extension-priv.h (extension_language_script_ops): Add comment.
11386 (extension_language_ops): Add comment.
11387 (active_ext_lang_state): Fix typo in comment.
11389 2014-02-07 Pedro Alves <palves@redhat.com>
11391 PR breakpoints/16292
11392 * infrun.c (handle_signal_stop) <signal arrives while stepping
11393 over a breakpoint>: Switch back to the stepping thread.
11395 2014-02-07 Yao Qi <yao@codesourcery.com>
11397 * target.c (target_xfer_partial): Return zero if LEN is zero.
11399 2014-02-07 Yao Qi <yao@codesourcery.com>
11401 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11402 (ld_so_xfer_auxv): Likewise.
11403 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11404 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11405 * corelow.c (core_xfer_partial): Likewise.
11406 * ctf.c (ctf_xfer_partial): Likewise.
11407 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11408 (darwin_xfer_partial): Likewise.
11409 * exec.c (exec_xfer_partial): Likewise.
11410 * gnu-nat.c (gnu_xfer_partial): Likewise.
11411 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11412 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11413 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11414 * linux-nat.c (linux_xfer_siginfo): Likewise.
11415 (linux_proc_xfer_spu): Likewise.
11416 * procfs.c (procfs_xfer_partial): Likewise.
11417 * record-full.c (record_full_xfer_partial): Likewise.
11418 (record_full_core_xfer_partial): Likewise.
11419 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11420 * remote.c (remote_write_qxfer): Likewise.
11421 (remote_write_qxfer, remote_read_qxfer): Likewise.
11422 (remote_xfer_partial): Likewise.
11423 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11424 (rs6000_xfer_shared_libraries): Likewise.
11425 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11426 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11427 (spu_xfer_partial): Likewise.
11428 * target.c (memory_xfer_partial_1): Likewise.
11429 * tracepoint.c (tfile_xfer_partial): Likewise.
11430 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11431 (windows_xfer_partial): Likewise.
11433 2014-02-07 Yao Qi <yao@codesourcery.com>
11435 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11437 (core_xfer_shared_libraries_aix): Likewise.
11438 * gdbarch.c, gdbarch.h: Regenerated.
11439 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11440 ULONGEST. Change 'len_avail' type to ULONGEST.
11441 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11442 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11444 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11446 2014-02-07 Yao Qi <yao@codesourcery.com>
11448 * corefile.c (memory_error): Get 'exception' from ERR and pass
11449 'exception' to throw_error.
11451 2014-02-06 Doug Evans <xdje42@gmail.com>
11453 * configure.ac (libpython checking): Remove all but python.o from
11454 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11455 * configure: Regenerate.
11457 * Makefile.in (SFILES): Add extension.c.
11458 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11459 (COMMON_OBS): Add extension.o.
11460 * extension.h: New file.
11461 * extension-priv.h: New file.
11462 * extension.c: New file.
11464 * python/python-internal.h: #include "extension.h".
11465 (gdbpy_auto_load_enabled): Declare.
11466 (gdbpy_apply_val_pretty_printer): Declare.
11467 (gdbpy_apply_frame_filter): Declare.
11468 (gdbpy_preserve_values): Declare.
11469 (gdbpy_breakpoint_cond_says_stop): Declare.
11470 (gdbpy_breakpoint_has_cond): Declare.
11471 (void source_python_script_for_objfile): Delete.
11472 * python/python.c: #include "extension-priv.h".
11473 Delete inclusion of "observer.h".
11474 (extension_language_python): Moved here and renamed from
11475 script_language_python in py-auto-load.c.
11476 Redefined to be of type extension_language_defn.
11477 (python_extension_script_ops): New global.
11478 (python_extension_ops): New global.
11479 (struct python_env): New member previous_active.
11480 (restore_python_env): Call restore_active_ext_lang.
11481 (ensure_python_env): Call set_active_ext_lang.
11482 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11484 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11486 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11488 (gdbpy_eval_from_control_command): Renamed from
11489 eval_python_from_control_command, made static. New arg extlang.
11490 (gdbpy_source_script) Renamed from source_python_script, made static.
11492 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11493 result to int. New arg extlang.
11494 (gdbpy_source_objfile_script): Renamed from
11495 source_python_script_for_objfile, made static. New arg extlang.
11496 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11497 static. New args extlang, extlang_printers. Change result type to
11499 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11500 static. New arg extlang. Rename arg printers to extlang_printers
11501 and change type to ext_lang_type_printers *.
11502 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11503 static. Replace argument arg with extlang, extlang_printers.
11504 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11505 (!HAVE_PYTHON, source_python_script): Delete.
11506 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11507 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11508 (!HAVE_PYTHON, start_type_printers): Delete.
11509 (!HAVE_PYTHON, apply_type_printers): Delete.
11510 (!HAVE_PYTHON, free_type_printers): Delete.
11511 (_initialize_python): Delete call to observer_attach_before_prompt.
11512 (finalize_python): Set/restore active extension language.
11513 (gdbpy_finish_initialization) Renamed from
11514 finish_python_initialization, made static. New arg extlang.
11515 (gdbpy_initialized): New function.
11516 * python/python.h: #include "extension.h". Delete #include
11517 "value.h", "mi/mi-cmds.h".
11518 (extension_language_python): Declare.
11519 (GDBPY_AUTO_FILE_NAME): Delete.
11520 (enum py_bt_status): Moved to extension.h and renamed to
11521 ext_lang_bt_status.
11522 (enum frame_filter_flags): Moved to extension.h.
11523 (enum py_frame_args): Moved to extension.h and renamed to
11524 ext_lang_frame_args.
11525 (finish_python_initialization): Delete.
11526 (eval_python_from_control_command): Delete.
11527 (source_python_script): Delete.
11528 (apply_val_pretty_printer): Delete.
11529 (apply_frame_filter): Delete.
11530 (preserve_python_values): Delete.
11531 (gdbpy_script_language_defn): Delete.
11532 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11533 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11535 * auto-load.c: #include "extension.h".
11536 (GDB_AUTO_FILE_NAME): Delete.
11537 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11538 (script_language_gdb): Delete, moved to extension.c and renamed to
11539 extension_language_gdb.
11540 (source_gdb_script_for_objfile): Delete.
11541 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11542 (loaded_script): Change type of language member to
11543 struct extension_language_defn *.
11544 (init_loaded_scripts_info): Initialize
11545 unsupported_script_warning_printed.
11546 (maybe_add_script): Make static. Change type of language arg to
11547 struct extension_language_defn *.
11548 (clear_section_scripts): Reset unsupported_script_warning_printed.
11549 (auto_load_objfile_script_1): Rewrite to use extension language API.
11550 (auto_load_objfile_script): Make public. Remove support-compiled-in
11551 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11552 (source_section_scripts): Rewrite to use extension language API.
11553 (load_auto_scripts_for_objfile): Rewrite to use
11554 auto_load_scripts_for_objfile.
11555 (collect_matching_scripts_data): Change type of language member to
11556 struct extension_language_defn *.
11557 (auto_load_info_scripts): Change type of language arg to
11558 struct extension_language_defn *.
11559 (unsupported_script_warning_print): New function.
11560 (script_not_found_warning_print): Make static.
11561 (_initialize_auto_load): Rewrite construction of scripts-directory
11563 * auto-load.h (struct objfile): Add forward decl.
11564 (struct script_language): Delete.
11565 (struct auto_load_pspace_info): Add forward decl.
11566 (struct extension_language_defn): Add forward decl.
11567 (maybe_add_script): Delete.
11568 (auto_load_objfile_script): Declare.
11569 (script_not_found_warning_print): Delete.
11570 (auto_load_info_scripts): Update prototype.
11571 (auto_load_gdb_scripts_enabled): Declare.
11572 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11573 auto_load_python_scripts_enabled and made public.
11574 (script_language_python): Delete, moved to python.c.
11575 (gdbpy_script_language_defn): Delete.
11576 (info_auto_load_python_scripts): Update to use
11577 extension_language_python.
11579 * breakpoint.c (condition_command): Replace call to
11580 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11581 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11582 with call to breakpoint_ext_lang_cond_says_stop.
11583 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11584 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11585 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11586 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11588 (local_setattro): Print name of extension language with existing
11591 * valprint.c (val_print, value_print): Update to call
11592 apply_ext_lang_val_pretty_printer.
11593 * cp-valprint.c (cp_print_value): Update call to
11594 apply_ext_lang_val_pretty_printer.
11595 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11596 (gdbpy_apply_val_pretty_printer): Renamed from
11597 apply_val_pretty_printer. New arg extlang.
11598 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11600 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11601 extension language API.
11602 * cli/cli-script.c (execute_control_command): Update to call
11603 eval_ext_lang_from_control_command.
11605 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11606 enum ext_lang_bt_status values. Update call to
11607 apply_ext_lang_frame_filter.
11608 (mi_cmd_stack_list_locals): Ditto.
11609 (mi_cmd_stack_list_args): Ditto.
11610 (mi_cmd_stack_list_variables): Ditto.
11611 * mi/mi-main.c: Delete #include "python/python-internal.h".
11612 Add #include "extension.h".
11613 (mi_cmd_list_features): Replace reference to python internal variable
11614 gdb_python_initialized with call to ext_lang_initialized_p.
11616 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11617 Update to use enum ext_lang_frame_args. Update to call
11618 apply_ext_lang_frame_filter.
11619 * python/py-framefilter.c (extract_sym): Update to use enum
11620 ext_lang_bt_status.
11621 (extract_value, py_print_type, py_print_value): Ditto.
11622 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11623 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11624 (py_print_frame): Ditto.
11625 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11626 New arg extlang. Update to use enum ext_lang_bt_status.
11628 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11629 finish_python_initialization. Replace with call to
11630 finish_ext_lang_initialization.
11632 * typeprint.c (do_free_global_table): Update to call
11633 free_ext_lang_type_printers.
11634 (create_global_typedef_table): Update to call
11635 start_ext_lang_type_printers.
11636 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11637 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11638 (type_print_options): Change type of global_printers from "void *"
11639 to "struct ext_lang_type_printers *".
11641 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11642 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11643 (gdbpy_preserve_values): Renamed from preserve_python_values.
11645 (!HAVE_PYTHON, preserve_python_values): Delete.
11647 * utils.c (quit_flag): Delete, moved to extension.c.
11648 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11651 * eval.c: Delete #include "python/python.h".
11652 * main.c: Delete #include "python/python.h".
11654 * defs.h: Update comment.
11656 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11660 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11662 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11665 2014-02-05 Yao Qi <yao@codesourcery.com>
11667 * remote.c (remote_pass_signals): Remove local 'buf' and use
11669 (remote_program_signals): Likewise.
11671 2014-02-05 Yao Qi <yao@codesourcery.com>
11673 * ctf.c: Include "inferior.h" and "gdbthread.h".
11674 (CTF_PID): A new macro.
11675 (ctf_open): Call inferior_appeared and add_thread_silent.
11676 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11677 (ctf_thread_alive): New function.
11678 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11680 2014-02-05 Yao Qi <yao@codesourcery.com>
11684 2013-05-24 Yao Qi <yao@codesourcery.com>
11686 * tracepoint.c (TFILE_PID): Remove.
11687 (tfile_open): Don't add thread and inferior.
11688 (tfile_close): Don't set 'inferior_ptid'. Don't call
11689 exit_inferior_silent.
11690 (tfile_thread_alive): Remove.
11691 (init_tfile_ops): Don't set field 'to_thread_alive' of
11694 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11696 * remote.c (remote_start_remote): Call remote_check_symbols even
11697 if only symbol-file (not file) has been given.
11699 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11701 * gdbarch.sh (skip_entrypoint): New callback.
11702 * gdbarch.c, gdbarch.h: Regenerate.
11703 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11704 * infrun.c (fill_in_stop_func): Likewise.
11705 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11706 (ppc_elfv2_elf_make_msymbol_special): New function.
11707 (ppc_elfv2_skip_entrypoint): Likewise.
11708 (ppc_linux_init_abi): Install them for ELFv2.
11710 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11712 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11713 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11714 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11715 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11716 structures returned in GPRs.
11718 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11720 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11721 offset to the stack parameter list for the ELFv2 ABI.
11723 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11725 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11726 set_gdbarch_convert_from_func_ptr_addr and
11727 set_gdbarch_elf_make_msymbol_special for ELFv1.
11728 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11729 function descriptors on ELFv1.
11730 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11731 set up r12 at function entry.
11733 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11735 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11736 (struct gdbarch_tdep): New member elf_abi.
11738 * rs6000-tdep.c: Include "elf/ppc64.h".
11739 (rs6000_gdbarch_init): Detect ELF ABI version.
11741 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11743 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11744 within a register pair holding a DFP 128-bit value on little-endian.
11745 (ppc64_sysv_abi_return_value_base): Likewise.
11746 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11747 (dfp_pseudo_register_write): Likewise.
11749 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11751 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11752 offset on little-endian when passing _Decimal32.
11753 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11755 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11757 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11758 of the overlapped FP register within the VSX register on little-
11760 (efpr_pseudo_register_write): Likewise.
11762 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11764 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11765 offset on little-endian when passing small structures.
11767 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11769 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11770 (struct ppc64_sysv_argpos): New data structure.
11771 (ppc64_sysv_abi_push_float): Remove.
11772 (ppc64_sysv_abi_push_val): New function.
11773 (ppc64_sysv_abi_push_integer): Likewise.
11774 (ppc64_sysv_abi_push_freg): Likewise.
11775 (ppc64_sysv_abi_push_vreg): Likewise.
11776 (ppc64_sysv_abi_push_param): Likewise.
11777 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11778 (ppc64_sysv_abi_return_value_base): New function.
11779 (ppc64_sysv_abi_return_value): Refactor to use it.
11781 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11783 * NEWS: Document new target powerpc64le-*-linux*.
11785 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11787 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11788 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11790 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11791 register set used in ELF core dumps. Add floating-point register set.
11793 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11795 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11796 dwarf2_to_gdb[] table using symbolic constants. Adjust
11797 penultimate entry from number representing the PC register
11798 to symbolic constant representing the MDR register. Add
11799 constant for the PC register to the end of the table.
11801 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11803 * bsd-kvm.c: Include <sys/param.h>
11805 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11807 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11809 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11811 * ada-lang.h (clear_ada_sym_cache): Delete.
11813 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11815 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11817 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11819 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11820 the sigreturn register save area only if the syscall is
11823 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11825 * valops.c (value_slice): Minor reformatting.
11827 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11829 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11831 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11833 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11834 New static globals.
11835 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11836 (ada_ignore_descriptive_types_p): New static global.
11837 (find_parallel_type_by_descriptive_type): Return immediately
11838 if ada_ignore_descriptive_types_p is set.
11839 (_initialize_ada_language): Register new commands "maintenance
11840 set ada", "maintenance show ada", "maintenance set ada
11841 ignore-descriptive-types" and "maintenance show ada
11842 ignore-descriptive-types".
11843 * NEWS: Add entry for new "maint ada set/show
11844 ignore-descriptive-types" commands.
11846 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11848 * record-btrace.c (record_btrace_close): Call btrace_teardown
11851 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11853 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11856 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11858 * ada-typeprint (type_is_full_subrange_of_target_type):
11860 (print_range): Add parameter bounds_prefered_p. If not set,
11861 try printing range types using the name of their base type.
11862 (print_range_type): Add parameter bounds_prefered_p.
11863 Use it in call to print_range.
11864 (print_array_type, ada_print_type): Update calls to print_range
11865 and print_range_type.
11867 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11869 * ada-typeprint.c (print_array_type, print_choices, print_range)
11870 (print_range_bound, print_dynamic_range_bound, print_range_type):
11871 Remove declaration.
11873 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11875 * ada-typeprint.c (print_range): Add missing empty line
11876 after local declaration.
11878 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11880 * ada-valprint.c (print_optional_low_bound): Get index_type's
11881 target type for as long as it is a TYPE_CODE_RANGE.
11883 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11885 * procfs.c (procfs_make_note_section): Remove assertion and
11886 associated comment.
11888 2014-01-24 Yao Qi <yao@codesourcery.com>
11890 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11891 * corelow.c (get_core_siginfo): Likewise.
11893 2014-01-24 Yao Qi <yao@codesourcery.com>
11895 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11896 ULONGEST. Don't check 'len' is negative.
11897 (remote_write_bytes): Change type of 'len' to ULONGEST.
11899 2014-01-23 Tom Tromey <tromey@redhat.com>
11902 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11903 Handle exception from frame.block.
11904 (FrameVars.fetch_frame_locals): Likewise.
11906 2014-01-23 Tom Tromey <tromey@redhat.com>
11909 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11910 on a NULL pointer. Move "goto error" to correct place.
11912 2014-01-23 Tom Tromey <tromey@redhat.com>
11915 * python/py-framefilter.c (apply_frame_filter): Call
11916 ensure_python_env after computing gdbarch.
11918 2014-01-23 Yao Qi <yao@codesourcery.com>
11920 * target.c (raw_memory_xfer_partial): Change argument type
11921 from void * to gdb_byte *.
11922 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11924 2014-01-22 Doug Evans <dje@google.com>
11926 New gdbserver option --debug-format=timestamp.
11927 * NEWS: Mention it.
11929 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11931 * syscalls/s390x-linux.xml: New file.
11932 * syscalls/s390-linux.xml: New file.
11933 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11934 (XML_SYSCALL_FILENAME_S390X): Likewise.
11935 (op_svc): New enum value for SVC opcode.
11936 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11937 (s390_linux_get_syscall_number): New function.
11938 (s390_gdbarch_init): Register '*get_syscall_number' and the
11939 syscall xml file name.
11940 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11941 "s390-linux.xml" and "s390x-linux.xml".
11942 * NEWS: Announce new feature.
11944 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11946 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11948 2014-01-22 Pedro Alves <palves@redhat.com>
11950 * xtensa-config.c: Include defs.h.
11952 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11954 * common/common-utils.h: Add "ARI:" comment beside __func__
11957 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11959 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11960 documentation a bit.
11962 2014-01-21 Roland McGrath <mcgrathr@google.com>
11964 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11965 * configure: Regenerate.
11966 * aclocal.m4: Regenerate.
11967 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11968 New substituted variables.
11969 (install-strip): New target.
11970 (INSTALL_SCRIPT): New substituted variable.
11971 (FLAGS_TO_PASS): Add it.
11972 (install-only): Use $(INSTALL_SCRIPT) rather than
11973 $(INSTALL_PROGRAM) for gcore.
11975 2014-01-20 Tom Tromey <tromey@redhat.com>
11977 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11980 2014-01-20 Tom Tromey <tromey@redhat.com>
11982 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11983 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11984 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11985 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11986 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11987 (struct cmd_list_element) <flags>: Remove.
11988 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11989 doc_allocated>: New fields.
11990 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11992 * maint.c (maintenance_do_deprecate): Update.
11993 * top.c (execute_command): Update.
11995 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11997 * xtensa-linux-nat.c: Include asm/ptrace.h.
11999 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12001 * Makefile.in (SFILES): Add d-support.c.
12002 (COMMON_OBS): Add d-support.o.
12003 * d-lang.h (d_parse_symbol): Add comment, now defined in
12005 * d-lang.c (parse_call_convention)
12006 (parse_attributes, parse_function_types)
12007 (parse_function_args, parse_type, parse_identifier)
12008 (call_convention_p, d_parse_symbol): Move functions to ...
12009 * d-support.c: ... New file.
12011 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12013 * d-lang.h (d_parse_symbol): Add declaration.
12014 * d-lang.c (extract_identifiers)
12015 (extract_type_info): Remove functions.
12016 (parse_call_convention, parse_attributes)
12017 (parse_function_types, parse_function_args)
12018 (parse_type, parse_identifier, call_convention_p)
12019 (d_parse_symbol): New functions.
12020 (d_demangle): Use d_parse_symbol to demangle D symbols.
12022 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12024 * d-lang.h (struct builtin_d_type): New data type.
12025 (builtin_d_type): Add declaration.
12026 * d-lang.c (d_language_arch_info, build_d_types)
12027 (builtin_d_type): New functions.
12028 (enum d_primitive_types): New data type.
12029 (d_language_defn): Change c_language_arch_info to
12030 d_language_arch_info.
12031 (d_type_data): New static variable.
12032 (_initialize_d_language): Initialize d_type_data.
12034 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12036 * d-lang.h (d_main_name): Add declaration.
12037 * d-lang.c (d_main_name): New function.
12038 * symtab.c (find_main_name): Add call to d_main_name.
12040 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12042 * d-lang.c (d_language_defn): Change macro_expansion_c to
12043 macro_expansion_no.
12045 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12047 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12049 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12051 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12052 gdb_exception" declaration.
12053 * remote.c (getpkt_or_notif_sane): Likewise.
12055 2014-01-17 Doug Evans <dje@google.com>
12057 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12058 function, contents of dirnames_to_char_ptr_vec_append moved here.
12059 (delim_string_to_char_ptr_vec): New function.
12060 (dirnames_to_char_ptr_vec_append): Rewrite.
12061 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12063 2014-01-17 Doug Evans <dje@google.com>
12065 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12067 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12068 #include "common-utils.h".
12069 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12070 * common/vec.h (VEC_ASSERT_PASS): Update.
12071 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12072 (MACH_CHECK_ERROR): Update.
12074 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12076 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12078 * gdbarch.h: Regenerate.
12080 2014-01-16 Tom Tromey <tromey@redhat.com>
12082 * value.c (struct value) <regnum>: Move earlier.
12084 2014-01-16 Tom Tromey <tromey@redhat.com>
12086 * remote.c (extended_remote_create_inferior): Rename from
12087 extended_remote_create_inferior_1. Add "ops" argument. Remove
12088 old implementation.
12090 2014-01-16 Pedro Alves <palves@redhat.com>
12092 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12093 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12096 2014-01-16 Doug Evans <dje@google.com>
12098 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12102 * btrace.h (btrace_thread_flag): New.
12103 (struct btrace_thread_info) <flags>: New.
12104 * record-btrace.c (record_btrace_resume_thread)
12105 (record_btrace_find_thread_to_move, btrace_step_no_history)
12106 (btrace_step_stopped, record_btrace_start_replaying)
12107 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12108 (record_btrace_find_resume_thread): New.
12109 (record_btrace_resume, record_btrace_wait): Extend.
12110 (record_btrace_can_execute_reverse): New.
12111 (record_btrace_open): Fail in non-stop mode.
12112 (record_btrace_set_replay): Split into this, ...
12113 (record_btrace_stop_replaying): ... this, ...
12114 (record_btrace_clear_histories): ... and this.
12115 (init_record_btrace_ops): Init to_can_execute_reverse.
12116 * NEWS: Announce it.
12118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12120 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12121 (forward_target_decr_pc_after_break)
12122 (target_decr_pc_after_break): New.
12123 * target.c (forward_target_decr_pc_after_break)
12124 (target_decr_pc_after_break): New.
12125 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12126 instead of gdbarch_decr_pc_after_break.
12127 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12128 instead of gdbarch_decr_pc_after_break.
12129 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12130 instead of gdbarch_decr_pc_after_break.
12131 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12132 instead of gdbarch_decr_pc_after_break.
12133 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12134 instead of gdbarch_decr_pc_after_break.
12135 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12136 instead of gdbarch_decr_pc_after_break.
12138 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12140 * btrace.c: Include regcache.h.
12141 (btrace_add_pc): New.
12142 (btrace_enable): Call btrace_add_pc.
12143 (btrace_is_empty): New.
12144 * btrace.h (btrace_is_empty): New.
12145 * record-btrace.c (require_btrace, record_btrace_info): Call
12148 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12150 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12151 Support delta reads.
12152 (linux_disable_btrace): Change return type.
12153 * common/linux-btrace.h (linux_read_btrace): Change parameters
12154 and return type to allow error reporting. Update users.
12155 (linux_disable_btrace): Change return type. Update users.
12156 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12158 (btrace_error): New.
12159 (btrace_block) <begin>: Comment on BEGIN == 0.
12160 * btrace.c (btrace_compute_ftrace): Start from the end of
12162 (btrace_stitch_trace, btrace_clear_history): New.
12163 (btrace_fetch): Read delta trace, return if replaying.
12164 (btrace_clear): Move clear history code to btrace_clear_history.
12165 (parse_xml_btrace): Throw an error if parsing failed.
12166 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12167 and return type to allow error reporting.
12168 (target_read_btrace): Change parameters and return type to allow
12170 * target.c (target_read_btrace): Update.
12171 * remote.c (remote_read_btrace): Support delta reads. Pass
12173 * NEWS: Announce it.
12175 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12177 * record.h (record_btrace_frame_unwind)
12178 (record_btrace_tailcall_frame_unwind): New declarations.
12179 * dwarf2-frame: Include record.h
12180 (dwarf2_frame_cfa): Throw an error for btrace frames.
12181 * record-btrace.c: Include hashtab.h.
12182 (btrace_get_bfun_name): New.
12183 (btrace_call_history): Call btrace_get_bfun_name.
12184 (struct btrace_frame_cache): New.
12186 (bfcache_hash, bfcache_eq, bfcache_new): New.
12187 (btrace_get_frame_function): New.
12188 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12189 (record_btrace_frame_this_id): Compute own id.
12190 (record_btrace_frame_prev_register): Provide PC, throw_error
12191 for all other registers.
12192 (record_btrace_frame_sniffer): Detect btrace frames.
12193 (record_btrace_tailcall_frame_sniffer): New.
12194 (record_btrace_frame_dealloc_cache): New.
12195 (record_btrace_frame_unwind): Add new functions.
12196 (record_btrace_tailcall_frame_unwind): New.
12197 (_initialize_record_btrace): Allocate cache.
12198 * btrace.c (btrace_clear): Call reinit_frame_cache.
12199 * NEWS: Announce it.
12201 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12203 * record-btrace.c (record_btrace_set_replay)
12204 (record_btrace_goto_begin, record_btrace_goto_end)
12205 (record_btrace_goto): New.
12206 (init_record_btrace_ops): Initialize them.
12207 * NEWS: Announce it.
12209 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12211 * record-btrace.c (record_btrace_find_new_threads)
12212 (record_btrace_thread_alive): New.
12213 (init_record_btrace_ops): Initialize to_find_new_threads and
12216 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12218 * record-btrace.c (record_btrace_resume): New.
12219 (record_btrace_wait): New.
12220 (init_record_btrace_ops): Initialize to_wait and to_resume.
12222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12224 * record-btrace.c (record_btrace_xfer_partial)
12225 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12226 (record_btrace_allow_memory_access): New.
12227 (init_record_btrace_ops): Initialize new methods.
12228 * target.c (raw_memory_xfer_partial): Bail out if target reports
12229 that this memory is not available.
12231 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12233 * target.h (target_ops) <to_insert_breakpoint>
12234 <to_remove_breakpoint>: Add target_ops parameter.
12235 (forward_target_insert_breakpoint): New.
12236 (forward_target_remove_breakpoint): New.
12237 (memory_remove_breakpoint, memory_insert_breakpoint):
12238 Add target_ops parameter.
12239 * target.c (target_insert_breakpoint): Split into this and ...
12240 (forward_target_insert_breakpoint): ... this.
12241 (target_remove_breakpoint): Split into this and ...
12242 (forward_target_remove_breakpoint): ... this.
12243 (debug_to_insert_breakpoint): Add target_ops parameter.
12244 Call forward_target_insert_breakpoint.
12245 (debug_to_remove_breakpoint): Add target_ops parameter.
12246 Call forward_target_remove_breakpoint.
12247 (update_current_target): Do not inherit or default to_insert_breakpoint
12248 and to_remove_breakpoint.
12249 * corelow.c (ignore): Add target_ops parameter.
12250 * exec.c (ignore): Add target_ops parameter.
12251 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12252 Add target_ops parameter.
12253 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12254 Add target_ops parameter.
12255 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12256 Add target_ops parameter.
12257 * record-full.c (record_full_beneath_to_insert_breakpoint)
12258 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12259 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12260 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12261 (record_full_core_remove_breakpoint): Add target_ops parameter.
12263 (record_full_beneath_to_insert_breakpoint_ops)
12264 (record_full_beneath_to_remove_breakpoint_ops)
12265 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12266 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12267 tmp_to_remove_breakpoint_ops,
12268 record_full_beneath_to_insert_breakpoint_ops, and
12269 record_full_beneath_to_remove_breakpoint_ops.
12270 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12271 (m32r_remove_breakpoint): Add target_ops parameter.
12272 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12273 Add target_ops parameter.
12274 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12275 Add target_ops parameter.
12277 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12278 Markus Metzger <markus.t.metzger@intel.com>
12280 * record-btrace.c: Include frame-unwind.h.
12281 (record_btrace_frame_unwind_stop_reason)
12282 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12283 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12285 (init_record_btrace_ops): Install it.
12287 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12289 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12292 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12294 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12297 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12299 * frame-unwind.c: Include target.h.
12300 (frame_unwind_try_unwinder): New function with code from ...
12301 (frame_unwind_find_by_frame): ... here. New variable
12302 unwinder_from_target, call also target_get_unwinder)
12303 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12304 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12305 * target.h (struct target_ops): New fields to_get_unwinder and
12306 to_get_tailcall_unwinder.
12307 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12309 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12311 * record-btrace.c (record_btrace_fetch_registers)
12312 (record_btrace_store_registers)
12313 (record_btrace_to_prepare_to_store): New.
12314 (init_record_btrace_ops): Add the above.
12316 2014-01-16 Tom Tromey <tromey@redhat.com>
12318 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12319 * target.h (struct target_ops) <to_prepare_to_store>: Add
12321 (target_prepare_to_store): Add argument.
12322 * target.c (debug_to_prepare_to_store): Add argument.
12323 (update_current_target): Update.
12324 * remote.c (remote_prepare_to_store): Add 'self' argument.
12325 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12326 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12327 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12328 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12330 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12331 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12332 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12333 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12334 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12336 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12338 * btrace.h (replay) <replay>: New.
12339 (btrace_is_replaying): New.
12340 * btrace.c (btrace_clear): Free replay iterator.
12341 (btrace_is_replaying): New.
12342 * record-btrace.c (record_btrace_is_replaying): New.
12343 (record_btrace_info): Print insn number if replaying.
12344 (record_btrace_insn_history): Start at replay position.
12345 (record_btrace_call_history): Start at replay position.
12346 (init_record_btrace_ops): Init to_record_is_replaying.
12348 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12350 * record-btrace.c (record_btrace_insn_history_range): Include
12352 (record_btrace_insn_history_from): Adjust range.
12353 (record_btrace_call_history_range): Include
12355 (record_btrace_call_history_from): Adjust range.
12356 * NEWS: Announce changes.
12358 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12360 * record.h (enum record_print_flag)
12361 <record_print_indent_calls>: New.
12362 * record.c (get_call_history_modifiers): Recognize /c modifier.
12363 (_initialize_record): Document /c modifier.
12364 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12365 Reorder fields. Optionally indent the function name. Update
12367 * NEWS: Announce changes.
12369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12371 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12375 * btrace.c (ftrace_new_function): Start counting at one.
12376 * record-btrace.c (record_btrace_info): Adjust number of calls
12378 * NEWS: Announce it.
12380 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12382 * record-btrace.c (btrace_call_history_insn_range): Print
12383 insn range as [begin, end].
12385 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12387 * btrace.h (struct btrace_func_link): New.
12388 (enum btrace_function_flag): New.
12389 (struct btrace_inst): Rename to ...
12390 (struct btrace_insn): ...this. Update all users.
12391 (struct btrace_func) <ibegin, iend>: Remove.
12392 (struct btrace_func_link): New.
12393 (struct btrace_func): Rename to ...
12394 (struct btrace_function): ...this. Update all users.
12395 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12396 (number, level, flags>: New.
12397 (struct btrace_insn_iterator): Rename to ...
12398 (struct btrace_insn_history): ...this.
12400 (struct btrace_insn_iterator, btrace_call_iterator): New.
12401 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12402 (struct btrace_target_info) <begin, end, level>
12403 <insn_history, call_history>: New.
12404 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12405 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12406 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12407 (btrace_call_number, btrace_call_begin, btrace_call_end)
12408 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12409 (btrace_find_function_by_number, btrace_set_insn_history)
12410 (btrace_set_call_history): New.
12411 * btrace.c (btrace_init_insn_iterator)
12412 (btrace_init_func_iterator, compute_itrace): Remove.
12413 (ftrace_print_function_name, ftrace_print_filename)
12414 (ftrace_skip_file): Change
12415 parameter to const.
12416 (ftrace_init_func): Remove.
12417 (ftrace_debug): Use new btrace_function fields.
12418 (ftrace_function_switched): Also consider gaining and
12419 losing symbol information).
12420 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12421 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12422 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12424 (ftrace_new_function): Move. Remove debug print.
12425 (ftrace_update_lines, ftrace_update_insns): New.
12426 (ftrace_update_function): Check for call, ret, and jump.
12427 (compute_ftrace): Renamed to ...
12428 (btrace_compute_ftrace): ...this. Rewritten to compute call
12430 (btrace_fetch, btrace_clear): Updated.
12431 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12432 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12433 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12434 (btrace_call_number, btrace_call_begin, btrace_call_end)
12435 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12436 (btrace_find_function_by_number, btrace_set_insn_history)
12437 (btrace_set_call_history): New.
12438 * record-btrace.c (require_btrace): Use new btrace thread
12440 (record_btrace_info, btrace_insn_history)
12441 (record_btrace_insn_history, record_btrace_insn_history_range):
12442 Use new btrace thread info fields and new iterator.
12443 (btrace_func_history_src_line): Rename to ...
12444 (btrace_call_history_src_line): ...this. Use new btrace
12445 thread info fields.
12446 (btrace_func_history): Rename to ...
12447 (btrace_call_history): ...this. Use new btrace thread info
12448 fields and new iterator.
12449 (record_btrace_call_history, record_btrace_call_history_range):
12450 Use new btrace thread info fields and new iterator.
12452 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12454 * frame.h (frame_id_build_unavailable_stack_special): New.
12455 * frame.c (frame_id_build_unavailable_stack_special): New.
12457 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12459 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12460 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12461 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12463 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12464 (i386_insn_is_jump, i386_jmp_p): New.
12465 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12466 insn_is_jump to gdbarch.
12467 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12468 * gdbarch.h: Regenerated.
12469 * gdbarch.c: Regenerated.
12470 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12471 (default_insn_is_jump): New.
12472 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12473 (default_insn_is_jump): New.
12475 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12477 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12479 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12480 (btrace_read_type) <btrace_read_new>: Change to ...
12481 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12483 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12485 * common/linux-btrace.c (linux_read_btrace): Free trace from
12486 previous iteration.
12488 2014-01-15 Doug Evans <dje@google.com>
12490 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12493 2014-01-15 Tom Tromey <tromey@redhat.com>
12495 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12496 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12497 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12498 (set_objfile_main_name): New function.
12499 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12500 language_of_main>: New fields.
12501 (set_objfile_main_name): Declare.
12502 * symtab.c (find_main_name): Loop over objfiles to find the main
12504 (set_main_name): Now static.
12505 (get_main_info): Add comment.
12506 * symtab.h (set_main_name): Don't declare.
12508 2014-01-15 Tom Tromey <tromey@redhat.com>
12510 * symtab.c (main_progspace_key): New global.
12511 (struct main_info): New.
12512 (name_of_main, language_of_main): Remove.
12513 (get_main_info, main_info_cleanup): New function.
12514 (set_main_name, main_name, main_language): Use get_main_info.
12515 (_initialize_symtab): Initialize main_progspace_key.
12517 2014-01-15 Tom Tromey <tromey@redhat.com>
12519 * dbxread.c (process_one_symbol): Update.
12520 * dwarf2read.c (read_partial_die): Update.
12521 * symfile.c (set_initial_language): Call main_language.
12522 * symtab.c (language_of_main): Now static.
12523 (set_main_name): Add 'lang' parameter.
12524 (find_main_name): Update.
12525 (main_language): New function.
12526 (symtab_observer_executable_changed): Update.
12527 * symtab.h (set_main_name): Update.
12528 (language_of_main): Remove.
12529 (main_language): Declare.
12531 2014-01-15 Tom Tromey <tromey@redhat.com>
12533 * symfile.c (init_entry_point_info): Use new "initialized" field.
12535 * objfiles.h (struct entry_point) <initialized>: New field.
12536 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12537 (struct objfile) <ei>: ...here. Remove.
12538 * objfiles.c (entry_point_address_query): Update.
12540 2014-01-15 Tom Tromey <tromey@redhat.com>
12542 * objfiles.c (entry_point_address_query): Relocate entry point
12544 (objfile_relocate1): Do not relocate entry point address.
12545 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12546 <the_bfd_section_index>: New field.
12547 * symfile.c (init_entry_point_info): Find the entry point's
12550 2014-01-15 Tom Tromey <tromey@redhat.com>
12552 * solib-frv.c (enable_break): Use entry_point_address_query.
12554 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12556 * NEWS: Add note on improved process record-replay on
12557 arm*-linux* targets.
12559 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12561 * arm-tdep.c (enum arm_record_result): New enum.
12562 (arm_record_unsupported_insn): New function.
12563 (arm_record_coproc_data_proc): Removed.
12564 (thumb2_record_ld_st_multiple): New function.
12565 (thumb2_record_ld_st_dual_ex_tbb): New function.
12566 (thumb2_record_data_proc_sreg_mimm): New function.
12567 (thumb2_record_ps_dest_generic): New function.
12568 (thumb2_record_branch_misc_cntrl): New function.
12569 (thumb2_record_str_single_data): New function.
12570 (thumb2_record_ld_mem_hints): New function.
12571 (thumb2_record_ld_word): New function.
12572 (thumb2_record_lmul_lmla_div): New function.
12573 (thumb2_record_decode_insn_handler): New function.
12574 (decode_insn): Add thumb32 instruction handlers.
12576 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12578 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12579 (struct arm_linux_record_tdep): Declare.
12580 (arm_canonicalize_syscall): New function.
12581 (arm_all_but_pc_registers_record): New function.
12582 (arm_linux_syscall_record): New function.
12583 (arm_linux_init_abi): Add syscall recording constructs.
12584 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12585 decoding. (arm_record_coproc_data_proc): Update arm syscall
12587 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12588 <arm_syscall_record>: New field.
12589 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12592 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12594 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12595 register for push instruction recording.
12597 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12599 * arm-tdep.c (thumb_record_misc): Update to correct logical
12600 error while recording ldm, ldmia and pop instructions.
12602 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12604 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12606 2014-01-15 Pedro Alves <palves@redhat.com>
12608 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12609 (go32_resume, go32_fetch_registers, store_register)
12610 (go32_store_registers, go32_prepare_to_store)
12611 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12612 (go32_create_inferior, go32_can_run, go32_terminal_init)
12613 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12616 2014-01-15 Tom Tromey <tromey@redhat.com>
12618 * target.h (async_callback_ftype): New typedef.
12619 (struct target_ops) <to_async>: Use it.
12621 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12623 * python/py-value.c (get_field_type): Remove unnecessary curly
12624 braces for single-statement if block.
12626 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12628 * python/py-type.c (convert_field): Add missing empty line
12629 after declarations.
12631 2014-01-14 Doug Evans <dje@google.com>
12633 * symfile.h (expand_symtabs_matching): Renamed from
12634 expand_partial_symbol_names. Update prototype.
12635 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12636 * symfile.c (expand_symtabs_matching): Renamed from
12637 expand_partial_symbol_names. New args file_matcher, kind.
12638 Rename arg fun to symbol_matcher.
12639 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12640 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12641 ada_expand_partial_symbol_name.
12642 (ada_make_symbol_completion_list): Update to call
12643 expand_symtabs_matching.
12644 (ada_add_global_exceptions): Call expand_symtabs_matching.
12645 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12646 call map_symbol_filenames.
12647 * symtab.c (sources_info): Update to call map_symbol_filenames.
12648 (search_symbols): Call expand_symtabs_matching.
12649 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12650 (default_make_symbol_completion_list_break_on): Update to call
12651 expand_symtabs_matching.
12652 (make_source_files_completion_list): Update to call
12653 map_symbol_filenames.
12655 2014-01-14 Doug Evans <dje@google.com>
12657 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12658 (expand_symtabs_symbol_matcher_ftype): New typedef.
12659 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12660 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12661 * symfile.c (expand_partial_symbol_names): Update to use
12662 expand_symtabs_symbol_matcher_ftype.
12663 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12664 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12665 Arg name_matcher renamed to symbol_matcher.
12666 * psymtab.c (recursively_search_psymtabs): Update to use
12667 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12669 (expand_symtabs_matching_via_partial): Update to use
12670 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12671 Arg name_matcher renamed to symbol_matcher.
12673 2014-01-14 Doug Evans <dje@google.com>
12675 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12676 (map_partial_symbol_filenames): Ditto.
12677 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12678 (map_partial_symbol_filenames): Ditto.
12679 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12680 (map_partial_symbol_filenames): Ditto.
12681 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12682 (map_partial_symbol_filenames): Ditto.
12683 * symtab.c: Delete #include "psymtab.h".
12685 2014-01-14 Pedro Alves <palves@redhat.com>
12686 Tom Tromey <tromey@redhat.com>
12688 * infrun.c (use_displaced_stepping): Use find_record_target
12689 instead of RECORD_IS_USED.
12690 (adjust_pc_after_break): Use record_full_is_used instead of
12692 * record-btrace.c (record_btrace_open): Call record_preopen
12693 instead of checking RECORD_IS_USED.
12694 * record-full.c (record_full_shortname)
12695 (record_full_core_shortname): New globals.
12696 (record_full_is_used): New function.
12697 (find_full_open): Call record_preopen instead of checking
12699 (init_record_full_ops): Set the target's shortname to
12700 record_full_shortname.
12701 (init_record_full_core_ops): Set the target's shortname to
12702 record_full_core_shortname.
12703 * record-full.h (record_full_is_used): Declare.
12704 * record.c (find_record_target): Make extern.
12705 (record_preopen): New function.
12706 * record.h (RECORD_IS_USED): Delete macro.
12707 (find_record_target, record_preopen): Declare functions.
12709 2014-01-14 Yao Qi <yao@codesourcery.com>
12711 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12712 'len''s type to ULONGEST.
12713 (core_xfer_shared_libraries_aix): Likewise.
12714 * gdbarch.c, gdbarch.h: Regenerated.
12715 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12716 Change type of 'len' to ULONGEST.
12717 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12718 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12720 2014-01-14 Yao Qi <yao@codesourcery.com>
12722 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12723 type of 'len' to ULONGEST.
12724 (linux_xfer_osdata_processgroups): Likewise.
12725 (linux_xfer_osdata_threads): Likewise.
12726 (linux_xfer_osdata_fds): Likewise.
12727 (linux_xfer_osdata_isockets): Likewise.
12728 (linux_xfer_osdata_shm): Likewise.
12729 (linux_xfer_osdata_sem): Likewise.
12730 (linux_xfer_osdata_msg): Likewise.
12731 (linux_common_xfer_osdata): Likewise.
12732 (struct osdata_type) <getter>: Likewise.
12733 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12736 2014-01-14 Yao Qi <yao@codesourcery.com>
12738 * target.h (target_xfer_partial_ftype): Update.
12739 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12741 * aix-thread.c (aix_thread_xfer_partial): Change type of
12742 argument 'len' to ULONGEST.
12743 * auxv.c (procfs_xfer_auxv): Likewise.
12744 (ld_so_xfer_auxv): Likewise.
12745 (memory_xfer_auxv): Likewise.
12746 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12747 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12748 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12749 * corelow.c (core_xfer_partial): Likewise.
12750 * ctf.c (ctf_xfer_partial): Likewise.
12751 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12753 (darwin_read_dyld_info): Likewise.
12754 (darwin_xfer_partial): Likewise.
12755 * exec.c (section_table_xfer_memory_partial): Likewise.
12756 (exec_xfer_partial): Likewise.
12757 * exec.h (section_table_xfer_memory_partial): Update
12759 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12760 instead of plongest.
12761 (gnu_xfer_partial): Likewise.
12762 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12763 (ia64_hpux_xfer_solib_got): Likewise.
12764 (ia64_hpux_xfer_partial): Likewise.
12765 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12766 * inf-ptrace.c (inf_ptrace_xfer_partial):
12767 * inf-ttrace.c (inf_ttrace_xfer_partial):
12768 * linux-nat.c (linux_xfer_siginfo): Likewise.
12769 (linux_nat_xfer_partial): Likewise.
12770 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12771 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12772 * monitor.c (monitor_xfer_memory): Likewise.
12773 (monitor_xfer_partial): Likewise.
12774 * procfs.c (procfs_xfer_partial): Likewise.
12775 * record-full.c (record_full_xfer_partial): Likewise.
12776 (record_full_core_xfer_partial): Likewise.
12777 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12778 instead of plongest.
12779 (gdbsim_xfer_partial): Likewise.
12780 * remote.c (remote_xfer_partial): Likewise.
12781 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12782 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12784 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12785 (rs6000_xfer_shared_libraries): Likewise.
12786 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12787 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12788 (sparc_xfer_partial): Likewise.
12789 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12790 (spu_xfer_partial): Likewise.
12791 * spu-multiarch.c (spu_xfer_partial): Likewise.
12792 * target.c (target_read_live_memory): Likewise.
12793 (memory_xfer_live_readonly_partial): Likewise.
12794 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12795 (target_xfer_partial, default_xfer_partial): Likewise.
12796 (current_xfer_partial): Likewise.
12797 * tracepoint.c (tfile_xfer_partial): Likewise.
12798 * windows-nat.c (windows_xfer_memory): Likewise. Call
12799 pulongest instead of plongest.
12800 (windows_xfer_partial): Likewise.
12801 (windows_xfer_shared_libraries): Likewise.
12803 2014-01-14 Yao Qi <yao@codesourcery.com>
12805 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12806 target_xfer_partial_ftype.
12808 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12812 * valops.c (value_struct_elt_bitpos): New function
12813 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12814 object to 'None' if the field name is an empty string ("").
12815 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12816 attribute to look for a field when 'name' is 'None'.
12817 (get_field_type): New function
12819 2014-01-13 Doug Evans <dje@google.com>
12822 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12823 (try_open_dwop_file): Ditto.
12824 * gdb_bfd.c: #include "vec.h".
12825 (bfdp): New typedef.
12826 (struct gdb_bfd_data): New member included_bfds.
12827 (gdb_bfd_unref): Unref all included bfds.
12828 (gdb_bfd_record_inclusion): New function.
12829 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12831 2014-01-13 Tom Tromey <tromey@redhat.com>
12833 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12835 2014-01-13 Tom Tromey <tromey@redhat.com>
12837 * defs.h (use_windows): Remove.
12838 * gdb.c (main): Update.
12839 * main.c (captured_main, gdb_main): Update.
12840 * main.h (struct captured_main_args) <use_windows>: Remove.
12841 * top.c (use_windows): Remove.
12843 2014-01-13 Tom Tromey <tromey@redhat.com>
12845 * defs.h (deprecated_flush_hook): Remove.
12847 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12850 * linux-thread-db.c (try_thread_db_load): Add parameter
12851 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12852 (try_thread_db_load_from_pdir_1): Move it there from here.
12853 (try_thread_db_load_from_sdir): Update caller.
12854 (try_thread_db_load_from_dir): Move it there from here.
12856 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12858 * regformats/regdat.sh: Always rewrite the register file.
12860 2014-01-13 Pedro Alves <palves@redhat.com>
12862 * Makefile.in (CHECK_HEADERS): New variable.
12863 (check-headers:): New rule.
12865 2014-01-13 Tom Tromey <tromey@redhat.com>
12867 * cli/cli-setshow.c (do_set_command): Update.
12868 * defs.h (deprecated_set_hook): Remove.
12869 * top.c (deprecated_set_hook): Remove.
12871 2014-01-13 Pedro Alves <palves@redhat.com>
12873 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12874 the tracepoint if the PC is a pseudo-register.
12876 2014-01-13 Tom Tromey <tromey@redhat.com>
12878 * defs.h (XCALLOC): Remove.
12879 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12880 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12881 * dwarf2loc.c (allocate_piece_closure): Likewise.
12882 * elfread.c (elf_symfile_segments): Likewise.
12883 (elf_symfile_segments): Likewise.
12884 * gdbtypes.c (copy_type_recursive): Likewise.
12885 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12886 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12887 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12889 * mt-tdep.c (mt_gdbarch_init): Likewise.
12890 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12892 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12893 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12894 * registry.c (registry_alloc_data): Likewise.
12895 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12896 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12897 * serial.c (serial_fdopen_ops): Likewise.
12898 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12900 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12901 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12904 2014-01-13 Tom Tromey <tromey@redhat.com>
12906 * defs.h (XMALLOC): Remove.
12907 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12908 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12909 * cli-out.c (struct ui_out *): Likewise.
12910 * cli/cli-dump.c (add_dump_command): Likewise.
12911 (add_dump_command): Likewise.
12912 * complaints.c (get_complaints): Likewise.
12913 (find_complaint): Likewise.
12914 * dwarf2-frame.c (execute_cfa_program): Likewise.
12915 * dwarf2read.c (abbrev_table_read_table): Likewise.
12916 * gdbarch.sh: Likewise.
12917 * gdbarch.c: Rebuild.
12918 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12919 * interps.c (interp_new): Likewise.
12920 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12921 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12922 * mi/mi-console.c (mi_console_file_new): Likewise.
12923 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12924 * mi/mi-out.c (mi_out_new): Likewise.
12925 * mi/mi-parse.c (mi_parse): Likewise.
12926 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12927 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12928 * observer.c (xalloc_observer_list_node): Likewise.
12929 * regcache.c (regcache_xmalloc_1): Likewise.
12930 * reggroups.c (reggroup_new): Likewise.
12931 (_initialize_reggroup): Likewise.
12932 * registry.c (register_data_with_cleanup): Likewise.
12933 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12934 * ser-base.c (serial_ttystate): Likewise.
12935 * ser-mingw.c (make_pipe_state): Likewise.
12936 * ser-pipe.c (pipe_open): Likewise.
12937 * serial.c (serial_open): Likewise.
12938 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12939 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12940 (tui_alloc_win_info): Likewise.
12941 (tui_add_content_elements): Likewise.
12942 * tui/tui-file.c (tui_file_new): Likewise.
12943 * tui/tui-out.c (tui_out_new): Likewise.
12944 * ui-file.c (mem_file_new): Likewise.
12945 * ui-out.c (push_level): Likewise.
12946 (make_cleanup_ui_out_end): Likewise.
12947 (append_header_to_list): Likewise.
12948 (ui_out_new): Likewise.
12949 * user-regs.c (user_reg_add_builtin): Likewise.
12951 2014-01-13 Tom Tromey <tromey@redhat.com>
12953 * defs.h (XZALLOC): Remove.
12954 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12955 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12956 (get_ada_tasks_inferior_data): Likewise.
12957 * auto-load.c (get_auto_load_pspace_data): Likewise.
12958 * auxv.c (get_auxv_inferior_data): Likewise.
12959 * bfd-target.c (target_bfd_reopen): Likewise.
12960 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12961 (deprecated_insert_raw_breakpoint): Likewise.
12962 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12963 * corelow.c (core_open): Likewise.
12964 * darwin-nat.c (darwin_check_new_threads): Likewise.
12965 (darwin_attach_pid): Likewise.
12966 * dummy-frame.c (dummy_frame_push): Likewise.
12967 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12968 * dwarf2loc.c (allocate_piece_closure): Likewise.
12969 * elfread.c (elf_symfile_segments): Likewise.
12970 * eval.c (ptrmath_type_p): Likewise.
12971 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12972 * gdbtypes.c (alloc_type_arch): Likewise.
12973 (alloc_type_instance): Likewise.
12974 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12975 * inf-child.c (inf_child_can_use_agent): Likewise.
12976 * inflow.c (get_inflow_inferior_data): Likewise.
12977 * infrun.c (save_infcall_suspend_state): Likewise.
12978 * jit.c (jit_reader_load): Likewise.
12979 (get_jit_objfile_data): Likewise.
12980 (get_jit_program_space_data): Likewise.
12981 (jit_object_open_impl): Likewise.
12982 (jit_symtab_open_impl): Likewise.
12983 (jit_block_open_impl): Likewise.
12984 (jit_frame_sniffer): Likewise.
12985 * linux-fork.c (add_fork): Likewise.
12986 * maint.c (make_command_stats_cleanup): Likewise.
12987 * objfiles.c (get_objfile_pspace_data): Likewise.
12988 * opencl-lang.c (struct lval_closure): Likewise.
12989 * osdata.c (osdata_start_osdata): Likewise.
12990 * progspace.c (new_address_space): Likewise.
12991 (add_program_space): Likewise.
12992 * remote-sim.c (get_sim_inferior_data): Likewise.
12993 * sh-tdep.c (sh_gdbarch_init): Likewise.
12994 * skip.c (Ignore): Likewise.
12995 (skip_delete_command): Likewise.
12996 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12997 (library_list_start_library): Likewise.
12998 (solib_aix_current_sos): Likewise.
12999 * solib-darwin.c (get_darwin_info): Likewise.
13000 (darwin_current_sos): Likewise.
13001 * solib-dsbt.c (get_dsbt_info): Likewise.
13002 * solib-ia64-hpux.c (new_so_list): Likewise.
13003 (ia64_hpux_get_solib_linkage_addr): Likewise.
13004 * solib-spu.c (append_ocl_sos): Likewise.
13005 (spu_current_sos): Likewise.
13006 * solib-svr4.c (get_svr4_info): Likewise.
13007 (svr4_keep_data_in_core): Likewise.
13008 (library_list_start_library): Likewise.
13009 (svr4_default_sos): Likewise.
13010 (svr4_read_so_list): Likewise.
13011 * solib-target.c (library_list_start_library): Likewise.
13012 (solib_target_current_sos): Likewise.
13013 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13014 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13015 * symfile.c (default_symfile_segments): Likewise.
13016 * target-descriptions.c (tdesc_data_init): Likewise.
13017 (tdesc_create_reg): Likewise.
13018 (struct tdesc_type *): Likewise.
13019 (tdesc_create_vector): Likewise.
13020 (tdesc_set_struct_size): Likewise.
13021 (struct tdesc_type *): Likewise.
13022 (tdesc_free_feature): Likewise.
13023 (tdesc_create_feature): Likewise.
13024 * windows-nat.c (windows_add_thread): Likewise.
13025 (windows_make_so): Likewise.
13026 * xml-support.c (gdb_xml_body_text): Likewise.
13027 (gdb_xml_create_parser_and_cleanup): Likewise.
13028 (xml_process_xincludes): Likewise.
13029 * xml-syscall.c (allocate_syscalls_info): Likewise.
13030 (syscall_create_syscall_desc): Likewise.
13032 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13034 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13035 function, with code from i386_stap_parse_special_token.
13036 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13037 (i386_stap_parse_special_token): Move code to the two functions
13038 above; simplify it.
13040 2014-01-09 Pedro Alves <palves@redhat.com>
13041 Hui Zhu <hui@codesourcery.com>
13044 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13045 bp_err_string. Don't mark the location shlib_disabled if the
13046 error thrown wasn't a generic or memory error. Catch errors
13047 thrown while inserting breakpoints in overlayed code. Output
13048 error message of software breakpoints.
13049 * remote.c (remote_insert_breakpoint): If this breakpoint has
13050 target-side commands but this stub doesn't support Z0 packets,
13051 throw NOT_SUPPORTED_ERROR error.
13052 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13053 * target.h (target_insert_breakpoint): Extend comment.
13054 (target_insert_hw_breakpoint): Add comment.
13056 2014-01-08 Pedro Alves <palves@redhat.com>
13058 * remote.c (remote_add_thread): Add threads silently if starting
13060 (remote_notice_new_inferior): If in all-stop, and starting up,
13061 don't call notice_new_inferior.
13062 (get_current_thread): New function, factored out from ...
13063 (add_current_inferior_and_thread): ... this. Adjust.
13064 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13065 found any thread, then select the remote's current thread as GDB's
13066 current thread too.
13068 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13070 * NEWS: Create a new section for the next release branch.
13071 Rename the section of the current branch, now that it has
13074 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13076 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13077 * version.in: Bump version to 7.7.50.DATE-cvs.
13079 2014-01-08 Yao Qi <yao@codesourcery.com>
13081 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13082 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13083 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13085 2014-01-08 Yao Qi <yao@codesourcery.com>
13087 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13088 return value of bfd_get_filename to symbol_file_add_from_bfd.
13090 2014-01-08 Pierre Muller <muller@sourceware.org>
13093 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13094 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13095 to prim_record_mininal_symbol_and_info.
13096 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13097 in call to prim_record_minimal_symbol_and_info.
13098 (read_pe_exported_syms): Set index field of section_data.
13100 2014-01-07 Andrew Pinski <apinski@cavium.com>
13102 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13103 * features/aarch64.c: Regenerate.
13105 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13107 * target.c (return_null): Define.
13108 (update_current_target): Use it instead of return_zero for
13109 functions that return a pointer.
13111 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13113 * source.c (add_path): Fix check for duplicated paths in the previously
13116 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13118 * ada-lang.c: Remove duplicated include statements.
13119 * alphabsd-nat.c: Ditto.
13120 * amd64-darwin-tdep.c: Ditto.
13121 * amd64fbsd-nat.c: Ditto.
13122 * auto-load.c: Ditto.
13124 * breakpoint.c: Ditto.
13125 * dbxread.c: Ditto.
13126 * fork-child.c: Ditto.
13127 * gdb_usleep.c: Ditto.
13128 * i386-darwin-tdep.c: Ditto.
13129 * i386fbsd-nat.c: Ditto.
13131 * inferior.c: Ditto.
13132 * jv-lang.c: Ditto.
13133 * linux-nat.c: Ditto.
13134 * linux-tdep.c: Ditto.
13135 * m68kbsd-nat.c: Ditto.
13136 * m68klinux-nat.c: Ditto.
13137 * microblaze-tdep.c: Ditto.
13138 * mips-linux-tdep.c: Ditto.
13139 * mn10300-tdep.c: Ditto.
13140 * nto-tdep.c: Ditto.
13141 * opencl-lang.c: Ditto.
13143 * printcmd.c: Ditto.
13144 * regcache.c: Ditto.
13145 * remote-m32r-sdi.c: Ditto.
13147 * symfile.c: Ditto.
13149 * tilegx-linux-nat.c: Ditto.
13150 * tilegx-tdep.c: Ditto.
13151 * tracepoint.c: Ditto.
13153 * vaxbsd-nat.c: Ditto.
13154 * windows-nat.c: Ditto.
13155 * xtensa-tdep.c: Ditto.
13157 2014-01-07 Yao Qi <yao@codesourcery.com>
13159 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13161 2014-01-07 Yao Qi <yao@codesourcery.com>
13162 Joel Brobecker <brobecker@adacore.com>
13164 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13165 (pdc_write_regs): Likewise.
13166 (fetch_regs_kernel_thread): Likewise.
13167 (store_regs_kernel_thread): Likewise.
13169 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13171 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13172 tagged type objects to their actual type.
13174 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13176 * ada-valprint.c (print_field_values): Add "language" parameter.
13177 Update calls to print_field_values and print_variant_part.
13178 Pass new parameter "language" in call to val_print instead
13179 of "current_language". Replace call to ada_val_print by call
13181 (print_variant_part): Add "language" parameter.
13182 (ada_val_print_struct_union): Update call to print_field_values.
13184 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13186 * ada-valprint.c (ui_memcpy): Delete.
13187 (ada_print_floating): Update documentation. Add empty line
13188 between between function documentation and implementation.
13189 Delete variable "buffer". Use ui_file_xstrdup in place of
13190 ui_file_put. Minor adjustments following this change.
13192 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13194 * ada-valprint.c (ada_val_print_string): New function,
13195 extracted from ada_val_print_array.
13196 (ada_val_print_array): Replace extracted code by call
13197 to ada_val_print_string followed by a return. Move
13198 "else" branch to the function's top block.
13200 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13202 * ada-valprint.c (ada_val_print_array): Move implementation
13203 down. Rename parameter "offset" and "val" into "offset_aligned"
13204 and "original_value" respectively. Add parameter "offset".
13206 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13208 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13209 re-organizing the code. Change the "???" message printed
13210 when target type is a TYPE_CODE_UNDEF into
13211 "<ref to undefined type>".
13213 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13215 * ada-valprint.c (print_record): Delete, implementation inlined...
13216 (ada_val_print_struct_union): ... here. Remove call to
13217 ada_check_typedef in inlined implementation.
13219 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13221 * ada-valprint.c (ada_val_print_gnat_array): New function,
13222 extracted from ada_val_print_1;
13223 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13224 (ada_val_print_flt, ada_val_print_struct_union)
13225 (ada_val_print_ref): Likewise.
13226 (ada_val_print_1): Delete variables i and elttype.
13227 Replace extracted-out code by call to corresponding
13230 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13232 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13234 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13236 * ada-valprint.c (ada_val_print_1): Replace calls to
13237 ada_val_print_1 by calls to val_print.
13239 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13241 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13242 Update calls to self accordingly. Replace calls to c_val_print
13243 by calls to val_print.
13245 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13247 * ada-valprint.c (print_record): Delete declaration.
13248 (adjust_type_signedness, ada_val_print_1): Likewise.
13249 (ada_val_print): Move function implementation down.
13250 (print_variant_part, print_field_values, print_record):
13251 Move function implementation up.
13253 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13255 * python/py-type.c (typy_get_name): New function.
13256 (type_object_getset): Add entry for attribute "name".
13257 * NEWS: Add entry mentioning this new attribute.
13259 2014-01-07 Yao Qi <yao@codesourcery.com>
13261 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13264 2014-01-07 Yao Qi <yao@codesourcery.com>
13266 * gnu-nat.c (info_port_rights): Add qualifier const to
13269 2014-01-07 Yao Qi <yao@codesourcery.com>
13271 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13273 2014-01-07 Yao Qi <yao@codesourcery.com>
13275 * gnu-nat.c (make_inf) Update declaration.
13276 (make_inf): Make it static.
13277 (inf_set_traced): Likewise.
13278 (inf_port_to_thread, inf_task_died_status): Likewise.
13280 2014-01-07 Yao Qi <yao@codesourcery.com>
13282 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13284 2014-01-07 Yao Qi <yao@codesourcery.com>
13286 * gnu-nat.c (_initialize_gnu_nat): Declare.
13288 2014-01-07 Yao Qi <yao@codesourcery.com>
13290 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13292 (struct gdbarch_info) <byte_order>: Change type to
13294 <byte_order_for_code>: Likewise.
13295 * gdbarch.c, gdbarch.h: Regenerated.
13297 2014-01-06 Sasha Smundak <asmundak@google.com>
13299 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13301 2014-01-06 Tom Tromey <tromey@redhat.com>
13303 * doublest.c (convert_doublest_to_floatformat): Use const, not
13305 * somread.c (som_symtab_read): Likewise.
13307 2014-01-07 Hui Zhu <hui@codesourcery.com>
13309 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13310 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13311 (gdb_bfd_fopen): Ditto.
13312 (gdb_bfd_openr): Ditto.
13313 (gdb_bfd_openw): Ditto.
13314 (gdb_bfd_openr_iovec): Ditto.
13315 (gdb_bfd_fdopenr): Ditto.
13316 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13317 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13319 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13321 * symfile-mem.c (symbol_file_add_from_memory): Removed
13322 gdb_bfd_stash_filename.
13324 2014-01-03 Doug Evans <dje@google.com>
13326 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13329 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13331 Update year range in copyright notice of all files.
13333 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13335 * top.c (print_gdb_version): Set copyright year to 2014.
13337 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13339 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13341 For older changes see ChangeLog-2013.
13347 version-control: never