1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
4 (amd64obsd_iterate_over_regset_sections): New.
5 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
6 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
9 regset_from_core_section initialization.
10 * i386-tdep.c (i386_regset_from_core_section): Remove.
11 (i386_iterate_over_regset_sections): New.
12 (i386_gdbarch_init): Adjust gdbarch initialization.
13 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
14 (i386_iterate_over_regset_sections): New prototype.
15 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
17 (i386obsd_aout_iterate_over_regset_sections): New.
18 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
19 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
21 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
22 (amd64fbsd_init_abi): Call fbsd_init_abi.
23 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
24 (i386fbsd4_init_abi): Call fbsd_init_abi.
25 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
26 target method 'make_corefile_notes'.
27 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
29 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
31 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
32 (hppa_hpux_iterate_over_regset_sections): New.
33 (hppa_hpux_init_abi): Adjust gdbarch initialization.
34 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
35 (hppa_linux_iterate_over_regset_sections): New.
36 (hppa_linux_init_abi): Adjust.
37 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
38 (hppanbsd_iterate_over_regset_sections): New.
39 (hppanbsd_init_abi): Adjust.
40 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
41 (hppaobsd_iterate_over_regset_sections): New.
42 (hppaobsd_init_abi): Adjust.
44 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
46 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
47 (frv_linux_iterate_over_regset_sections): New.
48 (frv_linux_init_abi): Adjust gdbarch initialization.
50 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
52 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
53 (armbsd_iterate_over_regset_sections): New prototype.
54 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
55 (armbsd_iterate_over_regset_sections): New.
56 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
59 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
61 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
62 (alpha_linux_iterate_over_regset_sections): New.
63 (alpha_linux_init_abi): Adjust gdbarch initialization.
64 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
66 (alphanbsd_iterate_over_regset_sections): New prototype.
68 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
70 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
72 (aarch64_linux_iterate_over_regset_sections): New.
73 (aarch64_linux_init_abi): Adjust gdbarch initialization.
75 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
77 * fbsd-tdep.c: New file.
78 * fbsd-tdep.h: New file.
79 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
80 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
81 (ALLDEPFILES): Add fbsd-tdep.c.
83 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
85 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
87 * gdbarch.h: Regenerate.
88 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
90 (get_core_register_section): Add parameter 'regset' and use it, if
91 set. Add parameter 'min_size' and verify the bfd section size
93 (get_core_registers_cb): Add parameter 'regset' and pass it to
94 get_core_register section. For the "standard" register sections
95 ".reg" and ".reg2", set an appropriate default for human_name.
96 (get_core_registers): Don't abort when the gdbarch has an iterator
97 but no regset_from_core_section. Add NULL/0 for parameters
98 'regset'/'min_size' in calls to get_core_register_section.
99 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
100 'regset' and use it instead of calling the
101 regset_from_core_section gdbarch method.
102 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
103 * i386-tdep.c (i386_supply_xstateregset)
104 (i386_collect_xstateregset, i386_xstateregset): Moved to
106 (i386_regset_from_core_section): Drop handling for .reg-xfp and
108 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
109 core file support only if the regset iterator hasn't been set.
110 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
111 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
112 Moved from i386-tdep.c and renamed to *_linux*.
113 (i386_linux_iterate_over_regset_sections): Add regset parameter to
114 each callback invocation. Allow any .reg-xstate size when reading
116 * amd64-tdep.c (amd64_supply_xstateregset)
117 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
119 (amd64_regset_from_core_section): Remove.
120 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
121 install an amd64-specific regset_from_core_section gdbarch method.
122 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
123 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
124 Moved from amd64-tdep.c and renamed to *_linux*.
125 (amd64_linux_iterate_over_regset_sections): Add regset parameter
126 to each callback invocation. Allow any .reg-xstate size when
127 reading from a core file.
128 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
129 (arm_linux_iterate_over_regset_sections): Add regset parameter to
130 each callback invocation.
131 (arm_linux_init_abi): No longer set the regset_from_core_section
133 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
134 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
135 each callback invocation.
136 (ppc_linux_init_abi): No longer set the regset_from_core_section
138 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
139 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
140 (s390_regset_from_core_section): Remove.
141 (s390_iterate_over_regset_sections): Add regset parameter to each
143 (s390_gdbarch_init): No longer set the regset_from_core_section
144 gdbarch method. Drop initialization of deleted tdep fields.
146 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
148 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
149 (amd64_linux_iterate_over_regset_sections): New.
150 (amd64_linux_init_abi_common): Don't install the regset section
151 list, but the new iterator in gdbarch.
152 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
153 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
154 (arm_linux_iterate_over_regset_sections): ...here. New function.
155 (arm_linux_init_abi): Set iterator instead of section list.
156 * corelow.c (get_core_registers_cb): New function, logic moved
158 (get_core_registers): ...loop body here. Use new iterator method
159 instead of walking through the regset section list.
160 * gdbarch.sh: Remove 'core_regset_sections'. New method
161 'iterate_over_regset_sections'. New typedef
162 'iterate_over_regset_sections_cb'.
163 * gdbarch.c: Regenerate.
164 * gdbarch.h: Likewise.
165 * i386-linux-tdep.c (i386_linux_regset_sections)
166 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
168 (i386_linux_iterate_over_regset_sections): New.
169 (i386_linux_init_abi): Don't choose a regset section list, but
170 install new iterator in gdbarch.
171 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
172 (linux_collect_regset_section_cb): New function, logic moved
174 (linux_collect_thread_registers): ...loop body here. Use iterator
175 method instead of walking through list.
176 (linux_make_corefile_notes_1): Check for presence of iterator
177 method instead of regset section list.
178 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
179 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
180 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
181 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
182 (ppc_linux_iterate_over_regset_sections): ...here. New function.
183 (ppc_linux_init_abi): Don't choose from above regset section
184 lists, but install new iterator in gdbarch.
185 * regset.h (struct core_regset_section): Remove.
186 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
187 have_linux_v1, have_linux_v2, and have_tdb.
188 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
189 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
190 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
191 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
192 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
193 (s390_iterate_over_regset_sections): ...here. New function. Use
195 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
196 regset section lists, but install new iterator.
198 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
200 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
202 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
204 * progspace.c (print_program_space): Don't prune program spaces
205 before printing them.
207 2014-09-25 Pedro Alves <palves@redhat.com>
209 * infrun.c (user_visible_resume_ptid): Don't check
210 singlestep_breakpoints_inserted_p.
212 2014-09-25 Pedro Alves <palves@redhat.com>
214 * breakpoint.c (should_be_inserted): Add debug output.
216 2014-09-25 Pedro Alves <palves@redhat.com>
218 * infrun.c (stepping_past_instruction_at)
219 (clear_exit_convenience_vars): Point at infrun.h instead of
221 (handle_signal_stop): Fix typo.
223 2014-09-24 Yao Qi <yao@codesourcery.com>
225 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
228 2014-09-22 Gary Benson <gbenson@redhat.com>
230 * target.c (target_stop): Updated comment.
232 2014-09-22 Gary Benson <gbenson@redhat.com>
234 * target/target.h (target_stop_ptid): Renamed as...
235 (target_stop_and_wait): New function. Updated comment.
237 (target_continue_ptid): Renamed as...
238 (target_continue_no_signal): New function. Updated comment.
241 2014-09-22 Pedro Alves <palves@redhat.com>
243 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
245 * breakpoint.c (enum ugll_insert_mode): New enum.
246 (always_inserted_mode): Now a plain boolean.
247 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
248 (breakpoints_always_inserted_mode): Delete.
249 (breakpoints_should_be_inserted_now): New function.
250 (insert_breakpoints): Pass UGLL_INSERT to
251 update_global_location_list instead of calling
252 insert_breakpoint_locations manually.
253 (create_solib_event_breakpoint_1): New, factored out from ...
254 (create_solib_event_breakpoint): ... this.
255 (create_and_insert_solib_event_breakpoint): Use
256 create_solib_event_breakpoint_1 instead of calling
257 insert_breakpoint_locations manually.
258 (update_global_location_list): Change parameter type from boolean
259 to enum ugll_insert_mode. All callers adjusted. Adjust to use
260 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
261 (update_global_location_list_nothrow): Change parameter type from
262 boolean to enum ugll_insert_mode.
263 (_initialize_breakpoint): "breakpoint always-inserted" option is
264 now a boolean command. Update help text.
265 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
266 (breakpoints_should_be_inserted_now): New declaration.
267 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
268 Remove breakpoints_always_inserted_mode check.
269 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
270 * remote.c (remote_start_remote): Likewise.
272 2014-09-22 Pedro Alves <palves@redhat.com>
274 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
275 (insert_breakpoints): Don't call insert_breakpoint_locations here.
276 Instead, pass UGLL_INSERT to update_global_location_list.
277 (update_global_location_list): Change parameter type from boolean
278 to enum ugll_insert_mode. All callers adjusted. Adjust to use
279 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
280 (create_solib_event_breakpoint_1): New, factored out from ...
281 (create_solib_event_breakpoint): ... this.
282 (create_and_insert_solib_event_breakpoint): Use
283 create_solib_event_breakpoint_1 instead of calling
284 insert_breakpoint_locations manually.
285 (update_global_location_list): Handle UGLL_INSERT.
287 2014-09-22 Pedro Alves <palves@redhat.com>
289 * breakpoint.c (enum ugll_insert_mode): New enum.
290 (update_global_location_list)
291 (update_global_location_list_nothrow): Change parameter type from
292 boolean to enum ugll_insert_mode. All callers adjusted.
294 2014-09-19 Joel Brobecker <brobecker@adacore.com>
296 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
297 SystemTap support in GDB.
299 2014-09-19 Don Breazeal <donb@codesourcery.com>
301 * linux-nat.c (linux_handle_extended_wait): Call
302 linux_ptrace_get_extended_event.
303 (wait_lwp): Call linux_is_extended_waitstatus.
304 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
305 and linux_is_extended_waitstatus.
306 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
307 linux_ptrace_get_extended_event.
308 (linux_ptrace_get_extended_event): New function.
309 (linux_is_extended_waitstatus): New function.
310 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
311 (linux_is_extended_waitstatus): New declarations.
313 2014-09-19 Yao Qi <yao@codesourcery.com>
315 * dwarf2read.c (dwarf_decode_lines): Update declaration.
316 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
317 comments. Callers update.
318 (dwarf_decode_lines): Likewise.
319 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
320 comments. Skip the line table if 'lowpc' is greater than
321 'address'. Don't check
322 dwarf2_per_objfile->has_section_at_zero.
324 2014-09-18 Doug Evans <dje@google.com>
326 * NEWS: Mention new "producer" attribute of gdb.Symtab.
327 * python/py-symtab.c (stpy_get_producer): New function.
328 (symtab_object_getset): Add "producer" attribute.
330 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
333 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
334 (do_captured_read_memory_integer): Remove.
335 (safe_read_memory_integer): Use target_read_memory directly instead
336 of catching errors in do_captured_read_memory_integer.
338 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
340 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
343 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
345 * objc-lang.c (find_implementation_from_class): Remove dead code.
347 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
350 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
351 "fprintf_unfiltered (gdb_stdlog...)".
353 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
356 * breakpoint.h (struct watchpoint): New fields val_bitpos and
358 * breakpoint.c (watch_command_1): Use these fields to retain
359 bitfield information.
360 (extract_bitfield_from_watchpoint_value): New function.
361 (watchpoint_check): Use it.
362 (update_watchpoint): Use it. Optimize the address and length of a
363 HW watchpoint pointing to a bitfield.
364 * value.h (unpack_value_bitfield): New prototype.
365 * value.c (unpack_value_bitfield): Make extern.
367 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
369 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
371 * gnu-nat.c (inf_threads): New function.
372 * gnu-nat.h (inf_threads_ftype): New typedef.
373 (inf_threads): New declaration.
374 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
375 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
376 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
377 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
378 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
379 (i386_gnu_dr_get_control): New functions.
380 (reg_addr): New structure.
381 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
382 i386 debugging register hooks.
383 * NEWS: Mention this.
385 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
387 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
388 vector data transfer instructions.
389 (arm_record_coproc_data_proc): Updated.
391 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
393 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
394 arm_record_exreg_ld_st_insn.
395 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
398 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
400 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
401 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
402 processing instructions.
404 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
406 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
407 for advance SIMD struct ld/st insn.
408 (thumb2_record_decode_insn_handler): Replace stub handler with
409 thumb2_record_asimd_struct_ld_st.
411 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
413 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
414 for asimd, vfp and coprocessor insns.
415 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
416 and coprocessor insns.
417 (thumb2_record_coproc_insn): New function.
418 (thumb2_record_decode_insn_handler): Update coprocessor insns record
420 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
423 2014-09-13 Doug Evans <xdje42@gmail.com>
425 * NEWS: Mention new "queue-signal" command.
426 * infcmd.c (queue_signal_command): New function.
427 (_initialize_infcmd): Add new queue-signal command.
429 2014-09-13 Doug Evans <xdje42@gmail.com>
431 * linux-nat.c (wait_lwp): Add debugging printf.
432 (linux_nat_wait_1): Ditto.
434 2014-09-12 Pedro Alves <palves@redhat.com>
436 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
437 (create_and_insert_solib_event_breakpoint): New functions.
438 * breakpoint.h (create_and_insert_solib_event_breakpoint)
439 (remove_solib_event_breakpoints_at_next_stop): New declarations.
440 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
441 (remove_dbx_link_breakpoint): Delete function.
442 (insert_dbx_link_bpt_in_file): Use
443 create_and_insert_solib_event_breakpoint instead of
444 deprecated_insert_raw_breakpoint.
445 (procfs_wait): Don't check whether we hit __dbx_link here.
446 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
448 * solib-irix.c (base_breakpoint): Delete global.
449 (disable_break): Delete function.
450 (enable_break): Use create_solib_event_breakpoint
451 instead of deprecated_insert_raw_breakpoint.
452 (irix_solib_handle_event): New function.
453 (irix_solib_create_inferior_hook): Don't run the target or disable
454 the mapping-complete breakpoint here.
455 (_initialize_irix_solib): Install irix_solib_handle_event as
456 so_ops->handle_event hook.
458 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
459 Ulrich Weigand <uweigand@de.ibm.com>
462 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
463 instead of read_memory_unsigned_integer.
465 2014-09-12 Gary Benson <gbenson@redhat.com>
467 * nat/linux-waitpid.c: Include common-defs.h.
468 [GDBSERVER]: Add FIXME comment.
469 [!GDBSERVER]: Don't include defs.h or signal.h.
470 (linux_debug) [!GDBSERVER]: Remove empty block.
472 2014-09-12 Gary Benson <gbenson@redhat.com>
474 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
475 Don't include defs.h or server.h.
477 2014-09-12 Gary Benson <gbenson@redhat.com>
479 * nat/linux-btrace.c: Include common-defs.h.
480 Don't include defs.h, server.h or gdbthread.h.
481 * nat/linux-btrace.h (struct target_ops): New forward declaration.
483 2014-09-12 Gary Benson <gbenson@redhat.com>
485 * common/agent.c: Include common-defs.h.
486 Don't include defs.h or server.h.
487 * common/buffer.c: Likewise.
488 * common/common-debug.c: Likewise.
489 * common/common-utils.c: Likewise.
490 * common/errors.c: Likewise.
491 * common/filestuff.c: Likewise.
492 * common/format.c: Likewise.
493 * common/gdb_vecs.c: Likewise.
494 * common/print-utils.c: Likewise.
495 * common/ptid.c: Likewise.
496 * common/rsp-low.c: Likewise.
497 * common/signals.c: Likewise.
498 * common/vec.c: Likewise.
499 * common/xml-utils.c: Likewise.
500 * nat/linux-osdata.c: Likewise.
501 * nat/linux-procfs.c: Likewise.
502 * nat/linux-ptrace.c: Likewise.
503 * nat/mips-linux-watch.c: Likewise.
504 * target/waitstatus.c: Likewise.
506 2014-09-12 Tom Tromey <tromey@redhat.com>
507 Gary Benson <gbenson@redhat.com>
509 * common/common-regcache.h: New file.
510 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
511 * regcache.h: Include common-regcache.h.
512 (regcache_read_pc): Don't declare.
513 * regcache.c (get_thread_regcache_for_ptid): New function.
514 * nat/linux-btrace.c: Don't include regcache.h.
515 Include common-regcache.h.
516 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
518 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
520 * regcache.h (struct regset): Declare.
522 2014-09-11 Pedro Alves <palves@redhat.com>
525 * main.c: Include "infrun.h".
526 (catch_command_errors, catch_command_errors_const): Wait for the
527 foreground command to complete.
528 * top.c (maybe_wait_sync_command_done): New function, factored out
530 (maybe_wait_sync_command_done): ... here.
531 * top.h (maybe_wait_sync_command_done): New declaration.
533 2014-09-11 Tom Tromey <tromey@redhat.com>
534 Gary Benson <gbenson@redhat.com>
536 * common/symbol.h: New file.
537 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
538 * minsyms.c (find_minimal_symbol_address): New function.
539 * common/agent.c: Include common/symbol.h.
540 [!GDBSERVER]: Don't include objfiles.h.
541 (agent_look_up_symbols): Use find_minimal_symbol_address.
543 2014-09-11 Gary Benson <gbenson@redhat.com>
545 * target/target.h (target_stop_ptid, target_continue_ptid):
547 * target.c (target_stop_ptid, target_continue_ptid): New
549 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
550 (agent_run_command): Always use target_stop_ptid and
551 target_continue_ptid.
553 2014-09-11 Tom Tromey <tromey@redhat.com>
554 Gary Benson <gbenson@redhat.com>
556 * target/target.h: New file.
557 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
558 * target.h: Include target/target.h.
559 (target_read_memory, target_write_memory): Don't declare.
560 * target.c (target_read_uint32): New function.
561 * common/agent.c: Include target/target.h.
562 [!GDBSERVER]: Don't include target.h.
563 (helper_thread_id): Type changed to uint32_t.
564 (agent_get_helper_thread_id): Use target_read_uint32.
565 (agent_run_command): Always use target_read_memory and
567 (agent_capability): Type changed to uint32_t.
568 (agent_capability_check): Use target_read_uint32.
570 2014-09-11 Gary Benson <gbenson@redhat.com>
572 * common/common-debug.h (show_debug_regs): Declare.
573 * common/common-debug.c (show_debug_regs): Define.
574 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
575 all uses with show_debug_regs. Replace all uses that considered
576 debug_hw_points as a multi-value integer with straight boolean
578 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
579 with show_debug_regs.
580 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
581 all uses with show_debug_regs.
582 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
583 uses with show_debug_regs.
585 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
587 * findvar.c (address_from_register): Handle targets requiring
588 a special conversion routine even for plain pointer types.
590 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
592 * rs6000-nat.c (exec_one_dummy_insn): Remove.
593 (store_register): Do not call exec_one_dummy_insn.
595 2014-09-10 Joel Brobecker <brobecker@adacore.com>
597 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
598 dereference it first. Use value_enclosing_type instead of
600 (ada_array_length): Likewise.
602 2014-09-10 Joel Brobecker <brobecker@adacore.com>
604 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
605 Adjust function implementation and documentation accordingly.
606 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
607 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
608 Update call to ada_value_ptr_subscript.
610 2014-09-10 Joel Brobecker <brobecker@adacore.com>
612 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
613 instead of VAL's type.
615 2014-09-10 Joel Brobecker <brobecker@adacore.com>
617 * amd64-linux-nat.c: Add <sys/uio.h> #include.
619 2014-09-09 Doug Evans <xdje42@gmail.com>
622 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
623 last parameter to pkg-config, not first.
624 * configure.ac: Pass --with-guile provided pkg-config path to
625 GDB_GUILE_PROGRAM_NAMES.
626 * configure: Regenerate.
628 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
630 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
633 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
635 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
636 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
637 the list of sections determining GDB_OSABI_IRIX.
639 2014-09-09 James Hogan <james.hogan@imgtec.com>
641 * MAINTAINERS (Write After Approval): Add "James Hogan".
643 2014-09-09 James Hogan <james.hogan@imgtec.com>
645 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
647 2014-09-09 Joel Brobecker <brobecker@adacore.com>
649 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
651 2014-09-08 Doug Evans <xdje42@gmail.com>
654 * guile.c: #include <signal.h>.
655 (_initialize_guile): Block SIGCHLD while initializing Guile.
657 Replaces the following, which is reverted.
659 2014-07-26 Doug Evans <xdje42@gmail.com>
662 * configure.ac: Add check for header gc/gc.h.
663 Add check for function setenv.
664 * configure: Regenerate.
665 * config.in: Regenerate.
666 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
668 2014-09-08 Doug Evans <xdje42@gmail.com>
670 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
671 with named constant. Fix style of pointer comparison.
672 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
674 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
677 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
678 decide whether we display the command on "show user".
679 * cli/cli-script.c (show_user_1): Only verify cmdlines after
680 printing command name.
681 * cli/cli-decode.h (cli_user_command_p): Declare new function.
682 * cli/cli-decode.c (cli_user_command_p): Create helper function
683 to verify whether cmd_list_element is a user-defined command.
685 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
688 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
689 Fix goto out of TRY_CATCH.
691 2014-09-06 Doug Evans <xdje42@gmail.com>
692 Tom Tromey <tromey@redhat.com>
695 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
696 $_any_caller_matches.
697 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
698 * python/lib/gdb/function/caller_is.py: New file.
700 2014-09-06 Doug Evans <xdje42@gmail.com>
702 * infcmd.c (program_info): Fix typo.
704 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
707 * stap-probe.c (stap_parse_single_operand): Delete unused variable
708 'number'. New variable 'has_digit'. Rewrite code to deal with
709 subexpressions on SDT probes.
711 2014-09-04 Pedro Alves <palves@redhat.com>
713 * c-exp.y (parse_number): Skip handling base-switching prefixes if
714 the input is only one character long.
716 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
719 * f-valprint.c (f_val_print): Specify the correct print option to
720 use when printing integer values.
722 2014-09-04 Gary Benson <gbenson@redhat.com>
724 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
725 Remove code to cope with LWPs wrapped as PIDs.
726 Add assertions to ensure no wrapped LWPs are passed.
728 2014-09-04 Pedro Alves <palves@redhat.com>
730 * value.c (value_ranges_copy_adjusted): New function, factored out
732 (value_contents_copy_raw): ... here.
733 (unpack_value_bits_as_long_1): Rename back to ...
734 (unpack_bits_as_long): ... this. Remove 'original_value' and
735 'result' parameters. Change return type to LONGEST.
736 (unpack_value_bits_as_long): Delete.
737 (unpack_value_field_as_long_1): Delete.
738 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
739 (unpack_value_bitfield): New function.
740 (value_field_bitfield): Reimplement using unpack_value_bitfield.
741 (value_fetch_lazy): Use unpack_value_bitfield.
742 * value.h (unpack_value_bits_as_long): Delete declaration.
744 2014-09-03 Sasha Smundak <asmundak@google.com>
746 * python/py-frame.c (frapy_read_register): New function.
748 2014-09-03 James Hogan <james.hogan@imgtec.com>
750 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
751 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
753 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
756 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
758 (add_cmd): Set "completer_handle_brkchars" to NULL.
759 * cli/cli-decode.h (struct cmd_list_element)
760 <completer_handle_brkchars>: New field.
761 * command.h (completer_ftype_void): New typedef.
762 (set_cmd_completer_handle_brkchars): New prototype.
763 * completer.c (set_gdb_completion_word_break_characters): New
765 (complete_line_internal): Call "completer_handle_brkchars"
766 callback from command.
767 * completer.h: Include "command.h".
768 (set_gdb_completion_word_break_characters): New prototype.
769 * python/py-cmd.c (cmdpy_completer_helper): New function.
770 (cmdpy_completer_handle_brkchars): New function.
771 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
772 (cmdpy_init): Set completer_handle_brkchars to
773 cmdpy_completer_handle_brkchars.
775 2014-09-03 Gary Benson <gbenson@redhat.com>
777 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
778 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
779 Loop conditions changed to equivalent form.
780 (struct x86_debug_reg_state): Updated dr_ref_count comment.
781 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
782 ALL_DEBUG_ADDRESS_REGISTERS.
784 2014-09-03 Joel Brobecker <brobecker@adacore.com>
786 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
789 2014-09-02 Doug Evans <dje@google.com>
791 * typeprint.c (find_global_typedef): Fix comment.
793 2014-09-02 Gary Benson <gbenson@redhat.com>
795 * i386-nat.h: Renamed as...
796 * x86-nat.h: New file. All type, function and variable name
797 prefixes changed from "i386_" to "x86_". All references updated.
798 * i386-nat.c: Renamed as...
799 * x86-nat.c: New file. All type, function and variable name
800 prefixes changed from "i386_" to "x86_". All references updated.
801 * common/i386-xstate.h: Renamed as...
802 * common/x86-xstate.h: New file. All type, function and variable
803 name prefixes changed from "i386_" to "x86_". All references
805 * nat/i386-cpuid.h: Renamed as...
806 * nat/x86-cpuid.h: New file. All type, function and variable name
807 prefixes changed from "i386_" to "x86_". All references updated.
808 * nat/i386-gcc-cpuid.h: Renamed as...
809 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
810 name prefixes changed from "i386_" to "x86_". All references
812 * nat/i386-dregs.h: Renamed as...
813 * nat/x86-dregs.h: New file. All type, function and variable name
814 prefixes changed from "i386_" to "x86_". All references updated.
815 * nat/i386-dregs.c: Renamed as...
816 * nat/x86-dregs.c: New file. All type, function and variable name
817 prefixes changed from "i386_" to "x86_". All references updated.
819 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
821 * varobj.c (_initialize_varobj): Move to the end of file.
823 2014-08-29 Gary Benson <gbenson@redhat.com>
825 * common/common-exceptions.h: New file.
826 * common/common-exceptions.c: Likewise.
827 * Makefile.in (SFILES): Add common/common-exceptions.c.
828 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
829 (COMMON_OBS): Add common-exceptions.o.
830 (common-exceptions.o): New rule.
831 * exceptions.h (common-exceptions.h): Include.
832 (gdb_setjmp.h): Do not include.
833 (return_reason): Moved to common-exceptions.h.
834 (enum return_reason): Likewise.
835 (RETURN_MASK): Likewise.
836 (typedef return_mask): Likewise.
837 (enum errors): Likewise.
838 (struct gdb_exception): Likewise.
839 (exceptions_state_mc_init): Likewise.
840 (exceptions_state_mc_action_iter): Likewise.
841 (exceptions_state_mc_action_iter_1): Likewise.
842 (TRY_CATCH): Likewise.
843 (throw_exception): Likewise.
844 (throw_verror): Likewise.
845 (throw_vquit): Likewise.
846 (throw_error): Likewise.
847 (throw_quit): Likewise.
848 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
849 (enum catcher_action): Likewise.
850 (struct catcher): Likewise.
851 (current_catcher): Likewise.
852 (catcher_list_size): Likewise.
853 (exceptions_state_mc_init): Likewise.
854 (catcher_pop): Likewise.
855 (exceptions_state_mc): Likewise.
856 (exceptions_state_mc_action_iter): Likewise.
857 (exceptions_state_mc_action_iter_1): Likewise.
858 (throw_exception): Likewise.
859 (exception_messages): Likewise.
860 (exception_messages_size): Likewise.
861 (throw_it): Likewise.
862 (throw_verror): Likewise.
863 (throw_vquit): Likewise.
864 (throw_error): Likewise.
865 (throw_quit): Likewise.
866 (prepare_to_throw_exception): New function.
868 2014-08-29 Gary Benson <gbenson@redhat.com>
870 * common/gdb_setjmp.h: New file.
871 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
872 * configure.ac: Move sigsetjmp check...
873 * common/common.m4: ...here.
874 * configure: Regenerate.
875 * cp-support.c (SIGJMP_BUF): Delete.
876 (SIGSETJMP): Likewise.
877 (SIGLONGJMP): Likewise.
878 * exceptions.h (gdb_setjmp.h): Include.
879 (setjmp.h): Do not include.
880 (EXCEPTIONS_SIGJMP_BUF): Delete.
881 (EXCEPTIONS_SIGSETJMP): Likewise.
882 (EXCEPTIONS_SIGLONGJMP): Likewise.
883 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
885 * exceptions.c: Likewise.
887 2014-08-29 Gary Benson <gbenson@redhat.com>
889 * cleanups.h: Moved to...
890 * common/cleanups.h: New file.
891 * cleanups.c: Moved to...
892 * common/cleanups.c: New file. Include common-defs.h and
893 cleanups.h. Do not include defs.h.
894 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
895 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
896 (cleanups.o): New rule.
898 2014-08-29 Gary Benson <gbenson@redhat.com>
900 * common/errors.h (internal_warning): New declaration.
901 (internal_vwarning): Likewise.
902 * common/errors.c (internal_warning): New function.
903 * utils.h (internal_warning): Don't declare.
904 (internal_vwarning): Likewise.
905 * utils.c (internal_warning): Removed.
907 2014-08-29 Gary Benson <gbenson@redhat.com>
909 * main.c (captured_main): Use warning during startup.
910 Prefix startup warning messages with command name.
912 2014-08-29 Gary Benson <gbenson@redhat.com>
914 * main.c (captured_main): Handle usage errors with error.
916 2014-08-29 Gary Benson <gbenson@redhat.com>
918 * go32-nat.c (go32_create_inferior): Replace a fprintf/
919 exit pair with a call to error. Wrap the message with _().
921 2014-08-29 Gary Benson <gbenson@redhat.com>
923 * main.c (captured_main): Replace a fprintf/exit
924 pair with a call to error. Wrap the message with _().
926 2014-08-29 Gary Benson <gbenson@redhat.com>
928 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
929 pairs with calls to error. Wrap the message with _().
931 2014-08-29 Gary Benson <gbenson@redhat.com>
933 * utils.c (vwarning): Protect calls to target_terminal_ours
936 2014-08-29 Gary Benson <gbenson@redhat.com>
938 * exceptions.c (print_flush): Protect calls to
939 target_terminal_ours and wrap_here.
941 2014-08-29 Gary Benson <gbenson@redhat.com>
943 * utils.h (filtered_printing_initialized): New declaration.
944 * utils.c (abort_with_message): New function.
945 (internal_vproblem): Use abort_with_message for first level
946 recursive internal problems, and if gdb_stderr is not set up.
947 Protect calls to target_terminal_ours, begin_line and query.
949 2014-08-28 Doug Evans <dje@google.com>
951 * symtab.c (in_prologue): Move definition to better spot.
952 (skip_prologue_using_sal): Ditto.
954 2014-08-28 Doug Evans <dje@google.com>
956 * symtab.c (find_function_start_sal): Move definition to better spot.
958 2014-08-28 Yao Qi <yao@codesourcery.com>
960 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
961 found_stack_adjust in forward scan. Remove condition check
962 on found_stack_adjust which is always true. Indent the code.
964 2014-08-28 Yao Qi <yao@codesourcery.com>
966 * dwarf2read.c (dwarf_decode_lines): Update declaration.
967 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
968 (dwarf_decode_lines): Remove argument
969 want_line_info. Remove condition check on want_line_info.
972 2014-08-27 Doug Evans <dje@google.com>
974 * dwarf2read.c (dwarf_record_line): Fix typo.
976 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
978 * target.h (struct target_ops::to_terminal_save_ours): Remove
980 (target_terminal_save_ours): Remove macro.
981 * target-delegates.c: Regenerate.
982 * inf-child.c (inf_child_target): Don't set the nonexistent
983 field to_terminal_save_ours.
984 * inferior.h (child_terminal_save_ours): Remove declaration.
985 * terminal.h (gdb_save_tty_state): New declaration.
986 * inflow.c (child_terminal_save_ours): Rename to ...
987 (gdb_save_tty_state): ... this.
988 * tui/tui.c: Include terminal.h.
989 (tui_enable): Use gdb_save_tty_state instead of
990 target_terminal_save_ours.
991 (tui_disable): Likewise.
993 2014-08-25 Doug Evans <dje@google.com>
995 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
996 Pass NULL instead of 0 for context pointer.
998 2014-08-25 Yao Qi <yao@codesourcery.com>
1000 * dwarf2read.c: Fix grammatical error.
1002 2014-08-24 Yao Qi <yao@codesourcery.com>
1004 * dwarf2read.c (scan_partial_symbols): Update comments.
1005 Rename argument 'need_pc' with 'set_addrmap'.
1006 (add_partial_namespace): Rename argument 'need_pc' with
1008 (add_partial_module): Likewise.
1009 (add_partial_subprogram): Likewise. Update comments.
1010 (dwarf2_name): Fix typo.
1012 2014-08-22 Doug Evans <dje@google.com>
1015 * dwarf2read.c (dwarf_record_line_p): New function.
1016 (dwarf_decode_lines_1): Ignore subsequent line number entries
1017 for the same line if any entry had a non-zero discriminator.
1019 2014-08-22 Doug Evans <dje@google.com>
1021 * buildsym.h (record_line_ftype): New typedef.
1022 (record_line): Use it.
1023 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1024 (dwarf_decode_lines_1): Call them.
1026 2014-08-22 Yao Qi <yao@codesourcery.com>
1028 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1029 (ctf_end): Remove code.
1031 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1033 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1034 (linux_make_corefile_notes): call update_thread_list, protected against
1037 2014-08-21 Pedro Alves <palves@redhat.com>
1039 * infcmd.c (attach_command): Remove comment.
1041 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1043 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1044 unsigned LONGEST to ULONGEST.
1046 2014-08-20 Pedro Alves <palves@redhat.com>
1048 * Makefile.in (check-read1): New rule.
1050 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1052 * value.c (value_from_contents_and_address): Strip resolved_type's
1053 typedef layers before checking its TYPE_DATA_LOCATION.
1055 2014-08-20 Pedro Alves <palves@redhat.com>
1057 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1059 2014-08-20 Yao Qi <yao@codesourcery.com>
1061 * amd64-tdep.c (amd64_classify): Add a blank line after the
1062 example. Move "*/" to a new line.
1063 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1064 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1065 * dwarf2read.c (psymtab_include_file_name): Likewise.
1067 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1068 Pedro Alves <palves@redhat.com>
1072 * ada-lang.c (coerce_unspec_val_to_type): Use
1073 value_contents_copy_raw.
1074 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1075 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1076 * cp-valprint.c (cp_print_value_fields): Let the common printing
1077 code handle optimized out values.
1078 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1079 * d-valprint.c (dynamic_array_type): Use
1080 value_bits_any_optimized_out.
1081 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1082 check_any_valid fields.
1083 (check_pieced_value_bits): Delete and inline ...
1084 (check_pieced_synthetic_pointer): ... here.
1085 (check_pieced_value_validity): Delete.
1086 (check_pieced_value_invalid): Delete.
1087 (pieced_value_funcs): Remove check_validity and check_any_valid
1089 (read_pieced_value): Use mark_value_bits_optimized_out.
1090 (write_pieced_value): Switch to use
1091 mark_value_bytes_optimized_out.
1092 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1093 of assuming the whole value is optimized out.
1094 * findvar.c (read_frame_register_value): Remove special handling
1095 of optimized out registers.
1096 (value_from_register): Use mark_value_bytes_optimized_out.
1097 * frame-unwind.c (frame_unwind_got_optimized): Use
1098 mark_value_bytes_optimized_out.
1099 * jv-valprint.c (java_value_print): Adjust.
1100 (java_print_value_fields): Let the common printing code handle
1101 optimized out values.
1102 * mips-tdep.c (mips_print_register): Remove special handling of
1103 optimized out registers.
1104 * opencl-lang.c (lval_func_check_validity): Delete.
1105 (lval_func_check_any_valid): Delete.
1106 (opencl_value_funcs): Remove check_validity and check_any_valid
1108 * p-valprint.c (pascal_object_print_value_fields): Let the common
1109 printing code handle optimized out values.
1110 * stack.c (read_frame_arg): Remove special handling of optimized
1111 out values. Fetch both VAL and ENTRYVAL before comparing
1112 contents. Adjust to value_available_contents_eq rename.
1113 * valprint.c (valprint_check_validity)
1114 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1115 (val_print_array_elements): Adjust.
1116 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1117 (value_bits_any_optimized_out): New function.
1118 (value_entirely_covered_by_range_vector): New function, factored
1119 out from value_entirely_unavailable.
1120 (value_entirely_unavailable): Reimplement.
1121 (value_entirely_optimized_out): New function.
1122 (insert_into_bit_range_vector): New function, factored out from
1123 mark_value_bits_unavailable.
1124 (mark_value_bits_unavailable): Reimplement.
1125 (struct ranges_and_idx): New struct.
1126 (find_first_range_overlap_and_match): New function, factored out
1127 from value_available_contents_bits_eq.
1128 (value_available_contents_bits_eq): Rename to ...
1129 (value_contents_bits_eq): ... this. Check both unavailable
1130 contents and optimized out contents.
1131 (value_available_contents_eq): Rename to ...
1132 (value_contents_eq): ... this.
1133 (allocate_value_lazy): Remove reference to the old optimized_out
1135 (allocate_optimized_out_value): Use
1136 mark_value_bytes_optimized_out.
1137 (require_not_optimized_out): Adjust to check whether the
1138 optimized_out vec is empty.
1139 (ranges_copy_adjusted): New function, factored out from
1140 value_contents_copy_raw.
1141 (value_contents_copy_raw): Also copy the optimized out ranges.
1142 Assert the destination ranges aren't optimized out.
1143 (value_contents_copy): Update comment, remove call to
1144 require_not_optimized_out.
1145 (value_contents_equal): Adjust to check whether the optimized_out
1147 (set_value_optimized_out, value_optimized_out_const): Delete.
1148 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1150 (value_entirely_optimized_out, value_bits_valid): Delete.
1151 (value_copy): Take a VEC copy of the 'optimized_out' field.
1152 (value_primitive_field): Remove special handling of optimized out.
1153 (value_fetch_lazy): Assert that lazy values have no unavailable
1154 regions. Use value_bits_any_optimized_out. Remove some special
1155 handling for optimized out values.
1156 * value.h: Add intro comment about <optimized out> and
1158 (struct lval_funcs): Remove check_validity and check_any_valid
1160 (set_value_optimized_out, value_optimized_out_const): Remove.
1161 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1163 (value_bits_any_optimized_out): New declaration.
1164 (value_bits_valid): Delete declaration.
1165 (value_available_contents_eq): Rename to ...
1166 (value_contents_eq): ... this, and extend comments.
1168 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1170 Fix -fsanitize=address on unreadable inferior strings.
1171 * valprint.c (val_print_string): Fix access before BUFFER.
1173 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1175 * target.c (target_struct_size): Remove.
1176 (target_struct_allocsize): Remove.
1177 (DEFAULT_ALLOCSIZE): Remove.
1178 (target_ops_p): New typedef.
1179 (DEF_VEC_P (target_ops_p)): New vector type.
1180 (target_structs): Change type to VEC (target_ops_p).
1181 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1182 (find_default_run_target): Rewrite for loop following changes to
1185 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1187 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1188 Adjust code accordingly. Adjust function description comment.
1190 2014-08-19 Yao Qi <yao@codesourcery.com>
1192 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1195 2014-08-19 Alan Modra <amodra@gmail.com>
1197 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1198 * config.in: Regenerate.
1199 * configure: Regenerate.
1201 2014-08-19 Tom Tromey <tromey@redhat.com>
1202 Gary Benson <gbenson@redhat.com>
1204 * common/common-debug.h: New file.
1205 * common/common-debug.c: Likewise.
1206 * debug.c: Likewise.
1207 * Makefile.in (SFILES): Add common/common-debug.c.
1208 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1209 (COMMON_OBS): Add common-debug.o and debug.o.
1210 (common-debug.o): New rule.
1211 * common/common-defs.h: Include common-debug.h.
1212 * common/agent.c (debug_agent_printf): New function.
1213 (DEBUG_AGENT): Redefine.
1214 * nat/i386-dregs.c (debug_printf): Undefine.
1216 2014-08-19 Gary Benson <gbenson@redhat.com>
1218 * common/common-defs.h: Include print-utils.h.
1219 * utils.h: Do not include print-utils.h.
1221 2014-08-19 Tom Tromey <tromey@redhat.com>
1222 Gary Benson <gbenson@redhat.com>
1224 * common/common-types.h: New file.
1225 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1226 * common/common-defs.h: Include common-types.h.
1227 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1230 2014-08-19 Tom Tromey <tromey@redhat.com>
1231 Gary Benson <gbenson@redhat.com>
1233 * common/errors.h: New file.
1234 * common/errors.c: Likewise.
1235 * Makefile.in (SFILES): Add common/errors.c.
1236 (HFILES_NO_SRCDIR): Add common/errors.h.
1237 (COMMON_OBS): Add errors.o.
1238 (errors.o): New rule.
1239 * common/common-defs.h: Include errors.h.
1240 * utils.h (perror_with_name, error, verror, warning, vwarning):
1242 * common/common-utils.h: (malloc_failure, internal_error):
1245 2014-08-19 Gary Benson <gbenson@redhat.com>
1247 * utils.c (internal_vproblem): Always print the message.
1249 2014-08-18 Doug Evans <dje@google.com>
1251 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1253 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1255 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1256 Return 0 if TYPE is dynamic.
1257 (print_range): Add handling of dynamic ranges.
1259 2014-08-18 Keven Boell <keven.boell@intel.com>
1260 Joel Brobecker <brobecker@adacore.com>
1262 * gdbtypes.h (struct main_type): Add field "data_location".
1263 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1264 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1265 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1266 a dynamic data location.
1267 (resolve_dynamic_type): Add DW_AT_data_location handling.
1268 (copy_recursive, copy_type): Copy the data_location information
1270 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1271 * value.c (value_from_contents_and_address): Add
1272 DW_AT_data_location handling.
1274 2014-08-18 Keven Boell <keven.boell@intel.com>
1275 Joel Brobecker <brobecker@adacore.com>
1277 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1278 field "get_object_address".
1279 * dwarf2expr.c (execute_stack_op): Add handling for
1280 DW_OP_push_object_address.
1281 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1282 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1283 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1284 (dwarf_expr_get_obj_addr): New function.
1285 (dwarf_expr_ctx_funcs): Add get_object_address field.
1286 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1287 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1288 (dwarf2_evaluate_property): Add parameter "address". Use it.
1289 (needs_get_obj_addr): New function.
1290 (needs_frame_ctx_funcs): Add get_object_address field.
1291 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1292 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1293 (resolve_dynamic_array): Likewise.
1295 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1297 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1298 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1299 fixed value for records and unions for which some GNAT encodings
1302 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1304 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1305 rewrite to avoid "else if" and "else" constructs. Should be
1306 a no-op in practice.
1308 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1310 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1313 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1316 * eval.c: Update all calls to find_overload_match.
1317 * valarith.c: Likewise.
1318 (value_user_defined_cpp_op, value_user_defined_op): New
1319 argument NOSIDE. Update all callers.
1320 * valops.c (find_overload_match): New argument NOSIDE.
1321 * value.h (find_overload_match): Update signature.
1323 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1325 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1326 'items' methods instead of 'iteritems' method on dictionaries.
1328 2014-08-15 Doug Evans <dje@google.com>
1330 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1333 2014-08-15 Doug Evans <dje@google.com>
1335 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1337 2014-08-15 Doug Evans <dje@google.com>
1339 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1341 2014-08-15 Doug Evans <dje@google.com>
1343 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1346 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1348 * dcache.h: Include target.h, to avoid compile time warnings.
1350 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1352 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1353 frame_info" partial declaration.
1354 * gdbarch.h: Regenerate.
1356 2014-08-15 Yao Qi <yao@codesourcery.com>
1358 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1359 Add parameter 'decode_for_pst_p'. Callers update.
1361 2014-08-13 Yao Qi <yao@codesourcery.com>
1364 * configure.ac: Use local variable 'pos'.
1365 * configure: Regenerated.
1367 2014-08-11 Doug Evans <dje@google.com>
1369 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1370 message, it is redundant with "Reading symbols from ..." message.
1372 2014-08-10 Doug Evans <xdje42@gmail.com>
1374 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1376 2014-08-09 Yao Qi <yao@codesourcery.com>
1379 * remote.c (remote_xfer_partial): Remove dead code.
1381 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1383 * ia64-linux-tdep.c: Include "regset.h".
1384 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1385 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1386 (ia64_linux_supply_fpregset): New function.
1387 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1388 (ia64_linux_regset_from_core_section): New function.
1389 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1392 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1394 * m68klinux-tdep.c: Include "regset.h".
1395 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1396 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1397 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1398 (m68k_linux_regset_from_core_section): New function.
1399 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1402 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1404 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1405 function. Move logic to...
1406 (tilegx_linux_regmap): ... this new register map.
1407 (tilegx_linux_regset): Refer to register map, replace supply
1408 method by regcache_supply_regset, and add collect method.
1409 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1410 TILEGX_FIRST_EASY_REGNUM.
1412 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1414 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1415 that calls regcache_supply_regset and handles the EPC register
1416 separately. Move main logic to...
1417 (score7_linux_gregmap): ... this new register map.
1418 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1419 (score7_linux_gregset): Refer to register map. Add collect method.
1420 (score7_linux_regset_from_core_section): Replace
1421 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1422 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1423 (struct regset): Delete unused forward declaraction.
1424 (struct pt_regs): Delete structure definition.
1425 (elf_gregset_t): Delete typedef.
1427 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1429 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1430 (nios2_core_regset): Add collect method.
1432 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1434 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1435 platform-independent and don't write to read-only input buffer.
1436 (m32r_linux_collect_gregset): New function.
1437 (m32r_linux_gregset): Add collect method.
1439 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1441 * hppa-linux-tdep.c (greg_map): Rename to...
1442 (hppa_linux_gregmap): ... this. Also convert to
1443 regcache_map_entry format.
1444 (hppa_linux_supply_regset): Delete function.
1445 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1446 (hppa_linux_fpregmap): ... this new register map.
1447 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1448 register map, replace supply method by regcache_supply_regset, and
1449 add collect method regcache_collect_regset.
1451 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1453 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1454 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1455 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1456 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1457 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1458 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1459 (frv_linux_supply_gregset): Replace main logic by call to
1460 regcache_supply_regset, but keep clearing gr32-gr63.
1461 (frv_linux_supply_fpregset): Delete function.
1462 (frv_linux_gregset): Refer to appropriate register map and add
1463 regcache_collect_regset as the collect method.
1464 (frv_linux_fpregset): Likewise. Also exchange the supply method
1465 by regcache_supply_regset.
1467 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1469 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1470 by call to alpha_supply_int_regs.
1471 (alpha_linux_collect_gregset): New function.
1472 (alpha_linux_supply_fpregset): Replace logic by call to
1473 alpha_supply_fp_regs.
1474 (alpha_linux_collect_fpregset): New function.
1475 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1477 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1479 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1480 by call to regcache_collect_regset.
1481 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1482 instead of aarch64_linux_supply_gregset/_fpregset.
1483 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1484 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1485 header file instead.
1486 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1487 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1488 functions. Move logic to ...
1489 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1491 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1492 refer to new register maps, replace *_regset_from_core by
1493 regcache_supply_regset, and also use regcache_collect_regset.
1494 * aarch64-linux-tdep.h: Include "regset.h".
1495 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1497 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1498 macros, moved from C source file.
1499 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1500 variable declarations.
1502 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1504 * s390-linux-nat.c: Include "regset.h".
1505 (regmap_gregset): Delete macro.
1506 (s390_64_regmap_gregset): New register map for
1507 regcache_supply/_collect_regset.
1508 (s390_64_gregset): New regset.
1509 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1510 (regmap_fpregset): Delete macro.
1511 (s390_native_supply, s390_native_collect): Delete functions.
1512 (supply_gregset, fill_gregset): Replace s390-specific regmap
1513 handling by a call to regcache_supply/_collect_regset.
1514 (supply_fpregset, fill_fpregset): Call regcache_supply/
1515 _collect_regset instead of s390_native_supply/_collect.
1516 (fetch_regset, store_regset): Likewise. Also change the last
1517 parameter to a regset instead of a regmap.
1518 (s390_linux_fetch_inferior_registers)
1519 (390_linux_store_inferior_registers): Adjust last parameter in
1520 calls to fetch_regset and store_regset.
1521 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1522 (s390_gregmap): ... this. Also make static const and convert to
1523 regcache_map_entry format.
1524 (s390x_regmap_gregset): Delete.
1525 (s390_regmap_fpregset): Rename to...
1526 (s390_fpregmap): ... this. Make static const and convert to
1527 regcache_map_entry format.
1528 (s390_regmap_upper, s390_regmap_last_break)
1529 (s390x_regmap_last_break, s390_regmap_system_call)
1530 (s390_regmap_tdb): Likewise.
1531 (s390_supply_regset, s390_collect_regset): Remove functions.
1532 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1534 (s390_gregset, s390_fpregset, s390_upper_regset)
1535 (s390_last_break_regset, s390x_last_break_regset)
1536 (s390_system_call_regset, s390_tdb_regset): Make global and
1537 replace s390_supply/_collect_regset by regcache_supply/
1539 (s390x_gregset): Delete.
1540 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1541 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1542 (s390_regmap_fpregset, s390_regmap_last_break)
1543 (s390x_regmap_last_break, s390_regmap_system_call)
1544 (s390_regmap_tdb): Delete global variable declarations.
1545 (s390_gregset, s390_fpregset, s390_last_break_regset)
1546 (s390x_last_break_regset, s390_system_call_regset)
1547 (s390_tdb_regset): New global variable declarations.
1549 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1551 * regcache.c: Include "regset.h".
1552 (regcache_transfer_regset): New local function.
1553 (regcache_supply_regset, regcache_collect_regset): New functions.
1554 * regcache.h (struct regcache_map_entry): New structure.
1555 (REGCACHE_MAP_SKIP): New enum value.
1556 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1558 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1560 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1561 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1562 (ppc_linux_collect_gregset ): Likewise.
1563 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1564 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1565 (ppc_collect_vrregset): Likewise.
1566 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1569 2014-08-07 Yao Qi <yao@codesourcery.com>
1571 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1572 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1573 * remote.c (remote_read_bytes): Likewise.
1575 2014-08-07 Yao Qi <yao@codesourcery.com>
1577 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1579 2014-08-07 Yao Qi <yao@codesourcery.com>
1582 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1583 TARGET_XFER_OK instead of 0.
1585 2014-08-07 Gary Benson <gbenson@redhat.com>
1587 * common/common-defs.h: Include errno.h.
1588 * defs.h: Do not include errno.h.
1589 * ada-typeprint.c: Likewise.
1590 * c-typeprint.c: Likewise.
1591 * core-regset.c: Likewise.
1592 * corefile.c: Likewise.
1593 * corelow.c: Likewise.
1594 * event-loop.c: Likewise.
1595 * f-typeprint.c: Likewise.
1596 * gnu-nat.c: Likewise.
1597 * go32-nat.c: Likewise.
1598 * i386gnu-nat.c: Likewise.
1599 * m2-typeprint.c: Likewise.
1600 * nat/linux-btrace.c: Likewise.
1601 * p-typeprint.c: Likewise.
1602 * procfs.c: Likewise.
1603 * remote-sim.c: Likewise.
1604 * rs6000-nat.c: Likewise.
1605 * target.c: Likewise.
1606 * typeprint.c: Likewise.
1607 * ui-file.c: Likewise.
1608 * valops.c: Likewise.
1609 * valprint.c: Likewise.
1611 2014-08-07 Gary Benson <gbenson@redhat.com>
1613 * common/common-defs.h: Include string.h.
1614 * aarch64-tdep.c: Do not include string.h.
1615 * ada-exp.y: Likewise.
1616 * ada-lang.c: Likewise.
1617 * ada-lex.l: Likewise.
1618 * ada-typeprint.c: Likewise.
1619 * ada-valprint.c: Likewise.
1620 * aix-thread.c: Likewise.
1621 * alpha-linux-tdep.c: Likewise.
1622 * alpha-mdebug-tdep.c: Likewise.
1623 * alpha-nat.c: Likewise.
1624 * alpha-osf1-tdep.c: Likewise.
1625 * alpha-tdep.c: Likewise.
1626 * alphanbsd-tdep.c: Likewise.
1627 * amd64-dicos-tdep.c: Likewise.
1628 * amd64-linux-tdep.c: Likewise.
1629 * amd64-nat.c: Likewise.
1630 * amd64-sol2-tdep.c: Likewise.
1631 * amd64fbsd-tdep.c: Likewise.
1632 * amd64obsd-tdep.c: Likewise.
1633 * arch-utils.c: Likewise.
1634 * arm-linux-nat.c: Likewise.
1635 * arm-linux-tdep.c: Likewise.
1636 * arm-tdep.c: Likewise.
1637 * arm-wince-tdep.c: Likewise.
1638 * armbsd-tdep.c: Likewise.
1639 * armnbsd-nat.c: Likewise.
1640 * armnbsd-tdep.c: Likewise.
1641 * armobsd-tdep.c: Likewise.
1642 * avr-tdep.c: Likewise.
1643 * ax-gdb.c: Likewise.
1644 * ax-general.c: Likewise.
1645 * bcache.c: Likewise.
1646 * bfin-tdep.c: Likewise.
1647 * breakpoint.c: Likewise.
1648 * build-id.c: Likewise.
1649 * buildsym.c: Likewise.
1650 * c-exp.y: Likewise.
1651 * c-lang.c: Likewise.
1652 * c-typeprint.c: Likewise.
1653 * c-valprint.c: Likewise.
1654 * charset.c: Likewise.
1655 * cli-out.c: Likewise.
1656 * cli/cli-cmds.c: Likewise.
1657 * cli/cli-decode.c: Likewise.
1658 * cli/cli-dump.c: Likewise.
1659 * cli/cli-interp.c: Likewise.
1660 * cli/cli-logging.c: Likewise.
1661 * cli/cli-script.c: Likewise.
1662 * cli/cli-setshow.c: Likewise.
1663 * cli/cli-utils.c: Likewise.
1664 * coffread.c: Likewise.
1665 * common/agent.c: Likewise.
1666 * common/buffer.c: Likewise.
1667 * common/buffer.h: Likewise.
1668 * common/common-utils.c: Likewise.
1669 * common/filestuff.c: Likewise.
1670 * common/filestuff.c: Likewise.
1671 * common/format.c: Likewise.
1672 * common/print-utils.c: Likewise.
1673 * common/rsp-low.c: Likewise.
1674 * common/signals.c: Likewise.
1675 * common/vec.h: Likewise.
1676 * common/xml-utils.c: Likewise.
1677 * core-regset.c: Likewise.
1678 * corefile.c: Likewise.
1679 * corelow.c: Likewise.
1680 * cp-abi.c: Likewise.
1681 * cp-name-parser.y: Likewise.
1682 * cp-support.c: Likewise.
1683 * cp-valprint.c: Likewise.
1684 * cris-tdep.c: Likewise.
1685 * d-exp.y: Likewise.
1686 * darwin-nat.c: Likewise.
1687 * dbxread.c: Likewise.
1688 * dcache.c: Likewise.
1689 * demangle.c: Likewise.
1690 * dicos-tdep.c: Likewise.
1691 * disasm.c: Likewise.
1692 * doublest.c: Likewise.
1693 * dsrec.c: Likewise.
1694 * dummy-frame.c: Likewise.
1695 * dwarf2-frame.c: Likewise.
1696 * dwarf2loc.c: Likewise.
1697 * dwarf2read.c: Likewise.
1698 * elfread.c: Likewise.
1699 * environ.c: Likewise.
1701 * event-loop.c: Likewise.
1702 * exceptions.c: Likewise.
1704 * expprint.c: Likewise.
1705 * f-exp.y: Likewise.
1706 * f-lang.c: Likewise.
1707 * f-typeprint.c: Likewise.
1708 * f-valprint.c: Likewise.
1709 * fbsd-nat.c: Likewise.
1710 * findcmd.c: Likewise.
1711 * findvar.c: Likewise.
1712 * fork-child.c: Likewise.
1713 * frame.c: Likewise.
1714 * frv-linux-tdep.c: Likewise.
1715 * frv-tdep.c: Likewise.
1717 * gdb_bfd.c: Likewise.
1718 * gdbarch.c: Likewise.
1719 * gdbarch.sh: Likewise.
1720 * gdbtypes.c: Likewise.
1721 * gnu-nat.c: Likewise.
1722 * gnu-v2-abi.c: Likewise.
1723 * gnu-v3-abi.c: Likewise.
1724 * go-exp.y: Likewise.
1725 * go-lang.c: Likewise.
1726 * go32-nat.c: Likewise.
1727 * guile/guile.c: Likewise.
1728 * guile/scm-auto-load.c: Likewise.
1729 * hppa-hpux-tdep.c: Likewise.
1730 * hppa-linux-nat.c: Likewise.
1731 * hppanbsd-tdep.c: Likewise.
1732 * hppaobsd-tdep.c: Likewise.
1733 * i386-cygwin-tdep.c: Likewise.
1734 * i386-dicos-tdep.c: Likewise.
1735 * i386-linux-tdep.c: Likewise.
1736 * i386-nto-tdep.c: Likewise.
1737 * i386-sol2-tdep.c: Likewise.
1738 * i386-tdep.c: Likewise.
1739 * i386bsd-tdep.c: Likewise.
1740 * i386gnu-nat.c: Likewise.
1741 * i386nbsd-tdep.c: Likewise.
1742 * i386obsd-tdep.c: Likewise.
1743 * i387-tdep.c: Likewise.
1744 * ia64-libunwind-tdep.c: Likewise.
1745 * ia64-linux-nat.c: Likewise.
1746 * inf-child.c: Likewise.
1747 * inf-ptrace.c: Likewise.
1748 * inf-ttrace.c: Likewise.
1749 * infcall.c: Likewise.
1750 * infcmd.c: Likewise.
1751 * inflow.c: Likewise.
1752 * infrun.c: Likewise.
1753 * interps.c: Likewise.
1754 * iq2000-tdep.c: Likewise.
1755 * irix5-nat.c: Likewise.
1756 * jv-exp.y: Likewise.
1757 * jv-lang.c: Likewise.
1758 * jv-typeprint.c: Likewise.
1759 * jv-valprint.c: Likewise.
1760 * language.c: Likewise.
1761 * linux-fork.c: Likewise.
1762 * linux-nat.c: Likewise.
1763 * lm32-tdep.c: Likewise.
1764 * m2-exp.y: Likewise.
1765 * m2-typeprint.c: Likewise.
1766 * m32c-tdep.c: Likewise.
1767 * m32r-linux-nat.c: Likewise.
1768 * m32r-linux-tdep.c: Likewise.
1769 * m32r-rom.c: Likewise.
1770 * m32r-tdep.c: Likewise.
1771 * m68hc11-tdep.c: Likewise.
1772 * m68k-tdep.c: Likewise.
1773 * m68kbsd-tdep.c: Likewise.
1774 * m68klinux-nat.c: Likewise.
1775 * m68klinux-tdep.c: Likewise.
1776 * m88k-tdep.c: Likewise.
1777 * machoread.c: Likewise.
1778 * macrocmd.c: Likewise.
1780 * mdebugread.c: Likewise.
1781 * mem-break.c: Likewise.
1782 * memattr.c: Likewise.
1783 * memory-map.c: Likewise.
1784 * mep-tdep.c: Likewise.
1785 * mi/mi-cmd-break.c: Likewise.
1786 * mi/mi-cmd-disas.c: Likewise.
1787 * mi/mi-cmd-env.c: Likewise.
1788 * mi/mi-cmd-stack.c: Likewise.
1789 * mi/mi-cmd-var.c: Likewise.
1790 * mi/mi-cmds.c: Likewise.
1791 * mi/mi-console.c: Likewise.
1792 * mi/mi-getopt.c: Likewise.
1793 * mi/mi-interp.c: Likewise.
1794 * mi/mi-main.c: Likewise.
1795 * mi/mi-parse.c: Likewise.
1796 * microblaze-rom.c: Likewise.
1797 * microblaze-tdep.c: Likewise.
1798 * mingw-hdep.c: Likewise.
1799 * minidebug.c: Likewise.
1800 * minsyms.c: Likewise.
1801 * mips-irix-tdep.c: Likewise.
1802 * mips-linux-tdep.c: Likewise.
1803 * mips-tdep.c: Likewise.
1804 * mips64obsd-tdep.c: Likewise.
1805 * mipsnbsd-tdep.c: Likewise.
1806 * mipsread.c: Likewise.
1807 * mn10300-linux-tdep.c: Likewise.
1808 * mn10300-tdep.c: Likewise.
1809 * monitor.c: Likewise.
1810 * moxie-tdep.c: Likewise.
1811 * mt-tdep.c: Likewise.
1812 * nat/linux-btrace.c: Likewise.
1813 * nat/linux-osdata.c: Likewise.
1814 * nat/linux-procfs.c: Likewise.
1815 * nat/linux-ptrace.c: Likewise.
1816 * nat/linux-waitpid.c: Likewise.
1817 * nbsd-tdep.c: Likewise.
1818 * nios2-linux-tdep.c: Likewise.
1819 * nto-procfs.c: Likewise.
1820 * nto-tdep.c: Likewise.
1821 * objc-lang.c: Likewise.
1822 * objfiles.c: Likewise.
1823 * opencl-lang.c: Likewise.
1824 * osabi.c: Likewise.
1825 * osdata.c: Likewise.
1826 * p-exp.y: Likewise.
1827 * p-lang.c: Likewise.
1828 * p-typeprint.c: Likewise.
1829 * parse.c: Likewise.
1830 * posix-hdep.c: Likewise.
1831 * ppc-linux-nat.c: Likewise.
1832 * ppc-sysv-tdep.c: Likewise.
1833 * ppcfbsd-tdep.c: Likewise.
1834 * ppcnbsd-tdep.c: Likewise.
1835 * ppcobsd-tdep.c: Likewise.
1836 * printcmd.c: Likewise.
1837 * procfs.c: Likewise.
1838 * prologue-value.c: Likewise.
1839 * python/py-auto-load.c: Likewise.
1840 * python/py-gdb-readline.c: Likewise.
1841 * ravenscar-thread.c: Likewise.
1842 * regcache.c: Likewise.
1843 * registry.c: Likewise.
1844 * remote-fileio.c: Likewise.
1845 * remote-m32r-sdi.c: Likewise.
1846 * remote-mips.c: Likewise.
1847 * remote-notif.c: Likewise.
1848 * remote-sim.c: Likewise.
1849 * remote.c: Likewise.
1850 * reverse.c: Likewise.
1851 * rs6000-aix-tdep.c: Likewise.
1852 * ser-base.c: Likewise.
1853 * ser-go32.c: Likewise.
1854 * ser-mingw.c: Likewise.
1855 * ser-pipe.c: Likewise.
1856 * ser-tcp.c: Likewise.
1857 * ser-unix.c: Likewise.
1858 * serial.c: Likewise.
1859 * sh-tdep.c: Likewise.
1860 * sh64-tdep.c: Likewise.
1861 * shnbsd-tdep.c: Likewise.
1863 * sol-thread.c: Likewise.
1864 * solib-dsbt.c: Likewise.
1865 * solib-frv.c: Likewise.
1866 * solib-osf.c: Likewise.
1867 * solib-som.c: Likewise.
1868 * solib-spu.c: Likewise.
1869 * solib-target.c: Likewise.
1870 * solib.c: Likewise.
1871 * somread.c: Likewise.
1872 * source.c: Likewise.
1873 * sparc-nat.c: Likewise.
1874 * sparc-sol2-tdep.c: Likewise.
1875 * sparc-tdep.c: Likewise.
1876 * sparc64-tdep.c: Likewise.
1877 * sparc64fbsd-tdep.c: Likewise.
1878 * sparc64nbsd-tdep.c: Likewise.
1879 * sparcnbsd-tdep.c: Likewise.
1880 * spu-linux-nat.c: Likewise.
1881 * spu-multiarch.c: Likewise.
1882 * spu-tdep.c: Likewise.
1883 * stabsread.c: Likewise.
1884 * stack.c: Likewise.
1885 * std-regs.c: Likewise.
1886 * symfile.c: Likewise.
1887 * symmisc.c: Likewise.
1888 * symtab.c: Likewise.
1889 * target.c: Likewise.
1890 * thread.c: Likewise.
1891 * tilegx-linux-nat.c: Likewise.
1892 * tilegx-tdep.c: Likewise.
1894 * tracepoint.c: Likewise.
1895 * tui/tui-command.c: Likewise.
1896 * tui/tui-data.c: Likewise.
1897 * tui/tui-disasm.c: Likewise.
1898 * tui/tui-file.c: Likewise.
1899 * tui/tui-layout.c: Likewise.
1900 * tui/tui-out.c: Likewise.
1901 * tui/tui-regs.c: Likewise.
1902 * tui/tui-source.c: Likewise.
1903 * tui/tui-stack.c: Likewise.
1904 * tui/tui-win.c: Likewise.
1905 * tui/tui-windata.c: Likewise.
1906 * tui/tui-winsource.c: Likewise.
1907 * typeprint.c: Likewise.
1908 * ui-file.c: Likewise.
1909 * ui-out.c: Likewise.
1910 * user-regs.c: Likewise.
1911 * utils.c: Likewise.
1912 * v850-tdep.c: Likewise.
1913 * valarith.c: Likewise.
1914 * valops.c: Likewise.
1915 * valprint.c: Likewise.
1916 * value.c: Likewise.
1917 * varobj.c: Likewise.
1918 * vax-tdep.c: Likewise.
1919 * vaxnbsd-tdep.c: Likewise.
1920 * vaxobsd-tdep.c: Likewise.
1921 * windows-nat.c: Likewise.
1922 * xcoffread.c: Likewise.
1923 * xml-support.c: Likewise.
1924 * xstormy16-tdep.c: Likewise.
1925 * xtensa-linux-nat.c: Likewise.
1927 2014-08-07 Gary Benson <gbenson@redhat.com>
1929 * common/common-defs.h: Include gdb_assert.h.
1930 * aarch64-tdep.c: Do not include gdb_assert.h.
1931 * addrmap.c: Likewise.
1932 * aix-thread.c: Likewise.
1933 * alpha-linux-tdep.c: Likewise.
1934 * alpha-mdebug-tdep.c: Likewise.
1935 * alphanbsd-tdep.c: Likewise.
1936 * amd64-nat.c: Likewise.
1937 * amd64-tdep.c: Likewise.
1938 * amd64bsd-nat.c: Likewise.
1939 * amd64fbsd-nat.c: Likewise.
1940 * amd64fbsd-tdep.c: Likewise.
1941 * amd64nbsd-nat.c: Likewise.
1942 * amd64nbsd-tdep.c: Likewise.
1943 * amd64obsd-nat.c: Likewise.
1944 * amd64obsd-tdep.c: Likewise.
1945 * arch-utils.c: Likewise.
1946 * arm-tdep.c: Likewise.
1947 * armbsd-tdep.c: Likewise.
1949 * bcache.c: Likewise.
1950 * bfin-tdep.c: Likewise.
1951 * blockframe.c: Likewise.
1952 * breakpoint.c: Likewise.
1953 * bsd-kvm.c: Likewise.
1954 * bsd-uthread.c: Likewise.
1955 * buildsym.c: Likewise.
1956 * c-exp.y: Likewise.
1957 * c-lang.c: Likewise.
1958 * charset.c: Likewise.
1959 * cleanups.c: Likewise.
1960 * cli-out.c: Likewise.
1961 * cli/cli-decode.c: Likewise.
1962 * cli/cli-dump.c: Likewise.
1963 * cli/cli-logging.c: Likewise.
1964 * cli/cli-script.c: Likewise.
1965 * cli/cli-utils.c: Likewise.
1966 * coffread.c: Likewise.
1967 * common/common-utils.c: Likewise.
1968 * common/queue.h: Likewise.
1969 * common/signals.c: Likewise.
1970 * common/vec.h: Likewise.
1971 * complaints.c: Likewise.
1972 * completer.c: Likewise.
1973 * corelow.c: Likewise.
1974 * cp-abi.c: Likewise.
1975 * cp-name-parser.y: Likewise.
1976 * cp-namespace.c: Likewise.
1977 * cp-support.c: Likewise.
1978 * cris-tdep.c: Likewise.
1979 * dbxread.c: Likewise.
1980 * dictionary.c: Likewise.
1981 * doublest.c: Likewise.
1982 * dsrec.c: Likewise.
1983 * dummy-frame.c: Likewise.
1984 * dwarf2-frame-tailcall.c: Likewise.
1985 * dwarf2-frame.c: Likewise.
1986 * dwarf2expr.c: Likewise.
1987 * dwarf2loc.c: Likewise.
1988 * dwarf2read.c: Likewise.
1990 * event-loop.c: Likewise.
1991 * exceptions.c: Likewise.
1992 * expprint.c: Likewise.
1993 * f-valprint.c: Likewise.
1994 * fbsd-nat.c: Likewise.
1995 * findvar.c: Likewise.
1996 * frame-unwind.c: Likewise.
1997 * frame.c: Likewise.
1998 * frv-tdep.c: Likewise.
1999 * gcore.c: Likewise.
2000 * gdb-dlfcn.c: Likewise.
2001 * gdb_bfd.c: Likewise.
2002 * gdbarch.c: Likewise.
2003 * gdbarch.sh: Likewise.
2004 * gdbtypes.c: Likewise.
2005 * gnu-nat.c: Likewise.
2006 * gnu-v3-abi.c: Likewise.
2007 * go-lang.c: Likewise.
2008 * guile/scm-exception.c: Likewise.
2009 * guile/scm-gsmob.c: Likewise.
2010 * guile/scm-lazy-string.c: Likewise.
2011 * guile/scm-math.c: Likewise.
2012 * guile/scm-pretty-print.c: Likewise.
2013 * guile/scm-safe-call.c: Likewise.
2014 * guile/scm-utils.c: Likewise.
2015 * guile/scm-value.c: Likewise.
2016 * h8300-tdep.c: Likewise.
2017 * hppa-hpux-nat.c: Likewise.
2018 * hppa-tdep.c: Likewise.
2019 * hppanbsd-tdep.c: Likewise.
2020 * hppaobsd-tdep.c: Likewise.
2021 * i386-darwin-nat.c: Likewise.
2022 * i386-darwin-tdep.c: Likewise.
2023 * i386-nto-tdep.c: Likewise.
2024 * i386-tdep.c: Likewise.
2025 * i386bsd-nat.c: Likewise.
2026 * i386fbsd-tdep.c: Likewise.
2027 * i386gnu-nat.c: Likewise.
2028 * i386nbsd-tdep.c: Likewise.
2029 * i386obsd-tdep.c: Likewise.
2030 * i387-tdep.c: Likewise.
2031 * ia64-libunwind-tdep.c: Likewise.
2032 * ia64-tdep.c: Likewise.
2033 * inf-ptrace.c: Likewise.
2034 * inf-ttrace.c: Likewise.
2035 * infcall.c: Likewise.
2036 * infcmd.c: Likewise.
2037 * infrun.c: Likewise.
2038 * inline-frame.c: Likewise.
2039 * interps.c: Likewise.
2040 * jv-lang.c: Likewise.
2041 * jv-typeprint.c: Likewise.
2042 * linux-fork.c: Likewise.
2043 * linux-nat.c: Likewise.
2044 * linux-thread-db.c: Likewise.
2045 * m32c-tdep.c: Likewise.
2046 * m32r-linux-nat.c: Likewise.
2047 * m32r-tdep.c: Likewise.
2048 * m68k-tdep.c: Likewise.
2049 * m68kbsd-nat.c: Likewise.
2050 * m68kbsd-tdep.c: Likewise.
2051 * m88k-tdep.c: Likewise.
2052 * machoread.c: Likewise.
2053 * macroexp.c: Likewise.
2054 * macrotab.c: Likewise.
2055 * maint.c: Likewise.
2056 * mdebugread.c: Likewise.
2057 * memory-map.c: Likewise.
2058 * mep-tdep.c: Likewise.
2059 * mi/mi-common.c: Likewise.
2060 * microblaze-tdep.c: Likewise.
2061 * mingw-hdep.c: Likewise.
2062 * mips-linux-nat.c: Likewise.
2063 * mips-linux-tdep.c: Likewise.
2064 * mips-tdep.c: Likewise.
2065 * mips64obsd-tdep.c: Likewise.
2066 * mipsnbsd-tdep.c: Likewise.
2067 * mn10300-linux-tdep.c: Likewise.
2068 * mn10300-tdep.c: Likewise.
2069 * moxie-tdep.c: Likewise.
2070 * mt-tdep.c: Likewise.
2071 * nat/linux-btrace.c: Likewise.
2072 * nat/linux-osdata.c: Likewise.
2073 * nat/linux-ptrace.c: Likewise.
2074 * nat/mips-linux-watch.c: Likewise.
2075 * nios2-linux-tdep.c: Likewise.
2076 * nios2-tdep.c: Likewise.
2077 * objc-lang.c: Likewise.
2078 * objfiles.c: Likewise.
2079 * obsd-nat.c: Likewise.
2080 * opencl-lang.c: Likewise.
2081 * osabi.c: Likewise.
2082 * parse.c: Likewise.
2083 * ppc-linux-nat.c: Likewise.
2084 * ppc-sysv-tdep.c: Likewise.
2085 * ppcfbsd-nat.c: Likewise.
2086 * ppcfbsd-tdep.c: Likewise.
2087 * ppcnbsd-nat.c: Likewise.
2088 * ppcnbsd-tdep.c: Likewise.
2089 * ppcobsd-nat.c: Likewise.
2090 * ppcobsd-tdep.c: Likewise.
2091 * printcmd.c: Likewise.
2092 * procfs.c: Likewise.
2093 * prologue-value.c: Likewise.
2094 * psymtab.c: Likewise.
2095 * python/py-lazy-string.c: Likewise.
2096 * python/py-value.c: Likewise.
2097 * regcache.c: Likewise.
2098 * reggroups.c: Likewise.
2099 * registry.c: Likewise.
2100 * remote-sim.c: Likewise.
2101 * remote.c: Likewise.
2102 * rs6000-aix-tdep.c: Likewise.
2103 * rs6000-tdep.c: Likewise.
2104 * s390-linux-tdep.c: Likewise.
2105 * score-tdep.c: Likewise.
2106 * ser-base.c: Likewise.
2107 * ser-mingw.c: Likewise.
2108 * sh-tdep.c: Likewise.
2109 * sh64-tdep.c: Likewise.
2110 * solib-darwin.c: Likewise.
2111 * solib-spu.c: Likewise.
2112 * solib-svr4.c: Likewise.
2113 * source.c: Likewise.
2114 * sparc-nat.c: Likewise.
2115 * sparc-sol2-tdep.c: Likewise.
2116 * sparc-tdep.c: Likewise.
2117 * sparc64-sol2-tdep.c: Likewise.
2118 * sparc64-tdep.c: Likewise.
2119 * sparc64fbsd-tdep.c: Likewise.
2120 * sparc64nbsd-tdep.c: Likewise.
2121 * sparc64obsd-tdep.c: Likewise.
2122 * sparcnbsd-tdep.c: Likewise.
2123 * sparcobsd-tdep.c: Likewise.
2124 * spu-multiarch.c: Likewise.
2125 * spu-tdep.c: Likewise.
2126 * stabsread.c: Likewise.
2127 * stack.c: Likewise.
2128 * symfile.c: Likewise.
2129 * symtab.c: Likewise.
2130 * target-descriptions.c: Likewise.
2131 * target-memory.c: Likewise.
2132 * target.c: Likewise.
2133 * tic6x-linux-tdep.c: Likewise.
2134 * tic6x-tdep.c: Likewise.
2135 * tilegx-linux-nat.c: Likewise.
2136 * tilegx-tdep.c: Likewise.
2138 * tramp-frame.c: Likewise.
2139 * tui/tui-out.c: Likewise.
2140 * tui/tui-winsource.c: Likewise.
2141 * ui-out.c: Likewise.
2142 * user-regs.c: Likewise.
2143 * utils.c: Likewise.
2144 * v850-tdep.c: Likewise.
2145 * valops.c: Likewise.
2146 * value.c: Likewise.
2147 * varobj.c: Likewise.
2148 * vax-nat.c: Likewise.
2149 * xml-syscall.c: Likewise.
2150 * xml-tdesc.c: Likewise.
2151 * xstormy16-tdep.c: Likewise.
2152 * xtensa-linux-nat.c: Likewise.
2153 * xtensa-tdep.c: Likewise.
2155 2014-08-07 Gary Benson <gbenson@redhat.com>
2157 * common/common-defs.h: Include common-utils.h.
2158 * defs.h: Do not include common-utils.h.
2159 * common/gdb_assert.h: Likewise.
2160 * darwin-nat.h: Likewise.
2161 * nat/linux-btrace.c: Likewise.
2162 * target/waitstatus.h: Likewise.
2164 2014-08-07 Gary Benson <gbenson@redhat.com>
2166 * common/common-defs.h: Include ptid.h.
2167 * defs.h: Do not include ptid.h.
2168 * inferior.h: Likewise.
2169 * infrun.h: Likewise.
2170 * nat/linux-btrace.h: Likewise.
2171 * nat/linux-osdata.h: Likewise.
2172 * target/waitstatus.h: Likewise.
2174 2014-08-07 Gary Benson <gbenson@redhat.com>
2176 * common/common-defs.h: Include gdb_locale.h.
2177 * defs.h: Do not include gdb_locale.h.
2179 2014-08-07 Gary Benson <gbenson@redhat.com>
2181 * common/common-defs.h: Include gdb/signals.h.
2182 * defs.h: Do not include gdb/signals.h.
2184 2014-08-07 Gary Benson <gbenson@redhat.com>
2186 * common/common-defs.h: Include pathmax.h.
2187 * defs.h: Do not include pathmax.h.
2189 2014-08-07 Gary Benson <gbenson@redhat.com>
2191 * common/common-defs.h: Include libiberty.h.
2192 * defs.h: Do not include libiberty.h.
2193 * common/queue.h: Likewise.
2194 * cp-name-parser.y: Likewise.
2195 * mi/mi-cmd-catch.c: Likewise.
2196 * python/python.c: Likewise.
2198 2014-08-07 Gary Benson <gbenson@redhat.com>
2200 * common/common-defs.h: Include ansidecl.h.
2201 * defs.h: Do not include ansidecl.h.
2202 * common/buffer.h: Likewise.
2203 * common/common-utils.h: Likewise.
2205 2014-08-07 Gary Benson <gbenson@redhat.com>
2207 * common/common-defs.h: Include stddef.h.
2208 * defs.h: Do not include stddef.h.
2209 * common/common-utils.h: Likewise.
2210 * amd64fbsd-nat.c: Likewise.
2211 * bcache.c: Likewise.
2212 * charset.c: Likewise.
2213 * common/buffer.h: Likewise.
2214 * common/vec.h: Likewise.
2215 * i386bsd-nat.c: Likewise.
2216 * nat/linux-btrace.h: Likewise.
2217 * ppcfbsd-nat.c: Likewise.
2218 * ppcnbsd-tdep.h: Likewise.
2219 * ppcobsd-nat.c: Likewise.
2220 * ppcobsd-tdep.h: Likewise.
2221 * python/py-gdb-readline.c: Likewise.
2223 2014-08-07 Gary Benson <gbenson@redhat.com>
2225 * common/common-defs.h: Include stdarg.h.
2226 * defs.h: Do not include stdarg.h.
2227 * ada-lang.c: Likewise.
2228 * common/common-utils.h: Likewise.
2229 * guile/scm-string.c: Likewise.
2230 * guile/scm-utils.c: Likewise.
2231 * m32c-tdep.c: Likewise.
2233 2014-08-07 Gary Benson <gbenson@redhat.com>
2235 * common/common-defs.h: Include stdlib.h.
2236 * defs.h: Do not include stdlib.h.
2237 * addrmap.c: Likewise.
2238 * bcache.c: Likewise.
2239 * common/buffer.c: Likewise.
2240 * common/common-utils.c: Likewise.
2241 * cp-name-parser.y: Likewise.
2242 * go32-nat.c: Likewise.
2243 * mn10300-linux-tdep.c: Likewise.
2244 * nat/linux-osdata.c: Likewise.
2245 * tui/tui.c: Likewise.
2246 * windows-nat.c: Likewise.
2248 2014-08-07 Gary Benson <gbenson@redhat.com>
2250 * common/common-defs.h: Include stdio.h.
2251 * defs.h: Do not include stdio.h.
2252 * ada-lang.c: Likewise.
2253 * common/buffer.c: Likewise.
2254 * common/common-utils.c: Likewise.
2255 * cp-name-parser.y: Likewise.
2256 * gnu-nat.c: Likewise.
2257 * go32-nat.c: Likewise.
2258 * i386gnu-nat.c: Likewise.
2259 * proc-api.c: Likewise.
2260 * proc-events.c: Likewise.
2261 * proc-flags.c: Likewise.
2262 * proc-why.c: Likewise.
2263 * python/python-internal.h: Likewise.
2264 * target-memory.c: Likewise.
2265 * tui/tui-io.c: Likewise.
2266 * tui/tui.c: Likewise.
2268 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2270 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2271 (scan_dyntag_auxv): Same.
2273 2014-08-06 Yao Qi <yao@codesourcery.com>
2275 * amd64-linux-nat.c: Remove duplicated include
2277 * i386-linux-nat.c: Likewise.
2279 2014-08-06 Yao Qi <yao@codesourcery.com>
2281 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2282 operand" with "Special opcode" in comments.
2284 2014-08-05 Gary Benson <gbenson@redhat.com>
2286 * interps.c (initialize_interps): Remove prototype.
2287 (interpreter_initialized): Remove static global.
2288 (interp_add): Do not call initialize_interps.
2289 (initialize_interps): Remove function.
2291 2014-08-05 Gary Benson <gbenson@redhat.com>
2293 * utils.c (vwarning): Remove spurious va_end.
2295 2014-08-05 Alan Modra <amodra@gmail.com>
2297 * charset.c (convert_between_encodings): Cast result of obstack_base.
2298 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2299 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2300 (read_unwind_info): Use size_t for some locals.
2301 * jit.c (finalize_symtab): Likewise.
2302 * utils.c (hashtab_obstack_allocate): Likewise.
2303 * symmisc.c (print_objfile_statistics): Update format strings.
2305 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2307 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2308 (Changes in GDB 7.8): ... here.
2310 2014-08-04 Tom Tromey <tromey@redhat.com>
2312 * target.c (set_targetdebug): New function.
2313 (initialize_targets): Pass set_targetdebug when creating "set
2316 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2318 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2319 if detecting a variable-sized field that is not the last field.
2320 Fix struct type length computation.
2322 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2324 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2327 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2329 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2330 Remove "+ 8" offset in computation of CHAIN_VMA.
2332 2014-07-31 Doug Evans <dje@google.com>
2334 * inflow.c (child_terminal_inferior): Add comment.
2335 (child_terminal_ours_for_output): Add comment.
2336 (child_terminal_ours): Add comment.
2337 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2338 (linux_nat_terminal_ours): Add comment.
2340 2014-07-31 Gary Benson <gbenson@redhat.com>
2342 * common/btrace-common.h: Do not include defs.h or server.h.
2343 * nat/mips-linux-watch.h: Likewise.
2344 * gdb-dlfcn.h: Do not include defs.h.
2345 * tracefile.h: Likewise.
2347 2014-07-30 Roland McGrath <mcgrathr@google.com>
2349 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2351 2014-07-30 Tom Tromey <tromey@redhat.com>
2353 * bsd-kvm.c (bsd_kvm_open): Constify.
2354 * corelow.c (core_open): Constify.
2355 * ctf.c (ctf_open): Constify.
2356 * dbug-rom.c (dbug_open): Constify.
2357 * exec.c (exec_open): Constify.
2358 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2359 * microblaze-rom.c (picobug_open): Constify.
2360 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2362 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2363 * record-btrace.c (record_btrace_open): Constify.
2364 * record-full.c (record_full_core_open_1, record_full_open_1)
2365 (record_full_open): Constify.
2366 * remote-m32r-sdi.c (m32r_open): Constify.
2367 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2368 (rockhopper_open, lsi_open): Constify.
2369 * remote-sim.c (gdbsim_open): Constify.
2370 * remote.c (remote_open, extended_remote_open, remote_open_1):
2372 * target.h (struct target_ops) <to_open>: Make "arg" const.
2373 * tracefile-tfile.c (tfile_open): Constify.
2375 2014-07-30 Tom Tromey <tromey@redhat.com>
2377 * breakpoint.c (map_breakpoint_numbers): Update.
2378 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2379 (get_number_const): New function.
2380 (get_number): Rewrite using get_number_const.
2381 (init_number_or_range): Make "string" const.
2382 (number_is_in_list): Make "list" const.
2383 * cli/cli-utils.h (get_number_const): Declare.
2384 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2385 (init_number_or_range, number_is_in_list): Update.
2386 * printcmd.c (map_display_numbers): Update.
2387 * value.c (value_from_history_ref): Constify.
2388 * value.h (value_from_history_ref): Update.
2390 2014-07-30 Tom Tromey <tromey@redhat.com>
2392 * corefile.c (hook_type, call_extra_exec_file_hooks)
2393 (specify_exec_file_hook): Constify.
2394 * exec.c (exec_file_attach): Make "filename" const.
2395 * gdbcore.h (deprecated_exec_file_display_hook)
2396 (specify_exec_file_hook, exec_file_attach): Constify.
2397 * main.c (captured_main): Use catch_command_errors_const.
2399 2014-07-30 Tom Tromey <tromey@redhat.com>
2401 * target.c (open_target): New function.
2402 (add_target_with_completer, add_deprecated_target_alias): Use
2403 set_cmd_sfunc, set_cmd_context.
2404 (debug_to_open): Remove.
2405 (setup_target_debug): Update.
2407 2014-07-30 Yao Qi <yao@codesourcery.com>
2409 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2411 * parse.c (exp_iterate): Update comments.
2413 2014-07-30 Gary Benson <gbenson@redhat.com>
2415 * common/common-defs.h: New file.
2416 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2417 * defs.h: Include common-defs.h.
2418 Do not include config.h or build-gnulib/config.h.
2420 2014-07-30 Gary Benson <gbenson@redhat.com>
2422 * common/common-utils.h: Do not include config.h.
2423 * nat/linux-btrace.h: Likewise.
2425 2014-07-30 Gary Benson <gbenson@redhat.com>
2427 * btrace.c: Include defs.h.
2428 * common/ptid.c: Include defs.h or server.h as appropriate.
2429 * nat/mips-linux-watch.c: Likewise.
2431 2014-07-29 Tom Tromey <tromey@redhat.com>
2433 * target.c (target_is_pushed): Simplify.
2435 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2439 2014-07-29 Yao Qi <yao@codesourcery.com>
2442 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2444 2014-07-28 Doug Evans <xdje42@gmail.com>
2447 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2448 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2451 2014-07-28 Will Newton <will.newton@linaro.org>
2453 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2454 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2455 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2456 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2457 (THUMB2_EABI_SYSCALL): Likewise.
2458 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2460 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2461 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2463 2014-07-27 Doug Evans <xdje42@gmail.com>
2465 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2467 2014-07-27 Doug Evans <xdje42@gmail.com>
2469 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2471 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2472 Doug Evans <xdje42@gmail.com>
2475 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2476 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2477 * configure.ac: Try to use guild to compile an scm file, if it fails
2478 then disable guile support.
2479 * configure: Regenerate.
2480 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2482 (GUILE_COMPILED_FILES): New variable.
2483 (GUILE_FILES) Update.
2484 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2485 (stamp-guile): Compile scm files.
2486 * guile/guile.c (boot_guile_support): New function.
2487 (standard_throw_args_p): New function.
2488 (print_standard_throw_error, print_throw_error): New functions.
2489 (handle_boot_error): New function.
2490 (initialize_scheme_side): Rewrite to call boot_guile_support.
2491 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2492 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2494 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2495 Doug Evans <xdje42@gmail.com>
2498 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2499 * guile/lib/gdb/support.scm: New file.
2500 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2501 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2503 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2505 (%assert-type): Ditto, and renamed to assert-type.
2506 (%exception-print-style): Delete.
2508 2014-07-26 Doug Evans <xdje42@gmail.com>
2511 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2512 * configure: Regenerate.
2513 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2515 (PYTHON_FILES): New variable.
2516 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2517 (GUILE_FILES): New variable.
2518 (stamp-python, install-python, uninstall-python): Handle empty
2520 (stamp-guile, install-guile, uninstall-guile): Ditto.
2522 2014-07-26 Doug Evans <xdje42@gmail.com>
2525 * guile/lib/gdb.scm (pretty-printers): Export.
2526 (set-pretty-printers!): Export.
2527 * guile/lib/gdb/printing.scm (gdb module): Update.
2528 (prepend-pretty-printer!, append-pretty-printer!): Update.
2529 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2530 (pretty_printer_list_var): Delete.
2531 (pretty_printer_list): New static global.
2532 (gdbscm_pretty_printers): New function.
2533 (gdbscm_set_pretty_printers_x): New function.
2534 (ppscm_find_pretty_printer_from_gdb): Update.
2535 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2536 (gdbscm_initialize_pretty_printers): Update.
2538 2014-07-26 Doug Evans <xdje42@gmail.com>
2541 * configure.ac: Add check for header gc/gc.h.
2542 Add check for function setenv.
2543 * configure: Regenerate.
2544 * config.in: Regenerate.
2545 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2547 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2549 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2550 variation in gdbarch matching.
2552 2014-07-25 Tom Tromey <tromey@redhat.com>
2554 * exec.c (using_exec_ops): Remove.
2555 (exec_close_1): Update. Remove extraneous block, reindent.
2556 (add_target_sections): Use target_is_pushed.
2558 2014-07-25 Pedro Alves <palves@redhat.com>
2560 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2561 * monitor.c (monitor_create_inferior): Likewise.
2562 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2563 * remote-sim.c (gdbsim_create_inferior): Likewise.
2564 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2565 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2566 * windows-nat.c (do_initial_windows_stuff): Likewise.
2568 2014-07-25 Pedro Alves <palves@redhat.com>
2570 * NEWS: Mention signal passing and "signal" command changes.
2571 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2573 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2575 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2576 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2577 (jump_command): Adjust clear_proceed_status call.
2578 (signal_command): Warn if other thread that are resumed have
2579 signals that will be delivered. Adjust clear_proceed_status call.
2580 (until_next_command, finish_command)
2581 (proceed_after_attach_callback, attach_command_post_wait)
2582 (attach_command): Adjust clear_proceed_status call.
2583 * infrun.c (proceed_after_vfork_done): Likewise.
2584 (proceed_after_attach_callback): Adjust comment.
2585 (clear_proceed_status_thread): Clear stop_signal if not in pass
2587 (clear_proceed_status_callback): Delete.
2588 (clear_proceed_status): New 'step' parameter. Only clear the
2589 proceed status of threads the command being prepared is about to
2591 (proceed): If passed in an explicit signal, override stop_signal
2592 with it. Don't pass the last stop signal to the thread we're
2594 (init_wait_for_inferior): Adjust clear_proceed_status call.
2595 (switch_back_to_stepped_thread): Clear the signal if it should not
2597 * infrun.h (clear_proceed_status): New 'step' parameter.
2598 (user_visible_resume_ptid): Add comment.
2599 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2600 signal is in pass state.
2601 * remote.c (append_pending_thread_resumptions): Likewise.
2602 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2604 2014-07-25 Tom Tromey <tromey@redhat.com>
2606 * target.h (target_stopped_data_address)
2607 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2610 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2612 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2614 (avr_pointer_to_address): Likewise.
2616 2014-07-24 Tom Tromey <tromey@redhat.com>
2618 * monitor.c (compile_pattern): Update.
2619 * target.h (struct target_ops) <to_shortname, to_longname,
2622 2014-07-24 Tom Tromey <tromey@redhat.com>
2624 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2625 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2626 (add_info_alias, add_com): Make "doc" const.
2627 (print_doc_line): Make "str" const.
2628 (delete_cmd): Update.
2629 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2630 (print_doc_line): Update.
2631 * cli/cli-script.c (document_command): Update.
2632 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2633 (add_com, add_info, add_info_alias): Update.
2634 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2635 * python/py-cmd.c (cmdpy_destroyer): Update.
2637 2014-07-24 Tom Tromey <tromey@redhat.com>
2639 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2640 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2641 (help_cmd_list): Constify.
2642 (lookup_cmd): Update.
2643 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2645 (help_cmd_list, apropos_cmd): Update.
2646 * cli/cli-script.c (show_user): Update.
2647 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2648 * cli/cli-setshow.h (cmd_show_list): Update.
2649 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2650 (cmd_show_list): Update.
2651 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2652 * python/py-cmd.c (cmdpy_destroyer): Update.
2654 2014-07-24 Tom Tromey <tromey@redhat.com>
2656 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2657 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2659 * command.h (deprecate_cmd): Update.
2660 * maint.c (maintenance_do_deprecate): Add casts.
2662 2014-07-24 Tom Tromey <tromey@redhat.com>
2664 * cli/cli-decode.c (help_cmd): Make parameter "const".
2665 * cli/cli-decode.h (help_cmd): Update.
2667 2014-07-24 Tom Tromey <tromey@redhat.com>
2669 * stack.c (up_silently_base, down_silently_base): Make argument
2672 2014-07-24 Tom Tromey <tromey@redhat.com>
2674 * solib.c (solib_add): Make "pattern" const.
2675 * solib.h (solib_add): Update.
2677 2014-07-24 Tom Tromey <tromey@redhat.com>
2679 * remote.c (remote_serial_open, print_packet, putpkt)
2680 (putpkt_binary): Constify.
2681 * remote.h (putpkt): Update.
2683 2014-07-24 Tom Tromey <tromey@redhat.com>
2685 * monitor.c (monitor_open): Make "args" const.
2686 * monitor.h (monitor_open): Update.
2688 2014-07-24 Tom Tromey <tromey@redhat.com>
2690 * maint.c (match_bfd_flags): Make "string" const.
2691 (print_bfd_section_info): Remove casts.
2692 (print_objfile_section_info): Make "string" const.
2694 2014-07-24 Tom Tromey <tromey@redhat.com>
2696 * inf-child.c (inf_child_open_target): Make "arg" const.
2697 * inf-child.h (inf_child_open_target): Update.
2699 2014-07-24 Tom Tromey <tromey@redhat.com>
2701 * environ.c (unset_in_environ): Make "var" const.
2702 * environ.h (unset_in_environ): Update.
2704 2014-07-24 Tom Tromey <tromey@redhat.com>
2706 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2708 (scan_filename_with_cleanup): Likewise.
2709 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2710 Make arguments const.
2711 (restore_command): Update.
2713 2014-07-24 Pedro Alves <palves@redhat.com>
2715 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2717 2014-07-24 Tom Tromey <tromey@redhat.com>
2718 Gary Benson <gbenson@redhat.com>
2720 * nat/linux-ptrace.c (additional_flags): New global.
2721 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2722 additional_flags; don't check GDBSERVER.
2723 (linux_ptrace_set_additional_flags): New function.
2724 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2726 * linux-nat.c (_initialize_linux_nat): Call
2727 linux_ptrace_set_additional_flags.
2729 2014-07-24 Tom Tromey <tromey@redhat.com>
2731 * make-target-delegates (munge_type, write_debugmethod): New
2733 (debug_names): New global.
2734 ($TARGET_DEBUG_PRINTER): New global.
2735 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2737 Write debug methods. Generate init_debug_target.
2738 * target-debug.h: New file.
2739 * target-delegates.c: Rebuild.
2740 * target.c: Include target-debug.h.
2741 (debug_target): Hoist definition.
2742 (target_kill, target_get_section_table, target_memory_map)
2743 (target_flash_erase, target_flash_done, target_detach)
2744 (target_disconnect, target_wait, target_resume)
2745 (target_pass_signals, target_program_signals, target_follow_fork)
2746 (target_mourn_inferior, target_search_memory)
2747 (target_thread_address_space, target_close)
2748 (target_find_new_threads, target_core_of_thread)
2749 (target_verify_memory, target_insert_mask_watchpoint)
2750 (target_remove_mask_watchpoint): Remove targetdebug code.
2751 (debug_to_post_attach, debug_to_prepare_to_store)
2752 (debug_to_files_info, debug_to_insert_breakpoint)
2753 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2754 (debug_to_region_ok_for_hw_watchpoint)
2755 (debug_to_can_accel_watchpoint_condition)
2756 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2757 (debug_to_watchpoint_addr_within_range)
2758 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2759 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2760 (debug_to_terminal_init, debug_to_terminal_inferior)
2761 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2762 (debug_to_terminal_save_ours, debug_to_terminal_info)
2763 (debug_to_load, debug_to_post_startup_inferior)
2764 (debug_to_insert_fork_catchpoint)
2765 (debug_to_remove_fork_catchpoint)
2766 (debug_to_insert_vfork_catchpoint)
2767 (debug_to_remove_vfork_catchpoint)
2768 (debug_to_insert_exec_catchpoint)
2769 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2770 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2771 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2772 (setup_target_debug): Call init_debug_target.
2773 * target.h (TARGET_DEBUG_PRINTER): New macro.
2774 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2775 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2777 2014-07-24 Gary Benson <gbenson@redhat.com>
2779 * exceptions.h (throw_vfatal): Renamed to...
2780 (throw_vquit): New declaration.
2781 (throw_quit): Likewise.
2782 * exceptions.c (throw_vfatal): Renamed to...
2783 (throw_vquit): New function.
2784 (throw_quit): Likewise.
2785 (throw_error): Call throw_verror rather than throw_it.
2786 * utils.h (vfatal): Removed.
2788 * utils.c (vfatal): Removed.
2790 (internal_verror): Replaced call to fatal with call to throw_quit.
2791 (quit): Replaced calls to fatal with calls to throw_quit.
2793 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2795 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2798 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2800 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2801 less than zero in conditional expression.
2803 2014-07-23 Tom Tromey <tromey@redhat.com>
2805 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2806 ($INTRO_PART): Don't match whitespace.
2807 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2809 ($METHOD): Add $METHOD_TRAILER.
2811 (scan_target_h): New sub.
2812 Change main loop not to collect state.
2813 * target-delegates.c: Rebuild.
2815 2014-07-23 Gary Benson <gbenson@redhat.com>
2817 * cp-support.c (gdb_demangle): Fix build on systems without
2820 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2822 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2823 for reference entry value target data value.
2825 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2827 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2828 value_available_contents_eq.
2830 2014-07-22 Pedro Alves <palves@redhat.com>
2832 * value.c (allocate_optimized_out_value): Don't mark value as
2835 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2837 * MAINTAINERS (Write After Approval): Update my email address.
2839 2014-07-20 Doug Evans <dje@google.com>
2842 * remote.c (putpkt_binary): Add text to error message.
2844 2014-07-20 Yao Qi <yao@codesourcery.com>
2846 * eval.c: Remove "Chill" from comments.
2847 * gdbtypes.h: Likewise.
2848 * symtab.h: Likewise.
2850 2014-07-20 Yao Qi <yao@codesourcery.com>
2852 * std-operator.def: Update comments to TERNOP_SLICE.
2854 2014-07-20 Yao Qi <yao@codesourcery.com>
2856 * std-operator.def: Remove BINOP_RANGE.
2857 * breakpoint.c (watchpoint_exp_is_const): Update.
2858 * expprint.c (dump_subexp_body_standard): Likewise.
2859 * eval.c (init_array_element): Remove dead code.
2860 (evaluate_subexp_standard): Likewise.
2862 2014-07-20 Yao Qi <yao@codesourcery.com>
2864 * std-operator.def: Remove BINOP_IN.
2865 * breakpoint.c (watchpoint_exp_is_const): Update.
2866 * eval.c (evaluate_subexp_standard): Likewise.
2867 * expprint.c (dump_subexp_body_standard): Likewise.
2869 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2871 * microblaze-tdep.c (microblaze_register_names): Add
2872 the rshr and rslr register names.
2873 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2874 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2875 Use of tdesc_numbered_register. Use of
2876 microblaze_register_g_packet_guesses. Use of
2877 tdesc_use_registers. Use of set_gdbarch_register_type.
2878 (microblaze_register_g_packet_guesses): New.
2879 * microblaze-tdep.h (microblaze_reg_num): Add
2880 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2881 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2882 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2883 * features/microblaze-core.xml: New file.
2884 * features/microblaze-stack-protect.xml: New file.
2885 * features/microblaze-with-stack-protect.c: New file.
2886 * features/microblaze-with-stack-protect.xml: New file.
2887 * features/microblaze.xml: New file.
2888 * features/microblaze.c: New file.
2889 * features/Makefile (microblaze-with-stack-protect): Add
2890 microblaze-with-stack-protect microblaze and microblaze-expedite.
2891 * regformats/microblaze-with-stack-protect.dat: New file.
2892 * regformats/microblaze.dat: New file.
2893 * doc/gdb.texinfo (MicroBlaze Features): Added.
2895 2014-07-18 Tom Tromey <tromey@redhat.com>
2897 * exec.c (exec_ops): Now static.
2898 * exec.h (exec_ops): Don't declare.
2900 2014-07-18 Tom Tromey <tromey@redhat.com>
2902 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2903 to find_target_beneath.
2904 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2905 find_target_beneath.
2906 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2908 2014-07-18 Tom Tromey <tromey@redhat.com>
2911 * utils.c (quit): Use target_supports_terminal_ours.
2912 * target.h (target_supports_terminal_ours): Declare.
2913 * target.c (target_supports_delete_record): Don't check
2914 to_delete_record against NULL.
2915 (target_supports_terminal_ours): New function.
2917 2014-07-18 Tom Tromey <tromey@redhat.com>
2920 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2921 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2922 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2923 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2924 * windows-nat.c (windows_xfer_partial): Always delegate.
2925 * record-btrace.c (record_btrace_xfer_partial): Simplify
2927 (record_btrace_fetch_registers, record_btrace_store_registers)
2928 (record_btrace_prepare_to_store, record_btrace_resume)
2929 (record_btrace_wait, record_btrace_find_new_threads)
2930 (record_btrace_thread_alive): Likewise.
2931 * procfs.c (procfs_xfer_partial): Always delegate.
2932 * corelow.c (core_xfer_partial): Always delegate.
2933 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2935 2014-07-18 Tom Tromey <tromey@redhat.com>
2937 * exec.c (exec_make_note_section): Move earlier.
2939 2014-07-17 Doug Evans <dje@google.com>
2942 * maint.c (count_symtabs_and_blocks): Handle NULL
2943 current_program_space.
2944 (report_command_stats): Check global enabled flag in addition to
2945 recorded enabled flag.
2946 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2948 2014-07-16 Pedro Alves <palves@redhat.com>
2950 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2952 2014-07-16 Tom Tromey <tromey@redhat.com>
2954 * target.h (struct target_ops) <to_delete_record>: Reformat
2957 2014-07-16 Tom Tromey <tromey@redhat.com>
2959 * target-delegates.c: Rebuild.
2961 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2963 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2964 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2965 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2966 (avr_pointer_to_address): Likewise.
2967 (avr_address_class_type_flags): New function.
2968 (avr_address_class_type_flags_to_name): Likewise.
2969 (avr_address_class_name_to_type_flags): Likewise.
2970 (avr_gdbarch_init): Set address_class_type_flags,
2971 address_class_type_flags_to_name and
2972 address_class_name_to_type_flags.
2974 2014-07-15 Pedro Alves <palves@redhat.com>
2976 * linux-nat.c (kill_callback): Save errno and work with saved
2979 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2981 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2983 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2985 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2986 breakpoint support correctly.
2988 2014-07-14 Pedro Alves <palves@redhat.com>
2990 * utils.c (prompt_for_continue): Call target_terminal_ours.
2992 2014-07-14 Pedro Alves <palves@redhat.com>
2994 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2995 catch_errors. Don't re-enable stdin or notify observers where,
2997 (fetch_inferior_event_wrapper): Delete.
2999 2014-07-14 Pedro Alves <palves@redhat.com>
3002 * top.c: Include "inf-loop.h".
3003 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3005 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3007 (gdb_readline_wrapper): Store whether the target is async, and
3010 2014-07-14 Pedro Alves <palves@redhat.com>
3013 * top.c (gdb_readline_wrapper_line): Tweak comment.
3014 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3015 the input handler callback.
3017 2014-07-14 Pedro Alves <palves@redhat.com>
3020 * main.c: Include event-top.h.
3021 (handle_command_errors): New function.
3022 (catch_command_errors, catch_command_errors_const): Use it.
3024 2014-07-14 Pedro Alves <palves@redhat.com>
3026 * exceptions.c (catch_command_errors, catch_command_errors_const):
3028 * exceptions.h (catch_command_errors_ftype)
3029 (catch_command_errors_const_ftype): Moved to main.c.
3030 (catch_command_errors, catch_command_errors_const): Delete
3032 * main.c (catch_command_errors_ftype)
3033 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3034 (catch_command_errors, catch_command_errors_const)): Moved here
3035 from exceptions.c and make static.
3037 2014-07-14 Pedro Alves <palves@redhat.com>
3039 * exceptions.c (print_any_exception): Delete.
3040 (catch_exceptions_with_msg): Use exception_print instead of
3041 print_any_exception.
3042 (catch_errors): Use exception_fprintf instead of
3043 print_any_exception.
3044 (catch_command_errors, catch_command_errors_const): Use
3045 exception_print instead of print_any_exception.
3047 2014-07-14 Pedro Alves <palves@redhat.com>
3049 * infcall.c (run_inferior_call): Set 'sync_execution' while
3050 running the inferior call.
3052 2014-07-14 Pedro Alves <palves@redhat.com>
3054 * value.c (value_contents_equal): Delete function.
3055 * value.h (value_contents_equal): Delete declaration.
3057 2014-07-14 Tom Tromey <tromey@redhat.com>
3060 * gdbtypes.c (is_dynamic_type_internal): New function, from
3062 (is_dynamic_type): Rewrite.
3063 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3064 (resolve_dynamic_struct): Likewise.
3065 (resolve_dynamic_type_internal): New function, from
3066 resolve_dynamic_type.
3067 (resolve_dynamic_type): Rewrite.
3069 2014-07-14 Tom Tromey <tromey@redhat.com>
3071 * target.c (target_require_runnable): Also check record_stratum.
3074 2014-07-11 Yao Qi <yao@codesourcery.com>
3076 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3077 thumb_instruction_restores_sp return true.
3079 2014-07-11 Yao Qi <yao@codesourcery.com>
3081 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3082 (thumb_in_function_epilogue_p): Call
3083 thumb_instruction_restores_sp.
3085 2014-07-11 Yao Qi <yao@codesourcery.com>
3087 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3089 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3091 2014-07-11 Gary Benson <gbenson@redhat.com>
3093 * amd64-linux-nat.c (gdbcore.h): Remove include.
3094 (regset.h): Likewise.
3095 (nat/linux-btrace.h): Likewise.
3096 (btrace.h): Likewise.
3097 (gdb_assert.h): Likewise.
3098 (string.h): Likewise.
3099 (sys/uio.h): Likewise.
3100 (sys/debugreg.h): Likewise.
3101 (sys/syscall.h): Likewise.
3102 (sys/procfs.h): Likewise.
3103 (sys/user.h): Likewise.
3104 (asm/ptrace.h): Likewise.
3105 (i386-nat.h): Likewise.
3106 * i386-linux-nat.c (i386-nat.h): Likewise.
3107 (regset.h): Likewise.
3108 (target.h): Likewise.
3109 (linux-nat.h): Likewise.
3110 (nat/linux-btrace.h): Likewise.
3111 (btrace.h): Likewise.
3112 (gdb_assert.h): Likewise.
3113 (string.h): Likewise.
3114 (sys/uio.h): Likewise.
3115 (sys/user.h): Likewise.
3116 (sys/procfs.h): Likewise.
3117 (sys/reg.h): Likewise.
3118 (sys/debugreg.h): Likewise.
3119 (ORIG_EAX): Remove definition.
3121 2014-07-11 Gary Benson <gbenson@redhat.com>
3123 * i386-linux-nat.h: New file.
3124 * x86-linux-nat.h: Likewise.
3125 * x86-linux-nat.c: Likewise.
3126 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3127 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3128 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3129 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3130 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3131 (PTRACE_SETREGSET): Likewise.
3132 (arch_lwp_info): Now in x86-linux-nat.c.
3133 (have_ptrace_getregset): Now in x86-linux-nat.h.
3134 (x86_linux_dr_get): Now in x86-linux-nat.c.
3135 (x86_linux_dr_set): Likewise.
3136 (x86_linux_dr_get_addr): Likewise.
3137 (x86_linux_dr_get_control): Likewise.
3138 (x86_linux_dr_get_status): Likewise.
3139 (update_debug_registers_callback): Likewise.
3140 (x86_linux_dr_set_control): Likewise.
3141 (x86_linux_dr_set_addr): Likewise.
3142 (x86_linux_prepare_to_resume): Likewise.
3143 (x86_linux_new_thread): Likewise.
3144 (x86_linux_new_fork): Likewise.
3145 (x86_linux_get_thread_area): Likewise.
3146 (super_post_startup_inferior): Likewise.
3147 (x86_linux_child_post_startup_inferior): Likewise.
3148 (AMD64_LINUX_USER64_CS): Likewise.
3149 (AMD64_LINUX_X32_DS): Likewise.
3150 (x86_linux_read_description): Likewise.
3151 (x86_linux_enable_btrace): Likewise.
3152 (x86_linux_disable_btrace): Likewise.
3153 (x86_linux_teardown_btrace): Likewise.
3154 (x86_linux_read_btrace): Likewise.
3155 (x86_linux_create_target): Likewise.
3156 (x86_linux_add_target): Likewise.
3157 * i386-linux-nat.c (x86-linux-nat.h): New include.
3158 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3159 (PTRACE_SETREGSET): Likewise.
3160 (arch_lwp_info): Now in x86-linux-nat.c.
3161 (have_ptrace_getregset): Now in x86-linux-nat.h.
3162 (x86_linux_dr_get): Now in x86-linux-nat.c.
3163 (x86_linux_dr_set): Likewise.
3164 (x86_linux_dr_get_addr): Likewise.
3165 (x86_linux_dr_get_control): Likewise.
3166 (x86_linux_dr_get_status): Likewise.
3167 (update_debug_registers_callback): Likewise.
3168 (x86_linux_dr_set_control): Likewise.
3169 (x86_linux_dr_set_addr): Likewise.
3170 (x86_linux_prepare_to_resume): Likewise.
3171 (x86_linux_new_thread): Likewise.
3172 (x86_linux_new_fork): Likewise.
3173 (x86_linux_get_thread_area): Likewise.
3174 (super_post_startup_inferior): Likewise.
3175 (x86_linux_child_post_startup_inferior): Likewise.
3176 (AMD64_LINUX_USER64_CS): Likewise.
3177 (AMD64_LINUX_X32_DS): Likewise.
3178 (x86_linux_read_description): Likewise.
3179 (x86_linux_enable_btrace): Likewise.
3180 (x86_linux_disable_btrace): Likewise.
3181 (x86_linux_teardown_btrace): Likewise.
3182 (x86_linux_read_btrace): Likewise.
3183 (x86_linux_create_target): Likewise.
3184 (x86_linux_add_target): Likewise.
3186 2014-07-11 Gary Benson <gbenson@redhat.com>
3188 * amd64-linux-nat.c: Comment and whitespace changes.
3189 * i386-linux-nat.c: Comment and whitespace changes.
3191 2014-07-11 Gary Benson <gbenson@redhat.com>
3193 * amd64-linux-nat.c (x86_linux_create_target): New function.
3194 (x86_linux_add_target): Likewise.
3195 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3196 * i386-linux-nat.c (x86_linux_create_target): New function.
3197 (x86_linux_add_target): Likewise.
3198 (_initialize_i386_linux_nat): Delegate to the above new functions.
3200 2014-07-11 Gary Benson <gbenson@redhat.com>
3202 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3203 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3204 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3205 (ps_get_thread_area): Delegate to the above.
3207 2014-07-11 Gary Benson <gbenson@redhat.com>
3209 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3210 x86_linux_read_description. All uses updated. amd64-specific
3211 code conditionalized. Conditionalized i386-specific code added.
3212 Redundant cast removed.
3213 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3214 x86_linux_read_description. All uses updated. i386-specific
3215 code conditionalized. Conditionalized amd64-specific code added.
3216 One sizeof replaced with the actual type it is describing.
3218 2014-07-11 Gary Benson <gbenson@redhat.com>
3220 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3221 x86_linux_dr_get. All uses updated.
3222 (amd64_linux_dr_set): Renamed to
3223 x86_linux_dr_set. All uses updated.
3224 (amd64_linux_dr_get_addr): Renamed to
3225 x86_linux_dr_get_addr. All uses updated.
3226 (amd64_linux_dr_get_control): Renamed to
3227 x86_linux_dr_get_control. All uses updated.
3228 (amd64_linux_dr_get_status): Renamed to
3229 x86_linux_dr_get_status. All uses updated.
3230 (amd64_linux_dr_set_control): Renamed to
3231 x86_linux_dr_set_control. All uses updated.
3232 (amd64_linux_dr_set_addr): Renamed to
3233 x86_linux_dr_set_addr. All uses updated.
3234 (amd64_linux_prepare_to_resume): Renamed to
3235 x86_linux_prepare_to_resume. All uses updated.
3236 (amd64_linux_new_thread): Renamed to
3237 x86_linux_new_thread. All uses updated.
3238 (amd64_linux_new_fork): Renamed to
3239 x86_linux_new_fork. All uses updated.
3240 (amd64_linux_child_post_startup_inferior): Renamed to
3241 x86_linux_child_post_startup_inferior. All uses updated.
3242 (amd64_linux_enable_btrace): Renamed to
3243 x86_linux_enable_btrace. All uses updated.
3244 (amd64_linux_disable_btrace): Renamed to
3245 x86_linux_disable_btrace. All uses updated.
3246 (amd64_linux_teardown_btrace): Renamed to
3247 x86_linux_teardown_btrace. All uses updated.
3248 (amd64_linux_read_btrace): Renamed to
3249 x86_linux_read_btrace. All uses updated.
3250 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3251 x86_linux_dr_get. All uses updated.
3252 (i386_linux_dr_set): Renamed to
3253 x86_linux_dr_set. All uses updated.
3254 (i386_linux_dr_get_addr): Renamed to
3255 x86_linux_dr_get_addr. All uses updated.
3256 (i386_linux_dr_get_control): Renamed to
3257 x86_linux_dr_get_control. All uses updated.
3258 (i386_linux_dr_get_status): Renamed to
3259 x86_linux_dr_get_status. All uses updated.
3260 (i386_linux_dr_set_control): Renamed to
3261 x86_linux_dr_set_control. All uses updated.
3262 (i386_linux_dr_set_addr): Renamed to
3263 x86_linux_dr_set_addr. All uses updated.
3264 (i386_linux_prepare_to_resume): Renamed to
3265 x86_linux_prepare_to_resume. All uses updated.
3266 (i386_linux_new_thread): Renamed to
3267 x86_linux_new_thread. All uses updated.
3268 (i386_linux_new_fork): Renamed to
3269 x86_linux_new_fork. All uses updated.
3270 (i386_linux_child_post_startup_inferior): Renamed to
3271 x86_linux_child_post_startup_inferior. All uses updated.
3272 (i386_linux_enable_btrace): Renamed to
3273 x86_linux_enable_btrace. All uses updated.
3274 (i386_linux_disable_btrace): Renamed to
3275 x86_linux_disable_btrace. All uses updated.
3276 (i386_linux_teardown_btrace): Renamed to
3277 x86_linux_teardown_btrace. All uses updated.
3278 (i386_linux_read_btrace): Renamed to
3279 x86_linux_read_btrace. All uses updated.
3281 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3283 * remote.c (extended_remote_post_attach): New function.
3284 (init_extended_remote_ops): Install it as to_post_attach method.
3286 2014-07-09 Pedro Alves <palves@redhat.com>
3288 * infcmd.c (attach_command_post_wait): Don't call
3289 target_terminal_inferior here.
3290 (attach_command): Call it here instead.
3292 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3294 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3296 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3297 from varobj.c, with additional checks.
3298 (c_varobj_ops): Fill in is_path_expr_parent field.
3299 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3300 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3302 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3304 (varobj_default_is_path_expr_parent): New function.
3305 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3306 (varobj_default_is_path_expr_parent): Declare new function.
3308 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3310 * infcmd.c (finish_backward): Turn internal error into normal error.
3312 2014-07-07 Pedro Alves <palves@redhat.com>
3315 * remote.c (async_handle_remote_sigint)
3316 (async_handle_remote_sigint_twice): Call
3317 gdb_call_async_signal_handler instead of
3318 mark_async_signal_handler.
3320 2014-07-07 Tom Tromey <tromey@redhat.com>
3322 * target-delegates.c: Rebuild.
3323 * target.c (target_info_record): Remove.
3324 * record.c (info_record_command): Unconditionally call
3326 * target.h (struct target_ops) <to_info_record>: Use
3327 TARGET_DEFAULT_IGNORE.
3328 (target_info_record): Remove.
3330 2014-07-07 Tom Tromey <tromey@redhat.com>
3332 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3333 TARGET_DEFAULT_NORETURN.
3334 * target.c (generic_tls_error): New function.
3335 (target_translate_tls_address): Don't search target stack.
3336 * target-delegates.c: Rebuild.
3337 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3339 * linux-thread-db.c (thread_db_get_thread_local_address):
3340 Unconditionally call beneath target.
3342 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3344 * cli/cli-logging.c (pop_output_files): Assign targerr to
3347 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3349 * MAINTAINERS (Write After Approval): Update my email address.
3351 2014-07-02 Gary Benson <gbenson@redhat.com>
3353 * proc-service.c (ps_xfer_memory): Update comment.
3354 (ps_pstop): Remove unused function.
3355 (ps_pcontinue): Likewise.
3356 (ps_lstop): Likewise.
3357 (ps_lcontinue): Likewise.
3358 (ps_lgetxregsize): Likewise.
3359 (ps_lgetxregs): Likewise.
3360 (ps_lsetxregs): Likewise.
3361 (ps_plog): Likewise.
3362 (ps_ptread): Likewise.
3363 (ps_ptwrite): Likewise.
3365 2014-07-01 Mark Wielaard <mjw@redhat.com>
3367 * dwarf2read.c (add_array_cv_type): New function.
3368 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3369 (read_tag_volatile_type): Likewise.
3371 2014-07-01 Tom Tromey <tromey@redhat.com>
3373 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3374 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3375 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3376 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3377 * command.h (cmd_cfunc_ftype): Move earlier.
3378 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3379 (add_com, add_info): Use cmd_cfunc_ftype.
3381 2014-06-30 Tom Tromey <tromey@redhat.com>
3383 * symtab.c (operator_chars): Make parameters and return type
3385 (file_matches): Make "files" const.
3386 (struct search_symbols_data) <files>: Now const.
3387 (search_symbols): Make "regexp" and "files" parameters const.
3389 (symtab_symbol_info): Remove cast.
3390 (rbreak_command): Update.
3391 * symtab.h (search_symbols): Update.
3393 2014-06-27 Yao Qi <yao@codesourcery.com>
3395 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3396 Change parameter type to 'struct thread_info *'. Caller
3398 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3400 * dummy-frame.c (struct dummy_frame_id): New.
3401 (dummy_frame_id_eq): New function.
3402 (struct dummy_frame) <id>: Change its type to 'struct
3404 (dummy_frame_push): Add parameter ptid and save it in
3406 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3408 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3410 (lookup_dummy_frame): Change parameter type to 'struct
3411 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3412 instead of frame_id_eq.
3413 (dummy_frame_pop): Add parameter ptid. Callers updated.
3414 Update comments. Compose dummy_frame_id and pass it to
3416 (dummy_frame_discard): Add parameter ptid.
3417 (dummy_frame_sniffer): Compose dummy_frame_id and call
3418 dummy_frame_id_eq instead of frame_id_eq.
3419 (fprint_dummy_frames): Print ptid.
3420 * dummy-frame.h: Remove comments.
3421 (dummy_frame_push): Add ptid in declaration.
3422 (dummy_frame_pop, dummy_frame_discard): Likewise.
3424 2014-06-26 Tom Tromey <tromey@redhat.com>
3426 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3427 * command.h (error_no_arg): Update.
3429 2014-06-26 Tom Tromey <tromey@redhat.com>
3431 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3432 (do_show_command): Make "arg" const.
3433 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3435 2014-06-26 Tom Tromey <tromey@redhat.com>
3437 * record-full.c (record_full_get_bookmark): Make "args" const.
3438 (record_full_goto_bookmark): Make "raw_bookmark" const.
3439 * record.c (record_goto): New function.
3440 (cmd_record_goto): Use it. Now static.
3441 * record.h (record_goto): Declare.
3442 (cmd_record_goto): Remove declaration.
3443 * target-delegates.c: Rebuild.
3444 * target.h (struct target_ops) <to_get_bookmark,
3445 to_goto_bookmark>: Make parameter const.
3447 2014-06-26 Tom Tromey <tromey@redhat.com>
3449 * defs.h (generic_load): Update.
3450 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3451 * monitor.c (monitor_load): Make "args" const.
3452 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3453 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3455 (mips_load): Make "file" const.
3456 * remote-sim.c (gdbsim_load): Make "args" const.
3457 * remote.c (remote_load): Make "name" const.
3458 * symfile.c (generic_load): Make "args" const.
3459 * target-delegates.c: Rebuild.
3460 * target.c (target_load): Make "arg" const.
3461 (debug_to_load): Make "args" const.
3462 * target.h (struct target_ops) <to_load>: Make parameter const.
3463 (target_load): Update.
3465 2014-06-26 Tom Tromey <tromey@redhat.com>
3468 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3469 (dwarf2_physname, read_partial_die)
3470 (guess_partial_die_structure_name, fixup_partial_die)
3471 (guess_full_die_structure_name, anonymous_struct_prefix)
3472 (dwarf2_name): Use per-BFD obstack.
3474 2014-06-26 Yao Qi <yao@codesourcery.com>
3476 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3477 dummyframe and this_id into inner block below.
3479 2014-06-26 Yao Qi <yao@codesourcery.com>
3481 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3482 with "signal_pass[0]" in the initialization of signal_pass.
3484 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3486 * record-btrace.c (record_btrace_generating_corefile)
3487 (record_btrace_prepare_to_generate_core)
3488 (record_btrace_done_generating_core): New.
3489 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3490 (record_btrace_store_registers, record_btrace_prepare_to_store):
3491 Forward request when generating a core file.
3492 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3493 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3494 to_done_generating_core.
3496 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3498 * target.h (target_ops) <to_prepare_to_generate_core>
3499 <to_done_generating_core>: New.
3500 (target_prepare_to_generate_core, target_done_generating_core): New.
3501 * target.c (target_prepare_to_generate_core)
3502 (target_done_generating_core): New.
3503 * target-delegates.c: Regenerate.
3504 * gcore.c: (write_gcore_file): Rename to ...
3505 (write_gcore_file_1): ...this.
3506 (write_gcore_file): Call target_prepare_to_generate_core
3507 and target_done_generating_core.
3509 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3511 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3512 * gcore.c (write_gcore_file): Free memory returned from
3513 make_corefile_notes.
3514 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3515 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3517 2014-06-24 Yao Qi <yao@codesourcery.com>
3519 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3520 (arm_linux_init_abi): Set skip_trampoline_code with
3521 gdbarch_skip_trampoline_code instead of
3522 find_solib_trampoline_target.
3524 2014-06-24 Yao Qi <yao@codesourcery.com>
3526 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3527 arm_skip_bx_reg returns non-zero.
3529 2014-06-24 Yao Qi <yao@codesourcery.com>
3531 * arm-tdep.c (arm_skip_bx_reg): New function.
3532 (arm_skip_stub): Call arm_skip_bx_reg.
3534 2014-06-23 Don Breazeal <donb@codesourcery.com>
3536 * MAINTAINERS: Add myself as write-after-approval maintainer.
3538 2014-06-23 Pedro Alves <palves@redhat.com>
3540 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3541 DR_CONTROL before setting DR0..DR3.
3542 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3543 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3544 bits of DR_CONTROL related to the debug register slot being
3545 disabled. If all slots are vacant, clear local slowdown as well,
3546 and assert DR_CONTROL is 0.
3548 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3550 * python/lib/gdb/command/xmethods.py
3551 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3552 current progspace only if the string "progspace" matches LOCUS_RE.
3554 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3556 Fix --with-system-readline with readline-6.3 patch 5.
3557 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3558 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3561 2014-06-20 Tom Tromey <tromey@redhat.com>
3563 * dwarf2read.c (dw2_get_real_path): Use correct type in
3565 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3567 2014-06-20 Gary Benson <gbenson@redhat.com>
3569 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3570 * common/glibc_thread_db.h: Likewise.
3571 * common/i386-cpuid.h: Likewise.
3572 * common/i386-gcc-cpuid.h: Likewise.
3573 * common/linux-btrace.h: Likewise.
3574 * common/linux-osdata.h: Likewise.
3575 * common/linux-procfs.h: Likewise.
3576 * common/linux-ptrace.h: Likewise.
3577 * common/mips-linux-watch.h: Likewise.
3578 * common/linux-btrace.c: Moved to nat.
3579 * common/linux-osdata.c: Likewise.
3580 * common/linux-procfs.c: Likewise.
3581 * common/linux-ptrace.c: Likewise.
3582 * common/mips-linux-watch.c: Likewise.
3583 * nat/gdb_thread_db.h: Moved from common.
3584 * nat/glibc_thread_db.h: Likewise.
3585 * nat/i386-cpuid.h: Likewise.
3586 * nat/i386-gcc-cpuid.h: Likewise.
3587 * nat/linux-btrace.c: Likewise.
3588 * nat/linux-btrace.h: Likewise.
3589 * nat/linux-osdata.c: Likewise.
3590 * nat/linux-osdata.h: Likewise.
3591 * nat/linux-procfs.c: Likewise.
3592 * nat/linux-procfs.h: Likewise.
3593 * nat/linux-ptrace.c: Likewise.
3594 * nat/linux-ptrace.h: Likewise.
3595 * nat/mips-linux-watch.c: Likewise.
3596 * nat/mips-linux-watch.h: Likewise.
3597 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3598 (object file files): Reordered.
3599 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3600 of glibc_thread_db.h.
3602 2014-06-20 Gary Benson <gbenson@redhat.com>
3604 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3605 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3606 (i386_dr_low): Likewise.
3607 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3608 (i386_dr_low_set_addr): Likewise.
3609 (i386_dr_low_get_addr): Likewise.
3610 (i386_dr_low_can_set_control): Likewise.
3611 (i386_dr_low_set_control): Likewise.
3612 (i386_dr_low_get_control): Likewise.
3613 (i386_dr_low_get_status): Likewise.
3614 (i386_get_debug_register_length): Likewise.
3615 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3616 (i386_dr_low): Likewise.
3617 * nat/i386-dregs.c (i386-low.h): Remove include.
3618 (i386-nat.h): Likewise.
3619 (nat/i386-dregs.h): New include.
3620 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3621 (i386_dr_low_set_addr): Likewise.
3622 (i386_dr_low_get_addr): Likewise.
3623 (i386_dr_low_can_set_control): Likewise.
3624 (i386_dr_low_set_control): Likewise.
3625 (i386_dr_low_get_control): Likewise.
3626 (i386_dr_low_get_status): Likewise.
3627 (i386_get_debug_register_length): Likewise.
3628 (debug_hw_points): Likewise.
3630 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3632 * Makefile.in (SFILES): Add d-exp.y.
3633 (YYFILES): Add d-exp.c.
3634 (YYOBJ): Add d-exp.o.
3635 (local-maintainer-clean): Delete d-exp.c.
3636 * d-exp.y: New file.
3637 * d-lang.h (d_parse): New declaration.
3638 (d_error): New declaration.
3639 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3640 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3641 PREC_ORDER operators.
3642 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3644 2014-06-19 Yao Qi <yao@codesourcery.com>
3646 * gdbthread.h (any_running): Remove the declaration.
3647 * thread.c (any_running): Remove.
3649 2014-06-19 Yao Qi <yao@codesourcery.com>
3651 * gdbthread.h (struct thread_info) <state>: Change its type to
3652 'enum thread_state'. Update comments.
3654 2014-06-19 Pedro Alves <palves@redhat.com>
3656 * gdbthread.h (ALL_THREADS): Delete.
3657 (ALL_NON_EXITED_THREADS): New macro.
3658 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3659 instead of ALL_THREADS.
3660 * infrun.c (find_thread_needs_step_over)
3661 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3662 instead of ALL_THREADS.
3663 * record-btrace.c (record_btrace_open)
3664 (record_btrace_stop_recording, record_btrace_close)
3665 (record_btrace_is_replaying, record_btrace_resume)
3666 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3667 * remote.c (append_pending_thread_resumptions): Likewise.
3668 * thread.c (thread_apply_all_command): Likewise.
3670 2014-06-19 Gary Benson <gbenson@redhat.com>
3672 * i386-nat.c (i386_stopped_by_watchpoint):
3673 Use i386_dr_stopped_by_watchpoint.
3674 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3675 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3677 2014-06-19 Gary Benson <gbenson@redhat.com>
3679 * nat/i386-dregs.c: New file.
3680 * Makefile.in (i386-dregs.o): New rule.
3681 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3682 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3683 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3684 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3685 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3686 * config/i386/go32.mh (NATDEPFILES): Likewise.
3687 * config/i386/linux.mh (NATDEPFILES): Likewise.
3688 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3689 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3690 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3691 * i386-nat.h (debug_hw_points): New declaration.
3692 * i386-nat.c (breakpoint.h): Remove include.
3693 (command.h): Likewise.
3694 (target.h): Likewise.
3695 (gdb_assert.h): Likewise.
3696 (debug_hw_points): Made nonstatic.
3697 (debug_printf): Now in i386-dregs.c.
3698 (TARGET_HAS_DR_LEN_8): Likewise.
3699 (DR_CONTROL_SHIFT): Likewise.
3700 (DR_CONTROL_SIZE): Likewise.
3701 (DR_RW_EXECUTE): Likewise.
3702 (DR_RW_WRITE): Likewise.
3703 (DR_RW_READ): Likewise.
3704 (DR_RW_IORW): Likewise.
3705 (DR_LEN_1): Likewise.
3706 (DR_LEN_2): Likewise.
3707 (DR_LEN_4): Likewise.
3708 (DR_LEN_8): Likewise.
3709 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3710 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3711 (DR_ENABLE_SIZE): Likewise.
3712 (DR_LOCAL_SLOWDOWN): Likewise.
3713 (DR_GLOBAL_SLOWDOWN): Likewise.
3714 (DR_CONTROL_RESERVED): Likewise.
3715 (I386_DR_CONTROL_MASK): Likewise.
3716 (I386_DR_VACANT): Likewise.
3717 (I386_DR_LOCAL_ENABLE): Likewise.
3718 (I386_DR_GLOBAL_ENABLE): Likewise.
3719 (I386_DR_DISABLE): Likewise.
3720 (I386_DR_SET_RW_LEN): Likewise.
3721 (I386_DR_GET_RW_LEN): Likewise.
3722 (I386_DR_WATCH_HIT): Likewise.
3723 (i386_wp_op_t): Likewise.
3724 (i386_show_dr): Likewise.
3725 (i386_length_and_rw_bits): Likewise.
3726 (i386_insert_aligned_watchpoint): Likewise.
3727 (i386_remove_aligned_watchpoint): Likewise.
3728 (i386_handle_nonaligned_watchpoint): Likewise.
3729 (i386_update_inferior_debug_regs): Likewise.
3730 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3731 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3732 (i386_region_ok_for_watchpoint):
3733 Use i386_dr_region_ok_for_watchpoint.
3734 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3736 2014-06-19 Gary Benson <gbenson@redhat.com>
3738 * i386-nat.c (i386_insert_hw_breakpoint): Use
3739 i386_insert_watchpoint.
3740 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3742 2014-06-19 Gary Benson <gbenson@redhat.com>
3744 * i386-nat.c (i386_dr_show): Renamed to
3745 i386_show_dr and made static. All uses updated.
3746 (i386_dr_length_and_rw_bits): Renamed to
3747 i386_length_and_rw_bits and made static.
3749 (i386_dr_insert_aligned_watchpoint): Renamed to
3750 i386_insert_aligned_watchpoint and made static.
3752 (i386_dr_remove_aligned_watchpoint): Renamed to
3753 i386_remove_aligned_watchpoint and made static.
3755 (i386_dr_update_inferior_debug_regs): Renamed to
3756 i386_update_inferior_debug_regs and made static.
3758 * nat/i386-dregs.h (i386_dr_show): Removed.
3759 (i386_dr_length_and_rw_bits): Likewise.
3760 (i386_dr_insert_aligned_watchpoint): Likewise.
3761 (i386_dr_remove_aligned_watchpoint): Likewise.
3762 (i386_dr_update_inferior_debug_regs): Likewise.
3764 2014-06-19 Gary Benson <gbenson@redhat.com>
3766 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3767 * configure: Regenerate.
3768 * config.in: Likewise.
3769 * main.c (signal.h): New include.
3770 (setup_alternate_signal_stack): New function.
3771 (captured_main): Call the above.
3772 * cp-support.c (signal.h): New include.
3773 (catch_demangler_crashes): New flag.
3774 (SIGJMP_BUF): New define.
3775 (SIGSETJMP): Likewise.
3776 (SIGLONGJMP): Likewise.
3777 (gdb_demangle_jmp_buf): New static global.
3778 (gdb_demangle_attempt_core_dump): Likewise.
3779 (gdb_demangle_signal_handler): New function.
3780 (gdb_demangle): If catch_demangler_crashes is set, install the
3781 above signal handler before calling bfd_demangle, and restore
3782 the original signal handler afterwards. Display the offending
3783 symbol and call demangler_warning the first time a segmentation
3785 (_initialize_cp_support): New maint set/show command.
3787 2014-06-19 Gary Benson <gbenson@redhat.com>
3789 * utils.h (resource_limit_kind): New enum.
3790 (can_dump_core): New declaration.
3791 (warn_cant_dump_core): Likewise.
3792 (dump_core): Likewise.
3793 * utils.c (dump_core): Made nonstatic. Added new
3794 parameter "limit_kind".
3795 (can_dump_core): Made nonstatic. Moved printing code to...
3796 (warn_cant_dump_core): New function.
3797 (can_dump_core_warn): Likewise.
3798 (internal_vproblem): Replace calls to can_dump_core with
3799 calls to can_dump_core_warn. Supply new argument to each.
3801 2014-06-19 Gary Benson <gbenson@redhat.com>
3803 * utils.h (demangler_vwarning): New declaration.
3804 (demangler_warning): Likewise.
3805 * utils.c (struct internal_problem)
3806 <user_settable_should_quit>: New field.
3807 <user_settable_should_dump_core>: Likewise
3808 (internal_error_problem): Add values for above new fields.
3809 (internal_warning_problem): Likewise.
3810 (demangler_warning_problem): New static global.
3811 (demangler_vwarning): New function.
3812 (demangler_warning): Likewise.
3813 (add_internal_problem_command): Selectively add commands.
3814 (_initialize_utils): New internal problem command.
3815 * maint.c (maintenance_demangler_warning): New function.
3816 (_initialize_maint_cmds): New command.
3818 2014-06-18 Tom Tromey <tromey@redhat.com>
3820 * f-valprint.c (info_common_command_for_block): Update.
3821 * symtab.h (struct general_symbol_info) <common_block>: Now
3824 2014-06-18 Tom Tromey <tromey@redhat.com>
3826 * symtab.h (struct symtab) <blockvector>: Now const.
3827 * ada-lang.c (ada_add_global_exceptions): Update.
3828 * buildsym.c (augment_type_symtab): Update.
3829 * dwarf2read.c (dw2_lookup_symbol): Update.
3830 * jit.c (finalize_symtab): Update.
3831 * jv-lang.c (add_class_symtab_symbol): Update.
3832 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3834 * objfiles.c (objfile_relocate1): Update.
3835 * psymtab.c (lookup_symbol_aux_psymtabs)
3836 (maintenance_check_psymtabs): Update.
3837 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3839 * spu-tdep.c (spu_catch_start): Update.
3840 * symmisc.c (dump_symtab_1): Update.
3841 * symtab.c (lookup_global_symbol_from_objfile)
3842 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3843 (basic_lookup_transparent_type_quick)
3844 (basic_lookup_transparent_type, find_pc_sect_symtab)
3845 (find_pc_sect_line, search_symbols): Update.
3846 * block.c (find_block_in_blockvector): Make "bl" const.
3847 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3849 (blockvector_contains_pc): Make "bv" const.
3850 (block_for_pc_sect): Update.
3851 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3852 (blockvector_contains_pc): Update.
3853 * breakpoint.c (resolve_sal_pc): Update.
3854 * inline-frame.c (block_starting_point_at): Update.
3856 2014-06-18 Tom Tromey <tromey@redhat.com>
3858 * completer.c (complete_line): Make "line_buffer" const.
3859 * completer.h (complete_line): Update.
3861 2014-06-18 Tom Tromey <tromey@redhat.com>
3863 * symtab.c (add_macro_name): Remove unneeded cast.
3865 2014-06-18 Tom Tromey <tromey@redhat.com>
3867 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3868 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3870 2014-06-18 Tom Tromey <tromey@redhat.com>
3872 * probe.c (info_probes_for_ops): Make "arg" const.
3873 * probe.h (info_probes_for_ops): Update.
3875 2014-06-18 Tom Tromey <tromey@redhat.com>
3877 * varobj.c (varobj_create): Update.
3878 * valops.c (value_of_this): Update.
3879 * tracepoint.c (add_local_symbols, scope_info): Update.
3880 * symtab.h (struct general_symbol_info) <block>: Now const.
3881 * symtab.c (skip_prologue_sal)
3882 (default_make_symbol_completion_list_break_on)
3883 (skip_prologue_using_sal): Update.
3884 * stack.h (iterate_over_block_locals)
3885 (iterate_over_block_local_vars): Update.
3886 * stack.c (print_frame_args): Update.
3887 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3889 (get_selected_block): Make return type const.
3890 * python/py-frame.c (frapy_block): Update.
3891 * python/py-block.c (gdbpy_block_for_pc): Update.
3892 * p-exp.y (%union) <bval>: Now const.
3893 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3894 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3895 * m2-exp.y (%union) <bval>: Now const.
3896 * linespec.c (get_current_search_block): Make return type const.
3897 (create_sals_line_offset, find_label_symbols): Update.
3898 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3900 (block_starting_point_at): Make "block" const.
3901 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3902 (check_exception_resume): Update.
3903 * guile/scm-frame.c (gdbscm_frame_block): Update.
3904 * guile/scm-block.c (gdbscm_lookup_block): Update.
3905 * frame.h (get_frame_block): Update.
3906 (get_selected_block): Make return type const.
3907 * frame.c (frame_id_inner): Update.
3908 * f-valprint.c (info_common_command_for_block)
3909 (info_common_command): Update.
3910 * dwarf2loc.c (dwarf2_find_location_expression)
3911 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3912 (locexpr_describe_location_piece): Update.
3913 * c-exp.y (%union) <bval>: Now const.
3914 * breakpoint.c (resolve_sal_pc): Update.
3915 * blockframe.c (get_frame_block):Make return type const.
3916 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3917 (block_innermost_frame): Update.
3918 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3919 (block_for_pc, block_for_pc_sect): Update.
3920 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3922 (block_for_pc_sect, block_for_pc): Make return type const.
3923 * ax-gdb.c (gen_expr): Update.
3924 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3925 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3926 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3927 (ada_read_var_value): Update.
3928 * ada-exp.y (struct name_info) <block>: Now const.
3930 (block_lookup): Constify.
3932 2014-06-18 Gary Benson <gbenson@redhat.com>
3934 * nat/i386-dregs.h: New file.
3935 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3936 * i386-nat.h (i386-dregs.h): New include.
3937 (DR_FIRSTADDR): Now in i386-dregs.h.
3938 (DR_LASTADDR): Likewise.
3939 (DR_NADDR): Likewise.
3940 (DR_STATUS): Likewise.
3941 (DR_CONTROL): Likewise.
3942 (i386_debug_reg_state): Likewise.
3943 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3945 2014-06-18 Don Breazeal <donb@codesourcery.com>
3947 * breakpoint.c (set_longjmp_breakpoint): Call
3948 momentary_breakpoint_from_master with additional argument.
3949 (set_longjmp_breakpoint_for_call_dummy): Call
3950 momentary_breakpoint_from_master with additional argument.
3951 (set_std_terminate_breakpoint): Call
3952 momentary_breakpoint_from_master with additional argument.
3953 (momentary_breakpoint_from_master): Add argument to function
3954 definition and use it to initialize structure member flag.
3955 (clone_momentary_breakpoint): Call
3956 momentary_breakpoint_from_master with additional argument.
3957 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3958 member flags set in momentary_breakpoint_from_master.
3960 2014-06-18 Gary Benson <gbenson@redhat.com>
3962 * i386-nat.c (i386_show_dr): Renamed to
3963 i386_dr_show and made nonstatic. All uses updated.
3964 (i386_length_and_rw_bits): Renamed to
3965 i386_dr_length_and_rw_bits and made nonstatic.
3967 (i386_insert_aligned_watchpoint): Renamed to
3968 i386_dr_insert_aligned_watchpoint and made nonstatic.
3970 (i386_remove_aligned_watchpoint): Renamed to
3971 i386_dr_remove_aligned_watchpoint and made nonstatic.
3973 (i386_update_inferior_debug_regs): Renamed to
3974 i386_dr_update_inferior_debug_regs and made nonstatic.
3977 2014-06-18 Gary Benson <gbenson@redhat.com>
3979 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3980 (i386_dr_low_can_set_control): Likewise.
3981 (i386_dr_low_set_addr): Likewise.
3982 (i386_dr_low_set_control): Likewise.
3983 (i386_dr_low_get_addr): Likewise.
3984 (i386_dr_low_get_status): Likewise.
3985 (i386_dr_low_get_control): Likewise.
3986 (i386_insert_aligned_watchpoint): Use new macros.
3987 (i386_update_inferior_debug_regs): Likewise.
3988 (i386_stopped_data_address): Likewise.
3990 2014-06-18 Gary Benson <gbenson@redhat.com>
3992 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3993 New parameter. All uses updated.
3995 2014-06-18 Gary Benson <gbenson@redhat.com>
3997 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4000 2014-06-18 Gary Benson <gbenson@redhat.com>
4002 * i386-nat.c (debug_printf): New macro.
4003 (i386_get_debug_register_length): Likewise.
4004 (TARGET_HAS_DR_LEN_8): Use above macro.
4005 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4006 and printf_unfiltered. Use phex to format values.
4008 2014-06-18 Gary Benson <gbenson@redhat.com>
4010 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4013 2014-06-18 Gary Benson <gbenson@redhat.com>
4015 * i386-nat.c: Comment changes.
4017 2014-06-18 Gary Benson <gbenson@redhat.com>
4019 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4021 2014-06-18 Gary Benson <gbenson@redhat.com>
4023 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4024 (i386_insert_aligned_watchpoint): Likewise.
4025 (i386_remove_aligned_watchpoint): Likewise.
4026 (i386_handle_nonaligned_watchpoint): Likewise.
4028 2014-06-18 Gary Benson <gbenson@redhat.com>
4030 * i386-nat.c: Whitespace changes.
4032 2014-06-17 Samuel Bronson <naesten@gmail.com>
4034 * MAINTAINERS: Update Roland McGrath's email address.
4035 Thanks to Sergio Durigan Junior for pointing out that he left
4036 Red Hat a while ago, and giving me a current address.
4038 2014-06-17 Tom Tromey <tromey@redhat.com>
4040 * utils.h (savestring): Remove declaration.
4042 2014-06-17 Tom Tromey <tromey@redhat.com>
4044 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4046 2014-06-16 Keith Seitz <keiths@redhat.com>
4049 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4050 to update the varobj if inferior_ptid is null_ptid.
4052 2014-06-16 Tom Tromey <tromey@redhat.com>
4054 * target.h (struct target_ops) <to_info_proc>: Make parameter
4056 (target_info_proc): Update.
4057 * target.c (target_info_proc): Make "args" const.
4058 * procfs.c (procfs_info_proc): Update.
4059 * linux-tdep.c (linux_info_proc): Update.
4060 (linux_core_info_proc_mappings): Make "args" const.
4061 (linux_core_info_proc): Update.
4062 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4063 * gdbarch.c: Rebuild.
4064 * gdbarch.h: Rebuild.
4065 * corelow.c (core_info_proc): Update.
4067 2014-06-16 Tom Tromey <tromey@redhat.com>
4069 * target.h (struct target_ops) <to_disconnect>: Make parameter
4071 (target_disconnect): Update.
4072 * target.c (target_disconnect): Make "args" const.
4073 * target-delegates.c: Rebuild.
4074 * remote.c (remote_disconnect): Update.
4075 * record.h (record_disconnect): Update.
4076 * record.c (record_disconnect): Update.
4077 * inf-child.c (inf_child_disconnect): Update.
4079 2014-06-16 Tom Tromey <tromey@redhat.com>
4081 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4082 * target.c (debug_to_rcmd, default_rcmd): Update.
4083 * target-delegates.c: Rebuild.
4084 * remote.c (remote_rcmd): Update.
4085 * monitor.c (monitor_rcmd): Update.
4087 2014-06-16 Pedro Alves <palves@redhat.com>
4089 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4090 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4091 have OBJF_SHARED set.
4092 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4093 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4094 instead of OBJF_USERLOADED.
4095 * objfiles.h (OBJF_SHARED): Update comment.
4096 (userloaded_objfile_contains_address_p): Rename to ...
4097 (shared_objfile_contains_address_p): ... this, and update
4099 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4101 (remove_symbol_file_command): Skip objfiles that don't have
4104 2014-06-16 Tom Tromey <tromey@redhat.com>
4106 * minsyms.h (prim_record_minimal_symbol)
4107 (prim_record_minimal_symbol_and_info): Update comments.
4109 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4111 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4112 or --without-guile, according to how GDB was built.
4114 2014-06-13 Tom Tromey <tromey@redhat.com>
4116 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4118 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4120 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4122 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4123 help_list.Pass all_commands, not -1, to help_list.
4124 * cli/cli-dump.c (dump_command, append_command)
4125 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4126 (binary_dump_command, binary_append_command): Pass all_commands,
4127 not -1, to help_list.
4128 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4130 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4132 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4134 * top.c (set_history): Pass all_commands, not -1, to help_list.
4135 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4136 all_commands, not -1, to help_list.
4137 * symfile.c (overlay_command): Pass all_commands, not -1, to
4139 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4141 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4143 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4145 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4146 not -1, to help_list.
4147 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4148 not -1, to help_list.
4149 * maint.c (maintenance_command, maintenance_info_command)
4150 (maintenance_print_command, maintenance_set_cmd): Pass
4151 all_commands, not -1, to help_list.
4152 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4154 * language.c (set_check): Pass all_commands, not -1, to help_list.
4155 * infcmd.c (unset_command): Pass all_commands, not -1, to
4157 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4159 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4161 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4163 * breakpoint.c (save_command): Pass all_commands, not -1, to
4165 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4166 all_commands, not -1, to help_list.
4168 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4170 * regcache.c (struct register_to_invalidate): New structure.
4171 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4173 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4175 2014-06-12 Yao Qi <yao@codesourcery.com>
4177 * varobj.c (varobj_get_num_children): Call
4178 varobj_is_dynamic_p.
4179 (varobj_list_children): Likewise.
4180 (varobj_update): Likewise. Update comments.
4182 2014-06-12 Yao Qi <yao@codesourcery.com>
4184 * varobj.c (varobj_pretty_printed_p): Rename to ...
4185 (varobj_is_dynamic_p): ... this. New function.
4186 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4187 (varobj_is_dynamic_p): Declare.
4188 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4189 (mi_print_value_p, varobj_update_one): Likewise.
4191 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4192 Yao Qi <yao@codesourcery.com>
4194 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4195 (varobj_get_iterator): Wrap up code for pretty-printer by
4196 "#if HAVE_PYTHON" and "#endif".
4197 (update_dynamic_varobj_children): Likewise.
4199 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4200 Yao Qi <yao@codesourcery.com>
4202 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4203 gdb_python_initialized is false. Move some code from varobj.c.
4204 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4205 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4206 (struct varobj_item): Moved to varobj-iter.h".
4207 (varobj_clear_saved_item): New function.
4208 (update_dynamic_varobj_children): Move python-related code to
4210 (free_variable): Call varobj_clear_saved_item and
4213 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4214 Yao Qi <yao@codesourcery.com>
4216 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4217 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4218 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4219 (py-varobj.o): New rule.
4220 * python/py-varobj.c: New file.
4221 * python/python-internal.h (py_varobj_get_iterator): Declare.
4222 * varobj-iter.h: New file.
4223 * varobj.c: Include "varobj-iter.h"
4224 (struct varobj) <child_iter>: Change its type from "PyObject *"
4225 to "struct varobj_iter *".
4226 <saved_item>: Likewise.
4227 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4228 [HAVE_PYTHON] (varobj_get_iterator): New function.
4229 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4230 python-specific code to python/py-varobj.c.
4231 (install_visualizer): Call varobj_iter_delete instead of
4233 * varobj.h (varobj_ensure_python_env): Declare.
4235 2014-06-12 Yao Qi <yao@codesourcery.com>
4237 * varobj.c (struct varobj_item): New structure.
4238 (create_child_with_value): Update declaration.
4239 (varobj_add_child): Replace arguments 'name' and 'value' with
4240 'item'. All callers updated.
4241 (install_dynamic_child): Likewise.
4242 (update_dynamic_varobj_children): Likewise.
4243 (varobj_add_child): Likewise.
4244 (create_child_with_value): Likewise.
4246 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4248 * NEWS: Create a new section for the next release branch.
4249 Rename the section of the current branch, now that it has
4252 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4254 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4255 * version.in: Bump version to 7.8.50.DATE-cvs.
4257 2014-06-11 Pedro Alves <palves@redhat.com>
4260 * ser-mingw.c (net_windows_socket_check_pending): New function.
4261 (net_windows_select_thread): Ignore spurious wakeups. Use
4262 net_windows_socket_check_pending.
4263 (net_windows_wait_handle): Check for pending events with
4264 ioctlsocket, through net_windows_socket_check_pending, instead of
4265 checking the socket's event.
4267 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4269 * python/python-internal.h (gdb_PyObject_GetAttrString)
4270 (gdb_PyObject_HasAttrString): New inline function definitions.
4271 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4272 char * of the second argument to PyObject_GetAttrString.
4274 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4276 * serial.c (serial_write): Fix index of character to be printed
4277 in call to serial_logchar when serial debug traces are enabled.
4279 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4281 * gdbtypes (resolve_dynamic_range): Add function description.
4283 2014-06-09 Pedro Alves <palves@redhat.com>
4285 * linux-nat.c (linux_child_follow_fork): Initialize status with
4286 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4287 inner block. Only pass the signal to PTRACE_DETACH if in pass
4290 2014-06-09 Gary Benson <gbenson@redhat.com>
4292 * common/signals.c (gdb_signal_from_host): Reorder to separate
4293 the always-available ANSI-standard signals from the signals that
4295 (do_gdb_signal_to_host): Likewise.
4296 * proc-events.c (signal_table): Likewise.
4298 2014-06-08 Hui Zhu <hui@codesourcery.com>
4300 * common/linux-ptrace.c (linux_disable_event_reporting): New
4302 * common/linux-ptrace.h (linux_disable_event_reporting): New
4304 * linux-nat.c (linux_child_follow_fork): Do a single step before
4307 2014-06-07 Keith Seitz <keiths@redhat.com>
4311 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4312 from symbol_matches_domain in symtab.c. All local callers
4313 of symbol_matches_domain updated.
4314 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4315 search STRUCT_DOMAIN.
4316 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4317 independently. standard_lookup will do that automatically.
4318 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4319 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4320 (cp_lookup_symbol_in_namespace): Likewise.
4321 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4322 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4323 may return a STRUCT_DOMAIN match.
4324 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4325 * cp-support.c: Include language.h.
4326 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4328 * psymtab.c (match_partial_symbol): Compare the requested
4329 domain with the symbol's domain directly.
4330 (lookup_partial_symbol): Likewise.
4331 * symtab.c (lookup_symbol_in_language): Explain when/why
4332 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4333 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4334 appropriate languages.
4335 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4336 and moved to ada-lang.c
4337 (lookup_block_symbol): Explain that this function only returns
4338 symbol matching the requested DOMAIN.
4339 Compare the requested domain with the symbol's domain directly.
4340 (iterate_over_symbols): Compare the requested domain with the
4341 symbol's domain directly.
4342 * symtab.h (symbol_matches_domain): Remove.
4344 2014-06-06 Doug Evans <xdje42@gmail.com>
4346 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4347 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4348 (gdbscm_guile_version_is_at_least): Declare.
4349 (gdbscm_scm_string_to_int): Declare.
4350 * guile/guile.c (gdbscm_guile_major_version): New global.
4351 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4352 (guile_datadir): New static global.
4353 (gdbscm_guile_data_directory): New function.
4354 (initialize_scheme_side): Update.
4355 (misc_guile_functions): Add guile-data-directory.
4356 (initialize_gdb_module): Fetch guile version number.
4357 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4358 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4359 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4360 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4362 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4363 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4364 * guile/scm-value.c (gdbscm_value_to_string): Only call
4365 scm_port_conversion_strategy if Guile version >= 2.0.6.
4367 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4369 * main.c (print_gdb_help): Add -q and --silent.
4371 2014-06-06 Gary Benson <gbenson@redhat.com>
4373 * common/signals.c: Remove preprocessor conditionals for
4374 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4375 SIGSEGV and SIGTERM.
4376 * proc-events.c: Likewise.
4378 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4380 * symfile.c (symfile_free_objfile): Remove restriction to
4382 * symfile-mem.c (symbol_file_add_from_memory): Call
4383 add_target_sections_of_objfile.
4385 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4387 * guile/scm-value.c (gdbscm_history_append_x): Use
4388 'vlscm_get_value_smob_arg_unsafe' instead of
4389 'vlscm_scm_to_value'.
4391 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4394 * utils.c (printchar): Don't escape at all if quoter is NUL.
4395 Update function documentation to clarify effect of parameter
4397 * remote.c (escape_buffer): Pass '\\' as the quoter to
4398 fputstrn_unfiltered.
4399 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4400 generate the output.
4401 (mi_solib_unloaded): Same.
4403 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4405 * development.sh: Delete.
4406 * Makefile.in (config.status): Adjust dependency on development.sh.
4407 * configure.ac: Adjust development.sh source call.
4408 * configure: Regenerate.
4410 2014-06-04 Doug Evans <xdje42@gmail.com>
4412 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4413 is_scheme_bkpt, spec.
4414 (bpscm_make_breakpoint_smob): Initialize new members.
4415 (gdbscm_create_breakpoint_x): Split into two ...
4416 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4417 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4418 (scheme_function breakpoint_functions): Update.
4419 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4420 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4421 register-breakpoint!.
4423 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4426 * mem-break.c (z_type_supported): Return zero if
4427 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4429 2014-06-04 Tom Tromey <tromey@redhat.com>
4431 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4432 value_from_contents_and_address_unresolved.
4433 (ada_template_to_fixed_record_type_1): Likewise.
4434 (ada_which_variant_applies): Likewise.
4435 * value.h (value_from_contents_and_address_unresolved): Declare.
4436 * value.c (value_from_contents_and_address_unresolved): New
4438 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4439 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4440 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4442 2014-06-04 Tom Tromey <tromey@redhat.com>
4444 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4446 2014-06-04 Tom Tromey <tromey@redhat.com>
4448 * procfs.c (procfs_attach): Make "args" const.
4449 * windows-nat.c (windows_attach): Make "args" const.
4450 * nto-procfs.c (procfs_attach): Make "args" const.
4451 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4452 * go32-nat.c (go32_attach): Make "args" const.
4453 * gnu-nat.c (gnu_attach): Make "args" const.
4454 * darwin-nat.c (darwin_attach): Make "args" const.
4455 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4456 * linux-nat.c (linux_nat_attach): Make "args" const.
4457 * remote.c (extended_remote_attach_1, extended_remote_attach):
4459 * target.h (struct target_ops) <to_attach>: Make "args" const.
4460 (find_default_attach): Likewise.
4461 * utils.c (parse_pid_to_attach): Make "args" const.
4462 * utils.h (parse_pid_to_attach): Update.
4464 2014-06-04 Tom Tromey <tromey@redhat.com>
4466 * target-delegates.c: Rebuild.
4467 * target.c (default_thread_address_space): New function.
4468 (target_thread_address_space): Simplify.
4469 * target.h (struct target_ops) <to_thread_address_space>: Add
4470 TARGET_DEFAULT_FUNC.
4472 2014-06-04 Doug Evans <xdje42@gmail.com>
4474 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4476 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4478 * record-btrace.c: Include event-loop.h and inf-loop.h.
4479 (record_btrace_resume_exec_dir)
4480 (record_btrace_async_inferior_event_handler)
4481 (record_btrace_handle_async_inferior_event): New.
4482 (record_btrace_open): Create async event handler.
4483 (record_btrace_close): Delete async event handler.
4484 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4485 Mark async event handler.
4486 (record_btrace_execution_direction): New.
4487 (init_record_btrace_ops): Initialize to_execution_direction.
4489 2014-06-03 Doug Evans <xdje42@gmail.com>
4491 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4492 (gdbscm_make_parameter): Ditto.
4494 2014-06-03 Doug Evans <dje@google.com>
4496 * exec.c (exec_close_1): Call clear_section_table instead of
4497 resize_section_table.
4498 (clear_section_table): New function.
4499 (resize_section_table): Make static. Rename arg num_added to
4501 * exec.h (clear_section_table): Declare.
4502 (resize_section_table): Delete.
4503 * progspace.c (release_program_space): Call clear_section_table
4504 instead of resize_section_table.
4506 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4508 * NEWS (Python Scripting): Add entry about the new xmethods
4511 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4513 * python/py-xmethods.c: New file.
4514 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4515 (objfpy_dealloc): XDECREF on the new xmethods field.
4516 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4518 (objfpy_get_xmethods): New function.
4519 (objfile_getset): New entry 'xmethods'.
4520 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4521 (pspy_dealloc): XDECREF on the new xmethods field.
4522 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4524 (pspy_get_xmethods): New function.
4525 (pspace_getset): New entry 'xmethods'.
4526 * python/python-internal.h: Add declarations for new functions.
4527 * python/python.c (_initialize_python): Invoke
4528 gdbpy_initialize_xmethods.
4529 * python/lib/gdb/__init__.py (xmethods): New
4531 * python/lib/gdb/xmethod.py: New file.
4532 * python/lib/gdb/command/xmethods.py: New file.
4534 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4536 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4537 best match method returned by find_overload_match is an xmethod.
4538 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4539 the best matching operator returned by find_overload_match is an
4541 * valops.c: #include "extension.h".
4542 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4543 Return void. The list of matching source methods is returned in
4544 "fn_list" and a vector of matching debug method workers is
4545 returned in "xm_worker_vec". Update all callers.
4546 (value_find_oload_method_list): Likewise.
4547 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4548 non-NULL, then the index of the best matching method in this
4549 vector is returned. Update all callers.
4550 (find_overload_match): Include xmethods while performing overload
4553 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4555 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4556 * extension-priv.h (struct extension_language_ops): Add the
4558 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4559 get_matching_xmethod_workers, get_xmethod_argtypes,
4560 invoke_xmethod, free_xmethod_worker,
4561 free_xmethod_worker_vec): New functions.
4562 * extension.h: #include "common/vec.h".
4563 New function declarations.
4564 (struct xmethod_worker): New struct.
4565 (VEC (xmethod_worker_ptr)): New vector type.
4566 (xmethod_worker_ptr): New typedef.
4567 (xmethod_worker_vec): Likewise.
4568 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4570 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4571 (struct builtin_type): New field "xmethod".
4572 * valarith.c (value_ptradd): Assert that the value argument is not
4574 * valops.c (value_must_coerce_to_target): Return 0 for
4575 lval_xcallable values.
4576 * value.c (struct value): New field XM_WORKER in the field
4578 (value_address, value_raw_address): Return 0 for lval_xcallable
4580 (set_value_address): Assert that the value is not an
4582 (value_free): Free the associated xmethod worker when freeing
4583 lval_xcallable values.
4584 (set_value_component_location): Assert that the WHOLE value is not
4586 (value_of_xmethod, call_xmethod): New functions.
4587 * value.h: Declare "struct xmethod_worker".
4588 Declare new functions value_of_xmethod, call_xmethod.
4590 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4591 Pedro Alves <palves@redhat.com>
4593 PR breakpoints/17000
4594 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4595 New function, extracted from software_breakpoint_inserted_here_p.
4596 (software_breakpoint_inserted_here_p): Replace factored out code
4597 by call to find_non_raw_software_breakpoint_inserted_here.
4598 (bp_target_info_copy_insertion_state): New function.
4599 (bkpt_insert_location): Handle the case of a single-step
4600 breakpoint already inserted at the same address.
4601 (bkpt_remove_location): Handle the case of a single-step
4602 breakpoint still inserted at the same address.
4603 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4604 breakpoint already inserted at the same address.
4605 (deprecated_remove_raw_breakpoint): Handle the case of a
4606 non-raw breakpoint still inserted at the same address.
4607 (find_single_step_breakpoint): New function, extracted from
4608 single_step_breakpoint_inserted_here_p.
4609 (find_single_step_breakpoint): New function,
4610 factored out from single_step_breakpoint_inserted_here_p.
4611 (single_step_breakpoint_inserted_here_p): Reimplement.
4613 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4615 Pushed by Joel Brobecker <brobecker@adacore.com>
4616 * source.c (show_substitute_path_command): Fix display of matching
4619 2014-06-03 Gary Benson <gbenson@redhat.com>
4621 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4623 2014-06-02 Doug Evans <xdje42@gmail.com>
4625 Add parameter support for Guile.
4626 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4627 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4628 (scm-param.o): New rule.
4629 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4630 (gdbscm_misc_error): Declare.
4631 (gdbscm_canonicalize_command_name): Declare.
4632 (gdbscm_scm_to_host_string): Declare.
4633 (gdbscm_scm_from_host_string): Declare.
4634 (gdbscm_initialize_parameters): Declare.
4635 * guile/guile.c (initialize_gdb_module): Call
4636 gdbscm_initialize_parameters.
4637 * guile/lib/gdb.scm: Export parameter symbols.
4638 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4639 cmdscm_canonicalize_name and made public. All callers updated.
4640 * guile/scm-exception.c (gdbscm_misc_error): New function.
4641 * guile/scm-param.c: New file.
4642 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4643 (gdbscm_scm_to_host_string): New function.
4644 (gdbscm_scm_from_host_string): New function.
4645 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4647 2014-06-02 Doug Evans <xdje42@gmail.com>
4649 Add command support for Guile.
4650 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4651 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4652 (scm-cmd.o): New rule.
4653 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4654 (gdbscm_user_error_p): Declare.
4655 (gdbscm_parse_command_name): Declare.
4656 (gdbscm_valid_command_class_p): Declare.
4657 (gdbscm_initialize_commands): Declare.
4658 * guile/guile.c (initialize_gdb_module): Call
4659 gdbscm_initialize_commands.
4660 * guile/lib/gdb.scm: Export command symbols.
4661 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4662 (throw-user-error): New function.
4663 * guile/scm-cmd.c: New file.
4664 * guile/scm-exception.c (user_error_symbol): New static global.
4665 (gdbscm_user_error_p): New function.
4666 (gdbscm_initialize_exceptions): Set user_error_symbol.
4667 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4669 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4671 * top.c (command_loop): Handle comments here...
4672 (command_line_input): ... not here.
4674 2014-06-02 Doug Evans <xdje42@gmail.com>
4676 Add progspace support for Guile.
4677 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4678 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4679 (scm-progspace.o): New rule.
4680 * guile/guile-internal.h (pspace_smob): New typedef.
4681 (psscm_pspace_smob_pretty_printers): Declare.
4682 (psscm_pspace_smob_from_pspace): Declare.
4683 (psscm_scm_from_pspace): Declare.
4684 * guile/guile.c (initialize_gdb_module): Call
4685 gdbscm_initialize_pspaces.
4686 * guile/lib/gdb.scm: Export progspace symbols.
4687 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4689 (append-pretty-printer!): Ditto.
4690 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4692 * guile/scm-progspace.c: New file.
4694 2014-06-03 Alan Modra <amodra@gmail.com>
4696 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4697 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4699 2014-06-02 Doug Evans <dje@google.com>
4701 Add support for skeletonless type units.
4702 * dwarf2read.c (struct dwarf2_per_objfile): New member
4703 n_allocated_type_units.
4704 (struct dwarf2_per_objfile) <tu_stats>: New member
4705 nr_all_type_units_reallocs.
4706 (create_signatured_type_table_from_index): Initialize
4707 n_allocated_type_units
4708 (create_all_type_units): Ditto.
4709 (add_type_unit): Move up in file. New arg slot.
4710 All callers updated. Increase space for all_type_units more
4712 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4713 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4714 (lookup_dwp_signatured_type): Ditto.
4715 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4716 All callers updated.
4717 (build_type_psymtabs_1): Leave type_unit_groups as
4718 NULL if no TUs present.
4719 (print_tu_stats): New function.
4720 (process_skeletonless_type_unit): New function.
4721 (process_dwo_file_for_skeletonless_type_units): New
4723 (process_skeletonless_type_units): New function.
4724 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4725 Call print tu_stats if debugging enabled.
4727 2014-06-02 Pedro Alves <palves@redhat.com>
4729 * breakpoint.c (build_target_command_list): Don't build a command
4730 list if we have any duplicate location that isn't a dprintf.
4732 2014-06-02 Pedro Alves <palves@redhat.com>
4734 * breakpoint.c (dprintf_breakpoint_hit): New function.
4735 (initialize_breakpoint_ops): Install it as dprintf's
4736 breakpoint_hit method.
4738 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4740 * source.c (substitute_path_rule_matches): Simplify using
4741 filename_ncmp instead of FILENAME_CMP.
4743 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4745 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4747 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4749 * configure.ac: When Guile is available, check for the
4750 availability of 'scm_new_smob'.
4751 * configure, config.h.in: Regenerate.
4752 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4755 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4757 * frame.c (struct frame_info): Add stop_string field.
4758 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4759 (get_prev_frame_always): Old content moved into
4760 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4761 TRY_CATCH, handle MEMORY_ERROR exceptions.
4762 (frame_stop_reason_string): New function definition.
4763 * frame.h (unwind_stop_reason_to_string): Extend comment to
4764 mention frame_stop_reason_string.
4765 (frame_stop_reason_string): New function declaration.
4766 * stack.c (frame_info): Switch to frame_stop_reason_string.
4767 (backtrace_command_1): Switch to frame_stop_reason_string.
4768 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4769 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4770 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4772 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4774 * frame.c (frame_stop_reason_string): Rename to ...
4775 (unwind_stop_reason_to_string): this.
4776 * frame.h (frame_stop_reason_string): Rename to ...
4777 (unwind_stop_reason_to_string): this.
4778 * stack.c (frame_info): Update call to frame_stop_reason_string.
4779 (backtrace_command_1): Likewise.
4780 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4781 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4783 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4785 * frame.c (remove_prev_frame): New function.
4786 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4789 2014-05-29 Pedro Alves <palves@redhat.com>
4791 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4792 and make it const. When a single-step decays to a continue,
4793 clear 'step', not 'hw_step'. Pass whether the caller wanted
4794 to step to user_visible_resume_ptid, not what we ask the
4797 2014-05-29 Pedro Alves <palves@redhat.com>
4799 * infrun.c (process_event_stop_test, handle_step_into_function)
4800 (handle_step_into_function_backward): Adjust.
4801 Don't set the even thread's stop_step and call stop_waiting before
4802 calling end_stepping_range. Instead do that ...
4803 (end_stepping_range): ... here. Take an ecs pointer parameter.
4805 2014-05-29 Pedro Alves <palves@redhat.com>
4807 * infrun.c (stop_stepping): Rename to ...
4808 (stop_waiting): ... this.
4809 (proceed): Update comment.
4810 (process_event_stop_test, handle_inferior_event)
4811 (handle_signal_stop, handle_step_into_function)
4812 (handle_step_into_function_backward): Update.
4814 2014-05-29 Pedro Alves <palves@redhat.com>
4816 * infcall.c (run_inferior_call): Don't check whether the current
4817 thread is running after the proceed call.
4819 2014-05-29 Pedro Alves <palves@redhat.com>
4820 Tom Tromey <tromey@redhat.com>
4822 * NEWS: Mention "maint set target-async", "set mi-async", and that
4823 background execution commands are now always available.
4824 * target.h (target_async_permitted): Update comment.
4825 * target.c (target_async_permitted, target_async_permitted_1):
4827 (set_target_async_command): Rename to ...
4828 (maint_set_target_async_command): ... this.
4829 (show_target_async_command): Rename to ...
4830 (maint_show_target_async_command): ... this.
4831 (_initialize_target): Adjust.
4832 * infcmd.c (prepare_execution_command): Make extern.
4833 * inferior.h (prepare_execution_command): Declare.
4834 * infrun.c (set_observer_mode): Leave target async alone.
4835 * mi/mi-interp.c (mi_interpreter_init): Install
4836 mi_on_sync_execution_done as sync_execution_done observer.
4837 (mi_on_sync_execution_done): New function.
4838 (mi_execute_command_input_handler): Don't print the prompt if we
4839 just started a synchronous command with an async target.
4840 (mi_on_resume): Check sync_execution before printing prompt.
4841 * mi/mi-main.h (mi_async_p): Declare.
4842 * mi/mi-main.c: Include gdbcmd.h.
4843 (mi_async_p): New function.
4844 (mi_async, mi_async_1): New globals.
4845 (set_mi_async_command, show_mi_async_command, mi_async): New
4847 (exec_continue): Call prepare_execution_command.
4848 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4849 (mi_execute_async_cli_command): Use mi_async_p.
4850 (_initialize_mi_main): Install "set mi-async". Make
4851 "target-async" a deprecated alias.
4853 2014-05-29 Pedro Alves <palves@redhat.com>
4855 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4856 (_initialize_cli_interp): Adjust.
4857 * event-loop.c: Include "observer.h".
4858 (start_event_loop): Notify 'command_error' observers instead of
4859 calling display_gdb_prompt. Remove FIXME comment.
4860 * event-top.c (display_gdb_prompt): Remove call into the
4862 * inf-loop.c: Include "observer.h".
4863 (inferior_event_handler): Notify 'command_error' observers instead
4864 of calling display_gdb_prompt.
4865 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4866 observers instead of calling display_gdb_prompt.
4867 * interps.c (interp_set): Don't call display_gdb_prompt.
4868 (current_interp_display_prompt_p): Delete.
4869 * interps.h (interp_prompt_p): Delete declaration.
4870 (interp_prompt_p_ftype): Delete.
4871 (struct interp_procs) <prompt_proc_p>: Delete field.
4872 (current_interp_display_prompt_p): Delete declaration.
4873 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4874 (_initialize_mi_interp): Adjust.
4875 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4876 'command_error' observers.
4877 (tui_on_sync_execution_done, tui_on_command_error): New
4879 (tui_display_prompt_p): Delete.
4880 (_initialize_tui_interp): Adjust.
4882 2014-05-29 Pedro Alves <palves@redhat.com>
4885 * cli/cli-interp.c: Include infrun.h and observer.h.
4886 (cli_uiout, cli_interp): New globals.
4887 (cli_on_signal_received, cli_on_end_stepping_range)
4888 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4890 (cli_interpreter_init): Install them as 'end_stepping_range',
4891 'signal_received' 'signal_exited', 'exited' and 'no_history'
4893 (_initialize_cli_interp): Remove cli_interp local.
4894 * infrun.c (handle_inferior_event): Call the several stop reason
4895 observers instead of printing the stop reason directly.
4896 (end_stepping_range): New function.
4897 (print_end_stepping_range_reason, print_signal_exited_reason)
4898 (print_exited_reason, print_signal_received_reason)
4899 (print_no_history_reason): Make static, and add an uiout
4900 parameter. Print to that instead of to CURRENT_UIOUT.
4901 * infrun.h (print_end_stepping_range_reason)
4902 (print_signal_exited_reason, print_exited_reason)
4903 (print_signal_received_reason print_no_history_reason): New
4905 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4907 <cli_uiout>: New field.
4908 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4909 uiout for CLI output. Install 'signal_received',
4910 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4912 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4913 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4914 (mi_on_no_history): New functions.
4915 (ui_out_free_cleanup): Delete function.
4916 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4917 instead use the one already stored in the MI interpreter data.
4918 (mi_ui_out): Adjust.
4919 * tui/tui-interp.c: Include infrun.h and observer.h.
4920 (tui_interp): New global.
4921 (tui_on_signal_received, tui_on_end_stepping_range)
4922 (tui_on_signal_exited, tui_on_exited)
4923 (tui_on_no_history): New functions.
4924 (tui_init): Install them as 'end_stepping_range',
4925 'signal_received' 'signal_exited', 'exited' and 'no_history'
4927 (_initialize_tui_interp): Delete tui_interp local.
4929 2014-05-29 Pedro Alves <palves@redhat.com>
4932 * linux-nat.c (linux_nat_resume_callback): Rename the second
4933 parameter to 'except'. Skip LP if it points to EXCEPT.
4934 (linux_nat_resume): Don't mark the event lwp as not stopped
4935 before resuming sibling lwps. Instead ask
4936 linux_nat_resume_callback to skip the event lwp. Mark it as not
4937 stopped after actually resuming it.
4938 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4940 (wait_lwp): Mark the lwp as stopped here.
4941 (stop_wait_callback): Mark the lwp as not stopped right after
4942 resuming it. Don't mark lwps as stopped here.
4943 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4944 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4946 2014-05-29 Pedro Alves <palves@redhat.com>
4949 * infrun.c (resume): Determine how much to resume depending on
4950 whether the caller wanted a step, not whether we can hardware step
4951 the target. Mark all threads that we intend to run as running,
4952 unless we're calling an inferior function.
4953 (normal_stop): If the thread is running an infcall, don't finish
4955 * target.c (target_resume): Don't mark threads as running here.
4957 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4959 * serial.c (_initialize_serial): Remove support for
4960 the "set remotebaud" and "show remotebaud" commands.
4961 * NEWS: Add entry documenting the removal of that command.
4963 2014-05-28 Yao Qi <yao@codesourcery.com>
4965 * charset.c: Fix typo in comments.
4967 2014-05-27 Gary Benson <gbenson@redhat.com>
4969 * utils.c (internal_vproblem): Prompt for a bug report.
4971 2014-05-26 Andy Wingo <wingo@igalia.com>
4973 * guile/scm-arch.c (arscm_mark_arch_smob):
4974 * guile/scm-block.c (bkscm_mark_block_smob)
4975 (bkscm_mark_block_syms_progress_smob):
4976 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4977 * guile/scm-exception.c (exscm_mark_exception_smob):
4978 * guile/scm-frame.c (frscm_mark_frame_smob):
4979 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4980 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4981 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4982 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4983 (ppscm_mark_pretty_printer_worker_smob):
4984 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4985 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4986 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4987 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4989 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4992 2014-05-26 Andy Wingo <wingo@igalia.com>
4993 Doug Evans <xdje42@gmail.com>
4995 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4996 empty_base_class. All uses updated.
4997 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4998 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5000 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5001 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5002 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5003 (gdbscm_gsmob_has_property_p, add_property_name)
5004 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5005 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5006 (gdb-object-has-property?, gdb-object-properties): Remove.
5007 (gdb-object-kind): Renamed from gsmob-kind.
5009 2014-05-26 Andy Wingo <wingo@igalia.com>
5011 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5012 * configure: Regenerate.
5014 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5016 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5018 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5020 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5021 (replay_memory_access_read_only, replay_memory_access_read_write)
5022 (replay_memory_access_types, replay_memory_access)
5023 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5024 (cmd_set_record_btrace, cmd_show_record_btrace)
5025 (cmd_show_replay_memory_access): New.
5026 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5027 (record_btrace_remove_breakpoint): Replace
5028 record_btrace_allow_memory_access with replay_memory_access.
5029 (_initialize_record_btrace): Add commands.
5030 * NEWS: Announce it.
5032 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5034 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5036 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5038 * MAINTAINERS (Write After Approval): Move self back from
5041 2014-05-22 Pedro Alves <palves@redhat.com>
5043 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5044 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5045 (disable_randomization, enum exec_direction_kind)
5046 (execution_direction, stop_registers, start_remote)
5047 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5048 (wait_for_inferior, normal_stop, get_last_target_status)
5049 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5050 (insert_step_resume_breakpoint_at_sal)
5051 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5052 (set_step_info, print_stop_event, signal_stop_state)
5053 (signal_print_state, signal_pass_state, signal_stop_update)
5054 (signal_print_update, signal_pass_update)
5055 (update_signals_program_target, clear_exit_convenience_vars)
5056 (displaced_step_dump_bytes, update_observer_mode)
5057 (signal_catch_update, gdb_signal_from_command): Move
5059 * infrun.h: ... to this new file.
5060 * amd64-tdep.c: Include infrun.h.
5061 * annotate.c: Include infrun.h.
5062 * arch-utils.c: Include infrun.h.
5063 * arm-linux-tdep.c: Include infrun.h.
5064 * arm-tdep.c: Include infrun.h.
5065 * break-catch-sig.c: Include infrun.h.
5066 * breakpoint.c: Include infrun.h.
5067 * common/agent.c: Include infrun.h instead of inferior.h.
5068 * corelow.c: Include infrun.h.
5069 * event-top.c: Include infrun.h.
5070 * go32-nat.c: Include infrun.h.
5071 * i386-tdep.c: Include infrun.h.
5072 * inf-loop.c: Include infrun.h.
5073 * infcall.c: Include infrun.h.
5074 * infcmd.c: Include infrun.h.
5075 * infrun.c: Include infrun.h.
5076 * linux-fork.c: Include infrun.h.
5077 * linux-nat.c: Include infrun.h.
5078 * linux-thread-db.c: Include infrun.h.
5079 * monitor.c: Include infrun.h.
5080 * nto-tdep.c: Include infrun.h.
5081 * procfs.c: Include infrun.h.
5082 * record-btrace.c: Include infrun.h.
5083 * record-full.c: Include infrun.h.
5084 * remote-m32r-sdi.c: Include infrun.h.
5085 * remote-mips.c: Include infrun.h.
5086 * remote-notif.c: Include infrun.h.
5087 * remote-sim.c: Include infrun.h.
5088 * remote.c: Include infrun.h.
5089 * reverse.c: Include infrun.h.
5090 * rs6000-tdep.c: Include infrun.h.
5091 * s390-linux-tdep.c: Include infrun.h.
5092 * solib-irix.c: Include infrun.h.
5093 * solib-osf.c: Include infrun.h.
5094 * solib-svr4.c: Include infrun.h.
5095 * target.c: Include infrun.h.
5096 * top.c: Include infrun.h.
5097 * windows-nat.c: Include infrun.h.
5098 * mi/mi-interp.c: Include infrun.h.
5099 * mi/mi-main.c: Include infrun.h.
5100 * python/py-threadevent.c: Include infrun.h.
5102 2014-05-22 Pedro Alves <palves@redhat.com>
5104 * infrun.c (handle_inferior_event): Store the exit code for
5105 --return-child-result here, instead of ...
5106 (print_exited_reason): ... here.
5108 2014-05-21 Pedro Alves <palves@redhat.com>
5111 * gdbthread.h (struct thread_control_state): New field
5113 * infrun.c (follow_fork): Copy the new thread control field to the
5115 (clear_proceed_status_thread): Clear the new thread control field.
5116 (proceed): Set the new thread control field.
5117 * interps.h (command_interp): Declare.
5118 * interps.c (command_interpreter): New global.
5119 (command_interp): New function.
5120 (interp_exec): Set `command_interpreter' while here.
5121 * cli-out.c (cli_uiout_dtor): New function.
5122 (cli_ui_out_impl): Install it.
5123 * mi/mi-interp.c: Include cli-out.h.
5124 (mi_cmd_interpreter_exec): Add comment.
5125 (restore_current_uiout_cleanup): New function.
5126 (ui_out_free_cleanup): New function.
5127 (mi_on_normal_stop): If finishing an execution command started by
5128 a CLI command, or any kind of breakpoint-like event triggered,
5129 print the stop event to the output (CLI) stream.
5130 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5132 2014-05-21 Pedro Alves <palves@redhat.com>
5134 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5135 current source line having changed.
5136 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5137 * infrun.c (normal_stop): Adjust call to
5138 set_current_sal_from_frame.
5139 * source.c (clear_lines_listed_range): New function.
5140 (set_current_source_symtab_and_line, identify_source_line): Clear
5141 the lines listed range.
5142 (line_info): Handle the first "info line" after the current source
5143 line having changed.
5144 * stack.c (print_stack_frame): Remove center handling.
5145 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5148 2014-05-21 Pedro Alves <palves@redhat.com>
5150 * inf-child.c (inf_child_mourn_inferior): New function.
5151 * inf-child.h (inf_child_mourn_inferior): New declaration.
5152 * darwin-nat.c (darwin_mourn_inferior): Use
5153 inf_child_mourn_inferior.
5154 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5155 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5156 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5157 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5158 * windows-nat.c (windows_mourn_inferior): Likewise.
5160 2014-05-21 Doug Evans <xdje42@gmail.com>
5162 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5164 2014-05-21 Doug Evans <xdje42@gmail.com>
5166 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5167 (gdbscm_out_of_range_error): Ditto.
5168 (gdbscm_memory_error): Ditto.
5169 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5170 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5171 (gdbscm_out_of_range_error): Update.
5172 (gdbscm_memory_error): Update.
5173 (gdbscm_scm_to_target_string_unsafe): Delete.
5175 2014-05-21 Pedro Alves <palves@redhat.com>
5177 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5179 (inf_child_open_target): New function.
5180 (inf_child_open): Use inf_child_open_target to push the target
5181 instead of erroring out.
5182 (inf_child_disconnect, inf_child_close)
5183 (inf_child_maybe_unpush_target): New functions.
5184 (inf_child_target): Install inf_child_disconnect and
5185 inf_child_close. Store a pointer to the returned object.
5186 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5188 * target.c (auto_connect_native_target): New global.
5189 (show_default_run_target): New function.
5190 (find_default_run_target): Return NULL if automatically connecting
5191 to the native target is disabled.
5192 (_initialize_target): Install set/show auto-connect-native-target.
5193 * NEWS: Mention "set auto-connect-native-target", and "target
5195 * linux-nat.c (super_close): New global.
5196 (linux_nat_close): Call super_close.
5197 (linux_nat_add_target): Store a pointer to the base class's
5199 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5200 inf_child_maybe_unpush.
5201 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5203 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5204 the inferior. Use inf_child_maybe_unpush_target.
5205 (inf_ttrace_attach): Don't push the target if it is already
5207 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5208 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5209 after mourning the inferior. Use inf_child_maybe_unpush_target.
5210 (darwin_attach_pid): Don't push the target if it is already
5212 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5213 mourning the inferior. Use inf_child_maybe_unpush_target.
5214 (gnu_detach): Use inf_child_maybe_unpush_target.
5215 * go32-nat.c (go32_create_inferior): Don't push the target if it
5217 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5218 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5219 (procfs_open): Rename to ...
5220 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5221 comments. Can target_preopen before changing node. Call
5222 inf_child_open_target to push the target explicitly.
5223 (procfs_attach): Don't push the target if it is already pushed.
5224 (procfs_detach): Use inf_child_maybe_unpush_target.
5225 (procfs_create_inferior): Don't push the target if it is already
5227 (nto_native_ops): New global.
5228 (procfs_open): Reimplement.
5229 (procfs_native_open): New function.
5230 (init_procfs_targets): Install procfs_native_open as to_open of
5231 "target native". Store a pointer to the "native" target in
5233 * procfs.c (procfs_attach): Don't push the target if it is already
5235 (procfs_detach): Use inf_child_maybe_unpush_target.
5236 (procfs_mourn_inferior): Only unpush the target after mourning the
5237 inferior. Use inf_child_maybe_unpush_target.
5238 (procfs_init_inferior): Don't push the target if it is already
5240 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5241 if it is already pushed.
5243 2014-05-21 Pedro Alves <palves@redhat.com>
5245 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5246 and "procfs" targets are now called "native" instead.
5248 2014-05-21 Pedro Alves <palves@redhat.com>
5250 * go32-nat.c (go32_open): Delete.
5251 (go32_target): Don't override the to_open method.
5253 2014-05-21 Pedro Alves <palves@redhat.com>
5255 * nto-procfs.c (procfs_can_run): New function.
5256 (nto_procfs_ops): New global.
5257 (init_procfs_targets): New, based on procfs_target. Install
5258 "target native" in addition to "target procfs".
5259 (_initialize_procfs): Call init_procfs_targets instead of adding
5262 2014-05-21 Pedro Alves <palves@redhat.com>
5264 * windows-nat.c (windows_target): Don't override to_shortname,
5265 to_longname or to_doc.
5267 2014-05-21 Pedro Alves <palves@redhat.com>
5269 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5272 2014-05-21 Pedro Alves <palves@redhat.com>
5274 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5275 to_shortname, to_longname or to_doc.
5277 2014-05-21 Pedro Alves <palves@redhat.com>
5279 * go32-nat.c (go32_target): Don't override to_shortname,
5280 to_longname or to_doc.
5282 2014-05-21 Pedro Alves <palves@redhat.com>
5284 * inf-child.c (inf_child_open): Remove mention of "child".
5285 (inf_child_target): Rename target to "native" instead of "child".
5287 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5289 * Makefile.in (SFILES): Delete "regset.c".
5290 (COMMON_OBS): Delete "regset.o".
5292 * regset.h (regset_alloc): Delete prototype.
5294 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5296 * sparc-linux-tdep.c (sparc32_linux_gregset)
5297 (sparc32_linux_fpregset): New static regset structures.
5298 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5299 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5301 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5302 (sparc64_linux_fpregset): New static regset structures.
5303 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5304 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5305 New static regset structures.
5306 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5307 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5308 New static regset structures.
5309 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5310 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5311 New static regset structures.
5312 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5313 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5314 New static regset structures.
5315 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5317 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5319 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5320 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5321 register maps ("regmaps") from "*regset" to "*regmap". Do this
5322 for all regmap types and variables.
5323 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5324 (sparc32_linux_supply_core_gregset)
5325 (sparc32_linux_collect_core_gregset)
5326 (sparc32_linux_supply_core_fpregset)
5327 (sparc32_linux_collect_core_fpregset): Likewise.
5328 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5329 (sparc_gregmap, sparc_fpregmap): ... these.
5330 (sparc_supply_gregset, sparc_collect_gregset)
5331 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5332 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5333 (_initialize_sparc_nat): Rename regmaps.
5334 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5335 (sparc_gregmap, sparc_fpregmap): ... these.
5336 (sparc_supply_gregset, sparc_collect_gregset)
5337 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5338 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5340 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5341 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5343 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5345 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5346 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5347 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5349 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5350 (sparc32_bsd_fpregset): Rename to...
5351 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5352 (sparc32_bsd_fpregmap): ... these.
5353 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5354 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5355 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5356 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5357 (struct sparc_gregmap, struct sparc_fpregmap)
5358 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5359 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5360 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5361 (sparc32_supply_regset, sparc32_collect_gregset)
5362 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5364 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5365 (sparc64_linux_ptrace_gregmap): ... this.
5366 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5367 (_initialize_sparc64_linux_nat): Rename regmaps.
5368 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5369 (sparc64_linux_core_gregmap): ... this.
5370 (sparc64_linux_supply_core_gregset)
5371 (sparc64_linux_collect_core_gregset)
5372 (sparc64_linux_supply_core_fpregset)
5373 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5374 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5375 (sparc64_sol2_fpregset): Rename to...
5376 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5377 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5378 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5380 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5381 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5382 (sparc64_bsd_fpregset): Rename to...
5383 (struct sparc_gregmap, sparc64_sol2_gregmap)
5384 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5385 (sparc64_bsd_fpregmap): ... these.
5386 (sparc64_supply_gregset, sparc64_collect_gregset)
5387 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5389 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5390 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5391 (sparc64fbsd_gregmap): ... this.
5392 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5393 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5395 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5396 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5397 (sparc64nbsd_collect_fpregset): Likewise.
5398 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5399 (sparc64nbsd_gregmap): ... this.
5400 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5402 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5403 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5404 (sparc64obsd_gregmap): ... this.
5405 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5407 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5408 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5409 (sparc32nbsd_gregmap): ... this.
5410 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5413 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5415 * score-tdep.c (score7_linux_gregset): New static regset
5417 (score7_linux_regset_from_core_section): Remove dynamic regset
5419 (score_gdbarch_init): Drop allocation of tdep structure.
5420 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5422 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5424 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5426 (am33_regset_from_core_section): Remove dynamic regset
5429 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5431 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5432 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5434 (mips_linux_regset_from_core_section): Remove dynamic regset
5436 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5437 'gregset64', 'fpregset', and 'fpregset64'.
5438 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5439 deleted tdep fields.
5441 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5443 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5445 (amd64_regset_from_core_section): Remove dynamic regset
5447 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5449 (amd64obsd_regset_from_core_section): Remove dynamic regset
5451 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5453 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5454 x86-common regset supply function.
5455 * i386-tdep.c (i386_collect_gregset): Make static.
5456 (i386_gregset): New global regset structure.
5457 (i386_fpregset, i386_xstateregset): New static regset structures.
5458 (i386_regset_from_core_section): Remove dynamic regset
5460 (i386_gdbarch_init): Remove initialization of tdep fields
5461 'gregset', 'fpregset', and 'xstateregset'.
5462 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5463 'fpregset', and 'xstateregset'.
5464 (i386_collect_gregset): Remove prototype.
5465 (i386_gregset): New declaration.
5466 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5468 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5471 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5473 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5474 (arm_linux_vfpregset): New static regset structures.
5475 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5477 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5478 and 'vfpregset' fields.
5480 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5482 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5483 (aarch64_linux_fpregset): New static regset structures.
5484 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5485 of regset structures.
5486 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5489 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5491 * regset.h (struct regset): Remove gdbarch field.
5492 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5493 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5494 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5496 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5497 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5498 (ppc32_linux_vsxregset): Likewise.
5499 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5500 via the regcache instead of the regset.
5501 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5502 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5503 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5504 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5507 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5509 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5510 Constify structures.
5511 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5512 (alphanbsd_aout_gregset): Likewise.
5513 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5514 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5516 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5517 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5519 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5520 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5521 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5522 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5523 * m88k-tdep.c (m88k_gregset): Likewise.
5524 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5525 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5526 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5527 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5528 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5529 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5530 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5531 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5532 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5534 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5535 * sh-tdep.h (sh_corefile_gregset): Likewise.
5536 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5537 * vax-tdep.c (vax_gregset): Likewise.
5539 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5541 Fix TLS access for -static -pthread.
5542 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5543 (try_thread_db_load_1): Initialize it.
5544 (thread_db_get_thread_local_address): Call it if LM is zero.
5545 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5546 * target.h (struct target_ops) (to_get_thread_local_address): Add
5547 load_module_addr comment.
5549 2014-05-21 Pedro Alves <palves@redhat.com>
5551 * dcache.c (dcache_read_memory_partial): If reading the cache line
5552 fails, fallback to reading just the memory the caller wanted.
5554 2014-05-20 Doug Evans <dje@google.com>
5556 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5557 instead of get_current_arch.
5559 2014-05-20 Pedro Alves <palves@redhat.com>
5561 * NEWS: Mention that compare-sections now works with all targets.
5563 * remote.c (PACKET_qCRC): New enum value.
5564 (remote_verify_memory): Don't send qCRC if the target has no
5565 execution. Use packet_support/packet_ok. If the target doesn't
5566 support the qCRC packet, fallback to a deep memory copy.
5567 (compare_sections_command): Say "target image" instead of "remote
5569 (_initialize_remote): Add PACKET_qCRC to the list of config
5570 packets that have no associated command. Extend comment.
5571 * target.c (simple_verify_memory, default_verify_memory): New
5573 * target.h (struct target_ops) <to_verify_memory>: Default to
5574 default_verify_memory.
5575 (simple_verify_memory): New declaration.
5576 * target-delegates.c: Regenerate.
5578 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5580 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5582 2014-05-20 Hui Zhu <hui@codesourcery.com>
5583 Yao Qi <yao@codesourcery.com>
5586 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5587 and change address of sp and pc.
5589 2014-05-19 Tom Tromey <tromey@redhat.com>
5591 * gdbtypes.c (rank_function): Use XNEWVEC.
5592 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5594 2014-05-19 Doug Evans <dje@google.com>
5596 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5597 build_type_unit_groups and moved closer to only caller. Remove
5598 arguments. All references updated. Remove outdated .gdb_index
5600 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5601 build_type_psymtabs_1.
5603 2014-05-19 Doug Evans <dje@google.com>
5605 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5606 n_type_unit_groups, all_type_unit_groups. All uses removed.
5607 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5608 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5609 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5610 (add_type_unit_group_to_table): Delete.
5612 2014-05-19 Doug Evans <dje@google.com>
5614 * eval.c (evaluate_subexp_standard): Add some comments.
5616 2014-05-17 Doug Evans <xdje42@gmail.com>
5618 * progspace.c (remove_program_space): Delete, unused.
5619 * progspace.h (remove_program_space): Ditto.
5621 2014-05-17 Doug Evans <xdje42@gmail.com>
5623 * inferior.c (prune_inferiors): Fix comment.
5624 (remove_inferior_command): Call prune_program_spaces.
5626 2014-05-16 Doug Evans <dje@google.com>
5628 New command line option -D.
5630 * main.c (set_gdb_data_directory): New function.
5631 (captured_main): Recognize -D. Flag error for --data-directory "".
5632 Call set_gdb_data_directory.
5633 (print_gdb_help): Print --data-directory, -D.
5634 * main.h (set_gdb_data_directory): Declare.
5635 * top.c (staged_gdb_datadir): New static global.
5636 (set_gdb_datadir): Call set_gdb_data_directory
5637 (show_gdb_datadir): New function.
5638 (init_main): Update init of data-directory parameter.
5640 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5642 Import the "dirfd" gnulib module.
5643 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5644 * gnulib/aclocal.m4: Update.
5645 * gnulib/config.in: Update.
5646 * gnulib/configure: Update.
5647 * gnulib/import/Makefile.am: Update.
5648 * gnulib/import/Makefile.in: Update.
5649 * gnulib/import/dirfd.c: New.
5650 * gnulib/import/m4/dirfd.m4: New.
5651 * gnulib/import/m4/gnulib-cache.m4: Update.
5652 * gnulib/import/m4/gnulib-comp.m4: Update.
5654 2014-05-16 Pierre Muller <muller@sourceware.org>
5655 Yao Qi <yao@codesourcery.com>
5657 * valprint.c (print_wchar): Move the code on checking whether
5658 W is a printable wide char to the default branch of switch
5659 statement below. Call wchar_printable instead of gdb_iswprint.
5661 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5663 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5664 ldr.w and ldrd instructions.
5666 2014-05-15 Doug Evans <dje@google.com>
5668 * dwarf2read.c (read_structure_type): Delete outdated comments.
5670 2014-05-14 Tom Tromey <tromey@redhat.com>
5672 * macrocmd.c (print_macro_definition): Reindent.
5674 2014-05-13 Doug Evans <xdje42@gmail.com>
5676 * python/py-cmd.c (cmdpy_completer): Add comment.
5677 (completers): Make const.
5679 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5681 * infrun.c (resume): Remove should_resume (unused). Move up
5682 declaration of resume_ptid.
5684 2014-05-13 Tom Tromey <tromey@redhat.com>
5686 * language.h (unop_type_check): Remove.
5687 (binop_type_check): Don't declare.
5689 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5691 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5692 call to regcache_raw_collect.
5694 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5696 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5697 mi_console->quote as the quoting character.
5699 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5701 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5703 2014-04-29 Tom Tromey <tromey@redhat.com>
5705 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5706 "show debug varobj".
5708 2014-05-07 Kyle McMartin <kyle@redhat.com>
5710 Pushed by Joel Brobecker <brobecker@adacore.com>.
5711 * aarch64-tdep.c (aarch64_software_single_step): New function.
5712 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5713 with aarch64_software_single_step.
5715 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5719 2014-05-05 Keith Seitz <keiths@redhat.com>
5721 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5722 variable or history value is successfully parsed.
5724 2014-05-05 Yao Qi <yao@codesourcery.com>
5725 Pedro Alves <palves@redhat.com>
5727 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5728 address of blocks that intersects the requested range. Trim
5729 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5731 * ctf.c (ctf_xfer_partial): Likewise.
5733 2014-05-05 Yao Qi <yao@codesourcery.com>
5735 * printcmd.c (display_command): Remove the check to
5736 target_has_execution.
5738 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5740 * ppcobsd-nat.c: Include "obsd-nat.h".
5741 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5743 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5745 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5747 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5748 and 16-bit signed and unsigned arguments. Update comment.
5749 (stap_parse_probe_arguments): Extend code to handle such
5750 arguments. Use warning instead of complaint to notify about
5751 unrecognized bitness.
5753 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5755 PR breakpoints/16889
5756 * stap-probe.c (stap_parse_probe_arguments): Simplify
5757 check for non-prefixed probes (i.e., probes whose
5758 arguments do not start with "N@"). Always set the
5759 argument type to a sane value.
5761 2014-05-01 David Taylor <dtaylor@emc.com>
5763 * remote.c (compare_sections_command): Add -r option to compare
5764 all loadable read-only sections.
5766 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5768 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5769 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5771 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5772 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5773 Remove unused CORE_ADDR argument. Update all callers.
5775 2014-04-29 Pedro Alves <palves@redhat.com>
5777 * remote.c (struct packet_config) <detect>: Extend comment.
5778 (add_packet_config_cmd): Don't set the config's detect or support
5780 (init_all_packet_configs): Also initialize the config's 'detect'
5782 (reset_all_packet_configs_support): New function.
5783 (remote_open_1): Call reset_all_packet_configs_support instead of
5784 init_all_packet_configs.
5785 (_initialize_remote): Initialize all packet configs. Assert that
5786 all packets have an associated command, except a few known
5789 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5791 * dwarf2read.c (read_subrange_type): Handle dynamic
5792 DW_AT_lower_bound attributes.
5794 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5796 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5797 dynamic bounds before computing its upper bound.
5798 (ada_discrete_type_low_bound): Same as above with the lower bound.
5800 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5802 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5803 range types. Adjust the array handling implementation to
5804 take advantage of this change.
5805 (resolve_dynamic_range): New function, mostly extracted from
5806 resolve_dynamic_bounds.
5807 (resolve_dynamic_array): New function, mostly extracted from
5808 resolve_dynamic_bounds.
5809 (resolve_dynamic_bounds): Delete.
5810 (resolve_dynamic_type): Reimplement. Add handling of
5811 TYPE_CODE_RANGE types.
5813 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5815 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5816 handling of parallel ___XA types.
5818 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5820 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5821 unnecessary second call to static_unwrap_type.
5823 2014-04-27 Hui Zhu <hui@codesourcery.com>
5825 * stack.c (print_frame_info): Call do_gdb_disassembly with
5826 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5828 2014-04-26 Doug Evans <xdje42@gmail.com>
5830 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5832 2014-04-25 Pedro Alves <palves@redhat.com>
5835 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5836 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5837 and newline from built string.
5838 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5839 (linux_ptrace_attach_fail_reason): ... this.
5840 * linux-nat.c (linux_nat_attach): Adjust to use
5841 linux_ptrace_attach_fail_reason.
5843 2014-04-25 Pedro Alves <palves@redhat.com>
5845 * remote.c (struct remote_state): Remove multi_process_aware,
5846 non_stop_aware, cond_tracepoints, cond_breakpoints,
5847 breakpoint_commands, fast_tracepoints, static_tracepoints,
5848 install_in_trace, disconnected_tracing,
5849 enable_disable_tracepoints, string_tracing, and
5850 augmented_libraries_svr4_read fields.
5851 (remote_multi_process_p): Move further below in the file.
5852 (struct packet_config): Add comments.
5853 (update_packet_config): Delete function.
5854 (show_packet_config_cmd): Use packet_config_support.
5855 (add_packet_config_cmd): Use NULL as set callback.
5856 (packet_ok): "set remote foo-packet"-style commands no longer
5857 change config->supported -- adjust.
5858 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5859 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5860 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5861 (PACKET_QNonStop, PACKET_multiprocess_feature)
5862 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5863 (PACKET_DisconnectedTracing_feature)
5864 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5865 (set_remote_protocol_packet_cmd): Delete function.
5866 (packet_config_support, packet_support): New functions.
5867 (set_remote_protocol_Z_packet_cmd): Don't call
5868 update_packet_config.
5869 (remote_query_attached, remote_pass_signals)
5870 (remote_program_signals, remote_threads_info)
5871 (remote_threads_extra_info, remote_start_remote): Use
5873 (remote_start_remote): Use packet_config_support and
5875 (init_all_packet_configs): Set all packets to unknown support,
5876 instead of calling update_packet_config.
5877 (remote_check_symbols): Use packet_support.
5878 (remote_supported_packet): Unconditionally set the packet config's
5880 (remote_multi_process_feature, remote_non_stop_feature)
5881 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5882 (remote_breakpoint_commands_feature)
5883 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5884 (remote_install_in_trace_feature)
5885 (remote_disconnected_tracing_feature)
5886 (remote_enable_disable_tracepoint_feature)
5887 (remote_string_tracing_feature)
5888 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5889 (remote_protocol_features): Adjust to use remote_supported_packet
5890 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5891 "ConditionalTracepoints", "ConditionalBreakpoints",
5892 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5893 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5894 "EnableDisableTracepoints", and "tracenz".
5895 (remote_query_supported): Use packet_support.
5896 (remote_open_1): Adjust.
5897 (extended_remote_attach_1): Use packet_support. Switch on the
5898 result of packet_ok instead of checking whether the packet ended
5900 (remote_vcont_resume): Use packet_support.
5901 (remote_resume, remote_stop_ns, fetch_register_using_p)
5902 (remote_prepare_to_store, store_register_using_P)
5903 (check_binary_download, remote_write_bytes): Use packet_support.
5904 (remote_vkill): Use packet_support. Switch on the result of
5905 packet_ok instead of checking whether the packet ended up
5907 (extended_remote_supports_disable_randomization): Use
5909 (extended_remote_run): Switch on the result of packet_ok instead
5910 of checking whether the packet ended up disabled.
5911 (remote_insert_breakpoint, remote_remove_breakpoint)
5912 (remote_insert_watchpoint, remote_remove_watchpoint)
5913 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5915 (remote_search_memory): Use packet_config_support.
5916 (remote_get_thread_local_address, remote_get_tib_address)
5917 (remote_hostio_send_command, remote_can_execute_reverse): Use
5919 (remote_supports_cond_tracepoints)
5920 (remote_supports_cond_breakpoints)
5921 (remote_supports_fast_tracepoints)
5922 (remote_supports_static_tracepoints)
5923 (remote_supports_install_in_trace)
5924 (remote_supports_enable_disable_tracepoint)
5925 (remote_supports_string_tracing)
5926 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5927 the packet config says the feature is enabled or disabled.
5928 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5929 (remote_get_trace_status): Use packet_support.
5930 (remote_set_disconnected_tracing): Adjust to check whether the
5931 feature is enabled with packet_support.
5932 (remote_set_trace_buffer_size, remote_use_agent)
5933 (remote_can_use_agent, remote_supports_btrace): Use
5935 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5936 Use packet_config_support.
5937 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5938 the packet config says the feature is enabled or disabled.
5939 (set_range_stepping): Use packet_support.
5941 2014-04-25 Tom Tromey <tromey@redhat.com>
5943 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5946 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5948 * NEWS: Mention support for C99 variable length arrays.
5950 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5952 * ada-lang.c (standard_exc): Expand introductory comment.
5954 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5955 Walfred Tedeschi <walfred.tedeschi@intel.com>
5957 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5959 (amd64_linux_read_description): Add code to handle AVX512 xstate
5960 mask and return respective tdesc.
5961 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5962 and features/i386/x32-avx512-linux.c.
5963 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5964 (amd64_linux_core_read_description): Add code to handle AVX512
5965 xstate mask and return respective tdesc.
5966 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5967 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5969 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5970 (tdesc_amd64_avx512_linux): New prototype.
5971 (tdesc_x32_avx512_linux): Likewise.
5972 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5973 features/i386/x32-avx512.c.
5974 (amd64_ymm_avx512_names): New register names for pseudo
5976 (amd64_ymmh_avx512_names): New register names for raw registers
5978 (amd64_k_names): New register names for K registers.
5979 (amd64_zmmh_names): New register names for ZMM raw registers.
5980 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5981 (amd64_xmm_avx512_names): New register names for XMM16-31
5983 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5985 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5986 if feature is present.
5987 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5988 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5989 (AMD64_NUM_REGS): Adjust to new number of registers.
5990 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5991 registers supplied via XSTATE by AVX512 registers.
5992 (i386_linux_read_description): Add case for AVX512.
5993 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5994 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5995 (i386_linux_core_read_description): Add case for AVX512.
5996 (i386_linux_init_abi): Install supported register note section
5998 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6000 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6001 registers to be number of zmm7h + 1.
6002 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6003 * i386-tdep.c: Include features/i386/i386-avx512.c.
6004 (i386_zmm_names): Add ZMM pseudo register names array.
6005 (i386_zmmh_names): Add ZMM raw register names array.
6006 (i386_k_names): Add K raw register names array.
6007 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6008 registers. AVX512 has 16 more ZMM registers than there are YMM
6010 (i386_zmmh_regnum_p): Add function to look up register number of
6012 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6013 (i386_k_regnum_p): Likewise for K raw registers.
6014 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6015 registers added by AVX512.
6016 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6017 registers added by AVX512.
6018 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6020 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6021 (i386_pseudo_register_name): Add ZMM pseudo registers.
6022 (i386_zmm_type): Construct and return vector registers type for ZMM
6024 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6025 ZMM0-31 pseudo registers and K registers.
6026 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6027 and YMM16-31 registers from register cache.
6028 (i386_pseudo_register_write): Add code to write K, ZMM and
6030 (i386_register_reggroup_p): Add code to include/exclude AVX512
6031 registers in/from respective register groups.
6032 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6033 registers if feature is present in xcr0.
6034 (i386_gdbarch_init): Add code to initialize AVX512 feature
6035 variables in tdep structure, wire in pseudo registers and call
6036 initialize_tdesc_i386_avx512.
6037 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6039 (i386_regnum): Add AVX512 registers.
6040 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6041 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6042 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6043 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6045 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6046 (i386_ymm_avx512_regnum_p): Likewise.
6047 (i386_k_regnum_p): Likewise.
6048 (i386_zmm_regnum_p): Likewise.
6049 (i386_zmmh_regnum_p): Likewise.
6050 * i387-tdep.c : Update year in copyright notice.
6051 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6053 (XSAVE_YMM_AVX512_ADDR): New macro.
6054 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6056 (XSAVE_XMM_AVX512_ADDR): New macro.
6057 (xsave_avx512_k_offset): New table for K register offsets in
6059 (XSAVE_AVX512_K_ADDR): New macro.
6060 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6062 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6063 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6065 (i387_collect_xsave): Add code to collect AVX512 registers from
6067 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6068 of XMM16-31 registers.
6069 (I387_NUM_K_REGS): New define for number of K registers.
6070 (I387_K0_REGNUM): New define for K0 register number.
6071 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6072 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6073 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6075 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6076 (I387_XMM16_REGNUM): New define for XMM16 register number.
6077 (I387_YMM0_REGNUM): New define for YMM0 register number.
6078 (I387_KEND_REGNUM): New define for last K register number.
6079 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6080 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6082 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6084 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6086 * features/Makefile: Add AVX512 related files.
6087 * features/i386/32bit-avx512.xml: New file.
6088 * features/i386/64bit-avx512.xml: Likewise.
6089 * features/i386/amd64-avx512-linux.c: Likewise.
6090 * features/i386/amd64-avx512-linux.xml: Likewise.
6091 * features/i386/amd64-avx512.c: Likewise.
6092 * features/i386/amd64-avx512.xml: Likewise.
6093 * features/i386/i386-avx512-linux.c: Likewise.
6094 * features/i386/i386-avx512-linux.xml: Likewise.
6095 * features/i386/i386-avx512.c: Likewise.
6096 * features/i386/i386-avx512.xml: Likewise.
6097 * features/i386/x32-avx512-linux.c: Likewise.
6098 * features/i386/x32-avx512-linux.xml: Likewise.
6099 * features/i386/x32-avx512.c: Likewise.
6100 * features/i386/x32-avx512.xml: Likewise.
6101 * regformats/i386/amd64-avx512-linux.dat: New file.
6102 * regformats/i386/amd64-avx512.dat: Likewise.
6103 * regformats/i386/i386-avx512-linux.dat: Likewise.
6104 * regformats/i386/i386-avx512.dat: Likewise.
6105 * regformats/i386/x32-avx512-linux.dat: Likewise.
6106 * regformats/i386/x32-avx512.dat: Likewise.
6107 * NEWS: Add note about new support for AVX512.
6110 2014-04-23 Pedro Alves <palves@redhat.com>
6112 * breakpoint.c (insert_bp_location): Tolerate errors if the
6113 breakpoint is set in a user-loaded objfile.
6114 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6115 location is marked shlib_disabled. If the breakpoint is set in a
6116 user-loaded objfile is a GDB-side memory breakpoint, validate it
6117 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6118 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6120 * mem-break.c (memory_validate_breakpoint): New function.
6121 * objfiles.c (userloaded_objfile_contains_address_p): New
6123 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6124 * target.h (memory_validate_breakpoint): New declaration.
6126 2014-04-23 Pedro Alves <palves@redhat.com>
6128 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6129 the breakpoint is set in a shared library, only suppress
6130 errors for software breakpoints, not hardware breakpoints.
6132 2014-04-22 Pedro Alves <palves@redhat.com>
6134 * infrun.c (schedlock_applies): New function, factored out from
6135 find_thread_needs_step_over.
6136 (find_thread_needs_step_over): Use it.
6137 (switch_back_to_stepped_thread): Always clear trap_expected if the
6138 step over is finished. Return early if scheduler locking applies.
6139 Look for the stepping thread and a potential step-over thread with
6141 (currently_stepping_or_nexting_callback): Delete.
6143 2014-04-22 Nick Clifton <nickc@redhat.com>
6145 * NEWS: Mention that ARM sim now supports tracing.
6147 2014-04-22 Yao Qi <yao@codesourcery.com>
6149 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6151 * tracefile.c (tracefile_fetch_registers): ... it. New
6153 * tracefile.h (tracefile_fetch_registers): Declare.
6154 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6155 tracefile_fetch_registers.
6157 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6160 * windows-nat.c (thread_rec): Don't display a warning when
6161 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6162 fails for any reason, set th->suspended to -1, so that we don't
6163 try to resume such a thread. Also, don't return NULL in these
6164 cases, to avoid completely ruin the session due to "PC register is
6165 not available" error.
6166 (do_windows_fetch_inferior_registers): Check errors in
6167 GetThreadContext call.
6168 (windows_continue): Accept an additional argument KILLED; if not
6169 zero, ignore errors in the SetThreadContext call, since the
6170 inferior was killed and is shutting down.
6171 (windows_resume, get_windows_debug_event)
6172 (windows_create_inferior, windows_mourn_inferior)
6173 (windows_kill_inferior): All callers of windows_continue changed
6174 to adjust to its new calling sequence.
6176 2014-04-19 Yao Qi <yao@codesourcery.com>
6178 * ctf.c (ctf_open): Call post_create_inferior.
6180 2014-04-19 Yao Qi <yao@codesourcery.com>
6182 * ctf.c (handle_id): New static variable.
6183 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6184 value. Get the declaration of event "register" and get length
6185 of field "contents".
6187 2014-04-19 Yao Qi <yao@codesourcery.com>
6189 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6191 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6193 * valops.c (oload_method_static): Remove unnecessary argument
6194 METHOD. Update all callers.
6196 2014-04-18 Pedro alves <palves@redhat.com>
6197 Tom Tromey <tromey@redhat.com>
6200 * frame.c (get_prev_frame_1): Rename to ...
6201 (get_prev_frame_always): ... this, and make extern. Adjust.
6202 (skip_artificial_frames): Use get_prev_frame_always.
6203 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6204 (get_frame_unwind_stop_reason): Adjust to rename.
6205 * frame.h (get_prev_frame_always): Declare.
6206 * inline-frame.c: Include frame.h.
6207 (inline_frame_this_id): Use get_prev_frame_always.
6209 2014-04-18 Tristan Gingold <gingold@adacore.com>
6211 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6212 code by using bfd_mach_o_get_base_address.
6214 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6216 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6217 (spu_ax_pseudo_register_collect): New function.
6218 (spu_ax_pseudo_register_push_stack): Likewise.
6219 (spu_dwarf_reg_to_regnum): Likewise.
6220 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6222 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6224 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6225 Replace FRAME argument with FRAME_ID.
6226 * gdbarch.c, gdbarch.h: Regenerate.
6227 * findvar.c (default_value_from_register): Add GDBARCH argument;
6228 replace FRAME by FRAME_ID. No longer call get_frame_id.
6229 (value_from_register): Update call to gdbarch_value_from_register.
6230 * value.h (default_value_from_register): Update prototype.
6231 * s390-linux-tdep.c (s390_value_from_register): Update interface
6232 and call to default_value_from_register.
6233 * spu-tdep.c (spu_value_from_register): Likewise.
6235 * findvar.c (address_from_register): Remove TYPE argument.
6236 Do not call value_from_register; use gdbarch_value_from_register
6237 with null_frame_id instead.
6238 * value.h (address_from_register): Update prototype.
6239 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6240 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6241 address_from_register interface change.
6243 2014-04-17 Yao Qi <yao@codesourcery.com>
6245 * gdbtypes.h: Update comments to link to types and macros'
6248 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6250 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6252 2014-04-16 Keith Seitz <keiths@redhat.com>
6255 * dwarf2read.c (skip_one_die): Check that all relative-offset
6256 sibling DIEs fall within range of the current reader's buffer.
6257 (read_partial_die): Likewise.
6259 2014-04-16 Keith Seitz <keiths@redhat.com>
6262 * cp-namespace.c (lookup_symbol_file): If the type name of
6263 `this' is NULL, return immediately.
6265 2014-04-14 Keith Seitz <keiths@redhat.com>
6268 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6269 from symbol_matches_domain in symtab.c. All local callers
6270 of symbol_matches_domain updated.
6271 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6272 search STRUCT_DOMAIN.
6273 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6274 independently. standard_lookup will do that automatically.
6275 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6276 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6277 (cp_lookup_symbol_in_namespace): Likewise.
6278 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6279 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6280 may return a STRUCT_DOMAIN match.
6281 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6282 * cp-support.c: Include language.h.
6283 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6285 * psymtab.c (match_partial_symbol): Compare the requested
6286 domain with the symbol's domain directly.
6287 (lookup_partial_symbol): Likewise.
6288 * symtab.c (lookup_symbol_in_language): Explain when/why
6289 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6290 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6291 appropriate languages.
6292 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6293 and moved to ada-lang.c
6294 (lookup_block_symbol): Explain that this function only returns
6295 symbol matching the requested DOMAIN.
6296 Compare the requested domain with the symbol's domain directly.
6297 (iterate_over_symbols): Compare the requested domain with the
6298 symbol's domain directly.
6299 * symtab.h (symbol_matches_domain): Remove.
6301 2014-04-14 Tom Tromey <tromey@redhat.com>
6304 * c-exp.y (type_aggregate_p): New function.
6305 (qualified_name, classify_inner_name): Use it.
6306 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6307 and TYPE_TARGET_TYPE of an enum type.
6308 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6310 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6311 handle TYPE_DECLARED_CLASS.
6312 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6314 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6315 * valops.c (enum_constant_from_type): New function.
6316 (value_aggregate_elt): Use it.
6317 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6320 2014-04-14 Tom Tromey <tromey@redhat.com>
6322 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6323 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6325 * value.h (value_aggregate_elt): Update.
6327 2014-04-14 Tom Tromey <tromey@redhat.com>
6329 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6331 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6333 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6334 (evaluate_subexp_standard): Pass noside argument.
6335 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6336 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6337 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6338 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6339 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6341 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6343 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6344 points to a constant blob.
6346 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6348 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6349 property and store it as the high bound and flag the range accordingly.
6350 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6351 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6352 * gdbtypes.h (enum range_flags): New enum.
6353 (struct range_bounds): Add flags member.
6355 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6357 * c-typeprint.c (c_type_print_varspec_suffix): Added
6358 check for not yet resolved high bound. If unresolved, print
6359 "variable length" string to the console instead of random
6362 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6364 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6366 (ada_template_to_fixed_record_type_1): Likewise.
6367 (ada_to_fixed_type_1): Likewise.
6368 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6369 (cp_print_value): Likewise.
6370 * d-valprint.c (dynamic_array_type): Likewise.
6371 * findvar.c (address_of_variable): Likewise.
6372 * jv-valprint.c (java_value_print): Likewise.
6373 * valops.c (value_ind): Likewise.
6374 * value.c (coerce_ref): Likewise.
6376 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6378 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6379 value and retrieve the dynamic type size.
6381 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6383 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6384 passed to sizeof is dynamic evaluate the argument to compute the length.
6386 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6387 Joel Brobecker <brobecker@adacore.com>
6389 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6390 (dwarf2_evaluate_property): New function.
6391 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6392 * dwarf2read.c (attr_to_dynamic_prop): New function.
6393 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6395 * gdbtypes.c: Include dwarf2loc.h.
6396 (is_dynamic_type): New function.
6397 (resolve_dynamic_type): New function.
6398 (resolve_dynamic_bounds): New function.
6399 (get_type_length): New function.
6400 (check_typedef): Use get_type_length to compute type length.
6401 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6402 (TYPE_LOW_BOUND_KIND): New macro.
6403 (is_dynamic_type): New function prototype.
6404 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6405 to resolve dynamic properties of the type. Update comment.
6406 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6408 2014-04-14 Richard Henderson <rth@redhat.com>
6410 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6412 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6413 Doug Evans <xdje42@gmail.com>
6415 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6416 dereference TYPE_CODE_REF values.
6418 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6420 Revert the following changes due to regressions:
6422 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6423 (dwarf2_evaluate_property): New function.
6424 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6425 * dwarf2read.c (attr_to_dynamic_prop): New function.
6426 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6428 * gdbtypes.c: Include dwarf2loc.h.
6429 (is_dynamic_type): New function.
6430 (resolve_dynamic_type): New function.
6431 (resolve_dynamic_bounds): New function.
6432 (get_type_length): New function.
6433 (check_typedef): Use get_type_length to compute type length.
6434 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6435 (TYPE_LOW_BOUND_KIND): New macro.
6436 (is_dynamic_type): New function prototype.
6437 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6438 to resolve dynamic properties of the type. Update comment.
6439 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6441 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6442 passed to sizeof is dynamic evaluate the argument to compute the length.
6444 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6445 value and retrieve the dynamic type size.
6447 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6448 (ada_template_to_fixed_record_type_1): Likewise.
6449 (ada_to_fixed_type_1): Likewise.
6450 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6451 (cp_print_value): Likewise.
6452 * d-valprint.c (dynamic_array_type): Likewise.
6453 * eval.c (evaluate_subexp_with_coercion): Likewise.
6454 * findvar.c (address_of_variable): Likewise.
6455 * jv-valprint.c (java_value_print): Likewise.
6456 * valops.c (value_ind): Likewise.
6457 * value.c (coerce_ref): Likewise.
6459 * c-typeprint.c (c_type_print_varspec_suffix): Added
6460 check for not yet resolved high bound. If unresolved, print
6461 "variable length" string to the console instead of random
6464 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6465 property and store it as the high bound and flag the range accordingly.
6466 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6467 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6468 * gdbtypes.h (enum range_flags): New enum.
6469 (struct range_bounds): Add flags member.
6471 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6472 points to a constant blob.
6474 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6475 (evaluate_subexp_standard): Pass noside argument.
6476 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6477 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6478 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6479 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6480 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6482 2014-04-11 Keith Seitz <keiths@redhat.com>
6485 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6486 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6489 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6491 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6492 (evaluate_subexp_standard): Pass noside argument.
6493 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6494 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6495 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6496 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6497 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6499 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6501 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6502 points to a constant blob.
6504 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6506 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6507 property and store it as the high bound and flag the range accordingly.
6508 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6509 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6510 * gdbtypes.h (enum range_flags): New enum.
6511 (struct range_bounds): Add flags member.
6513 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6515 * c-typeprint.c (c_type_print_varspec_suffix): Added
6516 check for not yet resolved high bound. If unresolved, print
6517 "variable length" string to the console instead of random
6520 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6522 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6523 (ada_template_to_fixed_record_type_1): Likewise.
6524 (ada_to_fixed_type_1): Likewise.
6525 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6526 (cp_print_value): Likewise.
6527 * d-valprint.c (dynamic_array_type): Likewise.
6528 * eval.c (evaluate_subexp_with_coercion): Likewise.
6529 * findvar.c (address_of_variable): Likewise.
6530 * jv-valprint.c (java_value_print): Likewise.
6531 * valops.c (value_ind): Likewise.
6532 * value.c (coerce_ref): Likewise.
6534 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6536 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6537 value and retrieve the dynamic type size.
6539 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6541 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6542 passed to sizeof is dynamic evaluate the argument to compute the length.
6544 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6546 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6547 (dwarf2_evaluate_property): New function.
6548 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6549 * dwarf2read.c (attr_to_dynamic_prop): New function.
6550 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6552 * gdbtypes.c: Include dwarf2loc.h.
6553 (is_dynamic_type): New function.
6554 (resolve_dynamic_type): New function.
6555 (resolve_dynamic_bounds): New function.
6556 (get_type_length): New function.
6557 (check_typedef): Use get_type_length to compute type length.
6558 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6559 (TYPE_LOW_BOUND_KIND): New macro.
6560 (is_dynamic_type): New function prototype.
6561 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6562 to resolve dynamic properties of the type. Update comment.
6563 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6565 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6567 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6568 declaring high/low bounds and change uses accordingly. Call
6569 create_range_type instead of create_static_range_type.
6570 * gdbtypes.c (create_range_type): New function.
6571 (create_range_type): Convert bounds into struct bound_prop and pass
6572 them to create_range_type.
6573 * gdbtypes.h (struct bound_prop): New struct.
6574 (create_range_type): New function prototype.
6575 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6576 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6577 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6579 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6581 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6583 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6584 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6585 * ada-lang.c: All uses of create_range_type updated.
6586 * coffread.c: All uses of create_range_type updated.
6587 * dwarf2read.c: All uses of create_range_type updated.
6588 * f-exp.y: All uses of create_range_type updated.
6589 * m2-valprint.c: All uses of create_range_type updated.
6590 * mdebugread.c: All uses of create_range_type updated.
6591 * stabsread.c: All uses of create_range_type updated.
6592 * valops.c: All uses of create_range_type updated.
6593 * valprint.c: All uses of create_range_type updated.
6595 2014-04-10 Pedro Alves <palves@redhat.com>
6597 * breakpoint.c (single_step_breakpoints)
6598 (single_step_gdbarch): Move up in the file.
6599 (one_breakpoint_xfer_memory): New function, factored out from ...
6600 (breakpoint_xfer_memory): ... here. Also process single-step
6603 2014-04-09 Tristan Gingold <gingold@adacore.com>
6605 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6607 (darwin_decode_exception_message): Free port only after use.
6609 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6611 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6612 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6613 when setting the size of call_length.
6615 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6617 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6618 dereference TYPE_CODE_REF values.
6620 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6622 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6623 end of warning message.
6625 2014-04-03 Doug Evans <dje@google.com>
6627 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6628 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6630 2014-04-02 Alan Modra <amodra@gmail.com>
6632 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6633 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6634 (struct symbol_file_add_from_memory_args): Add size field.
6635 (find_vdso_size): New function.
6636 (add_vsyscall_page): Attempt to find vdso size.
6638 2014-04-01 Doug Evans <dje@google.com>
6640 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6642 2014-04-01 Tristan Gingold <gingold@adacore.com>
6644 * darwin-nat.c (darwin_encode_reply): Add prototype.
6645 (darwin_decode_exception_message): Reply to unknown inferiors.
6646 (darwin_decode_message): Handle message by id. Ignore message
6647 to unknown inferior.
6648 (darwin_wait): Discard unknown messages, add debug trace.
6650 2014-03-31 Doug Evans <dje@google.com>
6652 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6655 2014-03-31 Doug Evans <dje@google.com>
6657 New option "set print symbol-loading".
6659 * solib.c (solib_read_symbols): Only print symbol loading messages
6661 (solib_add): If symbol loading is in "brief" mode, notify user
6662 symbols are being loaded.
6663 (reload_shared_libraries_1): Ditto.
6664 * symfile.c (print_symbol_loading_off): New static global.
6665 (print_symbol_loading_brief): New static global.
6666 (print_symbol_loading_full): New static global.
6667 (print_symbol_loading_enums): New static global.
6668 (print_symbol_loading): New static global.
6669 (print_symbol_loading_p): New function.
6670 (symbol_file_add_with_addrs): Only print symbol loading messages
6672 (_initialize_symfile): Register "print symbol-loading" set/show
6674 * symfile.h (print_symbol_loading_p): Declare.
6676 2014-03-30 Doug Evans <xdje42@gmail.com>
6678 * infrun.c (set_last_target_status): New function.
6679 (handle_inferior_event): Call it.
6681 2014-03-30 Doug Evans <xdje42@gmail.com>
6683 * inferior.h (enum stop_kind): Improve comment.
6685 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6687 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6688 a reference, strip the reference layer before calling
6689 the lang_ops value_has_mutated callback.
6691 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6693 Remove some globals from our parser.
6694 * language.c (unk_lang_parser): Add "struct parser_state"
6696 * language.h (struct language_defn) <la_parser>: Likewise.
6697 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6698 (initialize_expout): Add "struct parser_state" argument.
6699 Rewrite function to use the parser state.
6700 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6701 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6702 write_exp_elt_longcst, write_exp_elt_dblcst,
6703 write_exp_elt_decfloatcst, write_exp_elt_type,
6704 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6705 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6706 write_dollar_variable): Likewise.
6707 (parse_exp_in_context_1): Use parser state.
6708 (insert_type_address_space): Add "struct parser_state" argument.
6710 (increase_expout_size): New function.
6711 * parser-defs.h: Forward declare "struct language_defn" and
6712 "struct parser_state".
6713 (expout, expout_size, expout_ptr): Remove extern declarations.
6714 (parse_gdbarch, parse_language): Rewrite macro declarations to
6715 accept the parser state.
6716 (struct parser_state): New struct.
6717 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6718 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6719 write_exp_elt_decfloatcst, write_exp_elt_type,
6720 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6721 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6722 write_exp_msymbol, write_dollar_variable,
6723 mark_struct_expression, insert_type_address_space): Add "struct
6724 parser_state" argument.
6725 (increase_expout_size): New function.
6726 * utils.c (do_clear_parser_state): New function.
6727 (make_cleanup_clear_parser_state): Likewise.
6728 * utils.h (make_cleanup_clear_parser_state): New function
6730 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6731 Update calls to write_exp* in order to pass the parser state.
6732 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6733 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6734 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6735 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6736 * stap-probe.c (stap_parse_register_operand): Likewise.
6737 (stap_parse_single_operand): Likewise.
6738 (stap_parse_argument_1): Likewise.
6739 (stap_parse_argument): Use parser state.
6740 * stap-probe.h: Include "parser-defs.h".
6741 (struct stap_parse_info) <pstate>: New field.
6742 * c-exp.y (parse_type): Rewrite to use parser state.
6743 (yyparse): Redefine to c_parse_internal.
6744 (pstate): New global variable.
6745 (parse_number): Add "struct parser_state" argument.
6746 (write_destructor_name): Likewise.
6747 (type_exp): Update calls to write_exp* and similars in order to
6749 (exp1, exp, variable, qualified_name, space_identifier,
6750 typename, typebase): Likewise.
6751 (write_destructor_name, parse_number, lex_one_token,
6752 classify_name, classify_inner_name, c_parse): Add "struct
6753 parser_state" argument. Update function to use parser state.
6754 * c-lang.h: Forward declare "struct parser_state".
6755 (c_parse): Add "struct parser_state" argument.
6756 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6757 (yyparse): Redefine macro to ada_parse_internal.
6758 (pstate): New variable.
6759 (write_int, write_object_renaming, write_var_or_type,
6760 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6761 type_int, type_long, type_long_long, type_float, type_double,
6762 type_long_double, type_char, type_boolean, type_system_address):
6763 Add "struct parser_state" argument.
6764 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6765 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6766 var_or_type, aggregate, aggregate_component_list,
6767 positional_list, others, component_group,
6768 component_associations): Update calls to write_exp* and similar
6769 functions in order to use parser state.
6770 (ada_parse, write_var_from_sym, write_int,
6771 write_exp_op_with_string, write_object_renaming,
6772 find_primitive_type, write_selectors, write_ambiguous_var,
6773 write_var_or_type, write_name_assoc, type_int, type_long,
6774 type_long_long, type_float, type_double, type_long_double,
6775 type_char, type_boolean, type_system_address): Add "struct
6776 parser_state" argument. Adjust function to use parser state.
6777 * ada-lang.c (parse): Likewise.
6778 * ada-lang.h: Forward declare "struct parser_state".
6779 (ada_parse): Add "struct parser_state" argument.
6780 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6781 calls to both functions.
6782 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6784 (yyparse): Redefine macro to f_parse_internal.
6785 (pstate): New variable.
6786 (parse_number): Add "struct parser_state" argument.
6787 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6788 and similars in order to use parser state.
6789 (parse_number): Adjust code to use parser state.
6791 (f_parse): New function.
6792 * f-lang.h: Forward declare "struct parser_state".
6793 (f_parse): Add "struct parser_state" argument.
6794 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6796 (yyparse): Redefine macro for java_parse_internal.
6797 (pstate): New variable.
6798 (push_expression_name, push_expression_name, insert_exp): Add
6799 "struct parser_state" argument.
6800 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6801 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6802 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6803 PostIncrementExpression, PostDecrementExpression,
6804 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6805 UnaryExpressionNotPlusMinus, CastExpression,
6806 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6807 RelationalExpression, EqualityExpression, AndExpression,
6808 ExclusiveOrExpression, InclusiveOrExpression,
6809 ConditionalAndExpression, ConditionalOrExpression,
6810 ConditionalExpression, Assignment, LeftHandSide): Update
6811 calls to write_exp* and similars in order to use parser state.
6812 (parse_number): Ajust code to use parser state.
6814 (java_parse): New function.
6815 (push_variable): Add "struct parser_state" argument. Adjust
6816 code to user parser state.
6817 (push_fieldnames, push_qualified_expression_name,
6818 push_expression_name, insert_exp): Likewise.
6819 * jv-lang.h: Forward declare "struct parser_state".
6820 (java_parse): Add "struct parser_state" argument.
6821 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6823 (yyparse): Redefine macro to m2_parse_internal.
6824 (pstate): New variable.
6825 (type_exp, exp, fblock, variable, type): Update calls to
6826 write_exp* and similars to use parser state.
6828 (m2_parse): New function.
6829 * m2-lang.h: Forward declare "struct parser_state".
6830 (m2_parse): Add "struct parser_state" argument.
6831 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6832 * objc-lang.h: Forward declare "struct parser_state".
6833 (end_msglist): Add "struct parser_state" argument.
6834 * p-exp.y (parse_type): Rewrite macro to use parser state.
6835 (yyparse): Redefine macro to pascal_parse_internal.
6836 (pstate): New variable.
6837 (parse_number): Add "struct parser_state" argument.
6838 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6839 write_exp* and similars in order to use parser state.
6840 (parse_number, yylex): Adjust code to use parser state.
6841 (pascal_parse): New function.
6842 * p-lang.h: Forward declare "struct parser_state".
6843 (pascal_parse): Add "struct parser_state" argument.
6844 * go-exp.y (parse_type): Rewrite macro to use parser state.
6845 (yyparse): Redefine macro to go_parse_internal.
6846 (pstate): New variable.
6847 (parse_number): Add "struct parser_state" argument.
6848 (type_exp, exp1, exp, variable, type): Update calls to
6849 write_exp* and similars in order to use parser state.
6850 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6851 to use parser state.
6852 (go_parse): Likewise.
6853 * go-lang.h: Forward declare "struct parser_state".
6854 (go_parse): Add "struct parser_state" argument.
6856 2014-03-27 Doug Evans <dje@google.com>
6858 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6860 2014-03-27 Doug Evans <dje@google.com>
6862 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6863 Remove argument abbrev_section. All callers updated.
6865 2014-03-27 Doug Evans <dje@google.com>
6867 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6868 addr_base, ranges_base.
6870 2014-03-26 Keith Seitz <keiths@redhat.com>
6872 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6873 types, not VAR_DOMAIN.
6875 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6877 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6879 * features/nios2-linux.c: Regenerated.
6880 * features/nios2.c: Regenerated.
6882 2014-03-25 Pedro Alves <palves@redhat.com>
6884 * cli/cli-script.c (script_from_file): Force the interpreter to
6887 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6889 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6890 small stack allocation.
6892 2014-03-24 Tristan Gingold <gingold@adacore.com>
6894 * darwin-nat.c (exc_server): Remove unused prototype.
6895 (darwin_dump_message): Correctly display data on x86_64.
6896 (darwin_encode_reply): Fix style.
6897 Add comments and fix indentation.
6899 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6901 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6903 2014-03-22 Doug Evans <xdje42@gmail.com>
6905 * infcmd.c: Whitespace fixes.
6906 (interrupt_command): Merge two function comments into one.
6908 2014-03-22 Doug Evans <xdje42@gmail.com>
6910 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6913 2014-03-22 Yao Qi <yao@codesourcery.com>
6915 * remote.c (target_read_live_memory): Remove.
6916 (memory_xfer_live_readonly_partial): Rename it to
6917 remote_xfer_live_readonly_partial. Remove argument 'object'.
6918 All callers updated. Call remote_read_bytes_1
6919 instead of target_read_live_memory.
6920 * tracepoint.c (set_traceframe_number): Remove.
6921 (make_cleanup_restore_traceframe_number): Likewise .
6922 * tracepoint.h (set_traceframe_number): Remove declaration.
6923 (make_cleanup_restore_traceframe_number): Likewise.
6925 2014-03-22 Yao Qi <yao@codesourcery.com>
6927 * remote.c (remote_read_bytes): Move code on reading from the
6929 (remote_read_bytes_1): ... here. New function.
6931 2014-03-22 Yao Qi <yao@codesourcery.com>
6933 * ctf.c (ctf_xfer_partial): Check the return value of
6934 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6935 return TARGET_XFER_UNAVAILABLE.
6936 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6937 * target.c (target_read_live_memory): Move it to remote.c.
6938 (memory_xfer_live_readonly_partial): Likewise.
6939 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6940 * remote.c (target_read_live_memory): Moved from target.c.
6941 (memory_xfer_live_readonly_partial): Likewise.
6942 (remote_read_bytes): Factored out from
6943 memory_xfer_partial_1.
6945 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6947 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6950 2014-03-21 Pedro Alves <palves@redhat.com>
6952 * infrun.c (normal_stop): Extend comment.
6954 2014-03-21 Hui Zhu <hui@codesourcery.com>
6955 Pedro Alves <palves@redhat.com>
6957 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6959 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6960 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6961 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6963 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6965 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6966 `z' formatted output modifier.
6968 2014-03-20 Tom Tromey <tromey@redhat.com>
6969 Sergio Durigan Junior <sergiodj@redhat.com>
6971 * probe.c (parse_probes): Turn assert into an ordinary error.
6972 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6973 exceptions when parsing probes. Rearrange the code for clarity.
6975 2014-03-20 Tom Tromey <tromey@redhat.com>
6978 * top.c (execute_command): Only dispatch events if the command
6981 2014-03-20 Tom Tromey <tromey@redhat.com>
6984 * infcall.c: Include event-top.h.
6985 (run_inferior_call): Call async_disable_stdin if needed.
6987 2014-03-20 Pedro Alves <palves@redhat.com>
6989 * infrun.c (prepare_to_proceed): Delete.
6990 (thread_still_needs_step_over): New function.
6991 (find_thread_needs_step_over): New function.
6992 (proceed): If the current thread needs a step-over, set its
6993 steping_over_breakpoint flag. Adjust to use
6994 find_thread_needs_step_over instead of prepare_to_proceed.
6995 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6996 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6998 (switch_back_to_stepped_thread): Step over breakpoints of all
6999 threads not the stepping thread, before switching back to the
7002 2014-03-20 Pedro Alves <palves@redhat.com>
7004 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7006 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7007 * infrun.c (saved_singlestep_ptid)
7008 (stepping_past_singlestep_breakpoint): Delete.
7009 (resume): Remove stepping_past_singlestep_breakpoint handling.
7010 (proceed): Store the prev_pc of the stepping thread too.
7011 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7013 (enum infwait_states): Delete infwait_thread_hop_state.
7014 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7016 (handle_inferior_event): Adjust.
7017 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7018 handling and the thread-hop code. Before removing single-step
7019 breakpoints, check whether the thread hit a single-step breakpoint
7020 of another thread. If it did, the trap is not a random signal.
7021 (switch_back_to_stepped_thread): If the event thread hit a
7022 single-step breakpoint, unblock it before switching to the
7023 stepping thread. Handle the case of the stepped thread having
7025 (keep_going): Handle the case of the current thread moving past a
7026 single-step breakpoint.
7028 2014-03-20 Pedro Alves <palves@redhat.com>
7031 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7032 are being stepped over.
7033 (breakpoint_address_match): Make extern.
7034 * breakpoint.h (breakpoint_address_match): New declaration.
7035 * inferior.h (stepping_past_instruction_at): New declaration.
7036 * infrun.c (struct step_over_info): New type.
7037 (step_over_info): New global.
7038 (set_step_over_info, clear_step_over_info)
7039 (stepping_past_instruction_at): New functions.
7040 (handle_inferior_event): Clear the step-over info when
7041 trap_expected is cleared.
7042 (resume): Remove now stale comment.
7043 (clear_proceed_status): Clear step-over info.
7044 (proceed): Adjust step-over handling to set or clear the step-over
7045 info instead of removing all breakpoints.
7046 (handle_signal_stop): When setting up a thread-hop, don't remove
7048 (stop_stepping): Clear step-over info.
7049 (keep_going): Adjust step-over handling to set or clear step-over
7050 info and then always inserting breakpoints, instead of removing
7051 all breakpoints when stepping over one.
7053 2014-03-20 Pedro Alves <palves@redhat.com>
7055 * infrun.c (previous_inferior_ptid): Adjust comment.
7056 (deferred_step_ptid): Delete.
7057 (infrun_thread_ptid_changed, prepare_to_proceed)
7058 (init_wait_for_inferior): Adjust.
7059 (handle_signal_stop): Delete deferred_step_ptid handling.
7061 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7064 * defs.h (sync_quit_force_run): New declaration.
7065 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7066 * event-top.c (async_sigterm_handler): New declaration.
7067 (async_sigterm_token): New variable.
7068 (async_init_signals): Create also async_sigterm_token.
7069 (async_sigterm_handler): New function.
7070 (sync_quit_force_run): New variable.
7071 (handle_sigterm): Replace quit_force call by other calls.
7072 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7074 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7076 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7077 offset into SPE pseudo registers.
7079 2014-03-18 Pedro Alves <palves@redhat.com>
7082 * inferior.h (print_stop_event): Declare.
7083 * infrun.c (print_stop_event): New, factored out from ...
7084 (normal_stop): ... this.
7085 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7086 of bpstat_print/print_stack_frame.
7088 2014-03-17 Tom Tromey <tromey@redhat.com>
7090 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7092 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7094 * ada-lang.c (decode_constrained_packed_array): Perform a
7095 minimal coercion for reference with coerce_ref instead of
7098 2014-03-17 Tristan Gingold <gingold@adacore.com>
7100 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7101 (darwin_solib_create_inferior_hook): Emit a warning if version
7104 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7106 * python/py-value.c (get_field_flag): Cast flag_name argument to
7107 PyObject_GetAttrString to support Python 2.4.
7109 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7111 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7112 (Global Maintainers): Remove Jan Kratochvil.
7114 2014-03-14 Pedro Alves <palves@redhat.com>
7116 * inferior.h (terminal_ours_for_output): Rename to ...
7117 (child_terminal_ours_for_output): ... this.
7118 (terminal_save_ours): Rename to ...
7119 (child_terminal_save_ours): ... this.
7120 (terminal_ours): Rename to ...
7121 (child_terminal_ours): ... this.
7122 (terminal_inferior): Rename to ...
7123 (child_terminal_inferior): ... this.
7124 (terminal_init_inferior): Rename to ...
7125 (child_terminal_init_inferior): ... this.
7126 (terminal_init_inferior_with_pgrp): Rename to ...
7127 (child_terminal_init_inferior_with_pgrp): ... this.
7128 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7129 (child_terminal_init_with_pgrp): ... this.
7130 (terminal_save_ours): Rename to ...
7131 (child_terminal_save_ours): ... this.
7132 (terminal_init_inferior): Rename to ...
7133 (child_terminal_init): ... this. Adjust.
7134 (terminal_inferior): Rename to ...
7135 (child_terminal_inferior): ... this.
7136 (terminal_ours_for_output): Rename to ...
7137 (child_terminal_ours_for_output): ... this. Adjust.
7138 (terminal_ours): Rename to ...
7139 (child_terminal_ours): ... this.
7140 (terminal_ours_1): Rename to ...
7141 (child_terminal_ours_1): ... this. Adjust.
7142 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7143 * windows-nat.c (do_initial_windows_stuff): Adjust.
7144 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7145 (gnu_terminal_init): ... this. Adjust.
7146 (gnu_target): Adjust.
7147 * inf-child.c (inf_child_target): Adjust.
7149 2014-03-13 Doug Evans <xdje42@gmail.com>
7152 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7155 2014-03-13 Doug Evans <xdje42@gmail.com>
7157 * value.c (record_latest_value): Call release_value_or_incref
7158 instead of release_value.
7160 2014-03-13 Pedro Alves <palves@redhat.com>
7162 * procfs.c (procfs_target): Don't override to_shortname,
7163 to_longname or to_doc.
7165 2014-03-13 Pedro Alves <palves@redhat.com>
7167 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7168 Unix in user visible strings.
7170 2014-03-12 Stan Shebs <stan@codesourcery.com>
7172 * gdbtypes.h: Annotate comments for Doxygen, add a page
7173 block comment with some general info.
7175 2014-03-12 Pedro Alves <palves@redhat.com>
7177 * infcmd.c (prepare_execution_command): New function, factored out
7178 from several execution commands.
7179 (run_command_1, continue_command, step_1, jump_command)
7180 (signal_command, until_command, advance_command, finish_command)
7181 (attach_command): Use prepare_execution_command.
7183 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7185 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7188 (struct arm_linux_thread_points): Removed.
7189 (struct arm_linux_process_info): New.
7190 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7191 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7192 (arm_linux_find_breakpoints_by_tid): Removed.
7193 (struct arch_lwp_info): New.
7194 (arm_linux_find_process_pid): New functions.
7195 (arm_linux_add_process): New functions.
7196 (arm_linux_process_info_get): New functions.
7197 (arm_linux_forget_process): New function.
7198 (arm_linux_get_debug_reg_state): New function.
7199 (struct update_registers_data): New.
7200 (update_registers_callback): New function.
7201 (arm_linux_insert_hw_breakpoint1): Updated.
7202 (arm_linux_remove_hw_breakpoint1): Updated.
7203 (arm_linux_insert_hw_breakpoint): Updated.
7204 (arm_linux_remove_hw_breakpoint): Updated.
7205 (arm_linux_insert_watchpoint): Updated.
7206 (arm_linux_remove_watchpoint): Updated.
7207 (arm_linux_new_thread): Updated.
7208 (arm_linux_prepare_to_resume): New function.
7209 (arm_linux_new_fork): New function.
7210 (_initialize_arm_linux_nat): Updated.
7212 2014-03-12 Pedro Alves <palves@redhat.com>
7214 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7216 2014-03-12 Tom Tromey <tromey@redhat.com>
7218 * inf-child.c (return_zero): New function.
7219 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7220 * aix-thread.c (aix_thread_inferior_created): New function.
7221 (aix_thread_attach): Remove.
7222 (init_aix_thread_ops): Don't set to_attach.
7223 (_initialize_aix_thread): Register inferior_created observer.
7224 * corelow.c (init_core_ops): Don't set to_attach or
7226 * exec.c (init_exec_ops): Don't set to_attach or
7228 * infcmd.c (run_command_1): Use find_run_target. Make direct
7230 (attach_command): Use find_attach_target. Make direct target
7232 * record-btrace.c (init_record_btrace_ops): Don't set
7234 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7236 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7237 set to_create_inferior.
7238 * target.c (complete_target_initialization): Add assertion.
7239 (target_create_inferior): Remove.
7240 (find_default_attach, find_default_create_inferior): Remove.
7241 (find_attach_target, find_run_target): New functions.
7242 (find_default_is_async_p, find_default_can_async_p)
7243 (target_supports_non_stop, target_attach): Remove.
7244 (init_dummy_target): Don't set to_create_inferior or
7245 to_supports_non_stop.
7246 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7247 TARGET_DEFAULT_FUNC.
7248 <to_create_inferior>: Add comment.
7249 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7250 TARGET_DEFAULT_RETURN.
7251 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7252 (find_attach_target, find_run_target): Declare.
7253 (target_create_inferior): Remove.
7254 (target_has_execution_1): Update comment.
7255 (target_supports_non_stop): Remove.
7256 * target-delegates.c: Rebuild.
7258 2014-03-12 Pedro Alves <palves@redhat.com>
7260 * inf-child.h: Update comment to not mention Unix.
7262 2014-03-12 Pedro Alves <palves@redhat.com>
7264 * inf-child.c: Update top comment to not mention Unix. Add
7265 generic comment describing how this target is meant to be used.
7266 (inf_child_post_attach, inf_child_post_startup_inferior)
7267 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7270 2014-03-12 Pedro Alves <palves@redhat.com>
7272 * nto-procfs.c: Include inf-child.h.
7273 (procfs_ops): Delete global.
7274 (procfs_can_run): Delete method.
7275 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7276 target pointer instead of referencing procfs_ops.
7277 (procfs_prepare_to_store): Delete.
7278 (init_procfs_ops): Delete function.
7279 (procfs_target): New function, based on init_procfs_ops, but
7280 inherit inf_child_target.
7281 (_initialize_procfs): Use procfs_target.
7283 2014-03-12 Pedro Alves <palves@redhat.com>
7285 * windows-nat.c: Include inf-child.h.
7286 (windows_ops): Delete global.
7287 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7289 (init_windows_ops): Delete function.
7290 (windows_target): New function, based on init_windows_ops, but
7291 inherit inf_child_target.
7292 (_initialize_windows_nat): Use windows_target. Install x86
7293 specific target methods here.
7295 2014-03-10 Doug Evans <xdje42@gmail.com>
7297 * guile/guile.c (call_initialize_gdb_module): New function.
7298 (initialize_guile): Replace call to scm_init_guile with call to
7301 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7303 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7304 in call to TYPE_CODE macro.
7306 2014-03-10 Jerome Guitton <guitton@adacore.com>
7308 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7309 Resolve tagged types to full view.
7311 2014-03-10 Hui Zhu <hui@codesourcery.com>
7313 * target.h (target_insert_breakpoint): Remove "hardware" from its
7316 2014-03-07 Doug Evans <dje@google.com>
7318 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7320 2014-03-07 Doug Evans <dje@google.com>
7322 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7323 Remove unused local comp_dir_attr. Assert exactly one of
7324 stub_comp_unit_die, stub_comp_dir is non-NULL.
7326 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7328 * target.h (complete_target_initialization, add_target):
7331 2014-03-07 Pedro Alves <palves@redhat.com>
7333 * go32-nat.c: Include inf-child.h.
7334 (go32_ops): Delete global.
7335 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7337 (go32_create_inferior): Push the passed in target pointer instead
7338 of referencing go32_ops.
7339 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7340 (go32_target): New function, based on init_go32_ops, but inherit
7342 (_initialize_go32_nat): Use go32_target. Move parts of
7345 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7347 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7348 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7349 SYMBOL_VALUE_ADDRESS.
7350 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7352 2014-03-06 Yao Qi <yao@codesourcery.com>
7354 * breakpoint.c (get_tracepoint_by_number): Remove argument
7355 optional_p. All callers updated. Adjust comments. Update
7357 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7359 2014-03-06 Yao Qi <yao@codesourcery.com>
7361 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7362 early if get_number returns zero. Use 'p' instead of 'args'.
7364 2014-03-06 Yao Qi <yao@codesourcery.com>
7366 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7369 2014-03-06 Yao Qi <yao@codesourcery.com>
7371 PR breakpoints/16508
7372 * tracepoint.c (check_trace_running): New function.
7373 (trace_find_command): Move code to check_trace_running and
7374 call check_trace_running.
7375 (trace_find_pc_command): Likewise.
7376 (trace_find_tracepoint_command): Likewise.
7377 (trace_find_line_command): Likewise.
7378 (trace_find_range_command): Likewise.
7379 * tracepoint.h (check_trace_running): Likewise.
7380 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7382 2014-03-06 Yao Qi <yao@codesourcery.com>
7384 * target.h (struct target_ops) <to_traceframe_info>: Use
7385 TARGET_DEFAULT_NORETURN (tcomplain ()).
7386 * target-delegates.c: Regenerated.
7388 2014-03-05 Pedro Alves <palves@redhat.com>
7391 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7392 void. Update comment.
7393 (dcache_xfer_memory): Delete.
7394 (dcache_read_memory_partial): New, based on the read bits of
7396 (dcache_update): Add status parameter. Use ULONGEST for len, and
7397 adjust. Discard cache lines if the reason for the update was
7399 * dcache.h (dcache_xfer_memory): Delete declaration.
7400 (dcache_read_memory_partial): New declaration.
7401 (dcache_update): Update prototype.
7402 * target.c (raw_memory_xfer_partial): Update the dcache here.
7403 (memory_xfer_partial_1): Don't handle dcache writes here.
7405 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7407 * remote-sim.c (gdbsim_load): Add const to prog.
7409 2014-03-03 Tom Tromey <tromey@redhat.com>
7411 * elfread.c (probe_key): Change to bfd_data.
7412 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7413 now per-BFD, not per-objfile.
7414 * stap-probe.c (stap_probe_destroy): Update comment.
7415 (handle_stap_probe): Allocate on the per-BFD obstack.
7417 2014-03-03 Tom Tromey <tromey@redhat.com>
7419 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7420 * breakpoint.c (create_longjmp_master_breakpoint): Use
7422 (add_location_to_breakpoint, bkpt_probe_insert_location)
7423 (bkpt_probe_remove_location): Update.
7424 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7425 * elfread.c (elf_symfile_relocate_probe): Remove.
7426 (elf_probe_fns): Update.
7427 (insert_exception_resume_breakpoint): Change type of "probe"
7428 parameter to bound_probe.
7429 (check_exception_resume): Update.
7430 * objfiles.c (objfile_relocate1): Don't relocate probes.
7431 * probe.c (bound_probe_s): New typedef.
7432 (parse_probes): Use get_probe_address. Set sal's objfile.
7433 (find_probe_by_pc): Return a bound_probe.
7434 (collect_probes): Return a VEC(bound_probe_s).
7435 (compare_probes): Update.
7436 (gen_ui_out_table_header_info): Change type of "probes"
7438 (info_probes_for_ops): Update.
7439 (get_probe_address): New function.
7440 (probe_safe_evaluate_at_pc): Update.
7441 * probe.h (struct probe_ops) <get_probe_address>: New field.
7442 <set_semaphore, clear_semaphore>: Add objfile parameter.
7443 (struct probe) <objfile>: Remove field.
7445 <address>: Update comment.
7446 (struct bound_probe): New.
7447 (find_probe_by_pc): Return a bound_probe.
7448 (get_probe_address): Declare.
7449 * solib-svr4.c (struct probe_and_action) <address>: New field.
7450 (hash_probe_and_action, equal_probe_and_action): Update.
7451 (register_solib_event_probe): Add address parameter.
7452 (solib_event_probe_at): Update.
7453 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7455 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7456 (stap_get_probe_address): New function.
7457 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7458 (compile_probe_arg): Update.
7459 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7461 (handle_stap_probe): Don't relocate the probe.
7462 (stap_relocate): Remove.
7463 (stap_gen_info_probes_table_values): Update.
7464 (stap_probe_ops): Remove stap_relocate.
7465 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7466 (debug_sym_probe_fns): Update.
7467 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7468 * symtab.c (init_sal): Use memset.
7469 * symtab.h (struct symtab_and_line) <objfile>: New field.
7470 * tracepoint.c (start_tracing, stop_tracing): Update.
7472 2014-03-03 Tom Tromey <tromey@redhat.com>
7474 * probe.h (parse_probes, find_probe_by_pc)
7475 (find_probes_in_objfile): Fix comments.
7477 2014-03-02 Doug Evans <xdje42@gmail.com>
7479 * infrun.c (handle_signal_stop): Replace test for
7480 TARGET_WAITKIND_STOPPED with an assert.
7482 2014-03-02 Doug Evans <xdje42@gmail.com>
7484 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7486 2014-03-02 Doug Evans <xdje42@gmail.com>
7488 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7490 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7492 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7494 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7496 * i386obsd-nat.c: Include "obsd-nat.h".
7497 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7499 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7501 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7503 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7505 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7507 * mips64obsd-nat.c: Include "obsd-nath".
7508 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7510 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7512 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7514 * amd64obsd-nat.c: Include "obsd-nat,h.
7515 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7517 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7519 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7521 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7522 (find_overload_match): Update call to find_oload_champ.
7523 (find_oload_champ_namespace_loop): Likewise
7525 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7527 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7529 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7530 * config/sparc/obsd64.mh: New file.
7531 * sparc64obsd-nat.c: New file.
7533 * obsd-nat.h: New file.
7534 * obsd-nat.c: New file.
7535 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7536 (ALLDEPFILES): Add obsd-nat.c.
7538 2014-02-28 Tom Tromey <tromey@redhat.com>
7540 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7541 * cli-out.h (cli_ui_out_impl): Now const.
7542 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7543 * ui-out.c (struct ui_out) <impl>: Now const.
7544 (default_ui_out_impl): Now const.
7545 (ui_out_new): Make 'impl' parameter const.
7546 * ui-out.h (ui_out_new): Update.
7548 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7550 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7552 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7554 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7556 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7558 Additional PR 8882 fix.
7559 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7561 2014-02-27 Pedro Alves <palves@redhat.com>
7563 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7566 2014-02-27 Pedro Alves <palves@redhat.com>
7569 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7570 * nat/linux-waitpid.c: Include string.h.
7571 (status_to_str): Moved here and made extern.
7572 * nat/linux-waitpid.h (status_to_str): New declaration.
7574 2014-02-27 Hui Zhu <hui@codesourcery.com>
7577 * infrun.c (ptid_match): Move ...
7578 * common/ptid.c (ptid_match): ... here.
7579 * inferior.h (ptid_match): Move ...
7580 * common/ptid.h (ptid_match): ... here.
7582 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7584 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7585 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7588 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7590 * obsd-tdep.c (obsd_auxv_parse): New function.
7591 (obsd_init_abi): Set auxv_parse.
7593 * gdbarch.sh (auxv_parse): New.
7594 * gdbarch.h: Regenerated.
7595 * gdbarch.c: Regenerated.
7596 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7598 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7600 * guile/scm-value.c (gdbscm_history_append_x): New function.
7601 (value_functions): Add it.
7603 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7605 * dwarf2read.c (attr_value_as_address): New function.
7606 (dwarf2_find_base_address, read_call_site_scope): Use
7607 attr_value_as_address in place of DW_ADDR.
7608 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7609 the low and high addresses. Slight rework of the handling
7610 of the high pc being a constant form, and limit it to
7611 DWARF verson 4 or higher.
7612 (dwarf2_record_block_ranges): Likewise.
7613 (read_partial_die): Likewise.
7614 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7616 2014-02-26 Tom Tromey <tromey@redhat.com>
7618 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7620 2014-02-26 Tom Tromey <tromey@redhat.com>
7622 * elfread.c (elf_read_minimal_symbols): Return early if
7623 minimal symbols have already been read. Add "ei" parameter.
7624 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7625 * minsyms.c (prim_record_minimal_symbol_full): Update.
7626 * objfiles.h (struct objstats) <n_minsyms>: Move...
7627 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7628 * symmisc.c (print_objfile_statistics): Update.
7630 2014-02-26 Tom Tromey <tromey@redhat.com>
7632 * elfread.c (elf_read_minimal_symbols): New function, from
7634 (elf_symfile_read): Call it.
7636 2014-02-26 Tom Tromey <tromey@redhat.com>
7638 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7639 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7640 (lookup_minimal_symbol_solib_trampoline)
7641 (lookup_minimal_symbol_by_pc_section_1)
7642 (lookup_minimal_symbol_and_objfile): Update.
7643 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7644 Don't allocate a minimal symbol if minsyms have already been read.
7645 (build_minimal_symbol_hash_tables): Update.
7646 (install_minimal_symbols): Do nothing if minsyms already read.
7647 Use the per-BFD obstack.
7648 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7649 * objfiles.c (allocate_objfile): Call
7650 terminate_minimal_symbol_table later.
7651 (have_minimal_symbols): Update.
7652 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7653 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7654 Move from struct objfile.
7655 <minsyms_read>: New field.
7656 (struct objfile) <msymbols, minimal_symbol_count,
7657 msymbol_hash, msymbol_demangled_hash>: Move.
7658 (ALL_OBJFILE_MSYMBOLS): Update.
7659 * symfile.c (read_symbols): Set minsyms_read.
7660 (reread_symbols): Update.
7661 * symmisc.c (dump_objfile, dump_msymbols): Update.
7663 2014-02-26 Tom Tromey <tromey@redhat.com>
7665 * minsyms.c (msymbols_sort): Remove.
7666 * minsyms.h (msymbols_sort): Remove.
7667 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7668 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7669 * elfread.c (elf_symtab_read): Don't add section offsets.
7670 * xcoffread.c (record_minimal_symbol): Don't add section offset
7671 to minimal symbol address.
7672 * somread.c (text_offset, data_offset): Remove.
7673 (som_symtab_read): Don't add section offsets to minimal symbol
7675 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7676 Don't add section offsets to minimal symbols.
7677 * coffread.c (coff_symtab_read): Don't add section offsets
7678 to minimal symbol addresses.
7679 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7680 to minimal symbol addresses.
7681 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7682 section offset to minimal symbol addresses.
7683 * mdebugread.c (parse_partial_symbols): Don't add section
7684 offset to minimal symbol addresses.
7685 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7686 offset to minimal symbol addresses.
7688 2014-02-26 Tom Tromey <tromey@redhat.com>
7690 * ada-lang.c (ada_main_name): Update.
7691 (ada_add_standard_exceptions): Update.
7692 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7693 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7694 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7695 * auxv.c (ld_so_xfer_auxv): Update.
7696 * avr-tdep.c (avr_scan_prologue): Update.
7697 * ax-gdb.c (gen_var_ref): Update.
7698 * blockframe.c (get_pc_function_start)
7699 (find_pc_partial_function_gnu_ifunc): Update.
7700 * breakpoint.c (create_overlay_event_breakpoint)
7701 (create_longjmp_master_breakpoint)
7702 (create_std_terminate_master_breakpoint)
7703 (create_exception_master_breakpoint): Update.
7704 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7705 * c-valprint.c (c_val_print): Update.
7706 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7707 * common/agent.c (agent_look_up_symbols): Update.
7708 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7709 * dwarf2loc.c (call_site_to_target_addr): Update.
7710 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7711 * elfread.c (elf_gnu_ifunc_record_cache)
7712 (elf_gnu_ifunc_resolve_by_got): Update.
7713 * findvar.c (default_read_var_value): Update.
7714 * frame.c (inside_main_func): Update.
7715 * frv-tdep.c (frv_frame_this_id): Update.
7716 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7717 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7719 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7720 (hppa_hpux_find_dummy_bpaddr): Update.
7721 * hppa-tdep.c (hppa_symbol_address): Update.
7722 * infcmd.c (until_next_command): Update.
7723 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7725 * linespec.c (minsym_found, add_minsym): Update.
7726 * linux-nat.c (get_signo): Update.
7727 * linux-thread-db.c (inferior_has_bug): Update.
7728 * m32c-tdep.c (m32c_return_value)
7729 (m32c_m16c_address_to_pointer): Update.
7730 * m32r-tdep.c (m32r_frame_this_id): Update.
7731 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7732 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7733 * maint.c (maintenance_translate_address): Update.
7734 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7735 (frob_address): New function.
7736 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7737 frob_address. Rename parameter to "pc_in".
7738 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7740 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7742 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7743 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7744 * objc-lang.c (find_objc_msgsend): Update.
7745 * objfiles.c (objfile_relocate1): Update.
7746 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7747 * p-valprint.c (pascal_val_print): Update.
7748 * parse.c (write_exp_msymbol): Update.
7749 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7750 (ppc_elfv2_skip_entrypoint): Update.
7751 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7752 * printcmd.c (build_address_symbolic, msym_info)
7753 (address_info): Update.
7754 * proc-service.c (ps_pglobal_lookup): Update.
7755 * psymtab.c (find_pc_sect_psymtab_closer)
7756 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7757 Change msymbol parameter to bound_minimal_symbol.
7758 * ravenscar-thread.c (get_running_thread_id): Update.
7759 * remote.c (remote_check_symbols): Update.
7760 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7762 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7763 * solib-dsbt.c (lm_base): Update.
7764 * solib-frv.c (lm_base, main_got): Update.
7765 * solib-irix.c (locate_base): Update.
7766 * solib-som.c (som_solib_create_inferior_hook)
7767 (link_map_start): Update.
7768 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7769 * solib-svr4.c (elf_locate_base, enable_break): Update.
7770 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7771 (flush_ea_cache): Update.
7772 * stabsread.c (define_symbol, scan_file_globals): Update.
7773 * stack.c (find_frame_funname): Update.
7774 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7775 (debug_qf_find_pc_sect_symtab): Update.
7776 * symfile.c (simple_read_overlay_table)
7777 (simple_overlay_update): Update.
7778 * symfile.h (struct quick_symbol_functions)
7779 <find_pc_sect_symtab>: Change type of msymbol to
7780 bound_minimal_symbol.
7781 * symmisc.c (dump_msymbols): Update.
7782 * symtab.c (find_pc_sect_symtab_via_partial)
7783 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7784 (search_symbols, print_msymbol_info): Update.
7785 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7786 (MSYMBOL_VALUE_ADDRESS): Redefine.
7787 (BMSYMBOL_VALUE_ADDRESS): New macro.
7788 * tracepoint.c (scope_info): Update.
7789 * tui/tui-disasm.c (tui_find_disassembly_address)
7790 (tui_get_begin_asm_address): Update.
7791 * valops.c (find_function_in_inferior): Update.
7792 * value.c (value_static_field, value_fn_field): Update.
7794 2014-02-26 Tom Tromey <tromey@redhat.com>
7796 * ada-lang.c (ada_update_initial_language): Update.
7797 (ada_main_name, ada_has_this_exception_support): Update.
7798 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7799 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7800 * arm-tdep.c (arm_skip_stub): Update.
7801 * auxv.c (ld_so_xfer_auxv): Update.
7802 * avr-tdep.c (avr_scan_prologue): Update.
7803 * ax-gdb.c (gen_var_ref): Update.
7804 * breakpoint.c (struct breakpoint_objfile_data)
7805 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7806 type to bound_minimal_symbol.
7807 (create_overlay_event_breakpoint)
7808 (create_longjmp_master_breakpoint)
7809 (create_std_terminate_master_breakpoint)
7810 (create_exception_master_breakpoint): Update.
7811 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7812 * c-exp.y (classify_name): Update.
7813 * coffread.c (coff_symfile_read): Update.
7814 * common/agent.c (agent_look_up_symbols): Update.
7815 * d-lang.c (d_main_name): Update.
7816 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7817 * dec-thread.c (enable_dec_thread): Update.
7818 * dwarf2loc.c (call_site_to_target_addr): Update.
7819 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7820 * eval.c (evaluate_subexp_standard): Update.
7821 * findvar.c (struct minsym_lookup_data) <result>: Change type
7822 to bound_minimal_symbol.
7824 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7825 * frame.c (inside_main_func): Update.
7826 * frv-tdep.c (frv_frame_this_id): Update.
7827 * gcore.c (call_target_sbrk): Update.
7828 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7829 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7831 * go-lang.c (go_main_name): Update.
7832 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7833 (hppa_hpux_find_import_stub_for_addr): Update.
7834 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7835 Update. Change return type.
7836 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7838 * jit.c (jit_breakpoint_re_set_internal): Update.
7839 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7841 * linux-nat.c (get_signo): Update.
7842 * linux-thread-db.c (inferior_has_bug): Update
7843 * m32c-tdep.c (m32c_return_value)
7844 (m32c_m16c_address_to_pointer): Update.
7845 * m32r-tdep.c (m32r_frame_this_id): Update.
7846 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7847 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7848 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7849 lookup_minimal_symbol. Change return type.
7850 (lookup_minimal_symbol): Remove.
7851 (lookup_bound_minimal_symbol): Update.
7852 (lookup_minimal_symbol_text): Change return type.
7853 (lookup_minimal_symbol_solib_trampoline): Change return type.
7854 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7855 (lookup_minimal_symbol_solib_trampoline): Change return type.
7856 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7857 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7858 (value_nsstring, find_imps): Update.
7859 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7860 * p-lang.c (pascal_main_name): Update.
7861 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7862 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7863 * proc-service.c (ps_pglobal_lookup): Update.
7864 * ravenscar-thread.c (get_running_thread_msymbol): Change
7866 (has_ravenscar_runtime, get_running_thread_id): Update.
7867 * remote.c (remote_check_symbols): Update.
7868 * sol-thread.c (ps_pglobal_lookup): Update.
7869 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7870 * solib-dsbt.c (lm_base): Update.
7871 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7873 * solib-irix.c (locate_base): Update.
7874 * solib-som.c (som_solib_create_inferior_hook)
7875 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7877 * solib-spu.c (spu_enable_break): Update.
7878 * solib-svr4.c (elf_locate_base, enable_break): Update.
7879 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7880 (flush_ea_cache): Update.
7881 * stabsread.c (define_symbol): Update.
7882 * symfile.c (simple_read_overlay_table): Update.
7883 * symtab.c (find_pc_sect_line): Update.
7884 * tracepoint.c (scope_info): Update.
7885 * tui-disasm.c (tui_get_begin_asm_address): Update.
7886 * value.c (value_static_field): Update.
7888 2014-02-26 Tom Tromey <tromey@redhat.com>
7890 * minsyms.c (prim_record_minimal_symbol_full): Use
7891 SET_MSYMBOL_VALUE_ADDRESS.
7892 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7893 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7894 SET_MSYMBOL_VALUE_ADDRESS.
7895 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7896 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7898 2014-02-26 Tom Tromey <tromey@redhat.com>
7900 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7901 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7902 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7903 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7904 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7905 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7906 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7907 * ada-lang.c (ada_main_name): Update.
7908 (ada_lookup_simple_minsym): Update.
7909 (ada_make_symbol_completion_list): Update.
7910 (ada_add_standard_exceptions): Update.
7911 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7912 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7913 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7914 * arm-tdep.c (skip_prologue_function): Update.
7915 (arm_skip_stack_protector, arm_skip_stub): Update.
7916 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7917 (arm_wince_skip_main_prologue): Update.
7918 * auxv.c (ld_so_xfer_auxv): Update.
7919 * avr-tdep.c (avr_scan_prologue): Update.
7920 * ax-gdb.c (gen_var_ref): Update.
7921 * block.c (call_site_for_pc): Update.
7922 * blockframe.c (get_pc_function_start): Update.
7923 (find_pc_partial_function_gnu_ifunc): Update.
7924 * breakpoint.c (create_overlay_event_breakpoint): Update.
7925 (create_longjmp_master_breakpoint): Update.
7926 (create_std_terminate_master_breakpoint): Update.
7927 (create_exception_master_breakpoint): Update.
7928 (resolve_sal_pc): Update.
7929 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7930 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7932 * c-valprint.c (c_val_print): Update.
7933 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7934 * coffread.c (coff_symfile_read): Update.
7935 * common/agent.c (agent_look_up_symbols): Update.
7936 * dbxread.c (find_stab_function_addr): Update.
7937 (end_psymtab): Update.
7938 * dwarf2loc.c (call_site_to_target_addr): Update.
7939 (func_verify_no_selftailcall): Update.
7940 (tailcall_dump): Update.
7941 (call_site_find_chain_1): Update.
7942 (dwarf_expr_reg_to_entry_parameter): Update.
7943 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7944 (elf_gnu_ifunc_resolve_by_got): Update.
7945 * f-valprint.c (info_common_command): Update.
7946 * findvar.c (read_var_value): Update.
7947 * frame.c (get_prev_frame_1): Update.
7948 (inside_main_func): Update.
7949 * frv-tdep.c (frv_skip_main_prologue): Update.
7950 (frv_frame_this_id): Update.
7951 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7952 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7953 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7954 (gnuv3_skip_trampoline): Update.
7955 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7956 (hppa64_hpux_in_solib_call_trampoline): Update.
7957 (hppa_hpux_skip_trampoline_code): Update.
7958 (hppa64_hpux_search_dummy_call_sequence): Update.
7959 (hppa_hpux_find_import_stub_for_addr): Update.
7960 (hppa_hpux_find_dummy_bpaddr): Update.
7961 * hppa-tdep.c (hppa_symbol_address)
7962 (hppa_lookup_stub_minimal_symbol): Update.
7963 * i386-tdep.c (i386_skip_main_prologue): Update.
7964 (i386_pe_skip_trampoline_code): Update.
7965 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7966 * infcall.c (get_function_name): Update.
7967 * infcmd.c (until_next_command): Update.
7968 * jit.c (jit_breakpoint_re_set_internal): Update.
7969 (jit_inferior_init): Update.
7970 * linespec.c (minsym_found): Update.
7971 (add_minsym): Update.
7972 * linux-fork.c (info_checkpoints_command): Update.
7973 * linux-nat.c (get_signo): Update.
7974 * linux-thread-db.c (inferior_has_bug): Update.
7975 * m32c-tdep.c (m32c_return_value): Update.
7976 (m32c_m16c_address_to_pointer): Update.
7977 (m32c_m16c_pointer_to_address): Update.
7978 * m32r-tdep.c (m32r_frame_this_id): Update.
7979 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7980 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7981 * maint.c (maintenance_translate_address): Update.
7982 * minsyms.c (add_minsym_to_hash_table): Update.
7983 (add_minsym_to_demangled_hash_table): Update.
7984 (msymbol_objfile): Update.
7985 (lookup_minimal_symbol): Update.
7986 (iterate_over_minimal_symbols): Update.
7987 (lookup_minimal_symbol_text): Update.
7988 (lookup_minimal_symbol_by_pc_name): Update.
7989 (lookup_minimal_symbol_solib_trampoline): Update.
7990 (lookup_minimal_symbol_by_pc_section_1): Update.
7991 (lookup_minimal_symbol_and_objfile): Update.
7992 (prim_record_minimal_symbol_full): Update.
7993 (compare_minimal_symbols): Update.
7994 (compact_minimal_symbols): Update.
7995 (build_minimal_symbol_hash_tables): Update.
7996 (install_minimal_symbols): Update.
7997 (terminate_minimal_symbol_table): Update.
7998 (find_solib_trampoline_target): Update.
7999 (minimal_symbol_upper_bound): Update.
8000 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8001 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8002 (mips_skip_pic_trampoline_code): Update.
8003 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8004 * objc-lang.c (selectors_info): Update.
8005 (classes_info): Update.
8006 (find_methods): Update.
8007 (find_imps): Update.
8008 (find_objc_msgsend): Update.
8009 * objfiles.c (objfile_relocate1): Update.
8010 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8011 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8012 * p-valprint.c (pascal_val_print): Update.
8013 * parse.c (write_exp_msymbol): Update.
8014 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8015 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8016 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8017 * printcmd.c (build_address_symbolic): Update.
8019 (address_info): Update.
8020 * proc-service.c (ps_pglobal_lookup): Update.
8021 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8022 (find_pc_sect_psymtab): Update.
8023 * python/py-framefilter.c (py_print_frame): Update.
8024 * ravenscar-thread.c (get_running_thread_id): Update.
8025 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8027 * remote.c (remote_check_symbols): Update.
8028 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8029 (rs6000_skip_trampoline_code): Update.
8030 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8031 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8032 * solib-dsbt.c (lm_base): Update.
8033 * solib-frv.c (lm_base): Update.
8035 * solib-irix.c (locate_base): Update.
8036 * solib-som.c (som_solib_create_inferior_hook): Update.
8037 (som_solib_desire_dynamic_linker_symbols): Update.
8038 (link_map_start): Update.
8039 * solib-spu.c (spu_enable_break): Update.
8040 (ocl_enable_break): Update.
8041 * solib-svr4.c (elf_locate_base): Update.
8042 (enable_break): Update.
8043 * spu-tdep.c (spu_get_overlay_table): Update.
8044 (spu_catch_start): Update.
8045 (flush_ea_cache): Update.
8046 * stabsread.c (define_symbol): Update.
8047 (scan_file_globals): Update.
8048 * stack.c (find_frame_funname): Update.
8049 (frame_info): Update.
8050 * symfile.c (simple_read_overlay_table): Update.
8051 (simple_overlay_update): Update.
8052 * symmisc.c (dump_msymbols): Update.
8053 * symtab.c (fixup_section): Update.
8054 (find_pc_sect_line): Update.
8055 (skip_prologue_sal): Update.
8056 (search_symbols): Update.
8057 (print_msymbol_info): Update.
8058 (rbreak_command): Update.
8059 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8060 (completion_list_objc_symbol): Update.
8061 (default_make_symbol_completion_list_break_on): Update.
8062 * tracepoint.c (scope_info): Update.
8063 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8064 (tui_get_begin_asm_address): Update.
8065 * valops.c (find_function_in_inferior): Update.
8066 * value.c (value_static_field): Update.
8067 (value_fn_field): Update.
8069 2014-02-26 Tom Tromey <tromey@redhat.com>
8071 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8072 bound minimal symbols. Move code that knows about minsym
8074 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8076 * minsyms.h (minimal_symbol_upper_bound): Declare.
8077 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8078 minimal_symbol_upper_bound.
8080 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8082 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8083 Use the type's name if its basic type does not have a tag.
8085 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8087 * dwarf2read.c (read_subrange_type): Add comment.
8089 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8091 * dwarf2read.c (update_enumeration_type_from_children): New
8092 function, mostly extracted from process_structure_scope.
8093 (read_enumeration_type): Call update_enumeration_type_from_children.
8094 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8095 and flag_flag_enum fields.
8097 2014-02-26 Pedro Alves <palves@redhat.com>
8099 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8100 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8101 to_xfer_partial method.
8103 2014-02-26 Pedro Alves <palves@redhat.com>
8105 * target.c (complete_target_initialization): Don't install
8106 default_xfer_partial as to_xfer_partial hook.
8108 (update_current_target): Don't INHERIT nor de_fault
8109 deprecated_xfer_memory. Delete de_fault macro.
8110 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8111 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8112 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8115 2014-02-26 Pedro Alves <palves@redhat.com>
8117 * go32-nat.c (my_write_child): New function.
8118 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8119 (go32_xfer_partial): New function.
8120 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8121 Instead install a to_xfer_partial hook.
8123 2014-02-26 Pedro Alves <palves@redhat.com>
8125 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8126 to_xfer_partial helper. Rewrite.
8127 (procfs_xfer_partial): New function.
8128 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8129 Install a to_xfer_partial hook.
8131 2014-02-26 Pedro Alves <palves@redhat.com>
8133 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8134 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8135 (m32r_xfer_partial): New function.
8136 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8137 Install a to_xfer_partial hook.
8139 2014-02-26 Pedro Alves <palves@redhat.com>
8141 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8143 (mips_xfer_partial): New function.
8144 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8145 hook. Install a to_xfer_partial hook.
8147 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8149 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8150 * gdbtypes.c (create_array_type_with_stride): New function,
8151 renaming create_array_type, but with an added parameter
8152 called "bit_stride".
8153 (create_array_type): Re-implement using
8154 create_array_type_with_stride.
8155 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8156 and DW_AT_bit_stride attributes.
8158 2014-02-26 Pedro Alves <palves@redhat.com>
8160 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8161 task-specific breakpoints.
8163 2014-02-25 Pedro Alves <palves@redhat.com>
8165 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8166 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8168 2014-02-25 Stan Shebs <stan@codesourcery.com>
8170 * defs.h: Annotate comments for Doxygen.
8172 2014-02-25 Tom Tromey <tromey@redhat.com>
8174 * target.h (target_ignore): Don't declare.
8175 * target.c (target_ignore): Remove.
8177 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8180 * auto-load.c (auto_load_objfile_script_1): Change filename to
8183 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8185 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8186 documentation. Adjust prototype to match the target_ops
8187 to_xfer_partial method. Adjust implementation accordingly.
8189 2014-02-25 Hui Zhu <hui@codesourcery.com>
8191 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8194 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8196 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8197 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8198 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8199 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8200 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8201 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8202 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8203 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8205 (rl78_register_type): Use a data pointer type for SP and
8206 new pseudo registers mentioned above. Use a 16 bit integer
8207 type for all other register pairs.
8208 (rl78_register_name, rl78_g10_register_name): Update for
8209 new pseudo registers.
8210 (rl78_pseudo_register_read): Likewise.
8211 (rl78_pseudo_register_write): Likewise.
8212 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8213 to the newly added pseudo registers.
8215 2014-02-24 Doug Evans <dje@google.com>
8217 * value.c (record_latest_value): Fix comment.
8218 * printcmd.c (print_command_1): Remove code to handle -1 return from
8219 record_latest_value.
8221 2014-02-24 Pedro Alves <palves@redhat.com>
8223 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8224 deprecated_xfer_memory hook.
8225 (procfs_xfer_partial): Call procfs_xfer_memory instead
8226 of the deprecated_xfer_memory target hook.
8227 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8230 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8232 * windows-nat.c (windows_xfer_shared_libraries): Return
8233 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8234 requested object is TARGET_OBJECT_LIBRARIES.
8236 2014-02-24 Yao Qi <yao@codesourcery.com>
8238 * target.h (enum target_xfer_status)
8239 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8240 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8242 * corefile.c (memory_error_message): User updated.
8243 * exec.c (section_table_read_available_memory): Likewise.
8244 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8245 * target.c (target_xfer_status_to_string): Likewise.
8246 (raw_memory_xfer_partial): Likewise.
8247 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8248 * valops.c (read_value_memory): Likewise.
8249 * exec.h: Update comments.
8251 2014-02-24 Yao Qi <yao@codesourcery.com>
8253 * target.c (target_xfer_status_to_string): Rename argument err
8255 * target.h (target_xfer_status_to_string): Update declaration.
8256 Replace target_xfer_error_to_string with
8257 target_xfer_status_to_string in comment.
8259 2014-02-24 Yao Qi <yao@codesourcery.com>
8261 * mips-linux-nat.c (super_close): Update its type.
8262 (mips_linux_close): Pass 'self' to super_close.
8264 2014-02-24 Yao Qi <yao@codesourcery.com>
8266 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8267 * corefile.c (read_memory): Adjusted.
8268 * target.c (target_write_with_progress): Adjusted.
8270 2014-02-23 Yao Qi <yao@codesourcery.com>
8274 2013-10-25 Yao Qi <yao@codesourcery.com>
8276 * remote.c (remote_traceframe_info): Return early if
8277 traceframe is not selected.
8279 2013-07-19 Yao Qi <yao@codesourcery.com>
8281 * target.c (update_current_target): Change the default action
8282 of 'to_traceframe_info' from tcomplain to return_zero.
8283 * target.h (struct target_ops) <to_traceframe_info>: Add more
8286 2014-02-23 Yao Qi <yao@codesourcery.com>
8288 * valops.c (read_value_memory): Rewrite it. Call
8289 target_xfer_partial in a loop.
8290 * exec.h (section_table_available_memory): Remove declaration.
8291 Move comments to ...
8292 * exec.c (section_table_available_memory): ... here. Make it
8295 2014-02-23 Yao Qi <yao@codesourcery.com>
8297 * exec.c (section_table_read_available_memory): New function.
8298 * exec.h (section_table_read_available_memory): Declare.
8299 * ctf.c (ctf_xfer_partial): Call
8300 section_table_read_available_memory.
8301 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8303 2014-02-23 Yao Qi <yao@codesourcery.com>
8305 * ctf.c (ctf_xfer_partial): Move code to ...
8306 * exec.c (exec_read_partial_read_only): ... it. New function.
8307 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8308 * tracefile.c: Include "exec.h".
8309 * exec.h (exec_read_partial_read_only): Declare.
8311 2014-02-23 Yao Qi <yao@codesourcery.com>
8313 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8314 (tfile_has_memory): Remove.
8315 (init_tfile_ops): Don't set fields to_has_all_memory and
8316 to_has_memory of tfile_ops.
8317 * tracefile.c (tracefile_has_all_memory): New function.
8318 (tracefile_has_memory): New function.
8319 (init_tracefile_ops): Initialize fields to_has_all_memory and
8320 to_has_memory of 'ops'.
8322 2014-02-23 Yao Qi <yao@codesourcery.com>
8324 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8325 (ctf_thread_alive, ctf_get_trace_status): Remove.
8326 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8328 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8329 (tfile_has_stack, tfile_has_registers): Remove.
8330 (tfile_thread_alive): Remove.
8331 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8333 * tracefile.c (tracefile_has_stack): New function.
8334 (tracefile_has_registers): New function.
8335 (tracefile_thread_alive): New function.
8336 (tracefile_get_trace_status): New function.
8337 (init_tracefile_ops): New function.
8338 * tracefile.h (init_tracefile_ops): Declare.
8340 2014-02-23 Yao Qi <yao@codesourcery.com>
8342 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8343 (O_LARGEFILE): Likewise.
8344 (tfile_ops): Likewise.
8345 (TRACE_HEADER_SIZE): Likewise.
8346 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8347 (cur_data_size): Likewise.
8348 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8349 (tfile_close, tfile_files_info): Likewise.
8350 (tfile_get_trace_status): Likewise.
8351 (tfile_get_tracepoint_status): Likewise.
8352 (tfile_get_traceframe_address): Likewise.
8353 (tfile_trace_find, match_blocktype): Likewise.
8354 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8355 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8356 (tfile_get_trace_state_variable_value): Likewise.
8357 (tfile_has_all_memory, tfile_has_memory): Likewise.
8358 (tfile_has_stack, tfile_has_registers): Likewise.
8359 (tfile_thread_alive, build_traceframe_info): Likewise.
8360 (tfile_traceframe_info, init_tfile_ops): Likewise.
8361 (_initialize_tracepoint): Don't call init_tfile_ops
8362 and add_target_with_completer.
8363 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8364 exec.h, completer.h and filenames.h.
8365 (_initialize_tracefile_tfile): New function.
8367 2014-02-23 Yao Qi <yao@codesourcery.com>
8369 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8371 (HFILES_NO_SRCDIR): Add tracefile.h.
8372 * ctf.c: Include "tracefile.h".
8373 * tracefile.h: New file.
8374 * tracefile.c: New file
8375 * tracefile-tfile.c: New file.
8376 * tracepoint.c: Include "tracefile.h".
8377 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8378 (stop_reason_names): Add const.
8379 (trace_file_writer_xfree): Move it to tracefile.c.
8380 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8381 (trace_save_ctf): Likewise.
8382 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8383 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8384 (tfile_write_header, tfile_write_regblock_type): Likewise.
8385 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8386 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8387 (tfile_write_raw_data, tfile_end): Likewise.
8388 (tfile_trace_file_writer_new): Likewise.
8389 (free_uploaded_tp): Make it extern.
8390 (free_uploaded_tsv): Make it extern.
8391 (_initialize_tracepoint): Move code to register command 'tsave'
8393 * tracepoint.h (stop_reason_names): Declare.
8394 (struct trace_frame_write_ops): Move it to tracefile.h.
8395 (struct trace_file_write_ops): Likewise.
8396 (struct trace_file_writer): Likewise.
8397 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8399 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8402 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8404 (get_cores_used_by_process): New parameter num_cores, use it.
8405 (linux_xfer_osdata_processes): Pass num_cores to it.
8406 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8409 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8411 * target.c (memory_xfer_partial): Fix length arg in call to
8412 breakpoint_xfer_memory.
8414 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8417 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8418 number comes after the + or - signs. Adjust length of register
8419 name to be extracted.
8421 2014-02-20 Tom Tromey <tromey@redhat.com>
8423 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8424 (ada_varobj_ops): Mark "extern".
8426 2014-02-20 Tom Tromey <tromey@redhat.com>
8428 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8430 2014-02-20 Doug Evans <xdje42@gmail.com>
8432 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8433 All callers updated.
8434 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8435 All callers updated.
8436 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8437 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8439 2014-02-20 lin zuojian <manjian2006@gmail.com>
8440 Joel Brobecker <brobecker@adacore.com>
8441 Doug Evans <xdje42@gmail.com>
8444 * dwarf2read.c (struct die_info): New member in_process.
8445 (reset_die_in_process): New function.
8446 (process_die): Set it at the start, reset when returning.
8447 (inherit_abstract_dies): Only call process_die if origin_child_die
8448 not already being processed.
8450 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8452 * windows-nat.c (handle_unload_dll): Add function documentation.
8453 (do_initial_windows_stuff): Add comment explaining why we wait
8454 until after inferior initialization has finished before
8455 processing all DLLs.
8457 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8459 * windows-nat.c (get_module_name): Delete.
8460 (windows_get_exec_module_filename): New function, mostly
8461 inspired from get_module_name.
8462 (windows_pid_to_exec_file): Replace call to get_module_name
8463 by call to windows_get_exec_module_filename.
8465 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8467 * windows-nat.c (handle_load_dll): Rewrite this function's
8468 introductory comment. Remove code using get_module_name
8469 to get the DLL's name.
8471 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8473 * windows-nat.c (get_windows_debug_event): Ignore
8474 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8475 if windows_initialization_done == 0.
8476 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8477 Adjust implementation to always load all DLLs.
8478 (do_initial_windows_stuff): Replace call to
8479 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8481 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8483 * windows-nat.c (_initialize_windows_nat): Deprecate the
8484 "dll-symbols" command. Turn the "add-shared-symbol-files"
8485 and "assf" aliases into commands, and deprecate them as well.
8486 * NEWS: Add entry explaining that "dll-symbols" and its two
8487 aliases are now deprecated.
8489 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8491 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8492 new-line in debug string. Remove trailing spaces.
8494 2014-02-19 Stan Shebs <stan@codesourcery.com>
8496 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8498 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8500 * NEWS: Add entry for the new feature
8501 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8504 2014-02-19 Stan Shebs <stan@codesourcery.com>
8506 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8508 2014-02-19 Pedro Alves <palves@redhat.com>
8510 * common/ptid.h (struct ptid): Mention that process_stratum
8511 targets should prefer ptid.lwp.
8513 2014-02-19 Pedro Alves <palves@redhat.com>
8515 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8516 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8517 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8518 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8519 store remote thread ids rather than ptid.tid.
8520 (_initialize_remote): Adjust.
8522 2014-02-19 Tom Tromey <tromey@redhat.com>
8524 * target.c (target_get_unwinder): Rewrite.
8525 (target_get_tailcall_unwinder): Rewrite.
8526 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8527 (record_btrace_to_get_tailcall_unwinder): New function.
8528 (init_record_btrace_ops): Update.
8529 * target.h (struct target_ops) <to_get_unwinder,
8530 to_get_tailcall_unwinder>: Now function pointers. Use
8531 TARGET_DEFAULT_RETURN.
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8535 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8537 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8541 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8543 * target-delegates.c: Rebuild.
8544 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8545 TARGET_DEFAULT_FUNC.
8546 * target.c (default_target_decr_pc_after_break): Rename from
8547 forward_target_decr_pc_after_break. Simplify.
8548 (target_decr_pc_after_break): Rely on delegation.
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8552 * target.c (update_current_target): Do not INHERIT to_doc or
8553 to_magic. Do not de_fault to_open or to_close.
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8557 * gcore.h (objfile_find_memory_regions): Declare.
8558 * gcore.c (objfile_find_memory_regions): No longer static. Add
8560 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8561 * exec.c: Include gcore.h.
8562 (exec_set_find_memory_regions): Remove.
8563 (exec_find_memory_regions): Remove.
8564 (exec_do_find_memory_regions): Remove.
8565 (init_exec_ops): Update.
8566 * defs.h (exec_set_find_memory_regions): Remove.
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8570 * target-delegates.c: Rebuild.
8571 * target.h (struct target_ops) <to_extra_thread_info,
8572 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8573 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8574 not 0, in TARGET_DEFAULT_RETURN.
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8578 * target.c (complete_target_initialization): Remove casts. Use
8579 return_zero_has_execution.
8580 (return_zero): Add "ignore" argument.
8581 (return_zero_has_execution): New function.
8582 (init_dummy_target): Remove casts. Use
8583 return_zero_has_execution.
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8587 * target.c (update_current_target): Update comments. Do not
8590 2014-02-19 Tom Tromey <tromey@redhat.com>
8592 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8594 * corelow.c (core_read_description): Delegate when needed.
8595 * remote.c (remote_read_description): Delegate when needed.
8596 * target-delegates.c: Rebuild.
8597 * target.c (target_read_description): Rewrite.
8598 * target.h (struct target_ops) <to_read_description>: Update
8599 comment. Use TARGET_DEFAULT_RETURN.
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8603 * target-delegates.c: Rebuild.
8604 * target.c (update_current_target): Don't inherit or default
8606 (find_default_run_target): Check against delegate_can_run.
8607 * target.h (struct target_ops) <to_can_run>: Use
8608 TARGET_DEFAULT_RETURN.
8610 2014-02-19 Tom Tromey <tromey@redhat.com>
8612 * target-delegates.c: Rebuild.
8613 * target.c (target_disconnect): Unconditionally delegate.
8614 * target.h (struct target_ops) <to_disconnect>: Use
8615 TARGET_DEFAULT_NORETURN.
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8619 * record.c (record_stop): Unconditionally delegate.
8620 * target-delegates.c: Rebuild.
8621 * target.c (target_stop_recording): Unconditionally delegate.
8622 * target.h (struct target_ops) <to_stop_recording>: Use
8623 TARGET_DEFAULT_IGNORE.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target-delegates.c: Rebuild.
8628 * target.c (target_enable_btrace): Unconditionally delegate.
8629 * target.h (struct target_ops) <to_enable_btrace>: Use
8630 TARGET_DEFAULT_NORETURN.
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8634 * target-delegates.c: Rebuild.
8635 * target.c (target_read_btrace): Unconditionally delegate.
8636 * target.h (struct target_ops) <to_read_btrace>: Use
8637 TARGET_DEFAULT_NORETURN.
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8641 * target-delegates.c: Rebuild.
8642 * target.c (target_teardown_btrace): Unconditionally delegate.
8643 * target.h (struct target_ops) <to_teardown_btrace>: Use
8644 TARGET_DEFAULT_NORETURN.
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8648 * target-delegates.c: Rebuild.
8649 * target.c (target_disable_btrace): Unconditionally delegate.
8650 * target.h (struct target_ops) <to_disable_btrace>: Use
8651 TARGET_DEFAULT_NORETURN.
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8655 * target-delegates.c: Rebuild.
8656 * target.c (default_search_memory): New function.
8657 (simple_search_memory): Update comment.
8658 (target_search_memory): Unconditionally delegate.
8659 * target.h (struct target_ops) <to_search_memory>: Use
8660 TARGET_DEFAULT_FUNC.
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8664 * auxv.c (default_auxv_parse): No longer static.
8665 (target_auxv_parse): Unconditionally delegate.
8666 * auxv.h (default_auxv_parse): Declare.
8667 * target-delegates.c: Rebuild.
8668 * target.c: Include auxv.h.
8669 * target.h (struct target_ops) <to_auxv_parse>: Use
8670 TARGET_DEFAULT_FUNC.
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8674 * target-delegates.c: Rebuild.
8675 * target.c (target_memory_map): Unconditionally delegate.
8676 * target.h (struct target_ops) <to_memory_map>: Use
8677 TARGET_DEFAULT_RETURN.
8679 2014-02-19 Tom Tromey <tromey@redhat.com>
8681 * target-delegates.c: Rebuild.
8682 * target.c (target_thread_alive): Unconditionally delegate.
8683 * target.h (struct target_ops) <to_thread_alive>: Use
8684 TARGET_DEFAULT_RETURN.
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8688 * target-delegates.c: Rebuild.
8689 * target.c (target_save_record): Unconditionally delegate.
8690 * target.h (struct target_ops) <to_save_record>: Use
8691 TARGET_DEFAULT_NORETURN.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target-delegates.c: Rebuild.
8696 * target.c (target_delete_record): Unconditionally delegate.
8697 * target.h (struct target_ops) <to_delete_record>: Use
8698 TARGET_DEFAULT_NORETURN.
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8702 * target-delegates.c: Rebuild.
8703 * target.c (target_record_is_replaying): Unconditionally
8705 * target.h (struct target_ops) <to_record_is_replaying>: Use
8706 TARGET_DEFAULT_RETURN.
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8710 * target-delegates.c: Rebuild.
8711 * target.c (target_goto_record_begin): Unconditionally delegate.
8712 * target.h (struct target_ops) <to_goto_record_begin>: Use
8713 TARGET_DEFAULT_NORETURN.
8715 2014-02-19 Tom Tromey <tromey@redhat.com>
8717 * target-delegates.c: Rebuild.
8718 * target.c (target_goto_record_end): Unconditionally delegate.
8719 * target.h (struct target_ops) <to_goto_record_end>: Use
8720 TARGET_DEFAULT_NORETURN.
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8724 * target-delegates.c: Rebuild.
8725 * target.c (target_goto_record): Unconditionally delegate.
8726 * target.h (struct target_ops) <to_goto_record>: Use
8727 TARGET_DEFAULT_NORETURN.
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8731 * target-delegates.c: Rebuild.
8732 * target.c (target_insn_history): Unconditionally delegate.
8733 * target.h (struct target_ops) <to_insn_history>: Use
8734 TARGET_DEFAULT_NORETURN.
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * target-delegates.c: Rebuild.
8739 * target.c (target_insn_history_from): Unconditionally delegate.
8740 * target.h (struct target_ops) <to_insn_history_from>: Use
8741 TARGET_DEFAULT_NORETURN.
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8745 * target-delegates.c: Rebuild.
8746 * target.c (target_insn_history_range): Unconditionally delegate.
8747 * target.h (struct target_ops) <to_insn_history_range>: Use
8748 TARGET_DEFAULT_NORETURN.
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8752 * target-delegates.c: Rebuild.
8753 * target.c (target_call_history): Unconditionally delegate.
8754 * target.h (struct target_ops) <to_call_history>: Use
8755 TARGET_DEFAULT_NORETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (target_call_history_from): Unconditionally delegate.
8761 * target.h (struct target_ops) <to_call_history_from>: Use
8762 TARGET_DEFAULT_NORETURN.
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * target-delegates.c: Rebuild.
8767 * target.c (target_call_history_range): Unconditionally delegate.
8768 * target.h (struct target_ops) <to_call_history_range>: Use
8769 TARGET_DEFAULT_NORETURN.
8771 2014-02-19 Tom Tromey <tromey@redhat.com>
8773 * target-delegates.c: Rebuild.
8774 * target.c (target_verify_memory): Unconditionally delegate.
8775 * target.h (struct target_ops) <to_verify_memory>: Use
8776 TARGET_DEFAULT_NORETURN.
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8780 * target-delegates.c: Rebuild.
8781 * target.c (target_core_of_thread): Unconditionally delegate.
8782 * target.h (struct target_ops) <to_core_of_thread>: Use
8783 TARGET_DEFAULT_RETURN.
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * target-delegates.c: Rebuild.
8788 * target.c (target_flash_done): Unconditionally delegate.
8789 * target.h (struct target_ops) <to_flash_done>: Use
8790 TARGET_DEFAULT_NORETURN.
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8794 * target-delegates.c: Rebuild.
8795 * target.c (target_flash_erase): Unconditionally delegate.
8796 * target.h (struct target_ops) <to_flash_erase>: Use
8797 TARGET_DEFAULT_NORETURN.
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8801 * target-delegates.c: Rebuild.
8802 * target.c (target_get_section_table): Unconditionally delegate.
8803 * target.h (struct target_ops) <to_get_section_table>: Use
8804 TARGET_DEFAULT_RETURN.
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8808 * target-delegates.c: Rebuild.
8809 * target.c (target_pid_to_str): Unconditionally delegate.
8810 (init_dummy_target): Don't initialize to_pid_to_str.
8811 (default_pid_to_str): Rename from dummy_pid_to_str.
8812 * target.h (struct target_ops) <to_pid_to_str>: Use
8813 TARGET_DEFAULT_FUNC.
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8817 * target-delegates.c: Rebuild.
8818 * target.c (target_find_new_threads): Unconditionally delegate.
8819 * target.h (struct target_ops) <to_find_new_threads>: Use
8820 TARGET_DEFAULT_RETURN.
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8824 * target-delegates.c: Rebuild.
8825 * target.c (target_program_signals): Unconditionally delegate.
8826 * target.h (struct target_ops) <to_program_signals>: Use
8827 TARGET_DEFAULT_IGNORE.
8829 2014-02-19 Tom Tromey <tromey@redhat.com>
8831 * target-delegates.c: Rebuild.
8832 * target.c (target_pass_signals): Unconditionally delegate.
8833 * target.h (struct target_ops) <to_pass_signals>: Use
8834 TARGET_DEFAULT_IGNORE.
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8838 * target-delegates.c: Rebuild.
8839 * target.c (default_mourn_inferior): New function.
8840 (target_mourn_inferior): Unconditionally delegate.
8841 * target.h (struct target_ops) <to_mourn_inferior>: Use
8842 TARGET_DEFAULT_FUNC.
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8846 * target-delegates.c: Rebuild.
8847 * target.c (default_follow_fork): New function.
8848 (target_follow_fork): Unconditionally delegate.
8849 * target.h (struct target_ops) <to_follow_fork>: Use
8850 TARGET_DEFAULT_FUNC.
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8854 * target-delegates.c: Rebuild.
8855 * target.c (target_kill): Unconditionally delegate.
8856 * target.h (struct target_ops) <to_kill>: Use
8857 TARGET_DEFAULT_NORETURN.
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * target-delegates.c: Rebuild.
8862 * target.c (target_masked_watch_num_registers): Unconditionally
8864 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8865 Use TARGET_DEFAULT_RETURN.
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8869 * target-delegates.c: Rebuild.
8870 * target.c (target_remove_mask_watchpoint): Unconditionally
8872 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8873 TARGET_DEFAULT_RETURN.
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8877 * target-delegates.c: Rebuild.
8878 * target.c (target_insert_mask_watchpoint): Unconditionally
8880 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8881 TARGET_DEFAULT_RETURN.
8883 2014-02-19 Tom Tromey <tromey@redhat.com>
8885 * target-delegates.c: Rebuild.
8886 * target.c (target_ranged_break_num_registers): Unconditionally
8888 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8889 Use TARGET_DEFAULT_RETURN.
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8893 * target-delegates.c: Rebuild.
8894 * target.c (target_fetch_registers): Unconditionally delegate.
8895 * target.h (struct target_ops) <to_fetch_registers>: Use
8896 TARGET_DEFAULT_NORETURN.
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target-delegates.c: Rebuild.
8901 * target.c (update_current_target): Don't inherit or default
8903 * target.h (struct target_ops) <to_stop>: Use
8904 TARGET_DEFAULT_IGNORE.
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * target-delegates.c: Rebuild.
8909 * target.c (update_current_target): Don't inherit or default
8910 to_can_run_breakpoint_commands.
8911 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8912 Use TARGET_DEFAULT_RETURN.
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target-delegates.c: Rebuild.
8917 * target.c (update_current_target): Don't inherit or default
8918 to_supports_evaluation_of_breakpoint_conditions.
8919 * target.h (struct target_ops)
8920 <to_supports_evaluation_of_breakpoint_conditions>: Use
8921 TARGET_DEFAULT_RETURN.
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8925 * target-delegates.c: Rebuild.
8926 * target.c (update_current_target): Don't inherit or default
8927 to_augmented_libraries_svr4_read.
8928 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8929 Use TARGET_DEFAULT_RETURN.
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8933 * target-delegates.c: Rebuild.
8934 * target.c (update_current_target): Don't inherit or default
8936 * target.h (struct target_ops) <to_can_use_agent>: Use
8937 TARGET_DEFAULT_RETURN.
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8941 * target-delegates.c: Rebuild.
8942 * target.c (update_current_target): Don't inherit or default
8944 * target.h (struct target_ops) <to_use_agent>: Use
8945 TARGET_DEFAULT_NORETURN.
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8949 * target-delegates.c: Rebuild.
8950 * target.c (update_current_target): Don't inherit or default
8952 (return_null): Remove.
8953 * target.h (struct target_ops) <to_traceframe_info>: Use
8954 TARGET_DEFAULT_RETURN.
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8958 * target-delegates.c: Rebuild.
8959 * target.c (update_current_target): Don't inherit or default
8960 to_static_tracepoint_markers_by_strid.
8961 * target.h (struct target_ops)
8962 <to_static_tracepoint_markers_by_strid>: Use
8963 TARGET_DEFAULT_NORETURN.
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * target-delegates.c: Rebuild.
8968 * target.c (update_current_target): Don't inherit or default
8969 to_static_tracepoint_marker_at.
8970 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8971 Use TARGET_DEFAULT_RETURN.
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8975 * target-delegates.c: Rebuild.
8976 * target.c (update_current_target): Don't inherit or default
8978 * target.h (struct target_ops) <to_set_permissions>: Use
8979 TARGET_DEFAULT_IGNORE.
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8983 * target-delegates.c: Rebuild.
8984 * target.c (update_current_target): Don't inherit or default
8986 * target.h (struct target_ops) <to_get_tib_address>: Use
8987 TARGET_DEFAULT_NORETURN.
8989 2014-02-19 Tom Tromey <tromey@redhat.com>
8991 * target-delegates.c: Rebuild.
8992 * target.c (update_current_target): Don't inherit or default
8994 * target.h (struct target_ops) <to_set_trace_notes>: Use
8995 TARGET_DEFAULT_RETURN.
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8999 * target-delegates.c: Rebuild.
9000 * target.c (update_current_target): Don't initialize
9001 to_set_trace_buffer_size.
9002 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9003 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
9010 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9011 TARGET_DEFAULT_IGNORE.
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
9017 to_set_disconnected_tracing.
9018 * target.h (struct target_ops) <to_set_disconnected_tracing>: 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
9025 to_get_min_fast_tracepoint_insn_len.
9026 (return_minus_one): Remove.
9027 * target.h (struct target_ops)
9028 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target-delegates.c: Rebuild.
9033 * target.c (update_current_target): Don't inherit or default
9034 to_get_raw_trace_data.
9035 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9036 TARGET_DEFAULT_NORETURN.
9038 2014-02-19 Tom Tromey <tromey@redhat.com>
9040 * target-delegates.c: Rebuild.
9041 * target.c (update_current_target): Don't inherit or default
9042 to_upload_trace_state_variables.
9043 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9044 Use TARGET_DEFAULT_RETURN.
9046 2014-02-19 Tom Tromey <tromey@redhat.com>
9048 * target-delegates.c: Rebuild.
9049 * target.c (update_current_target): Don't inherit or default
9050 to_upload_tracepoints.
9051 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9052 TARGET_DEFAULT_RETURN.
9054 2014-02-19 Tom Tromey <tromey@redhat.com>
9056 * target-delegates.c: Rebuild.
9057 * target.c (update_current_target): Don't inherit or default
9059 * target.h (struct target_ops) <to_save_trace_data>: Use
9060 TARGET_DEFAULT_NORETURN.
9062 2014-02-19 Tom Tromey <tromey@redhat.com>
9064 * target-delegates.c: Rebuild.
9065 * target.c (update_current_target): Don't inherit or default
9066 to_get_trace_state_variable_value.
9067 * target.h (struct target_ops)
9068 <to_get_trace_state_variable_value>: 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
9075 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9079 * target-delegates.c: Rebuild.
9080 * target.c (update_current_target): Don't inherit or default
9082 * target.h (struct target_ops) <to_trace_stop>: Use
9083 TARGET_DEFAULT_NORETURN.
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9087 * target-delegates.c: Rebuild.
9088 * target.c (update_current_target): Don't inherit or default
9089 to_get_tracepoint_status.
9090 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9091 TARGET_DEFAULT_NORETURN.
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9095 * target-delegates.c: Rebuild.
9096 * target.c (update_current_target): Don't inherit or default
9097 to_get_trace_status.
9098 * target.h (struct target_ops) <to_get_trace_status>: Use
9099 TARGET_DEFAULT_RETURN.
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9103 * target-delegates.c: Rebuild.
9104 * target.c (update_current_target): Don't inherit or default
9106 * target.h (struct target_ops) <to_trace_start>: Use
9107 TARGET_DEFAULT_NORETURN.
9109 2014-02-19 Tom Tromey <tromey@redhat.com>
9111 * target-delegates.c: Rebuild.
9112 * target.c (update_current_target): Don't inherit or default
9113 to_trace_set_readonly_regions.
9114 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9115 Use TARGET_DEFAULT_NORETURN.
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
9121 to_disable_tracepoint.
9122 * target.h (struct target_ops) <to_disable_tracepoint>: 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_enable_tracepoint.
9130 * target.h (struct target_ops) <to_enable_tracepoint>: 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_download_trace_state_variable.
9138 * target.h (struct target_ops) <to_download_trace_state_variable>:
9139 Use TARGET_DEFAULT_NORETURN.
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
9145 to_can_download_tracepoint.
9146 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9147 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
9154 * target.h (struct target_ops) <to_download_tracepoint>: Use
9155 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
9162 * target.h (struct target_ops) <to_trace_init>: Use
9163 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
9170 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9171 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
9178 * target.h (struct target_ops)
9179 <to_supports_enable_disable_tracepoint>: Use
9180 TARGET_DEFAULT_RETURN.
9182 2014-02-19 Tom Tromey <tromey@redhat.com>
9184 * target-delegates.c: Rebuild.
9185 * target.c (update_current_target): Don't inherit or default
9186 to_supports_multi_process.
9187 * target.h (struct target_ops) <to_supports_multi_process>: Use
9188 TARGET_DEFAULT_RETURN.
9190 2014-02-19 Tom Tromey <tromey@redhat.com>
9192 * target-delegates.c: Rebuild.
9193 * target.c (update_current_target): Don't inherit or default
9194 to_get_ada_task_ptid.
9195 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9196 TARGET_DEFAULT_FUNC.
9198 2014-02-19 Tom Tromey <tromey@redhat.com>
9200 * target-delegates.c: Rebuild.
9201 * target.c (update_current_target): Don't inherit or default
9202 to_thread_architecture.
9203 * target.h (struct target_ops) <to_thread_architecture>: Use
9204 TARGET_DEFAULT_FUNC.
9206 2014-02-19 Tom Tromey <tromey@redhat.com>
9208 * target-delegates.c: Rebuild.
9209 * target.c (update_current_target): Don't inherit or default
9210 to_execution_direction.
9211 * target.h (struct target_ops) <to_execution_direction>: Use
9212 TARGET_DEFAULT_FUNC.
9214 2014-02-19 Tom Tromey <tromey@redhat.com>
9216 * target-delegates.c: Rebuild.
9217 * target.c (update_current_target): Don't inherit or default
9218 to_can_execute_reverse.
9219 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9220 TARGET_DEFAULT_RETURN.
9221 (target_can_execute_reverse): Unconditionally delegate.
9223 2014-02-19 Tom Tromey <tromey@redhat.com>
9225 * target-delegates.c: Rebuild.
9226 * target.c (update_current_target): Don't inherit or default
9228 (dummy_goto_bookmark): Remove.
9229 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9230 * target.h (struct target_ops) <to_goto_bookmark>: Use
9231 TARGET_DEFAULT_NORETURN.
9233 2014-02-19 Tom Tromey <tromey@redhat.com>
9235 * target-delegates.c: Rebuild.
9236 * target.c (update_current_target): Don't inherit or default
9238 (dummy_get_bookmark): Remove.
9239 (init_dummy_target): Don't inherit or default to_get_bookmark.
9240 * target.h (struct target_ops) <to_get_bookmark>: Use
9241 TARGET_DEFAULT_NORETURN
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9245 * target-delegates.c: Rebuild.
9246 * target.c (update_current_target): Don't inherit or default
9247 to_make_corefile_notes.
9248 (init_dummy_target): Don't initialize to_make_corefile_notes.
9249 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9250 TARGET_DEFAULT_FUNC.
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9254 * target-delegates.c: Rebuild.
9255 * target.c (update_current_target): Don't inherit or default
9256 to_find_memory_regions.
9257 (init_dummy_target): Don't initialize to_find_memory_regions.
9258 * target.h (struct target_ops) <to_find_memory_regions>: Use
9259 TARGET_DEFAULT_FUNC.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target-delegates.c: Rebuild.
9264 * target.c (update_current_target): Don't inherit or default
9266 * target.h (struct target_ops) <to_log_command>: Use
9267 TARGET_DEFAULT_IGNORE.
9268 (target_log_command): Unconditionally delegate.
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9272 * target-delegates.c: Rebuild.
9273 * target.c (update_current_target): Don't inherit or default
9274 to_pid_to_exec_file.
9275 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9276 TARGET_DEFAULT_RETURN.
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9280 * target-delegates.c: Rebuild.
9281 * target.c (update_current_target): Don't inherit or default
9283 (target_thread_name): Unconditionally delegate.
9284 * target.h (struct target_ops) <to_thread_name>: Use
9285 TARGET_DEFAULT_RETURN.
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9289 * target-delegates.c: Rebuild.
9290 * target.c (update_current_target): Don't inherit or default
9291 to_extra_thread_info.
9292 * target.h (struct target_ops) <to_extra_thread_info>: Use
9293 TARGET_DEFAULT_RETURN.
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * target-delegates.c: Rebuild.
9298 * target.c (update_current_target): Don't inherit or default
9300 * target.h (struct target_ops) <to_has_exited>: Use
9301 TARGET_DEFAULT_RETURN..
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9305 * target-delegates.c: Rebuild.
9306 * target.c (update_current_target): Don't inherit or default
9307 to_set_syscall_catchpoint.
9308 (return_one): Remove.
9309 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9310 TARGET_DEFAULT_RETURN.
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9314 * target-delegates.c: Rebuild.
9315 * target.c (update_current_target): Don't inherit or default
9316 to_insert_exec_catchpoint.
9317 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9318 TARGET_DEFAULT_RETURN.
9320 2014-01-08 Tom Tromey <tromey@redhat.com>
9322 * target-delegates.c: Rebuild.
9323 * target.c (update_current_target): Don't inherit or default
9324 to_insert_exec_catchpoint.
9325 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9326 TARGET_DEFAULT_RETURN.
9328 2014-02-19 Tom Tromey <tromey@redhat.com>
9330 * target-delegates.c: Rebuild.
9331 * target.c (update_current_target): Don't inherit or default
9332 to_remove_vfork_catchpoint.
9333 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9334 TARGET_DEFAULT_RETURN.
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * target-delegates.c: Rebuild.
9339 * target.c (update_current_target): Don't inherit or default
9340 to_insert_vfork_catchpoint.
9341 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9342 TARGET_DEFAULT_RETURN.
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9346 * target-delegates.c: Rebuild.
9347 * target.c (update_current_target): Don't inherit or default
9348 to_remove_fork_catchpoint.
9349 * target.h (struct target_ops) <to_remove_fork_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_fork_catchpoint.
9357 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9358 TARGET_DEFAULT_RETURN.
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9362 * target-delegates.c: Rebuild.
9363 * target.c (update_current_target): Don't inherit or default
9364 to_post_startup_inferior.
9365 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9366 TARGET_DEFAULT_IGNORE.
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
9373 * target.h (struct target_ops) <to_load>: Use
9374 TARGET_DEFAULT_NORETURN.
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
9381 * target.h (struct target_ops) <to_terminal_info>: Use
9382 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
9389 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9390 TARGET_DEFAULT_IGNORE.
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
9397 * target.h (struct target_ops) <to_terminal_ours>: Use
9398 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
9405 * target.h (struct target_ops) <to_terminal_ours_for_output>: 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
9412 to_terminal_inferior.
9413 * target.h (struct target_ops) <to_terminal_inferior>: Use
9414 TARGET_DEFAULT_IGNORE.
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_init>: Use
9422 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
9429 * target.h (struct target_ops)
9430 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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
9436 to_region_ok_for_hw_watchpoint.
9437 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9438 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
9445 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9446 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
9453 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9454 TARGET_DEFAULT_NORETURN.
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
9460 to_insert_watchpoint.
9461 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9462 TARGET_DEFAULT_RETURN.
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_remove_hw_breakpoint.
9469 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9470 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_insert_hw_breakpoint.
9477 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9478 TARGET_DEFAULT_RETURN.
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_can_use_hw_breakpoint.
9485 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9486 TARGET_DEFAULT_RETURN.
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
9493 * target.h (struct target_ops) <to_files_info>: Use
9494 TARGET_DEFAULT_IGNORE.
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
9501 * target.h (struct target_ops) <to_store>: Use
9502 TARGET_DEFAULT_NORETURN.
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
9509 * target.h (struct target_ops) <to_post_attach>: Use
9510 TARGET_DEFAULT_IGNORE.
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
9517 (default_rcmd): New function.
9518 (do_monitor_command): Unconditionally delegate.
9519 * target.h (struct target_ops) <to_rmcd>: Use
9520 TARGET_DEFAULT_FUNC.
9522 2014-02-19 Tom Tromey <tromey@redhat.com>
9524 * target-delegates.c: Rebuild.
9525 * target.c (init_dummy_target): Don't initialize to_attach.
9526 (target_attach): Unconditionally delegate.
9527 * target.h (struct target_ops) <to_attach>: Use
9528 TARGET_DEFAULT_FUNC.
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * target-delegates.c: Rebuild.
9533 * target.c (target_detach): Unconditionally delegate.
9534 (init_dummy_target): Don't initialize to_detach.
9535 * target.h (struct target_ops) <to_detach>: Use
9536 TARGET_DEFAULT_IGNORE.
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9540 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9542 (target_augmented_libraries_svr4_read): Add argument.
9543 * target.c (update_current_target): Update.
9544 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9547 2014-02-19 Tom Tromey <tromey@redhat.com>
9549 * target.h (struct target_ops) <to_call_history_range>: Add
9551 * target.c (target_call_history_range): Add argument.
9552 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9554 (record_btrace_call_history_from): Update.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target.h (struct target_ops) <to_call_history_from>: Add
9560 * target.c (target_call_history_from): Add argument.
9561 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9566 * target.h (struct target_ops) <to_call_history>: Add argument.
9567 * target.c (target_call_history): Add argument.
9568 * record-btrace.c (record_btrace_call_history): Add 'self'
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9573 * target.h (struct target_ops) <to_insn_history_range>: Add
9575 * target.c (target_insn_history_range): Add argument.
9576 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9578 (record_btrace_insn_history_from): Update.
9580 2014-02-19 Tom Tromey <tromey@redhat.com>
9582 * target.h (struct target_ops) <to_insn_history_from>: Add
9584 * target.c (target_insn_history_from): Add argument.
9585 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9588 2014-02-19 Tom Tromey <tromey@redhat.com>
9590 * target.h (struct target_ops) <to_insn_history>: Add argument.
9591 * target.c (target_insn_history): Add argument.
9592 * record-btrace.c (record_btrace_insn_history): Add 'self'
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9597 * target.h (struct target_ops) <to_goto_record>: Add argument.
9598 * target.c (target_goto_record): Add argument.
9599 * record-full.c (record_full_goto): Add 'self' argument.
9600 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9604 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9605 * target.c (target_goto_record_end): Add argument.
9606 * record-full.c (record_full_goto_end): Add 'self' argument.
9607 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9611 * target.h (struct target_ops) <to_goto_record_begin>: Add
9613 * target.c (target_goto_record_begin): Add argument.
9614 * record-full.c (record_full_goto_begin): Add 'self' argument.
9615 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9620 * target.h (struct target_ops) <to_record_is_replaying>: Add
9622 * target.c (target_record_is_replaying): Add argument.
9623 * record-full.c (record_full_is_replaying): Add 'self' argument.
9624 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9626 (record_btrace_xfer_partial, record_btrace_store_registers)
9627 (record_btrace_prepare_to_store, record_btrace_resume)
9628 (record_btrace_wait, record_btrace_decr_pc_after_break)
9629 (record_btrace_find_new_threads, record_btrace_thread_alive):
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target.h (struct target_ops) <to_delete_record>: Add argument.
9635 * target.c (target_delete_record): Add argument.
9636 * record-full.c (record_full_delete): Add 'self' argument.
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9640 * target.h (struct target_ops) <to_save_record>: Add argument.
9641 * target.c (target_save_record): Add argument.
9642 * record-full.c (record_full_save): Add 'self' argument.
9643 (record_full_save): Add 'self' argument.
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9647 * target.h (struct target_ops) <to_info_record>: Add argument.
9648 * target.c (target_info_record): Add argument.
9649 * record.c (info_record_command): Add argument.
9650 * record-full.c (record_full_info): Add 'self' argument.
9651 * record-btrace.c (record_btrace_info): Add 'self' argument.
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9655 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9656 * target.c (target_stop_recording): Add argument.
9657 * record.c (record_stop): Add argument.
9658 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9661 2014-02-19 Tom Tromey <tromey@redhat.com>
9663 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9664 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9665 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9667 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9668 (_initialize_amd64_linux_nat): Use it.
9669 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9670 (_initialize_i386_linux_nat): Use it.
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9674 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9675 * target.c (target_teardown_btrace): Add argument.
9676 * remote.c (remote_teardown_btrace): Add 'self' argument.
9677 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9679 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9684 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9685 * target.c (target_disable_btrace): Add argument.
9686 * remote.c (remote_disable_btrace): Add 'self' argument.
9687 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9689 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9694 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9695 * target.c (target_enable_btrace): Add argument.
9696 * remote.c (remote_enable_btrace): Add 'self' argument.
9697 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9699 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9704 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9705 (target_can_use_agent): Add argument.
9706 * target.c (update_current_target): Update.
9707 * remote.c (remote_can_use_agent): Add 'self' argument.
9708 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9710 2014-02-19 Tom Tromey <tromey@redhat.com>
9712 * target.h (struct target_ops) <to_use_agent>: Add argument.
9713 (target_use_agent): Add argument.
9714 * target.c (update_current_target): Update.
9715 * remote.c (remote_use_agent): Add 'self' argument.
9716 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9718 2014-02-19 Tom Tromey <tromey@redhat.com>
9720 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9721 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9722 (target_traceframe_info): Add argument.
9723 * target.c (update_current_target): Update.
9724 * remote.c (remote_traceframe_info): Add 'self' argument.
9725 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9727 2014-02-19 Tom Tromey <tromey@redhat.com>
9729 * target.h (target_static_tracepoint_markers_by_strid): Add
9731 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9733 * target.c (update_current_target): Update.
9734 * remote.c (struct target_ops)
9735 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9736 * linux-nat.c (struct target_ops)
9737 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9743 (target_static_tracepoint_marker_at): Add argument.
9744 * target.c (update_current_target): Update.
9745 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9748 2014-02-19 Tom Tromey <tromey@redhat.com>
9750 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9751 (target_set_permissions): Add argument.
9752 * target.c (update_current_target): Update.
9753 * remote.c (remote_set_permissions): Add 'self' argument.
9754 (remote_start_remote): Update.
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9758 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9759 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9760 (target_get_tib_address): Add argument.
9761 * target.c (update_current_target): Update.
9762 * remote.c (remote_get_tib_address): Add 'self' argument.
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9766 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9767 (target_set_trace_notes): Add argument.
9768 * target.c (update_current_target): Update.
9769 * remote.c (remote_set_trace_notes): Add 'self' argument.
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9773 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9775 (target_set_trace_buffer_size): Add argument.
9776 * target.c (update_current_target): Update.
9777 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9783 (target_set_circular_trace_buffer): Add argument.
9784 * target.c (update_current_target): Update.
9785 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9790 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9792 (target_set_disconnected_tracing): Add argument.
9793 * target.c (update_current_target): Update.
9794 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target.h (struct target_ops)
9799 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9800 (target_get_min_fast_tracepoint_insn_len): Add argument.
9801 * target.c (update_current_target): Update.
9802 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9805 2014-02-19 Tom Tromey <tromey@redhat.com>
9807 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9809 (target_get_raw_trace_data): Add argument.
9810 * target.c (update_current_target): Update.
9811 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9815 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9817 (target_upload_trace_state_variables): Add argument.
9818 * target.c (update_current_target): Update.
9819 * remote.c (remote_upload_trace_state_variables): Add 'self'
9821 (remote_start_remote): Update.
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9825 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9827 (target_upload_tracepoints): Add argument.
9828 * target.c (update_current_target): Update.
9829 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9830 (remote_start_remote): Update.
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9834 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9835 (target_save_trace_data): Add argument.
9836 * target.c (update_current_target): Update.
9837 * remote.c (remote_save_trace_data): Add 'self' argument.
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9841 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9843 * target.h (struct target_ops)
9844 <to_get_trace_state_variable_value>: Add argument.
9845 (target_get_trace_state_variable_value): Add argument.
9846 * target.c (update_current_target): Update.
9847 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9849 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9853 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9854 * target.h (struct target_ops) <to_trace_find>: Add argument.
9855 (target_trace_find): Add argument.
9856 * target.c (update_current_target): Update.
9857 * remote.c (remote_trace_find): Add 'self' argument.
9858 * ctf.c (ctf_trace_find): Add 'self' argument.
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9862 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9863 (target_trace_stop): Add argument.
9864 * target.c (update_current_target): Update.
9865 * remote.c (remote_trace_stop): Add 'self' argument.
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9869 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9870 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9872 (target_get_tracepoint_status): Add argument.
9873 * target.c (update_current_target): Update.
9874 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9876 2014-02-19 Tom Tromey <tromey@redhat.com>
9878 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9879 * target.h (struct target_ops) <to_get_trace_status>: Add
9881 (target_get_trace_status): Add argument.
9882 * target.c (update_current_target): Update.
9883 * remote.c (remote_get_trace_status): Add 'self' argument.
9884 (remote_start_remote, remote_can_download_tracepoint): Update.
9885 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9889 * target.h (struct target_ops) <to_trace_start>: Add argument.
9890 (target_trace_start): Add argument.
9891 * target.c (update_current_target): Update.
9892 * remote.c (remote_trace_start): Add 'self' argument.
9894 2014-02-19 Tom Tromey <tromey@redhat.com>
9896 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9898 (target_trace_set_readonly_regions): Add argument.
9899 * target.c (update_current_target): Update.
9900 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9905 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9907 (target_disable_tracepoint): Add argument.
9908 * target.c (update_current_target): Update.
9909 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9911 2014-02-19 Tom Tromey <tromey@redhat.com>
9913 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9915 (target_enable_tracepoint): Add argument.
9916 * target.c (update_current_target): Update.
9917 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9921 * target.h (struct target_ops) <to_download_trace_state_variable>:
9923 (target_download_trace_state_variable): Add argument.
9924 * target.c (update_current_target): Update.
9925 * remote.c (remote_download_trace_state_variable): Add 'self'
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9930 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9932 (target_can_download_tracepoint): Add argument.
9933 * target.c (update_current_target): Update.
9934 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9936 2014-02-19 Tom Tromey <tromey@redhat.com>
9938 * target.h (struct target_ops) <to_download_tracepoint>: Add
9940 (target_download_tracepoint): Add argument.
9941 * target.c (update_current_target): Update.
9942 * remote.c (remote_download_tracepoint): Add 'self' argument.
9944 2014-02-19 Tom Tromey <tromey@redhat.com>
9946 * target.h (struct target_ops) <to_trace_init>: Add argument.
9947 (target_trace_init): Add argument.
9948 * target.c (update_current_target): Update.
9949 * remote.c (remote_trace_init): Add 'self' argument.
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9953 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9954 * target.c (target_fileio_readlink): Add argument.
9955 * remote.c (remote_hostio_readlink): Add 'self' argument.
9956 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9961 * target.c (target_fileio_unlink): Add argument.
9962 * remote.c (remote_hostio_unlink): Add 'self' argument.
9963 (remote_file_delete): Update.
9964 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9968 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9969 * target.c (target_fileio_close): Add argument.
9970 * remote.c (remote_hostio_close): Add 'self' argument.
9971 (remote_hostio_close_cleanup): Update.
9972 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9974 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9976 2014-02-19 Tom Tromey <tromey@redhat.com>
9978 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9979 * target.c (target_fileio_pread): Add argument.
9980 * remote.c (remote_hostio_pread): Add 'self' argument.
9981 (remote_bfd_iovec_pread, remote_file_get): Update.
9982 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9986 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9987 * target.c (target_fileio_pwrite): Add argument.
9988 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9989 (remote_file_put): Update.
9990 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9992 2014-02-19 Tom Tromey <tromey@redhat.com>
9994 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9995 * target.c (target_fileio_open): Add argument.
9996 * remote.c (remote_hostio_open): Add 'self' argument.
9997 (remote_bfd_iovec_open): Add 'self' argument.
9998 (remote_file_put): Add 'self' argument.
9999 (remote_file_get): Add 'self' argument.
10000 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10004 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10006 (target_can_run_breakpoint_commands): Add argument.
10007 * target.c (update_current_target): Update.
10008 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10010 (remote_insert_breakpoint): Add 'self' argument.
10011 (remote_insert_hw_breakpoint): Add 'self' argument.
10012 (remote_can_run_breakpoint_commands): Add 'self' argument.
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * target.h (struct target_ops)
10017 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10018 (target_supports_evaluation_of_breakpoint_conditions): Add
10020 * target.c (update_current_target): Update.
10021 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10023 (remote_insert_breakpoint): Add 'self' argument.
10024 (remote_insert_hw_breakpoint): Add 'self' argument.
10025 (remote_supports_cond_breakpoints): Add 'self' argument.
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10029 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10031 (target_supports_string_tracing): Add argument.
10032 * target.c (update_current_target): Update.
10033 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10037 * target.h (struct target_ops)
10038 <to_supports_disable_randomization>: Add argument.
10039 * target.c (find_default_supports_disable_randomization): Add
10041 (target_supports_disable_randomization): Add argument.
10042 (find_default_supports_disable_randomization): Add 'self'
10044 * remote.c (extended_remote_supports_disable_randomization): Add
10046 (remote_supports_disable_randomization): Add 'self' argument.
10047 (extended_remote_create_inferior): Update.
10048 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10051 2014-02-19 Tom Tromey <tromey@redhat.com>
10053 * target.h (struct target_ops)
10054 <to_supports_enable_disable_tracepoint>: Add argument.
10055 (target_supports_enable_disable_tracepoint): Add argument.
10056 * target.c (update_current_target): Update.
10057 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target.h (struct target_ops) <to_supports_multi_process>: Add
10064 (target_supports_multi_process): Add argument.
10065 * target.c (update_current_target): Update.
10066 * remote.c (remote_supports_multi_process): Add 'self' argument.
10067 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10069 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10074 * target.h (struct target_ops) <to_execution_direction>: Add
10076 (target_execution_direction): Add argument.
10077 * target.c (default_execution_direction): Add 'self' argument.
10078 * record-full.c (record_full_execution_direction): Add 'self'
10081 2014-02-19 Tom Tromey <tromey@redhat.com>
10083 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10085 (target_can_execute_reverse): Add argument.
10086 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10087 * record-full.c (record_full_can_execute_reverse): Add 'self'
10089 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10095 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10097 (target_get_ada_task_ptid): Add argument.
10098 * target.c (update_current_target): Update.
10099 (default_get_ada_task_ptid): Add 'self' argument.
10100 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10101 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10102 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10104 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10106 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10108 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10110 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10111 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10114 2014-02-19 Tom Tromey <tromey@redhat.com>
10116 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10117 (target_goto_bookmark): Add argument.
10118 * target.c (dummy_goto_bookmark): Add 'self' argument.
10119 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10123 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10124 (target_get_bookmark): Add argument.
10125 * target.c (dummy_get_bookmark): Add 'self' argument.
10126 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10130 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10132 (target_make_corefile_notes): Add argument.
10133 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10134 * procfs.c (procfs_make_note_section): Add 'self' argument.
10135 (procfs_make_note_section): Add 'self' argument.
10136 (procfs_make_note_section): Add 'self' argument.
10137 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10139 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10140 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10141 * exec.c (exec_make_note_section): Add 'self' argument.
10142 (exec_make_note_section): Add 'self' argument.
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10146 * target.h (struct target_ops) <to_find_memory_regions>: Add
10148 (target_find_memory_regions): Add argument.
10149 * target.c (dummy_find_memory_regions): Add 'self' argument.
10150 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10151 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10152 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10153 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10154 * exec. (exec_do_find_memory_regions): New global.
10155 (exec_set_find_memory_regions): Rewrite.
10156 (exec_find_memory_regions): New function.
10157 (init_exec_ops): Use exec_find_memory_regions.
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * target.h (struct target_ops) <to_supports_non_stop>: Add
10163 * target.c (find_default_supports_non_stop): Add argument.
10164 (target_supports_non_stop): Add argument.
10165 (find_default_supports_non_stop): Add 'self' argument.
10166 * remote.c (remote_supports_non_stop): Add 'self' argument.
10167 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10169 2014-02-19 Tom Tromey <tromey@redhat.com>
10171 * target.h (struct target_ops) <to_log_command>: Add argument.
10172 (target_log_command): Add argument.
10173 * serial.h (serial_log_command): Add 'self' argument.
10174 * serial.c (serial_log_command): Add 'self' argument.
10176 2014-02-19 Tom Tromey <tromey@redhat.com>
10178 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10179 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10181 (target_pid_to_exec_file): Add argument.
10182 * target.c (debug_to_pid_to_exec_file): Add argument.
10183 (update_current_target): Update.
10184 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10185 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10186 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10187 (linux_handle_extended_wait): Update.
10188 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10189 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10190 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10191 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10195 * target.h (struct target_ops) <to_rcmd>: Add argument.
10196 (target_rcmd): Add argument.
10197 * target.c (debug_to_rcmd): Add argument.
10198 (update_current_target, do_monitor_command): Update.
10199 * remote.c (remote_rcmd): Add 'self' argument.
10200 * monitor.c (monitor_rcmd): Add 'self' argument.
10202 2014-02-19 Tom Tromey <tromey@redhat.com>
10204 * windows-nat.c (windows_stop): Add 'self' argument.
10205 * target.h (struct target_ops) <to_stop>: Add argument.
10206 * target.c (target_stop): Add argument.
10207 (debug_to_stop): Add argument.
10208 (update_current_target): Update.
10209 * remote.c (remote_stop): Add 'self' argument.
10210 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10211 (gdbsim_cntrl_c): Update.
10212 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10213 * procfs.c (procfs_stop): Add 'self' argument.
10214 * nto-procfs.c (procfs_stop): Add 'self' argument.
10215 * monitor.c (monitor_stop): Add 'self' argument.
10216 (monitor_open): Update.
10217 * linux-nat.c (linux_nat_stop): Add argument.
10218 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10219 * gnu-nat.c (gnu_stop): Add 'self' argument.
10220 * darwin-nat.c (darwin_stop): Add 'self' argument.
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10224 * target.h (struct target_ops) <to_thread_name>: Add argument.
10225 * target.c (target_thread_name): Add argument.
10226 (update_current_target): Update.
10227 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10231 * target.h (struct target_ops) <to_extra_thread_info>: Add
10233 (target_extra_thread_info): Add argument.
10234 * target.c (update_current_target): Update.
10235 * remote.c (remote_threads_extra_info): Add 'self' argument.
10236 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10238 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10239 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10240 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10242 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10244 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10246 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10251 * target.h (struct target_ops) <to_program_signals>: Add argument.
10252 * target.c (target_program_signals): Add argument.
10253 * remote.c (remote_program_signals): Add 'self' argument.
10255 2014-02-19 Tom Tromey <tromey@redhat.com>
10257 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10258 * target.c (target_pass_signals): Add argument.
10259 * remote.c (remote_pass_signals): Add 'self' argument.
10260 (remote_start_remote): Update.
10261 * procfs.c (procfs_pass_signals): Add 'self' argument.
10262 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10263 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10264 (linux_nat_create_inferior, linux_nat_attach): Update.
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10268 * windows-nat.c (windows_can_run): Add 'self' argument.
10269 * target.h (struct target_ops) <to_can_run>: Add argument.
10270 (target_can_run): Add argument.
10271 * target.c (debug_to_can_run): Add argument.
10272 (update_current_target): Update.
10273 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10274 * inf-child.c (inf_child_can_run): Add 'self' argument.
10275 * go32-nat.c (go32_can_run): Add 'self' argument.
10277 2014-02-19 Tom Tromey <tromey@redhat.com>
10279 * target.h (struct target_ops) <to_has_exited>: Add argument.
10280 (target_has_exited): Add argument.
10281 * target.c (debug_to_has_exited): Add argument.
10282 (update_current_target): Update.
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10286 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10288 (target_set_syscall_catchpoint): Add argument.
10289 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10291 * target.c (update_current_target): Update.
10293 2014-02-19 Tom Tromey <tromey@redhat.com>
10295 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10297 (target_remove_exec_catchpoint): Add argument.
10298 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10299 (update_current_target): Update.
10300 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10305 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10307 (target_insert_exec_catchpoint): Add argument.
10308 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10309 (update_current_target): Update.
10310 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10313 2014-02-19 Tom Tromey <tromey@redhat.com>
10315 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10317 (target_remove_vfork_catchpoint): Add argument.
10318 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10319 (update_current_target): Update.
10320 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10325 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10327 (target_insert_vfork_catchpoint): Add argument.
10328 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10329 (update_current_target): Update.
10330 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10335 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10337 (target_remove_fork_catchpoint): Add argument.
10338 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10339 (update_current_target): Update.
10340 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10345 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10347 (target_insert_fork_catchpoint): Add argument.
10348 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10349 (update_current_target): Update.
10350 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10355 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10357 (target_post_startup_inferior): Add argument.
10358 * target.c (debug_to_post_startup_inferior): Add argument.
10359 (update_current_target): Update.
10360 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10362 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10364 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10366 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10368 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10370 (super_post_startup_inferior): Likewise.
10371 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10373 (super_post_startup_inferior): Likewise.
10374 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10375 Add 'self' argument.
10376 (super_post_startup_inferior): Likewise.
10378 2014-02-19 Tom Tromey <tromey@redhat.com>
10380 * target.h (struct target_ops) <to_load>: Add argument.
10381 * target.c (target_load): Add argument.
10382 (debug_to_load): Add argument.
10383 (update_current_target): Update.
10384 * remote.c (remote_load): Add 'self' argument.
10385 * remote-sim.c (gdbsim_load): Add 'self' argument.
10386 * remote-mips.c (mips_load): Add 'self' argument.
10387 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10388 * monitor.c (monitor_load): Add 'self' argument.
10389 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10393 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10394 (target_terminal_info): Add argument.
10395 * target.c (debug_to_terminal_info): Add argument.
10396 (default_terminal_info): Likewise.
10397 * inflow.c (child_terminal_info): Add 'self' argument.
10398 * inferior.h (child_terminal_info): Add 'self' argument.
10399 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10401 2014-02-19 Tom Tromey <tromey@redhat.com>
10403 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10405 (target_terminal_save_ours): Add argument.
10406 * target.c (debug_to_terminal_save_ours): Add argument.
10407 (update_current_target): Update.
10408 * inflow.c (terminal_save_ours): Add 'self' argument.
10409 * inferior.h (terminal_save_ours): Add 'self' argument.
10411 2014-02-19 Tom Tromey <tromey@redhat.com>
10413 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10414 (target_terminal_ours): Add argument.
10415 * target.c (debug_to_terminal_ours): Add argument.
10416 (update_current_target): Update.
10417 * remote.c (remote_terminal_ours): Add 'self' argument.
10418 (remote_close): Update.
10419 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10420 * inflow.c (terminal_ours): Add 'self' argument.
10421 * inferior.h (terminal_ours): Add 'self' argument.
10422 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10424 2014-02-19 Pedro Alves <palves@redhat.com>
10425 Tom Tromey <tromey@redhat.com>
10427 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10429 (target_terminal_ours_for_output): Add argument.
10430 * target.c (debug_to_terminal_ours_for_output): Add argument.
10431 (update_current_target): Update.
10432 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10433 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10434 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * target.h (struct target_ops) <to_terminal_inferior>: Add
10440 * target.c (target_terminal_inferior): Add argument.
10441 (update_current_target): Update.
10442 * remote.c (remote_terminal_inferior): Add 'self' argument.
10443 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10444 * inflow.c (terminal_inferior): Add 'self' argument.
10445 * inferior.h (terminal_inferior): Add 'self' argument.
10446 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10447 (go32_terminal_inferior): Add 'self' argument.
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10451 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10452 (target_terminal_init): Add argument.
10453 * target.c (debug_to_terminal_init): Add argument.
10454 (update_current_target): Update.
10455 * inflow.c (terminal_init_inferior): Add 'self' argument.
10456 * inferior.h (terminal_init_inferior): Add 'self' argument.
10457 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10458 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10460 2014-02-19 Tom Tromey <tromey@redhat.com>
10462 * target.h (struct target_ops)
10463 <to_can_accel_watchpoint_condition>: Add argument.
10464 (target_can_accel_watchpoint_condition): Add argument.
10465 * target.c (debug_to_can_accel_watchpoint_condition): Add
10467 (update_current_target): Update.
10468 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10473 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10475 (target_region_ok_for_hw_watchpoint): Add argument.
10476 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10477 (default_region_ok_for_hw_watchpoint): Add argument.
10478 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10479 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10481 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10483 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10485 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10487 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10489 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10491 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10492 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10494 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10495 Add 'self' argument.
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10499 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10501 (target_insert_watchpoint): Add argument.
10502 * target.c (debug_to_insert_watchpoint): Add argument.
10503 (update_current_target): Update.
10504 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10505 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10506 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10507 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10508 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10509 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10511 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10512 (procfs_insert_hw_watchpoint): Add 'self' argument.
10513 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10515 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10517 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10519 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10520 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10522 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10525 2014-02-19 Tom Tromey <tromey@redhat.com>
10527 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10529 (target_remove_watchpoint): Add argument.
10530 * target.c (debug_to_remove_watchpoint): Add argument.
10531 (update_current_target): Update.
10532 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10533 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10534 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10535 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10536 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10537 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10539 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10540 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10542 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10544 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10546 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10547 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10549 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10552 2014-02-19 Tom Tromey <tromey@redhat.com>
10554 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10556 (target_remove_hw_breakpoint): Add argument.
10557 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10558 (update_current_target): Update.
10559 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10560 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10562 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10563 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10565 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10570 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10572 (target_insert_hw_breakpoint): Add argument.
10573 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10574 (update_current_target): Update.
10575 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10576 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10578 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10579 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10580 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10582 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10587 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10589 (target_can_use_hardware_watchpoint): Add argument.
10590 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10591 (update_current_target): Update.
10592 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10594 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10596 * remote.c (remote_check_watch_resources): Add 'self' argument.
10597 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10598 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10600 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10601 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10603 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10605 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10607 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10609 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10611 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10613 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10614 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10616 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10619 2014-02-19 Tom Tromey <tromey@redhat.com>
10621 * target.h (struct target_ops) <to_post_attach>: Add argument.
10622 (target_post_attach): Add argument.
10623 * target.c (debug_to_post_attach): Add argument.
10624 (update_current_target): Update.
10625 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10626 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10627 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10628 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10629 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10633 * windows-nat.c (windows_close): Add 'self' argument.
10634 * tracepoint.c (tfile_close): Add 'self' argument.
10635 * target.h (struct target_ops) <to_close>: Add argument.
10636 * target.c (target_close): Add argument.
10637 (update_current_target): Update.
10638 * remote.c (remote_close): Add 'self' argument.
10639 * remote-sim.c (gdbsim_close): Add 'self' argument.
10640 * remote-mips.c (mips_close): Add 'self' argument.
10641 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10642 * record-full.c (record_full_close): Add 'self' argument.
10643 * record-btrace.c (record_btrace_close): Add 'self' argument.
10644 * monitor.h (monitor_close): Add 'self' argument.
10645 * monitor.c (monitor_close): Add 'self' argument.
10646 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10647 * linux-nat.c (linux_nat_close): Add argument.
10648 * go32-nat.c (go32_close): Add 'self' argument.
10649 * exec.c (exec_close_1): Add 'self' argument.
10650 * ctf.c (ctf_close): Add 'self' argument.
10651 * corelow.c (core_close): Add 'self' argument.
10652 (core_close_cleanup): Update.
10653 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10654 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10658 * remote.c (remote_load): New function.
10659 (init_remote_ops): Use it.
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10663 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10665 * common/linux-btrace.h (linux_supports_btrace): Update.
10666 * remote.c (remote_supports_btrace): Add "self" argument.
10667 * target-delegates.c: Rebuild.
10668 * target.c (target_supports_btrace): Remove.
10669 * target.h (struct target_ops) <to_supports_btrace>: Add
10670 target_ops argument.
10671 (target_supports_btrace): New define.
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10675 * record-full.c (record_full_beneath_to_resume_ops)
10676 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10677 (record_full_beneath_to_wait)
10678 (record_full_beneath_to_store_registers_ops)
10679 (record_full_beneath_to_store_registers)
10680 (record_full_beneath_to_xfer_partial_ops)
10681 (record_full_beneath_to_xfer_partial)
10682 (record_full_beneath_to_insert_breakpoint_ops)
10683 (record_full_beneath_to_insert_breakpoint)
10684 (record_full_beneath_to_remove_breakpoint_ops)
10685 (record_full_beneath_to_remove_breakpoint)
10686 (record_full_beneath_to_stopped_by_watchpoint)
10687 (record_full_beneath_to_stopped_data_address)
10688 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10689 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10690 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10691 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10692 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10693 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10694 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10695 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10696 (record_full_resume, record_full_wait_1)
10697 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10698 (record_full_store_registers, record_full_xfer_partial)
10699 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10700 (record_full_async, record_full_core_xfer_partial): Use target
10702 * target-delegates.c: Rebuild.
10703 * target.c (current_xfer_partial): Remove.
10704 (update_current_target): Do not INHERIT or de_fault
10705 to_insert_breakpoint, to_remove_breakpoint,
10706 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10707 to_is_async_p, to_async. Do not set to_xfer_partial field.
10708 (default_xfer_partial): Simplify.
10709 (current_xfer_partial): Remove.
10710 (target_wait, target_resume): Simplify.
10711 (find_default_can_async_p, find_default_is_async_p): Update.
10712 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10713 to_xfer_partial, to_stopped_by_watchpoint,
10714 to_stopped_data_address.
10715 (target_store_registers): Simplify.
10716 (forward_target_remove_breakpoint)
10717 (forward_target_insert_breakpoint): Remove.
10718 (target_remove_breakpoint, target_insert_breakpoint)
10719 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10720 * target.h (struct target_ops) <to_resume, to_wait,
10721 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10722 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10723 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10725 (forward_target_remove_breakpoint)
10726 (forward_target_insert_breakpoint): Remove.
10727 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10729 (record_btrace_insert_breakpoint): Delegate directly.
10731 2014-02-19 Tom Tromey <tromey@redhat.com>
10734 * target-delegates.c: New file.
10735 * target.c: Include target-delegates.c.
10736 (init_dummy_target): Call install_dummy_methods.
10737 (complete_target_initialization): Call install_delegators.
10738 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10739 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10740 * make-target-delegates: New file.
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10744 * record.c (find_record_target): Use find_target_at.
10745 * target.c (find_target_at): New function.
10746 * target.h (find_target_at): Declare.
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10750 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10751 Add 'ops' argument.
10752 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10754 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10755 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10757 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10759 * linux-nat.c (save_sigtrap): Update.
10760 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10761 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10762 (linux_nat_close): Update.
10763 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10765 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10767 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10768 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10769 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10770 (tmp_to_async): Add 'ops' argument.
10771 (record_full_stopped_by_watchpoint, record_full_async)
10772 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10774 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10775 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10776 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10777 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10778 (remote_is_async_p, remote_async): Add 'ops' argument.
10779 (remote_stopped_data_address): Update.
10780 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10781 * target.c (update_current_target)
10782 (find_default_can_async_p, find_default_is_async_p): Update.
10783 (init_dummy_target): Update.
10784 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10785 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10786 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10787 (target_can_async_p, target_is_async_p, target_async)
10788 (target_stopped_by_watchpoint): Update.
10790 2014-02-19 Yao Qi <yao@codesourcery.com>
10793 * gdbarch.sh: Remove startup_gdbarch.
10794 * gdbarch.c: Regenerated.
10795 * gdbarch.h: Likewise.
10797 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10799 * rl78-tdep.c (rl78_g10_register_name): New function.
10800 (rl78_return_value): Add g10 support.
10801 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10804 2014-02-17 Doug Evans <xdje42@gmail.com>
10806 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10807 (SUBDIR_GUILE_SRCS): Ditto.
10808 (scm-gsmob.o): Ditto.
10810 2014-02-17 Yao Qi <yao@codesourcery.com>
10812 * gnu-nat.c (ILL_RPC): Declare defined function.
10814 2014-02-17 Yao Qi <yao@codesourcery.com>
10816 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10817 mach_msg_type_number_t.
10818 (gnu_write_inferior): Likewise.
10820 2014-02-17 Yao Qi <yao@codesourcery.com>
10822 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10824 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10825 (inf_validate_procs, inf_signal): Likewise.
10826 (S_exception_raise_request): Likewise.
10827 (do_mach_notify_dead_name): Likewise.
10828 (steal_exc_port): Likewise.
10829 (gnu_read_inferior): Change 'copy_count''s type to
10830 mach_msg_type_number_t.
10831 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10834 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10836 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10837 flag. Adjust all users; in particular...
10838 (gnu_wait): ..., don't decrement its value in here...
10839 (gnu_create_inferior): ..., and instead set the flag in here,
10840 around the startup_inferior call, and call that one with
10841 START_INFERIOR_TRAPS_EXPECTED.
10843 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10844 (ILL_RPC): ... new macro.
10845 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10846 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10847 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10848 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10849 functions with ILL_RPC macro.
10850 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10851 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10852 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10853 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10854 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10855 (S_proc_getlogin_reply, S_proc_getsid_reply)
10856 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10857 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10858 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10859 (S_proc_getnports_reply, S_proc_is_important_reply)
10860 (S_proc_get_code_reply): New stub functions, generated with
10863 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10864 collected the type check structures.
10866 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10868 2014-02-14 Doug Evans <dje@google.com>
10870 * target.c (target_write_partial): Fix result type.
10872 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10874 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10875 the proper offsets to access fpregset_t.
10877 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10879 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10880 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10881 * h8300-tdep.c (setmachinelist): Remove global.
10882 * hppa-tdep.c (hppa_sigtramp): Remove global.
10883 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10884 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10885 * ravenscar-thread.c (update_target_observer): Remove global.
10886 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10888 2014-02-12 Tom Tromey <tromey@redhat.com>
10890 * common/rsp-low.c: Update comments.
10891 * common/rsp-low.h: Update comments.
10893 2014-02-12 Tom Tromey <tromey@redhat.com>
10895 * common/rsp-low.c (convert_ascii_to_int): Remove.
10896 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10898 2014-02-12 Tom Tromey <tromey@redhat.com>
10900 * common/rsp-low.h (unhexify): Don't declare.
10901 * common/rsp-low.c (unhexify): Remove.
10903 2014-02-12 Tom Tromey <tromey@redhat.com>
10905 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10906 * common/rsp-low.c (convert_int_to_ascii): Remove.
10908 2014-02-12 Tom Tromey <tromey@redhat.com>
10910 * common/rsp-low.h (hexify): Don't declare.
10911 * common/rsp-low.c (hexify): Remove.
10913 2014-02-12 Tom Tromey <tromey@redhat.com>
10915 * common/rsp-low.c (hexify): Never take strlen of argument.
10917 2014-02-12 Tom Tromey <tromey@redhat.com>
10919 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10920 * remote.c (extended_remote_run, remote_rcmd)
10921 (remote_download_trace_state_variable, remote_save_trace_data)
10922 (remote_set_trace_notes): Update.
10923 * tracepoint.c (encode_source_string, tfile_write_status)
10924 (tfile_write_uploaded_tsv): Update.
10926 2014-02-12 Tom Tromey <tromey@redhat.com>
10928 * tracepoint.c: Include rsp-low.h.
10929 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10930 * remote.c: Include rsp-low.h.
10931 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10932 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10933 (remote_unescape_input): Move to common/rsp-low.c.
10934 * common/rsp-low.h: New file.
10935 * common/rsp-low.c: New file.
10936 * Makefile.in (SFILES): Add common/rsp-low.c.
10937 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10938 (COMMON_OBS): Add rsp-low.o.
10939 (rsp-low.o): New target.
10941 2014-02-12 Tom Tromey <tromey@redhat.com>
10943 * utils.h: Include print-utils.h.
10944 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10945 (int_string, core_addr_to_string, core_addr_to_string_nz)
10946 (hex_string, hex_string_custom): Don't declare.
10947 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10948 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10949 (hex_string_custom, int_string, core_addr_to_string)
10950 (core_addr_to_string_nz, host_address_to_string): Move to
10951 common/print-utils.c.
10952 * common/print-utils.h: New file.
10953 * common/print-utils.c: New file
10954 * Makefile.in (SFILES): Add common/print-utils.c.
10955 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10956 (COMMON_OBS): Add print-utils.o.
10957 (print-utils.o): New target.
10959 2014-02-12 Tom Tromey <tromey@redhat.com>
10961 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10963 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10965 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10967 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10969 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10970 if a PT_IO ptrace request returns sucessfully but indicates that 0
10971 bytes were transferred.
10973 2014-02-12 Pedro Alves <palves@redhat.com>
10974 Kevin Buettner <kevinb@redhat.com>
10976 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10977 TYPE_INSTANCE_FLAG_CODE_SPACE.
10979 2014-02-12 Pedro Alves <palves@redhat.com>
10981 * h8300-tdep.c (pseudo_from_raw_register)
10982 (raw_from_pseudo_register): New functions.
10983 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10986 2014-02-12 Pedro Alves <palves@redhat.com>
10988 * h8300-tdep.c (h8300_register_sim_regno): New function.
10989 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10990 gdbarch_register_sim_regno hook.
10992 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10994 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10996 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10998 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11000 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11002 * obsd-tdep.h (obsd_init_abi): New prototype.
11003 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11004 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11005 (obsd_init_abi): New functions.
11006 * i386obsd-tdep.c: Include "obsd-tdep.h".
11007 (i386obsd_init_abi): Call obsd_init_abi.
11008 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11009 (amd64obsd_init_abi): Call obsd_init_abi.
11010 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11011 obsd-tdep.c to gdb_target_obs.
11013 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11015 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11016 double float arguments to 16-byte in the argument slots.
11018 2014-02-11 Doug Evans <xdje42@gmail.com>
11020 * configure.ac: Don't crash if pkg-config is not found and guile
11021 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11023 * configure: Regenerate.
11025 2014-02-11 Yao Qi <yao@codesourcery.com>
11027 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11028 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11029 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11030 * gnu-nat.c (gnu_xfer_memory): Likewise.
11031 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11032 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11033 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11034 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11036 2014-02-11 Yao Qi <yao@codesourcery.com>
11038 * target.h (enum target_xfer_error): Rename to ...
11039 (enum target_xfer_status): ... it. New. All users updated.
11040 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11042 (TARGET_XFER_STATUS_ERROR_P): New macro.
11043 (target_xfer_error_to_string): Remove declaration.
11044 (target_xfer_status_to_string): Declare.
11045 (target_xfer_partial_ftype): Adjust it.
11046 (struct target_ops) <to_xfer_partial>: Return
11047 target_xfer_status. Add argument xfered_len. Update
11049 * target.c (target_xfer_error_to_string): Rename to ...
11050 (target_xfer_status_to_string): ... it. New. All callers
11052 (target_read_live_memory): Likewise. Call target_xfer_partial
11053 instead of target_read.
11054 (memory_xfer_live_readonly_partial): Return
11055 target_xfer_status. Add argument xfered_len.
11056 (raw_memory_xfer_partial): Likewise.
11057 (memory_xfer_partial_1): Likewise.
11058 (memory_xfer_partial): Likewise.
11059 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11060 properly. Update debug message.
11061 (default_xfer_partial, current_xfer_partial): Likewise.
11062 (target_write_partial): Likewise.
11063 (target_read_partial): Likewise. All callers updated.
11064 (read_whatever_is_readable): Likewise.
11065 (target_write_with_progress): Likewise.
11066 (target_read_alloc_1): Likewise.
11068 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11069 * auxv.c (procfs_xfer_auxv): Likewise.
11070 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11071 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11072 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11073 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11074 * corefile.c (read_memory): Adjust.
11075 * corelow.c (core_xfer_partial): Likewise.
11076 * ctf.c (ctf_xfer_partial): Likewise.
11077 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11079 (darwin_xfer_partial): Likewise.
11080 * exec.c (section_table_xfer_memory_partial): Likewise. All
11082 (exec_xfer_partial): Likewise.
11083 * exec.h (section_table_xfer_memory_partial): Update
11085 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11087 (gnu_xfer_partial): Likewise.
11088 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11089 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11090 (ia64_hpux_xfer_solib_got): Likewise.
11091 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11092 type of 'partial_len' to ULONGEST.
11093 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11094 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11095 (linux_nat_xfer_partial): Likewise.
11096 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11097 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11098 * monitor.c (monitor_xfer_memory): Likewise.
11099 (monitor_xfer_partial): Likewise.
11100 * procfs.c (procfs_xfer_partial): Likewise.
11101 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11102 * record-full.c (record_full_xfer_partial): Likewise.
11103 (record_full_core_xfer_partial): Likewise.
11104 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11105 (gdbsim_xfer_partial): Likewise.
11106 * remote.c (remote_write_bytes_aux): Likewise. All callers
11108 (remote_write_bytes, remote_read_bytes): Likewise. All
11110 (remote_flash_erase): Likewise. All callers updated.
11111 (remote_write_qxfer): Likewise. All callers updated.
11112 (remote_read_qxfer): Likewise. All callers updated.
11113 (remote_xfer_partial): Likewise.
11114 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11115 (rs6000_xfer_shared_libraries): Likewise.
11116 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11117 (sol_thread_xfer_partial): Likewise.
11118 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11119 (sparc_xfer_partial): Likewise.
11120 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11122 (spu_xfer_partial): Likewise.
11123 * spu-multiarch.c (spu_xfer_partial): Likewise.
11124 * tracepoint.c (tfile_xfer_partial): Likewise.
11125 * windows-nat.c (windows_xfer_memory): Likewise.
11126 (windows_xfer_shared_libraries): Likewise.
11127 (windows_xfer_partial): Likewise.
11128 * valprint.c: Replace 'target_xfer_error' with
11129 'target_xfer_status' in comments.
11131 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11133 Checked in by Joel Brobecker <brobecker@adacore.com>.
11134 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11136 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11138 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11139 function parameters.
11141 2014-02-10 Will Newton <will.newton@linaro.org>
11143 * elfread.c (elf_rel_plt_read): Look for a .got section if
11144 looking up .got.plt fails.
11145 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11146 on address passed to elf_gnu_ifunc_record_cache.
11147 (elf_gnu_ifunc_resolve_addr): Likewise.
11148 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11150 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11152 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11153 (X_RETTURN): New macro.
11154 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11156 * sparc64-tdep.c (sparc64_init_abi): Hook
11157 sparc_in_function_epilogue_p.
11159 2014-02-10 Gary Benson <gbenson@redhat.com>
11161 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11162 Rename name_matcher to symbol_matcher.
11164 2014-02-10 Gary Benson <gbenson@redhat.com>
11166 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11167 Use expand_symtabs_file_matcher_ftype and
11168 expand_symtabs_symbol_matcher_ftype.
11170 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11172 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11173 (struct ada_symbol_cache): New.
11174 (ada_free_symbol_cache): Forward declare.
11175 (struct ada_pspace_data): New.
11176 (ada_pspace_data_handle): New static global.
11177 (get_ada_pspace_data, ada_pspace_data_cleanup)
11178 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11179 (cache_space, cache): Delete, now folded inside struct
11181 (ada_get_symbol_cache): New function.
11182 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11184 (_initialize_ada_language): Remove initialization of cache_space.
11185 Move call to observer_attach_inferior_exit up, grouping it
11186 with the other observer registrations inside this function.
11187 Rename command to be more general. Add call to
11188 register_program_space_data_with_cleanup.
11190 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11192 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11193 ada_new_objfile_observer.
11194 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11195 (_initialize_tasks): Update uses of ada_new_objfile_observer
11196 and ada_tasks_normal_stop_observer.
11198 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11200 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11201 returned by the 'Length attribute to integer.
11203 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11205 * ada-lang.c (_initialize_ada_language): Initialize
11206 cache_space obstack.
11208 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11210 * ada-lang.c (HASH_SIZE): New macro.
11211 (struct cache_entry): New type.
11212 (cache_space, cache): New static globals.
11213 (ada_clear_symbol_cache, find_entry): New functions.
11214 (lookup_cached_symbol, cache_symbol): Implement.
11215 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11216 (_initialize_ada_language): Attach ada_new_objfile_observer
11217 and ada_free_objfile_observer.
11219 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11221 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11222 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11223 struct block * parameter.
11224 (ada_lookup_symbol_list_worker): Constify local variable "block".
11225 Remove cast which is no longer necessary.
11227 2014-02-10 Doug Evans <xdje42@gmail.com>
11229 Add Guile as an extension language.
11230 * NEWS: Mention Guile scripting.
11231 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11232 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11233 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11234 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11235 (CLIBS): Add GUILE_LIBS.
11236 (install-guile): New rule.
11237 (guile.o): New rule.
11238 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11239 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11240 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11241 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11242 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11243 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11244 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11245 * configure.ac: New option --with-guile.
11246 * configure: Regenerate.
11247 * config.in: Regenerate.
11248 * auto-load.c: Remove #include "python/python.h". Add #include
11249 "gdb/section-scripts.h".
11250 (source_section_scripts): Handle Guile scripts.
11251 (_initialize_auto_load): Add name of Guile objfile script to
11252 scripts-directory help text.
11253 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11254 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11255 (struct breakpoint): New member scm_bp_object.
11256 * defs.h (enum command_control_type): New value guile_control.
11257 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11259 (show_user): Update comment.
11260 (_initialize_cli_cmds): Update help text for "show user". Update help
11261 text for max-user-call-depth.
11262 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11264 (multi_line_command_p): Add guile_control.
11265 (print_command_lines): Handle guile_control.
11266 (execute_control_command, recurse_read_control_structure): Ditto.
11267 (process_next_line): Recognize "guile" commands.
11268 * disasm.c (gdb_disassemble_info): Make non-static.
11269 * disasm.h: #include "dis-asm.h".
11270 (struct gdbarch): Add forward decl.
11271 (gdb_disassemble_info): Declare.
11272 * extension.c: #include "guile/guile.h".
11273 (extension_languages): Add guile.
11274 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11275 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11276 * gdbtypes.c (get_unsigned_type_max): New function.
11277 (get_signed_type_minmax): New function.
11278 * gdbtypes.h (get_unsigned_type_max): Declare.
11279 (get_signed_type_minmax): Declare.
11280 * guile/README: New file.
11281 * guile/guile-internal.h: New file.
11282 * guile/guile.c: New file.
11283 * guile/guile.h: New file.
11284 * guile/scm-arch.c: New file.
11285 * guile/scm-auto-load.c: New file.
11286 * guile/scm-block.c: New file.
11287 * guile/scm-breakpoint.c: New file.
11288 * guile/scm-disasm.c: New file.
11289 * guile/scm-exception.c: New file.
11290 * guile/scm-frame.c: New file.
11291 * guile/scm-gsmob.c: New file.
11292 * guile/scm-iterator.c: New file.
11293 * guile/scm-lazy-string.c: New file.
11294 * guile/scm-math.c: New file.
11295 * guile/scm-objfile.c: New file.
11296 * guile/scm-ports.c: New file.
11297 * guile/scm-pretty-print.c: New file.
11298 * guile/scm-safe-call.c: New file.
11299 * guile/scm-string.c: New file.
11300 * guile/scm-symbol.c: New file.
11301 * guile/scm-symtab.c: New file.
11302 * guile/scm-type.c: New file.
11303 * guile/scm-utils.c: New file.
11304 * guile/scm-value.c: New file.
11305 * guile/lib/gdb.scm: New file.
11306 * guile/lib/gdb/boot.scm: New file.
11307 * guile/lib/gdb/experimental.scm: New file.
11308 * guile/lib/gdb/init.scm: New file.
11309 * guile/lib/gdb/iterator.scm: New file.
11310 * guile/lib/gdb/printing.scm: New file.
11311 * guile/lib/gdb/types.scm: New file.
11312 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11313 (VPATH): Add $(GUILE_SRCDIR).
11314 (GUILE_DIR): New variable.
11315 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11316 (all): Add stamp-guile dependency.
11317 (stamp-guile): New rule.
11318 (clean-guile, install-guile, uninstall-guile): New rules.
11319 (install-only): Add install-guile dependency.
11320 (uninstall): Add uninstall-guile dependency.
11321 (clean): Add clean-guile dependency.
11323 2014-02-09 Doug Evans <xdje42@gmail.com>
11325 Revert this patch (which I approved, mea culpa).
11327 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11329 * Makefile.in (all-lib): Remove.
11330 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11332 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11334 Fix Python stack corruption.
11335 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11338 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11340 * Makefile.in (all-lib): Remove.
11341 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11343 2014-02-07 Doug Evans <dje@google.com>
11345 * extension-priv.h (extension_language_script_ops): Add comment.
11346 (extension_language_ops): Add comment.
11347 (active_ext_lang_state): Fix typo in comment.
11349 2014-02-07 Pedro Alves <palves@redhat.com>
11351 PR breakpoints/16292
11352 * infrun.c (handle_signal_stop) <signal arrives while stepping
11353 over a breakpoint>: Switch back to the stepping thread.
11355 2014-02-07 Yao Qi <yao@codesourcery.com>
11357 * target.c (target_xfer_partial): Return zero if LEN is zero.
11359 2014-02-07 Yao Qi <yao@codesourcery.com>
11361 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11362 (ld_so_xfer_auxv): Likewise.
11363 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11364 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11365 * corelow.c (core_xfer_partial): Likewise.
11366 * ctf.c (ctf_xfer_partial): Likewise.
11367 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11368 (darwin_xfer_partial): Likewise.
11369 * exec.c (exec_xfer_partial): Likewise.
11370 * gnu-nat.c (gnu_xfer_partial): Likewise.
11371 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11372 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11373 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11374 * linux-nat.c (linux_xfer_siginfo): Likewise.
11375 (linux_proc_xfer_spu): Likewise.
11376 * procfs.c (procfs_xfer_partial): Likewise.
11377 * record-full.c (record_full_xfer_partial): Likewise.
11378 (record_full_core_xfer_partial): Likewise.
11379 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11380 * remote.c (remote_write_qxfer): Likewise.
11381 (remote_write_qxfer, remote_read_qxfer): Likewise.
11382 (remote_xfer_partial): Likewise.
11383 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11384 (rs6000_xfer_shared_libraries): Likewise.
11385 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11386 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11387 (spu_xfer_partial): Likewise.
11388 * target.c (memory_xfer_partial_1): Likewise.
11389 * tracepoint.c (tfile_xfer_partial): Likewise.
11390 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11391 (windows_xfer_partial): Likewise.
11393 2014-02-07 Yao Qi <yao@codesourcery.com>
11395 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11397 (core_xfer_shared_libraries_aix): Likewise.
11398 * gdbarch.c, gdbarch.h: Regenerated.
11399 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11400 ULONGEST. Change 'len_avail' type to ULONGEST.
11401 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11402 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11404 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11406 2014-02-07 Yao Qi <yao@codesourcery.com>
11408 * corefile.c (memory_error): Get 'exception' from ERR and pass
11409 'exception' to throw_error.
11411 2014-02-06 Doug Evans <xdje42@gmail.com>
11413 * configure.ac (libpython checking): Remove all but python.o from
11414 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11415 * configure: Regenerate.
11417 * Makefile.in (SFILES): Add extension.c.
11418 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11419 (COMMON_OBS): Add extension.o.
11420 * extension.h: New file.
11421 * extension-priv.h: New file.
11422 * extension.c: New file.
11424 * python/python-internal.h: #include "extension.h".
11425 (gdbpy_auto_load_enabled): Declare.
11426 (gdbpy_apply_val_pretty_printer): Declare.
11427 (gdbpy_apply_frame_filter): Declare.
11428 (gdbpy_preserve_values): Declare.
11429 (gdbpy_breakpoint_cond_says_stop): Declare.
11430 (gdbpy_breakpoint_has_cond): Declare.
11431 (void source_python_script_for_objfile): Delete.
11432 * python/python.c: #include "extension-priv.h".
11433 Delete inclusion of "observer.h".
11434 (extension_language_python): Moved here and renamed from
11435 script_language_python in py-auto-load.c.
11436 Redefined to be of type extension_language_defn.
11437 (python_extension_script_ops): New global.
11438 (python_extension_ops): New global.
11439 (struct python_env): New member previous_active.
11440 (restore_python_env): Call restore_active_ext_lang.
11441 (ensure_python_env): Call set_active_ext_lang.
11442 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11444 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11446 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11448 (gdbpy_eval_from_control_command): Renamed from
11449 eval_python_from_control_command, made static. New arg extlang.
11450 (gdbpy_source_script) Renamed from source_python_script, made static.
11452 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11453 result to int. New arg extlang.
11454 (gdbpy_source_objfile_script): Renamed from
11455 source_python_script_for_objfile, made static. New arg extlang.
11456 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11457 static. New args extlang, extlang_printers. Change result type to
11459 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11460 static. New arg extlang. Rename arg printers to extlang_printers
11461 and change type to ext_lang_type_printers *.
11462 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11463 static. Replace argument arg with extlang, extlang_printers.
11464 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11465 (!HAVE_PYTHON, source_python_script): Delete.
11466 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11467 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11468 (!HAVE_PYTHON, start_type_printers): Delete.
11469 (!HAVE_PYTHON, apply_type_printers): Delete.
11470 (!HAVE_PYTHON, free_type_printers): Delete.
11471 (_initialize_python): Delete call to observer_attach_before_prompt.
11472 (finalize_python): Set/restore active extension language.
11473 (gdbpy_finish_initialization) Renamed from
11474 finish_python_initialization, made static. New arg extlang.
11475 (gdbpy_initialized): New function.
11476 * python/python.h: #include "extension.h". Delete #include
11477 "value.h", "mi/mi-cmds.h".
11478 (extension_language_python): Declare.
11479 (GDBPY_AUTO_FILE_NAME): Delete.
11480 (enum py_bt_status): Moved to extension.h and renamed to
11481 ext_lang_bt_status.
11482 (enum frame_filter_flags): Moved to extension.h.
11483 (enum py_frame_args): Moved to extension.h and renamed to
11484 ext_lang_frame_args.
11485 (finish_python_initialization): Delete.
11486 (eval_python_from_control_command): Delete.
11487 (source_python_script): Delete.
11488 (apply_val_pretty_printer): Delete.
11489 (apply_frame_filter): Delete.
11490 (preserve_python_values): Delete.
11491 (gdbpy_script_language_defn): Delete.
11492 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11493 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11495 * auto-load.c: #include "extension.h".
11496 (GDB_AUTO_FILE_NAME): Delete.
11497 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11498 (script_language_gdb): Delete, moved to extension.c and renamed to
11499 extension_language_gdb.
11500 (source_gdb_script_for_objfile): Delete.
11501 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11502 (loaded_script): Change type of language member to
11503 struct extension_language_defn *.
11504 (init_loaded_scripts_info): Initialize
11505 unsupported_script_warning_printed.
11506 (maybe_add_script): Make static. Change type of language arg to
11507 struct extension_language_defn *.
11508 (clear_section_scripts): Reset unsupported_script_warning_printed.
11509 (auto_load_objfile_script_1): Rewrite to use extension language API.
11510 (auto_load_objfile_script): Make public. Remove support-compiled-in
11511 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11512 (source_section_scripts): Rewrite to use extension language API.
11513 (load_auto_scripts_for_objfile): Rewrite to use
11514 auto_load_scripts_for_objfile.
11515 (collect_matching_scripts_data): Change type of language member to
11516 struct extension_language_defn *.
11517 (auto_load_info_scripts): Change type of language arg to
11518 struct extension_language_defn *.
11519 (unsupported_script_warning_print): New function.
11520 (script_not_found_warning_print): Make static.
11521 (_initialize_auto_load): Rewrite construction of scripts-directory
11523 * auto-load.h (struct objfile): Add forward decl.
11524 (struct script_language): Delete.
11525 (struct auto_load_pspace_info): Add forward decl.
11526 (struct extension_language_defn): Add forward decl.
11527 (maybe_add_script): Delete.
11528 (auto_load_objfile_script): Declare.
11529 (script_not_found_warning_print): Delete.
11530 (auto_load_info_scripts): Update prototype.
11531 (auto_load_gdb_scripts_enabled): Declare.
11532 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11533 auto_load_python_scripts_enabled and made public.
11534 (script_language_python): Delete, moved to python.c.
11535 (gdbpy_script_language_defn): Delete.
11536 (info_auto_load_python_scripts): Update to use
11537 extension_language_python.
11539 * breakpoint.c (condition_command): Replace call to
11540 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11541 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11542 with call to breakpoint_ext_lang_cond_says_stop.
11543 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11544 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11545 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11546 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11548 (local_setattro): Print name of extension language with existing
11551 * valprint.c (val_print, value_print): Update to call
11552 apply_ext_lang_val_pretty_printer.
11553 * cp-valprint.c (cp_print_value): Update call to
11554 apply_ext_lang_val_pretty_printer.
11555 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11556 (gdbpy_apply_val_pretty_printer): Renamed from
11557 apply_val_pretty_printer. New arg extlang.
11558 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11560 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11561 extension language API.
11562 * cli/cli-script.c (execute_control_command): Update to call
11563 eval_ext_lang_from_control_command.
11565 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11566 enum ext_lang_bt_status values. Update call to
11567 apply_ext_lang_frame_filter.
11568 (mi_cmd_stack_list_locals): Ditto.
11569 (mi_cmd_stack_list_args): Ditto.
11570 (mi_cmd_stack_list_variables): Ditto.
11571 * mi/mi-main.c: Delete #include "python/python-internal.h".
11572 Add #include "extension.h".
11573 (mi_cmd_list_features): Replace reference to python internal variable
11574 gdb_python_initialized with call to ext_lang_initialized_p.
11576 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11577 Update to use enum ext_lang_frame_args. Update to call
11578 apply_ext_lang_frame_filter.
11579 * python/py-framefilter.c (extract_sym): Update to use enum
11580 ext_lang_bt_status.
11581 (extract_value, py_print_type, py_print_value): Ditto.
11582 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11583 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11584 (py_print_frame): Ditto.
11585 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11586 New arg extlang. Update to use enum ext_lang_bt_status.
11588 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11589 finish_python_initialization. Replace with call to
11590 finish_ext_lang_initialization.
11592 * typeprint.c (do_free_global_table): Update to call
11593 free_ext_lang_type_printers.
11594 (create_global_typedef_table): Update to call
11595 start_ext_lang_type_printers.
11596 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11597 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11598 (type_print_options): Change type of global_printers from "void *"
11599 to "struct ext_lang_type_printers *".
11601 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11602 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11603 (gdbpy_preserve_values): Renamed from preserve_python_values.
11605 (!HAVE_PYTHON, preserve_python_values): Delete.
11607 * utils.c (quit_flag): Delete, moved to extension.c.
11608 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11611 * eval.c: Delete #include "python/python.h".
11612 * main.c: Delete #include "python/python.h".
11614 * defs.h: Update comment.
11616 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11620 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11622 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11625 2014-02-05 Yao Qi <yao@codesourcery.com>
11627 * remote.c (remote_pass_signals): Remove local 'buf' and use
11629 (remote_program_signals): Likewise.
11631 2014-02-05 Yao Qi <yao@codesourcery.com>
11633 * ctf.c: Include "inferior.h" and "gdbthread.h".
11634 (CTF_PID): A new macro.
11635 (ctf_open): Call inferior_appeared and add_thread_silent.
11636 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11637 (ctf_thread_alive): New function.
11638 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11640 2014-02-05 Yao Qi <yao@codesourcery.com>
11644 2013-05-24 Yao Qi <yao@codesourcery.com>
11646 * tracepoint.c (TFILE_PID): Remove.
11647 (tfile_open): Don't add thread and inferior.
11648 (tfile_close): Don't set 'inferior_ptid'. Don't call
11649 exit_inferior_silent.
11650 (tfile_thread_alive): Remove.
11651 (init_tfile_ops): Don't set field 'to_thread_alive' of
11654 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11656 * remote.c (remote_start_remote): Call remote_check_symbols even
11657 if only symbol-file (not file) has been given.
11659 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11661 * gdbarch.sh (skip_entrypoint): New callback.
11662 * gdbarch.c, gdbarch.h: Regenerate.
11663 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11664 * infrun.c (fill_in_stop_func): Likewise.
11665 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11666 (ppc_elfv2_elf_make_msymbol_special): New function.
11667 (ppc_elfv2_skip_entrypoint): Likewise.
11668 (ppc_linux_init_abi): Install them for ELFv2.
11670 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11672 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11673 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11674 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11675 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11676 structures returned in GPRs.
11678 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11680 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11681 offset to the stack parameter list for the ELFv2 ABI.
11683 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11685 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11686 set_gdbarch_convert_from_func_ptr_addr and
11687 set_gdbarch_elf_make_msymbol_special for ELFv1.
11688 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11689 function descriptors on ELFv1.
11690 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11691 set up r12 at function entry.
11693 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11695 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11696 (struct gdbarch_tdep): New member elf_abi.
11698 * rs6000-tdep.c: Include "elf/ppc64.h".
11699 (rs6000_gdbarch_init): Detect ELF ABI version.
11701 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11703 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11704 within a register pair holding a DFP 128-bit value on little-endian.
11705 (ppc64_sysv_abi_return_value_base): Likewise.
11706 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11707 (dfp_pseudo_register_write): Likewise.
11709 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11711 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11712 offset on little-endian when passing _Decimal32.
11713 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11715 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11717 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11718 of the overlapped FP register within the VSX register on little-
11720 (efpr_pseudo_register_write): Likewise.
11722 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11724 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11725 offset on little-endian when passing small structures.
11727 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11729 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11730 (struct ppc64_sysv_argpos): New data structure.
11731 (ppc64_sysv_abi_push_float): Remove.
11732 (ppc64_sysv_abi_push_val): New function.
11733 (ppc64_sysv_abi_push_integer): Likewise.
11734 (ppc64_sysv_abi_push_freg): Likewise.
11735 (ppc64_sysv_abi_push_vreg): Likewise.
11736 (ppc64_sysv_abi_push_param): Likewise.
11737 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11738 (ppc64_sysv_abi_return_value_base): New function.
11739 (ppc64_sysv_abi_return_value): Refactor to use it.
11741 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11743 * NEWS: Document new target powerpc64le-*-linux*.
11745 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11747 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11748 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11750 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11751 register set used in ELF core dumps. Add floating-point register set.
11753 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11755 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11756 dwarf2_to_gdb[] table using symbolic constants. Adjust
11757 penultimate entry from number representing the PC register
11758 to symbolic constant representing the MDR register. Add
11759 constant for the PC register to the end of the table.
11761 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11763 * bsd-kvm.c: Include <sys/param.h>
11765 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11767 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11769 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11771 * ada-lang.h (clear_ada_sym_cache): Delete.
11773 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11775 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11777 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11779 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11780 the sigreturn register save area only if the syscall is
11783 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11785 * valops.c (value_slice): Minor reformatting.
11787 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11789 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11791 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11793 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11794 New static globals.
11795 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11796 (ada_ignore_descriptive_types_p): New static global.
11797 (find_parallel_type_by_descriptive_type): Return immediately
11798 if ada_ignore_descriptive_types_p is set.
11799 (_initialize_ada_language): Register new commands "maintenance
11800 set ada", "maintenance show ada", "maintenance set ada
11801 ignore-descriptive-types" and "maintenance show ada
11802 ignore-descriptive-types".
11803 * NEWS: Add entry for new "maint ada set/show
11804 ignore-descriptive-types" commands.
11806 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11808 * record-btrace.c (record_btrace_close): Call btrace_teardown
11811 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11813 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11816 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11818 * ada-typeprint (type_is_full_subrange_of_target_type):
11820 (print_range): Add parameter bounds_prefered_p. If not set,
11821 try printing range types using the name of their base type.
11822 (print_range_type): Add parameter bounds_prefered_p.
11823 Use it in call to print_range.
11824 (print_array_type, ada_print_type): Update calls to print_range
11825 and print_range_type.
11827 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11829 * ada-typeprint.c (print_array_type, print_choices, print_range)
11830 (print_range_bound, print_dynamic_range_bound, print_range_type):
11831 Remove declaration.
11833 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11835 * ada-typeprint.c (print_range): Add missing empty line
11836 after local declaration.
11838 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11840 * ada-valprint.c (print_optional_low_bound): Get index_type's
11841 target type for as long as it is a TYPE_CODE_RANGE.
11843 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11845 * procfs.c (procfs_make_note_section): Remove assertion and
11846 associated comment.
11848 2014-01-24 Yao Qi <yao@codesourcery.com>
11850 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11851 * corelow.c (get_core_siginfo): Likewise.
11853 2014-01-24 Yao Qi <yao@codesourcery.com>
11855 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11856 ULONGEST. Don't check 'len' is negative.
11857 (remote_write_bytes): Change type of 'len' to ULONGEST.
11859 2014-01-23 Tom Tromey <tromey@redhat.com>
11862 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11863 Handle exception from frame.block.
11864 (FrameVars.fetch_frame_locals): Likewise.
11866 2014-01-23 Tom Tromey <tromey@redhat.com>
11869 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11870 on a NULL pointer. Move "goto error" to correct place.
11872 2014-01-23 Tom Tromey <tromey@redhat.com>
11875 * python/py-framefilter.c (apply_frame_filter): Call
11876 ensure_python_env after computing gdbarch.
11878 2014-01-23 Yao Qi <yao@codesourcery.com>
11880 * target.c (raw_memory_xfer_partial): Change argument type
11881 from void * to gdb_byte *.
11882 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11884 2014-01-22 Doug Evans <dje@google.com>
11886 New gdbserver option --debug-format=timestamp.
11887 * NEWS: Mention it.
11889 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11891 * syscalls/s390x-linux.xml: New file.
11892 * syscalls/s390-linux.xml: New file.
11893 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11894 (XML_SYSCALL_FILENAME_S390X): Likewise.
11895 (op_svc): New enum value for SVC opcode.
11896 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11897 (s390_linux_get_syscall_number): New function.
11898 (s390_gdbarch_init): Register '*get_syscall_number' and the
11899 syscall xml file name.
11900 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11901 "s390-linux.xml" and "s390x-linux.xml".
11902 * NEWS: Announce new feature.
11904 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11906 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11908 2014-01-22 Pedro Alves <palves@redhat.com>
11910 * xtensa-config.c: Include defs.h.
11912 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11914 * common/common-utils.h: Add "ARI:" comment beside __func__
11917 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11919 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11920 documentation a bit.
11922 2014-01-21 Roland McGrath <mcgrathr@google.com>
11924 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11925 * configure: Regenerate.
11926 * aclocal.m4: Regenerate.
11927 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11928 New substituted variables.
11929 (install-strip): New target.
11930 (INSTALL_SCRIPT): New substituted variable.
11931 (FLAGS_TO_PASS): Add it.
11932 (install-only): Use $(INSTALL_SCRIPT) rather than
11933 $(INSTALL_PROGRAM) for gcore.
11935 2014-01-20 Tom Tromey <tromey@redhat.com>
11937 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11940 2014-01-20 Tom Tromey <tromey@redhat.com>
11942 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11943 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11944 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11945 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11946 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11947 (struct cmd_list_element) <flags>: Remove.
11948 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11949 doc_allocated>: New fields.
11950 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11952 * maint.c (maintenance_do_deprecate): Update.
11953 * top.c (execute_command): Update.
11955 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11957 * xtensa-linux-nat.c: Include asm/ptrace.h.
11959 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11961 * Makefile.in (SFILES): Add d-support.c.
11962 (COMMON_OBS): Add d-support.o.
11963 * d-lang.h (d_parse_symbol): Add comment, now defined in
11965 * d-lang.c (parse_call_convention)
11966 (parse_attributes, parse_function_types)
11967 (parse_function_args, parse_type, parse_identifier)
11968 (call_convention_p, d_parse_symbol): Move functions to ...
11969 * d-support.c: ... New file.
11971 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11973 * d-lang.h (d_parse_symbol): Add declaration.
11974 * d-lang.c (extract_identifiers)
11975 (extract_type_info): Remove functions.
11976 (parse_call_convention, parse_attributes)
11977 (parse_function_types, parse_function_args)
11978 (parse_type, parse_identifier, call_convention_p)
11979 (d_parse_symbol): New functions.
11980 (d_demangle): Use d_parse_symbol to demangle D symbols.
11982 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11984 * d-lang.h (struct builtin_d_type): New data type.
11985 (builtin_d_type): Add declaration.
11986 * d-lang.c (d_language_arch_info, build_d_types)
11987 (builtin_d_type): New functions.
11988 (enum d_primitive_types): New data type.
11989 (d_language_defn): Change c_language_arch_info to
11990 d_language_arch_info.
11991 (d_type_data): New static variable.
11992 (_initialize_d_language): Initialize d_type_data.
11994 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11996 * d-lang.h (d_main_name): Add declaration.
11997 * d-lang.c (d_main_name): New function.
11998 * symtab.c (find_main_name): Add call to d_main_name.
12000 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12002 * d-lang.c (d_language_defn): Change macro_expansion_c to
12003 macro_expansion_no.
12005 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12007 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12009 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12011 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12012 gdb_exception" declaration.
12013 * remote.c (getpkt_or_notif_sane): Likewise.
12015 2014-01-17 Doug Evans <dje@google.com>
12017 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12018 function, contents of dirnames_to_char_ptr_vec_append moved here.
12019 (delim_string_to_char_ptr_vec): New function.
12020 (dirnames_to_char_ptr_vec_append): Rewrite.
12021 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12023 2014-01-17 Doug Evans <dje@google.com>
12025 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12027 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12028 #include "common-utils.h".
12029 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12030 * common/vec.h (VEC_ASSERT_PASS): Update.
12031 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12032 (MACH_CHECK_ERROR): Update.
12034 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12036 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12038 * gdbarch.h: Regenerate.
12040 2014-01-16 Tom Tromey <tromey@redhat.com>
12042 * value.c (struct value) <regnum>: Move earlier.
12044 2014-01-16 Tom Tromey <tromey@redhat.com>
12046 * remote.c (extended_remote_create_inferior): Rename from
12047 extended_remote_create_inferior_1. Add "ops" argument. Remove
12048 old implementation.
12050 2014-01-16 Pedro Alves <palves@redhat.com>
12052 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12053 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12056 2014-01-16 Doug Evans <dje@google.com>
12058 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12062 * btrace.h (btrace_thread_flag): New.
12063 (struct btrace_thread_info) <flags>: New.
12064 * record-btrace.c (record_btrace_resume_thread)
12065 (record_btrace_find_thread_to_move, btrace_step_no_history)
12066 (btrace_step_stopped, record_btrace_start_replaying)
12067 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12068 (record_btrace_find_resume_thread): New.
12069 (record_btrace_resume, record_btrace_wait): Extend.
12070 (record_btrace_can_execute_reverse): New.
12071 (record_btrace_open): Fail in non-stop mode.
12072 (record_btrace_set_replay): Split into this, ...
12073 (record_btrace_stop_replaying): ... this, ...
12074 (record_btrace_clear_histories): ... and this.
12075 (init_record_btrace_ops): Init to_can_execute_reverse.
12076 * NEWS: Announce it.
12078 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12080 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12081 (forward_target_decr_pc_after_break)
12082 (target_decr_pc_after_break): New.
12083 * target.c (forward_target_decr_pc_after_break)
12084 (target_decr_pc_after_break): New.
12085 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12086 instead of gdbarch_decr_pc_after_break.
12087 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12088 instead of gdbarch_decr_pc_after_break.
12089 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12090 instead of gdbarch_decr_pc_after_break.
12091 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12092 instead of gdbarch_decr_pc_after_break.
12093 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12094 instead of gdbarch_decr_pc_after_break.
12095 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12096 instead of gdbarch_decr_pc_after_break.
12098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12100 * btrace.c: Include regcache.h.
12101 (btrace_add_pc): New.
12102 (btrace_enable): Call btrace_add_pc.
12103 (btrace_is_empty): New.
12104 * btrace.h (btrace_is_empty): New.
12105 * record-btrace.c (require_btrace, record_btrace_info): Call
12108 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12110 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12111 Support delta reads.
12112 (linux_disable_btrace): Change return type.
12113 * common/linux-btrace.h (linux_read_btrace): Change parameters
12114 and return type to allow error reporting. Update users.
12115 (linux_disable_btrace): Change return type. Update users.
12116 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12118 (btrace_error): New.
12119 (btrace_block) <begin>: Comment on BEGIN == 0.
12120 * btrace.c (btrace_compute_ftrace): Start from the end of
12122 (btrace_stitch_trace, btrace_clear_history): New.
12123 (btrace_fetch): Read delta trace, return if replaying.
12124 (btrace_clear): Move clear history code to btrace_clear_history.
12125 (parse_xml_btrace): Throw an error if parsing failed.
12126 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12127 and return type to allow error reporting.
12128 (target_read_btrace): Change parameters and return type to allow
12130 * target.c (target_read_btrace): Update.
12131 * remote.c (remote_read_btrace): Support delta reads. Pass
12133 * NEWS: Announce it.
12135 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12137 * record.h (record_btrace_frame_unwind)
12138 (record_btrace_tailcall_frame_unwind): New declarations.
12139 * dwarf2-frame: Include record.h
12140 (dwarf2_frame_cfa): Throw an error for btrace frames.
12141 * record-btrace.c: Include hashtab.h.
12142 (btrace_get_bfun_name): New.
12143 (btrace_call_history): Call btrace_get_bfun_name.
12144 (struct btrace_frame_cache): New.
12146 (bfcache_hash, bfcache_eq, bfcache_new): New.
12147 (btrace_get_frame_function): New.
12148 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12149 (record_btrace_frame_this_id): Compute own id.
12150 (record_btrace_frame_prev_register): Provide PC, throw_error
12151 for all other registers.
12152 (record_btrace_frame_sniffer): Detect btrace frames.
12153 (record_btrace_tailcall_frame_sniffer): New.
12154 (record_btrace_frame_dealloc_cache): New.
12155 (record_btrace_frame_unwind): Add new functions.
12156 (record_btrace_tailcall_frame_unwind): New.
12157 (_initialize_record_btrace): Allocate cache.
12158 * btrace.c (btrace_clear): Call reinit_frame_cache.
12159 * NEWS: Announce it.
12161 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12163 * record-btrace.c (record_btrace_set_replay)
12164 (record_btrace_goto_begin, record_btrace_goto_end)
12165 (record_btrace_goto): New.
12166 (init_record_btrace_ops): Initialize them.
12167 * NEWS: Announce it.
12169 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12171 * record-btrace.c (record_btrace_find_new_threads)
12172 (record_btrace_thread_alive): New.
12173 (init_record_btrace_ops): Initialize to_find_new_threads and
12176 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12178 * record-btrace.c (record_btrace_resume): New.
12179 (record_btrace_wait): New.
12180 (init_record_btrace_ops): Initialize to_wait and to_resume.
12182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12184 * record-btrace.c (record_btrace_xfer_partial)
12185 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12186 (record_btrace_allow_memory_access): New.
12187 (init_record_btrace_ops): Initialize new methods.
12188 * target.c (raw_memory_xfer_partial): Bail out if target reports
12189 that this memory is not available.
12191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12193 * target.h (target_ops) <to_insert_breakpoint>
12194 <to_remove_breakpoint>: Add target_ops parameter.
12195 (forward_target_insert_breakpoint): New.
12196 (forward_target_remove_breakpoint): New.
12197 (memory_remove_breakpoint, memory_insert_breakpoint):
12198 Add target_ops parameter.
12199 * target.c (target_insert_breakpoint): Split into this and ...
12200 (forward_target_insert_breakpoint): ... this.
12201 (target_remove_breakpoint): Split into this and ...
12202 (forward_target_remove_breakpoint): ... this.
12203 (debug_to_insert_breakpoint): Add target_ops parameter.
12204 Call forward_target_insert_breakpoint.
12205 (debug_to_remove_breakpoint): Add target_ops parameter.
12206 Call forward_target_remove_breakpoint.
12207 (update_current_target): Do not inherit or default to_insert_breakpoint
12208 and to_remove_breakpoint.
12209 * corelow.c (ignore): Add target_ops parameter.
12210 * exec.c (ignore): Add target_ops parameter.
12211 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12212 Add target_ops parameter.
12213 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12214 Add target_ops parameter.
12215 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12216 Add target_ops parameter.
12217 * record-full.c (record_full_beneath_to_insert_breakpoint)
12218 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12219 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12220 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12221 (record_full_core_remove_breakpoint): Add target_ops parameter.
12223 (record_full_beneath_to_insert_breakpoint_ops)
12224 (record_full_beneath_to_remove_breakpoint_ops)
12225 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12226 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12227 tmp_to_remove_breakpoint_ops,
12228 record_full_beneath_to_insert_breakpoint_ops, and
12229 record_full_beneath_to_remove_breakpoint_ops.
12230 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12231 (m32r_remove_breakpoint): Add target_ops parameter.
12232 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12233 Add target_ops parameter.
12234 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12235 Add target_ops parameter.
12237 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12238 Markus Metzger <markus.t.metzger@intel.com>
12240 * record-btrace.c: Include frame-unwind.h.
12241 (record_btrace_frame_unwind_stop_reason)
12242 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12243 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12245 (init_record_btrace_ops): Install it.
12247 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12249 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12252 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12254 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12257 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12259 * frame-unwind.c: Include target.h.
12260 (frame_unwind_try_unwinder): New function with code from ...
12261 (frame_unwind_find_by_frame): ... here. New variable
12262 unwinder_from_target, call also target_get_unwinder)
12263 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12264 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12265 * target.h (struct target_ops): New fields to_get_unwinder and
12266 to_get_tailcall_unwinder.
12267 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12269 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12271 * record-btrace.c (record_btrace_fetch_registers)
12272 (record_btrace_store_registers)
12273 (record_btrace_to_prepare_to_store): New.
12274 (init_record_btrace_ops): Add the above.
12276 2014-01-16 Tom Tromey <tromey@redhat.com>
12278 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12279 * target.h (struct target_ops) <to_prepare_to_store>: Add
12281 (target_prepare_to_store): Add argument.
12282 * target.c (debug_to_prepare_to_store): Add argument.
12283 (update_current_target): Update.
12284 * remote.c (remote_prepare_to_store): Add 'self' argument.
12285 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12286 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12287 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12288 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12290 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12291 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12292 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12293 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12294 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12296 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12298 * btrace.h (replay) <replay>: New.
12299 (btrace_is_replaying): New.
12300 * btrace.c (btrace_clear): Free replay iterator.
12301 (btrace_is_replaying): New.
12302 * record-btrace.c (record_btrace_is_replaying): New.
12303 (record_btrace_info): Print insn number if replaying.
12304 (record_btrace_insn_history): Start at replay position.
12305 (record_btrace_call_history): Start at replay position.
12306 (init_record_btrace_ops): Init to_record_is_replaying.
12308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12310 * record-btrace.c (record_btrace_insn_history_range): Include
12312 (record_btrace_insn_history_from): Adjust range.
12313 (record_btrace_call_history_range): Include
12315 (record_btrace_call_history_from): Adjust range.
12316 * NEWS: Announce changes.
12318 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12320 * record.h (enum record_print_flag)
12321 <record_print_indent_calls>: New.
12322 * record.c (get_call_history_modifiers): Recognize /c modifier.
12323 (_initialize_record): Document /c modifier.
12324 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12325 Reorder fields. Optionally indent the function name. Update
12327 * NEWS: Announce changes.
12329 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12331 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12335 * btrace.c (ftrace_new_function): Start counting at one.
12336 * record-btrace.c (record_btrace_info): Adjust number of calls
12338 * NEWS: Announce it.
12340 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12342 * record-btrace.c (btrace_call_history_insn_range): Print
12343 insn range as [begin, end].
12345 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12347 * btrace.h (struct btrace_func_link): New.
12348 (enum btrace_function_flag): New.
12349 (struct btrace_inst): Rename to ...
12350 (struct btrace_insn): ...this. Update all users.
12351 (struct btrace_func) <ibegin, iend>: Remove.
12352 (struct btrace_func_link): New.
12353 (struct btrace_func): Rename to ...
12354 (struct btrace_function): ...this. Update all users.
12355 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12356 (number, level, flags>: New.
12357 (struct btrace_insn_iterator): Rename to ...
12358 (struct btrace_insn_history): ...this.
12360 (struct btrace_insn_iterator, btrace_call_iterator): New.
12361 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12362 (struct btrace_target_info) <begin, end, level>
12363 <insn_history, call_history>: New.
12364 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12365 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12366 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12367 (btrace_call_number, btrace_call_begin, btrace_call_end)
12368 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12369 (btrace_find_function_by_number, btrace_set_insn_history)
12370 (btrace_set_call_history): New.
12371 * btrace.c (btrace_init_insn_iterator)
12372 (btrace_init_func_iterator, compute_itrace): Remove.
12373 (ftrace_print_function_name, ftrace_print_filename)
12374 (ftrace_skip_file): Change
12375 parameter to const.
12376 (ftrace_init_func): Remove.
12377 (ftrace_debug): Use new btrace_function fields.
12378 (ftrace_function_switched): Also consider gaining and
12379 losing symbol information).
12380 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12381 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12382 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12384 (ftrace_new_function): Move. Remove debug print.
12385 (ftrace_update_lines, ftrace_update_insns): New.
12386 (ftrace_update_function): Check for call, ret, and jump.
12387 (compute_ftrace): Renamed to ...
12388 (btrace_compute_ftrace): ...this. Rewritten to compute call
12390 (btrace_fetch, btrace_clear): Updated.
12391 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12392 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12393 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12394 (btrace_call_number, btrace_call_begin, btrace_call_end)
12395 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12396 (btrace_find_function_by_number, btrace_set_insn_history)
12397 (btrace_set_call_history): New.
12398 * record-btrace.c (require_btrace): Use new btrace thread
12400 (record_btrace_info, btrace_insn_history)
12401 (record_btrace_insn_history, record_btrace_insn_history_range):
12402 Use new btrace thread info fields and new iterator.
12403 (btrace_func_history_src_line): Rename to ...
12404 (btrace_call_history_src_line): ...this. Use new btrace
12405 thread info fields.
12406 (btrace_func_history): Rename to ...
12407 (btrace_call_history): ...this. Use new btrace thread info
12408 fields and new iterator.
12409 (record_btrace_call_history, record_btrace_call_history_range):
12410 Use new btrace thread info fields and new iterator.
12412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12414 * frame.h (frame_id_build_unavailable_stack_special): New.
12415 * frame.c (frame_id_build_unavailable_stack_special): New.
12417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12419 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12420 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12421 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12423 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12424 (i386_insn_is_jump, i386_jmp_p): New.
12425 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12426 insn_is_jump to gdbarch.
12427 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12428 * gdbarch.h: Regenerated.
12429 * gdbarch.c: Regenerated.
12430 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12431 (default_insn_is_jump): New.
12432 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12433 (default_insn_is_jump): New.
12435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12437 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12439 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12440 (btrace_read_type) <btrace_read_new>: Change to ...
12441 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12445 * common/linux-btrace.c (linux_read_btrace): Free trace from
12446 previous iteration.
12448 2014-01-15 Doug Evans <dje@google.com>
12450 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12453 2014-01-15 Tom Tromey <tromey@redhat.com>
12455 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12456 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12457 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12458 (set_objfile_main_name): New function.
12459 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12460 language_of_main>: New fields.
12461 (set_objfile_main_name): Declare.
12462 * symtab.c (find_main_name): Loop over objfiles to find the main
12464 (set_main_name): Now static.
12465 (get_main_info): Add comment.
12466 * symtab.h (set_main_name): Don't declare.
12468 2014-01-15 Tom Tromey <tromey@redhat.com>
12470 * symtab.c (main_progspace_key): New global.
12471 (struct main_info): New.
12472 (name_of_main, language_of_main): Remove.
12473 (get_main_info, main_info_cleanup): New function.
12474 (set_main_name, main_name, main_language): Use get_main_info.
12475 (_initialize_symtab): Initialize main_progspace_key.
12477 2014-01-15 Tom Tromey <tromey@redhat.com>
12479 * dbxread.c (process_one_symbol): Update.
12480 * dwarf2read.c (read_partial_die): Update.
12481 * symfile.c (set_initial_language): Call main_language.
12482 * symtab.c (language_of_main): Now static.
12483 (set_main_name): Add 'lang' parameter.
12484 (find_main_name): Update.
12485 (main_language): New function.
12486 (symtab_observer_executable_changed): Update.
12487 * symtab.h (set_main_name): Update.
12488 (language_of_main): Remove.
12489 (main_language): Declare.
12491 2014-01-15 Tom Tromey <tromey@redhat.com>
12493 * symfile.c (init_entry_point_info): Use new "initialized" field.
12495 * objfiles.h (struct entry_point) <initialized>: New field.
12496 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12497 (struct objfile) <ei>: ...here. Remove.
12498 * objfiles.c (entry_point_address_query): Update.
12500 2014-01-15 Tom Tromey <tromey@redhat.com>
12502 * objfiles.c (entry_point_address_query): Relocate entry point
12504 (objfile_relocate1): Do not relocate entry point address.
12505 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12506 <the_bfd_section_index>: New field.
12507 * symfile.c (init_entry_point_info): Find the entry point's
12510 2014-01-15 Tom Tromey <tromey@redhat.com>
12512 * solib-frv.c (enable_break): Use entry_point_address_query.
12514 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12516 * NEWS: Add note on improved process record-replay on
12517 arm*-linux* targets.
12519 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12521 * arm-tdep.c (enum arm_record_result): New enum.
12522 (arm_record_unsupported_insn): New function.
12523 (arm_record_coproc_data_proc): Removed.
12524 (thumb2_record_ld_st_multiple): New function.
12525 (thumb2_record_ld_st_dual_ex_tbb): New function.
12526 (thumb2_record_data_proc_sreg_mimm): New function.
12527 (thumb2_record_ps_dest_generic): New function.
12528 (thumb2_record_branch_misc_cntrl): New function.
12529 (thumb2_record_str_single_data): New function.
12530 (thumb2_record_ld_mem_hints): New function.
12531 (thumb2_record_ld_word): New function.
12532 (thumb2_record_lmul_lmla_div): New function.
12533 (thumb2_record_decode_insn_handler): New function.
12534 (decode_insn): Add thumb32 instruction handlers.
12536 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12538 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12539 (struct arm_linux_record_tdep): Declare.
12540 (arm_canonicalize_syscall): New function.
12541 (arm_all_but_pc_registers_record): New function.
12542 (arm_linux_syscall_record): New function.
12543 (arm_linux_init_abi): Add syscall recording constructs.
12544 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12545 decoding. (arm_record_coproc_data_proc): Update arm syscall
12547 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12548 <arm_syscall_record>: New field.
12549 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12552 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12554 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12555 register for push instruction recording.
12557 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12559 * arm-tdep.c (thumb_record_misc): Update to correct logical
12560 error while recording ldm, ldmia and pop instructions.
12562 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12564 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12566 2014-01-15 Pedro Alves <palves@redhat.com>
12568 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12569 (go32_resume, go32_fetch_registers, store_register)
12570 (go32_store_registers, go32_prepare_to_store)
12571 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12572 (go32_create_inferior, go32_can_run, go32_terminal_init)
12573 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12576 2014-01-15 Tom Tromey <tromey@redhat.com>
12578 * target.h (async_callback_ftype): New typedef.
12579 (struct target_ops) <to_async>: Use it.
12581 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12583 * python/py-value.c (get_field_type): Remove unnecessary curly
12584 braces for single-statement if block.
12586 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12588 * python/py-type.c (convert_field): Add missing empty line
12589 after declarations.
12591 2014-01-14 Doug Evans <dje@google.com>
12593 * symfile.h (expand_symtabs_matching): Renamed from
12594 expand_partial_symbol_names. Update prototype.
12595 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12596 * symfile.c (expand_symtabs_matching): Renamed from
12597 expand_partial_symbol_names. New args file_matcher, kind.
12598 Rename arg fun to symbol_matcher.
12599 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12600 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12601 ada_expand_partial_symbol_name.
12602 (ada_make_symbol_completion_list): Update to call
12603 expand_symtabs_matching.
12604 (ada_add_global_exceptions): Call expand_symtabs_matching.
12605 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12606 call map_symbol_filenames.
12607 * symtab.c (sources_info): Update to call map_symbol_filenames.
12608 (search_symbols): Call expand_symtabs_matching.
12609 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12610 (default_make_symbol_completion_list_break_on): Update to call
12611 expand_symtabs_matching.
12612 (make_source_files_completion_list): Update to call
12613 map_symbol_filenames.
12615 2014-01-14 Doug Evans <dje@google.com>
12617 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12618 (expand_symtabs_symbol_matcher_ftype): New typedef.
12619 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12620 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12621 * symfile.c (expand_partial_symbol_names): Update to use
12622 expand_symtabs_symbol_matcher_ftype.
12623 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12624 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12625 Arg name_matcher renamed to symbol_matcher.
12626 * psymtab.c (recursively_search_psymtabs): Update to use
12627 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12629 (expand_symtabs_matching_via_partial): Update to use
12630 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12631 Arg name_matcher renamed to symbol_matcher.
12633 2014-01-14 Doug Evans <dje@google.com>
12635 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12636 (map_partial_symbol_filenames): Ditto.
12637 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12638 (map_partial_symbol_filenames): Ditto.
12639 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12640 (map_partial_symbol_filenames): Ditto.
12641 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12642 (map_partial_symbol_filenames): Ditto.
12643 * symtab.c: Delete #include "psymtab.h".
12645 2014-01-14 Pedro Alves <palves@redhat.com>
12646 Tom Tromey <tromey@redhat.com>
12648 * infrun.c (use_displaced_stepping): Use find_record_target
12649 instead of RECORD_IS_USED.
12650 (adjust_pc_after_break): Use record_full_is_used instead of
12652 * record-btrace.c (record_btrace_open): Call record_preopen
12653 instead of checking RECORD_IS_USED.
12654 * record-full.c (record_full_shortname)
12655 (record_full_core_shortname): New globals.
12656 (record_full_is_used): New function.
12657 (find_full_open): Call record_preopen instead of checking
12659 (init_record_full_ops): Set the target's shortname to
12660 record_full_shortname.
12661 (init_record_full_core_ops): Set the target's shortname to
12662 record_full_core_shortname.
12663 * record-full.h (record_full_is_used): Declare.
12664 * record.c (find_record_target): Make extern.
12665 (record_preopen): New function.
12666 * record.h (RECORD_IS_USED): Delete macro.
12667 (find_record_target, record_preopen): Declare functions.
12669 2014-01-14 Yao Qi <yao@codesourcery.com>
12671 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12672 'len''s type to ULONGEST.
12673 (core_xfer_shared_libraries_aix): Likewise.
12674 * gdbarch.c, gdbarch.h: Regenerated.
12675 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12676 Change type of 'len' to ULONGEST.
12677 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12678 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12680 2014-01-14 Yao Qi <yao@codesourcery.com>
12682 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12683 type of 'len' to ULONGEST.
12684 (linux_xfer_osdata_processgroups): Likewise.
12685 (linux_xfer_osdata_threads): Likewise.
12686 (linux_xfer_osdata_fds): Likewise.
12687 (linux_xfer_osdata_isockets): Likewise.
12688 (linux_xfer_osdata_shm): Likewise.
12689 (linux_xfer_osdata_sem): Likewise.
12690 (linux_xfer_osdata_msg): Likewise.
12691 (linux_common_xfer_osdata): Likewise.
12692 (struct osdata_type) <getter>: Likewise.
12693 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12696 2014-01-14 Yao Qi <yao@codesourcery.com>
12698 * target.h (target_xfer_partial_ftype): Update.
12699 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12701 * aix-thread.c (aix_thread_xfer_partial): Change type of
12702 argument 'len' to ULONGEST.
12703 * auxv.c (procfs_xfer_auxv): Likewise.
12704 (ld_so_xfer_auxv): Likewise.
12705 (memory_xfer_auxv): Likewise.
12706 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12707 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12708 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12709 * corelow.c (core_xfer_partial): Likewise.
12710 * ctf.c (ctf_xfer_partial): Likewise.
12711 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12713 (darwin_read_dyld_info): Likewise.
12714 (darwin_xfer_partial): Likewise.
12715 * exec.c (section_table_xfer_memory_partial): Likewise.
12716 (exec_xfer_partial): Likewise.
12717 * exec.h (section_table_xfer_memory_partial): Update
12719 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12720 instead of plongest.
12721 (gnu_xfer_partial): Likewise.
12722 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12723 (ia64_hpux_xfer_solib_got): Likewise.
12724 (ia64_hpux_xfer_partial): Likewise.
12725 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12726 * inf-ptrace.c (inf_ptrace_xfer_partial):
12727 * inf-ttrace.c (inf_ttrace_xfer_partial):
12728 * linux-nat.c (linux_xfer_siginfo): Likewise.
12729 (linux_nat_xfer_partial): Likewise.
12730 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12731 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12732 * monitor.c (monitor_xfer_memory): Likewise.
12733 (monitor_xfer_partial): Likewise.
12734 * procfs.c (procfs_xfer_partial): Likewise.
12735 * record-full.c (record_full_xfer_partial): Likewise.
12736 (record_full_core_xfer_partial): Likewise.
12737 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12738 instead of plongest.
12739 (gdbsim_xfer_partial): Likewise.
12740 * remote.c (remote_xfer_partial): Likewise.
12741 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12742 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12744 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12745 (rs6000_xfer_shared_libraries): Likewise.
12746 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12747 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12748 (sparc_xfer_partial): Likewise.
12749 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12750 (spu_xfer_partial): Likewise.
12751 * spu-multiarch.c (spu_xfer_partial): Likewise.
12752 * target.c (target_read_live_memory): Likewise.
12753 (memory_xfer_live_readonly_partial): Likewise.
12754 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12755 (target_xfer_partial, default_xfer_partial): Likewise.
12756 (current_xfer_partial): Likewise.
12757 * tracepoint.c (tfile_xfer_partial): Likewise.
12758 * windows-nat.c (windows_xfer_memory): Likewise. Call
12759 pulongest instead of plongest.
12760 (windows_xfer_partial): Likewise.
12761 (windows_xfer_shared_libraries): Likewise.
12763 2014-01-14 Yao Qi <yao@codesourcery.com>
12765 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12766 target_xfer_partial_ftype.
12768 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12772 * valops.c (value_struct_elt_bitpos): New function
12773 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12774 object to 'None' if the field name is an empty string ("").
12775 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12776 attribute to look for a field when 'name' is 'None'.
12777 (get_field_type): New function
12779 2014-01-13 Doug Evans <dje@google.com>
12782 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12783 (try_open_dwop_file): Ditto.
12784 * gdb_bfd.c: #include "vec.h".
12785 (bfdp): New typedef.
12786 (struct gdb_bfd_data): New member included_bfds.
12787 (gdb_bfd_unref): Unref all included bfds.
12788 (gdb_bfd_record_inclusion): New function.
12789 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12791 2014-01-13 Tom Tromey <tromey@redhat.com>
12793 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12795 2014-01-13 Tom Tromey <tromey@redhat.com>
12797 * defs.h (use_windows): Remove.
12798 * gdb.c (main): Update.
12799 * main.c (captured_main, gdb_main): Update.
12800 * main.h (struct captured_main_args) <use_windows>: Remove.
12801 * top.c (use_windows): Remove.
12803 2014-01-13 Tom Tromey <tromey@redhat.com>
12805 * defs.h (deprecated_flush_hook): Remove.
12807 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12810 * linux-thread-db.c (try_thread_db_load): Add parameter
12811 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12812 (try_thread_db_load_from_pdir_1): Move it there from here.
12813 (try_thread_db_load_from_sdir): Update caller.
12814 (try_thread_db_load_from_dir): Move it there from here.
12816 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12818 * regformats/regdat.sh: Always rewrite the register file.
12820 2014-01-13 Pedro Alves <palves@redhat.com>
12822 * Makefile.in (CHECK_HEADERS): New variable.
12823 (check-headers:): New rule.
12825 2014-01-13 Tom Tromey <tromey@redhat.com>
12827 * cli/cli-setshow.c (do_set_command): Update.
12828 * defs.h (deprecated_set_hook): Remove.
12829 * top.c (deprecated_set_hook): Remove.
12831 2014-01-13 Pedro Alves <palves@redhat.com>
12833 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12834 the tracepoint if the PC is a pseudo-register.
12836 2014-01-13 Tom Tromey <tromey@redhat.com>
12838 * defs.h (XCALLOC): Remove.
12839 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12840 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12841 * dwarf2loc.c (allocate_piece_closure): Likewise.
12842 * elfread.c (elf_symfile_segments): Likewise.
12843 (elf_symfile_segments): Likewise.
12844 * gdbtypes.c (copy_type_recursive): Likewise.
12845 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12846 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12847 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12849 * mt-tdep.c (mt_gdbarch_init): Likewise.
12850 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12852 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12853 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12854 * registry.c (registry_alloc_data): Likewise.
12855 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12856 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12857 * serial.c (serial_fdopen_ops): Likewise.
12858 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12860 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12861 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12864 2014-01-13 Tom Tromey <tromey@redhat.com>
12866 * defs.h (XMALLOC): Remove.
12867 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12868 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12869 * cli-out.c (struct ui_out *): Likewise.
12870 * cli/cli-dump.c (add_dump_command): Likewise.
12871 (add_dump_command): Likewise.
12872 * complaints.c (get_complaints): Likewise.
12873 (find_complaint): Likewise.
12874 * dwarf2-frame.c (execute_cfa_program): Likewise.
12875 * dwarf2read.c (abbrev_table_read_table): Likewise.
12876 * gdbarch.sh: Likewise.
12877 * gdbarch.c: Rebuild.
12878 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12879 * interps.c (interp_new): Likewise.
12880 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12881 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12882 * mi/mi-console.c (mi_console_file_new): Likewise.
12883 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12884 * mi/mi-out.c (mi_out_new): Likewise.
12885 * mi/mi-parse.c (mi_parse): Likewise.
12886 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12887 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12888 * observer.c (xalloc_observer_list_node): Likewise.
12889 * regcache.c (regcache_xmalloc_1): Likewise.
12890 * reggroups.c (reggroup_new): Likewise.
12891 (_initialize_reggroup): Likewise.
12892 * registry.c (register_data_with_cleanup): Likewise.
12893 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12894 * ser-base.c (serial_ttystate): Likewise.
12895 * ser-mingw.c (make_pipe_state): Likewise.
12896 * ser-pipe.c (pipe_open): Likewise.
12897 * serial.c (serial_open): Likewise.
12898 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12899 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12900 (tui_alloc_win_info): Likewise.
12901 (tui_add_content_elements): Likewise.
12902 * tui/tui-file.c (tui_file_new): Likewise.
12903 * tui/tui-out.c (tui_out_new): Likewise.
12904 * ui-file.c (mem_file_new): Likewise.
12905 * ui-out.c (push_level): Likewise.
12906 (make_cleanup_ui_out_end): Likewise.
12907 (append_header_to_list): Likewise.
12908 (ui_out_new): Likewise.
12909 * user-regs.c (user_reg_add_builtin): Likewise.
12911 2014-01-13 Tom Tromey <tromey@redhat.com>
12913 * defs.h (XZALLOC): Remove.
12914 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12915 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12916 (get_ada_tasks_inferior_data): Likewise.
12917 * auto-load.c (get_auto_load_pspace_data): Likewise.
12918 * auxv.c (get_auxv_inferior_data): Likewise.
12919 * bfd-target.c (target_bfd_reopen): Likewise.
12920 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12921 (deprecated_insert_raw_breakpoint): Likewise.
12922 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12923 * corelow.c (core_open): Likewise.
12924 * darwin-nat.c (darwin_check_new_threads): Likewise.
12925 (darwin_attach_pid): Likewise.
12926 * dummy-frame.c (dummy_frame_push): Likewise.
12927 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12928 * dwarf2loc.c (allocate_piece_closure): Likewise.
12929 * elfread.c (elf_symfile_segments): Likewise.
12930 * eval.c (ptrmath_type_p): Likewise.
12931 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12932 * gdbtypes.c (alloc_type_arch): Likewise.
12933 (alloc_type_instance): Likewise.
12934 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12935 * inf-child.c (inf_child_can_use_agent): Likewise.
12936 * inflow.c (get_inflow_inferior_data): Likewise.
12937 * infrun.c (save_infcall_suspend_state): Likewise.
12938 * jit.c (jit_reader_load): Likewise.
12939 (get_jit_objfile_data): Likewise.
12940 (get_jit_program_space_data): Likewise.
12941 (jit_object_open_impl): Likewise.
12942 (jit_symtab_open_impl): Likewise.
12943 (jit_block_open_impl): Likewise.
12944 (jit_frame_sniffer): Likewise.
12945 * linux-fork.c (add_fork): Likewise.
12946 * maint.c (make_command_stats_cleanup): Likewise.
12947 * objfiles.c (get_objfile_pspace_data): Likewise.
12948 * opencl-lang.c (struct lval_closure): Likewise.
12949 * osdata.c (osdata_start_osdata): Likewise.
12950 * progspace.c (new_address_space): Likewise.
12951 (add_program_space): Likewise.
12952 * remote-sim.c (get_sim_inferior_data): Likewise.
12953 * sh-tdep.c (sh_gdbarch_init): Likewise.
12954 * skip.c (Ignore): Likewise.
12955 (skip_delete_command): Likewise.
12956 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12957 (library_list_start_library): Likewise.
12958 (solib_aix_current_sos): Likewise.
12959 * solib-darwin.c (get_darwin_info): Likewise.
12960 (darwin_current_sos): Likewise.
12961 * solib-dsbt.c (get_dsbt_info): Likewise.
12962 * solib-ia64-hpux.c (new_so_list): Likewise.
12963 (ia64_hpux_get_solib_linkage_addr): Likewise.
12964 * solib-spu.c (append_ocl_sos): Likewise.
12965 (spu_current_sos): Likewise.
12966 * solib-svr4.c (get_svr4_info): Likewise.
12967 (svr4_keep_data_in_core): Likewise.
12968 (library_list_start_library): Likewise.
12969 (svr4_default_sos): Likewise.
12970 (svr4_read_so_list): Likewise.
12971 * solib-target.c (library_list_start_library): Likewise.
12972 (solib_target_current_sos): Likewise.
12973 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12974 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12975 * symfile.c (default_symfile_segments): Likewise.
12976 * target-descriptions.c (tdesc_data_init): Likewise.
12977 (tdesc_create_reg): Likewise.
12978 (struct tdesc_type *): Likewise.
12979 (tdesc_create_vector): Likewise.
12980 (tdesc_set_struct_size): Likewise.
12981 (struct tdesc_type *): Likewise.
12982 (tdesc_free_feature): Likewise.
12983 (tdesc_create_feature): Likewise.
12984 * windows-nat.c (windows_add_thread): Likewise.
12985 (windows_make_so): Likewise.
12986 * xml-support.c (gdb_xml_body_text): Likewise.
12987 (gdb_xml_create_parser_and_cleanup): Likewise.
12988 (xml_process_xincludes): Likewise.
12989 * xml-syscall.c (allocate_syscalls_info): Likewise.
12990 (syscall_create_syscall_desc): Likewise.
12992 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12994 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12995 function, with code from i386_stap_parse_special_token.
12996 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12997 (i386_stap_parse_special_token): Move code to the two functions
12998 above; simplify it.
13000 2014-01-09 Pedro Alves <palves@redhat.com>
13001 Hui Zhu <hui@codesourcery.com>
13004 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13005 bp_err_string. Don't mark the location shlib_disabled if the
13006 error thrown wasn't a generic or memory error. Catch errors
13007 thrown while inserting breakpoints in overlayed code. Output
13008 error message of software breakpoints.
13009 * remote.c (remote_insert_breakpoint): If this breakpoint has
13010 target-side commands but this stub doesn't support Z0 packets,
13011 throw NOT_SUPPORTED_ERROR error.
13012 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13013 * target.h (target_insert_breakpoint): Extend comment.
13014 (target_insert_hw_breakpoint): Add comment.
13016 2014-01-08 Pedro Alves <palves@redhat.com>
13018 * remote.c (remote_add_thread): Add threads silently if starting
13020 (remote_notice_new_inferior): If in all-stop, and starting up,
13021 don't call notice_new_inferior.
13022 (get_current_thread): New function, factored out from ...
13023 (add_current_inferior_and_thread): ... this. Adjust.
13024 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13025 found any thread, then select the remote's current thread as GDB's
13026 current thread too.
13028 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13030 * NEWS: Create a new section for the next release branch.
13031 Rename the section of the current branch, now that it has
13034 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13036 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13037 * version.in: Bump version to 7.7.50.DATE-cvs.
13039 2014-01-08 Yao Qi <yao@codesourcery.com>
13041 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13042 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13043 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13045 2014-01-08 Yao Qi <yao@codesourcery.com>
13047 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13048 return value of bfd_get_filename to symbol_file_add_from_bfd.
13050 2014-01-08 Pierre Muller <muller@sourceware.org>
13053 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13054 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13055 to prim_record_mininal_symbol_and_info.
13056 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13057 in call to prim_record_minimal_symbol_and_info.
13058 (read_pe_exported_syms): Set index field of section_data.
13060 2014-01-07 Andrew Pinski <apinski@cavium.com>
13062 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13063 * features/aarch64.c: Regenerate.
13065 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13067 * target.c (return_null): Define.
13068 (update_current_target): Use it instead of return_zero for
13069 functions that return a pointer.
13071 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13073 * source.c (add_path): Fix check for duplicated paths in the previously
13076 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13078 * ada-lang.c: Remove duplicated include statements.
13079 * alphabsd-nat.c: Ditto.
13080 * amd64-darwin-tdep.c: Ditto.
13081 * amd64fbsd-nat.c: Ditto.
13082 * auto-load.c: Ditto.
13084 * breakpoint.c: Ditto.
13085 * dbxread.c: Ditto.
13086 * fork-child.c: Ditto.
13087 * gdb_usleep.c: Ditto.
13088 * i386-darwin-tdep.c: Ditto.
13089 * i386fbsd-nat.c: Ditto.
13091 * inferior.c: Ditto.
13092 * jv-lang.c: Ditto.
13093 * linux-nat.c: Ditto.
13094 * linux-tdep.c: Ditto.
13095 * m68kbsd-nat.c: Ditto.
13096 * m68klinux-nat.c: Ditto.
13097 * microblaze-tdep.c: Ditto.
13098 * mips-linux-tdep.c: Ditto.
13099 * mn10300-tdep.c: Ditto.
13100 * nto-tdep.c: Ditto.
13101 * opencl-lang.c: Ditto.
13103 * printcmd.c: Ditto.
13104 * regcache.c: Ditto.
13105 * remote-m32r-sdi.c: Ditto.
13107 * symfile.c: Ditto.
13109 * tilegx-linux-nat.c: Ditto.
13110 * tilegx-tdep.c: Ditto.
13111 * tracepoint.c: Ditto.
13113 * vaxbsd-nat.c: Ditto.
13114 * windows-nat.c: Ditto.
13115 * xtensa-tdep.c: Ditto.
13117 2014-01-07 Yao Qi <yao@codesourcery.com>
13119 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13121 2014-01-07 Yao Qi <yao@codesourcery.com>
13122 Joel Brobecker <brobecker@adacore.com>
13124 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13125 (pdc_write_regs): Likewise.
13126 (fetch_regs_kernel_thread): Likewise.
13127 (store_regs_kernel_thread): Likewise.
13129 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13131 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13132 tagged type objects to their actual type.
13134 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13136 * ada-valprint.c (print_field_values): Add "language" parameter.
13137 Update calls to print_field_values and print_variant_part.
13138 Pass new parameter "language" in call to val_print instead
13139 of "current_language". Replace call to ada_val_print by call
13141 (print_variant_part): Add "language" parameter.
13142 (ada_val_print_struct_union): Update call to print_field_values.
13144 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13146 * ada-valprint.c (ui_memcpy): Delete.
13147 (ada_print_floating): Update documentation. Add empty line
13148 between between function documentation and implementation.
13149 Delete variable "buffer". Use ui_file_xstrdup in place of
13150 ui_file_put. Minor adjustments following this change.
13152 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13154 * ada-valprint.c (ada_val_print_string): New function,
13155 extracted from ada_val_print_array.
13156 (ada_val_print_array): Replace extracted code by call
13157 to ada_val_print_string followed by a return. Move
13158 "else" branch to the function's top block.
13160 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13162 * ada-valprint.c (ada_val_print_array): Move implementation
13163 down. Rename parameter "offset" and "val" into "offset_aligned"
13164 and "original_value" respectively. Add parameter "offset".
13166 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13168 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13169 re-organizing the code. Change the "???" message printed
13170 when target type is a TYPE_CODE_UNDEF into
13171 "<ref to undefined type>".
13173 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13175 * ada-valprint.c (print_record): Delete, implementation inlined...
13176 (ada_val_print_struct_union): ... here. Remove call to
13177 ada_check_typedef in inlined implementation.
13179 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13181 * ada-valprint.c (ada_val_print_gnat_array): New function,
13182 extracted from ada_val_print_1;
13183 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13184 (ada_val_print_flt, ada_val_print_struct_union)
13185 (ada_val_print_ref): Likewise.
13186 (ada_val_print_1): Delete variables i and elttype.
13187 Replace extracted-out code by call to corresponding
13190 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13192 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13194 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13196 * ada-valprint.c (ada_val_print_1): Replace calls to
13197 ada_val_print_1 by calls to val_print.
13199 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13201 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13202 Update calls to self accordingly. Replace calls to c_val_print
13203 by calls to val_print.
13205 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13207 * ada-valprint.c (print_record): Delete declaration.
13208 (adjust_type_signedness, ada_val_print_1): Likewise.
13209 (ada_val_print): Move function implementation down.
13210 (print_variant_part, print_field_values, print_record):
13211 Move function implementation up.
13213 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13215 * python/py-type.c (typy_get_name): New function.
13216 (type_object_getset): Add entry for attribute "name".
13217 * NEWS: Add entry mentioning this new attribute.
13219 2014-01-07 Yao Qi <yao@codesourcery.com>
13221 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13224 2014-01-07 Yao Qi <yao@codesourcery.com>
13226 * gnu-nat.c (info_port_rights): Add qualifier const to
13229 2014-01-07 Yao Qi <yao@codesourcery.com>
13231 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13233 2014-01-07 Yao Qi <yao@codesourcery.com>
13235 * gnu-nat.c (make_inf) Update declaration.
13236 (make_inf): Make it static.
13237 (inf_set_traced): Likewise.
13238 (inf_port_to_thread, inf_task_died_status): Likewise.
13240 2014-01-07 Yao Qi <yao@codesourcery.com>
13242 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13244 2014-01-07 Yao Qi <yao@codesourcery.com>
13246 * gnu-nat.c (_initialize_gnu_nat): Declare.
13248 2014-01-07 Yao Qi <yao@codesourcery.com>
13250 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13252 (struct gdbarch_info) <byte_order>: Change type to
13254 <byte_order_for_code>: Likewise.
13255 * gdbarch.c, gdbarch.h: Regenerated.
13257 2014-01-06 Sasha Smundak <asmundak@google.com>
13259 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13261 2014-01-06 Tom Tromey <tromey@redhat.com>
13263 * doublest.c (convert_doublest_to_floatformat): Use const, not
13265 * somread.c (som_symtab_read): Likewise.
13267 2014-01-07 Hui Zhu <hui@codesourcery.com>
13269 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13270 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13271 (gdb_bfd_fopen): Ditto.
13272 (gdb_bfd_openr): Ditto.
13273 (gdb_bfd_openw): Ditto.
13274 (gdb_bfd_openr_iovec): Ditto.
13275 (gdb_bfd_fdopenr): Ditto.
13276 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13277 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13279 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13281 * symfile-mem.c (symbol_file_add_from_memory): Removed
13282 gdb_bfd_stash_filename.
13284 2014-01-03 Doug Evans <dje@google.com>
13286 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13289 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13291 Update year range in copyright notice of all files.
13293 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13295 * top.c (print_gdb_version): Set copyright year to 2014.
13297 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13299 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13301 For older changes see ChangeLog-2013.
13307 version-control: never