1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
4 (hppa_hpux_iterate_over_regset_sections): New.
5 (hppa_hpux_init_abi): Adjust gdbarch initialization.
6 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
7 (hppa_linux_iterate_over_regset_sections): New.
8 (hppa_linux_init_abi): Adjust.
9 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
10 (hppanbsd_iterate_over_regset_sections): New.
11 (hppanbsd_init_abi): Adjust.
12 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
13 (hppaobsd_iterate_over_regset_sections): New.
14 (hppaobsd_init_abi): Adjust.
16 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
18 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
19 (frv_linux_iterate_over_regset_sections): New.
20 (frv_linux_init_abi): Adjust gdbarch initialization.
22 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
24 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
25 (armbsd_iterate_over_regset_sections): New prototype.
26 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
27 (armbsd_iterate_over_regset_sections): New.
28 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
31 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
33 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
34 (alpha_linux_iterate_over_regset_sections): New.
35 (alpha_linux_init_abi): Adjust gdbarch initialization.
36 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
38 (alphanbsd_iterate_over_regset_sections): New prototype.
40 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
42 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
44 (aarch64_linux_iterate_over_regset_sections): New.
45 (aarch64_linux_init_abi): Adjust gdbarch initialization.
47 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
49 * fbsd-tdep.c: New file.
50 * fbsd-tdep.h: New file.
51 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
52 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
53 (ALLDEPFILES): Add fbsd-tdep.c.
55 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
57 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
59 * gdbarch.h: Regenerate.
60 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
62 (get_core_register_section): Add parameter 'regset' and use it, if
63 set. Add parameter 'min_size' and verify the bfd section size
65 (get_core_registers_cb): Add parameter 'regset' and pass it to
66 get_core_register section. For the "standard" register sections
67 ".reg" and ".reg2", set an appropriate default for human_name.
68 (get_core_registers): Don't abort when the gdbarch has an iterator
69 but no regset_from_core_section. Add NULL/0 for parameters
70 'regset'/'min_size' in calls to get_core_register_section.
71 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
72 'regset' and use it instead of calling the
73 regset_from_core_section gdbarch method.
74 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
75 * i386-tdep.c (i386_supply_xstateregset)
76 (i386_collect_xstateregset, i386_xstateregset): Moved to
78 (i386_regset_from_core_section): Drop handling for .reg-xfp and
80 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
81 core file support only if the regset iterator hasn't been set.
82 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
83 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
84 Moved from i386-tdep.c and renamed to *_linux*.
85 (i386_linux_iterate_over_regset_sections): Add regset parameter to
86 each callback invocation. Allow any .reg-xstate size when reading
88 * amd64-tdep.c (amd64_supply_xstateregset)
89 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
91 (amd64_regset_from_core_section): Remove.
92 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
93 install an amd64-specific regset_from_core_section gdbarch method.
94 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
95 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
96 Moved from amd64-tdep.c and renamed to *_linux*.
97 (amd64_linux_iterate_over_regset_sections): Add regset parameter
98 to each callback invocation. Allow any .reg-xstate size when
99 reading from a core file.
100 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
101 (arm_linux_iterate_over_regset_sections): Add regset parameter to
102 each callback invocation.
103 (arm_linux_init_abi): No longer set the regset_from_core_section
105 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
106 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
107 each callback invocation.
108 (ppc_linux_init_abi): No longer set the regset_from_core_section
110 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
111 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
112 (s390_regset_from_core_section): Remove.
113 (s390_iterate_over_regset_sections): Add regset parameter to each
115 (s390_gdbarch_init): No longer set the regset_from_core_section
116 gdbarch method. Drop initialization of deleted tdep fields.
118 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
120 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
121 (amd64_linux_iterate_over_regset_sections): New.
122 (amd64_linux_init_abi_common): Don't install the regset section
123 list, but the new iterator in gdbarch.
124 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
125 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
126 (arm_linux_iterate_over_regset_sections): ...here. New function.
127 (arm_linux_init_abi): Set iterator instead of section list.
128 * corelow.c (get_core_registers_cb): New function, logic moved
130 (get_core_registers): ...loop body here. Use new iterator method
131 instead of walking through the regset section list.
132 * gdbarch.sh: Remove 'core_regset_sections'. New method
133 'iterate_over_regset_sections'. New typedef
134 'iterate_over_regset_sections_cb'.
135 * gdbarch.c: Regenerate.
136 * gdbarch.h: Likewise.
137 * i386-linux-tdep.c (i386_linux_regset_sections)
138 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
140 (i386_linux_iterate_over_regset_sections): New.
141 (i386_linux_init_abi): Don't choose a regset section list, but
142 install new iterator in gdbarch.
143 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
144 (linux_collect_regset_section_cb): New function, logic moved
146 (linux_collect_thread_registers): ...loop body here. Use iterator
147 method instead of walking through list.
148 (linux_make_corefile_notes_1): Check for presence of iterator
149 method instead of regset section list.
150 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
151 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
152 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
153 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
154 (ppc_linux_iterate_over_regset_sections): ...here. New function.
155 (ppc_linux_init_abi): Don't choose from above regset section
156 lists, but install new iterator in gdbarch.
157 * regset.h (struct core_regset_section): Remove.
158 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
159 have_linux_v1, have_linux_v2, and have_tdb.
160 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
161 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
162 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
163 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
164 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
165 (s390_iterate_over_regset_sections): ...here. New function. Use
167 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
168 regset section lists, but install new iterator.
170 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
172 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
174 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
176 * progspace.c (print_program_space): Don't prune program spaces
177 before printing them.
179 2014-09-25 Pedro Alves <palves@redhat.com>
181 * infrun.c (user_visible_resume_ptid): Don't check
182 singlestep_breakpoints_inserted_p.
184 2014-09-25 Pedro Alves <palves@redhat.com>
186 * breakpoint.c (should_be_inserted): Add debug output.
188 2014-09-25 Pedro Alves <palves@redhat.com>
190 * infrun.c (stepping_past_instruction_at)
191 (clear_exit_convenience_vars): Point at infrun.h instead of
193 (handle_signal_stop): Fix typo.
195 2014-09-24 Yao Qi <yao@codesourcery.com>
197 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
200 2014-09-22 Gary Benson <gbenson@redhat.com>
202 * target.c (target_stop): Updated comment.
204 2014-09-22 Gary Benson <gbenson@redhat.com>
206 * target/target.h (target_stop_ptid): Renamed as...
207 (target_stop_and_wait): New function. Updated comment.
209 (target_continue_ptid): Renamed as...
210 (target_continue_no_signal): New function. Updated comment.
213 2014-09-22 Pedro Alves <palves@redhat.com>
215 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
217 * breakpoint.c (enum ugll_insert_mode): New enum.
218 (always_inserted_mode): Now a plain boolean.
219 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
220 (breakpoints_always_inserted_mode): Delete.
221 (breakpoints_should_be_inserted_now): New function.
222 (insert_breakpoints): Pass UGLL_INSERT to
223 update_global_location_list instead of calling
224 insert_breakpoint_locations manually.
225 (create_solib_event_breakpoint_1): New, factored out from ...
226 (create_solib_event_breakpoint): ... this.
227 (create_and_insert_solib_event_breakpoint): Use
228 create_solib_event_breakpoint_1 instead of calling
229 insert_breakpoint_locations manually.
230 (update_global_location_list): Change parameter type from boolean
231 to enum ugll_insert_mode. All callers adjusted. Adjust to use
232 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
233 (update_global_location_list_nothrow): Change parameter type from
234 boolean to enum ugll_insert_mode.
235 (_initialize_breakpoint): "breakpoint always-inserted" option is
236 now a boolean command. Update help text.
237 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
238 (breakpoints_should_be_inserted_now): New declaration.
239 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
240 Remove breakpoints_always_inserted_mode check.
241 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
242 * remote.c (remote_start_remote): Likewise.
244 2014-09-22 Pedro Alves <palves@redhat.com>
246 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
247 (insert_breakpoints): Don't call insert_breakpoint_locations here.
248 Instead, pass UGLL_INSERT to update_global_location_list.
249 (update_global_location_list): Change parameter type from boolean
250 to enum ugll_insert_mode. All callers adjusted. Adjust to use
251 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
252 (create_solib_event_breakpoint_1): New, factored out from ...
253 (create_solib_event_breakpoint): ... this.
254 (create_and_insert_solib_event_breakpoint): Use
255 create_solib_event_breakpoint_1 instead of calling
256 insert_breakpoint_locations manually.
257 (update_global_location_list): Handle UGLL_INSERT.
259 2014-09-22 Pedro Alves <palves@redhat.com>
261 * breakpoint.c (enum ugll_insert_mode): New enum.
262 (update_global_location_list)
263 (update_global_location_list_nothrow): Change parameter type from
264 boolean to enum ugll_insert_mode. All callers adjusted.
266 2014-09-19 Joel Brobecker <brobecker@adacore.com>
268 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
269 SystemTap support in GDB.
271 2014-09-19 Don Breazeal <donb@codesourcery.com>
273 * linux-nat.c (linux_handle_extended_wait): Call
274 linux_ptrace_get_extended_event.
275 (wait_lwp): Call linux_is_extended_waitstatus.
276 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
277 and linux_is_extended_waitstatus.
278 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
279 linux_ptrace_get_extended_event.
280 (linux_ptrace_get_extended_event): New function.
281 (linux_is_extended_waitstatus): New function.
282 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
283 (linux_is_extended_waitstatus): New declarations.
285 2014-09-19 Yao Qi <yao@codesourcery.com>
287 * dwarf2read.c (dwarf_decode_lines): Update declaration.
288 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
289 comments. Callers update.
290 (dwarf_decode_lines): Likewise.
291 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
292 comments. Skip the line table if 'lowpc' is greater than
293 'address'. Don't check
294 dwarf2_per_objfile->has_section_at_zero.
296 2014-09-18 Doug Evans <dje@google.com>
298 * NEWS: Mention new "producer" attribute of gdb.Symtab.
299 * python/py-symtab.c (stpy_get_producer): New function.
300 (symtab_object_getset): Add "producer" attribute.
302 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
305 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
306 (do_captured_read_memory_integer): Remove.
307 (safe_read_memory_integer): Use target_read_memory directly instead
308 of catching errors in do_captured_read_memory_integer.
310 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
312 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
315 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
317 * objc-lang.c (find_implementation_from_class): Remove dead code.
319 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
322 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
323 "fprintf_unfiltered (gdb_stdlog...)".
325 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
328 * breakpoint.h (struct watchpoint): New fields val_bitpos and
330 * breakpoint.c (watch_command_1): Use these fields to retain
331 bitfield information.
332 (extract_bitfield_from_watchpoint_value): New function.
333 (watchpoint_check): Use it.
334 (update_watchpoint): Use it. Optimize the address and length of a
335 HW watchpoint pointing to a bitfield.
336 * value.h (unpack_value_bitfield): New prototype.
337 * value.c (unpack_value_bitfield): Make extern.
339 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
341 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
343 * gnu-nat.c (inf_threads): New function.
344 * gnu-nat.h (inf_threads_ftype): New typedef.
345 (inf_threads): New declaration.
346 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
347 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
348 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
349 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
350 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
351 (i386_gnu_dr_get_control): New functions.
352 (reg_addr): New structure.
353 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
354 i386 debugging register hooks.
355 * NEWS: Mention this.
357 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
359 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
360 vector data transfer instructions.
361 (arm_record_coproc_data_proc): Updated.
363 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
365 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
366 arm_record_exreg_ld_st_insn.
367 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
370 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
372 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
373 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
374 processing instructions.
376 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
378 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
379 for advance SIMD struct ld/st insn.
380 (thumb2_record_decode_insn_handler): Replace stub handler with
381 thumb2_record_asimd_struct_ld_st.
383 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
385 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
386 for asimd, vfp and coprocessor insns.
387 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
388 and coprocessor insns.
389 (thumb2_record_coproc_insn): New function.
390 (thumb2_record_decode_insn_handler): Update coprocessor insns record
392 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
395 2014-09-13 Doug Evans <xdje42@gmail.com>
397 * NEWS: Mention new "queue-signal" command.
398 * infcmd.c (queue_signal_command): New function.
399 (_initialize_infcmd): Add new queue-signal command.
401 2014-09-13 Doug Evans <xdje42@gmail.com>
403 * linux-nat.c (wait_lwp): Add debugging printf.
404 (linux_nat_wait_1): Ditto.
406 2014-09-12 Pedro Alves <palves@redhat.com>
408 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
409 (create_and_insert_solib_event_breakpoint): New functions.
410 * breakpoint.h (create_and_insert_solib_event_breakpoint)
411 (remove_solib_event_breakpoints_at_next_stop): New declarations.
412 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
413 (remove_dbx_link_breakpoint): Delete function.
414 (insert_dbx_link_bpt_in_file): Use
415 create_and_insert_solib_event_breakpoint instead of
416 deprecated_insert_raw_breakpoint.
417 (procfs_wait): Don't check whether we hit __dbx_link here.
418 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
420 * solib-irix.c (base_breakpoint): Delete global.
421 (disable_break): Delete function.
422 (enable_break): Use create_solib_event_breakpoint
423 instead of deprecated_insert_raw_breakpoint.
424 (irix_solib_handle_event): New function.
425 (irix_solib_create_inferior_hook): Don't run the target or disable
426 the mapping-complete breakpoint here.
427 (_initialize_irix_solib): Install irix_solib_handle_event as
428 so_ops->handle_event hook.
430 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
431 Ulrich Weigand <uweigand@de.ibm.com>
434 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
435 instead of read_memory_unsigned_integer.
437 2014-09-12 Gary Benson <gbenson@redhat.com>
439 * nat/linux-waitpid.c: Include common-defs.h.
440 [GDBSERVER]: Add FIXME comment.
441 [!GDBSERVER]: Don't include defs.h or signal.h.
442 (linux_debug) [!GDBSERVER]: Remove empty block.
444 2014-09-12 Gary Benson <gbenson@redhat.com>
446 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
447 Don't include defs.h or server.h.
449 2014-09-12 Gary Benson <gbenson@redhat.com>
451 * nat/linux-btrace.c: Include common-defs.h.
452 Don't include defs.h, server.h or gdbthread.h.
453 * nat/linux-btrace.h (struct target_ops): New forward declaration.
455 2014-09-12 Gary Benson <gbenson@redhat.com>
457 * common/agent.c: Include common-defs.h.
458 Don't include defs.h or server.h.
459 * common/buffer.c: Likewise.
460 * common/common-debug.c: Likewise.
461 * common/common-utils.c: Likewise.
462 * common/errors.c: Likewise.
463 * common/filestuff.c: Likewise.
464 * common/format.c: Likewise.
465 * common/gdb_vecs.c: Likewise.
466 * common/print-utils.c: Likewise.
467 * common/ptid.c: Likewise.
468 * common/rsp-low.c: Likewise.
469 * common/signals.c: Likewise.
470 * common/vec.c: Likewise.
471 * common/xml-utils.c: Likewise.
472 * nat/linux-osdata.c: Likewise.
473 * nat/linux-procfs.c: Likewise.
474 * nat/linux-ptrace.c: Likewise.
475 * nat/mips-linux-watch.c: Likewise.
476 * target/waitstatus.c: Likewise.
478 2014-09-12 Tom Tromey <tromey@redhat.com>
479 Gary Benson <gbenson@redhat.com>
481 * common/common-regcache.h: New file.
482 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
483 * regcache.h: Include common-regcache.h.
484 (regcache_read_pc): Don't declare.
485 * regcache.c (get_thread_regcache_for_ptid): New function.
486 * nat/linux-btrace.c: Don't include regcache.h.
487 Include common-regcache.h.
488 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
490 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
492 * regcache.h (struct regset): Declare.
494 2014-09-11 Pedro Alves <palves@redhat.com>
497 * main.c: Include "infrun.h".
498 (catch_command_errors, catch_command_errors_const): Wait for the
499 foreground command to complete.
500 * top.c (maybe_wait_sync_command_done): New function, factored out
502 (maybe_wait_sync_command_done): ... here.
503 * top.h (maybe_wait_sync_command_done): New declaration.
505 2014-09-11 Tom Tromey <tromey@redhat.com>
506 Gary Benson <gbenson@redhat.com>
508 * common/symbol.h: New file.
509 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
510 * minsyms.c (find_minimal_symbol_address): New function.
511 * common/agent.c: Include common/symbol.h.
512 [!GDBSERVER]: Don't include objfiles.h.
513 (agent_look_up_symbols): Use find_minimal_symbol_address.
515 2014-09-11 Gary Benson <gbenson@redhat.com>
517 * target/target.h (target_stop_ptid, target_continue_ptid):
519 * target.c (target_stop_ptid, target_continue_ptid): New
521 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
522 (agent_run_command): Always use target_stop_ptid and
523 target_continue_ptid.
525 2014-09-11 Tom Tromey <tromey@redhat.com>
526 Gary Benson <gbenson@redhat.com>
528 * target/target.h: New file.
529 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
530 * target.h: Include target/target.h.
531 (target_read_memory, target_write_memory): Don't declare.
532 * target.c (target_read_uint32): New function.
533 * common/agent.c: Include target/target.h.
534 [!GDBSERVER]: Don't include target.h.
535 (helper_thread_id): Type changed to uint32_t.
536 (agent_get_helper_thread_id): Use target_read_uint32.
537 (agent_run_command): Always use target_read_memory and
539 (agent_capability): Type changed to uint32_t.
540 (agent_capability_check): Use target_read_uint32.
542 2014-09-11 Gary Benson <gbenson@redhat.com>
544 * common/common-debug.h (show_debug_regs): Declare.
545 * common/common-debug.c (show_debug_regs): Define.
546 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
547 all uses with show_debug_regs. Replace all uses that considered
548 debug_hw_points as a multi-value integer with straight boolean
550 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
551 with show_debug_regs.
552 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
553 all uses with show_debug_regs.
554 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
555 uses with show_debug_regs.
557 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
559 * findvar.c (address_from_register): Handle targets requiring
560 a special conversion routine even for plain pointer types.
562 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
564 * rs6000-nat.c (exec_one_dummy_insn): Remove.
565 (store_register): Do not call exec_one_dummy_insn.
567 2014-09-10 Joel Brobecker <brobecker@adacore.com>
569 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
570 dereference it first. Use value_enclosing_type instead of
572 (ada_array_length): Likewise.
574 2014-09-10 Joel Brobecker <brobecker@adacore.com>
576 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
577 Adjust function implementation and documentation accordingly.
578 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
579 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
580 Update call to ada_value_ptr_subscript.
582 2014-09-10 Joel Brobecker <brobecker@adacore.com>
584 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
585 instead of VAL's type.
587 2014-09-10 Joel Brobecker <brobecker@adacore.com>
589 * amd64-linux-nat.c: Add <sys/uio.h> #include.
591 2014-09-09 Doug Evans <xdje42@gmail.com>
594 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
595 last parameter to pkg-config, not first.
596 * configure.ac: Pass --with-guile provided pkg-config path to
597 GDB_GUILE_PROGRAM_NAMES.
598 * configure: Regenerate.
600 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
602 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
605 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
607 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
608 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
609 the list of sections determining GDB_OSABI_IRIX.
611 2014-09-09 James Hogan <james.hogan@imgtec.com>
613 * MAINTAINERS (Write After Approval): Add "James Hogan".
615 2014-09-09 James Hogan <james.hogan@imgtec.com>
617 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
619 2014-09-09 Joel Brobecker <brobecker@adacore.com>
621 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
623 2014-09-08 Doug Evans <xdje42@gmail.com>
626 * guile.c: #include <signal.h>.
627 (_initialize_guile): Block SIGCHLD while initializing Guile.
629 Replaces the following, which is reverted.
631 2014-07-26 Doug Evans <xdje42@gmail.com>
634 * configure.ac: Add check for header gc/gc.h.
635 Add check for function setenv.
636 * configure: Regenerate.
637 * config.in: Regenerate.
638 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
640 2014-09-08 Doug Evans <xdje42@gmail.com>
642 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
643 with named constant. Fix style of pointer comparison.
644 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
646 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
649 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
650 decide whether we display the command on "show user".
651 * cli/cli-script.c (show_user_1): Only verify cmdlines after
652 printing command name.
653 * cli/cli-decode.h (cli_user_command_p): Declare new function.
654 * cli/cli-decode.c (cli_user_command_p): Create helper function
655 to verify whether cmd_list_element is a user-defined command.
657 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
660 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
661 Fix goto out of TRY_CATCH.
663 2014-09-06 Doug Evans <xdje42@gmail.com>
664 Tom Tromey <tromey@redhat.com>
667 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
668 $_any_caller_matches.
669 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
670 * python/lib/gdb/function/caller_is.py: New file.
672 2014-09-06 Doug Evans <xdje42@gmail.com>
674 * infcmd.c (program_info): Fix typo.
676 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
679 * stap-probe.c (stap_parse_single_operand): Delete unused variable
680 'number'. New variable 'has_digit'. Rewrite code to deal with
681 subexpressions on SDT probes.
683 2014-09-04 Pedro Alves <palves@redhat.com>
685 * c-exp.y (parse_number): Skip handling base-switching prefixes if
686 the input is only one character long.
688 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
691 * f-valprint.c (f_val_print): Specify the correct print option to
692 use when printing integer values.
694 2014-09-04 Gary Benson <gbenson@redhat.com>
696 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
697 Remove code to cope with LWPs wrapped as PIDs.
698 Add assertions to ensure no wrapped LWPs are passed.
700 2014-09-04 Pedro Alves <palves@redhat.com>
702 * value.c (value_ranges_copy_adjusted): New function, factored out
704 (value_contents_copy_raw): ... here.
705 (unpack_value_bits_as_long_1): Rename back to ...
706 (unpack_bits_as_long): ... this. Remove 'original_value' and
707 'result' parameters. Change return type to LONGEST.
708 (unpack_value_bits_as_long): Delete.
709 (unpack_value_field_as_long_1): Delete.
710 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
711 (unpack_value_bitfield): New function.
712 (value_field_bitfield): Reimplement using unpack_value_bitfield.
713 (value_fetch_lazy): Use unpack_value_bitfield.
714 * value.h (unpack_value_bits_as_long): Delete declaration.
716 2014-09-03 Sasha Smundak <asmundak@google.com>
718 * python/py-frame.c (frapy_read_register): New function.
720 2014-09-03 James Hogan <james.hogan@imgtec.com>
722 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
723 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
725 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
728 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
730 (add_cmd): Set "completer_handle_brkchars" to NULL.
731 * cli/cli-decode.h (struct cmd_list_element)
732 <completer_handle_brkchars>: New field.
733 * command.h (completer_ftype_void): New typedef.
734 (set_cmd_completer_handle_brkchars): New prototype.
735 * completer.c (set_gdb_completion_word_break_characters): New
737 (complete_line_internal): Call "completer_handle_brkchars"
738 callback from command.
739 * completer.h: Include "command.h".
740 (set_gdb_completion_word_break_characters): New prototype.
741 * python/py-cmd.c (cmdpy_completer_helper): New function.
742 (cmdpy_completer_handle_brkchars): New function.
743 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
744 (cmdpy_init): Set completer_handle_brkchars to
745 cmdpy_completer_handle_brkchars.
747 2014-09-03 Gary Benson <gbenson@redhat.com>
749 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
750 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
751 Loop conditions changed to equivalent form.
752 (struct x86_debug_reg_state): Updated dr_ref_count comment.
753 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
754 ALL_DEBUG_ADDRESS_REGISTERS.
756 2014-09-03 Joel Brobecker <brobecker@adacore.com>
758 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
761 2014-09-02 Doug Evans <dje@google.com>
763 * typeprint.c (find_global_typedef): Fix comment.
765 2014-09-02 Gary Benson <gbenson@redhat.com>
767 * i386-nat.h: Renamed as...
768 * x86-nat.h: New file. All type, function and variable name
769 prefixes changed from "i386_" to "x86_". All references updated.
770 * i386-nat.c: Renamed as...
771 * x86-nat.c: New file. All type, function and variable name
772 prefixes changed from "i386_" to "x86_". All references updated.
773 * common/i386-xstate.h: Renamed as...
774 * common/x86-xstate.h: New file. All type, function and variable
775 name prefixes changed from "i386_" to "x86_". All references
777 * nat/i386-cpuid.h: Renamed as...
778 * nat/x86-cpuid.h: New file. All type, function and variable name
779 prefixes changed from "i386_" to "x86_". All references updated.
780 * nat/i386-gcc-cpuid.h: Renamed as...
781 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
782 name prefixes changed from "i386_" to "x86_". All references
784 * nat/i386-dregs.h: Renamed as...
785 * nat/x86-dregs.h: New file. All type, function and variable name
786 prefixes changed from "i386_" to "x86_". All references updated.
787 * nat/i386-dregs.c: Renamed as...
788 * nat/x86-dregs.c: New file. All type, function and variable name
789 prefixes changed from "i386_" to "x86_". All references updated.
791 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
793 * varobj.c (_initialize_varobj): Move to the end of file.
795 2014-08-29 Gary Benson <gbenson@redhat.com>
797 * common/common-exceptions.h: New file.
798 * common/common-exceptions.c: Likewise.
799 * Makefile.in (SFILES): Add common/common-exceptions.c.
800 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
801 (COMMON_OBS): Add common-exceptions.o.
802 (common-exceptions.o): New rule.
803 * exceptions.h (common-exceptions.h): Include.
804 (gdb_setjmp.h): Do not include.
805 (return_reason): Moved to common-exceptions.h.
806 (enum return_reason): Likewise.
807 (RETURN_MASK): Likewise.
808 (typedef return_mask): Likewise.
809 (enum errors): Likewise.
810 (struct gdb_exception): Likewise.
811 (exceptions_state_mc_init): Likewise.
812 (exceptions_state_mc_action_iter): Likewise.
813 (exceptions_state_mc_action_iter_1): Likewise.
814 (TRY_CATCH): Likewise.
815 (throw_exception): Likewise.
816 (throw_verror): Likewise.
817 (throw_vquit): Likewise.
818 (throw_error): Likewise.
819 (throw_quit): Likewise.
820 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
821 (enum catcher_action): Likewise.
822 (struct catcher): Likewise.
823 (current_catcher): Likewise.
824 (catcher_list_size): Likewise.
825 (exceptions_state_mc_init): Likewise.
826 (catcher_pop): Likewise.
827 (exceptions_state_mc): Likewise.
828 (exceptions_state_mc_action_iter): Likewise.
829 (exceptions_state_mc_action_iter_1): Likewise.
830 (throw_exception): Likewise.
831 (exception_messages): Likewise.
832 (exception_messages_size): Likewise.
833 (throw_it): Likewise.
834 (throw_verror): Likewise.
835 (throw_vquit): Likewise.
836 (throw_error): Likewise.
837 (throw_quit): Likewise.
838 (prepare_to_throw_exception): New function.
840 2014-08-29 Gary Benson <gbenson@redhat.com>
842 * common/gdb_setjmp.h: New file.
843 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
844 * configure.ac: Move sigsetjmp check...
845 * common/common.m4: ...here.
846 * configure: Regenerate.
847 * cp-support.c (SIGJMP_BUF): Delete.
848 (SIGSETJMP): Likewise.
849 (SIGLONGJMP): Likewise.
850 * exceptions.h (gdb_setjmp.h): Include.
851 (setjmp.h): Do not include.
852 (EXCEPTIONS_SIGJMP_BUF): Delete.
853 (EXCEPTIONS_SIGSETJMP): Likewise.
854 (EXCEPTIONS_SIGLONGJMP): Likewise.
855 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
857 * exceptions.c: Likewise.
859 2014-08-29 Gary Benson <gbenson@redhat.com>
861 * cleanups.h: Moved to...
862 * common/cleanups.h: New file.
863 * cleanups.c: Moved to...
864 * common/cleanups.c: New file. Include common-defs.h and
865 cleanups.h. Do not include defs.h.
866 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
867 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
868 (cleanups.o): New rule.
870 2014-08-29 Gary Benson <gbenson@redhat.com>
872 * common/errors.h (internal_warning): New declaration.
873 (internal_vwarning): Likewise.
874 * common/errors.c (internal_warning): New function.
875 * utils.h (internal_warning): Don't declare.
876 (internal_vwarning): Likewise.
877 * utils.c (internal_warning): Removed.
879 2014-08-29 Gary Benson <gbenson@redhat.com>
881 * main.c (captured_main): Use warning during startup.
882 Prefix startup warning messages with command name.
884 2014-08-29 Gary Benson <gbenson@redhat.com>
886 * main.c (captured_main): Handle usage errors with error.
888 2014-08-29 Gary Benson <gbenson@redhat.com>
890 * go32-nat.c (go32_create_inferior): Replace a fprintf/
891 exit pair with a call to error. Wrap the message with _().
893 2014-08-29 Gary Benson <gbenson@redhat.com>
895 * main.c (captured_main): Replace a fprintf/exit
896 pair with a call to error. Wrap the message with _().
898 2014-08-29 Gary Benson <gbenson@redhat.com>
900 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
901 pairs with calls to error. Wrap the message with _().
903 2014-08-29 Gary Benson <gbenson@redhat.com>
905 * utils.c (vwarning): Protect calls to target_terminal_ours
908 2014-08-29 Gary Benson <gbenson@redhat.com>
910 * exceptions.c (print_flush): Protect calls to
911 target_terminal_ours and wrap_here.
913 2014-08-29 Gary Benson <gbenson@redhat.com>
915 * utils.h (filtered_printing_initialized): New declaration.
916 * utils.c (abort_with_message): New function.
917 (internal_vproblem): Use abort_with_message for first level
918 recursive internal problems, and if gdb_stderr is not set up.
919 Protect calls to target_terminal_ours, begin_line and query.
921 2014-08-28 Doug Evans <dje@google.com>
923 * symtab.c (in_prologue): Move definition to better spot.
924 (skip_prologue_using_sal): Ditto.
926 2014-08-28 Doug Evans <dje@google.com>
928 * symtab.c (find_function_start_sal): Move definition to better spot.
930 2014-08-28 Yao Qi <yao@codesourcery.com>
932 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
933 found_stack_adjust in forward scan. Remove condition check
934 on found_stack_adjust which is always true. Indent the code.
936 2014-08-28 Yao Qi <yao@codesourcery.com>
938 * dwarf2read.c (dwarf_decode_lines): Update declaration.
939 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
940 (dwarf_decode_lines): Remove argument
941 want_line_info. Remove condition check on want_line_info.
944 2014-08-27 Doug Evans <dje@google.com>
946 * dwarf2read.c (dwarf_record_line): Fix typo.
948 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
950 * target.h (struct target_ops::to_terminal_save_ours): Remove
952 (target_terminal_save_ours): Remove macro.
953 * target-delegates.c: Regenerate.
954 * inf-child.c (inf_child_target): Don't set the nonexistent
955 field to_terminal_save_ours.
956 * inferior.h (child_terminal_save_ours): Remove declaration.
957 * terminal.h (gdb_save_tty_state): New declaration.
958 * inflow.c (child_terminal_save_ours): Rename to ...
959 (gdb_save_tty_state): ... this.
960 * tui/tui.c: Include terminal.h.
961 (tui_enable): Use gdb_save_tty_state instead of
962 target_terminal_save_ours.
963 (tui_disable): Likewise.
965 2014-08-25 Doug Evans <dje@google.com>
967 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
968 Pass NULL instead of 0 for context pointer.
970 2014-08-25 Yao Qi <yao@codesourcery.com>
972 * dwarf2read.c: Fix grammatical error.
974 2014-08-24 Yao Qi <yao@codesourcery.com>
976 * dwarf2read.c (scan_partial_symbols): Update comments.
977 Rename argument 'need_pc' with 'set_addrmap'.
978 (add_partial_namespace): Rename argument 'need_pc' with
980 (add_partial_module): Likewise.
981 (add_partial_subprogram): Likewise. Update comments.
982 (dwarf2_name): Fix typo.
984 2014-08-22 Doug Evans <dje@google.com>
987 * dwarf2read.c (dwarf_record_line_p): New function.
988 (dwarf_decode_lines_1): Ignore subsequent line number entries
989 for the same line if any entry had a non-zero discriminator.
991 2014-08-22 Doug Evans <dje@google.com>
993 * buildsym.h (record_line_ftype): New typedef.
994 (record_line): Use it.
995 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
996 (dwarf_decode_lines_1): Call them.
998 2014-08-22 Yao Qi <yao@codesourcery.com>
1000 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1001 (ctf_end): Remove code.
1003 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1005 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1006 (linux_make_corefile_notes): call update_thread_list, protected against
1009 2014-08-21 Pedro Alves <palves@redhat.com>
1011 * infcmd.c (attach_command): Remove comment.
1013 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1015 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1016 unsigned LONGEST to ULONGEST.
1018 2014-08-20 Pedro Alves <palves@redhat.com>
1020 * Makefile.in (check-read1): New rule.
1022 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1024 * value.c (value_from_contents_and_address): Strip resolved_type's
1025 typedef layers before checking its TYPE_DATA_LOCATION.
1027 2014-08-20 Pedro Alves <palves@redhat.com>
1029 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1031 2014-08-20 Yao Qi <yao@codesourcery.com>
1033 * amd64-tdep.c (amd64_classify): Add a blank line after the
1034 example. Move "*/" to a new line.
1035 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1036 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1037 * dwarf2read.c (psymtab_include_file_name): Likewise.
1039 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1040 Pedro Alves <palves@redhat.com>
1044 * ada-lang.c (coerce_unspec_val_to_type): Use
1045 value_contents_copy_raw.
1046 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1047 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1048 * cp-valprint.c (cp_print_value_fields): Let the common printing
1049 code handle optimized out values.
1050 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1051 * d-valprint.c (dynamic_array_type): Use
1052 value_bits_any_optimized_out.
1053 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1054 check_any_valid fields.
1055 (check_pieced_value_bits): Delete and inline ...
1056 (check_pieced_synthetic_pointer): ... here.
1057 (check_pieced_value_validity): Delete.
1058 (check_pieced_value_invalid): Delete.
1059 (pieced_value_funcs): Remove check_validity and check_any_valid
1061 (read_pieced_value): Use mark_value_bits_optimized_out.
1062 (write_pieced_value): Switch to use
1063 mark_value_bytes_optimized_out.
1064 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1065 of assuming the whole value is optimized out.
1066 * findvar.c (read_frame_register_value): Remove special handling
1067 of optimized out registers.
1068 (value_from_register): Use mark_value_bytes_optimized_out.
1069 * frame-unwind.c (frame_unwind_got_optimized): Use
1070 mark_value_bytes_optimized_out.
1071 * jv-valprint.c (java_value_print): Adjust.
1072 (java_print_value_fields): Let the common printing code handle
1073 optimized out values.
1074 * mips-tdep.c (mips_print_register): Remove special handling of
1075 optimized out registers.
1076 * opencl-lang.c (lval_func_check_validity): Delete.
1077 (lval_func_check_any_valid): Delete.
1078 (opencl_value_funcs): Remove check_validity and check_any_valid
1080 * p-valprint.c (pascal_object_print_value_fields): Let the common
1081 printing code handle optimized out values.
1082 * stack.c (read_frame_arg): Remove special handling of optimized
1083 out values. Fetch both VAL and ENTRYVAL before comparing
1084 contents. Adjust to value_available_contents_eq rename.
1085 * valprint.c (valprint_check_validity)
1086 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1087 (val_print_array_elements): Adjust.
1088 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1089 (value_bits_any_optimized_out): New function.
1090 (value_entirely_covered_by_range_vector): New function, factored
1091 out from value_entirely_unavailable.
1092 (value_entirely_unavailable): Reimplement.
1093 (value_entirely_optimized_out): New function.
1094 (insert_into_bit_range_vector): New function, factored out from
1095 mark_value_bits_unavailable.
1096 (mark_value_bits_unavailable): Reimplement.
1097 (struct ranges_and_idx): New struct.
1098 (find_first_range_overlap_and_match): New function, factored out
1099 from value_available_contents_bits_eq.
1100 (value_available_contents_bits_eq): Rename to ...
1101 (value_contents_bits_eq): ... this. Check both unavailable
1102 contents and optimized out contents.
1103 (value_available_contents_eq): Rename to ...
1104 (value_contents_eq): ... this.
1105 (allocate_value_lazy): Remove reference to the old optimized_out
1107 (allocate_optimized_out_value): Use
1108 mark_value_bytes_optimized_out.
1109 (require_not_optimized_out): Adjust to check whether the
1110 optimized_out vec is empty.
1111 (ranges_copy_adjusted): New function, factored out from
1112 value_contents_copy_raw.
1113 (value_contents_copy_raw): Also copy the optimized out ranges.
1114 Assert the destination ranges aren't optimized out.
1115 (value_contents_copy): Update comment, remove call to
1116 require_not_optimized_out.
1117 (value_contents_equal): Adjust to check whether the optimized_out
1119 (set_value_optimized_out, value_optimized_out_const): Delete.
1120 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1122 (value_entirely_optimized_out, value_bits_valid): Delete.
1123 (value_copy): Take a VEC copy of the 'optimized_out' field.
1124 (value_primitive_field): Remove special handling of optimized out.
1125 (value_fetch_lazy): Assert that lazy values have no unavailable
1126 regions. Use value_bits_any_optimized_out. Remove some special
1127 handling for optimized out values.
1128 * value.h: Add intro comment about <optimized out> and
1130 (struct lval_funcs): Remove check_validity and check_any_valid
1132 (set_value_optimized_out, value_optimized_out_const): Remove.
1133 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1135 (value_bits_any_optimized_out): New declaration.
1136 (value_bits_valid): Delete declaration.
1137 (value_available_contents_eq): Rename to ...
1138 (value_contents_eq): ... this, and extend comments.
1140 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1142 Fix -fsanitize=address on unreadable inferior strings.
1143 * valprint.c (val_print_string): Fix access before BUFFER.
1145 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1147 * target.c (target_struct_size): Remove.
1148 (target_struct_allocsize): Remove.
1149 (DEFAULT_ALLOCSIZE): Remove.
1150 (target_ops_p): New typedef.
1151 (DEF_VEC_P (target_ops_p)): New vector type.
1152 (target_structs): Change type to VEC (target_ops_p).
1153 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1154 (find_default_run_target): Rewrite for loop following changes to
1157 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1159 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1160 Adjust code accordingly. Adjust function description comment.
1162 2014-08-19 Yao Qi <yao@codesourcery.com>
1164 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1167 2014-08-19 Alan Modra <amodra@gmail.com>
1169 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1170 * config.in: Regenerate.
1171 * configure: Regenerate.
1173 2014-08-19 Tom Tromey <tromey@redhat.com>
1174 Gary Benson <gbenson@redhat.com>
1176 * common/common-debug.h: New file.
1177 * common/common-debug.c: Likewise.
1178 * debug.c: Likewise.
1179 * Makefile.in (SFILES): Add common/common-debug.c.
1180 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1181 (COMMON_OBS): Add common-debug.o and debug.o.
1182 (common-debug.o): New rule.
1183 * common/common-defs.h: Include common-debug.h.
1184 * common/agent.c (debug_agent_printf): New function.
1185 (DEBUG_AGENT): Redefine.
1186 * nat/i386-dregs.c (debug_printf): Undefine.
1188 2014-08-19 Gary Benson <gbenson@redhat.com>
1190 * common/common-defs.h: Include print-utils.h.
1191 * utils.h: Do not include print-utils.h.
1193 2014-08-19 Tom Tromey <tromey@redhat.com>
1194 Gary Benson <gbenson@redhat.com>
1196 * common/common-types.h: New file.
1197 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1198 * common/common-defs.h: Include common-types.h.
1199 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1202 2014-08-19 Tom Tromey <tromey@redhat.com>
1203 Gary Benson <gbenson@redhat.com>
1205 * common/errors.h: New file.
1206 * common/errors.c: Likewise.
1207 * Makefile.in (SFILES): Add common/errors.c.
1208 (HFILES_NO_SRCDIR): Add common/errors.h.
1209 (COMMON_OBS): Add errors.o.
1210 (errors.o): New rule.
1211 * common/common-defs.h: Include errors.h.
1212 * utils.h (perror_with_name, error, verror, warning, vwarning):
1214 * common/common-utils.h: (malloc_failure, internal_error):
1217 2014-08-19 Gary Benson <gbenson@redhat.com>
1219 * utils.c (internal_vproblem): Always print the message.
1221 2014-08-18 Doug Evans <dje@google.com>
1223 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1225 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1227 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1228 Return 0 if TYPE is dynamic.
1229 (print_range): Add handling of dynamic ranges.
1231 2014-08-18 Keven Boell <keven.boell@intel.com>
1232 Joel Brobecker <brobecker@adacore.com>
1234 * gdbtypes.h (struct main_type): Add field "data_location".
1235 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1236 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1237 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1238 a dynamic data location.
1239 (resolve_dynamic_type): Add DW_AT_data_location handling.
1240 (copy_recursive, copy_type): Copy the data_location information
1242 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1243 * value.c (value_from_contents_and_address): Add
1244 DW_AT_data_location handling.
1246 2014-08-18 Keven Boell <keven.boell@intel.com>
1247 Joel Brobecker <brobecker@adacore.com>
1249 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1250 field "get_object_address".
1251 * dwarf2expr.c (execute_stack_op): Add handling for
1252 DW_OP_push_object_address.
1253 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1254 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1255 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1256 (dwarf_expr_get_obj_addr): New function.
1257 (dwarf_expr_ctx_funcs): Add get_object_address field.
1258 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1259 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1260 (dwarf2_evaluate_property): Add parameter "address". Use it.
1261 (needs_get_obj_addr): New function.
1262 (needs_frame_ctx_funcs): Add get_object_address field.
1263 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1264 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1265 (resolve_dynamic_array): Likewise.
1267 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1269 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1270 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1271 fixed value for records and unions for which some GNAT encodings
1274 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1276 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1277 rewrite to avoid "else if" and "else" constructs. Should be
1278 a no-op in practice.
1280 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1282 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1285 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1288 * eval.c: Update all calls to find_overload_match.
1289 * valarith.c: Likewise.
1290 (value_user_defined_cpp_op, value_user_defined_op): New
1291 argument NOSIDE. Update all callers.
1292 * valops.c (find_overload_match): New argument NOSIDE.
1293 * value.h (find_overload_match): Update signature.
1295 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1297 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1298 'items' methods instead of 'iteritems' method on dictionaries.
1300 2014-08-15 Doug Evans <dje@google.com>
1302 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1305 2014-08-15 Doug Evans <dje@google.com>
1307 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1309 2014-08-15 Doug Evans <dje@google.com>
1311 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1313 2014-08-15 Doug Evans <dje@google.com>
1315 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1318 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1320 * dcache.h: Include target.h, to avoid compile time warnings.
1322 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1324 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1325 frame_info" partial declaration.
1326 * gdbarch.h: Regenerate.
1328 2014-08-15 Yao Qi <yao@codesourcery.com>
1330 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1331 Add parameter 'decode_for_pst_p'. Callers update.
1333 2014-08-13 Yao Qi <yao@codesourcery.com>
1336 * configure.ac: Use local variable 'pos'.
1337 * configure: Regenerated.
1339 2014-08-11 Doug Evans <dje@google.com>
1341 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1342 message, it is redundant with "Reading symbols from ..." message.
1344 2014-08-10 Doug Evans <xdje42@gmail.com>
1346 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1348 2014-08-09 Yao Qi <yao@codesourcery.com>
1351 * remote.c (remote_xfer_partial): Remove dead code.
1353 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1355 * ia64-linux-tdep.c: Include "regset.h".
1356 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1357 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1358 (ia64_linux_supply_fpregset): New function.
1359 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1360 (ia64_linux_regset_from_core_section): New function.
1361 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1364 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1366 * m68klinux-tdep.c: Include "regset.h".
1367 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1368 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1369 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1370 (m68k_linux_regset_from_core_section): New function.
1371 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1374 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1376 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1377 function. Move logic to...
1378 (tilegx_linux_regmap): ... this new register map.
1379 (tilegx_linux_regset): Refer to register map, replace supply
1380 method by regcache_supply_regset, and add collect method.
1381 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1382 TILEGX_FIRST_EASY_REGNUM.
1384 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1386 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1387 that calls regcache_supply_regset and handles the EPC register
1388 separately. Move main logic to...
1389 (score7_linux_gregmap): ... this new register map.
1390 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1391 (score7_linux_gregset): Refer to register map. Add collect method.
1392 (score7_linux_regset_from_core_section): Replace
1393 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1394 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1395 (struct regset): Delete unused forward declaraction.
1396 (struct pt_regs): Delete structure definition.
1397 (elf_gregset_t): Delete typedef.
1399 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1401 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1402 (nios2_core_regset): Add collect method.
1404 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1406 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1407 platform-independent and don't write to read-only input buffer.
1408 (m32r_linux_collect_gregset): New function.
1409 (m32r_linux_gregset): Add collect method.
1411 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1413 * hppa-linux-tdep.c (greg_map): Rename to...
1414 (hppa_linux_gregmap): ... this. Also convert to
1415 regcache_map_entry format.
1416 (hppa_linux_supply_regset): Delete function.
1417 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1418 (hppa_linux_fpregmap): ... this new register map.
1419 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1420 register map, replace supply method by regcache_supply_regset, and
1421 add collect method regcache_collect_regset.
1423 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1425 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1426 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1427 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1428 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1429 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1430 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1431 (frv_linux_supply_gregset): Replace main logic by call to
1432 regcache_supply_regset, but keep clearing gr32-gr63.
1433 (frv_linux_supply_fpregset): Delete function.
1434 (frv_linux_gregset): Refer to appropriate register map and add
1435 regcache_collect_regset as the collect method.
1436 (frv_linux_fpregset): Likewise. Also exchange the supply method
1437 by regcache_supply_regset.
1439 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1441 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1442 by call to alpha_supply_int_regs.
1443 (alpha_linux_collect_gregset): New function.
1444 (alpha_linux_supply_fpregset): Replace logic by call to
1445 alpha_supply_fp_regs.
1446 (alpha_linux_collect_fpregset): New function.
1447 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1449 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1451 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1452 by call to regcache_collect_regset.
1453 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1454 instead of aarch64_linux_supply_gregset/_fpregset.
1455 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1456 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1457 header file instead.
1458 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1459 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1460 functions. Move logic to ...
1461 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1463 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1464 refer to new register maps, replace *_regset_from_core by
1465 regcache_supply_regset, and also use regcache_collect_regset.
1466 * aarch64-linux-tdep.h: Include "regset.h".
1467 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1469 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1470 macros, moved from C source file.
1471 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1472 variable declarations.
1474 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1476 * s390-linux-nat.c: Include "regset.h".
1477 (regmap_gregset): Delete macro.
1478 (s390_64_regmap_gregset): New register map for
1479 regcache_supply/_collect_regset.
1480 (s390_64_gregset): New regset.
1481 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1482 (regmap_fpregset): Delete macro.
1483 (s390_native_supply, s390_native_collect): Delete functions.
1484 (supply_gregset, fill_gregset): Replace s390-specific regmap
1485 handling by a call to regcache_supply/_collect_regset.
1486 (supply_fpregset, fill_fpregset): Call regcache_supply/
1487 _collect_regset instead of s390_native_supply/_collect.
1488 (fetch_regset, store_regset): Likewise. Also change the last
1489 parameter to a regset instead of a regmap.
1490 (s390_linux_fetch_inferior_registers)
1491 (390_linux_store_inferior_registers): Adjust last parameter in
1492 calls to fetch_regset and store_regset.
1493 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1494 (s390_gregmap): ... this. Also make static const and convert to
1495 regcache_map_entry format.
1496 (s390x_regmap_gregset): Delete.
1497 (s390_regmap_fpregset): Rename to...
1498 (s390_fpregmap): ... this. Make static const and convert to
1499 regcache_map_entry format.
1500 (s390_regmap_upper, s390_regmap_last_break)
1501 (s390x_regmap_last_break, s390_regmap_system_call)
1502 (s390_regmap_tdb): Likewise.
1503 (s390_supply_regset, s390_collect_regset): Remove functions.
1504 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1506 (s390_gregset, s390_fpregset, s390_upper_regset)
1507 (s390_last_break_regset, s390x_last_break_regset)
1508 (s390_system_call_regset, s390_tdb_regset): Make global and
1509 replace s390_supply/_collect_regset by regcache_supply/
1511 (s390x_gregset): Delete.
1512 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1513 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1514 (s390_regmap_fpregset, s390_regmap_last_break)
1515 (s390x_regmap_last_break, s390_regmap_system_call)
1516 (s390_regmap_tdb): Delete global variable declarations.
1517 (s390_gregset, s390_fpregset, s390_last_break_regset)
1518 (s390x_last_break_regset, s390_system_call_regset)
1519 (s390_tdb_regset): New global variable declarations.
1521 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1523 * regcache.c: Include "regset.h".
1524 (regcache_transfer_regset): New local function.
1525 (regcache_supply_regset, regcache_collect_regset): New functions.
1526 * regcache.h (struct regcache_map_entry): New structure.
1527 (REGCACHE_MAP_SKIP): New enum value.
1528 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1530 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1532 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1533 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1534 (ppc_linux_collect_gregset ): Likewise.
1535 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1536 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1537 (ppc_collect_vrregset): Likewise.
1538 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1541 2014-08-07 Yao Qi <yao@codesourcery.com>
1543 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1544 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1545 * remote.c (remote_read_bytes): Likewise.
1547 2014-08-07 Yao Qi <yao@codesourcery.com>
1549 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1551 2014-08-07 Yao Qi <yao@codesourcery.com>
1554 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1555 TARGET_XFER_OK instead of 0.
1557 2014-08-07 Gary Benson <gbenson@redhat.com>
1559 * common/common-defs.h: Include errno.h.
1560 * defs.h: Do not include errno.h.
1561 * ada-typeprint.c: Likewise.
1562 * c-typeprint.c: Likewise.
1563 * core-regset.c: Likewise.
1564 * corefile.c: Likewise.
1565 * corelow.c: Likewise.
1566 * event-loop.c: Likewise.
1567 * f-typeprint.c: Likewise.
1568 * gnu-nat.c: Likewise.
1569 * go32-nat.c: Likewise.
1570 * i386gnu-nat.c: Likewise.
1571 * m2-typeprint.c: Likewise.
1572 * nat/linux-btrace.c: Likewise.
1573 * p-typeprint.c: Likewise.
1574 * procfs.c: Likewise.
1575 * remote-sim.c: Likewise.
1576 * rs6000-nat.c: Likewise.
1577 * target.c: Likewise.
1578 * typeprint.c: Likewise.
1579 * ui-file.c: Likewise.
1580 * valops.c: Likewise.
1581 * valprint.c: Likewise.
1583 2014-08-07 Gary Benson <gbenson@redhat.com>
1585 * common/common-defs.h: Include string.h.
1586 * aarch64-tdep.c: Do not include string.h.
1587 * ada-exp.y: Likewise.
1588 * ada-lang.c: Likewise.
1589 * ada-lex.l: Likewise.
1590 * ada-typeprint.c: Likewise.
1591 * ada-valprint.c: Likewise.
1592 * aix-thread.c: Likewise.
1593 * alpha-linux-tdep.c: Likewise.
1594 * alpha-mdebug-tdep.c: Likewise.
1595 * alpha-nat.c: Likewise.
1596 * alpha-osf1-tdep.c: Likewise.
1597 * alpha-tdep.c: Likewise.
1598 * alphanbsd-tdep.c: Likewise.
1599 * amd64-dicos-tdep.c: Likewise.
1600 * amd64-linux-tdep.c: Likewise.
1601 * amd64-nat.c: Likewise.
1602 * amd64-sol2-tdep.c: Likewise.
1603 * amd64fbsd-tdep.c: Likewise.
1604 * amd64obsd-tdep.c: Likewise.
1605 * arch-utils.c: Likewise.
1606 * arm-linux-nat.c: Likewise.
1607 * arm-linux-tdep.c: Likewise.
1608 * arm-tdep.c: Likewise.
1609 * arm-wince-tdep.c: Likewise.
1610 * armbsd-tdep.c: Likewise.
1611 * armnbsd-nat.c: Likewise.
1612 * armnbsd-tdep.c: Likewise.
1613 * armobsd-tdep.c: Likewise.
1614 * avr-tdep.c: Likewise.
1615 * ax-gdb.c: Likewise.
1616 * ax-general.c: Likewise.
1617 * bcache.c: Likewise.
1618 * bfin-tdep.c: Likewise.
1619 * breakpoint.c: Likewise.
1620 * build-id.c: Likewise.
1621 * buildsym.c: Likewise.
1622 * c-exp.y: Likewise.
1623 * c-lang.c: Likewise.
1624 * c-typeprint.c: Likewise.
1625 * c-valprint.c: Likewise.
1626 * charset.c: Likewise.
1627 * cli-out.c: Likewise.
1628 * cli/cli-cmds.c: Likewise.
1629 * cli/cli-decode.c: Likewise.
1630 * cli/cli-dump.c: Likewise.
1631 * cli/cli-interp.c: Likewise.
1632 * cli/cli-logging.c: Likewise.
1633 * cli/cli-script.c: Likewise.
1634 * cli/cli-setshow.c: Likewise.
1635 * cli/cli-utils.c: Likewise.
1636 * coffread.c: Likewise.
1637 * common/agent.c: Likewise.
1638 * common/buffer.c: Likewise.
1639 * common/buffer.h: Likewise.
1640 * common/common-utils.c: Likewise.
1641 * common/filestuff.c: Likewise.
1642 * common/filestuff.c: Likewise.
1643 * common/format.c: Likewise.
1644 * common/print-utils.c: Likewise.
1645 * common/rsp-low.c: Likewise.
1646 * common/signals.c: Likewise.
1647 * common/vec.h: Likewise.
1648 * common/xml-utils.c: Likewise.
1649 * core-regset.c: Likewise.
1650 * corefile.c: Likewise.
1651 * corelow.c: Likewise.
1652 * cp-abi.c: Likewise.
1653 * cp-name-parser.y: Likewise.
1654 * cp-support.c: Likewise.
1655 * cp-valprint.c: Likewise.
1656 * cris-tdep.c: Likewise.
1657 * d-exp.y: Likewise.
1658 * darwin-nat.c: Likewise.
1659 * dbxread.c: Likewise.
1660 * dcache.c: Likewise.
1661 * demangle.c: Likewise.
1662 * dicos-tdep.c: Likewise.
1663 * disasm.c: Likewise.
1664 * doublest.c: Likewise.
1665 * dsrec.c: Likewise.
1666 * dummy-frame.c: Likewise.
1667 * dwarf2-frame.c: Likewise.
1668 * dwarf2loc.c: Likewise.
1669 * dwarf2read.c: Likewise.
1670 * elfread.c: Likewise.
1671 * environ.c: Likewise.
1673 * event-loop.c: Likewise.
1674 * exceptions.c: Likewise.
1676 * expprint.c: Likewise.
1677 * f-exp.y: Likewise.
1678 * f-lang.c: Likewise.
1679 * f-typeprint.c: Likewise.
1680 * f-valprint.c: Likewise.
1681 * fbsd-nat.c: Likewise.
1682 * findcmd.c: Likewise.
1683 * findvar.c: Likewise.
1684 * fork-child.c: Likewise.
1685 * frame.c: Likewise.
1686 * frv-linux-tdep.c: Likewise.
1687 * frv-tdep.c: Likewise.
1689 * gdb_bfd.c: Likewise.
1690 * gdbarch.c: Likewise.
1691 * gdbarch.sh: Likewise.
1692 * gdbtypes.c: Likewise.
1693 * gnu-nat.c: Likewise.
1694 * gnu-v2-abi.c: Likewise.
1695 * gnu-v3-abi.c: Likewise.
1696 * go-exp.y: Likewise.
1697 * go-lang.c: Likewise.
1698 * go32-nat.c: Likewise.
1699 * guile/guile.c: Likewise.
1700 * guile/scm-auto-load.c: Likewise.
1701 * hppa-hpux-tdep.c: Likewise.
1702 * hppa-linux-nat.c: Likewise.
1703 * hppanbsd-tdep.c: Likewise.
1704 * hppaobsd-tdep.c: Likewise.
1705 * i386-cygwin-tdep.c: Likewise.
1706 * i386-dicos-tdep.c: Likewise.
1707 * i386-linux-tdep.c: Likewise.
1708 * i386-nto-tdep.c: Likewise.
1709 * i386-sol2-tdep.c: Likewise.
1710 * i386-tdep.c: Likewise.
1711 * i386bsd-tdep.c: Likewise.
1712 * i386gnu-nat.c: Likewise.
1713 * i386nbsd-tdep.c: Likewise.
1714 * i386obsd-tdep.c: Likewise.
1715 * i387-tdep.c: Likewise.
1716 * ia64-libunwind-tdep.c: Likewise.
1717 * ia64-linux-nat.c: Likewise.
1718 * inf-child.c: Likewise.
1719 * inf-ptrace.c: Likewise.
1720 * inf-ttrace.c: Likewise.
1721 * infcall.c: Likewise.
1722 * infcmd.c: Likewise.
1723 * inflow.c: Likewise.
1724 * infrun.c: Likewise.
1725 * interps.c: Likewise.
1726 * iq2000-tdep.c: Likewise.
1727 * irix5-nat.c: Likewise.
1728 * jv-exp.y: Likewise.
1729 * jv-lang.c: Likewise.
1730 * jv-typeprint.c: Likewise.
1731 * jv-valprint.c: Likewise.
1732 * language.c: Likewise.
1733 * linux-fork.c: Likewise.
1734 * linux-nat.c: Likewise.
1735 * lm32-tdep.c: Likewise.
1736 * m2-exp.y: Likewise.
1737 * m2-typeprint.c: Likewise.
1738 * m32c-tdep.c: Likewise.
1739 * m32r-linux-nat.c: Likewise.
1740 * m32r-linux-tdep.c: Likewise.
1741 * m32r-rom.c: Likewise.
1742 * m32r-tdep.c: Likewise.
1743 * m68hc11-tdep.c: Likewise.
1744 * m68k-tdep.c: Likewise.
1745 * m68kbsd-tdep.c: Likewise.
1746 * m68klinux-nat.c: Likewise.
1747 * m68klinux-tdep.c: Likewise.
1748 * m88k-tdep.c: Likewise.
1749 * machoread.c: Likewise.
1750 * macrocmd.c: Likewise.
1752 * mdebugread.c: Likewise.
1753 * mem-break.c: Likewise.
1754 * memattr.c: Likewise.
1755 * memory-map.c: Likewise.
1756 * mep-tdep.c: Likewise.
1757 * mi/mi-cmd-break.c: Likewise.
1758 * mi/mi-cmd-disas.c: Likewise.
1759 * mi/mi-cmd-env.c: Likewise.
1760 * mi/mi-cmd-stack.c: Likewise.
1761 * mi/mi-cmd-var.c: Likewise.
1762 * mi/mi-cmds.c: Likewise.
1763 * mi/mi-console.c: Likewise.
1764 * mi/mi-getopt.c: Likewise.
1765 * mi/mi-interp.c: Likewise.
1766 * mi/mi-main.c: Likewise.
1767 * mi/mi-parse.c: Likewise.
1768 * microblaze-rom.c: Likewise.
1769 * microblaze-tdep.c: Likewise.
1770 * mingw-hdep.c: Likewise.
1771 * minidebug.c: Likewise.
1772 * minsyms.c: Likewise.
1773 * mips-irix-tdep.c: Likewise.
1774 * mips-linux-tdep.c: Likewise.
1775 * mips-tdep.c: Likewise.
1776 * mips64obsd-tdep.c: Likewise.
1777 * mipsnbsd-tdep.c: Likewise.
1778 * mipsread.c: Likewise.
1779 * mn10300-linux-tdep.c: Likewise.
1780 * mn10300-tdep.c: Likewise.
1781 * monitor.c: Likewise.
1782 * moxie-tdep.c: Likewise.
1783 * mt-tdep.c: Likewise.
1784 * nat/linux-btrace.c: Likewise.
1785 * nat/linux-osdata.c: Likewise.
1786 * nat/linux-procfs.c: Likewise.
1787 * nat/linux-ptrace.c: Likewise.
1788 * nat/linux-waitpid.c: Likewise.
1789 * nbsd-tdep.c: Likewise.
1790 * nios2-linux-tdep.c: Likewise.
1791 * nto-procfs.c: Likewise.
1792 * nto-tdep.c: Likewise.
1793 * objc-lang.c: Likewise.
1794 * objfiles.c: Likewise.
1795 * opencl-lang.c: Likewise.
1796 * osabi.c: Likewise.
1797 * osdata.c: Likewise.
1798 * p-exp.y: Likewise.
1799 * p-lang.c: Likewise.
1800 * p-typeprint.c: Likewise.
1801 * parse.c: Likewise.
1802 * posix-hdep.c: Likewise.
1803 * ppc-linux-nat.c: Likewise.
1804 * ppc-sysv-tdep.c: Likewise.
1805 * ppcfbsd-tdep.c: Likewise.
1806 * ppcnbsd-tdep.c: Likewise.
1807 * ppcobsd-tdep.c: Likewise.
1808 * printcmd.c: Likewise.
1809 * procfs.c: Likewise.
1810 * prologue-value.c: Likewise.
1811 * python/py-auto-load.c: Likewise.
1812 * python/py-gdb-readline.c: Likewise.
1813 * ravenscar-thread.c: Likewise.
1814 * regcache.c: Likewise.
1815 * registry.c: Likewise.
1816 * remote-fileio.c: Likewise.
1817 * remote-m32r-sdi.c: Likewise.
1818 * remote-mips.c: Likewise.
1819 * remote-notif.c: Likewise.
1820 * remote-sim.c: Likewise.
1821 * remote.c: Likewise.
1822 * reverse.c: Likewise.
1823 * rs6000-aix-tdep.c: Likewise.
1824 * ser-base.c: Likewise.
1825 * ser-go32.c: Likewise.
1826 * ser-mingw.c: Likewise.
1827 * ser-pipe.c: Likewise.
1828 * ser-tcp.c: Likewise.
1829 * ser-unix.c: Likewise.
1830 * serial.c: Likewise.
1831 * sh-tdep.c: Likewise.
1832 * sh64-tdep.c: Likewise.
1833 * shnbsd-tdep.c: Likewise.
1835 * sol-thread.c: Likewise.
1836 * solib-dsbt.c: Likewise.
1837 * solib-frv.c: Likewise.
1838 * solib-osf.c: Likewise.
1839 * solib-som.c: Likewise.
1840 * solib-spu.c: Likewise.
1841 * solib-target.c: Likewise.
1842 * solib.c: Likewise.
1843 * somread.c: Likewise.
1844 * source.c: Likewise.
1845 * sparc-nat.c: Likewise.
1846 * sparc-sol2-tdep.c: Likewise.
1847 * sparc-tdep.c: Likewise.
1848 * sparc64-tdep.c: Likewise.
1849 * sparc64fbsd-tdep.c: Likewise.
1850 * sparc64nbsd-tdep.c: Likewise.
1851 * sparcnbsd-tdep.c: Likewise.
1852 * spu-linux-nat.c: Likewise.
1853 * spu-multiarch.c: Likewise.
1854 * spu-tdep.c: Likewise.
1855 * stabsread.c: Likewise.
1856 * stack.c: Likewise.
1857 * std-regs.c: Likewise.
1858 * symfile.c: Likewise.
1859 * symmisc.c: Likewise.
1860 * symtab.c: Likewise.
1861 * target.c: Likewise.
1862 * thread.c: Likewise.
1863 * tilegx-linux-nat.c: Likewise.
1864 * tilegx-tdep.c: Likewise.
1866 * tracepoint.c: Likewise.
1867 * tui/tui-command.c: Likewise.
1868 * tui/tui-data.c: Likewise.
1869 * tui/tui-disasm.c: Likewise.
1870 * tui/tui-file.c: Likewise.
1871 * tui/tui-layout.c: Likewise.
1872 * tui/tui-out.c: Likewise.
1873 * tui/tui-regs.c: Likewise.
1874 * tui/tui-source.c: Likewise.
1875 * tui/tui-stack.c: Likewise.
1876 * tui/tui-win.c: Likewise.
1877 * tui/tui-windata.c: Likewise.
1878 * tui/tui-winsource.c: Likewise.
1879 * typeprint.c: Likewise.
1880 * ui-file.c: Likewise.
1881 * ui-out.c: Likewise.
1882 * user-regs.c: Likewise.
1883 * utils.c: Likewise.
1884 * v850-tdep.c: Likewise.
1885 * valarith.c: Likewise.
1886 * valops.c: Likewise.
1887 * valprint.c: Likewise.
1888 * value.c: Likewise.
1889 * varobj.c: Likewise.
1890 * vax-tdep.c: Likewise.
1891 * vaxnbsd-tdep.c: Likewise.
1892 * vaxobsd-tdep.c: Likewise.
1893 * windows-nat.c: Likewise.
1894 * xcoffread.c: Likewise.
1895 * xml-support.c: Likewise.
1896 * xstormy16-tdep.c: Likewise.
1897 * xtensa-linux-nat.c: Likewise.
1899 2014-08-07 Gary Benson <gbenson@redhat.com>
1901 * common/common-defs.h: Include gdb_assert.h.
1902 * aarch64-tdep.c: Do not include gdb_assert.h.
1903 * addrmap.c: Likewise.
1904 * aix-thread.c: Likewise.
1905 * alpha-linux-tdep.c: Likewise.
1906 * alpha-mdebug-tdep.c: Likewise.
1907 * alphanbsd-tdep.c: Likewise.
1908 * amd64-nat.c: Likewise.
1909 * amd64-tdep.c: Likewise.
1910 * amd64bsd-nat.c: Likewise.
1911 * amd64fbsd-nat.c: Likewise.
1912 * amd64fbsd-tdep.c: Likewise.
1913 * amd64nbsd-nat.c: Likewise.
1914 * amd64nbsd-tdep.c: Likewise.
1915 * amd64obsd-nat.c: Likewise.
1916 * amd64obsd-tdep.c: Likewise.
1917 * arch-utils.c: Likewise.
1918 * arm-tdep.c: Likewise.
1919 * armbsd-tdep.c: Likewise.
1921 * bcache.c: Likewise.
1922 * bfin-tdep.c: Likewise.
1923 * blockframe.c: Likewise.
1924 * breakpoint.c: Likewise.
1925 * bsd-kvm.c: Likewise.
1926 * bsd-uthread.c: Likewise.
1927 * buildsym.c: Likewise.
1928 * c-exp.y: Likewise.
1929 * c-lang.c: Likewise.
1930 * charset.c: Likewise.
1931 * cleanups.c: Likewise.
1932 * cli-out.c: Likewise.
1933 * cli/cli-decode.c: Likewise.
1934 * cli/cli-dump.c: Likewise.
1935 * cli/cli-logging.c: Likewise.
1936 * cli/cli-script.c: Likewise.
1937 * cli/cli-utils.c: Likewise.
1938 * coffread.c: Likewise.
1939 * common/common-utils.c: Likewise.
1940 * common/queue.h: Likewise.
1941 * common/signals.c: Likewise.
1942 * common/vec.h: Likewise.
1943 * complaints.c: Likewise.
1944 * completer.c: Likewise.
1945 * corelow.c: Likewise.
1946 * cp-abi.c: Likewise.
1947 * cp-name-parser.y: Likewise.
1948 * cp-namespace.c: Likewise.
1949 * cp-support.c: Likewise.
1950 * cris-tdep.c: Likewise.
1951 * dbxread.c: Likewise.
1952 * dictionary.c: Likewise.
1953 * doublest.c: Likewise.
1954 * dsrec.c: Likewise.
1955 * dummy-frame.c: Likewise.
1956 * dwarf2-frame-tailcall.c: Likewise.
1957 * dwarf2-frame.c: Likewise.
1958 * dwarf2expr.c: Likewise.
1959 * dwarf2loc.c: Likewise.
1960 * dwarf2read.c: Likewise.
1962 * event-loop.c: Likewise.
1963 * exceptions.c: Likewise.
1964 * expprint.c: Likewise.
1965 * f-valprint.c: Likewise.
1966 * fbsd-nat.c: Likewise.
1967 * findvar.c: Likewise.
1968 * frame-unwind.c: Likewise.
1969 * frame.c: Likewise.
1970 * frv-tdep.c: Likewise.
1971 * gcore.c: Likewise.
1972 * gdb-dlfcn.c: Likewise.
1973 * gdb_bfd.c: Likewise.
1974 * gdbarch.c: Likewise.
1975 * gdbarch.sh: Likewise.
1976 * gdbtypes.c: Likewise.
1977 * gnu-nat.c: Likewise.
1978 * gnu-v3-abi.c: Likewise.
1979 * go-lang.c: Likewise.
1980 * guile/scm-exception.c: Likewise.
1981 * guile/scm-gsmob.c: Likewise.
1982 * guile/scm-lazy-string.c: Likewise.
1983 * guile/scm-math.c: Likewise.
1984 * guile/scm-pretty-print.c: Likewise.
1985 * guile/scm-safe-call.c: Likewise.
1986 * guile/scm-utils.c: Likewise.
1987 * guile/scm-value.c: Likewise.
1988 * h8300-tdep.c: Likewise.
1989 * hppa-hpux-nat.c: Likewise.
1990 * hppa-tdep.c: Likewise.
1991 * hppanbsd-tdep.c: Likewise.
1992 * hppaobsd-tdep.c: Likewise.
1993 * i386-darwin-nat.c: Likewise.
1994 * i386-darwin-tdep.c: Likewise.
1995 * i386-nto-tdep.c: Likewise.
1996 * i386-tdep.c: Likewise.
1997 * i386bsd-nat.c: Likewise.
1998 * i386fbsd-tdep.c: Likewise.
1999 * i386gnu-nat.c: Likewise.
2000 * i386nbsd-tdep.c: Likewise.
2001 * i386obsd-tdep.c: Likewise.
2002 * i387-tdep.c: Likewise.
2003 * ia64-libunwind-tdep.c: Likewise.
2004 * ia64-tdep.c: Likewise.
2005 * inf-ptrace.c: Likewise.
2006 * inf-ttrace.c: Likewise.
2007 * infcall.c: Likewise.
2008 * infcmd.c: Likewise.
2009 * infrun.c: Likewise.
2010 * inline-frame.c: Likewise.
2011 * interps.c: Likewise.
2012 * jv-lang.c: Likewise.
2013 * jv-typeprint.c: Likewise.
2014 * linux-fork.c: Likewise.
2015 * linux-nat.c: Likewise.
2016 * linux-thread-db.c: Likewise.
2017 * m32c-tdep.c: Likewise.
2018 * m32r-linux-nat.c: Likewise.
2019 * m32r-tdep.c: Likewise.
2020 * m68k-tdep.c: Likewise.
2021 * m68kbsd-nat.c: Likewise.
2022 * m68kbsd-tdep.c: Likewise.
2023 * m88k-tdep.c: Likewise.
2024 * machoread.c: Likewise.
2025 * macroexp.c: Likewise.
2026 * macrotab.c: Likewise.
2027 * maint.c: Likewise.
2028 * mdebugread.c: Likewise.
2029 * memory-map.c: Likewise.
2030 * mep-tdep.c: Likewise.
2031 * mi/mi-common.c: Likewise.
2032 * microblaze-tdep.c: Likewise.
2033 * mingw-hdep.c: Likewise.
2034 * mips-linux-nat.c: Likewise.
2035 * mips-linux-tdep.c: Likewise.
2036 * mips-tdep.c: Likewise.
2037 * mips64obsd-tdep.c: Likewise.
2038 * mipsnbsd-tdep.c: Likewise.
2039 * mn10300-linux-tdep.c: Likewise.
2040 * mn10300-tdep.c: Likewise.
2041 * moxie-tdep.c: Likewise.
2042 * mt-tdep.c: Likewise.
2043 * nat/linux-btrace.c: Likewise.
2044 * nat/linux-osdata.c: Likewise.
2045 * nat/linux-ptrace.c: Likewise.
2046 * nat/mips-linux-watch.c: Likewise.
2047 * nios2-linux-tdep.c: Likewise.
2048 * nios2-tdep.c: Likewise.
2049 * objc-lang.c: Likewise.
2050 * objfiles.c: Likewise.
2051 * obsd-nat.c: Likewise.
2052 * opencl-lang.c: Likewise.
2053 * osabi.c: Likewise.
2054 * parse.c: Likewise.
2055 * ppc-linux-nat.c: Likewise.
2056 * ppc-sysv-tdep.c: Likewise.
2057 * ppcfbsd-nat.c: Likewise.
2058 * ppcfbsd-tdep.c: Likewise.
2059 * ppcnbsd-nat.c: Likewise.
2060 * ppcnbsd-tdep.c: Likewise.
2061 * ppcobsd-nat.c: Likewise.
2062 * ppcobsd-tdep.c: Likewise.
2063 * printcmd.c: Likewise.
2064 * procfs.c: Likewise.
2065 * prologue-value.c: Likewise.
2066 * psymtab.c: Likewise.
2067 * python/py-lazy-string.c: Likewise.
2068 * python/py-value.c: Likewise.
2069 * regcache.c: Likewise.
2070 * reggroups.c: Likewise.
2071 * registry.c: Likewise.
2072 * remote-sim.c: Likewise.
2073 * remote.c: Likewise.
2074 * rs6000-aix-tdep.c: Likewise.
2075 * rs6000-tdep.c: Likewise.
2076 * s390-linux-tdep.c: Likewise.
2077 * score-tdep.c: Likewise.
2078 * ser-base.c: Likewise.
2079 * ser-mingw.c: Likewise.
2080 * sh-tdep.c: Likewise.
2081 * sh64-tdep.c: Likewise.
2082 * solib-darwin.c: Likewise.
2083 * solib-spu.c: Likewise.
2084 * solib-svr4.c: Likewise.
2085 * source.c: Likewise.
2086 * sparc-nat.c: Likewise.
2087 * sparc-sol2-tdep.c: Likewise.
2088 * sparc-tdep.c: Likewise.
2089 * sparc64-sol2-tdep.c: Likewise.
2090 * sparc64-tdep.c: Likewise.
2091 * sparc64fbsd-tdep.c: Likewise.
2092 * sparc64nbsd-tdep.c: Likewise.
2093 * sparc64obsd-tdep.c: Likewise.
2094 * sparcnbsd-tdep.c: Likewise.
2095 * sparcobsd-tdep.c: Likewise.
2096 * spu-multiarch.c: Likewise.
2097 * spu-tdep.c: Likewise.
2098 * stabsread.c: Likewise.
2099 * stack.c: Likewise.
2100 * symfile.c: Likewise.
2101 * symtab.c: Likewise.
2102 * target-descriptions.c: Likewise.
2103 * target-memory.c: Likewise.
2104 * target.c: Likewise.
2105 * tic6x-linux-tdep.c: Likewise.
2106 * tic6x-tdep.c: Likewise.
2107 * tilegx-linux-nat.c: Likewise.
2108 * tilegx-tdep.c: Likewise.
2110 * tramp-frame.c: Likewise.
2111 * tui/tui-out.c: Likewise.
2112 * tui/tui-winsource.c: Likewise.
2113 * ui-out.c: Likewise.
2114 * user-regs.c: Likewise.
2115 * utils.c: Likewise.
2116 * v850-tdep.c: Likewise.
2117 * valops.c: Likewise.
2118 * value.c: Likewise.
2119 * varobj.c: Likewise.
2120 * vax-nat.c: Likewise.
2121 * xml-syscall.c: Likewise.
2122 * xml-tdesc.c: Likewise.
2123 * xstormy16-tdep.c: Likewise.
2124 * xtensa-linux-nat.c: Likewise.
2125 * xtensa-tdep.c: Likewise.
2127 2014-08-07 Gary Benson <gbenson@redhat.com>
2129 * common/common-defs.h: Include common-utils.h.
2130 * defs.h: Do not include common-utils.h.
2131 * common/gdb_assert.h: Likewise.
2132 * darwin-nat.h: Likewise.
2133 * nat/linux-btrace.c: Likewise.
2134 * target/waitstatus.h: Likewise.
2136 2014-08-07 Gary Benson <gbenson@redhat.com>
2138 * common/common-defs.h: Include ptid.h.
2139 * defs.h: Do not include ptid.h.
2140 * inferior.h: Likewise.
2141 * infrun.h: Likewise.
2142 * nat/linux-btrace.h: Likewise.
2143 * nat/linux-osdata.h: Likewise.
2144 * target/waitstatus.h: Likewise.
2146 2014-08-07 Gary Benson <gbenson@redhat.com>
2148 * common/common-defs.h: Include gdb_locale.h.
2149 * defs.h: Do not include gdb_locale.h.
2151 2014-08-07 Gary Benson <gbenson@redhat.com>
2153 * common/common-defs.h: Include gdb/signals.h.
2154 * defs.h: Do not include gdb/signals.h.
2156 2014-08-07 Gary Benson <gbenson@redhat.com>
2158 * common/common-defs.h: Include pathmax.h.
2159 * defs.h: Do not include pathmax.h.
2161 2014-08-07 Gary Benson <gbenson@redhat.com>
2163 * common/common-defs.h: Include libiberty.h.
2164 * defs.h: Do not include libiberty.h.
2165 * common/queue.h: Likewise.
2166 * cp-name-parser.y: Likewise.
2167 * mi/mi-cmd-catch.c: Likewise.
2168 * python/python.c: Likewise.
2170 2014-08-07 Gary Benson <gbenson@redhat.com>
2172 * common/common-defs.h: Include ansidecl.h.
2173 * defs.h: Do not include ansidecl.h.
2174 * common/buffer.h: Likewise.
2175 * common/common-utils.h: Likewise.
2177 2014-08-07 Gary Benson <gbenson@redhat.com>
2179 * common/common-defs.h: Include stddef.h.
2180 * defs.h: Do not include stddef.h.
2181 * common/common-utils.h: Likewise.
2182 * amd64fbsd-nat.c: Likewise.
2183 * bcache.c: Likewise.
2184 * charset.c: Likewise.
2185 * common/buffer.h: Likewise.
2186 * common/vec.h: Likewise.
2187 * i386bsd-nat.c: Likewise.
2188 * nat/linux-btrace.h: Likewise.
2189 * ppcfbsd-nat.c: Likewise.
2190 * ppcnbsd-tdep.h: Likewise.
2191 * ppcobsd-nat.c: Likewise.
2192 * ppcobsd-tdep.h: Likewise.
2193 * python/py-gdb-readline.c: Likewise.
2195 2014-08-07 Gary Benson <gbenson@redhat.com>
2197 * common/common-defs.h: Include stdarg.h.
2198 * defs.h: Do not include stdarg.h.
2199 * ada-lang.c: Likewise.
2200 * common/common-utils.h: Likewise.
2201 * guile/scm-string.c: Likewise.
2202 * guile/scm-utils.c: Likewise.
2203 * m32c-tdep.c: Likewise.
2205 2014-08-07 Gary Benson <gbenson@redhat.com>
2207 * common/common-defs.h: Include stdlib.h.
2208 * defs.h: Do not include stdlib.h.
2209 * addrmap.c: Likewise.
2210 * bcache.c: Likewise.
2211 * common/buffer.c: Likewise.
2212 * common/common-utils.c: Likewise.
2213 * cp-name-parser.y: Likewise.
2214 * go32-nat.c: Likewise.
2215 * mn10300-linux-tdep.c: Likewise.
2216 * nat/linux-osdata.c: Likewise.
2217 * tui/tui.c: Likewise.
2218 * windows-nat.c: Likewise.
2220 2014-08-07 Gary Benson <gbenson@redhat.com>
2222 * common/common-defs.h: Include stdio.h.
2223 * defs.h: Do not include stdio.h.
2224 * ada-lang.c: Likewise.
2225 * common/buffer.c: Likewise.
2226 * common/common-utils.c: Likewise.
2227 * cp-name-parser.y: Likewise.
2228 * gnu-nat.c: Likewise.
2229 * go32-nat.c: Likewise.
2230 * i386gnu-nat.c: Likewise.
2231 * proc-api.c: Likewise.
2232 * proc-events.c: Likewise.
2233 * proc-flags.c: Likewise.
2234 * proc-why.c: Likewise.
2235 * python/python-internal.h: Likewise.
2236 * target-memory.c: Likewise.
2237 * tui/tui-io.c: Likewise.
2238 * tui/tui.c: Likewise.
2240 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2242 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2243 (scan_dyntag_auxv): Same.
2245 2014-08-06 Yao Qi <yao@codesourcery.com>
2247 * amd64-linux-nat.c: Remove duplicated include
2249 * i386-linux-nat.c: Likewise.
2251 2014-08-06 Yao Qi <yao@codesourcery.com>
2253 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2254 operand" with "Special opcode" in comments.
2256 2014-08-05 Gary Benson <gbenson@redhat.com>
2258 * interps.c (initialize_interps): Remove prototype.
2259 (interpreter_initialized): Remove static global.
2260 (interp_add): Do not call initialize_interps.
2261 (initialize_interps): Remove function.
2263 2014-08-05 Gary Benson <gbenson@redhat.com>
2265 * utils.c (vwarning): Remove spurious va_end.
2267 2014-08-05 Alan Modra <amodra@gmail.com>
2269 * charset.c (convert_between_encodings): Cast result of obstack_base.
2270 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2271 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2272 (read_unwind_info): Use size_t for some locals.
2273 * jit.c (finalize_symtab): Likewise.
2274 * utils.c (hashtab_obstack_allocate): Likewise.
2275 * symmisc.c (print_objfile_statistics): Update format strings.
2277 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2279 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2280 (Changes in GDB 7.8): ... here.
2282 2014-08-04 Tom Tromey <tromey@redhat.com>
2284 * target.c (set_targetdebug): New function.
2285 (initialize_targets): Pass set_targetdebug when creating "set
2288 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2290 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2291 if detecting a variable-sized field that is not the last field.
2292 Fix struct type length computation.
2294 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2296 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2299 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2301 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2302 Remove "+ 8" offset in computation of CHAIN_VMA.
2304 2014-07-31 Doug Evans <dje@google.com>
2306 * inflow.c (child_terminal_inferior): Add comment.
2307 (child_terminal_ours_for_output): Add comment.
2308 (child_terminal_ours): Add comment.
2309 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2310 (linux_nat_terminal_ours): Add comment.
2312 2014-07-31 Gary Benson <gbenson@redhat.com>
2314 * common/btrace-common.h: Do not include defs.h or server.h.
2315 * nat/mips-linux-watch.h: Likewise.
2316 * gdb-dlfcn.h: Do not include defs.h.
2317 * tracefile.h: Likewise.
2319 2014-07-30 Roland McGrath <mcgrathr@google.com>
2321 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2323 2014-07-30 Tom Tromey <tromey@redhat.com>
2325 * bsd-kvm.c (bsd_kvm_open): Constify.
2326 * corelow.c (core_open): Constify.
2327 * ctf.c (ctf_open): Constify.
2328 * dbug-rom.c (dbug_open): Constify.
2329 * exec.c (exec_open): Constify.
2330 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2331 * microblaze-rom.c (picobug_open): Constify.
2332 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2334 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2335 * record-btrace.c (record_btrace_open): Constify.
2336 * record-full.c (record_full_core_open_1, record_full_open_1)
2337 (record_full_open): Constify.
2338 * remote-m32r-sdi.c (m32r_open): Constify.
2339 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2340 (rockhopper_open, lsi_open): Constify.
2341 * remote-sim.c (gdbsim_open): Constify.
2342 * remote.c (remote_open, extended_remote_open, remote_open_1):
2344 * target.h (struct target_ops) <to_open>: Make "arg" const.
2345 * tracefile-tfile.c (tfile_open): Constify.
2347 2014-07-30 Tom Tromey <tromey@redhat.com>
2349 * breakpoint.c (map_breakpoint_numbers): Update.
2350 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2351 (get_number_const): New function.
2352 (get_number): Rewrite using get_number_const.
2353 (init_number_or_range): Make "string" const.
2354 (number_is_in_list): Make "list" const.
2355 * cli/cli-utils.h (get_number_const): Declare.
2356 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2357 (init_number_or_range, number_is_in_list): Update.
2358 * printcmd.c (map_display_numbers): Update.
2359 * value.c (value_from_history_ref): Constify.
2360 * value.h (value_from_history_ref): Update.
2362 2014-07-30 Tom Tromey <tromey@redhat.com>
2364 * corefile.c (hook_type, call_extra_exec_file_hooks)
2365 (specify_exec_file_hook): Constify.
2366 * exec.c (exec_file_attach): Make "filename" const.
2367 * gdbcore.h (deprecated_exec_file_display_hook)
2368 (specify_exec_file_hook, exec_file_attach): Constify.
2369 * main.c (captured_main): Use catch_command_errors_const.
2371 2014-07-30 Tom Tromey <tromey@redhat.com>
2373 * target.c (open_target): New function.
2374 (add_target_with_completer, add_deprecated_target_alias): Use
2375 set_cmd_sfunc, set_cmd_context.
2376 (debug_to_open): Remove.
2377 (setup_target_debug): Update.
2379 2014-07-30 Yao Qi <yao@codesourcery.com>
2381 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2383 * parse.c (exp_iterate): Update comments.
2385 2014-07-30 Gary Benson <gbenson@redhat.com>
2387 * common/common-defs.h: New file.
2388 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2389 * defs.h: Include common-defs.h.
2390 Do not include config.h or build-gnulib/config.h.
2392 2014-07-30 Gary Benson <gbenson@redhat.com>
2394 * common/common-utils.h: Do not include config.h.
2395 * nat/linux-btrace.h: Likewise.
2397 2014-07-30 Gary Benson <gbenson@redhat.com>
2399 * btrace.c: Include defs.h.
2400 * common/ptid.c: Include defs.h or server.h as appropriate.
2401 * nat/mips-linux-watch.c: Likewise.
2403 2014-07-29 Tom Tromey <tromey@redhat.com>
2405 * target.c (target_is_pushed): Simplify.
2407 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2411 2014-07-29 Yao Qi <yao@codesourcery.com>
2414 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2416 2014-07-28 Doug Evans <xdje42@gmail.com>
2419 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2420 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2423 2014-07-28 Will Newton <will.newton@linaro.org>
2425 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2426 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2427 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2428 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2429 (THUMB2_EABI_SYSCALL): Likewise.
2430 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2432 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2433 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2435 2014-07-27 Doug Evans <xdje42@gmail.com>
2437 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2439 2014-07-27 Doug Evans <xdje42@gmail.com>
2441 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2443 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2444 Doug Evans <xdje42@gmail.com>
2447 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2448 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2449 * configure.ac: Try to use guild to compile an scm file, if it fails
2450 then disable guile support.
2451 * configure: Regenerate.
2452 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2454 (GUILE_COMPILED_FILES): New variable.
2455 (GUILE_FILES) Update.
2456 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2457 (stamp-guile): Compile scm files.
2458 * guile/guile.c (boot_guile_support): New function.
2459 (standard_throw_args_p): New function.
2460 (print_standard_throw_error, print_throw_error): New functions.
2461 (handle_boot_error): New function.
2462 (initialize_scheme_side): Rewrite to call boot_guile_support.
2463 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2464 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2466 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2467 Doug Evans <xdje42@gmail.com>
2470 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2471 * guile/lib/gdb/support.scm: New file.
2472 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2473 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2475 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2477 (%assert-type): Ditto, and renamed to assert-type.
2478 (%exception-print-style): Delete.
2480 2014-07-26 Doug Evans <xdje42@gmail.com>
2483 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2484 * configure: Regenerate.
2485 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2487 (PYTHON_FILES): New variable.
2488 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2489 (GUILE_FILES): New variable.
2490 (stamp-python, install-python, uninstall-python): Handle empty
2492 (stamp-guile, install-guile, uninstall-guile): Ditto.
2494 2014-07-26 Doug Evans <xdje42@gmail.com>
2497 * guile/lib/gdb.scm (pretty-printers): Export.
2498 (set-pretty-printers!): Export.
2499 * guile/lib/gdb/printing.scm (gdb module): Update.
2500 (prepend-pretty-printer!, append-pretty-printer!): Update.
2501 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2502 (pretty_printer_list_var): Delete.
2503 (pretty_printer_list): New static global.
2504 (gdbscm_pretty_printers): New function.
2505 (gdbscm_set_pretty_printers_x): New function.
2506 (ppscm_find_pretty_printer_from_gdb): Update.
2507 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2508 (gdbscm_initialize_pretty_printers): Update.
2510 2014-07-26 Doug Evans <xdje42@gmail.com>
2513 * configure.ac: Add check for header gc/gc.h.
2514 Add check for function setenv.
2515 * configure: Regenerate.
2516 * config.in: Regenerate.
2517 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2519 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2521 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2522 variation in gdbarch matching.
2524 2014-07-25 Tom Tromey <tromey@redhat.com>
2526 * exec.c (using_exec_ops): Remove.
2527 (exec_close_1): Update. Remove extraneous block, reindent.
2528 (add_target_sections): Use target_is_pushed.
2530 2014-07-25 Pedro Alves <palves@redhat.com>
2532 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2533 * monitor.c (monitor_create_inferior): Likewise.
2534 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2535 * remote-sim.c (gdbsim_create_inferior): Likewise.
2536 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2537 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2538 * windows-nat.c (do_initial_windows_stuff): Likewise.
2540 2014-07-25 Pedro Alves <palves@redhat.com>
2542 * NEWS: Mention signal passing and "signal" command changes.
2543 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2545 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2547 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2548 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2549 (jump_command): Adjust clear_proceed_status call.
2550 (signal_command): Warn if other thread that are resumed have
2551 signals that will be delivered. Adjust clear_proceed_status call.
2552 (until_next_command, finish_command)
2553 (proceed_after_attach_callback, attach_command_post_wait)
2554 (attach_command): Adjust clear_proceed_status call.
2555 * infrun.c (proceed_after_vfork_done): Likewise.
2556 (proceed_after_attach_callback): Adjust comment.
2557 (clear_proceed_status_thread): Clear stop_signal if not in pass
2559 (clear_proceed_status_callback): Delete.
2560 (clear_proceed_status): New 'step' parameter. Only clear the
2561 proceed status of threads the command being prepared is about to
2563 (proceed): If passed in an explicit signal, override stop_signal
2564 with it. Don't pass the last stop signal to the thread we're
2566 (init_wait_for_inferior): Adjust clear_proceed_status call.
2567 (switch_back_to_stepped_thread): Clear the signal if it should not
2569 * infrun.h (clear_proceed_status): New 'step' parameter.
2570 (user_visible_resume_ptid): Add comment.
2571 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2572 signal is in pass state.
2573 * remote.c (append_pending_thread_resumptions): Likewise.
2574 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2576 2014-07-25 Tom Tromey <tromey@redhat.com>
2578 * target.h (target_stopped_data_address)
2579 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2582 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2584 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2586 (avr_pointer_to_address): Likewise.
2588 2014-07-24 Tom Tromey <tromey@redhat.com>
2590 * monitor.c (compile_pattern): Update.
2591 * target.h (struct target_ops) <to_shortname, to_longname,
2594 2014-07-24 Tom Tromey <tromey@redhat.com>
2596 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2597 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2598 (add_info_alias, add_com): Make "doc" const.
2599 (print_doc_line): Make "str" const.
2600 (delete_cmd): Update.
2601 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2602 (print_doc_line): Update.
2603 * cli/cli-script.c (document_command): Update.
2604 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2605 (add_com, add_info, add_info_alias): Update.
2606 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2607 * python/py-cmd.c (cmdpy_destroyer): Update.
2609 2014-07-24 Tom Tromey <tromey@redhat.com>
2611 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2612 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2613 (help_cmd_list): Constify.
2614 (lookup_cmd): Update.
2615 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2617 (help_cmd_list, apropos_cmd): Update.
2618 * cli/cli-script.c (show_user): Update.
2619 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2620 * cli/cli-setshow.h (cmd_show_list): Update.
2621 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2622 (cmd_show_list): Update.
2623 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2624 * python/py-cmd.c (cmdpy_destroyer): Update.
2626 2014-07-24 Tom Tromey <tromey@redhat.com>
2628 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2629 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2631 * command.h (deprecate_cmd): Update.
2632 * maint.c (maintenance_do_deprecate): Add casts.
2634 2014-07-24 Tom Tromey <tromey@redhat.com>
2636 * cli/cli-decode.c (help_cmd): Make parameter "const".
2637 * cli/cli-decode.h (help_cmd): Update.
2639 2014-07-24 Tom Tromey <tromey@redhat.com>
2641 * stack.c (up_silently_base, down_silently_base): Make argument
2644 2014-07-24 Tom Tromey <tromey@redhat.com>
2646 * solib.c (solib_add): Make "pattern" const.
2647 * solib.h (solib_add): Update.
2649 2014-07-24 Tom Tromey <tromey@redhat.com>
2651 * remote.c (remote_serial_open, print_packet, putpkt)
2652 (putpkt_binary): Constify.
2653 * remote.h (putpkt): Update.
2655 2014-07-24 Tom Tromey <tromey@redhat.com>
2657 * monitor.c (monitor_open): Make "args" const.
2658 * monitor.h (monitor_open): Update.
2660 2014-07-24 Tom Tromey <tromey@redhat.com>
2662 * maint.c (match_bfd_flags): Make "string" const.
2663 (print_bfd_section_info): Remove casts.
2664 (print_objfile_section_info): Make "string" const.
2666 2014-07-24 Tom Tromey <tromey@redhat.com>
2668 * inf-child.c (inf_child_open_target): Make "arg" const.
2669 * inf-child.h (inf_child_open_target): Update.
2671 2014-07-24 Tom Tromey <tromey@redhat.com>
2673 * environ.c (unset_in_environ): Make "var" const.
2674 * environ.h (unset_in_environ): Update.
2676 2014-07-24 Tom Tromey <tromey@redhat.com>
2678 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2680 (scan_filename_with_cleanup): Likewise.
2681 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2682 Make arguments const.
2683 (restore_command): Update.
2685 2014-07-24 Pedro Alves <palves@redhat.com>
2687 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2689 2014-07-24 Tom Tromey <tromey@redhat.com>
2690 Gary Benson <gbenson@redhat.com>
2692 * nat/linux-ptrace.c (additional_flags): New global.
2693 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2694 additional_flags; don't check GDBSERVER.
2695 (linux_ptrace_set_additional_flags): New function.
2696 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2698 * linux-nat.c (_initialize_linux_nat): Call
2699 linux_ptrace_set_additional_flags.
2701 2014-07-24 Tom Tromey <tromey@redhat.com>
2703 * make-target-delegates (munge_type, write_debugmethod): New
2705 (debug_names): New global.
2706 ($TARGET_DEBUG_PRINTER): New global.
2707 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2709 Write debug methods. Generate init_debug_target.
2710 * target-debug.h: New file.
2711 * target-delegates.c: Rebuild.
2712 * target.c: Include target-debug.h.
2713 (debug_target): Hoist definition.
2714 (target_kill, target_get_section_table, target_memory_map)
2715 (target_flash_erase, target_flash_done, target_detach)
2716 (target_disconnect, target_wait, target_resume)
2717 (target_pass_signals, target_program_signals, target_follow_fork)
2718 (target_mourn_inferior, target_search_memory)
2719 (target_thread_address_space, target_close)
2720 (target_find_new_threads, target_core_of_thread)
2721 (target_verify_memory, target_insert_mask_watchpoint)
2722 (target_remove_mask_watchpoint): Remove targetdebug code.
2723 (debug_to_post_attach, debug_to_prepare_to_store)
2724 (debug_to_files_info, debug_to_insert_breakpoint)
2725 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2726 (debug_to_region_ok_for_hw_watchpoint)
2727 (debug_to_can_accel_watchpoint_condition)
2728 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2729 (debug_to_watchpoint_addr_within_range)
2730 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2731 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2732 (debug_to_terminal_init, debug_to_terminal_inferior)
2733 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2734 (debug_to_terminal_save_ours, debug_to_terminal_info)
2735 (debug_to_load, debug_to_post_startup_inferior)
2736 (debug_to_insert_fork_catchpoint)
2737 (debug_to_remove_fork_catchpoint)
2738 (debug_to_insert_vfork_catchpoint)
2739 (debug_to_remove_vfork_catchpoint)
2740 (debug_to_insert_exec_catchpoint)
2741 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2742 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2743 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2744 (setup_target_debug): Call init_debug_target.
2745 * target.h (TARGET_DEBUG_PRINTER): New macro.
2746 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2747 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2749 2014-07-24 Gary Benson <gbenson@redhat.com>
2751 * exceptions.h (throw_vfatal): Renamed to...
2752 (throw_vquit): New declaration.
2753 (throw_quit): Likewise.
2754 * exceptions.c (throw_vfatal): Renamed to...
2755 (throw_vquit): New function.
2756 (throw_quit): Likewise.
2757 (throw_error): Call throw_verror rather than throw_it.
2758 * utils.h (vfatal): Removed.
2760 * utils.c (vfatal): Removed.
2762 (internal_verror): Replaced call to fatal with call to throw_quit.
2763 (quit): Replaced calls to fatal with calls to throw_quit.
2765 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2767 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2770 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2772 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2773 less than zero in conditional expression.
2775 2014-07-23 Tom Tromey <tromey@redhat.com>
2777 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2778 ($INTRO_PART): Don't match whitespace.
2779 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2781 ($METHOD): Add $METHOD_TRAILER.
2783 (scan_target_h): New sub.
2784 Change main loop not to collect state.
2785 * target-delegates.c: Rebuild.
2787 2014-07-23 Gary Benson <gbenson@redhat.com>
2789 * cp-support.c (gdb_demangle): Fix build on systems without
2792 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2794 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2795 for reference entry value target data value.
2797 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2799 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2800 value_available_contents_eq.
2802 2014-07-22 Pedro Alves <palves@redhat.com>
2804 * value.c (allocate_optimized_out_value): Don't mark value as
2807 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2809 * MAINTAINERS (Write After Approval): Update my email address.
2811 2014-07-20 Doug Evans <dje@google.com>
2814 * remote.c (putpkt_binary): Add text to error message.
2816 2014-07-20 Yao Qi <yao@codesourcery.com>
2818 * eval.c: Remove "Chill" from comments.
2819 * gdbtypes.h: Likewise.
2820 * symtab.h: Likewise.
2822 2014-07-20 Yao Qi <yao@codesourcery.com>
2824 * std-operator.def: Update comments to TERNOP_SLICE.
2826 2014-07-20 Yao Qi <yao@codesourcery.com>
2828 * std-operator.def: Remove BINOP_RANGE.
2829 * breakpoint.c (watchpoint_exp_is_const): Update.
2830 * expprint.c (dump_subexp_body_standard): Likewise.
2831 * eval.c (init_array_element): Remove dead code.
2832 (evaluate_subexp_standard): Likewise.
2834 2014-07-20 Yao Qi <yao@codesourcery.com>
2836 * std-operator.def: Remove BINOP_IN.
2837 * breakpoint.c (watchpoint_exp_is_const): Update.
2838 * eval.c (evaluate_subexp_standard): Likewise.
2839 * expprint.c (dump_subexp_body_standard): Likewise.
2841 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2843 * microblaze-tdep.c (microblaze_register_names): Add
2844 the rshr and rslr register names.
2845 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2846 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2847 Use of tdesc_numbered_register. Use of
2848 microblaze_register_g_packet_guesses. Use of
2849 tdesc_use_registers. Use of set_gdbarch_register_type.
2850 (microblaze_register_g_packet_guesses): New.
2851 * microblaze-tdep.h (microblaze_reg_num): Add
2852 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2853 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2854 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2855 * features/microblaze-core.xml: New file.
2856 * features/microblaze-stack-protect.xml: New file.
2857 * features/microblaze-with-stack-protect.c: New file.
2858 * features/microblaze-with-stack-protect.xml: New file.
2859 * features/microblaze.xml: New file.
2860 * features/microblaze.c: New file.
2861 * features/Makefile (microblaze-with-stack-protect): Add
2862 microblaze-with-stack-protect microblaze and microblaze-expedite.
2863 * regformats/microblaze-with-stack-protect.dat: New file.
2864 * regformats/microblaze.dat: New file.
2865 * doc/gdb.texinfo (MicroBlaze Features): Added.
2867 2014-07-18 Tom Tromey <tromey@redhat.com>
2869 * exec.c (exec_ops): Now static.
2870 * exec.h (exec_ops): Don't declare.
2872 2014-07-18 Tom Tromey <tromey@redhat.com>
2874 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2875 to find_target_beneath.
2876 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2877 find_target_beneath.
2878 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2880 2014-07-18 Tom Tromey <tromey@redhat.com>
2883 * utils.c (quit): Use target_supports_terminal_ours.
2884 * target.h (target_supports_terminal_ours): Declare.
2885 * target.c (target_supports_delete_record): Don't check
2886 to_delete_record against NULL.
2887 (target_supports_terminal_ours): New function.
2889 2014-07-18 Tom Tromey <tromey@redhat.com>
2892 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2893 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2894 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2895 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2896 * windows-nat.c (windows_xfer_partial): Always delegate.
2897 * record-btrace.c (record_btrace_xfer_partial): Simplify
2899 (record_btrace_fetch_registers, record_btrace_store_registers)
2900 (record_btrace_prepare_to_store, record_btrace_resume)
2901 (record_btrace_wait, record_btrace_find_new_threads)
2902 (record_btrace_thread_alive): Likewise.
2903 * procfs.c (procfs_xfer_partial): Always delegate.
2904 * corelow.c (core_xfer_partial): Always delegate.
2905 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2907 2014-07-18 Tom Tromey <tromey@redhat.com>
2909 * exec.c (exec_make_note_section): Move earlier.
2911 2014-07-17 Doug Evans <dje@google.com>
2914 * maint.c (count_symtabs_and_blocks): Handle NULL
2915 current_program_space.
2916 (report_command_stats): Check global enabled flag in addition to
2917 recorded enabled flag.
2918 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2920 2014-07-16 Pedro Alves <palves@redhat.com>
2922 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2924 2014-07-16 Tom Tromey <tromey@redhat.com>
2926 * target.h (struct target_ops) <to_delete_record>: Reformat
2929 2014-07-16 Tom Tromey <tromey@redhat.com>
2931 * target-delegates.c: Rebuild.
2933 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2935 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2936 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2937 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2938 (avr_pointer_to_address): Likewise.
2939 (avr_address_class_type_flags): New function.
2940 (avr_address_class_type_flags_to_name): Likewise.
2941 (avr_address_class_name_to_type_flags): Likewise.
2942 (avr_gdbarch_init): Set address_class_type_flags,
2943 address_class_type_flags_to_name and
2944 address_class_name_to_type_flags.
2946 2014-07-15 Pedro Alves <palves@redhat.com>
2948 * linux-nat.c (kill_callback): Save errno and work with saved
2951 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2953 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2955 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2957 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2958 breakpoint support correctly.
2960 2014-07-14 Pedro Alves <palves@redhat.com>
2962 * utils.c (prompt_for_continue): Call target_terminal_ours.
2964 2014-07-14 Pedro Alves <palves@redhat.com>
2966 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2967 catch_errors. Don't re-enable stdin or notify observers where,
2969 (fetch_inferior_event_wrapper): Delete.
2971 2014-07-14 Pedro Alves <palves@redhat.com>
2974 * top.c: Include "inf-loop.h".
2975 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2977 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2979 (gdb_readline_wrapper): Store whether the target is async, and
2982 2014-07-14 Pedro Alves <palves@redhat.com>
2985 * top.c (gdb_readline_wrapper_line): Tweak comment.
2986 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2987 the input handler callback.
2989 2014-07-14 Pedro Alves <palves@redhat.com>
2992 * main.c: Include event-top.h.
2993 (handle_command_errors): New function.
2994 (catch_command_errors, catch_command_errors_const): Use it.
2996 2014-07-14 Pedro Alves <palves@redhat.com>
2998 * exceptions.c (catch_command_errors, catch_command_errors_const):
3000 * exceptions.h (catch_command_errors_ftype)
3001 (catch_command_errors_const_ftype): Moved to main.c.
3002 (catch_command_errors, catch_command_errors_const): Delete
3004 * main.c (catch_command_errors_ftype)
3005 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3006 (catch_command_errors, catch_command_errors_const)): Moved here
3007 from exceptions.c and make static.
3009 2014-07-14 Pedro Alves <palves@redhat.com>
3011 * exceptions.c (print_any_exception): Delete.
3012 (catch_exceptions_with_msg): Use exception_print instead of
3013 print_any_exception.
3014 (catch_errors): Use exception_fprintf instead of
3015 print_any_exception.
3016 (catch_command_errors, catch_command_errors_const): Use
3017 exception_print instead of print_any_exception.
3019 2014-07-14 Pedro Alves <palves@redhat.com>
3021 * infcall.c (run_inferior_call): Set 'sync_execution' while
3022 running the inferior call.
3024 2014-07-14 Pedro Alves <palves@redhat.com>
3026 * value.c (value_contents_equal): Delete function.
3027 * value.h (value_contents_equal): Delete declaration.
3029 2014-07-14 Tom Tromey <tromey@redhat.com>
3032 * gdbtypes.c (is_dynamic_type_internal): New function, from
3034 (is_dynamic_type): Rewrite.
3035 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3036 (resolve_dynamic_struct): Likewise.
3037 (resolve_dynamic_type_internal): New function, from
3038 resolve_dynamic_type.
3039 (resolve_dynamic_type): Rewrite.
3041 2014-07-14 Tom Tromey <tromey@redhat.com>
3043 * target.c (target_require_runnable): Also check record_stratum.
3046 2014-07-11 Yao Qi <yao@codesourcery.com>
3048 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3049 thumb_instruction_restores_sp return true.
3051 2014-07-11 Yao Qi <yao@codesourcery.com>
3053 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3054 (thumb_in_function_epilogue_p): Call
3055 thumb_instruction_restores_sp.
3057 2014-07-11 Yao Qi <yao@codesourcery.com>
3059 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3061 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3063 2014-07-11 Gary Benson <gbenson@redhat.com>
3065 * amd64-linux-nat.c (gdbcore.h): Remove include.
3066 (regset.h): Likewise.
3067 (nat/linux-btrace.h): Likewise.
3068 (btrace.h): Likewise.
3069 (gdb_assert.h): Likewise.
3070 (string.h): Likewise.
3071 (sys/uio.h): Likewise.
3072 (sys/debugreg.h): Likewise.
3073 (sys/syscall.h): Likewise.
3074 (sys/procfs.h): Likewise.
3075 (sys/user.h): Likewise.
3076 (asm/ptrace.h): Likewise.
3077 (i386-nat.h): Likewise.
3078 * i386-linux-nat.c (i386-nat.h): Likewise.
3079 (regset.h): Likewise.
3080 (target.h): Likewise.
3081 (linux-nat.h): Likewise.
3082 (nat/linux-btrace.h): Likewise.
3083 (btrace.h): Likewise.
3084 (gdb_assert.h): Likewise.
3085 (string.h): Likewise.
3086 (sys/uio.h): Likewise.
3087 (sys/user.h): Likewise.
3088 (sys/procfs.h): Likewise.
3089 (sys/reg.h): Likewise.
3090 (sys/debugreg.h): Likewise.
3091 (ORIG_EAX): Remove definition.
3093 2014-07-11 Gary Benson <gbenson@redhat.com>
3095 * i386-linux-nat.h: New file.
3096 * x86-linux-nat.h: Likewise.
3097 * x86-linux-nat.c: Likewise.
3098 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3099 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3100 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3101 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3102 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3103 (PTRACE_SETREGSET): Likewise.
3104 (arch_lwp_info): Now in x86-linux-nat.c.
3105 (have_ptrace_getregset): Now in x86-linux-nat.h.
3106 (x86_linux_dr_get): Now in x86-linux-nat.c.
3107 (x86_linux_dr_set): Likewise.
3108 (x86_linux_dr_get_addr): Likewise.
3109 (x86_linux_dr_get_control): Likewise.
3110 (x86_linux_dr_get_status): Likewise.
3111 (update_debug_registers_callback): Likewise.
3112 (x86_linux_dr_set_control): Likewise.
3113 (x86_linux_dr_set_addr): Likewise.
3114 (x86_linux_prepare_to_resume): Likewise.
3115 (x86_linux_new_thread): Likewise.
3116 (x86_linux_new_fork): Likewise.
3117 (x86_linux_get_thread_area): Likewise.
3118 (super_post_startup_inferior): Likewise.
3119 (x86_linux_child_post_startup_inferior): Likewise.
3120 (AMD64_LINUX_USER64_CS): Likewise.
3121 (AMD64_LINUX_X32_DS): Likewise.
3122 (x86_linux_read_description): Likewise.
3123 (x86_linux_enable_btrace): Likewise.
3124 (x86_linux_disable_btrace): Likewise.
3125 (x86_linux_teardown_btrace): Likewise.
3126 (x86_linux_read_btrace): Likewise.
3127 (x86_linux_create_target): Likewise.
3128 (x86_linux_add_target): Likewise.
3129 * i386-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.
3158 2014-07-11 Gary Benson <gbenson@redhat.com>
3160 * amd64-linux-nat.c: Comment and whitespace changes.
3161 * i386-linux-nat.c: Comment and whitespace changes.
3163 2014-07-11 Gary Benson <gbenson@redhat.com>
3165 * amd64-linux-nat.c (x86_linux_create_target): New function.
3166 (x86_linux_add_target): Likewise.
3167 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3168 * i386-linux-nat.c (x86_linux_create_target): New function.
3169 (x86_linux_add_target): Likewise.
3170 (_initialize_i386_linux_nat): Delegate to the above new functions.
3172 2014-07-11 Gary Benson <gbenson@redhat.com>
3174 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3175 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3176 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3177 (ps_get_thread_area): Delegate to the above.
3179 2014-07-11 Gary Benson <gbenson@redhat.com>
3181 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3182 x86_linux_read_description. All uses updated. amd64-specific
3183 code conditionalized. Conditionalized i386-specific code added.
3184 Redundant cast removed.
3185 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3186 x86_linux_read_description. All uses updated. i386-specific
3187 code conditionalized. Conditionalized amd64-specific code added.
3188 One sizeof replaced with the actual type it is describing.
3190 2014-07-11 Gary Benson <gbenson@redhat.com>
3192 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3193 x86_linux_dr_get. All uses updated.
3194 (amd64_linux_dr_set): Renamed to
3195 x86_linux_dr_set. All uses updated.
3196 (amd64_linux_dr_get_addr): Renamed to
3197 x86_linux_dr_get_addr. All uses updated.
3198 (amd64_linux_dr_get_control): Renamed to
3199 x86_linux_dr_get_control. All uses updated.
3200 (amd64_linux_dr_get_status): Renamed to
3201 x86_linux_dr_get_status. All uses updated.
3202 (amd64_linux_dr_set_control): Renamed to
3203 x86_linux_dr_set_control. All uses updated.
3204 (amd64_linux_dr_set_addr): Renamed to
3205 x86_linux_dr_set_addr. All uses updated.
3206 (amd64_linux_prepare_to_resume): Renamed to
3207 x86_linux_prepare_to_resume. All uses updated.
3208 (amd64_linux_new_thread): Renamed to
3209 x86_linux_new_thread. All uses updated.
3210 (amd64_linux_new_fork): Renamed to
3211 x86_linux_new_fork. All uses updated.
3212 (amd64_linux_child_post_startup_inferior): Renamed to
3213 x86_linux_child_post_startup_inferior. All uses updated.
3214 (amd64_linux_enable_btrace): Renamed to
3215 x86_linux_enable_btrace. All uses updated.
3216 (amd64_linux_disable_btrace): Renamed to
3217 x86_linux_disable_btrace. All uses updated.
3218 (amd64_linux_teardown_btrace): Renamed to
3219 x86_linux_teardown_btrace. All uses updated.
3220 (amd64_linux_read_btrace): Renamed to
3221 x86_linux_read_btrace. All uses updated.
3222 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3223 x86_linux_dr_get. All uses updated.
3224 (i386_linux_dr_set): Renamed to
3225 x86_linux_dr_set. All uses updated.
3226 (i386_linux_dr_get_addr): Renamed to
3227 x86_linux_dr_get_addr. All uses updated.
3228 (i386_linux_dr_get_control): Renamed to
3229 x86_linux_dr_get_control. All uses updated.
3230 (i386_linux_dr_get_status): Renamed to
3231 x86_linux_dr_get_status. All uses updated.
3232 (i386_linux_dr_set_control): Renamed to
3233 x86_linux_dr_set_control. All uses updated.
3234 (i386_linux_dr_set_addr): Renamed to
3235 x86_linux_dr_set_addr. All uses updated.
3236 (i386_linux_prepare_to_resume): Renamed to
3237 x86_linux_prepare_to_resume. All uses updated.
3238 (i386_linux_new_thread): Renamed to
3239 x86_linux_new_thread. All uses updated.
3240 (i386_linux_new_fork): Renamed to
3241 x86_linux_new_fork. All uses updated.
3242 (i386_linux_child_post_startup_inferior): Renamed to
3243 x86_linux_child_post_startup_inferior. All uses updated.
3244 (i386_linux_enable_btrace): Renamed to
3245 x86_linux_enable_btrace. All uses updated.
3246 (i386_linux_disable_btrace): Renamed to
3247 x86_linux_disable_btrace. All uses updated.
3248 (i386_linux_teardown_btrace): Renamed to
3249 x86_linux_teardown_btrace. All uses updated.
3250 (i386_linux_read_btrace): Renamed to
3251 x86_linux_read_btrace. All uses updated.
3253 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3255 * remote.c (extended_remote_post_attach): New function.
3256 (init_extended_remote_ops): Install it as to_post_attach method.
3258 2014-07-09 Pedro Alves <palves@redhat.com>
3260 * infcmd.c (attach_command_post_wait): Don't call
3261 target_terminal_inferior here.
3262 (attach_command): Call it here instead.
3264 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3266 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3268 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3269 from varobj.c, with additional checks.
3270 (c_varobj_ops): Fill in is_path_expr_parent field.
3271 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3272 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3274 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3276 (varobj_default_is_path_expr_parent): New function.
3277 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3278 (varobj_default_is_path_expr_parent): Declare new function.
3280 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3282 * infcmd.c (finish_backward): Turn internal error into normal error.
3284 2014-07-07 Pedro Alves <palves@redhat.com>
3287 * remote.c (async_handle_remote_sigint)
3288 (async_handle_remote_sigint_twice): Call
3289 gdb_call_async_signal_handler instead of
3290 mark_async_signal_handler.
3292 2014-07-07 Tom Tromey <tromey@redhat.com>
3294 * target-delegates.c: Rebuild.
3295 * target.c (target_info_record): Remove.
3296 * record.c (info_record_command): Unconditionally call
3298 * target.h (struct target_ops) <to_info_record>: Use
3299 TARGET_DEFAULT_IGNORE.
3300 (target_info_record): Remove.
3302 2014-07-07 Tom Tromey <tromey@redhat.com>
3304 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3305 TARGET_DEFAULT_NORETURN.
3306 * target.c (generic_tls_error): New function.
3307 (target_translate_tls_address): Don't search target stack.
3308 * target-delegates.c: Rebuild.
3309 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3311 * linux-thread-db.c (thread_db_get_thread_local_address):
3312 Unconditionally call beneath target.
3314 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3316 * cli/cli-logging.c (pop_output_files): Assign targerr to
3319 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3321 * MAINTAINERS (Write After Approval): Update my email address.
3323 2014-07-02 Gary Benson <gbenson@redhat.com>
3325 * proc-service.c (ps_xfer_memory): Update comment.
3326 (ps_pstop): Remove unused function.
3327 (ps_pcontinue): Likewise.
3328 (ps_lstop): Likewise.
3329 (ps_lcontinue): Likewise.
3330 (ps_lgetxregsize): Likewise.
3331 (ps_lgetxregs): Likewise.
3332 (ps_lsetxregs): Likewise.
3333 (ps_plog): Likewise.
3334 (ps_ptread): Likewise.
3335 (ps_ptwrite): Likewise.
3337 2014-07-01 Mark Wielaard <mjw@redhat.com>
3339 * dwarf2read.c (add_array_cv_type): New function.
3340 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3341 (read_tag_volatile_type): Likewise.
3343 2014-07-01 Tom Tromey <tromey@redhat.com>
3345 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3346 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3347 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3348 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3349 * command.h (cmd_cfunc_ftype): Move earlier.
3350 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3351 (add_com, add_info): Use cmd_cfunc_ftype.
3353 2014-06-30 Tom Tromey <tromey@redhat.com>
3355 * symtab.c (operator_chars): Make parameters and return type
3357 (file_matches): Make "files" const.
3358 (struct search_symbols_data) <files>: Now const.
3359 (search_symbols): Make "regexp" and "files" parameters const.
3361 (symtab_symbol_info): Remove cast.
3362 (rbreak_command): Update.
3363 * symtab.h (search_symbols): Update.
3365 2014-06-27 Yao Qi <yao@codesourcery.com>
3367 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3368 Change parameter type to 'struct thread_info *'. Caller
3370 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3372 * dummy-frame.c (struct dummy_frame_id): New.
3373 (dummy_frame_id_eq): New function.
3374 (struct dummy_frame) <id>: Change its type to 'struct
3376 (dummy_frame_push): Add parameter ptid and save it in
3378 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3380 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3382 (lookup_dummy_frame): Change parameter type to 'struct
3383 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3384 instead of frame_id_eq.
3385 (dummy_frame_pop): Add parameter ptid. Callers updated.
3386 Update comments. Compose dummy_frame_id and pass it to
3388 (dummy_frame_discard): Add parameter ptid.
3389 (dummy_frame_sniffer): Compose dummy_frame_id and call
3390 dummy_frame_id_eq instead of frame_id_eq.
3391 (fprint_dummy_frames): Print ptid.
3392 * dummy-frame.h: Remove comments.
3393 (dummy_frame_push): Add ptid in declaration.
3394 (dummy_frame_pop, dummy_frame_discard): Likewise.
3396 2014-06-26 Tom Tromey <tromey@redhat.com>
3398 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3399 * command.h (error_no_arg): Update.
3401 2014-06-26 Tom Tromey <tromey@redhat.com>
3403 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3404 (do_show_command): Make "arg" const.
3405 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3407 2014-06-26 Tom Tromey <tromey@redhat.com>
3409 * record-full.c (record_full_get_bookmark): Make "args" const.
3410 (record_full_goto_bookmark): Make "raw_bookmark" const.
3411 * record.c (record_goto): New function.
3412 (cmd_record_goto): Use it. Now static.
3413 * record.h (record_goto): Declare.
3414 (cmd_record_goto): Remove declaration.
3415 * target-delegates.c: Rebuild.
3416 * target.h (struct target_ops) <to_get_bookmark,
3417 to_goto_bookmark>: Make parameter const.
3419 2014-06-26 Tom Tromey <tromey@redhat.com>
3421 * defs.h (generic_load): Update.
3422 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3423 * monitor.c (monitor_load): Make "args" const.
3424 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3425 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3427 (mips_load): Make "file" const.
3428 * remote-sim.c (gdbsim_load): Make "args" const.
3429 * remote.c (remote_load): Make "name" const.
3430 * symfile.c (generic_load): Make "args" const.
3431 * target-delegates.c: Rebuild.
3432 * target.c (target_load): Make "arg" const.
3433 (debug_to_load): Make "args" const.
3434 * target.h (struct target_ops) <to_load>: Make parameter const.
3435 (target_load): Update.
3437 2014-06-26 Tom Tromey <tromey@redhat.com>
3440 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3441 (dwarf2_physname, read_partial_die)
3442 (guess_partial_die_structure_name, fixup_partial_die)
3443 (guess_full_die_structure_name, anonymous_struct_prefix)
3444 (dwarf2_name): Use per-BFD obstack.
3446 2014-06-26 Yao Qi <yao@codesourcery.com>
3448 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3449 dummyframe and this_id into inner block below.
3451 2014-06-26 Yao Qi <yao@codesourcery.com>
3453 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3454 with "signal_pass[0]" in the initialization of signal_pass.
3456 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3458 * record-btrace.c (record_btrace_generating_corefile)
3459 (record_btrace_prepare_to_generate_core)
3460 (record_btrace_done_generating_core): New.
3461 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3462 (record_btrace_store_registers, record_btrace_prepare_to_store):
3463 Forward request when generating a core file.
3464 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3465 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3466 to_done_generating_core.
3468 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3470 * target.h (target_ops) <to_prepare_to_generate_core>
3471 <to_done_generating_core>: New.
3472 (target_prepare_to_generate_core, target_done_generating_core): New.
3473 * target.c (target_prepare_to_generate_core)
3474 (target_done_generating_core): New.
3475 * target-delegates.c: Regenerate.
3476 * gcore.c: (write_gcore_file): Rename to ...
3477 (write_gcore_file_1): ...this.
3478 (write_gcore_file): Call target_prepare_to_generate_core
3479 and target_done_generating_core.
3481 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3483 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3484 * gcore.c (write_gcore_file): Free memory returned from
3485 make_corefile_notes.
3486 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3487 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3489 2014-06-24 Yao Qi <yao@codesourcery.com>
3491 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3492 (arm_linux_init_abi): Set skip_trampoline_code with
3493 gdbarch_skip_trampoline_code instead of
3494 find_solib_trampoline_target.
3496 2014-06-24 Yao Qi <yao@codesourcery.com>
3498 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3499 arm_skip_bx_reg returns non-zero.
3501 2014-06-24 Yao Qi <yao@codesourcery.com>
3503 * arm-tdep.c (arm_skip_bx_reg): New function.
3504 (arm_skip_stub): Call arm_skip_bx_reg.
3506 2014-06-23 Don Breazeal <donb@codesourcery.com>
3508 * MAINTAINERS: Add myself as write-after-approval maintainer.
3510 2014-06-23 Pedro Alves <palves@redhat.com>
3512 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3513 DR_CONTROL before setting DR0..DR3.
3514 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3515 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3516 bits of DR_CONTROL related to the debug register slot being
3517 disabled. If all slots are vacant, clear local slowdown as well,
3518 and assert DR_CONTROL is 0.
3520 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3522 * python/lib/gdb/command/xmethods.py
3523 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3524 current progspace only if the string "progspace" matches LOCUS_RE.
3526 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3528 Fix --with-system-readline with readline-6.3 patch 5.
3529 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3530 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3533 2014-06-20 Tom Tromey <tromey@redhat.com>
3535 * dwarf2read.c (dw2_get_real_path): Use correct type in
3537 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3539 2014-06-20 Gary Benson <gbenson@redhat.com>
3541 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3542 * common/glibc_thread_db.h: Likewise.
3543 * common/i386-cpuid.h: Likewise.
3544 * common/i386-gcc-cpuid.h: Likewise.
3545 * common/linux-btrace.h: Likewise.
3546 * common/linux-osdata.h: Likewise.
3547 * common/linux-procfs.h: Likewise.
3548 * common/linux-ptrace.h: Likewise.
3549 * common/mips-linux-watch.h: Likewise.
3550 * common/linux-btrace.c: Moved to nat.
3551 * common/linux-osdata.c: Likewise.
3552 * common/linux-procfs.c: Likewise.
3553 * common/linux-ptrace.c: Likewise.
3554 * common/mips-linux-watch.c: Likewise.
3555 * nat/gdb_thread_db.h: Moved from common.
3556 * nat/glibc_thread_db.h: Likewise.
3557 * nat/i386-cpuid.h: Likewise.
3558 * nat/i386-gcc-cpuid.h: Likewise.
3559 * nat/linux-btrace.c: Likewise.
3560 * nat/linux-btrace.h: Likewise.
3561 * nat/linux-osdata.c: Likewise.
3562 * nat/linux-osdata.h: Likewise.
3563 * nat/linux-procfs.c: Likewise.
3564 * nat/linux-procfs.h: Likewise.
3565 * nat/linux-ptrace.c: Likewise.
3566 * nat/linux-ptrace.h: Likewise.
3567 * nat/mips-linux-watch.c: Likewise.
3568 * nat/mips-linux-watch.h: Likewise.
3569 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3570 (object file files): Reordered.
3571 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3572 of glibc_thread_db.h.
3574 2014-06-20 Gary Benson <gbenson@redhat.com>
3576 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3577 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3578 (i386_dr_low): Likewise.
3579 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3580 (i386_dr_low_set_addr): Likewise.
3581 (i386_dr_low_get_addr): Likewise.
3582 (i386_dr_low_can_set_control): Likewise.
3583 (i386_dr_low_set_control): Likewise.
3584 (i386_dr_low_get_control): Likewise.
3585 (i386_dr_low_get_status): Likewise.
3586 (i386_get_debug_register_length): Likewise.
3587 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3588 (i386_dr_low): Likewise.
3589 * nat/i386-dregs.c (i386-low.h): Remove include.
3590 (i386-nat.h): Likewise.
3591 (nat/i386-dregs.h): New include.
3592 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3593 (i386_dr_low_set_addr): Likewise.
3594 (i386_dr_low_get_addr): Likewise.
3595 (i386_dr_low_can_set_control): Likewise.
3596 (i386_dr_low_set_control): Likewise.
3597 (i386_dr_low_get_control): Likewise.
3598 (i386_dr_low_get_status): Likewise.
3599 (i386_get_debug_register_length): Likewise.
3600 (debug_hw_points): Likewise.
3602 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3604 * Makefile.in (SFILES): Add d-exp.y.
3605 (YYFILES): Add d-exp.c.
3606 (YYOBJ): Add d-exp.o.
3607 (local-maintainer-clean): Delete d-exp.c.
3608 * d-exp.y: New file.
3609 * d-lang.h (d_parse): New declaration.
3610 (d_error): New declaration.
3611 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3612 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3613 PREC_ORDER operators.
3614 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3616 2014-06-19 Yao Qi <yao@codesourcery.com>
3618 * gdbthread.h (any_running): Remove the declaration.
3619 * thread.c (any_running): Remove.
3621 2014-06-19 Yao Qi <yao@codesourcery.com>
3623 * gdbthread.h (struct thread_info) <state>: Change its type to
3624 'enum thread_state'. Update comments.
3626 2014-06-19 Pedro Alves <palves@redhat.com>
3628 * gdbthread.h (ALL_THREADS): Delete.
3629 (ALL_NON_EXITED_THREADS): New macro.
3630 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3631 instead of ALL_THREADS.
3632 * infrun.c (find_thread_needs_step_over)
3633 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3634 instead of ALL_THREADS.
3635 * record-btrace.c (record_btrace_open)
3636 (record_btrace_stop_recording, record_btrace_close)
3637 (record_btrace_is_replaying, record_btrace_resume)
3638 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3639 * remote.c (append_pending_thread_resumptions): Likewise.
3640 * thread.c (thread_apply_all_command): Likewise.
3642 2014-06-19 Gary Benson <gbenson@redhat.com>
3644 * i386-nat.c (i386_stopped_by_watchpoint):
3645 Use i386_dr_stopped_by_watchpoint.
3646 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3647 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3649 2014-06-19 Gary Benson <gbenson@redhat.com>
3651 * nat/i386-dregs.c: New file.
3652 * Makefile.in (i386-dregs.o): New rule.
3653 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3654 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3655 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3656 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3657 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3658 * config/i386/go32.mh (NATDEPFILES): Likewise.
3659 * config/i386/linux.mh (NATDEPFILES): Likewise.
3660 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3661 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3662 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3663 * i386-nat.h (debug_hw_points): New declaration.
3664 * i386-nat.c (breakpoint.h): Remove include.
3665 (command.h): Likewise.
3666 (target.h): Likewise.
3667 (gdb_assert.h): Likewise.
3668 (debug_hw_points): Made nonstatic.
3669 (debug_printf): Now in i386-dregs.c.
3670 (TARGET_HAS_DR_LEN_8): Likewise.
3671 (DR_CONTROL_SHIFT): Likewise.
3672 (DR_CONTROL_SIZE): Likewise.
3673 (DR_RW_EXECUTE): Likewise.
3674 (DR_RW_WRITE): Likewise.
3675 (DR_RW_READ): Likewise.
3676 (DR_RW_IORW): Likewise.
3677 (DR_LEN_1): Likewise.
3678 (DR_LEN_2): Likewise.
3679 (DR_LEN_4): Likewise.
3680 (DR_LEN_8): Likewise.
3681 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3682 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3683 (DR_ENABLE_SIZE): Likewise.
3684 (DR_LOCAL_SLOWDOWN): Likewise.
3685 (DR_GLOBAL_SLOWDOWN): Likewise.
3686 (DR_CONTROL_RESERVED): Likewise.
3687 (I386_DR_CONTROL_MASK): Likewise.
3688 (I386_DR_VACANT): Likewise.
3689 (I386_DR_LOCAL_ENABLE): Likewise.
3690 (I386_DR_GLOBAL_ENABLE): Likewise.
3691 (I386_DR_DISABLE): Likewise.
3692 (I386_DR_SET_RW_LEN): Likewise.
3693 (I386_DR_GET_RW_LEN): Likewise.
3694 (I386_DR_WATCH_HIT): Likewise.
3695 (i386_wp_op_t): Likewise.
3696 (i386_show_dr): Likewise.
3697 (i386_length_and_rw_bits): Likewise.
3698 (i386_insert_aligned_watchpoint): Likewise.
3699 (i386_remove_aligned_watchpoint): Likewise.
3700 (i386_handle_nonaligned_watchpoint): Likewise.
3701 (i386_update_inferior_debug_regs): Likewise.
3702 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3703 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3704 (i386_region_ok_for_watchpoint):
3705 Use i386_dr_region_ok_for_watchpoint.
3706 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3708 2014-06-19 Gary Benson <gbenson@redhat.com>
3710 * i386-nat.c (i386_insert_hw_breakpoint): Use
3711 i386_insert_watchpoint.
3712 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3714 2014-06-19 Gary Benson <gbenson@redhat.com>
3716 * i386-nat.c (i386_dr_show): Renamed to
3717 i386_show_dr and made static. All uses updated.
3718 (i386_dr_length_and_rw_bits): Renamed to
3719 i386_length_and_rw_bits and made static.
3721 (i386_dr_insert_aligned_watchpoint): Renamed to
3722 i386_insert_aligned_watchpoint and made static.
3724 (i386_dr_remove_aligned_watchpoint): Renamed to
3725 i386_remove_aligned_watchpoint and made static.
3727 (i386_dr_update_inferior_debug_regs): Renamed to
3728 i386_update_inferior_debug_regs and made static.
3730 * nat/i386-dregs.h (i386_dr_show): Removed.
3731 (i386_dr_length_and_rw_bits): Likewise.
3732 (i386_dr_insert_aligned_watchpoint): Likewise.
3733 (i386_dr_remove_aligned_watchpoint): Likewise.
3734 (i386_dr_update_inferior_debug_regs): Likewise.
3736 2014-06-19 Gary Benson <gbenson@redhat.com>
3738 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3739 * configure: Regenerate.
3740 * config.in: Likewise.
3741 * main.c (signal.h): New include.
3742 (setup_alternate_signal_stack): New function.
3743 (captured_main): Call the above.
3744 * cp-support.c (signal.h): New include.
3745 (catch_demangler_crashes): New flag.
3746 (SIGJMP_BUF): New define.
3747 (SIGSETJMP): Likewise.
3748 (SIGLONGJMP): Likewise.
3749 (gdb_demangle_jmp_buf): New static global.
3750 (gdb_demangle_attempt_core_dump): Likewise.
3751 (gdb_demangle_signal_handler): New function.
3752 (gdb_demangle): If catch_demangler_crashes is set, install the
3753 above signal handler before calling bfd_demangle, and restore
3754 the original signal handler afterwards. Display the offending
3755 symbol and call demangler_warning the first time a segmentation
3757 (_initialize_cp_support): New maint set/show command.
3759 2014-06-19 Gary Benson <gbenson@redhat.com>
3761 * utils.h (resource_limit_kind): New enum.
3762 (can_dump_core): New declaration.
3763 (warn_cant_dump_core): Likewise.
3764 (dump_core): Likewise.
3765 * utils.c (dump_core): Made nonstatic. Added new
3766 parameter "limit_kind".
3767 (can_dump_core): Made nonstatic. Moved printing code to...
3768 (warn_cant_dump_core): New function.
3769 (can_dump_core_warn): Likewise.
3770 (internal_vproblem): Replace calls to can_dump_core with
3771 calls to can_dump_core_warn. Supply new argument to each.
3773 2014-06-19 Gary Benson <gbenson@redhat.com>
3775 * utils.h (demangler_vwarning): New declaration.
3776 (demangler_warning): Likewise.
3777 * utils.c (struct internal_problem)
3778 <user_settable_should_quit>: New field.
3779 <user_settable_should_dump_core>: Likewise
3780 (internal_error_problem): Add values for above new fields.
3781 (internal_warning_problem): Likewise.
3782 (demangler_warning_problem): New static global.
3783 (demangler_vwarning): New function.
3784 (demangler_warning): Likewise.
3785 (add_internal_problem_command): Selectively add commands.
3786 (_initialize_utils): New internal problem command.
3787 * maint.c (maintenance_demangler_warning): New function.
3788 (_initialize_maint_cmds): New command.
3790 2014-06-18 Tom Tromey <tromey@redhat.com>
3792 * f-valprint.c (info_common_command_for_block): Update.
3793 * symtab.h (struct general_symbol_info) <common_block>: Now
3796 2014-06-18 Tom Tromey <tromey@redhat.com>
3798 * symtab.h (struct symtab) <blockvector>: Now const.
3799 * ada-lang.c (ada_add_global_exceptions): Update.
3800 * buildsym.c (augment_type_symtab): Update.
3801 * dwarf2read.c (dw2_lookup_symbol): Update.
3802 * jit.c (finalize_symtab): Update.
3803 * jv-lang.c (add_class_symtab_symbol): Update.
3804 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3806 * objfiles.c (objfile_relocate1): Update.
3807 * psymtab.c (lookup_symbol_aux_psymtabs)
3808 (maintenance_check_psymtabs): Update.
3809 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3811 * spu-tdep.c (spu_catch_start): Update.
3812 * symmisc.c (dump_symtab_1): Update.
3813 * symtab.c (lookup_global_symbol_from_objfile)
3814 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3815 (basic_lookup_transparent_type_quick)
3816 (basic_lookup_transparent_type, find_pc_sect_symtab)
3817 (find_pc_sect_line, search_symbols): Update.
3818 * block.c (find_block_in_blockvector): Make "bl" const.
3819 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3821 (blockvector_contains_pc): Make "bv" const.
3822 (block_for_pc_sect): Update.
3823 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3824 (blockvector_contains_pc): Update.
3825 * breakpoint.c (resolve_sal_pc): Update.
3826 * inline-frame.c (block_starting_point_at): Update.
3828 2014-06-18 Tom Tromey <tromey@redhat.com>
3830 * completer.c (complete_line): Make "line_buffer" const.
3831 * completer.h (complete_line): Update.
3833 2014-06-18 Tom Tromey <tromey@redhat.com>
3835 * symtab.c (add_macro_name): Remove unneeded cast.
3837 2014-06-18 Tom Tromey <tromey@redhat.com>
3839 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3840 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3842 2014-06-18 Tom Tromey <tromey@redhat.com>
3844 * probe.c (info_probes_for_ops): Make "arg" const.
3845 * probe.h (info_probes_for_ops): Update.
3847 2014-06-18 Tom Tromey <tromey@redhat.com>
3849 * varobj.c (varobj_create): Update.
3850 * valops.c (value_of_this): Update.
3851 * tracepoint.c (add_local_symbols, scope_info): Update.
3852 * symtab.h (struct general_symbol_info) <block>: Now const.
3853 * symtab.c (skip_prologue_sal)
3854 (default_make_symbol_completion_list_break_on)
3855 (skip_prologue_using_sal): Update.
3856 * stack.h (iterate_over_block_locals)
3857 (iterate_over_block_local_vars): Update.
3858 * stack.c (print_frame_args): Update.
3859 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3861 (get_selected_block): Make return type const.
3862 * python/py-frame.c (frapy_block): Update.
3863 * python/py-block.c (gdbpy_block_for_pc): Update.
3864 * p-exp.y (%union) <bval>: Now const.
3865 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3866 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3867 * m2-exp.y (%union) <bval>: Now const.
3868 * linespec.c (get_current_search_block): Make return type const.
3869 (create_sals_line_offset, find_label_symbols): Update.
3870 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3872 (block_starting_point_at): Make "block" const.
3873 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3874 (check_exception_resume): Update.
3875 * guile/scm-frame.c (gdbscm_frame_block): Update.
3876 * guile/scm-block.c (gdbscm_lookup_block): Update.
3877 * frame.h (get_frame_block): Update.
3878 (get_selected_block): Make return type const.
3879 * frame.c (frame_id_inner): Update.
3880 * f-valprint.c (info_common_command_for_block)
3881 (info_common_command): Update.
3882 * dwarf2loc.c (dwarf2_find_location_expression)
3883 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3884 (locexpr_describe_location_piece): Update.
3885 * c-exp.y (%union) <bval>: Now const.
3886 * breakpoint.c (resolve_sal_pc): Update.
3887 * blockframe.c (get_frame_block):Make return type const.
3888 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3889 (block_innermost_frame): Update.
3890 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3891 (block_for_pc, block_for_pc_sect): Update.
3892 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3894 (block_for_pc_sect, block_for_pc): Make return type const.
3895 * ax-gdb.c (gen_expr): Update.
3896 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3897 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3898 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3899 (ada_read_var_value): Update.
3900 * ada-exp.y (struct name_info) <block>: Now const.
3902 (block_lookup): Constify.
3904 2014-06-18 Gary Benson <gbenson@redhat.com>
3906 * nat/i386-dregs.h: New file.
3907 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3908 * i386-nat.h (i386-dregs.h): New include.
3909 (DR_FIRSTADDR): Now in i386-dregs.h.
3910 (DR_LASTADDR): Likewise.
3911 (DR_NADDR): Likewise.
3912 (DR_STATUS): Likewise.
3913 (DR_CONTROL): Likewise.
3914 (i386_debug_reg_state): Likewise.
3915 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3917 2014-06-18 Don Breazeal <donb@codesourcery.com>
3919 * breakpoint.c (set_longjmp_breakpoint): Call
3920 momentary_breakpoint_from_master with additional argument.
3921 (set_longjmp_breakpoint_for_call_dummy): Call
3922 momentary_breakpoint_from_master with additional argument.
3923 (set_std_terminate_breakpoint): Call
3924 momentary_breakpoint_from_master with additional argument.
3925 (momentary_breakpoint_from_master): Add argument to function
3926 definition and use it to initialize structure member flag.
3927 (clone_momentary_breakpoint): Call
3928 momentary_breakpoint_from_master with additional argument.
3929 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3930 member flags set in momentary_breakpoint_from_master.
3932 2014-06-18 Gary Benson <gbenson@redhat.com>
3934 * i386-nat.c (i386_show_dr): Renamed to
3935 i386_dr_show and made nonstatic. All uses updated.
3936 (i386_length_and_rw_bits): Renamed to
3937 i386_dr_length_and_rw_bits and made nonstatic.
3939 (i386_insert_aligned_watchpoint): Renamed to
3940 i386_dr_insert_aligned_watchpoint and made nonstatic.
3942 (i386_remove_aligned_watchpoint): Renamed to
3943 i386_dr_remove_aligned_watchpoint and made nonstatic.
3945 (i386_update_inferior_debug_regs): Renamed to
3946 i386_dr_update_inferior_debug_regs and made nonstatic.
3949 2014-06-18 Gary Benson <gbenson@redhat.com>
3951 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3952 (i386_dr_low_can_set_control): Likewise.
3953 (i386_dr_low_set_addr): Likewise.
3954 (i386_dr_low_set_control): Likewise.
3955 (i386_dr_low_get_addr): Likewise.
3956 (i386_dr_low_get_status): Likewise.
3957 (i386_dr_low_get_control): Likewise.
3958 (i386_insert_aligned_watchpoint): Use new macros.
3959 (i386_update_inferior_debug_regs): Likewise.
3960 (i386_stopped_data_address): Likewise.
3962 2014-06-18 Gary Benson <gbenson@redhat.com>
3964 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3965 New parameter. All uses updated.
3967 2014-06-18 Gary Benson <gbenson@redhat.com>
3969 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3972 2014-06-18 Gary Benson <gbenson@redhat.com>
3974 * i386-nat.c (debug_printf): New macro.
3975 (i386_get_debug_register_length): Likewise.
3976 (TARGET_HAS_DR_LEN_8): Use above macro.
3977 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3978 and printf_unfiltered. Use phex to format values.
3980 2014-06-18 Gary Benson <gbenson@redhat.com>
3982 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3985 2014-06-18 Gary Benson <gbenson@redhat.com>
3987 * i386-nat.c: Comment changes.
3989 2014-06-18 Gary Benson <gbenson@redhat.com>
3991 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3993 2014-06-18 Gary Benson <gbenson@redhat.com>
3995 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3996 (i386_insert_aligned_watchpoint): Likewise.
3997 (i386_remove_aligned_watchpoint): Likewise.
3998 (i386_handle_nonaligned_watchpoint): Likewise.
4000 2014-06-18 Gary Benson <gbenson@redhat.com>
4002 * i386-nat.c: Whitespace changes.
4004 2014-06-17 Samuel Bronson <naesten@gmail.com>
4006 * MAINTAINERS: Update Roland McGrath's email address.
4007 Thanks to Sergio Durigan Junior for pointing out that he left
4008 Red Hat a while ago, and giving me a current address.
4010 2014-06-17 Tom Tromey <tromey@redhat.com>
4012 * utils.h (savestring): Remove declaration.
4014 2014-06-17 Tom Tromey <tromey@redhat.com>
4016 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4018 2014-06-16 Keith Seitz <keiths@redhat.com>
4021 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4022 to update the varobj if inferior_ptid is null_ptid.
4024 2014-06-16 Tom Tromey <tromey@redhat.com>
4026 * target.h (struct target_ops) <to_info_proc>: Make parameter
4028 (target_info_proc): Update.
4029 * target.c (target_info_proc): Make "args" const.
4030 * procfs.c (procfs_info_proc): Update.
4031 * linux-tdep.c (linux_info_proc): Update.
4032 (linux_core_info_proc_mappings): Make "args" const.
4033 (linux_core_info_proc): Update.
4034 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4035 * gdbarch.c: Rebuild.
4036 * gdbarch.h: Rebuild.
4037 * corelow.c (core_info_proc): Update.
4039 2014-06-16 Tom Tromey <tromey@redhat.com>
4041 * target.h (struct target_ops) <to_disconnect>: Make parameter
4043 (target_disconnect): Update.
4044 * target.c (target_disconnect): Make "args" const.
4045 * target-delegates.c: Rebuild.
4046 * remote.c (remote_disconnect): Update.
4047 * record.h (record_disconnect): Update.
4048 * record.c (record_disconnect): Update.
4049 * inf-child.c (inf_child_disconnect): Update.
4051 2014-06-16 Tom Tromey <tromey@redhat.com>
4053 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4054 * target.c (debug_to_rcmd, default_rcmd): Update.
4055 * target-delegates.c: Rebuild.
4056 * remote.c (remote_rcmd): Update.
4057 * monitor.c (monitor_rcmd): Update.
4059 2014-06-16 Pedro Alves <palves@redhat.com>
4061 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4062 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4063 have OBJF_SHARED set.
4064 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4065 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4066 instead of OBJF_USERLOADED.
4067 * objfiles.h (OBJF_SHARED): Update comment.
4068 (userloaded_objfile_contains_address_p): Rename to ...
4069 (shared_objfile_contains_address_p): ... this, and update
4071 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4073 (remove_symbol_file_command): Skip objfiles that don't have
4076 2014-06-16 Tom Tromey <tromey@redhat.com>
4078 * minsyms.h (prim_record_minimal_symbol)
4079 (prim_record_minimal_symbol_and_info): Update comments.
4081 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4083 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4084 or --without-guile, according to how GDB was built.
4086 2014-06-13 Tom Tromey <tromey@redhat.com>
4088 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4090 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4092 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4094 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4095 help_list.Pass all_commands, not -1, to help_list.
4096 * cli/cli-dump.c (dump_command, append_command)
4097 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4098 (binary_dump_command, binary_append_command): Pass all_commands,
4099 not -1, to help_list.
4100 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4102 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4104 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4106 * top.c (set_history): Pass all_commands, not -1, to help_list.
4107 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4108 all_commands, not -1, to help_list.
4109 * symfile.c (overlay_command): Pass all_commands, not -1, to
4111 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4113 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4115 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4117 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4118 not -1, to help_list.
4119 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4120 not -1, to help_list.
4121 * maint.c (maintenance_command, maintenance_info_command)
4122 (maintenance_print_command, maintenance_set_cmd): Pass
4123 all_commands, not -1, to help_list.
4124 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4126 * language.c (set_check): Pass all_commands, not -1, to help_list.
4127 * infcmd.c (unset_command): Pass all_commands, not -1, to
4129 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4131 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4133 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4135 * breakpoint.c (save_command): Pass all_commands, not -1, to
4137 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4138 all_commands, not -1, to help_list.
4140 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4142 * regcache.c (struct register_to_invalidate): New structure.
4143 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4145 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4147 2014-06-12 Yao Qi <yao@codesourcery.com>
4149 * varobj.c (varobj_get_num_children): Call
4150 varobj_is_dynamic_p.
4151 (varobj_list_children): Likewise.
4152 (varobj_update): Likewise. Update comments.
4154 2014-06-12 Yao Qi <yao@codesourcery.com>
4156 * varobj.c (varobj_pretty_printed_p): Rename to ...
4157 (varobj_is_dynamic_p): ... this. New function.
4158 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4159 (varobj_is_dynamic_p): Declare.
4160 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4161 (mi_print_value_p, varobj_update_one): Likewise.
4163 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4164 Yao Qi <yao@codesourcery.com>
4166 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4167 (varobj_get_iterator): Wrap up code for pretty-printer by
4168 "#if HAVE_PYTHON" and "#endif".
4169 (update_dynamic_varobj_children): Likewise.
4171 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4172 Yao Qi <yao@codesourcery.com>
4174 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4175 gdb_python_initialized is false. Move some code from varobj.c.
4176 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4177 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4178 (struct varobj_item): Moved to varobj-iter.h".
4179 (varobj_clear_saved_item): New function.
4180 (update_dynamic_varobj_children): Move python-related code to
4182 (free_variable): Call varobj_clear_saved_item and
4185 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4186 Yao Qi <yao@codesourcery.com>
4188 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4189 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4190 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4191 (py-varobj.o): New rule.
4192 * python/py-varobj.c: New file.
4193 * python/python-internal.h (py_varobj_get_iterator): Declare.
4194 * varobj-iter.h: New file.
4195 * varobj.c: Include "varobj-iter.h"
4196 (struct varobj) <child_iter>: Change its type from "PyObject *"
4197 to "struct varobj_iter *".
4198 <saved_item>: Likewise.
4199 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4200 [HAVE_PYTHON] (varobj_get_iterator): New function.
4201 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4202 python-specific code to python/py-varobj.c.
4203 (install_visualizer): Call varobj_iter_delete instead of
4205 * varobj.h (varobj_ensure_python_env): Declare.
4207 2014-06-12 Yao Qi <yao@codesourcery.com>
4209 * varobj.c (struct varobj_item): New structure.
4210 (create_child_with_value): Update declaration.
4211 (varobj_add_child): Replace arguments 'name' and 'value' with
4212 'item'. All callers updated.
4213 (install_dynamic_child): Likewise.
4214 (update_dynamic_varobj_children): Likewise.
4215 (varobj_add_child): Likewise.
4216 (create_child_with_value): Likewise.
4218 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4220 * NEWS: Create a new section for the next release branch.
4221 Rename the section of the current branch, now that it has
4224 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4226 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4227 * version.in: Bump version to 7.8.50.DATE-cvs.
4229 2014-06-11 Pedro Alves <palves@redhat.com>
4232 * ser-mingw.c (net_windows_socket_check_pending): New function.
4233 (net_windows_select_thread): Ignore spurious wakeups. Use
4234 net_windows_socket_check_pending.
4235 (net_windows_wait_handle): Check for pending events with
4236 ioctlsocket, through net_windows_socket_check_pending, instead of
4237 checking the socket's event.
4239 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4241 * python/python-internal.h (gdb_PyObject_GetAttrString)
4242 (gdb_PyObject_HasAttrString): New inline function definitions.
4243 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4244 char * of the second argument to PyObject_GetAttrString.
4246 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4248 * serial.c (serial_write): Fix index of character to be printed
4249 in call to serial_logchar when serial debug traces are enabled.
4251 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4253 * gdbtypes (resolve_dynamic_range): Add function description.
4255 2014-06-09 Pedro Alves <palves@redhat.com>
4257 * linux-nat.c (linux_child_follow_fork): Initialize status with
4258 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4259 inner block. Only pass the signal to PTRACE_DETACH if in pass
4262 2014-06-09 Gary Benson <gbenson@redhat.com>
4264 * common/signals.c (gdb_signal_from_host): Reorder to separate
4265 the always-available ANSI-standard signals from the signals that
4267 (do_gdb_signal_to_host): Likewise.
4268 * proc-events.c (signal_table): Likewise.
4270 2014-06-08 Hui Zhu <hui@codesourcery.com>
4272 * common/linux-ptrace.c (linux_disable_event_reporting): New
4274 * common/linux-ptrace.h (linux_disable_event_reporting): New
4276 * linux-nat.c (linux_child_follow_fork): Do a single step before
4279 2014-06-07 Keith Seitz <keiths@redhat.com>
4283 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4284 from symbol_matches_domain in symtab.c. All local callers
4285 of symbol_matches_domain updated.
4286 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4287 search STRUCT_DOMAIN.
4288 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4289 independently. standard_lookup will do that automatically.
4290 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4291 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4292 (cp_lookup_symbol_in_namespace): Likewise.
4293 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4294 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4295 may return a STRUCT_DOMAIN match.
4296 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4297 * cp-support.c: Include language.h.
4298 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4300 * psymtab.c (match_partial_symbol): Compare the requested
4301 domain with the symbol's domain directly.
4302 (lookup_partial_symbol): Likewise.
4303 * symtab.c (lookup_symbol_in_language): Explain when/why
4304 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4305 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4306 appropriate languages.
4307 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4308 and moved to ada-lang.c
4309 (lookup_block_symbol): Explain that this function only returns
4310 symbol matching the requested DOMAIN.
4311 Compare the requested domain with the symbol's domain directly.
4312 (iterate_over_symbols): Compare the requested domain with the
4313 symbol's domain directly.
4314 * symtab.h (symbol_matches_domain): Remove.
4316 2014-06-06 Doug Evans <xdje42@gmail.com>
4318 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4319 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4320 (gdbscm_guile_version_is_at_least): Declare.
4321 (gdbscm_scm_string_to_int): Declare.
4322 * guile/guile.c (gdbscm_guile_major_version): New global.
4323 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4324 (guile_datadir): New static global.
4325 (gdbscm_guile_data_directory): New function.
4326 (initialize_scheme_side): Update.
4327 (misc_guile_functions): Add guile-data-directory.
4328 (initialize_gdb_module): Fetch guile version number.
4329 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4330 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4331 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4332 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4334 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4335 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4336 * guile/scm-value.c (gdbscm_value_to_string): Only call
4337 scm_port_conversion_strategy if Guile version >= 2.0.6.
4339 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4341 * main.c (print_gdb_help): Add -q and --silent.
4343 2014-06-06 Gary Benson <gbenson@redhat.com>
4345 * common/signals.c: Remove preprocessor conditionals for
4346 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4347 SIGSEGV and SIGTERM.
4348 * proc-events.c: Likewise.
4350 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4352 * symfile.c (symfile_free_objfile): Remove restriction to
4354 * symfile-mem.c (symbol_file_add_from_memory): Call
4355 add_target_sections_of_objfile.
4357 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4359 * guile/scm-value.c (gdbscm_history_append_x): Use
4360 'vlscm_get_value_smob_arg_unsafe' instead of
4361 'vlscm_scm_to_value'.
4363 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4366 * utils.c (printchar): Don't escape at all if quoter is NUL.
4367 Update function documentation to clarify effect of parameter
4369 * remote.c (escape_buffer): Pass '\\' as the quoter to
4370 fputstrn_unfiltered.
4371 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4372 generate the output.
4373 (mi_solib_unloaded): Same.
4375 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4377 * development.sh: Delete.
4378 * Makefile.in (config.status): Adjust dependency on development.sh.
4379 * configure.ac: Adjust development.sh source call.
4380 * configure: Regenerate.
4382 2014-06-04 Doug Evans <xdje42@gmail.com>
4384 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4385 is_scheme_bkpt, spec.
4386 (bpscm_make_breakpoint_smob): Initialize new members.
4387 (gdbscm_create_breakpoint_x): Split into two ...
4388 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4389 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4390 (scheme_function breakpoint_functions): Update.
4391 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4392 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4393 register-breakpoint!.
4395 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4398 * mem-break.c (z_type_supported): Return zero if
4399 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4401 2014-06-04 Tom Tromey <tromey@redhat.com>
4403 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4404 value_from_contents_and_address_unresolved.
4405 (ada_template_to_fixed_record_type_1): Likewise.
4406 (ada_which_variant_applies): Likewise.
4407 * value.h (value_from_contents_and_address_unresolved): Declare.
4408 * value.c (value_from_contents_and_address_unresolved): New
4410 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4411 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4412 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4414 2014-06-04 Tom Tromey <tromey@redhat.com>
4416 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4418 2014-06-04 Tom Tromey <tromey@redhat.com>
4420 * procfs.c (procfs_attach): Make "args" const.
4421 * windows-nat.c (windows_attach): Make "args" const.
4422 * nto-procfs.c (procfs_attach): Make "args" const.
4423 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4424 * go32-nat.c (go32_attach): Make "args" const.
4425 * gnu-nat.c (gnu_attach): Make "args" const.
4426 * darwin-nat.c (darwin_attach): Make "args" const.
4427 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4428 * linux-nat.c (linux_nat_attach): Make "args" const.
4429 * remote.c (extended_remote_attach_1, extended_remote_attach):
4431 * target.h (struct target_ops) <to_attach>: Make "args" const.
4432 (find_default_attach): Likewise.
4433 * utils.c (parse_pid_to_attach): Make "args" const.
4434 * utils.h (parse_pid_to_attach): Update.
4436 2014-06-04 Tom Tromey <tromey@redhat.com>
4438 * target-delegates.c: Rebuild.
4439 * target.c (default_thread_address_space): New function.
4440 (target_thread_address_space): Simplify.
4441 * target.h (struct target_ops) <to_thread_address_space>: Add
4442 TARGET_DEFAULT_FUNC.
4444 2014-06-04 Doug Evans <xdje42@gmail.com>
4446 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4448 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4450 * record-btrace.c: Include event-loop.h and inf-loop.h.
4451 (record_btrace_resume_exec_dir)
4452 (record_btrace_async_inferior_event_handler)
4453 (record_btrace_handle_async_inferior_event): New.
4454 (record_btrace_open): Create async event handler.
4455 (record_btrace_close): Delete async event handler.
4456 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4457 Mark async event handler.
4458 (record_btrace_execution_direction): New.
4459 (init_record_btrace_ops): Initialize to_execution_direction.
4461 2014-06-03 Doug Evans <xdje42@gmail.com>
4463 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4464 (gdbscm_make_parameter): Ditto.
4466 2014-06-03 Doug Evans <dje@google.com>
4468 * exec.c (exec_close_1): Call clear_section_table instead of
4469 resize_section_table.
4470 (clear_section_table): New function.
4471 (resize_section_table): Make static. Rename arg num_added to
4473 * exec.h (clear_section_table): Declare.
4474 (resize_section_table): Delete.
4475 * progspace.c (release_program_space): Call clear_section_table
4476 instead of resize_section_table.
4478 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4480 * NEWS (Python Scripting): Add entry about the new xmethods
4483 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4485 * python/py-xmethods.c: New file.
4486 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4487 (objfpy_dealloc): XDECREF on the new xmethods field.
4488 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4490 (objfpy_get_xmethods): New function.
4491 (objfile_getset): New entry 'xmethods'.
4492 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4493 (pspy_dealloc): XDECREF on the new xmethods field.
4494 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4496 (pspy_get_xmethods): New function.
4497 (pspace_getset): New entry 'xmethods'.
4498 * python/python-internal.h: Add declarations for new functions.
4499 * python/python.c (_initialize_python): Invoke
4500 gdbpy_initialize_xmethods.
4501 * python/lib/gdb/__init__.py (xmethods): New
4503 * python/lib/gdb/xmethod.py: New file.
4504 * python/lib/gdb/command/xmethods.py: New file.
4506 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4508 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4509 best match method returned by find_overload_match is an xmethod.
4510 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4511 the best matching operator returned by find_overload_match is an
4513 * valops.c: #include "extension.h".
4514 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4515 Return void. The list of matching source methods is returned in
4516 "fn_list" and a vector of matching debug method workers is
4517 returned in "xm_worker_vec". Update all callers.
4518 (value_find_oload_method_list): Likewise.
4519 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4520 non-NULL, then the index of the best matching method in this
4521 vector is returned. Update all callers.
4522 (find_overload_match): Include xmethods while performing overload
4525 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4527 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4528 * extension-priv.h (struct extension_language_ops): Add the
4530 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4531 get_matching_xmethod_workers, get_xmethod_argtypes,
4532 invoke_xmethod, free_xmethod_worker,
4533 free_xmethod_worker_vec): New functions.
4534 * extension.h: #include "common/vec.h".
4535 New function declarations.
4536 (struct xmethod_worker): New struct.
4537 (VEC (xmethod_worker_ptr)): New vector type.
4538 (xmethod_worker_ptr): New typedef.
4539 (xmethod_worker_vec): Likewise.
4540 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4542 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4543 (struct builtin_type): New field "xmethod".
4544 * valarith.c (value_ptradd): Assert that the value argument is not
4546 * valops.c (value_must_coerce_to_target): Return 0 for
4547 lval_xcallable values.
4548 * value.c (struct value): New field XM_WORKER in the field
4550 (value_address, value_raw_address): Return 0 for lval_xcallable
4552 (set_value_address): Assert that the value is not an
4554 (value_free): Free the associated xmethod worker when freeing
4555 lval_xcallable values.
4556 (set_value_component_location): Assert that the WHOLE value is not
4558 (value_of_xmethod, call_xmethod): New functions.
4559 * value.h: Declare "struct xmethod_worker".
4560 Declare new functions value_of_xmethod, call_xmethod.
4562 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4563 Pedro Alves <palves@redhat.com>
4565 PR breakpoints/17000
4566 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4567 New function, extracted from software_breakpoint_inserted_here_p.
4568 (software_breakpoint_inserted_here_p): Replace factored out code
4569 by call to find_non_raw_software_breakpoint_inserted_here.
4570 (bp_target_info_copy_insertion_state): New function.
4571 (bkpt_insert_location): Handle the case of a single-step
4572 breakpoint already inserted at the same address.
4573 (bkpt_remove_location): Handle the case of a single-step
4574 breakpoint still inserted at the same address.
4575 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4576 breakpoint already inserted at the same address.
4577 (deprecated_remove_raw_breakpoint): Handle the case of a
4578 non-raw breakpoint still inserted at the same address.
4579 (find_single_step_breakpoint): New function, extracted from
4580 single_step_breakpoint_inserted_here_p.
4581 (find_single_step_breakpoint): New function,
4582 factored out from single_step_breakpoint_inserted_here_p.
4583 (single_step_breakpoint_inserted_here_p): Reimplement.
4585 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4587 Pushed by Joel Brobecker <brobecker@adacore.com>
4588 * source.c (show_substitute_path_command): Fix display of matching
4591 2014-06-03 Gary Benson <gbenson@redhat.com>
4593 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4595 2014-06-02 Doug Evans <xdje42@gmail.com>
4597 Add parameter support for Guile.
4598 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4599 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4600 (scm-param.o): New rule.
4601 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4602 (gdbscm_misc_error): Declare.
4603 (gdbscm_canonicalize_command_name): Declare.
4604 (gdbscm_scm_to_host_string): Declare.
4605 (gdbscm_scm_from_host_string): Declare.
4606 (gdbscm_initialize_parameters): Declare.
4607 * guile/guile.c (initialize_gdb_module): Call
4608 gdbscm_initialize_parameters.
4609 * guile/lib/gdb.scm: Export parameter symbols.
4610 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4611 cmdscm_canonicalize_name and made public. All callers updated.
4612 * guile/scm-exception.c (gdbscm_misc_error): New function.
4613 * guile/scm-param.c: New file.
4614 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4615 (gdbscm_scm_to_host_string): New function.
4616 (gdbscm_scm_from_host_string): New function.
4617 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4619 2014-06-02 Doug Evans <xdje42@gmail.com>
4621 Add command support for Guile.
4622 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4623 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4624 (scm-cmd.o): New rule.
4625 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4626 (gdbscm_user_error_p): Declare.
4627 (gdbscm_parse_command_name): Declare.
4628 (gdbscm_valid_command_class_p): Declare.
4629 (gdbscm_initialize_commands): Declare.
4630 * guile/guile.c (initialize_gdb_module): Call
4631 gdbscm_initialize_commands.
4632 * guile/lib/gdb.scm: Export command symbols.
4633 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4634 (throw-user-error): New function.
4635 * guile/scm-cmd.c: New file.
4636 * guile/scm-exception.c (user_error_symbol): New static global.
4637 (gdbscm_user_error_p): New function.
4638 (gdbscm_initialize_exceptions): Set user_error_symbol.
4639 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4641 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4643 * top.c (command_loop): Handle comments here...
4644 (command_line_input): ... not here.
4646 2014-06-02 Doug Evans <xdje42@gmail.com>
4648 Add progspace support for Guile.
4649 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4650 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4651 (scm-progspace.o): New rule.
4652 * guile/guile-internal.h (pspace_smob): New typedef.
4653 (psscm_pspace_smob_pretty_printers): Declare.
4654 (psscm_pspace_smob_from_pspace): Declare.
4655 (psscm_scm_from_pspace): Declare.
4656 * guile/guile.c (initialize_gdb_module): Call
4657 gdbscm_initialize_pspaces.
4658 * guile/lib/gdb.scm: Export progspace symbols.
4659 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4661 (append-pretty-printer!): Ditto.
4662 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4664 * guile/scm-progspace.c: New file.
4666 2014-06-03 Alan Modra <amodra@gmail.com>
4668 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4669 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4671 2014-06-02 Doug Evans <dje@google.com>
4673 Add support for skeletonless type units.
4674 * dwarf2read.c (struct dwarf2_per_objfile): New member
4675 n_allocated_type_units.
4676 (struct dwarf2_per_objfile) <tu_stats>: New member
4677 nr_all_type_units_reallocs.
4678 (create_signatured_type_table_from_index): Initialize
4679 n_allocated_type_units
4680 (create_all_type_units): Ditto.
4681 (add_type_unit): Move up in file. New arg slot.
4682 All callers updated. Increase space for all_type_units more
4684 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4685 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4686 (lookup_dwp_signatured_type): Ditto.
4687 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4688 All callers updated.
4689 (build_type_psymtabs_1): Leave type_unit_groups as
4690 NULL if no TUs present.
4691 (print_tu_stats): New function.
4692 (process_skeletonless_type_unit): New function.
4693 (process_dwo_file_for_skeletonless_type_units): New
4695 (process_skeletonless_type_units): New function.
4696 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4697 Call print tu_stats if debugging enabled.
4699 2014-06-02 Pedro Alves <palves@redhat.com>
4701 * breakpoint.c (build_target_command_list): Don't build a command
4702 list if we have any duplicate location that isn't a dprintf.
4704 2014-06-02 Pedro Alves <palves@redhat.com>
4706 * breakpoint.c (dprintf_breakpoint_hit): New function.
4707 (initialize_breakpoint_ops): Install it as dprintf's
4708 breakpoint_hit method.
4710 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4712 * source.c (substitute_path_rule_matches): Simplify using
4713 filename_ncmp instead of FILENAME_CMP.
4715 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4717 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4719 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4721 * configure.ac: When Guile is available, check for the
4722 availability of 'scm_new_smob'.
4723 * configure, config.h.in: Regenerate.
4724 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4727 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4729 * frame.c (struct frame_info): Add stop_string field.
4730 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4731 (get_prev_frame_always): Old content moved into
4732 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4733 TRY_CATCH, handle MEMORY_ERROR exceptions.
4734 (frame_stop_reason_string): New function definition.
4735 * frame.h (unwind_stop_reason_to_string): Extend comment to
4736 mention frame_stop_reason_string.
4737 (frame_stop_reason_string): New function declaration.
4738 * stack.c (frame_info): Switch to frame_stop_reason_string.
4739 (backtrace_command_1): Switch to frame_stop_reason_string.
4740 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4741 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4742 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4744 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4746 * frame.c (frame_stop_reason_string): Rename to ...
4747 (unwind_stop_reason_to_string): this.
4748 * frame.h (frame_stop_reason_string): Rename to ...
4749 (unwind_stop_reason_to_string): this.
4750 * stack.c (frame_info): Update call to frame_stop_reason_string.
4751 (backtrace_command_1): Likewise.
4752 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4753 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4755 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4757 * frame.c (remove_prev_frame): New function.
4758 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4761 2014-05-29 Pedro Alves <palves@redhat.com>
4763 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4764 and make it const. When a single-step decays to a continue,
4765 clear 'step', not 'hw_step'. Pass whether the caller wanted
4766 to step to user_visible_resume_ptid, not what we ask the
4769 2014-05-29 Pedro Alves <palves@redhat.com>
4771 * infrun.c (process_event_stop_test, handle_step_into_function)
4772 (handle_step_into_function_backward): Adjust.
4773 Don't set the even thread's stop_step and call stop_waiting before
4774 calling end_stepping_range. Instead do that ...
4775 (end_stepping_range): ... here. Take an ecs pointer parameter.
4777 2014-05-29 Pedro Alves <palves@redhat.com>
4779 * infrun.c (stop_stepping): Rename to ...
4780 (stop_waiting): ... this.
4781 (proceed): Update comment.
4782 (process_event_stop_test, handle_inferior_event)
4783 (handle_signal_stop, handle_step_into_function)
4784 (handle_step_into_function_backward): Update.
4786 2014-05-29 Pedro Alves <palves@redhat.com>
4788 * infcall.c (run_inferior_call): Don't check whether the current
4789 thread is running after the proceed call.
4791 2014-05-29 Pedro Alves <palves@redhat.com>
4792 Tom Tromey <tromey@redhat.com>
4794 * NEWS: Mention "maint set target-async", "set mi-async", and that
4795 background execution commands are now always available.
4796 * target.h (target_async_permitted): Update comment.
4797 * target.c (target_async_permitted, target_async_permitted_1):
4799 (set_target_async_command): Rename to ...
4800 (maint_set_target_async_command): ... this.
4801 (show_target_async_command): Rename to ...
4802 (maint_show_target_async_command): ... this.
4803 (_initialize_target): Adjust.
4804 * infcmd.c (prepare_execution_command): Make extern.
4805 * inferior.h (prepare_execution_command): Declare.
4806 * infrun.c (set_observer_mode): Leave target async alone.
4807 * mi/mi-interp.c (mi_interpreter_init): Install
4808 mi_on_sync_execution_done as sync_execution_done observer.
4809 (mi_on_sync_execution_done): New function.
4810 (mi_execute_command_input_handler): Don't print the prompt if we
4811 just started a synchronous command with an async target.
4812 (mi_on_resume): Check sync_execution before printing prompt.
4813 * mi/mi-main.h (mi_async_p): Declare.
4814 * mi/mi-main.c: Include gdbcmd.h.
4815 (mi_async_p): New function.
4816 (mi_async, mi_async_1): New globals.
4817 (set_mi_async_command, show_mi_async_command, mi_async): New
4819 (exec_continue): Call prepare_execution_command.
4820 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4821 (mi_execute_async_cli_command): Use mi_async_p.
4822 (_initialize_mi_main): Install "set mi-async". Make
4823 "target-async" a deprecated alias.
4825 2014-05-29 Pedro Alves <palves@redhat.com>
4827 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4828 (_initialize_cli_interp): Adjust.
4829 * event-loop.c: Include "observer.h".
4830 (start_event_loop): Notify 'command_error' observers instead of
4831 calling display_gdb_prompt. Remove FIXME comment.
4832 * event-top.c (display_gdb_prompt): Remove call into the
4834 * inf-loop.c: Include "observer.h".
4835 (inferior_event_handler): Notify 'command_error' observers instead
4836 of calling display_gdb_prompt.
4837 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4838 observers instead of calling display_gdb_prompt.
4839 * interps.c (interp_set): Don't call display_gdb_prompt.
4840 (current_interp_display_prompt_p): Delete.
4841 * interps.h (interp_prompt_p): Delete declaration.
4842 (interp_prompt_p_ftype): Delete.
4843 (struct interp_procs) <prompt_proc_p>: Delete field.
4844 (current_interp_display_prompt_p): Delete declaration.
4845 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4846 (_initialize_mi_interp): Adjust.
4847 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4848 'command_error' observers.
4849 (tui_on_sync_execution_done, tui_on_command_error): New
4851 (tui_display_prompt_p): Delete.
4852 (_initialize_tui_interp): Adjust.
4854 2014-05-29 Pedro Alves <palves@redhat.com>
4857 * cli/cli-interp.c: Include infrun.h and observer.h.
4858 (cli_uiout, cli_interp): New globals.
4859 (cli_on_signal_received, cli_on_end_stepping_range)
4860 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4862 (cli_interpreter_init): Install them as 'end_stepping_range',
4863 'signal_received' 'signal_exited', 'exited' and 'no_history'
4865 (_initialize_cli_interp): Remove cli_interp local.
4866 * infrun.c (handle_inferior_event): Call the several stop reason
4867 observers instead of printing the stop reason directly.
4868 (end_stepping_range): New function.
4869 (print_end_stepping_range_reason, print_signal_exited_reason)
4870 (print_exited_reason, print_signal_received_reason)
4871 (print_no_history_reason): Make static, and add an uiout
4872 parameter. Print to that instead of to CURRENT_UIOUT.
4873 * infrun.h (print_end_stepping_range_reason)
4874 (print_signal_exited_reason, print_exited_reason)
4875 (print_signal_received_reason print_no_history_reason): New
4877 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4879 <cli_uiout>: New field.
4880 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4881 uiout for CLI output. Install 'signal_received',
4882 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4884 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4885 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4886 (mi_on_no_history): New functions.
4887 (ui_out_free_cleanup): Delete function.
4888 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4889 instead use the one already stored in the MI interpreter data.
4890 (mi_ui_out): Adjust.
4891 * tui/tui-interp.c: Include infrun.h and observer.h.
4892 (tui_interp): New global.
4893 (tui_on_signal_received, tui_on_end_stepping_range)
4894 (tui_on_signal_exited, tui_on_exited)
4895 (tui_on_no_history): New functions.
4896 (tui_init): Install them as 'end_stepping_range',
4897 'signal_received' 'signal_exited', 'exited' and 'no_history'
4899 (_initialize_tui_interp): Delete tui_interp local.
4901 2014-05-29 Pedro Alves <palves@redhat.com>
4904 * linux-nat.c (linux_nat_resume_callback): Rename the second
4905 parameter to 'except'. Skip LP if it points to EXCEPT.
4906 (linux_nat_resume): Don't mark the event lwp as not stopped
4907 before resuming sibling lwps. Instead ask
4908 linux_nat_resume_callback to skip the event lwp. Mark it as not
4909 stopped after actually resuming it.
4910 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4912 (wait_lwp): Mark the lwp as stopped here.
4913 (stop_wait_callback): Mark the lwp as not stopped right after
4914 resuming it. Don't mark lwps as stopped here.
4915 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4916 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4918 2014-05-29 Pedro Alves <palves@redhat.com>
4921 * infrun.c (resume): Determine how much to resume depending on
4922 whether the caller wanted a step, not whether we can hardware step
4923 the target. Mark all threads that we intend to run as running,
4924 unless we're calling an inferior function.
4925 (normal_stop): If the thread is running an infcall, don't finish
4927 * target.c (target_resume): Don't mark threads as running here.
4929 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4931 * serial.c (_initialize_serial): Remove support for
4932 the "set remotebaud" and "show remotebaud" commands.
4933 * NEWS: Add entry documenting the removal of that command.
4935 2014-05-28 Yao Qi <yao@codesourcery.com>
4937 * charset.c: Fix typo in comments.
4939 2014-05-27 Gary Benson <gbenson@redhat.com>
4941 * utils.c (internal_vproblem): Prompt for a bug report.
4943 2014-05-26 Andy Wingo <wingo@igalia.com>
4945 * guile/scm-arch.c (arscm_mark_arch_smob):
4946 * guile/scm-block.c (bkscm_mark_block_smob)
4947 (bkscm_mark_block_syms_progress_smob):
4948 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4949 * guile/scm-exception.c (exscm_mark_exception_smob):
4950 * guile/scm-frame.c (frscm_mark_frame_smob):
4951 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4952 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4953 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4954 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4955 (ppscm_mark_pretty_printer_worker_smob):
4956 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4957 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4958 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4959 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4961 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4964 2014-05-26 Andy Wingo <wingo@igalia.com>
4965 Doug Evans <xdje42@gmail.com>
4967 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4968 empty_base_class. All uses updated.
4969 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4970 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4972 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4973 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4974 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4975 (gdbscm_gsmob_has_property_p, add_property_name)
4976 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4977 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4978 (gdb-object-has-property?, gdb-object-properties): Remove.
4979 (gdb-object-kind): Renamed from gsmob-kind.
4981 2014-05-26 Andy Wingo <wingo@igalia.com>
4983 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4984 * configure: Regenerate.
4986 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4988 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4990 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4992 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4993 (replay_memory_access_read_only, replay_memory_access_read_write)
4994 (replay_memory_access_types, replay_memory_access)
4995 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4996 (cmd_set_record_btrace, cmd_show_record_btrace)
4997 (cmd_show_replay_memory_access): New.
4998 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4999 (record_btrace_remove_breakpoint): Replace
5000 record_btrace_allow_memory_access with replay_memory_access.
5001 (_initialize_record_btrace): Add commands.
5002 * NEWS: Announce it.
5004 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5006 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5008 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5010 * MAINTAINERS (Write After Approval): Move self back from
5013 2014-05-22 Pedro Alves <palves@redhat.com>
5015 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5016 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5017 (disable_randomization, enum exec_direction_kind)
5018 (execution_direction, stop_registers, start_remote)
5019 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5020 (wait_for_inferior, normal_stop, get_last_target_status)
5021 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5022 (insert_step_resume_breakpoint_at_sal)
5023 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5024 (set_step_info, print_stop_event, signal_stop_state)
5025 (signal_print_state, signal_pass_state, signal_stop_update)
5026 (signal_print_update, signal_pass_update)
5027 (update_signals_program_target, clear_exit_convenience_vars)
5028 (displaced_step_dump_bytes, update_observer_mode)
5029 (signal_catch_update, gdb_signal_from_command): Move
5031 * infrun.h: ... to this new file.
5032 * amd64-tdep.c: Include infrun.h.
5033 * annotate.c: Include infrun.h.
5034 * arch-utils.c: Include infrun.h.
5035 * arm-linux-tdep.c: Include infrun.h.
5036 * arm-tdep.c: Include infrun.h.
5037 * break-catch-sig.c: Include infrun.h.
5038 * breakpoint.c: Include infrun.h.
5039 * common/agent.c: Include infrun.h instead of inferior.h.
5040 * corelow.c: Include infrun.h.
5041 * event-top.c: Include infrun.h.
5042 * go32-nat.c: Include infrun.h.
5043 * i386-tdep.c: Include infrun.h.
5044 * inf-loop.c: Include infrun.h.
5045 * infcall.c: Include infrun.h.
5046 * infcmd.c: Include infrun.h.
5047 * infrun.c: Include infrun.h.
5048 * linux-fork.c: Include infrun.h.
5049 * linux-nat.c: Include infrun.h.
5050 * linux-thread-db.c: Include infrun.h.
5051 * monitor.c: Include infrun.h.
5052 * nto-tdep.c: Include infrun.h.
5053 * procfs.c: Include infrun.h.
5054 * record-btrace.c: Include infrun.h.
5055 * record-full.c: Include infrun.h.
5056 * remote-m32r-sdi.c: Include infrun.h.
5057 * remote-mips.c: Include infrun.h.
5058 * remote-notif.c: Include infrun.h.
5059 * remote-sim.c: Include infrun.h.
5060 * remote.c: Include infrun.h.
5061 * reverse.c: Include infrun.h.
5062 * rs6000-tdep.c: Include infrun.h.
5063 * s390-linux-tdep.c: Include infrun.h.
5064 * solib-irix.c: Include infrun.h.
5065 * solib-osf.c: Include infrun.h.
5066 * solib-svr4.c: Include infrun.h.
5067 * target.c: Include infrun.h.
5068 * top.c: Include infrun.h.
5069 * windows-nat.c: Include infrun.h.
5070 * mi/mi-interp.c: Include infrun.h.
5071 * mi/mi-main.c: Include infrun.h.
5072 * python/py-threadevent.c: Include infrun.h.
5074 2014-05-22 Pedro Alves <palves@redhat.com>
5076 * infrun.c (handle_inferior_event): Store the exit code for
5077 --return-child-result here, instead of ...
5078 (print_exited_reason): ... here.
5080 2014-05-21 Pedro Alves <palves@redhat.com>
5083 * gdbthread.h (struct thread_control_state): New field
5085 * infrun.c (follow_fork): Copy the new thread control field to the
5087 (clear_proceed_status_thread): Clear the new thread control field.
5088 (proceed): Set the new thread control field.
5089 * interps.h (command_interp): Declare.
5090 * interps.c (command_interpreter): New global.
5091 (command_interp): New function.
5092 (interp_exec): Set `command_interpreter' while here.
5093 * cli-out.c (cli_uiout_dtor): New function.
5094 (cli_ui_out_impl): Install it.
5095 * mi/mi-interp.c: Include cli-out.h.
5096 (mi_cmd_interpreter_exec): Add comment.
5097 (restore_current_uiout_cleanup): New function.
5098 (ui_out_free_cleanup): New function.
5099 (mi_on_normal_stop): If finishing an execution command started by
5100 a CLI command, or any kind of breakpoint-like event triggered,
5101 print the stop event to the output (CLI) stream.
5102 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5104 2014-05-21 Pedro Alves <palves@redhat.com>
5106 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5107 current source line having changed.
5108 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5109 * infrun.c (normal_stop): Adjust call to
5110 set_current_sal_from_frame.
5111 * source.c (clear_lines_listed_range): New function.
5112 (set_current_source_symtab_and_line, identify_source_line): Clear
5113 the lines listed range.
5114 (line_info): Handle the first "info line" after the current source
5115 line having changed.
5116 * stack.c (print_stack_frame): Remove center handling.
5117 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5120 2014-05-21 Pedro Alves <palves@redhat.com>
5122 * inf-child.c (inf_child_mourn_inferior): New function.
5123 * inf-child.h (inf_child_mourn_inferior): New declaration.
5124 * darwin-nat.c (darwin_mourn_inferior): Use
5125 inf_child_mourn_inferior.
5126 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5127 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5128 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5129 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5130 * windows-nat.c (windows_mourn_inferior): Likewise.
5132 2014-05-21 Doug Evans <xdje42@gmail.com>
5134 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5136 2014-05-21 Doug Evans <xdje42@gmail.com>
5138 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5139 (gdbscm_out_of_range_error): Ditto.
5140 (gdbscm_memory_error): Ditto.
5141 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5142 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5143 (gdbscm_out_of_range_error): Update.
5144 (gdbscm_memory_error): Update.
5145 (gdbscm_scm_to_target_string_unsafe): Delete.
5147 2014-05-21 Pedro Alves <palves@redhat.com>
5149 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5151 (inf_child_open_target): New function.
5152 (inf_child_open): Use inf_child_open_target to push the target
5153 instead of erroring out.
5154 (inf_child_disconnect, inf_child_close)
5155 (inf_child_maybe_unpush_target): New functions.
5156 (inf_child_target): Install inf_child_disconnect and
5157 inf_child_close. Store a pointer to the returned object.
5158 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5160 * target.c (auto_connect_native_target): New global.
5161 (show_default_run_target): New function.
5162 (find_default_run_target): Return NULL if automatically connecting
5163 to the native target is disabled.
5164 (_initialize_target): Install set/show auto-connect-native-target.
5165 * NEWS: Mention "set auto-connect-native-target", and "target
5167 * linux-nat.c (super_close): New global.
5168 (linux_nat_close): Call super_close.
5169 (linux_nat_add_target): Store a pointer to the base class's
5171 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5172 inf_child_maybe_unpush.
5173 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5175 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5176 the inferior. Use inf_child_maybe_unpush_target.
5177 (inf_ttrace_attach): Don't push the target if it is already
5179 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5180 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5181 after mourning the inferior. Use inf_child_maybe_unpush_target.
5182 (darwin_attach_pid): Don't push the target if it is already
5184 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5185 mourning the inferior. Use inf_child_maybe_unpush_target.
5186 (gnu_detach): Use inf_child_maybe_unpush_target.
5187 * go32-nat.c (go32_create_inferior): Don't push the target if it
5189 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5190 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5191 (procfs_open): Rename to ...
5192 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5193 comments. Can target_preopen before changing node. Call
5194 inf_child_open_target to push the target explicitly.
5195 (procfs_attach): Don't push the target if it is already pushed.
5196 (procfs_detach): Use inf_child_maybe_unpush_target.
5197 (procfs_create_inferior): Don't push the target if it is already
5199 (nto_native_ops): New global.
5200 (procfs_open): Reimplement.
5201 (procfs_native_open): New function.
5202 (init_procfs_targets): Install procfs_native_open as to_open of
5203 "target native". Store a pointer to the "native" target in
5205 * procfs.c (procfs_attach): Don't push the target if it is already
5207 (procfs_detach): Use inf_child_maybe_unpush_target.
5208 (procfs_mourn_inferior): Only unpush the target after mourning the
5209 inferior. Use inf_child_maybe_unpush_target.
5210 (procfs_init_inferior): Don't push the target if it is already
5212 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5213 if it is already pushed.
5215 2014-05-21 Pedro Alves <palves@redhat.com>
5217 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5218 and "procfs" targets are now called "native" instead.
5220 2014-05-21 Pedro Alves <palves@redhat.com>
5222 * go32-nat.c (go32_open): Delete.
5223 (go32_target): Don't override the to_open method.
5225 2014-05-21 Pedro Alves <palves@redhat.com>
5227 * nto-procfs.c (procfs_can_run): New function.
5228 (nto_procfs_ops): New global.
5229 (init_procfs_targets): New, based on procfs_target. Install
5230 "target native" in addition to "target procfs".
5231 (_initialize_procfs): Call init_procfs_targets instead of adding
5234 2014-05-21 Pedro Alves <palves@redhat.com>
5236 * windows-nat.c (windows_target): Don't override to_shortname,
5237 to_longname or to_doc.
5239 2014-05-21 Pedro Alves <palves@redhat.com>
5241 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5244 2014-05-21 Pedro Alves <palves@redhat.com>
5246 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5247 to_shortname, to_longname or to_doc.
5249 2014-05-21 Pedro Alves <palves@redhat.com>
5251 * go32-nat.c (go32_target): Don't override to_shortname,
5252 to_longname or to_doc.
5254 2014-05-21 Pedro Alves <palves@redhat.com>
5256 * inf-child.c (inf_child_open): Remove mention of "child".
5257 (inf_child_target): Rename target to "native" instead of "child".
5259 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5261 * Makefile.in (SFILES): Delete "regset.c".
5262 (COMMON_OBS): Delete "regset.o".
5264 * regset.h (regset_alloc): Delete prototype.
5266 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5268 * sparc-linux-tdep.c (sparc32_linux_gregset)
5269 (sparc32_linux_fpregset): New static regset structures.
5270 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5271 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5273 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5274 (sparc64_linux_fpregset): New static regset structures.
5275 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5276 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5277 New static regset structures.
5278 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5279 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5280 New static regset structures.
5281 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5282 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5283 New static regset structures.
5284 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5285 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5286 New static regset structures.
5287 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5289 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5291 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5292 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5293 register maps ("regmaps") from "*regset" to "*regmap". Do this
5294 for all regmap types and variables.
5295 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5296 (sparc32_linux_supply_core_gregset)
5297 (sparc32_linux_collect_core_gregset)
5298 (sparc32_linux_supply_core_fpregset)
5299 (sparc32_linux_collect_core_fpregset): Likewise.
5300 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5301 (sparc_gregmap, sparc_fpregmap): ... these.
5302 (sparc_supply_gregset, sparc_collect_gregset)
5303 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5304 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5305 (_initialize_sparc_nat): Rename regmaps.
5306 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5307 (sparc_gregmap, sparc_fpregmap): ... these.
5308 (sparc_supply_gregset, sparc_collect_gregset)
5309 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5310 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5312 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5313 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5315 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5317 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5318 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5319 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5321 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5322 (sparc32_bsd_fpregset): Rename to...
5323 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5324 (sparc32_bsd_fpregmap): ... these.
5325 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5326 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5327 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5328 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5329 (struct sparc_gregmap, struct sparc_fpregmap)
5330 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5331 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5332 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5333 (sparc32_supply_regset, sparc32_collect_gregset)
5334 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5336 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5337 (sparc64_linux_ptrace_gregmap): ... this.
5338 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5339 (_initialize_sparc64_linux_nat): Rename regmaps.
5340 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5341 (sparc64_linux_core_gregmap): ... this.
5342 (sparc64_linux_supply_core_gregset)
5343 (sparc64_linux_collect_core_gregset)
5344 (sparc64_linux_supply_core_fpregset)
5345 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5346 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5347 (sparc64_sol2_fpregset): Rename to...
5348 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5349 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5350 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5352 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5353 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5354 (sparc64_bsd_fpregset): Rename to...
5355 (struct sparc_gregmap, sparc64_sol2_gregmap)
5356 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5357 (sparc64_bsd_fpregmap): ... these.
5358 (sparc64_supply_gregset, sparc64_collect_gregset)
5359 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5361 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5362 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5363 (sparc64fbsd_gregmap): ... this.
5364 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5365 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5367 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5368 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5369 (sparc64nbsd_collect_fpregset): Likewise.
5370 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5371 (sparc64nbsd_gregmap): ... this.
5372 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5374 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5375 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5376 (sparc64obsd_gregmap): ... this.
5377 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5379 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5380 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5381 (sparc32nbsd_gregmap): ... this.
5382 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5385 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5387 * score-tdep.c (score7_linux_gregset): New static regset
5389 (score7_linux_regset_from_core_section): Remove dynamic regset
5391 (score_gdbarch_init): Drop allocation of tdep structure.
5392 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5394 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5396 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5398 (am33_regset_from_core_section): Remove dynamic regset
5401 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5403 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5404 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5406 (mips_linux_regset_from_core_section): Remove dynamic regset
5408 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5409 'gregset64', 'fpregset', and 'fpregset64'.
5410 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5411 deleted tdep fields.
5413 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5415 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5417 (amd64_regset_from_core_section): Remove dynamic regset
5419 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5421 (amd64obsd_regset_from_core_section): Remove dynamic regset
5423 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5425 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5426 x86-common regset supply function.
5427 * i386-tdep.c (i386_collect_gregset): Make static.
5428 (i386_gregset): New global regset structure.
5429 (i386_fpregset, i386_xstateregset): New static regset structures.
5430 (i386_regset_from_core_section): Remove dynamic regset
5432 (i386_gdbarch_init): Remove initialization of tdep fields
5433 'gregset', 'fpregset', and 'xstateregset'.
5434 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5435 'fpregset', and 'xstateregset'.
5436 (i386_collect_gregset): Remove prototype.
5437 (i386_gregset): New declaration.
5438 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5440 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5443 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5445 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5446 (arm_linux_vfpregset): New static regset structures.
5447 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5449 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5450 and 'vfpregset' fields.
5452 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5454 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5455 (aarch64_linux_fpregset): New static regset structures.
5456 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5457 of regset structures.
5458 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5461 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5463 * regset.h (struct regset): Remove gdbarch field.
5464 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5465 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5466 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5468 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5469 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5470 (ppc32_linux_vsxregset): Likewise.
5471 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5472 via the regcache instead of the regset.
5473 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5474 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5475 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5476 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5479 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5481 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5482 Constify structures.
5483 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5484 (alphanbsd_aout_gregset): Likewise.
5485 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5486 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5488 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5489 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5491 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5492 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5493 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5494 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5495 * m88k-tdep.c (m88k_gregset): Likewise.
5496 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5497 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5498 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5499 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5500 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5501 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5502 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5503 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5504 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5506 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5507 * sh-tdep.h (sh_corefile_gregset): Likewise.
5508 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5509 * vax-tdep.c (vax_gregset): Likewise.
5511 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5513 Fix TLS access for -static -pthread.
5514 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5515 (try_thread_db_load_1): Initialize it.
5516 (thread_db_get_thread_local_address): Call it if LM is zero.
5517 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5518 * target.h (struct target_ops) (to_get_thread_local_address): Add
5519 load_module_addr comment.
5521 2014-05-21 Pedro Alves <palves@redhat.com>
5523 * dcache.c (dcache_read_memory_partial): If reading the cache line
5524 fails, fallback to reading just the memory the caller wanted.
5526 2014-05-20 Doug Evans <dje@google.com>
5528 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5529 instead of get_current_arch.
5531 2014-05-20 Pedro Alves <palves@redhat.com>
5533 * NEWS: Mention that compare-sections now works with all targets.
5535 * remote.c (PACKET_qCRC): New enum value.
5536 (remote_verify_memory): Don't send qCRC if the target has no
5537 execution. Use packet_support/packet_ok. If the target doesn't
5538 support the qCRC packet, fallback to a deep memory copy.
5539 (compare_sections_command): Say "target image" instead of "remote
5541 (_initialize_remote): Add PACKET_qCRC to the list of config
5542 packets that have no associated command. Extend comment.
5543 * target.c (simple_verify_memory, default_verify_memory): New
5545 * target.h (struct target_ops) <to_verify_memory>: Default to
5546 default_verify_memory.
5547 (simple_verify_memory): New declaration.
5548 * target-delegates.c: Regenerate.
5550 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5552 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5554 2014-05-20 Hui Zhu <hui@codesourcery.com>
5555 Yao Qi <yao@codesourcery.com>
5558 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5559 and change address of sp and pc.
5561 2014-05-19 Tom Tromey <tromey@redhat.com>
5563 * gdbtypes.c (rank_function): Use XNEWVEC.
5564 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5566 2014-05-19 Doug Evans <dje@google.com>
5568 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5569 build_type_unit_groups and moved closer to only caller. Remove
5570 arguments. All references updated. Remove outdated .gdb_index
5572 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5573 build_type_psymtabs_1.
5575 2014-05-19 Doug Evans <dje@google.com>
5577 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5578 n_type_unit_groups, all_type_unit_groups. All uses removed.
5579 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5580 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5581 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5582 (add_type_unit_group_to_table): Delete.
5584 2014-05-19 Doug Evans <dje@google.com>
5586 * eval.c (evaluate_subexp_standard): Add some comments.
5588 2014-05-17 Doug Evans <xdje42@gmail.com>
5590 * progspace.c (remove_program_space): Delete, unused.
5591 * progspace.h (remove_program_space): Ditto.
5593 2014-05-17 Doug Evans <xdje42@gmail.com>
5595 * inferior.c (prune_inferiors): Fix comment.
5596 (remove_inferior_command): Call prune_program_spaces.
5598 2014-05-16 Doug Evans <dje@google.com>
5600 New command line option -D.
5602 * main.c (set_gdb_data_directory): New function.
5603 (captured_main): Recognize -D. Flag error for --data-directory "".
5604 Call set_gdb_data_directory.
5605 (print_gdb_help): Print --data-directory, -D.
5606 * main.h (set_gdb_data_directory): Declare.
5607 * top.c (staged_gdb_datadir): New static global.
5608 (set_gdb_datadir): Call set_gdb_data_directory
5609 (show_gdb_datadir): New function.
5610 (init_main): Update init of data-directory parameter.
5612 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5614 Import the "dirfd" gnulib module.
5615 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5616 * gnulib/aclocal.m4: Update.
5617 * gnulib/config.in: Update.
5618 * gnulib/configure: Update.
5619 * gnulib/import/Makefile.am: Update.
5620 * gnulib/import/Makefile.in: Update.
5621 * gnulib/import/dirfd.c: New.
5622 * gnulib/import/m4/dirfd.m4: New.
5623 * gnulib/import/m4/gnulib-cache.m4: Update.
5624 * gnulib/import/m4/gnulib-comp.m4: Update.
5626 2014-05-16 Pierre Muller <muller@sourceware.org>
5627 Yao Qi <yao@codesourcery.com>
5629 * valprint.c (print_wchar): Move the code on checking whether
5630 W is a printable wide char to the default branch of switch
5631 statement below. Call wchar_printable instead of gdb_iswprint.
5633 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5635 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5636 ldr.w and ldrd instructions.
5638 2014-05-15 Doug Evans <dje@google.com>
5640 * dwarf2read.c (read_structure_type): Delete outdated comments.
5642 2014-05-14 Tom Tromey <tromey@redhat.com>
5644 * macrocmd.c (print_macro_definition): Reindent.
5646 2014-05-13 Doug Evans <xdje42@gmail.com>
5648 * python/py-cmd.c (cmdpy_completer): Add comment.
5649 (completers): Make const.
5651 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5653 * infrun.c (resume): Remove should_resume (unused). Move up
5654 declaration of resume_ptid.
5656 2014-05-13 Tom Tromey <tromey@redhat.com>
5658 * language.h (unop_type_check): Remove.
5659 (binop_type_check): Don't declare.
5661 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5663 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5664 call to regcache_raw_collect.
5666 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5668 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5669 mi_console->quote as the quoting character.
5671 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5673 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5675 2014-04-29 Tom Tromey <tromey@redhat.com>
5677 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5678 "show debug varobj".
5680 2014-05-07 Kyle McMartin <kyle@redhat.com>
5682 Pushed by Joel Brobecker <brobecker@adacore.com>.
5683 * aarch64-tdep.c (aarch64_software_single_step): New function.
5684 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5685 with aarch64_software_single_step.
5687 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5691 2014-05-05 Keith Seitz <keiths@redhat.com>
5693 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5694 variable or history value is successfully parsed.
5696 2014-05-05 Yao Qi <yao@codesourcery.com>
5697 Pedro Alves <palves@redhat.com>
5699 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5700 address of blocks that intersects the requested range. Trim
5701 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5703 * ctf.c (ctf_xfer_partial): Likewise.
5705 2014-05-05 Yao Qi <yao@codesourcery.com>
5707 * printcmd.c (display_command): Remove the check to
5708 target_has_execution.
5710 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5712 * ppcobsd-nat.c: Include "obsd-nat.h".
5713 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5715 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5717 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5719 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5720 and 16-bit signed and unsigned arguments. Update comment.
5721 (stap_parse_probe_arguments): Extend code to handle such
5722 arguments. Use warning instead of complaint to notify about
5723 unrecognized bitness.
5725 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5727 PR breakpoints/16889
5728 * stap-probe.c (stap_parse_probe_arguments): Simplify
5729 check for non-prefixed probes (i.e., probes whose
5730 arguments do not start with "N@"). Always set the
5731 argument type to a sane value.
5733 2014-05-01 David Taylor <dtaylor@emc.com>
5735 * remote.c (compare_sections_command): Add -r option to compare
5736 all loadable read-only sections.
5738 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5740 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5741 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5743 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5744 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5745 Remove unused CORE_ADDR argument. Update all callers.
5747 2014-04-29 Pedro Alves <palves@redhat.com>
5749 * remote.c (struct packet_config) <detect>: Extend comment.
5750 (add_packet_config_cmd): Don't set the config's detect or support
5752 (init_all_packet_configs): Also initialize the config's 'detect'
5754 (reset_all_packet_configs_support): New function.
5755 (remote_open_1): Call reset_all_packet_configs_support instead of
5756 init_all_packet_configs.
5757 (_initialize_remote): Initialize all packet configs. Assert that
5758 all packets have an associated command, except a few known
5761 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5763 * dwarf2read.c (read_subrange_type): Handle dynamic
5764 DW_AT_lower_bound attributes.
5766 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5768 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5769 dynamic bounds before computing its upper bound.
5770 (ada_discrete_type_low_bound): Same as above with the lower bound.
5772 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5774 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5775 range types. Adjust the array handling implementation to
5776 take advantage of this change.
5777 (resolve_dynamic_range): New function, mostly extracted from
5778 resolve_dynamic_bounds.
5779 (resolve_dynamic_array): New function, mostly extracted from
5780 resolve_dynamic_bounds.
5781 (resolve_dynamic_bounds): Delete.
5782 (resolve_dynamic_type): Reimplement. Add handling of
5783 TYPE_CODE_RANGE types.
5785 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5787 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5788 handling of parallel ___XA types.
5790 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5792 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5793 unnecessary second call to static_unwrap_type.
5795 2014-04-27 Hui Zhu <hui@codesourcery.com>
5797 * stack.c (print_frame_info): Call do_gdb_disassembly with
5798 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5800 2014-04-26 Doug Evans <xdje42@gmail.com>
5802 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5804 2014-04-25 Pedro Alves <palves@redhat.com>
5807 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5808 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5809 and newline from built string.
5810 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5811 (linux_ptrace_attach_fail_reason): ... this.
5812 * linux-nat.c (linux_nat_attach): Adjust to use
5813 linux_ptrace_attach_fail_reason.
5815 2014-04-25 Pedro Alves <palves@redhat.com>
5817 * remote.c (struct remote_state): Remove multi_process_aware,
5818 non_stop_aware, cond_tracepoints, cond_breakpoints,
5819 breakpoint_commands, fast_tracepoints, static_tracepoints,
5820 install_in_trace, disconnected_tracing,
5821 enable_disable_tracepoints, string_tracing, and
5822 augmented_libraries_svr4_read fields.
5823 (remote_multi_process_p): Move further below in the file.
5824 (struct packet_config): Add comments.
5825 (update_packet_config): Delete function.
5826 (show_packet_config_cmd): Use packet_config_support.
5827 (add_packet_config_cmd): Use NULL as set callback.
5828 (packet_ok): "set remote foo-packet"-style commands no longer
5829 change config->supported -- adjust.
5830 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5831 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5832 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5833 (PACKET_QNonStop, PACKET_multiprocess_feature)
5834 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5835 (PACKET_DisconnectedTracing_feature)
5836 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5837 (set_remote_protocol_packet_cmd): Delete function.
5838 (packet_config_support, packet_support): New functions.
5839 (set_remote_protocol_Z_packet_cmd): Don't call
5840 update_packet_config.
5841 (remote_query_attached, remote_pass_signals)
5842 (remote_program_signals, remote_threads_info)
5843 (remote_threads_extra_info, remote_start_remote): Use
5845 (remote_start_remote): Use packet_config_support and
5847 (init_all_packet_configs): Set all packets to unknown support,
5848 instead of calling update_packet_config.
5849 (remote_check_symbols): Use packet_support.
5850 (remote_supported_packet): Unconditionally set the packet config's
5852 (remote_multi_process_feature, remote_non_stop_feature)
5853 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5854 (remote_breakpoint_commands_feature)
5855 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5856 (remote_install_in_trace_feature)
5857 (remote_disconnected_tracing_feature)
5858 (remote_enable_disable_tracepoint_feature)
5859 (remote_string_tracing_feature)
5860 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5861 (remote_protocol_features): Adjust to use remote_supported_packet
5862 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5863 "ConditionalTracepoints", "ConditionalBreakpoints",
5864 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5865 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5866 "EnableDisableTracepoints", and "tracenz".
5867 (remote_query_supported): Use packet_support.
5868 (remote_open_1): Adjust.
5869 (extended_remote_attach_1): Use packet_support. Switch on the
5870 result of packet_ok instead of checking whether the packet ended
5872 (remote_vcont_resume): Use packet_support.
5873 (remote_resume, remote_stop_ns, fetch_register_using_p)
5874 (remote_prepare_to_store, store_register_using_P)
5875 (check_binary_download, remote_write_bytes): Use packet_support.
5876 (remote_vkill): Use packet_support. Switch on the result of
5877 packet_ok instead of checking whether the packet ended up
5879 (extended_remote_supports_disable_randomization): Use
5881 (extended_remote_run): Switch on the result of packet_ok instead
5882 of checking whether the packet ended up disabled.
5883 (remote_insert_breakpoint, remote_remove_breakpoint)
5884 (remote_insert_watchpoint, remote_remove_watchpoint)
5885 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5887 (remote_search_memory): Use packet_config_support.
5888 (remote_get_thread_local_address, remote_get_tib_address)
5889 (remote_hostio_send_command, remote_can_execute_reverse): Use
5891 (remote_supports_cond_tracepoints)
5892 (remote_supports_cond_breakpoints)
5893 (remote_supports_fast_tracepoints)
5894 (remote_supports_static_tracepoints)
5895 (remote_supports_install_in_trace)
5896 (remote_supports_enable_disable_tracepoint)
5897 (remote_supports_string_tracing)
5898 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5899 the packet config says the feature is enabled or disabled.
5900 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5901 (remote_get_trace_status): Use packet_support.
5902 (remote_set_disconnected_tracing): Adjust to check whether the
5903 feature is enabled with packet_support.
5904 (remote_set_trace_buffer_size, remote_use_agent)
5905 (remote_can_use_agent, remote_supports_btrace): Use
5907 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5908 Use packet_config_support.
5909 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5910 the packet config says the feature is enabled or disabled.
5911 (set_range_stepping): Use packet_support.
5913 2014-04-25 Tom Tromey <tromey@redhat.com>
5915 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5918 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5920 * NEWS: Mention support for C99 variable length arrays.
5922 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5924 * ada-lang.c (standard_exc): Expand introductory comment.
5926 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5927 Walfred Tedeschi <walfred.tedeschi@intel.com>
5929 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5931 (amd64_linux_read_description): Add code to handle AVX512 xstate
5932 mask and return respective tdesc.
5933 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5934 and features/i386/x32-avx512-linux.c.
5935 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5936 (amd64_linux_core_read_description): Add code to handle AVX512
5937 xstate mask and return respective tdesc.
5938 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5939 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5941 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5942 (tdesc_amd64_avx512_linux): New prototype.
5943 (tdesc_x32_avx512_linux): Likewise.
5944 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5945 features/i386/x32-avx512.c.
5946 (amd64_ymm_avx512_names): New register names for pseudo
5948 (amd64_ymmh_avx512_names): New register names for raw registers
5950 (amd64_k_names): New register names for K registers.
5951 (amd64_zmmh_names): New register names for ZMM raw registers.
5952 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5953 (amd64_xmm_avx512_names): New register names for XMM16-31
5955 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5957 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5958 if feature is present.
5959 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5960 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5961 (AMD64_NUM_REGS): Adjust to new number of registers.
5962 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5963 registers supplied via XSTATE by AVX512 registers.
5964 (i386_linux_read_description): Add case for AVX512.
5965 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5966 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5967 (i386_linux_core_read_description): Add case for AVX512.
5968 (i386_linux_init_abi): Install supported register note section
5970 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5972 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5973 registers to be number of zmm7h + 1.
5974 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5975 * i386-tdep.c: Include features/i386/i386-avx512.c.
5976 (i386_zmm_names): Add ZMM pseudo register names array.
5977 (i386_zmmh_names): Add ZMM raw register names array.
5978 (i386_k_names): Add K raw register names array.
5979 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5980 registers. AVX512 has 16 more ZMM registers than there are YMM
5982 (i386_zmmh_regnum_p): Add function to look up register number of
5984 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5985 (i386_k_regnum_p): Likewise for K raw registers.
5986 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5987 registers added by AVX512.
5988 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5989 registers added by AVX512.
5990 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5992 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5993 (i386_pseudo_register_name): Add ZMM pseudo registers.
5994 (i386_zmm_type): Construct and return vector registers type for ZMM
5996 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5997 ZMM0-31 pseudo registers and K registers.
5998 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5999 and YMM16-31 registers from register cache.
6000 (i386_pseudo_register_write): Add code to write K, ZMM and
6002 (i386_register_reggroup_p): Add code to include/exclude AVX512
6003 registers in/from respective register groups.
6004 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6005 registers if feature is present in xcr0.
6006 (i386_gdbarch_init): Add code to initialize AVX512 feature
6007 variables in tdep structure, wire in pseudo registers and call
6008 initialize_tdesc_i386_avx512.
6009 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6011 (i386_regnum): Add AVX512 registers.
6012 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6013 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6014 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6015 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6017 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6018 (i386_ymm_avx512_regnum_p): Likewise.
6019 (i386_k_regnum_p): Likewise.
6020 (i386_zmm_regnum_p): Likewise.
6021 (i386_zmmh_regnum_p): Likewise.
6022 * i387-tdep.c : Update year in copyright notice.
6023 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6025 (XSAVE_YMM_AVX512_ADDR): New macro.
6026 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6028 (XSAVE_XMM_AVX512_ADDR): New macro.
6029 (xsave_avx512_k_offset): New table for K register offsets in
6031 (XSAVE_AVX512_K_ADDR): New macro.
6032 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6034 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6035 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6037 (i387_collect_xsave): Add code to collect AVX512 registers from
6039 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6040 of XMM16-31 registers.
6041 (I387_NUM_K_REGS): New define for number of K registers.
6042 (I387_K0_REGNUM): New define for K0 register number.
6043 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6044 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6045 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6047 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6048 (I387_XMM16_REGNUM): New define for XMM16 register number.
6049 (I387_YMM0_REGNUM): New define for YMM0 register number.
6050 (I387_KEND_REGNUM): New define for last K register number.
6051 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6052 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6054 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6056 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6058 * features/Makefile: Add AVX512 related files.
6059 * features/i386/32bit-avx512.xml: New file.
6060 * features/i386/64bit-avx512.xml: Likewise.
6061 * features/i386/amd64-avx512-linux.c: Likewise.
6062 * features/i386/amd64-avx512-linux.xml: Likewise.
6063 * features/i386/amd64-avx512.c: Likewise.
6064 * features/i386/amd64-avx512.xml: Likewise.
6065 * features/i386/i386-avx512-linux.c: Likewise.
6066 * features/i386/i386-avx512-linux.xml: Likewise.
6067 * features/i386/i386-avx512.c: Likewise.
6068 * features/i386/i386-avx512.xml: Likewise.
6069 * features/i386/x32-avx512-linux.c: Likewise.
6070 * features/i386/x32-avx512-linux.xml: Likewise.
6071 * features/i386/x32-avx512.c: Likewise.
6072 * features/i386/x32-avx512.xml: Likewise.
6073 * regformats/i386/amd64-avx512-linux.dat: New file.
6074 * regformats/i386/amd64-avx512.dat: Likewise.
6075 * regformats/i386/i386-avx512-linux.dat: Likewise.
6076 * regformats/i386/i386-avx512.dat: Likewise.
6077 * regformats/i386/x32-avx512-linux.dat: Likewise.
6078 * regformats/i386/x32-avx512.dat: Likewise.
6079 * NEWS: Add note about new support for AVX512.
6082 2014-04-23 Pedro Alves <palves@redhat.com>
6084 * breakpoint.c (insert_bp_location): Tolerate errors if the
6085 breakpoint is set in a user-loaded objfile.
6086 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6087 location is marked shlib_disabled. If the breakpoint is set in a
6088 user-loaded objfile is a GDB-side memory breakpoint, validate it
6089 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6090 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6092 * mem-break.c (memory_validate_breakpoint): New function.
6093 * objfiles.c (userloaded_objfile_contains_address_p): New
6095 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6096 * target.h (memory_validate_breakpoint): New declaration.
6098 2014-04-23 Pedro Alves <palves@redhat.com>
6100 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6101 the breakpoint is set in a shared library, only suppress
6102 errors for software breakpoints, not hardware breakpoints.
6104 2014-04-22 Pedro Alves <palves@redhat.com>
6106 * infrun.c (schedlock_applies): New function, factored out from
6107 find_thread_needs_step_over.
6108 (find_thread_needs_step_over): Use it.
6109 (switch_back_to_stepped_thread): Always clear trap_expected if the
6110 step over is finished. Return early if scheduler locking applies.
6111 Look for the stepping thread and a potential step-over thread with
6113 (currently_stepping_or_nexting_callback): Delete.
6115 2014-04-22 Nick Clifton <nickc@redhat.com>
6117 * NEWS: Mention that ARM sim now supports tracing.
6119 2014-04-22 Yao Qi <yao@codesourcery.com>
6121 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6123 * tracefile.c (tracefile_fetch_registers): ... it. New
6125 * tracefile.h (tracefile_fetch_registers): Declare.
6126 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6127 tracefile_fetch_registers.
6129 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6132 * windows-nat.c (thread_rec): Don't display a warning when
6133 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6134 fails for any reason, set th->suspended to -1, so that we don't
6135 try to resume such a thread. Also, don't return NULL in these
6136 cases, to avoid completely ruin the session due to "PC register is
6137 not available" error.
6138 (do_windows_fetch_inferior_registers): Check errors in
6139 GetThreadContext call.
6140 (windows_continue): Accept an additional argument KILLED; if not
6141 zero, ignore errors in the SetThreadContext call, since the
6142 inferior was killed and is shutting down.
6143 (windows_resume, get_windows_debug_event)
6144 (windows_create_inferior, windows_mourn_inferior)
6145 (windows_kill_inferior): All callers of windows_continue changed
6146 to adjust to its new calling sequence.
6148 2014-04-19 Yao Qi <yao@codesourcery.com>
6150 * ctf.c (ctf_open): Call post_create_inferior.
6152 2014-04-19 Yao Qi <yao@codesourcery.com>
6154 * ctf.c (handle_id): New static variable.
6155 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6156 value. Get the declaration of event "register" and get length
6157 of field "contents".
6159 2014-04-19 Yao Qi <yao@codesourcery.com>
6161 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6163 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6165 * valops.c (oload_method_static): Remove unnecessary argument
6166 METHOD. Update all callers.
6168 2014-04-18 Pedro alves <palves@redhat.com>
6169 Tom Tromey <tromey@redhat.com>
6172 * frame.c (get_prev_frame_1): Rename to ...
6173 (get_prev_frame_always): ... this, and make extern. Adjust.
6174 (skip_artificial_frames): Use get_prev_frame_always.
6175 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6176 (get_frame_unwind_stop_reason): Adjust to rename.
6177 * frame.h (get_prev_frame_always): Declare.
6178 * inline-frame.c: Include frame.h.
6179 (inline_frame_this_id): Use get_prev_frame_always.
6181 2014-04-18 Tristan Gingold <gingold@adacore.com>
6183 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6184 code by using bfd_mach_o_get_base_address.
6186 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6188 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6189 (spu_ax_pseudo_register_collect): New function.
6190 (spu_ax_pseudo_register_push_stack): Likewise.
6191 (spu_dwarf_reg_to_regnum): Likewise.
6192 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6194 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6196 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6197 Replace FRAME argument with FRAME_ID.
6198 * gdbarch.c, gdbarch.h: Regenerate.
6199 * findvar.c (default_value_from_register): Add GDBARCH argument;
6200 replace FRAME by FRAME_ID. No longer call get_frame_id.
6201 (value_from_register): Update call to gdbarch_value_from_register.
6202 * value.h (default_value_from_register): Update prototype.
6203 * s390-linux-tdep.c (s390_value_from_register): Update interface
6204 and call to default_value_from_register.
6205 * spu-tdep.c (spu_value_from_register): Likewise.
6207 * findvar.c (address_from_register): Remove TYPE argument.
6208 Do not call value_from_register; use gdbarch_value_from_register
6209 with null_frame_id instead.
6210 * value.h (address_from_register): Update prototype.
6211 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6212 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6213 address_from_register interface change.
6215 2014-04-17 Yao Qi <yao@codesourcery.com>
6217 * gdbtypes.h: Update comments to link to types and macros'
6220 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6222 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6224 2014-04-16 Keith Seitz <keiths@redhat.com>
6227 * dwarf2read.c (skip_one_die): Check that all relative-offset
6228 sibling DIEs fall within range of the current reader's buffer.
6229 (read_partial_die): Likewise.
6231 2014-04-16 Keith Seitz <keiths@redhat.com>
6234 * cp-namespace.c (lookup_symbol_file): If the type name of
6235 `this' is NULL, return immediately.
6237 2014-04-14 Keith Seitz <keiths@redhat.com>
6240 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6241 from symbol_matches_domain in symtab.c. All local callers
6242 of symbol_matches_domain updated.
6243 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6244 search STRUCT_DOMAIN.
6245 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6246 independently. standard_lookup will do that automatically.
6247 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6248 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6249 (cp_lookup_symbol_in_namespace): Likewise.
6250 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6251 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6252 may return a STRUCT_DOMAIN match.
6253 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6254 * cp-support.c: Include language.h.
6255 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6257 * psymtab.c (match_partial_symbol): Compare the requested
6258 domain with the symbol's domain directly.
6259 (lookup_partial_symbol): Likewise.
6260 * symtab.c (lookup_symbol_in_language): Explain when/why
6261 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6262 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6263 appropriate languages.
6264 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6265 and moved to ada-lang.c
6266 (lookup_block_symbol): Explain that this function only returns
6267 symbol matching the requested DOMAIN.
6268 Compare the requested domain with the symbol's domain directly.
6269 (iterate_over_symbols): Compare the requested domain with the
6270 symbol's domain directly.
6271 * symtab.h (symbol_matches_domain): Remove.
6273 2014-04-14 Tom Tromey <tromey@redhat.com>
6276 * c-exp.y (type_aggregate_p): New function.
6277 (qualified_name, classify_inner_name): Use it.
6278 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6279 and TYPE_TARGET_TYPE of an enum type.
6280 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6282 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6283 handle TYPE_DECLARED_CLASS.
6284 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6286 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6287 * valops.c (enum_constant_from_type): New function.
6288 (value_aggregate_elt): Use it.
6289 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6292 2014-04-14 Tom Tromey <tromey@redhat.com>
6294 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6295 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6297 * value.h (value_aggregate_elt): Update.
6299 2014-04-14 Tom Tromey <tromey@redhat.com>
6301 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6303 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6305 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6306 (evaluate_subexp_standard): Pass noside argument.
6307 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6308 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6309 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6310 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6311 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6313 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6315 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6316 points to a constant blob.
6318 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6320 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6321 property and store it as the high bound and flag the range accordingly.
6322 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6323 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6324 * gdbtypes.h (enum range_flags): New enum.
6325 (struct range_bounds): Add flags member.
6327 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6329 * c-typeprint.c (c_type_print_varspec_suffix): Added
6330 check for not yet resolved high bound. If unresolved, print
6331 "variable length" string to the console instead of random
6334 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6336 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6338 (ada_template_to_fixed_record_type_1): Likewise.
6339 (ada_to_fixed_type_1): Likewise.
6340 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6341 (cp_print_value): Likewise.
6342 * d-valprint.c (dynamic_array_type): Likewise.
6343 * findvar.c (address_of_variable): Likewise.
6344 * jv-valprint.c (java_value_print): Likewise.
6345 * valops.c (value_ind): Likewise.
6346 * value.c (coerce_ref): Likewise.
6348 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6350 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6351 value and retrieve the dynamic type size.
6353 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6355 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6356 passed to sizeof is dynamic evaluate the argument to compute the length.
6358 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6359 Joel Brobecker <brobecker@adacore.com>
6361 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6362 (dwarf2_evaluate_property): New function.
6363 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6364 * dwarf2read.c (attr_to_dynamic_prop): New function.
6365 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6367 * gdbtypes.c: Include dwarf2loc.h.
6368 (is_dynamic_type): New function.
6369 (resolve_dynamic_type): New function.
6370 (resolve_dynamic_bounds): New function.
6371 (get_type_length): New function.
6372 (check_typedef): Use get_type_length to compute type length.
6373 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6374 (TYPE_LOW_BOUND_KIND): New macro.
6375 (is_dynamic_type): New function prototype.
6376 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6377 to resolve dynamic properties of the type. Update comment.
6378 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6380 2014-04-14 Richard Henderson <rth@redhat.com>
6382 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6384 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6385 Doug Evans <xdje42@gmail.com>
6387 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6388 dereference TYPE_CODE_REF values.
6390 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6392 Revert the following changes due to regressions:
6394 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6395 (dwarf2_evaluate_property): New function.
6396 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6397 * dwarf2read.c (attr_to_dynamic_prop): New function.
6398 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6400 * gdbtypes.c: Include dwarf2loc.h.
6401 (is_dynamic_type): New function.
6402 (resolve_dynamic_type): New function.
6403 (resolve_dynamic_bounds): New function.
6404 (get_type_length): New function.
6405 (check_typedef): Use get_type_length to compute type length.
6406 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6407 (TYPE_LOW_BOUND_KIND): New macro.
6408 (is_dynamic_type): New function prototype.
6409 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6410 to resolve dynamic properties of the type. Update comment.
6411 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6413 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6414 passed to sizeof is dynamic evaluate the argument to compute the length.
6416 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6417 value and retrieve the dynamic type size.
6419 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6420 (ada_template_to_fixed_record_type_1): Likewise.
6421 (ada_to_fixed_type_1): Likewise.
6422 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6423 (cp_print_value): Likewise.
6424 * d-valprint.c (dynamic_array_type): Likewise.
6425 * eval.c (evaluate_subexp_with_coercion): Likewise.
6426 * findvar.c (address_of_variable): Likewise.
6427 * jv-valprint.c (java_value_print): Likewise.
6428 * valops.c (value_ind): Likewise.
6429 * value.c (coerce_ref): Likewise.
6431 * c-typeprint.c (c_type_print_varspec_suffix): Added
6432 check for not yet resolved high bound. If unresolved, print
6433 "variable length" string to the console instead of random
6436 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6437 property and store it as the high bound and flag the range accordingly.
6438 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6439 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6440 * gdbtypes.h (enum range_flags): New enum.
6441 (struct range_bounds): Add flags member.
6443 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6444 points to a constant blob.
6446 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6447 (evaluate_subexp_standard): Pass noside argument.
6448 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6449 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6450 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6451 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6452 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6454 2014-04-11 Keith Seitz <keiths@redhat.com>
6457 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6458 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6461 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6463 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6464 (evaluate_subexp_standard): Pass noside argument.
6465 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6466 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6467 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6468 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6469 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6471 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6473 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6474 points to a constant blob.
6476 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6478 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6479 property and store it as the high bound and flag the range accordingly.
6480 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6481 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6482 * gdbtypes.h (enum range_flags): New enum.
6483 (struct range_bounds): Add flags member.
6485 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6487 * c-typeprint.c (c_type_print_varspec_suffix): Added
6488 check for not yet resolved high bound. If unresolved, print
6489 "variable length" string to the console instead of random
6492 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6494 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6495 (ada_template_to_fixed_record_type_1): Likewise.
6496 (ada_to_fixed_type_1): Likewise.
6497 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6498 (cp_print_value): Likewise.
6499 * d-valprint.c (dynamic_array_type): Likewise.
6500 * eval.c (evaluate_subexp_with_coercion): Likewise.
6501 * findvar.c (address_of_variable): Likewise.
6502 * jv-valprint.c (java_value_print): Likewise.
6503 * valops.c (value_ind): Likewise.
6504 * value.c (coerce_ref): Likewise.
6506 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6508 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6509 value and retrieve the dynamic type size.
6511 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6513 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6514 passed to sizeof is dynamic evaluate the argument to compute the length.
6516 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6518 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6519 (dwarf2_evaluate_property): New function.
6520 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6521 * dwarf2read.c (attr_to_dynamic_prop): New function.
6522 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6524 * gdbtypes.c: Include dwarf2loc.h.
6525 (is_dynamic_type): New function.
6526 (resolve_dynamic_type): New function.
6527 (resolve_dynamic_bounds): New function.
6528 (get_type_length): New function.
6529 (check_typedef): Use get_type_length to compute type length.
6530 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6531 (TYPE_LOW_BOUND_KIND): New macro.
6532 (is_dynamic_type): New function prototype.
6533 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6534 to resolve dynamic properties of the type. Update comment.
6535 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6537 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6539 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6540 declaring high/low bounds and change uses accordingly. Call
6541 create_range_type instead of create_static_range_type.
6542 * gdbtypes.c (create_range_type): New function.
6543 (create_range_type): Convert bounds into struct bound_prop and pass
6544 them to create_range_type.
6545 * gdbtypes.h (struct bound_prop): New struct.
6546 (create_range_type): New function prototype.
6547 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6548 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6549 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6551 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6553 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6555 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6556 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6557 * ada-lang.c: All uses of create_range_type updated.
6558 * coffread.c: All uses of create_range_type updated.
6559 * dwarf2read.c: All uses of create_range_type updated.
6560 * f-exp.y: All uses of create_range_type updated.
6561 * m2-valprint.c: All uses of create_range_type updated.
6562 * mdebugread.c: All uses of create_range_type updated.
6563 * stabsread.c: All uses of create_range_type updated.
6564 * valops.c: All uses of create_range_type updated.
6565 * valprint.c: All uses of create_range_type updated.
6567 2014-04-10 Pedro Alves <palves@redhat.com>
6569 * breakpoint.c (single_step_breakpoints)
6570 (single_step_gdbarch): Move up in the file.
6571 (one_breakpoint_xfer_memory): New function, factored out from ...
6572 (breakpoint_xfer_memory): ... here. Also process single-step
6575 2014-04-09 Tristan Gingold <gingold@adacore.com>
6577 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6579 (darwin_decode_exception_message): Free port only after use.
6581 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6583 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6584 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6585 when setting the size of call_length.
6587 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6589 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6590 dereference TYPE_CODE_REF values.
6592 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6594 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6595 end of warning message.
6597 2014-04-03 Doug Evans <dje@google.com>
6599 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6600 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6602 2014-04-02 Alan Modra <amodra@gmail.com>
6604 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6605 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6606 (struct symbol_file_add_from_memory_args): Add size field.
6607 (find_vdso_size): New function.
6608 (add_vsyscall_page): Attempt to find vdso size.
6610 2014-04-01 Doug Evans <dje@google.com>
6612 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6614 2014-04-01 Tristan Gingold <gingold@adacore.com>
6616 * darwin-nat.c (darwin_encode_reply): Add prototype.
6617 (darwin_decode_exception_message): Reply to unknown inferiors.
6618 (darwin_decode_message): Handle message by id. Ignore message
6619 to unknown inferior.
6620 (darwin_wait): Discard unknown messages, add debug trace.
6622 2014-03-31 Doug Evans <dje@google.com>
6624 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6627 2014-03-31 Doug Evans <dje@google.com>
6629 New option "set print symbol-loading".
6631 * solib.c (solib_read_symbols): Only print symbol loading messages
6633 (solib_add): If symbol loading is in "brief" mode, notify user
6634 symbols are being loaded.
6635 (reload_shared_libraries_1): Ditto.
6636 * symfile.c (print_symbol_loading_off): New static global.
6637 (print_symbol_loading_brief): New static global.
6638 (print_symbol_loading_full): New static global.
6639 (print_symbol_loading_enums): New static global.
6640 (print_symbol_loading): New static global.
6641 (print_symbol_loading_p): New function.
6642 (symbol_file_add_with_addrs): Only print symbol loading messages
6644 (_initialize_symfile): Register "print symbol-loading" set/show
6646 * symfile.h (print_symbol_loading_p): Declare.
6648 2014-03-30 Doug Evans <xdje42@gmail.com>
6650 * infrun.c (set_last_target_status): New function.
6651 (handle_inferior_event): Call it.
6653 2014-03-30 Doug Evans <xdje42@gmail.com>
6655 * inferior.h (enum stop_kind): Improve comment.
6657 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6659 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6660 a reference, strip the reference layer before calling
6661 the lang_ops value_has_mutated callback.
6663 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6665 Remove some globals from our parser.
6666 * language.c (unk_lang_parser): Add "struct parser_state"
6668 * language.h (struct language_defn) <la_parser>: Likewise.
6669 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6670 (initialize_expout): Add "struct parser_state" argument.
6671 Rewrite function to use the parser state.
6672 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6673 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6674 write_exp_elt_longcst, write_exp_elt_dblcst,
6675 write_exp_elt_decfloatcst, write_exp_elt_type,
6676 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6677 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6678 write_dollar_variable): Likewise.
6679 (parse_exp_in_context_1): Use parser state.
6680 (insert_type_address_space): Add "struct parser_state" argument.
6682 (increase_expout_size): New function.
6683 * parser-defs.h: Forward declare "struct language_defn" and
6684 "struct parser_state".
6685 (expout, expout_size, expout_ptr): Remove extern declarations.
6686 (parse_gdbarch, parse_language): Rewrite macro declarations to
6687 accept the parser state.
6688 (struct parser_state): New struct.
6689 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6690 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6691 write_exp_elt_decfloatcst, write_exp_elt_type,
6692 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6693 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6694 write_exp_msymbol, write_dollar_variable,
6695 mark_struct_expression, insert_type_address_space): Add "struct
6696 parser_state" argument.
6697 (increase_expout_size): New function.
6698 * utils.c (do_clear_parser_state): New function.
6699 (make_cleanup_clear_parser_state): Likewise.
6700 * utils.h (make_cleanup_clear_parser_state): New function
6702 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6703 Update calls to write_exp* in order to pass the parser state.
6704 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6705 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6706 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6707 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6708 * stap-probe.c (stap_parse_register_operand): Likewise.
6709 (stap_parse_single_operand): Likewise.
6710 (stap_parse_argument_1): Likewise.
6711 (stap_parse_argument): Use parser state.
6712 * stap-probe.h: Include "parser-defs.h".
6713 (struct stap_parse_info) <pstate>: New field.
6714 * c-exp.y (parse_type): Rewrite to use parser state.
6715 (yyparse): Redefine to c_parse_internal.
6716 (pstate): New global variable.
6717 (parse_number): Add "struct parser_state" argument.
6718 (write_destructor_name): Likewise.
6719 (type_exp): Update calls to write_exp* and similars in order to
6721 (exp1, exp, variable, qualified_name, space_identifier,
6722 typename, typebase): Likewise.
6723 (write_destructor_name, parse_number, lex_one_token,
6724 classify_name, classify_inner_name, c_parse): Add "struct
6725 parser_state" argument. Update function to use parser state.
6726 * c-lang.h: Forward declare "struct parser_state".
6727 (c_parse): Add "struct parser_state" argument.
6728 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6729 (yyparse): Redefine macro to ada_parse_internal.
6730 (pstate): New variable.
6731 (write_int, write_object_renaming, write_var_or_type,
6732 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6733 type_int, type_long, type_long_long, type_float, type_double,
6734 type_long_double, type_char, type_boolean, type_system_address):
6735 Add "struct parser_state" argument.
6736 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6737 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6738 var_or_type, aggregate, aggregate_component_list,
6739 positional_list, others, component_group,
6740 component_associations): Update calls to write_exp* and similar
6741 functions in order to use parser state.
6742 (ada_parse, write_var_from_sym, write_int,
6743 write_exp_op_with_string, write_object_renaming,
6744 find_primitive_type, write_selectors, write_ambiguous_var,
6745 write_var_or_type, write_name_assoc, type_int, type_long,
6746 type_long_long, type_float, type_double, type_long_double,
6747 type_char, type_boolean, type_system_address): Add "struct
6748 parser_state" argument. Adjust function to use parser state.
6749 * ada-lang.c (parse): Likewise.
6750 * ada-lang.h: Forward declare "struct parser_state".
6751 (ada_parse): Add "struct parser_state" argument.
6752 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6753 calls to both functions.
6754 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6756 (yyparse): Redefine macro to f_parse_internal.
6757 (pstate): New variable.
6758 (parse_number): Add "struct parser_state" argument.
6759 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6760 and similars in order to use parser state.
6761 (parse_number): Adjust code to use parser state.
6763 (f_parse): New function.
6764 * f-lang.h: Forward declare "struct parser_state".
6765 (f_parse): Add "struct parser_state" argument.
6766 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6768 (yyparse): Redefine macro for java_parse_internal.
6769 (pstate): New variable.
6770 (push_expression_name, push_expression_name, insert_exp): Add
6771 "struct parser_state" argument.
6772 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6773 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6774 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6775 PostIncrementExpression, PostDecrementExpression,
6776 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6777 UnaryExpressionNotPlusMinus, CastExpression,
6778 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6779 RelationalExpression, EqualityExpression, AndExpression,
6780 ExclusiveOrExpression, InclusiveOrExpression,
6781 ConditionalAndExpression, ConditionalOrExpression,
6782 ConditionalExpression, Assignment, LeftHandSide): Update
6783 calls to write_exp* and similars in order to use parser state.
6784 (parse_number): Ajust code to use parser state.
6786 (java_parse): New function.
6787 (push_variable): Add "struct parser_state" argument. Adjust
6788 code to user parser state.
6789 (push_fieldnames, push_qualified_expression_name,
6790 push_expression_name, insert_exp): Likewise.
6791 * jv-lang.h: Forward declare "struct parser_state".
6792 (java_parse): Add "struct parser_state" argument.
6793 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6795 (yyparse): Redefine macro to m2_parse_internal.
6796 (pstate): New variable.
6797 (type_exp, exp, fblock, variable, type): Update calls to
6798 write_exp* and similars to use parser state.
6800 (m2_parse): New function.
6801 * m2-lang.h: Forward declare "struct parser_state".
6802 (m2_parse): Add "struct parser_state" argument.
6803 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6804 * objc-lang.h: Forward declare "struct parser_state".
6805 (end_msglist): Add "struct parser_state" argument.
6806 * p-exp.y (parse_type): Rewrite macro to use parser state.
6807 (yyparse): Redefine macro to pascal_parse_internal.
6808 (pstate): New variable.
6809 (parse_number): Add "struct parser_state" argument.
6810 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6811 write_exp* and similars in order to use parser state.
6812 (parse_number, yylex): Adjust code to use parser state.
6813 (pascal_parse): New function.
6814 * p-lang.h: Forward declare "struct parser_state".
6815 (pascal_parse): Add "struct parser_state" argument.
6816 * go-exp.y (parse_type): Rewrite macro to use parser state.
6817 (yyparse): Redefine macro to go_parse_internal.
6818 (pstate): New variable.
6819 (parse_number): Add "struct parser_state" argument.
6820 (type_exp, exp1, exp, variable, type): Update calls to
6821 write_exp* and similars in order to use parser state.
6822 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6823 to use parser state.
6824 (go_parse): Likewise.
6825 * go-lang.h: Forward declare "struct parser_state".
6826 (go_parse): Add "struct parser_state" argument.
6828 2014-03-27 Doug Evans <dje@google.com>
6830 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6832 2014-03-27 Doug Evans <dje@google.com>
6834 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6835 Remove argument abbrev_section. All callers updated.
6837 2014-03-27 Doug Evans <dje@google.com>
6839 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6840 addr_base, ranges_base.
6842 2014-03-26 Keith Seitz <keiths@redhat.com>
6844 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6845 types, not VAR_DOMAIN.
6847 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6849 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6851 * features/nios2-linux.c: Regenerated.
6852 * features/nios2.c: Regenerated.
6854 2014-03-25 Pedro Alves <palves@redhat.com>
6856 * cli/cli-script.c (script_from_file): Force the interpreter to
6859 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6861 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6862 small stack allocation.
6864 2014-03-24 Tristan Gingold <gingold@adacore.com>
6866 * darwin-nat.c (exc_server): Remove unused prototype.
6867 (darwin_dump_message): Correctly display data on x86_64.
6868 (darwin_encode_reply): Fix style.
6869 Add comments and fix indentation.
6871 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6873 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6875 2014-03-22 Doug Evans <xdje42@gmail.com>
6877 * infcmd.c: Whitespace fixes.
6878 (interrupt_command): Merge two function comments into one.
6880 2014-03-22 Doug Evans <xdje42@gmail.com>
6882 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6885 2014-03-22 Yao Qi <yao@codesourcery.com>
6887 * remote.c (target_read_live_memory): Remove.
6888 (memory_xfer_live_readonly_partial): Rename it to
6889 remote_xfer_live_readonly_partial. Remove argument 'object'.
6890 All callers updated. Call remote_read_bytes_1
6891 instead of target_read_live_memory.
6892 * tracepoint.c (set_traceframe_number): Remove.
6893 (make_cleanup_restore_traceframe_number): Likewise .
6894 * tracepoint.h (set_traceframe_number): Remove declaration.
6895 (make_cleanup_restore_traceframe_number): Likewise.
6897 2014-03-22 Yao Qi <yao@codesourcery.com>
6899 * remote.c (remote_read_bytes): Move code on reading from the
6901 (remote_read_bytes_1): ... here. New function.
6903 2014-03-22 Yao Qi <yao@codesourcery.com>
6905 * ctf.c (ctf_xfer_partial): Check the return value of
6906 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6907 return TARGET_XFER_UNAVAILABLE.
6908 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6909 * target.c (target_read_live_memory): Move it to remote.c.
6910 (memory_xfer_live_readonly_partial): Likewise.
6911 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6912 * remote.c (target_read_live_memory): Moved from target.c.
6913 (memory_xfer_live_readonly_partial): Likewise.
6914 (remote_read_bytes): Factored out from
6915 memory_xfer_partial_1.
6917 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6919 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6922 2014-03-21 Pedro Alves <palves@redhat.com>
6924 * infrun.c (normal_stop): Extend comment.
6926 2014-03-21 Hui Zhu <hui@codesourcery.com>
6927 Pedro Alves <palves@redhat.com>
6929 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6931 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6932 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6933 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6935 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6937 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6938 `z' formatted output modifier.
6940 2014-03-20 Tom Tromey <tromey@redhat.com>
6941 Sergio Durigan Junior <sergiodj@redhat.com>
6943 * probe.c (parse_probes): Turn assert into an ordinary error.
6944 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6945 exceptions when parsing probes. Rearrange the code for clarity.
6947 2014-03-20 Tom Tromey <tromey@redhat.com>
6950 * top.c (execute_command): Only dispatch events if the command
6953 2014-03-20 Tom Tromey <tromey@redhat.com>
6956 * infcall.c: Include event-top.h.
6957 (run_inferior_call): Call async_disable_stdin if needed.
6959 2014-03-20 Pedro Alves <palves@redhat.com>
6961 * infrun.c (prepare_to_proceed): Delete.
6962 (thread_still_needs_step_over): New function.
6963 (find_thread_needs_step_over): New function.
6964 (proceed): If the current thread needs a step-over, set its
6965 steping_over_breakpoint flag. Adjust to use
6966 find_thread_needs_step_over instead of prepare_to_proceed.
6967 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6968 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6970 (switch_back_to_stepped_thread): Step over breakpoints of all
6971 threads not the stepping thread, before switching back to the
6974 2014-03-20 Pedro Alves <palves@redhat.com>
6976 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6978 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6979 * infrun.c (saved_singlestep_ptid)
6980 (stepping_past_singlestep_breakpoint): Delete.
6981 (resume): Remove stepping_past_singlestep_breakpoint handling.
6982 (proceed): Store the prev_pc of the stepping thread too.
6983 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6985 (enum infwait_states): Delete infwait_thread_hop_state.
6986 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6988 (handle_inferior_event): Adjust.
6989 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6990 handling and the thread-hop code. Before removing single-step
6991 breakpoints, check whether the thread hit a single-step breakpoint
6992 of another thread. If it did, the trap is not a random signal.
6993 (switch_back_to_stepped_thread): If the event thread hit a
6994 single-step breakpoint, unblock it before switching to the
6995 stepping thread. Handle the case of the stepped thread having
6997 (keep_going): Handle the case of the current thread moving past a
6998 single-step breakpoint.
7000 2014-03-20 Pedro Alves <palves@redhat.com>
7003 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7004 are being stepped over.
7005 (breakpoint_address_match): Make extern.
7006 * breakpoint.h (breakpoint_address_match): New declaration.
7007 * inferior.h (stepping_past_instruction_at): New declaration.
7008 * infrun.c (struct step_over_info): New type.
7009 (step_over_info): New global.
7010 (set_step_over_info, clear_step_over_info)
7011 (stepping_past_instruction_at): New functions.
7012 (handle_inferior_event): Clear the step-over info when
7013 trap_expected is cleared.
7014 (resume): Remove now stale comment.
7015 (clear_proceed_status): Clear step-over info.
7016 (proceed): Adjust step-over handling to set or clear the step-over
7017 info instead of removing all breakpoints.
7018 (handle_signal_stop): When setting up a thread-hop, don't remove
7020 (stop_stepping): Clear step-over info.
7021 (keep_going): Adjust step-over handling to set or clear step-over
7022 info and then always inserting breakpoints, instead of removing
7023 all breakpoints when stepping over one.
7025 2014-03-20 Pedro Alves <palves@redhat.com>
7027 * infrun.c (previous_inferior_ptid): Adjust comment.
7028 (deferred_step_ptid): Delete.
7029 (infrun_thread_ptid_changed, prepare_to_proceed)
7030 (init_wait_for_inferior): Adjust.
7031 (handle_signal_stop): Delete deferred_step_ptid handling.
7033 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7036 * defs.h (sync_quit_force_run): New declaration.
7037 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7038 * event-top.c (async_sigterm_handler): New declaration.
7039 (async_sigterm_token): New variable.
7040 (async_init_signals): Create also async_sigterm_token.
7041 (async_sigterm_handler): New function.
7042 (sync_quit_force_run): New variable.
7043 (handle_sigterm): Replace quit_force call by other calls.
7044 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7046 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7048 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7049 offset into SPE pseudo registers.
7051 2014-03-18 Pedro Alves <palves@redhat.com>
7054 * inferior.h (print_stop_event): Declare.
7055 * infrun.c (print_stop_event): New, factored out from ...
7056 (normal_stop): ... this.
7057 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7058 of bpstat_print/print_stack_frame.
7060 2014-03-17 Tom Tromey <tromey@redhat.com>
7062 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7064 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7066 * ada-lang.c (decode_constrained_packed_array): Perform a
7067 minimal coercion for reference with coerce_ref instead of
7070 2014-03-17 Tristan Gingold <gingold@adacore.com>
7072 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7073 (darwin_solib_create_inferior_hook): Emit a warning if version
7076 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7078 * python/py-value.c (get_field_flag): Cast flag_name argument to
7079 PyObject_GetAttrString to support Python 2.4.
7081 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7083 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7084 (Global Maintainers): Remove Jan Kratochvil.
7086 2014-03-14 Pedro Alves <palves@redhat.com>
7088 * inferior.h (terminal_ours_for_output): Rename to ...
7089 (child_terminal_ours_for_output): ... this.
7090 (terminal_save_ours): Rename to ...
7091 (child_terminal_save_ours): ... this.
7092 (terminal_ours): Rename to ...
7093 (child_terminal_ours): ... this.
7094 (terminal_inferior): Rename to ...
7095 (child_terminal_inferior): ... this.
7096 (terminal_init_inferior): Rename to ...
7097 (child_terminal_init_inferior): ... this.
7098 (terminal_init_inferior_with_pgrp): Rename to ...
7099 (child_terminal_init_inferior_with_pgrp): ... this.
7100 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7101 (child_terminal_init_with_pgrp): ... this.
7102 (terminal_save_ours): Rename to ...
7103 (child_terminal_save_ours): ... this.
7104 (terminal_init_inferior): Rename to ...
7105 (child_terminal_init): ... this. Adjust.
7106 (terminal_inferior): Rename to ...
7107 (child_terminal_inferior): ... this.
7108 (terminal_ours_for_output): Rename to ...
7109 (child_terminal_ours_for_output): ... this. Adjust.
7110 (terminal_ours): Rename to ...
7111 (child_terminal_ours): ... this.
7112 (terminal_ours_1): Rename to ...
7113 (child_terminal_ours_1): ... this. Adjust.
7114 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7115 * windows-nat.c (do_initial_windows_stuff): Adjust.
7116 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7117 (gnu_terminal_init): ... this. Adjust.
7118 (gnu_target): Adjust.
7119 * inf-child.c (inf_child_target): Adjust.
7121 2014-03-13 Doug Evans <xdje42@gmail.com>
7124 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7127 2014-03-13 Doug Evans <xdje42@gmail.com>
7129 * value.c (record_latest_value): Call release_value_or_incref
7130 instead of release_value.
7132 2014-03-13 Pedro Alves <palves@redhat.com>
7134 * procfs.c (procfs_target): Don't override to_shortname,
7135 to_longname or to_doc.
7137 2014-03-13 Pedro Alves <palves@redhat.com>
7139 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7140 Unix in user visible strings.
7142 2014-03-12 Stan Shebs <stan@codesourcery.com>
7144 * gdbtypes.h: Annotate comments for Doxygen, add a page
7145 block comment with some general info.
7147 2014-03-12 Pedro Alves <palves@redhat.com>
7149 * infcmd.c (prepare_execution_command): New function, factored out
7150 from several execution commands.
7151 (run_command_1, continue_command, step_1, jump_command)
7152 (signal_command, until_command, advance_command, finish_command)
7153 (attach_command): Use prepare_execution_command.
7155 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7157 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7160 (struct arm_linux_thread_points): Removed.
7161 (struct arm_linux_process_info): New.
7162 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7163 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7164 (arm_linux_find_breakpoints_by_tid): Removed.
7165 (struct arch_lwp_info): New.
7166 (arm_linux_find_process_pid): New functions.
7167 (arm_linux_add_process): New functions.
7168 (arm_linux_process_info_get): New functions.
7169 (arm_linux_forget_process): New function.
7170 (arm_linux_get_debug_reg_state): New function.
7171 (struct update_registers_data): New.
7172 (update_registers_callback): New function.
7173 (arm_linux_insert_hw_breakpoint1): Updated.
7174 (arm_linux_remove_hw_breakpoint1): Updated.
7175 (arm_linux_insert_hw_breakpoint): Updated.
7176 (arm_linux_remove_hw_breakpoint): Updated.
7177 (arm_linux_insert_watchpoint): Updated.
7178 (arm_linux_remove_watchpoint): Updated.
7179 (arm_linux_new_thread): Updated.
7180 (arm_linux_prepare_to_resume): New function.
7181 (arm_linux_new_fork): New function.
7182 (_initialize_arm_linux_nat): Updated.
7184 2014-03-12 Pedro Alves <palves@redhat.com>
7186 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7188 2014-03-12 Tom Tromey <tromey@redhat.com>
7190 * inf-child.c (return_zero): New function.
7191 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7192 * aix-thread.c (aix_thread_inferior_created): New function.
7193 (aix_thread_attach): Remove.
7194 (init_aix_thread_ops): Don't set to_attach.
7195 (_initialize_aix_thread): Register inferior_created observer.
7196 * corelow.c (init_core_ops): Don't set to_attach or
7198 * exec.c (init_exec_ops): Don't set to_attach or
7200 * infcmd.c (run_command_1): Use find_run_target. Make direct
7202 (attach_command): Use find_attach_target. Make direct target
7204 * record-btrace.c (init_record_btrace_ops): Don't set
7206 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7208 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7209 set to_create_inferior.
7210 * target.c (complete_target_initialization): Add assertion.
7211 (target_create_inferior): Remove.
7212 (find_default_attach, find_default_create_inferior): Remove.
7213 (find_attach_target, find_run_target): New functions.
7214 (find_default_is_async_p, find_default_can_async_p)
7215 (target_supports_non_stop, target_attach): Remove.
7216 (init_dummy_target): Don't set to_create_inferior or
7217 to_supports_non_stop.
7218 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7219 TARGET_DEFAULT_FUNC.
7220 <to_create_inferior>: Add comment.
7221 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7222 TARGET_DEFAULT_RETURN.
7223 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7224 (find_attach_target, find_run_target): Declare.
7225 (target_create_inferior): Remove.
7226 (target_has_execution_1): Update comment.
7227 (target_supports_non_stop): Remove.
7228 * target-delegates.c: Rebuild.
7230 2014-03-12 Pedro Alves <palves@redhat.com>
7232 * inf-child.h: Update comment to not mention Unix.
7234 2014-03-12 Pedro Alves <palves@redhat.com>
7236 * inf-child.c: Update top comment to not mention Unix. Add
7237 generic comment describing how this target is meant to be used.
7238 (inf_child_post_attach, inf_child_post_startup_inferior)
7239 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7242 2014-03-12 Pedro Alves <palves@redhat.com>
7244 * nto-procfs.c: Include inf-child.h.
7245 (procfs_ops): Delete global.
7246 (procfs_can_run): Delete method.
7247 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7248 target pointer instead of referencing procfs_ops.
7249 (procfs_prepare_to_store): Delete.
7250 (init_procfs_ops): Delete function.
7251 (procfs_target): New function, based on init_procfs_ops, but
7252 inherit inf_child_target.
7253 (_initialize_procfs): Use procfs_target.
7255 2014-03-12 Pedro Alves <palves@redhat.com>
7257 * windows-nat.c: Include inf-child.h.
7258 (windows_ops): Delete global.
7259 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7261 (init_windows_ops): Delete function.
7262 (windows_target): New function, based on init_windows_ops, but
7263 inherit inf_child_target.
7264 (_initialize_windows_nat): Use windows_target. Install x86
7265 specific target methods here.
7267 2014-03-10 Doug Evans <xdje42@gmail.com>
7269 * guile/guile.c (call_initialize_gdb_module): New function.
7270 (initialize_guile): Replace call to scm_init_guile with call to
7273 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7275 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7276 in call to TYPE_CODE macro.
7278 2014-03-10 Jerome Guitton <guitton@adacore.com>
7280 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7281 Resolve tagged types to full view.
7283 2014-03-10 Hui Zhu <hui@codesourcery.com>
7285 * target.h (target_insert_breakpoint): Remove "hardware" from its
7288 2014-03-07 Doug Evans <dje@google.com>
7290 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7292 2014-03-07 Doug Evans <dje@google.com>
7294 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7295 Remove unused local comp_dir_attr. Assert exactly one of
7296 stub_comp_unit_die, stub_comp_dir is non-NULL.
7298 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7300 * target.h (complete_target_initialization, add_target):
7303 2014-03-07 Pedro Alves <palves@redhat.com>
7305 * go32-nat.c: Include inf-child.h.
7306 (go32_ops): Delete global.
7307 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7309 (go32_create_inferior): Push the passed in target pointer instead
7310 of referencing go32_ops.
7311 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7312 (go32_target): New function, based on init_go32_ops, but inherit
7314 (_initialize_go32_nat): Use go32_target. Move parts of
7317 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7319 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7320 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7321 SYMBOL_VALUE_ADDRESS.
7322 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7324 2014-03-06 Yao Qi <yao@codesourcery.com>
7326 * breakpoint.c (get_tracepoint_by_number): Remove argument
7327 optional_p. All callers updated. Adjust comments. Update
7329 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7331 2014-03-06 Yao Qi <yao@codesourcery.com>
7333 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7334 early if get_number returns zero. Use 'p' instead of 'args'.
7336 2014-03-06 Yao Qi <yao@codesourcery.com>
7338 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7341 2014-03-06 Yao Qi <yao@codesourcery.com>
7343 PR breakpoints/16508
7344 * tracepoint.c (check_trace_running): New function.
7345 (trace_find_command): Move code to check_trace_running and
7346 call check_trace_running.
7347 (trace_find_pc_command): Likewise.
7348 (trace_find_tracepoint_command): Likewise.
7349 (trace_find_line_command): Likewise.
7350 (trace_find_range_command): Likewise.
7351 * tracepoint.h (check_trace_running): Likewise.
7352 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7354 2014-03-06 Yao Qi <yao@codesourcery.com>
7356 * target.h (struct target_ops) <to_traceframe_info>: Use
7357 TARGET_DEFAULT_NORETURN (tcomplain ()).
7358 * target-delegates.c: Regenerated.
7360 2014-03-05 Pedro Alves <palves@redhat.com>
7363 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7364 void. Update comment.
7365 (dcache_xfer_memory): Delete.
7366 (dcache_read_memory_partial): New, based on the read bits of
7368 (dcache_update): Add status parameter. Use ULONGEST for len, and
7369 adjust. Discard cache lines if the reason for the update was
7371 * dcache.h (dcache_xfer_memory): Delete declaration.
7372 (dcache_read_memory_partial): New declaration.
7373 (dcache_update): Update prototype.
7374 * target.c (raw_memory_xfer_partial): Update the dcache here.
7375 (memory_xfer_partial_1): Don't handle dcache writes here.
7377 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7379 * remote-sim.c (gdbsim_load): Add const to prog.
7381 2014-03-03 Tom Tromey <tromey@redhat.com>
7383 * elfread.c (probe_key): Change to bfd_data.
7384 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7385 now per-BFD, not per-objfile.
7386 * stap-probe.c (stap_probe_destroy): Update comment.
7387 (handle_stap_probe): Allocate on the per-BFD obstack.
7389 2014-03-03 Tom Tromey <tromey@redhat.com>
7391 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7392 * breakpoint.c (create_longjmp_master_breakpoint): Use
7394 (add_location_to_breakpoint, bkpt_probe_insert_location)
7395 (bkpt_probe_remove_location): Update.
7396 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7397 * elfread.c (elf_symfile_relocate_probe): Remove.
7398 (elf_probe_fns): Update.
7399 (insert_exception_resume_breakpoint): Change type of "probe"
7400 parameter to bound_probe.
7401 (check_exception_resume): Update.
7402 * objfiles.c (objfile_relocate1): Don't relocate probes.
7403 * probe.c (bound_probe_s): New typedef.
7404 (parse_probes): Use get_probe_address. Set sal's objfile.
7405 (find_probe_by_pc): Return a bound_probe.
7406 (collect_probes): Return a VEC(bound_probe_s).
7407 (compare_probes): Update.
7408 (gen_ui_out_table_header_info): Change type of "probes"
7410 (info_probes_for_ops): Update.
7411 (get_probe_address): New function.
7412 (probe_safe_evaluate_at_pc): Update.
7413 * probe.h (struct probe_ops) <get_probe_address>: New field.
7414 <set_semaphore, clear_semaphore>: Add objfile parameter.
7415 (struct probe) <objfile>: Remove field.
7417 <address>: Update comment.
7418 (struct bound_probe): New.
7419 (find_probe_by_pc): Return a bound_probe.
7420 (get_probe_address): Declare.
7421 * solib-svr4.c (struct probe_and_action) <address>: New field.
7422 (hash_probe_and_action, equal_probe_and_action): Update.
7423 (register_solib_event_probe): Add address parameter.
7424 (solib_event_probe_at): Update.
7425 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7427 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7428 (stap_get_probe_address): New function.
7429 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7430 (compile_probe_arg): Update.
7431 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7433 (handle_stap_probe): Don't relocate the probe.
7434 (stap_relocate): Remove.
7435 (stap_gen_info_probes_table_values): Update.
7436 (stap_probe_ops): Remove stap_relocate.
7437 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7438 (debug_sym_probe_fns): Update.
7439 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7440 * symtab.c (init_sal): Use memset.
7441 * symtab.h (struct symtab_and_line) <objfile>: New field.
7442 * tracepoint.c (start_tracing, stop_tracing): Update.
7444 2014-03-03 Tom Tromey <tromey@redhat.com>
7446 * probe.h (parse_probes, find_probe_by_pc)
7447 (find_probes_in_objfile): Fix comments.
7449 2014-03-02 Doug Evans <xdje42@gmail.com>
7451 * infrun.c (handle_signal_stop): Replace test for
7452 TARGET_WAITKIND_STOPPED with an assert.
7454 2014-03-02 Doug Evans <xdje42@gmail.com>
7456 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7458 2014-03-02 Doug Evans <xdje42@gmail.com>
7460 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7462 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7464 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7466 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7468 * i386obsd-nat.c: Include "obsd-nat.h".
7469 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7471 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7473 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7475 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7477 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7479 * mips64obsd-nat.c: Include "obsd-nath".
7480 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7482 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7484 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7486 * amd64obsd-nat.c: Include "obsd-nat,h.
7487 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7489 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7491 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7493 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7494 (find_overload_match): Update call to find_oload_champ.
7495 (find_oload_champ_namespace_loop): Likewise
7497 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7499 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7501 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7502 * config/sparc/obsd64.mh: New file.
7503 * sparc64obsd-nat.c: New file.
7505 * obsd-nat.h: New file.
7506 * obsd-nat.c: New file.
7507 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7508 (ALLDEPFILES): Add obsd-nat.c.
7510 2014-02-28 Tom Tromey <tromey@redhat.com>
7512 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7513 * cli-out.h (cli_ui_out_impl): Now const.
7514 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7515 * ui-out.c (struct ui_out) <impl>: Now const.
7516 (default_ui_out_impl): Now const.
7517 (ui_out_new): Make 'impl' parameter const.
7518 * ui-out.h (ui_out_new): Update.
7520 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7522 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7524 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7526 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7528 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7530 Additional PR 8882 fix.
7531 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7533 2014-02-27 Pedro Alves <palves@redhat.com>
7535 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7538 2014-02-27 Pedro Alves <palves@redhat.com>
7541 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7542 * nat/linux-waitpid.c: Include string.h.
7543 (status_to_str): Moved here and made extern.
7544 * nat/linux-waitpid.h (status_to_str): New declaration.
7546 2014-02-27 Hui Zhu <hui@codesourcery.com>
7549 * infrun.c (ptid_match): Move ...
7550 * common/ptid.c (ptid_match): ... here.
7551 * inferior.h (ptid_match): Move ...
7552 * common/ptid.h (ptid_match): ... here.
7554 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7556 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7557 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7560 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7562 * obsd-tdep.c (obsd_auxv_parse): New function.
7563 (obsd_init_abi): Set auxv_parse.
7565 * gdbarch.sh (auxv_parse): New.
7566 * gdbarch.h: Regenerated.
7567 * gdbarch.c: Regenerated.
7568 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7570 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7572 * guile/scm-value.c (gdbscm_history_append_x): New function.
7573 (value_functions): Add it.
7575 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7577 * dwarf2read.c (attr_value_as_address): New function.
7578 (dwarf2_find_base_address, read_call_site_scope): Use
7579 attr_value_as_address in place of DW_ADDR.
7580 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7581 the low and high addresses. Slight rework of the handling
7582 of the high pc being a constant form, and limit it to
7583 DWARF verson 4 or higher.
7584 (dwarf2_record_block_ranges): Likewise.
7585 (read_partial_die): Likewise.
7586 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7588 2014-02-26 Tom Tromey <tromey@redhat.com>
7590 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7592 2014-02-26 Tom Tromey <tromey@redhat.com>
7594 * elfread.c (elf_read_minimal_symbols): Return early if
7595 minimal symbols have already been read. Add "ei" parameter.
7596 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7597 * minsyms.c (prim_record_minimal_symbol_full): Update.
7598 * objfiles.h (struct objstats) <n_minsyms>: Move...
7599 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7600 * symmisc.c (print_objfile_statistics): Update.
7602 2014-02-26 Tom Tromey <tromey@redhat.com>
7604 * elfread.c (elf_read_minimal_symbols): New function, from
7606 (elf_symfile_read): Call it.
7608 2014-02-26 Tom Tromey <tromey@redhat.com>
7610 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7611 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7612 (lookup_minimal_symbol_solib_trampoline)
7613 (lookup_minimal_symbol_by_pc_section_1)
7614 (lookup_minimal_symbol_and_objfile): Update.
7615 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7616 Don't allocate a minimal symbol if minsyms have already been read.
7617 (build_minimal_symbol_hash_tables): Update.
7618 (install_minimal_symbols): Do nothing if minsyms already read.
7619 Use the per-BFD obstack.
7620 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7621 * objfiles.c (allocate_objfile): Call
7622 terminate_minimal_symbol_table later.
7623 (have_minimal_symbols): Update.
7624 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7625 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7626 Move from struct objfile.
7627 <minsyms_read>: New field.
7628 (struct objfile) <msymbols, minimal_symbol_count,
7629 msymbol_hash, msymbol_demangled_hash>: Move.
7630 (ALL_OBJFILE_MSYMBOLS): Update.
7631 * symfile.c (read_symbols): Set minsyms_read.
7632 (reread_symbols): Update.
7633 * symmisc.c (dump_objfile, dump_msymbols): Update.
7635 2014-02-26 Tom Tromey <tromey@redhat.com>
7637 * minsyms.c (msymbols_sort): Remove.
7638 * minsyms.h (msymbols_sort): Remove.
7639 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7640 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7641 * elfread.c (elf_symtab_read): Don't add section offsets.
7642 * xcoffread.c (record_minimal_symbol): Don't add section offset
7643 to minimal symbol address.
7644 * somread.c (text_offset, data_offset): Remove.
7645 (som_symtab_read): Don't add section offsets to minimal symbol
7647 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7648 Don't add section offsets to minimal symbols.
7649 * coffread.c (coff_symtab_read): Don't add section offsets
7650 to minimal symbol addresses.
7651 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7652 to minimal symbol addresses.
7653 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7654 section offset to minimal symbol addresses.
7655 * mdebugread.c (parse_partial_symbols): Don't add section
7656 offset to minimal symbol addresses.
7657 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7658 offset to minimal symbol addresses.
7660 2014-02-26 Tom Tromey <tromey@redhat.com>
7662 * ada-lang.c (ada_main_name): Update.
7663 (ada_add_standard_exceptions): Update.
7664 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7665 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7666 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7667 * auxv.c (ld_so_xfer_auxv): Update.
7668 * avr-tdep.c (avr_scan_prologue): Update.
7669 * ax-gdb.c (gen_var_ref): Update.
7670 * blockframe.c (get_pc_function_start)
7671 (find_pc_partial_function_gnu_ifunc): Update.
7672 * breakpoint.c (create_overlay_event_breakpoint)
7673 (create_longjmp_master_breakpoint)
7674 (create_std_terminate_master_breakpoint)
7675 (create_exception_master_breakpoint): Update.
7676 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7677 * c-valprint.c (c_val_print): Update.
7678 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7679 * common/agent.c (agent_look_up_symbols): Update.
7680 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7681 * dwarf2loc.c (call_site_to_target_addr): Update.
7682 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7683 * elfread.c (elf_gnu_ifunc_record_cache)
7684 (elf_gnu_ifunc_resolve_by_got): Update.
7685 * findvar.c (default_read_var_value): Update.
7686 * frame.c (inside_main_func): Update.
7687 * frv-tdep.c (frv_frame_this_id): Update.
7688 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7689 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7691 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7692 (hppa_hpux_find_dummy_bpaddr): Update.
7693 * hppa-tdep.c (hppa_symbol_address): Update.
7694 * infcmd.c (until_next_command): Update.
7695 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7697 * linespec.c (minsym_found, add_minsym): Update.
7698 * linux-nat.c (get_signo): Update.
7699 * linux-thread-db.c (inferior_has_bug): Update.
7700 * m32c-tdep.c (m32c_return_value)
7701 (m32c_m16c_address_to_pointer): Update.
7702 * m32r-tdep.c (m32r_frame_this_id): Update.
7703 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7704 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7705 * maint.c (maintenance_translate_address): Update.
7706 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7707 (frob_address): New function.
7708 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7709 frob_address. Rename parameter to "pc_in".
7710 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7712 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7714 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7715 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7716 * objc-lang.c (find_objc_msgsend): Update.
7717 * objfiles.c (objfile_relocate1): Update.
7718 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7719 * p-valprint.c (pascal_val_print): Update.
7720 * parse.c (write_exp_msymbol): Update.
7721 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7722 (ppc_elfv2_skip_entrypoint): Update.
7723 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7724 * printcmd.c (build_address_symbolic, msym_info)
7725 (address_info): Update.
7726 * proc-service.c (ps_pglobal_lookup): Update.
7727 * psymtab.c (find_pc_sect_psymtab_closer)
7728 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7729 Change msymbol parameter to bound_minimal_symbol.
7730 * ravenscar-thread.c (get_running_thread_id): Update.
7731 * remote.c (remote_check_symbols): Update.
7732 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7734 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7735 * solib-dsbt.c (lm_base): Update.
7736 * solib-frv.c (lm_base, main_got): Update.
7737 * solib-irix.c (locate_base): Update.
7738 * solib-som.c (som_solib_create_inferior_hook)
7739 (link_map_start): Update.
7740 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7741 * solib-svr4.c (elf_locate_base, enable_break): Update.
7742 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7743 (flush_ea_cache): Update.
7744 * stabsread.c (define_symbol, scan_file_globals): Update.
7745 * stack.c (find_frame_funname): Update.
7746 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7747 (debug_qf_find_pc_sect_symtab): Update.
7748 * symfile.c (simple_read_overlay_table)
7749 (simple_overlay_update): Update.
7750 * symfile.h (struct quick_symbol_functions)
7751 <find_pc_sect_symtab>: Change type of msymbol to
7752 bound_minimal_symbol.
7753 * symmisc.c (dump_msymbols): Update.
7754 * symtab.c (find_pc_sect_symtab_via_partial)
7755 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7756 (search_symbols, print_msymbol_info): Update.
7757 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7758 (MSYMBOL_VALUE_ADDRESS): Redefine.
7759 (BMSYMBOL_VALUE_ADDRESS): New macro.
7760 * tracepoint.c (scope_info): Update.
7761 * tui/tui-disasm.c (tui_find_disassembly_address)
7762 (tui_get_begin_asm_address): Update.
7763 * valops.c (find_function_in_inferior): Update.
7764 * value.c (value_static_field, value_fn_field): Update.
7766 2014-02-26 Tom Tromey <tromey@redhat.com>
7768 * ada-lang.c (ada_update_initial_language): Update.
7769 (ada_main_name, ada_has_this_exception_support): Update.
7770 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7771 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7772 * arm-tdep.c (arm_skip_stub): Update.
7773 * auxv.c (ld_so_xfer_auxv): Update.
7774 * avr-tdep.c (avr_scan_prologue): Update.
7775 * ax-gdb.c (gen_var_ref): Update.
7776 * breakpoint.c (struct breakpoint_objfile_data)
7777 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7778 type to bound_minimal_symbol.
7779 (create_overlay_event_breakpoint)
7780 (create_longjmp_master_breakpoint)
7781 (create_std_terminate_master_breakpoint)
7782 (create_exception_master_breakpoint): Update.
7783 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7784 * c-exp.y (classify_name): Update.
7785 * coffread.c (coff_symfile_read): Update.
7786 * common/agent.c (agent_look_up_symbols): Update.
7787 * d-lang.c (d_main_name): Update.
7788 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7789 * dec-thread.c (enable_dec_thread): Update.
7790 * dwarf2loc.c (call_site_to_target_addr): Update.
7791 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7792 * eval.c (evaluate_subexp_standard): Update.
7793 * findvar.c (struct minsym_lookup_data) <result>: Change type
7794 to bound_minimal_symbol.
7796 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7797 * frame.c (inside_main_func): Update.
7798 * frv-tdep.c (frv_frame_this_id): Update.
7799 * gcore.c (call_target_sbrk): Update.
7800 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7801 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7803 * go-lang.c (go_main_name): Update.
7804 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7805 (hppa_hpux_find_import_stub_for_addr): Update.
7806 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7807 Update. Change return type.
7808 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7810 * jit.c (jit_breakpoint_re_set_internal): Update.
7811 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7813 * linux-nat.c (get_signo): Update.
7814 * linux-thread-db.c (inferior_has_bug): Update
7815 * m32c-tdep.c (m32c_return_value)
7816 (m32c_m16c_address_to_pointer): Update.
7817 * m32r-tdep.c (m32r_frame_this_id): Update.
7818 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7819 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7820 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7821 lookup_minimal_symbol. Change return type.
7822 (lookup_minimal_symbol): Remove.
7823 (lookup_bound_minimal_symbol): Update.
7824 (lookup_minimal_symbol_text): Change return type.
7825 (lookup_minimal_symbol_solib_trampoline): Change return type.
7826 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7827 (lookup_minimal_symbol_solib_trampoline): Change return type.
7828 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7829 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7830 (value_nsstring, find_imps): Update.
7831 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7832 * p-lang.c (pascal_main_name): Update.
7833 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7834 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7835 * proc-service.c (ps_pglobal_lookup): Update.
7836 * ravenscar-thread.c (get_running_thread_msymbol): Change
7838 (has_ravenscar_runtime, get_running_thread_id): Update.
7839 * remote.c (remote_check_symbols): Update.
7840 * sol-thread.c (ps_pglobal_lookup): Update.
7841 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7842 * solib-dsbt.c (lm_base): Update.
7843 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7845 * solib-irix.c (locate_base): Update.
7846 * solib-som.c (som_solib_create_inferior_hook)
7847 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7849 * solib-spu.c (spu_enable_break): Update.
7850 * solib-svr4.c (elf_locate_base, enable_break): Update.
7851 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7852 (flush_ea_cache): Update.
7853 * stabsread.c (define_symbol): Update.
7854 * symfile.c (simple_read_overlay_table): Update.
7855 * symtab.c (find_pc_sect_line): Update.
7856 * tracepoint.c (scope_info): Update.
7857 * tui-disasm.c (tui_get_begin_asm_address): Update.
7858 * value.c (value_static_field): Update.
7860 2014-02-26 Tom Tromey <tromey@redhat.com>
7862 * minsyms.c (prim_record_minimal_symbol_full): Use
7863 SET_MSYMBOL_VALUE_ADDRESS.
7864 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7865 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7866 SET_MSYMBOL_VALUE_ADDRESS.
7867 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7868 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7870 2014-02-26 Tom Tromey <tromey@redhat.com>
7872 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7873 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7874 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7875 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7876 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7877 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7878 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7879 * ada-lang.c (ada_main_name): Update.
7880 (ada_lookup_simple_minsym): Update.
7881 (ada_make_symbol_completion_list): Update.
7882 (ada_add_standard_exceptions): Update.
7883 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7884 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7885 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7886 * arm-tdep.c (skip_prologue_function): Update.
7887 (arm_skip_stack_protector, arm_skip_stub): Update.
7888 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7889 (arm_wince_skip_main_prologue): Update.
7890 * auxv.c (ld_so_xfer_auxv): Update.
7891 * avr-tdep.c (avr_scan_prologue): Update.
7892 * ax-gdb.c (gen_var_ref): Update.
7893 * block.c (call_site_for_pc): Update.
7894 * blockframe.c (get_pc_function_start): Update.
7895 (find_pc_partial_function_gnu_ifunc): Update.
7896 * breakpoint.c (create_overlay_event_breakpoint): Update.
7897 (create_longjmp_master_breakpoint): Update.
7898 (create_std_terminate_master_breakpoint): Update.
7899 (create_exception_master_breakpoint): Update.
7900 (resolve_sal_pc): Update.
7901 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7902 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7904 * c-valprint.c (c_val_print): Update.
7905 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7906 * coffread.c (coff_symfile_read): Update.
7907 * common/agent.c (agent_look_up_symbols): Update.
7908 * dbxread.c (find_stab_function_addr): Update.
7909 (end_psymtab): Update.
7910 * dwarf2loc.c (call_site_to_target_addr): Update.
7911 (func_verify_no_selftailcall): Update.
7912 (tailcall_dump): Update.
7913 (call_site_find_chain_1): Update.
7914 (dwarf_expr_reg_to_entry_parameter): Update.
7915 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7916 (elf_gnu_ifunc_resolve_by_got): Update.
7917 * f-valprint.c (info_common_command): Update.
7918 * findvar.c (read_var_value): Update.
7919 * frame.c (get_prev_frame_1): Update.
7920 (inside_main_func): Update.
7921 * frv-tdep.c (frv_skip_main_prologue): Update.
7922 (frv_frame_this_id): Update.
7923 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7924 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7925 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7926 (gnuv3_skip_trampoline): Update.
7927 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7928 (hppa64_hpux_in_solib_call_trampoline): Update.
7929 (hppa_hpux_skip_trampoline_code): Update.
7930 (hppa64_hpux_search_dummy_call_sequence): Update.
7931 (hppa_hpux_find_import_stub_for_addr): Update.
7932 (hppa_hpux_find_dummy_bpaddr): Update.
7933 * hppa-tdep.c (hppa_symbol_address)
7934 (hppa_lookup_stub_minimal_symbol): Update.
7935 * i386-tdep.c (i386_skip_main_prologue): Update.
7936 (i386_pe_skip_trampoline_code): Update.
7937 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7938 * infcall.c (get_function_name): Update.
7939 * infcmd.c (until_next_command): Update.
7940 * jit.c (jit_breakpoint_re_set_internal): Update.
7941 (jit_inferior_init): Update.
7942 * linespec.c (minsym_found): Update.
7943 (add_minsym): Update.
7944 * linux-fork.c (info_checkpoints_command): Update.
7945 * linux-nat.c (get_signo): Update.
7946 * linux-thread-db.c (inferior_has_bug): Update.
7947 * m32c-tdep.c (m32c_return_value): Update.
7948 (m32c_m16c_address_to_pointer): Update.
7949 (m32c_m16c_pointer_to_address): Update.
7950 * m32r-tdep.c (m32r_frame_this_id): Update.
7951 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7952 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7953 * maint.c (maintenance_translate_address): Update.
7954 * minsyms.c (add_minsym_to_hash_table): Update.
7955 (add_minsym_to_demangled_hash_table): Update.
7956 (msymbol_objfile): Update.
7957 (lookup_minimal_symbol): Update.
7958 (iterate_over_minimal_symbols): Update.
7959 (lookup_minimal_symbol_text): Update.
7960 (lookup_minimal_symbol_by_pc_name): Update.
7961 (lookup_minimal_symbol_solib_trampoline): Update.
7962 (lookup_minimal_symbol_by_pc_section_1): Update.
7963 (lookup_minimal_symbol_and_objfile): Update.
7964 (prim_record_minimal_symbol_full): Update.
7965 (compare_minimal_symbols): Update.
7966 (compact_minimal_symbols): Update.
7967 (build_minimal_symbol_hash_tables): Update.
7968 (install_minimal_symbols): Update.
7969 (terminate_minimal_symbol_table): Update.
7970 (find_solib_trampoline_target): Update.
7971 (minimal_symbol_upper_bound): Update.
7972 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7973 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7974 (mips_skip_pic_trampoline_code): Update.
7975 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7976 * objc-lang.c (selectors_info): Update.
7977 (classes_info): Update.
7978 (find_methods): Update.
7979 (find_imps): Update.
7980 (find_objc_msgsend): Update.
7981 * objfiles.c (objfile_relocate1): Update.
7982 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7983 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7984 * p-valprint.c (pascal_val_print): Update.
7985 * parse.c (write_exp_msymbol): Update.
7986 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7987 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7988 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7989 * printcmd.c (build_address_symbolic): Update.
7991 (address_info): Update.
7992 * proc-service.c (ps_pglobal_lookup): Update.
7993 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7994 (find_pc_sect_psymtab): Update.
7995 * python/py-framefilter.c (py_print_frame): Update.
7996 * ravenscar-thread.c (get_running_thread_id): Update.
7997 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7999 * remote.c (remote_check_symbols): Update.
8000 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8001 (rs6000_skip_trampoline_code): Update.
8002 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8003 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8004 * solib-dsbt.c (lm_base): Update.
8005 * solib-frv.c (lm_base): Update.
8007 * solib-irix.c (locate_base): Update.
8008 * solib-som.c (som_solib_create_inferior_hook): Update.
8009 (som_solib_desire_dynamic_linker_symbols): Update.
8010 (link_map_start): Update.
8011 * solib-spu.c (spu_enable_break): Update.
8012 (ocl_enable_break): Update.
8013 * solib-svr4.c (elf_locate_base): Update.
8014 (enable_break): Update.
8015 * spu-tdep.c (spu_get_overlay_table): Update.
8016 (spu_catch_start): Update.
8017 (flush_ea_cache): Update.
8018 * stabsread.c (define_symbol): Update.
8019 (scan_file_globals): Update.
8020 * stack.c (find_frame_funname): Update.
8021 (frame_info): Update.
8022 * symfile.c (simple_read_overlay_table): Update.
8023 (simple_overlay_update): Update.
8024 * symmisc.c (dump_msymbols): Update.
8025 * symtab.c (fixup_section): Update.
8026 (find_pc_sect_line): Update.
8027 (skip_prologue_sal): Update.
8028 (search_symbols): Update.
8029 (print_msymbol_info): Update.
8030 (rbreak_command): Update.
8031 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8032 (completion_list_objc_symbol): Update.
8033 (default_make_symbol_completion_list_break_on): Update.
8034 * tracepoint.c (scope_info): Update.
8035 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8036 (tui_get_begin_asm_address): Update.
8037 * valops.c (find_function_in_inferior): Update.
8038 * value.c (value_static_field): Update.
8039 (value_fn_field): Update.
8041 2014-02-26 Tom Tromey <tromey@redhat.com>
8043 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8044 bound minimal symbols. Move code that knows about minsym
8046 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8048 * minsyms.h (minimal_symbol_upper_bound): Declare.
8049 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8050 minimal_symbol_upper_bound.
8052 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8054 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8055 Use the type's name if its basic type does not have a tag.
8057 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8059 * dwarf2read.c (read_subrange_type): Add comment.
8061 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8063 * dwarf2read.c (update_enumeration_type_from_children): New
8064 function, mostly extracted from process_structure_scope.
8065 (read_enumeration_type): Call update_enumeration_type_from_children.
8066 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8067 and flag_flag_enum fields.
8069 2014-02-26 Pedro Alves <palves@redhat.com>
8071 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8072 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8073 to_xfer_partial method.
8075 2014-02-26 Pedro Alves <palves@redhat.com>
8077 * target.c (complete_target_initialization): Don't install
8078 default_xfer_partial as to_xfer_partial hook.
8080 (update_current_target): Don't INHERIT nor de_fault
8081 deprecated_xfer_memory. Delete de_fault macro.
8082 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8083 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8084 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8087 2014-02-26 Pedro Alves <palves@redhat.com>
8089 * go32-nat.c (my_write_child): New function.
8090 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8091 (go32_xfer_partial): New function.
8092 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8093 Instead install a to_xfer_partial hook.
8095 2014-02-26 Pedro Alves <palves@redhat.com>
8097 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8098 to_xfer_partial helper. Rewrite.
8099 (procfs_xfer_partial): New function.
8100 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8101 Install a to_xfer_partial hook.
8103 2014-02-26 Pedro Alves <palves@redhat.com>
8105 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8106 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8107 (m32r_xfer_partial): New function.
8108 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8109 Install a to_xfer_partial hook.
8111 2014-02-26 Pedro Alves <palves@redhat.com>
8113 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8115 (mips_xfer_partial): New function.
8116 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8117 hook. Install a to_xfer_partial hook.
8119 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8121 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8122 * gdbtypes.c (create_array_type_with_stride): New function,
8123 renaming create_array_type, but with an added parameter
8124 called "bit_stride".
8125 (create_array_type): Re-implement using
8126 create_array_type_with_stride.
8127 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8128 and DW_AT_bit_stride attributes.
8130 2014-02-26 Pedro Alves <palves@redhat.com>
8132 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8133 task-specific breakpoints.
8135 2014-02-25 Pedro Alves <palves@redhat.com>
8137 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8138 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8140 2014-02-25 Stan Shebs <stan@codesourcery.com>
8142 * defs.h: Annotate comments for Doxygen.
8144 2014-02-25 Tom Tromey <tromey@redhat.com>
8146 * target.h (target_ignore): Don't declare.
8147 * target.c (target_ignore): Remove.
8149 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8152 * auto-load.c (auto_load_objfile_script_1): Change filename to
8155 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8157 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8158 documentation. Adjust prototype to match the target_ops
8159 to_xfer_partial method. Adjust implementation accordingly.
8161 2014-02-25 Hui Zhu <hui@codesourcery.com>
8163 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8166 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8168 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8169 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8170 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8171 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8172 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8173 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8174 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8175 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8177 (rl78_register_type): Use a data pointer type for SP and
8178 new pseudo registers mentioned above. Use a 16 bit integer
8179 type for all other register pairs.
8180 (rl78_register_name, rl78_g10_register_name): Update for
8181 new pseudo registers.
8182 (rl78_pseudo_register_read): Likewise.
8183 (rl78_pseudo_register_write): Likewise.
8184 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8185 to the newly added pseudo registers.
8187 2014-02-24 Doug Evans <dje@google.com>
8189 * value.c (record_latest_value): Fix comment.
8190 * printcmd.c (print_command_1): Remove code to handle -1 return from
8191 record_latest_value.
8193 2014-02-24 Pedro Alves <palves@redhat.com>
8195 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8196 deprecated_xfer_memory hook.
8197 (procfs_xfer_partial): Call procfs_xfer_memory instead
8198 of the deprecated_xfer_memory target hook.
8199 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8202 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8204 * windows-nat.c (windows_xfer_shared_libraries): Return
8205 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8206 requested object is TARGET_OBJECT_LIBRARIES.
8208 2014-02-24 Yao Qi <yao@codesourcery.com>
8210 * target.h (enum target_xfer_status)
8211 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8212 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8214 * corefile.c (memory_error_message): User updated.
8215 * exec.c (section_table_read_available_memory): Likewise.
8216 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8217 * target.c (target_xfer_status_to_string): Likewise.
8218 (raw_memory_xfer_partial): Likewise.
8219 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8220 * valops.c (read_value_memory): Likewise.
8221 * exec.h: Update comments.
8223 2014-02-24 Yao Qi <yao@codesourcery.com>
8225 * target.c (target_xfer_status_to_string): Rename argument err
8227 * target.h (target_xfer_status_to_string): Update declaration.
8228 Replace target_xfer_error_to_string with
8229 target_xfer_status_to_string in comment.
8231 2014-02-24 Yao Qi <yao@codesourcery.com>
8233 * mips-linux-nat.c (super_close): Update its type.
8234 (mips_linux_close): Pass 'self' to super_close.
8236 2014-02-24 Yao Qi <yao@codesourcery.com>
8238 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8239 * corefile.c (read_memory): Adjusted.
8240 * target.c (target_write_with_progress): Adjusted.
8242 2014-02-23 Yao Qi <yao@codesourcery.com>
8246 2013-10-25 Yao Qi <yao@codesourcery.com>
8248 * remote.c (remote_traceframe_info): Return early if
8249 traceframe is not selected.
8251 2013-07-19 Yao Qi <yao@codesourcery.com>
8253 * target.c (update_current_target): Change the default action
8254 of 'to_traceframe_info' from tcomplain to return_zero.
8255 * target.h (struct target_ops) <to_traceframe_info>: Add more
8258 2014-02-23 Yao Qi <yao@codesourcery.com>
8260 * valops.c (read_value_memory): Rewrite it. Call
8261 target_xfer_partial in a loop.
8262 * exec.h (section_table_available_memory): Remove declaration.
8263 Move comments to ...
8264 * exec.c (section_table_available_memory): ... here. Make it
8267 2014-02-23 Yao Qi <yao@codesourcery.com>
8269 * exec.c (section_table_read_available_memory): New function.
8270 * exec.h (section_table_read_available_memory): Declare.
8271 * ctf.c (ctf_xfer_partial): Call
8272 section_table_read_available_memory.
8273 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8275 2014-02-23 Yao Qi <yao@codesourcery.com>
8277 * ctf.c (ctf_xfer_partial): Move code to ...
8278 * exec.c (exec_read_partial_read_only): ... it. New function.
8279 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8280 * tracefile.c: Include "exec.h".
8281 * exec.h (exec_read_partial_read_only): Declare.
8283 2014-02-23 Yao Qi <yao@codesourcery.com>
8285 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8286 (tfile_has_memory): Remove.
8287 (init_tfile_ops): Don't set fields to_has_all_memory and
8288 to_has_memory of tfile_ops.
8289 * tracefile.c (tracefile_has_all_memory): New function.
8290 (tracefile_has_memory): New function.
8291 (init_tracefile_ops): Initialize fields to_has_all_memory and
8292 to_has_memory of 'ops'.
8294 2014-02-23 Yao Qi <yao@codesourcery.com>
8296 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8297 (ctf_thread_alive, ctf_get_trace_status): Remove.
8298 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8300 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8301 (tfile_has_stack, tfile_has_registers): Remove.
8302 (tfile_thread_alive): Remove.
8303 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8305 * tracefile.c (tracefile_has_stack): New function.
8306 (tracefile_has_registers): New function.
8307 (tracefile_thread_alive): New function.
8308 (tracefile_get_trace_status): New function.
8309 (init_tracefile_ops): New function.
8310 * tracefile.h (init_tracefile_ops): Declare.
8312 2014-02-23 Yao Qi <yao@codesourcery.com>
8314 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8315 (O_LARGEFILE): Likewise.
8316 (tfile_ops): Likewise.
8317 (TRACE_HEADER_SIZE): Likewise.
8318 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8319 (cur_data_size): Likewise.
8320 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8321 (tfile_close, tfile_files_info): Likewise.
8322 (tfile_get_trace_status): Likewise.
8323 (tfile_get_tracepoint_status): Likewise.
8324 (tfile_get_traceframe_address): Likewise.
8325 (tfile_trace_find, match_blocktype): Likewise.
8326 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8327 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8328 (tfile_get_trace_state_variable_value): Likewise.
8329 (tfile_has_all_memory, tfile_has_memory): Likewise.
8330 (tfile_has_stack, tfile_has_registers): Likewise.
8331 (tfile_thread_alive, build_traceframe_info): Likewise.
8332 (tfile_traceframe_info, init_tfile_ops): Likewise.
8333 (_initialize_tracepoint): Don't call init_tfile_ops
8334 and add_target_with_completer.
8335 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8336 exec.h, completer.h and filenames.h.
8337 (_initialize_tracefile_tfile): New function.
8339 2014-02-23 Yao Qi <yao@codesourcery.com>
8341 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8343 (HFILES_NO_SRCDIR): Add tracefile.h.
8344 * ctf.c: Include "tracefile.h".
8345 * tracefile.h: New file.
8346 * tracefile.c: New file
8347 * tracefile-tfile.c: New file.
8348 * tracepoint.c: Include "tracefile.h".
8349 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8350 (stop_reason_names): Add const.
8351 (trace_file_writer_xfree): Move it to tracefile.c.
8352 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8353 (trace_save_ctf): Likewise.
8354 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8355 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8356 (tfile_write_header, tfile_write_regblock_type): Likewise.
8357 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8358 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8359 (tfile_write_raw_data, tfile_end): Likewise.
8360 (tfile_trace_file_writer_new): Likewise.
8361 (free_uploaded_tp): Make it extern.
8362 (free_uploaded_tsv): Make it extern.
8363 (_initialize_tracepoint): Move code to register command 'tsave'
8365 * tracepoint.h (stop_reason_names): Declare.
8366 (struct trace_frame_write_ops): Move it to tracefile.h.
8367 (struct trace_file_write_ops): Likewise.
8368 (struct trace_file_writer): Likewise.
8369 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8371 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8374 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8376 (get_cores_used_by_process): New parameter num_cores, use it.
8377 (linux_xfer_osdata_processes): Pass num_cores to it.
8378 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8381 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8383 * target.c (memory_xfer_partial): Fix length arg in call to
8384 breakpoint_xfer_memory.
8386 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8389 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8390 number comes after the + or - signs. Adjust length of register
8391 name to be extracted.
8393 2014-02-20 Tom Tromey <tromey@redhat.com>
8395 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8396 (ada_varobj_ops): Mark "extern".
8398 2014-02-20 Tom Tromey <tromey@redhat.com>
8400 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8402 2014-02-20 Doug Evans <xdje42@gmail.com>
8404 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8405 All callers updated.
8406 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8407 All callers updated.
8408 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8409 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8411 2014-02-20 lin zuojian <manjian2006@gmail.com>
8412 Joel Brobecker <brobecker@adacore.com>
8413 Doug Evans <xdje42@gmail.com>
8416 * dwarf2read.c (struct die_info): New member in_process.
8417 (reset_die_in_process): New function.
8418 (process_die): Set it at the start, reset when returning.
8419 (inherit_abstract_dies): Only call process_die if origin_child_die
8420 not already being processed.
8422 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8424 * windows-nat.c (handle_unload_dll): Add function documentation.
8425 (do_initial_windows_stuff): Add comment explaining why we wait
8426 until after inferior initialization has finished before
8427 processing all DLLs.
8429 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8431 * windows-nat.c (get_module_name): Delete.
8432 (windows_get_exec_module_filename): New function, mostly
8433 inspired from get_module_name.
8434 (windows_pid_to_exec_file): Replace call to get_module_name
8435 by call to windows_get_exec_module_filename.
8437 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8439 * windows-nat.c (handle_load_dll): Rewrite this function's
8440 introductory comment. Remove code using get_module_name
8441 to get the DLL's name.
8443 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8445 * windows-nat.c (get_windows_debug_event): Ignore
8446 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8447 if windows_initialization_done == 0.
8448 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8449 Adjust implementation to always load all DLLs.
8450 (do_initial_windows_stuff): Replace call to
8451 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8453 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8455 * windows-nat.c (_initialize_windows_nat): Deprecate the
8456 "dll-symbols" command. Turn the "add-shared-symbol-files"
8457 and "assf" aliases into commands, and deprecate them as well.
8458 * NEWS: Add entry explaining that "dll-symbols" and its two
8459 aliases are now deprecated.
8461 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8463 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8464 new-line in debug string. Remove trailing spaces.
8466 2014-02-19 Stan Shebs <stan@codesourcery.com>
8468 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8470 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8472 * NEWS: Add entry for the new feature
8473 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8476 2014-02-19 Stan Shebs <stan@codesourcery.com>
8478 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8480 2014-02-19 Pedro Alves <palves@redhat.com>
8482 * common/ptid.h (struct ptid): Mention that process_stratum
8483 targets should prefer ptid.lwp.
8485 2014-02-19 Pedro Alves <palves@redhat.com>
8487 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8488 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8489 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8490 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8491 store remote thread ids rather than ptid.tid.
8492 (_initialize_remote): Adjust.
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8496 * target.c (target_get_unwinder): Rewrite.
8497 (target_get_tailcall_unwinder): Rewrite.
8498 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8499 (record_btrace_to_get_tailcall_unwinder): New function.
8500 (init_record_btrace_ops): Update.
8501 * target.h (struct target_ops) <to_get_unwinder,
8502 to_get_tailcall_unwinder>: Now function pointers. Use
8503 TARGET_DEFAULT_RETURN.
8505 2014-02-19 Tom Tromey <tromey@redhat.com>
8507 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8509 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8513 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8515 * target-delegates.c: Rebuild.
8516 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8517 TARGET_DEFAULT_FUNC.
8518 * target.c (default_target_decr_pc_after_break): Rename from
8519 forward_target_decr_pc_after_break. Simplify.
8520 (target_decr_pc_after_break): Rely on delegation.
8522 2014-02-19 Tom Tromey <tromey@redhat.com>
8524 * target.c (update_current_target): Do not INHERIT to_doc or
8525 to_magic. Do not de_fault to_open or to_close.
8527 2014-02-19 Tom Tromey <tromey@redhat.com>
8529 * gcore.h (objfile_find_memory_regions): Declare.
8530 * gcore.c (objfile_find_memory_regions): No longer static. Add
8532 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8533 * exec.c: Include gcore.h.
8534 (exec_set_find_memory_regions): Remove.
8535 (exec_find_memory_regions): Remove.
8536 (exec_do_find_memory_regions): Remove.
8537 (init_exec_ops): Update.
8538 * defs.h (exec_set_find_memory_regions): Remove.
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target-delegates.c: Rebuild.
8543 * target.h (struct target_ops) <to_extra_thread_info,
8544 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8545 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8546 not 0, in TARGET_DEFAULT_RETURN.
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8550 * target.c (complete_target_initialization): Remove casts. Use
8551 return_zero_has_execution.
8552 (return_zero): Add "ignore" argument.
8553 (return_zero_has_execution): New function.
8554 (init_dummy_target): Remove casts. Use
8555 return_zero_has_execution.
8557 2014-02-19 Tom Tromey <tromey@redhat.com>
8559 * target.c (update_current_target): Update comments. Do not
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8564 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8566 * corelow.c (core_read_description): Delegate when needed.
8567 * remote.c (remote_read_description): Delegate when needed.
8568 * target-delegates.c: Rebuild.
8569 * target.c (target_read_description): Rewrite.
8570 * target.h (struct target_ops) <to_read_description>: Update
8571 comment. Use TARGET_DEFAULT_RETURN.
8573 2014-02-19 Tom Tromey <tromey@redhat.com>
8575 * target-delegates.c: Rebuild.
8576 * target.c (update_current_target): Don't inherit or default
8578 (find_default_run_target): Check against delegate_can_run.
8579 * target.h (struct target_ops) <to_can_run>: Use
8580 TARGET_DEFAULT_RETURN.
8582 2014-02-19 Tom Tromey <tromey@redhat.com>
8584 * target-delegates.c: Rebuild.
8585 * target.c (target_disconnect): Unconditionally delegate.
8586 * target.h (struct target_ops) <to_disconnect>: Use
8587 TARGET_DEFAULT_NORETURN.
8589 2014-02-19 Tom Tromey <tromey@redhat.com>
8591 * record.c (record_stop): Unconditionally delegate.
8592 * target-delegates.c: Rebuild.
8593 * target.c (target_stop_recording): Unconditionally delegate.
8594 * target.h (struct target_ops) <to_stop_recording>: Use
8595 TARGET_DEFAULT_IGNORE.
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (target_enable_btrace): Unconditionally delegate.
8601 * target.h (struct target_ops) <to_enable_btrace>: Use
8602 TARGET_DEFAULT_NORETURN.
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8606 * target-delegates.c: Rebuild.
8607 * target.c (target_read_btrace): Unconditionally delegate.
8608 * target.h (struct target_ops) <to_read_btrace>: Use
8609 TARGET_DEFAULT_NORETURN.
8611 2014-02-19 Tom Tromey <tromey@redhat.com>
8613 * target-delegates.c: Rebuild.
8614 * target.c (target_teardown_btrace): Unconditionally delegate.
8615 * target.h (struct target_ops) <to_teardown_btrace>: Use
8616 TARGET_DEFAULT_NORETURN.
8618 2014-02-19 Tom Tromey <tromey@redhat.com>
8620 * target-delegates.c: Rebuild.
8621 * target.c (target_disable_btrace): Unconditionally delegate.
8622 * target.h (struct target_ops) <to_disable_btrace>: Use
8623 TARGET_DEFAULT_NORETURN.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target-delegates.c: Rebuild.
8628 * target.c (default_search_memory): New function.
8629 (simple_search_memory): Update comment.
8630 (target_search_memory): Unconditionally delegate.
8631 * target.h (struct target_ops) <to_search_memory>: Use
8632 TARGET_DEFAULT_FUNC.
8634 2014-02-19 Tom Tromey <tromey@redhat.com>
8636 * auxv.c (default_auxv_parse): No longer static.
8637 (target_auxv_parse): Unconditionally delegate.
8638 * auxv.h (default_auxv_parse): Declare.
8639 * target-delegates.c: Rebuild.
8640 * target.c: Include auxv.h.
8641 * target.h (struct target_ops) <to_auxv_parse>: Use
8642 TARGET_DEFAULT_FUNC.
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target-delegates.c: Rebuild.
8647 * target.c (target_memory_map): Unconditionally delegate.
8648 * target.h (struct target_ops) <to_memory_map>: Use
8649 TARGET_DEFAULT_RETURN.
8651 2014-02-19 Tom Tromey <tromey@redhat.com>
8653 * target-delegates.c: Rebuild.
8654 * target.c (target_thread_alive): Unconditionally delegate.
8655 * target.h (struct target_ops) <to_thread_alive>: Use
8656 TARGET_DEFAULT_RETURN.
8658 2014-02-19 Tom Tromey <tromey@redhat.com>
8660 * target-delegates.c: Rebuild.
8661 * target.c (target_save_record): Unconditionally delegate.
8662 * target.h (struct target_ops) <to_save_record>: Use
8663 TARGET_DEFAULT_NORETURN.
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8667 * target-delegates.c: Rebuild.
8668 * target.c (target_delete_record): Unconditionally delegate.
8669 * target.h (struct target_ops) <to_delete_record>: Use
8670 TARGET_DEFAULT_NORETURN.
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8674 * target-delegates.c: Rebuild.
8675 * target.c (target_record_is_replaying): Unconditionally
8677 * target.h (struct target_ops) <to_record_is_replaying>: Use
8678 TARGET_DEFAULT_RETURN.
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8682 * target-delegates.c: Rebuild.
8683 * target.c (target_goto_record_begin): Unconditionally delegate.
8684 * target.h (struct target_ops) <to_goto_record_begin>: Use
8685 TARGET_DEFAULT_NORETURN.
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8689 * target-delegates.c: Rebuild.
8690 * target.c (target_goto_record_end): Unconditionally delegate.
8691 * target.h (struct target_ops) <to_goto_record_end>: Use
8692 TARGET_DEFAULT_NORETURN.
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target-delegates.c: Rebuild.
8697 * target.c (target_goto_record): Unconditionally delegate.
8698 * target.h (struct target_ops) <to_goto_record>: Use
8699 TARGET_DEFAULT_NORETURN.
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target-delegates.c: Rebuild.
8704 * target.c (target_insn_history): Unconditionally delegate.
8705 * target.h (struct target_ops) <to_insn_history>: Use
8706 TARGET_DEFAULT_NORETURN.
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8710 * target-delegates.c: Rebuild.
8711 * target.c (target_insn_history_from): Unconditionally delegate.
8712 * target.h (struct target_ops) <to_insn_history_from>: Use
8713 TARGET_DEFAULT_NORETURN.
8715 2014-02-19 Tom Tromey <tromey@redhat.com>
8717 * target-delegates.c: Rebuild.
8718 * target.c (target_insn_history_range): Unconditionally delegate.
8719 * target.h (struct target_ops) <to_insn_history_range>: Use
8720 TARGET_DEFAULT_NORETURN.
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8724 * target-delegates.c: Rebuild.
8725 * target.c (target_call_history): Unconditionally delegate.
8726 * target.h (struct target_ops) <to_call_history>: Use
8727 TARGET_DEFAULT_NORETURN.
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8731 * target-delegates.c: Rebuild.
8732 * target.c (target_call_history_from): Unconditionally delegate.
8733 * target.h (struct target_ops) <to_call_history_from>: Use
8734 TARGET_DEFAULT_NORETURN.
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * target-delegates.c: Rebuild.
8739 * target.c (target_call_history_range): Unconditionally delegate.
8740 * target.h (struct target_ops) <to_call_history_range>: Use
8741 TARGET_DEFAULT_NORETURN.
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8745 * target-delegates.c: Rebuild.
8746 * target.c (target_verify_memory): Unconditionally delegate.
8747 * target.h (struct target_ops) <to_verify_memory>: Use
8748 TARGET_DEFAULT_NORETURN.
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8752 * target-delegates.c: Rebuild.
8753 * target.c (target_core_of_thread): Unconditionally delegate.
8754 * target.h (struct target_ops) <to_core_of_thread>: Use
8755 TARGET_DEFAULT_RETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (target_flash_done): Unconditionally delegate.
8761 * target.h (struct target_ops) <to_flash_done>: Use
8762 TARGET_DEFAULT_NORETURN.
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * target-delegates.c: Rebuild.
8767 * target.c (target_flash_erase): Unconditionally delegate.
8768 * target.h (struct target_ops) <to_flash_erase>: Use
8769 TARGET_DEFAULT_NORETURN.
8771 2014-02-19 Tom Tromey <tromey@redhat.com>
8773 * target-delegates.c: Rebuild.
8774 * target.c (target_get_section_table): Unconditionally delegate.
8775 * target.h (struct target_ops) <to_get_section_table>: Use
8776 TARGET_DEFAULT_RETURN.
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8780 * target-delegates.c: Rebuild.
8781 * target.c (target_pid_to_str): Unconditionally delegate.
8782 (init_dummy_target): Don't initialize to_pid_to_str.
8783 (default_pid_to_str): Rename from dummy_pid_to_str.
8784 * target.h (struct target_ops) <to_pid_to_str>: Use
8785 TARGET_DEFAULT_FUNC.
8787 2014-02-19 Tom Tromey <tromey@redhat.com>
8789 * target-delegates.c: Rebuild.
8790 * target.c (target_find_new_threads): Unconditionally delegate.
8791 * target.h (struct target_ops) <to_find_new_threads>: Use
8792 TARGET_DEFAULT_RETURN.
8794 2014-02-19 Tom Tromey <tromey@redhat.com>
8796 * target-delegates.c: Rebuild.
8797 * target.c (target_program_signals): Unconditionally delegate.
8798 * target.h (struct target_ops) <to_program_signals>: Use
8799 TARGET_DEFAULT_IGNORE.
8801 2014-02-19 Tom Tromey <tromey@redhat.com>
8803 * target-delegates.c: Rebuild.
8804 * target.c (target_pass_signals): Unconditionally delegate.
8805 * target.h (struct target_ops) <to_pass_signals>: Use
8806 TARGET_DEFAULT_IGNORE.
8808 2014-02-19 Tom Tromey <tromey@redhat.com>
8810 * target-delegates.c: Rebuild.
8811 * target.c (default_mourn_inferior): New function.
8812 (target_mourn_inferior): Unconditionally delegate.
8813 * target.h (struct target_ops) <to_mourn_inferior>: Use
8814 TARGET_DEFAULT_FUNC.
8816 2014-02-19 Tom Tromey <tromey@redhat.com>
8818 * target-delegates.c: Rebuild.
8819 * target.c (default_follow_fork): New function.
8820 (target_follow_fork): Unconditionally delegate.
8821 * target.h (struct target_ops) <to_follow_fork>: Use
8822 TARGET_DEFAULT_FUNC.
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target-delegates.c: Rebuild.
8827 * target.c (target_kill): Unconditionally delegate.
8828 * target.h (struct target_ops) <to_kill>: Use
8829 TARGET_DEFAULT_NORETURN.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target-delegates.c: Rebuild.
8834 * target.c (target_masked_watch_num_registers): Unconditionally
8836 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8837 Use TARGET_DEFAULT_RETURN.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target-delegates.c: Rebuild.
8842 * target.c (target_remove_mask_watchpoint): Unconditionally
8844 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8845 TARGET_DEFAULT_RETURN.
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8849 * target-delegates.c: Rebuild.
8850 * target.c (target_insert_mask_watchpoint): Unconditionally
8852 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8853 TARGET_DEFAULT_RETURN.
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8857 * target-delegates.c: Rebuild.
8858 * target.c (target_ranged_break_num_registers): Unconditionally
8860 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8861 Use TARGET_DEFAULT_RETURN.
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8865 * target-delegates.c: Rebuild.
8866 * target.c (target_fetch_registers): Unconditionally delegate.
8867 * target.h (struct target_ops) <to_fetch_registers>: Use
8868 TARGET_DEFAULT_NORETURN.
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8872 * target-delegates.c: Rebuild.
8873 * target.c (update_current_target): Don't inherit or default
8875 * target.h (struct target_ops) <to_stop>: Use
8876 TARGET_DEFAULT_IGNORE.
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8880 * target-delegates.c: Rebuild.
8881 * target.c (update_current_target): Don't inherit or default
8882 to_can_run_breakpoint_commands.
8883 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8884 Use TARGET_DEFAULT_RETURN.
8886 2014-02-19 Tom Tromey <tromey@redhat.com>
8888 * target-delegates.c: Rebuild.
8889 * target.c (update_current_target): Don't inherit or default
8890 to_supports_evaluation_of_breakpoint_conditions.
8891 * target.h (struct target_ops)
8892 <to_supports_evaluation_of_breakpoint_conditions>: Use
8893 TARGET_DEFAULT_RETURN.
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8897 * target-delegates.c: Rebuild.
8898 * target.c (update_current_target): Don't inherit or default
8899 to_augmented_libraries_svr4_read.
8900 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8901 Use TARGET_DEFAULT_RETURN.
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8908 * target.h (struct target_ops) <to_can_use_agent>: Use
8909 TARGET_DEFAULT_RETURN.
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8916 * target.h (struct target_ops) <to_use_agent>: Use
8917 TARGET_DEFAULT_NORETURN.
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * target-delegates.c: Rebuild.
8922 * target.c (update_current_target): Don't inherit or default
8924 (return_null): Remove.
8925 * target.h (struct target_ops) <to_traceframe_info>: Use
8926 TARGET_DEFAULT_RETURN.
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8930 * target-delegates.c: Rebuild.
8931 * target.c (update_current_target): Don't inherit or default
8932 to_static_tracepoint_markers_by_strid.
8933 * target.h (struct target_ops)
8934 <to_static_tracepoint_markers_by_strid>: Use
8935 TARGET_DEFAULT_NORETURN.
8937 2014-02-19 Tom Tromey <tromey@redhat.com>
8939 * target-delegates.c: Rebuild.
8940 * target.c (update_current_target): Don't inherit or default
8941 to_static_tracepoint_marker_at.
8942 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8943 Use TARGET_DEFAULT_RETURN.
8945 2014-02-19 Tom Tromey <tromey@redhat.com>
8947 * target-delegates.c: Rebuild.
8948 * target.c (update_current_target): Don't inherit or default
8950 * target.h (struct target_ops) <to_set_permissions>: Use
8951 TARGET_DEFAULT_IGNORE.
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8955 * target-delegates.c: Rebuild.
8956 * target.c (update_current_target): Don't inherit or default
8958 * target.h (struct target_ops) <to_get_tib_address>: Use
8959 TARGET_DEFAULT_NORETURN.
8961 2014-02-19 Tom Tromey <tromey@redhat.com>
8963 * target-delegates.c: Rebuild.
8964 * target.c (update_current_target): Don't inherit or default
8966 * target.h (struct target_ops) <to_set_trace_notes>: Use
8967 TARGET_DEFAULT_RETURN.
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8971 * target-delegates.c: Rebuild.
8972 * target.c (update_current_target): Don't initialize
8973 to_set_trace_buffer_size.
8974 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8975 TARGET_DEFAULT_IGNORE.
8977 2014-02-19 Tom Tromey <tromey@redhat.com>
8979 * target-delegates.c: Rebuild.
8980 * target.c (update_current_target): Don't inherit or default
8981 to_set_circular_trace_buffer.
8982 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8983 TARGET_DEFAULT_IGNORE.
8985 2014-02-19 Tom Tromey <tromey@redhat.com>
8987 * target-delegates.c: Rebuild.
8988 * target.c (update_current_target): Don't inherit or default
8989 to_set_disconnected_tracing.
8990 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8991 TARGET_DEFAULT_IGNORE.
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8995 * target-delegates.c: Rebuild.
8996 * target.c (update_current_target): Don't inherit or default
8997 to_get_min_fast_tracepoint_insn_len.
8998 (return_minus_one): Remove.
8999 * target.h (struct target_ops)
9000 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9002 2014-02-19 Tom Tromey <tromey@redhat.com>
9004 * target-delegates.c: Rebuild.
9005 * target.c (update_current_target): Don't inherit or default
9006 to_get_raw_trace_data.
9007 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9008 TARGET_DEFAULT_NORETURN.
9010 2014-02-19 Tom Tromey <tromey@redhat.com>
9012 * target-delegates.c: Rebuild.
9013 * target.c (update_current_target): Don't inherit or default
9014 to_upload_trace_state_variables.
9015 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9016 Use TARGET_DEFAULT_RETURN.
9018 2014-02-19 Tom Tromey <tromey@redhat.com>
9020 * target-delegates.c: Rebuild.
9021 * target.c (update_current_target): Don't inherit or default
9022 to_upload_tracepoints.
9023 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9024 TARGET_DEFAULT_RETURN.
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9028 * target-delegates.c: Rebuild.
9029 * target.c (update_current_target): Don't inherit or default
9031 * target.h (struct target_ops) <to_save_trace_data>: Use
9032 TARGET_DEFAULT_NORETURN.
9034 2014-02-19 Tom Tromey <tromey@redhat.com>
9036 * target-delegates.c: Rebuild.
9037 * target.c (update_current_target): Don't inherit or default
9038 to_get_trace_state_variable_value.
9039 * target.h (struct target_ops)
9040 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9044 * target-delegates.c: Rebuild.
9045 * target.c (update_current_target): Don't inherit or default
9047 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target-delegates.c: Rebuild.
9052 * target.c (update_current_target): Don't inherit or default
9054 * target.h (struct target_ops) <to_trace_stop>: Use
9055 TARGET_DEFAULT_NORETURN.
9057 2014-02-19 Tom Tromey <tromey@redhat.com>
9059 * target-delegates.c: Rebuild.
9060 * target.c (update_current_target): Don't inherit or default
9061 to_get_tracepoint_status.
9062 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9063 TARGET_DEFAULT_NORETURN.
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9067 * target-delegates.c: Rebuild.
9068 * target.c (update_current_target): Don't inherit or default
9069 to_get_trace_status.
9070 * target.h (struct target_ops) <to_get_trace_status>: Use
9071 TARGET_DEFAULT_RETURN.
9073 2014-02-19 Tom Tromey <tromey@redhat.com>
9075 * target-delegates.c: Rebuild.
9076 * target.c (update_current_target): Don't inherit or default
9078 * target.h (struct target_ops) <to_trace_start>: Use
9079 TARGET_DEFAULT_NORETURN.
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9083 * target-delegates.c: Rebuild.
9084 * target.c (update_current_target): Don't inherit or default
9085 to_trace_set_readonly_regions.
9086 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9087 Use TARGET_DEFAULT_NORETURN.
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target-delegates.c: Rebuild.
9092 * target.c (update_current_target): Don't inherit or default
9093 to_disable_tracepoint.
9094 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9095 TARGET_DEFAULT_NORETURN.
9097 2014-02-19 Tom Tromey <tromey@redhat.com>
9099 * target-delegates.c: Rebuild.
9100 * target.c (update_current_target): Don't inherit or default
9101 to_enable_tracepoint.
9102 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9103 TARGET_DEFAULT_NORETURN.
9105 2014-02-19 Tom Tromey <tromey@redhat.com>
9107 * target-delegates.c: Rebuild.
9108 * target.c (update_current_target): Don't inherit or default
9109 to_download_trace_state_variable.
9110 * target.h (struct target_ops) <to_download_trace_state_variable>:
9111 Use TARGET_DEFAULT_NORETURN.
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * target-delegates.c: Rebuild.
9116 * target.c (update_current_target): Don't inherit or default
9117 to_can_download_tracepoint.
9118 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9119 TARGET_DEFAULT_RETURN.
9121 2014-02-19 Tom Tromey <tromey@redhat.com>
9123 * target-delegates.c: Rebuild.
9124 * target.c (update_current_target): Don't inherit or default
9125 to_download_tracepoint.
9126 * target.h (struct target_ops) <to_download_tracepoint>: Use
9127 TARGET_DEFAULT_NORETURN.
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * target-delegates.c: Rebuild.
9132 * target.c (update_current_target): Don't inherit or default
9134 * target.h (struct target_ops) <to_trace_init>: Use
9135 TARGET_DEFAULT_RETURN.
9137 2014-02-19 Tom Tromey <tromey@redhat.com>
9139 * target-delegates.c: Rebuild.
9140 * target.c (update_current_target): Don't inherit or default
9141 to_supports_string_tracing.
9142 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9143 TARGET_DEFAULT_RETURN.
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9147 * target-delegates.c: Rebuild.
9148 * target.c (update_current_target): Don't inherit or default
9149 to_supports_enable_disable_tracepoint.
9150 * target.h (struct target_ops)
9151 <to_supports_enable_disable_tracepoint>: Use
9152 TARGET_DEFAULT_RETURN.
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9156 * target-delegates.c: Rebuild.
9157 * target.c (update_current_target): Don't inherit or default
9158 to_supports_multi_process.
9159 * target.h (struct target_ops) <to_supports_multi_process>: Use
9160 TARGET_DEFAULT_RETURN.
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9164 * target-delegates.c: Rebuild.
9165 * target.c (update_current_target): Don't inherit or default
9166 to_get_ada_task_ptid.
9167 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9168 TARGET_DEFAULT_FUNC.
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9172 * target-delegates.c: Rebuild.
9173 * target.c (update_current_target): Don't inherit or default
9174 to_thread_architecture.
9175 * target.h (struct target_ops) <to_thread_architecture>: Use
9176 TARGET_DEFAULT_FUNC.
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9180 * target-delegates.c: Rebuild.
9181 * target.c (update_current_target): Don't inherit or default
9182 to_execution_direction.
9183 * target.h (struct target_ops) <to_execution_direction>: Use
9184 TARGET_DEFAULT_FUNC.
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9188 * target-delegates.c: Rebuild.
9189 * target.c (update_current_target): Don't inherit or default
9190 to_can_execute_reverse.
9191 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9192 TARGET_DEFAULT_RETURN.
9193 (target_can_execute_reverse): Unconditionally delegate.
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * target-delegates.c: Rebuild.
9198 * target.c (update_current_target): Don't inherit or default
9200 (dummy_goto_bookmark): Remove.
9201 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9202 * target.h (struct target_ops) <to_goto_bookmark>: Use
9203 TARGET_DEFAULT_NORETURN.
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9210 (dummy_get_bookmark): Remove.
9211 (init_dummy_target): Don't inherit or default to_get_bookmark.
9212 * target.h (struct target_ops) <to_get_bookmark>: Use
9213 TARGET_DEFAULT_NORETURN
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9217 * target-delegates.c: Rebuild.
9218 * target.c (update_current_target): Don't inherit or default
9219 to_make_corefile_notes.
9220 (init_dummy_target): Don't initialize to_make_corefile_notes.
9221 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9222 TARGET_DEFAULT_FUNC.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * target-delegates.c: Rebuild.
9227 * target.c (update_current_target): Don't inherit or default
9228 to_find_memory_regions.
9229 (init_dummy_target): Don't initialize to_find_memory_regions.
9230 * target.h (struct target_ops) <to_find_memory_regions>: Use
9231 TARGET_DEFAULT_FUNC.
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 * target.h (struct target_ops) <to_log_command>: Use
9239 TARGET_DEFAULT_IGNORE.
9240 (target_log_command): Unconditionally delegate.
9242 2014-02-19 Tom Tromey <tromey@redhat.com>
9244 * target-delegates.c: Rebuild.
9245 * target.c (update_current_target): Don't inherit or default
9246 to_pid_to_exec_file.
9247 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9248 TARGET_DEFAULT_RETURN.
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9252 * target-delegates.c: Rebuild.
9253 * target.c (update_current_target): Don't inherit or default
9255 (target_thread_name): Unconditionally delegate.
9256 * target.h (struct target_ops) <to_thread_name>: Use
9257 TARGET_DEFAULT_RETURN.
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9261 * target-delegates.c: Rebuild.
9262 * target.c (update_current_target): Don't inherit or default
9263 to_extra_thread_info.
9264 * target.h (struct target_ops) <to_extra_thread_info>: Use
9265 TARGET_DEFAULT_RETURN.
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9269 * target-delegates.c: Rebuild.
9270 * target.c (update_current_target): Don't inherit or default
9272 * target.h (struct target_ops) <to_has_exited>: Use
9273 TARGET_DEFAULT_RETURN..
9275 2014-02-19 Tom Tromey <tromey@redhat.com>
9277 * target-delegates.c: Rebuild.
9278 * target.c (update_current_target): Don't inherit or default
9279 to_set_syscall_catchpoint.
9280 (return_one): Remove.
9281 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9282 TARGET_DEFAULT_RETURN.
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9286 * target-delegates.c: Rebuild.
9287 * target.c (update_current_target): Don't inherit or default
9288 to_insert_exec_catchpoint.
9289 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9290 TARGET_DEFAULT_RETURN.
9292 2014-01-08 Tom Tromey <tromey@redhat.com>
9294 * target-delegates.c: Rebuild.
9295 * target.c (update_current_target): Don't inherit or default
9296 to_insert_exec_catchpoint.
9297 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9298 TARGET_DEFAULT_RETURN.
9300 2014-02-19 Tom Tromey <tromey@redhat.com>
9302 * target-delegates.c: Rebuild.
9303 * target.c (update_current_target): Don't inherit or default
9304 to_remove_vfork_catchpoint.
9305 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9306 TARGET_DEFAULT_RETURN.
9308 2014-02-19 Tom Tromey <tromey@redhat.com>
9310 * target-delegates.c: Rebuild.
9311 * target.c (update_current_target): Don't inherit or default
9312 to_insert_vfork_catchpoint.
9313 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9314 TARGET_DEFAULT_RETURN.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target-delegates.c: Rebuild.
9319 * target.c (update_current_target): Don't inherit or default
9320 to_remove_fork_catchpoint.
9321 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9322 TARGET_DEFAULT_RETURN.
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * target-delegates.c: Rebuild.
9327 * target.c (update_current_target): Don't inherit or default
9328 to_insert_fork_catchpoint.
9329 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9330 TARGET_DEFAULT_RETURN.
9332 2014-02-19 Tom Tromey <tromey@redhat.com>
9334 * target-delegates.c: Rebuild.
9335 * target.c (update_current_target): Don't inherit or default
9336 to_post_startup_inferior.
9337 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9338 TARGET_DEFAULT_IGNORE.
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9342 * target-delegates.c: Rebuild.
9343 * target.c (update_current_target): Don't inherit or default
9345 * target.h (struct target_ops) <to_load>: Use
9346 TARGET_DEFAULT_NORETURN.
9348 2014-02-19 Tom Tromey <tromey@redhat.com>
9350 * target-delegates.c: Rebuild.
9351 * target.c (update_current_target): Don't inherit or default
9353 * target.h (struct target_ops) <to_terminal_info>: Use
9354 TARGET_DEFAULT_FUNC.
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9358 * target-delegates.c: Rebuild.
9359 * target.c (update_current_target): Don't inherit or default
9360 to_terminal_save_ours.
9361 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9362 TARGET_DEFAULT_IGNORE.
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9366 * target-delegates.c: Rebuild.
9367 * target.c (update_current_target): Don't inherit or default
9369 * target.h (struct target_ops) <to_terminal_ours>: Use
9370 TARGET_DEFAULT_IGNORE.
9372 2014-02-19 Tom Tromey <tromey@redhat.com>
9374 * target-delegates.c: Rebuild.
9375 * target.c (update_current_target): Don't inherit or default
9376 to_terminal_ours_for_output.
9377 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9378 TARGET_DEFAULT_IGNORE.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * target-delegates.c: Rebuild.
9383 * target.c (update_current_target): Don't inherit or default
9384 to_terminal_inferior.
9385 * target.h (struct target_ops) <to_terminal_inferior>: Use
9386 TARGET_DEFAULT_IGNORE.
9388 2014-02-19 Tom Tromey <tromey@redhat.com>
9390 * target-delegates.c: Rebuild.
9391 * target.c (update_current_target): Don't inherit or default
9393 * target.h (struct target_ops) <to_terminal_init>: Use
9394 TARGET_DEFAULT_IGNORE.
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9398 * target-delegates.c: Rebuild.
9399 * target.c (update_current_target): Don't inherit or default
9400 to_can_accel_watchpoint_condition.
9401 * target.h (struct target_ops)
9402 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * target-delegates.c: Rebuild.
9407 * target.c (update_current_target): Don't inherit or default
9408 to_region_ok_for_hw_watchpoint.
9409 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9410 Use TARGET_DEFAULT_FUNC.
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9414 * target-delegates.c: Rebuild.
9415 * target.c (update_current_target): Don't inherit or default
9416 to_watchpoint_addr_within_range.
9417 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9418 Use TARGET_DEFAULT_FUNC.
9420 2014-02-19 Tom Tromey <tromey@redhat.com>
9422 * target-delegates.c: Rebuild.
9423 * target.c (update_current_target): Don't inherit or default
9424 to_remove_watchpoint.
9425 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9426 TARGET_DEFAULT_NORETURN.
9428 2014-02-19 Tom Tromey <tromey@redhat.com>
9430 * target-delegates.c: Rebuild.
9431 * target.c (update_current_target): Don't inherit or default
9432 to_insert_watchpoint.
9433 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9434 TARGET_DEFAULT_RETURN.
9436 2014-02-19 Tom Tromey <tromey@redhat.com>
9438 * target-delegates.c: Rebuild.
9439 * target.c (update_current_target): Don't inherit or default
9440 to_remove_hw_breakpoint.
9441 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9442 TARGET_DEFAULT_RETURN.
9444 2014-02-19 Tom Tromey <tromey@redhat.com>
9446 * target-delegates.c: Rebuild.
9447 * target.c (update_current_target): Don't inherit or default
9448 to_insert_hw_breakpoint.
9449 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9450 TARGET_DEFAULT_RETURN.
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9454 * target-delegates.c: Rebuild.
9455 * target.c (update_current_target): Don't inherit or default
9456 to_can_use_hw_breakpoint.
9457 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9458 TARGET_DEFAULT_RETURN.
9460 2014-02-19 Tom Tromey <tromey@redhat.com>
9462 * target-delegates.c: Rebuild.
9463 * target.c (update_current_target): Don't inherit or default
9465 * target.h (struct target_ops) <to_files_info>: Use
9466 TARGET_DEFAULT_IGNORE.
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target-delegates.c: Rebuild.
9471 * target.c (update_current_target): Don't inherit or default
9473 * target.h (struct target_ops) <to_store>: Use
9474 TARGET_DEFAULT_NORETURN.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target-delegates.c: Rebuild.
9479 * target.c (update_current_target): Don't inherit or default
9481 * target.h (struct target_ops) <to_post_attach>: Use
9482 TARGET_DEFAULT_IGNORE.
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9486 * target-delegates.c: Rebuild.
9487 * target.c (update_current_target): Don't inherit or default
9489 (default_rcmd): New function.
9490 (do_monitor_command): Unconditionally delegate.
9491 * target.h (struct target_ops) <to_rmcd>: Use
9492 TARGET_DEFAULT_FUNC.
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9496 * target-delegates.c: Rebuild.
9497 * target.c (init_dummy_target): Don't initialize to_attach.
9498 (target_attach): Unconditionally delegate.
9499 * target.h (struct target_ops) <to_attach>: Use
9500 TARGET_DEFAULT_FUNC.
9502 2014-02-19 Tom Tromey <tromey@redhat.com>
9504 * target-delegates.c: Rebuild.
9505 * target.c (target_detach): Unconditionally delegate.
9506 (init_dummy_target): Don't initialize to_detach.
9507 * target.h (struct target_ops) <to_detach>: Use
9508 TARGET_DEFAULT_IGNORE.
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9512 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9514 (target_augmented_libraries_svr4_read): Add argument.
9515 * target.c (update_current_target): Update.
9516 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * target.h (struct target_ops) <to_call_history_range>: Add
9523 * target.c (target_call_history_range): Add argument.
9524 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9526 (record_btrace_call_history_from): Update.
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9530 * target.h (struct target_ops) <to_call_history_from>: Add
9532 * target.c (target_call_history_from): Add argument.
9533 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9536 2014-02-19 Tom Tromey <tromey@redhat.com>
9538 * target.h (struct target_ops) <to_call_history>: Add argument.
9539 * target.c (target_call_history): Add argument.
9540 * record-btrace.c (record_btrace_call_history): Add 'self'
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9545 * target.h (struct target_ops) <to_insn_history_range>: Add
9547 * target.c (target_insn_history_range): Add argument.
9548 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9550 (record_btrace_insn_history_from): Update.
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9554 * target.h (struct target_ops) <to_insn_history_from>: Add
9556 * target.c (target_insn_history_from): Add argument.
9557 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9562 * target.h (struct target_ops) <to_insn_history>: Add argument.
9563 * target.c (target_insn_history): Add argument.
9564 * record-btrace.c (record_btrace_insn_history): Add 'self'
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9569 * target.h (struct target_ops) <to_goto_record>: Add argument.
9570 * target.c (target_goto_record): Add argument.
9571 * record-full.c (record_full_goto): Add 'self' argument.
9572 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9576 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9577 * target.c (target_goto_record_end): Add argument.
9578 * record-full.c (record_full_goto_end): Add 'self' argument.
9579 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9581 2014-02-19 Tom Tromey <tromey@redhat.com>
9583 * target.h (struct target_ops) <to_goto_record_begin>: Add
9585 * target.c (target_goto_record_begin): Add argument.
9586 * record-full.c (record_full_goto_begin): Add 'self' argument.
9587 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9590 2014-02-19 Tom Tromey <tromey@redhat.com>
9592 * target.h (struct target_ops) <to_record_is_replaying>: Add
9594 * target.c (target_record_is_replaying): Add argument.
9595 * record-full.c (record_full_is_replaying): Add 'self' argument.
9596 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9598 (record_btrace_xfer_partial, record_btrace_store_registers)
9599 (record_btrace_prepare_to_store, record_btrace_resume)
9600 (record_btrace_wait, record_btrace_decr_pc_after_break)
9601 (record_btrace_find_new_threads, record_btrace_thread_alive):
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9606 * target.h (struct target_ops) <to_delete_record>: Add argument.
9607 * target.c (target_delete_record): Add argument.
9608 * record-full.c (record_full_delete): Add 'self' argument.
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9612 * target.h (struct target_ops) <to_save_record>: Add argument.
9613 * target.c (target_save_record): Add argument.
9614 * record-full.c (record_full_save): Add 'self' argument.
9615 (record_full_save): Add 'self' argument.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target.h (struct target_ops) <to_info_record>: Add argument.
9620 * target.c (target_info_record): Add argument.
9621 * record.c (info_record_command): Add argument.
9622 * record-full.c (record_full_info): Add 'self' argument.
9623 * record-btrace.c (record_btrace_info): Add 'self' argument.
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9627 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9628 * target.c (target_stop_recording): Add argument.
9629 * record.c (record_stop): Add argument.
9630 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9636 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9637 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9639 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9640 (_initialize_amd64_linux_nat): Use it.
9641 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9642 (_initialize_i386_linux_nat): Use it.
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9646 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9647 * target.c (target_teardown_btrace): Add argument.
9648 * remote.c (remote_teardown_btrace): Add 'self' argument.
9649 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9651 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9656 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9657 * target.c (target_disable_btrace): Add argument.
9658 * remote.c (remote_disable_btrace): Add 'self' argument.
9659 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9661 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9666 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9667 * target.c (target_enable_btrace): Add argument.
9668 * remote.c (remote_enable_btrace): Add 'self' argument.
9669 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9671 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9674 2014-02-19 Tom Tromey <tromey@redhat.com>
9676 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9677 (target_can_use_agent): Add argument.
9678 * target.c (update_current_target): Update.
9679 * remote.c (remote_can_use_agent): Add 'self' argument.
9680 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9684 * target.h (struct target_ops) <to_use_agent>: Add argument.
9685 (target_use_agent): Add argument.
9686 * target.c (update_current_target): Update.
9687 * remote.c (remote_use_agent): Add 'self' argument.
9688 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9693 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9694 (target_traceframe_info): Add argument.
9695 * target.c (update_current_target): Update.
9696 * remote.c (remote_traceframe_info): Add 'self' argument.
9697 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9701 * target.h (target_static_tracepoint_markers_by_strid): Add
9703 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9705 * target.c (update_current_target): Update.
9706 * remote.c (struct target_ops)
9707 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9708 * linux-nat.c (struct target_ops)
9709 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9713 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9715 (target_static_tracepoint_marker_at): Add argument.
9716 * target.c (update_current_target): Update.
9717 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9720 2014-02-19 Tom Tromey <tromey@redhat.com>
9722 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9723 (target_set_permissions): Add argument.
9724 * target.c (update_current_target): Update.
9725 * remote.c (remote_set_permissions): Add 'self' argument.
9726 (remote_start_remote): Update.
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9730 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9731 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9732 (target_get_tib_address): Add argument.
9733 * target.c (update_current_target): Update.
9734 * remote.c (remote_get_tib_address): Add 'self' argument.
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9738 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9739 (target_set_trace_notes): Add argument.
9740 * target.c (update_current_target): Update.
9741 * remote.c (remote_set_trace_notes): Add 'self' argument.
9743 2014-02-19 Tom Tromey <tromey@redhat.com>
9745 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9747 (target_set_trace_buffer_size): Add argument.
9748 * target.c (update_current_target): Update.
9749 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9751 2014-02-19 Tom Tromey <tromey@redhat.com>
9753 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9755 (target_set_circular_trace_buffer): Add argument.
9756 * target.c (update_current_target): Update.
9757 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9762 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9764 (target_set_disconnected_tracing): Add argument.
9765 * target.c (update_current_target): Update.
9766 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9768 2014-02-19 Tom Tromey <tromey@redhat.com>
9770 * target.h (struct target_ops)
9771 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9772 (target_get_min_fast_tracepoint_insn_len): Add argument.
9773 * target.c (update_current_target): Update.
9774 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9779 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9781 (target_get_raw_trace_data): Add argument.
9782 * target.c (update_current_target): Update.
9783 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9789 (target_upload_trace_state_variables): Add argument.
9790 * target.c (update_current_target): Update.
9791 * remote.c (remote_upload_trace_state_variables): Add 'self'
9793 (remote_start_remote): Update.
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9797 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9799 (target_upload_tracepoints): Add argument.
9800 * target.c (update_current_target): Update.
9801 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9802 (remote_start_remote): Update.
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9806 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9807 (target_save_trace_data): Add argument.
9808 * target.c (update_current_target): Update.
9809 * remote.c (remote_save_trace_data): Add 'self' argument.
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9813 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9815 * target.h (struct target_ops)
9816 <to_get_trace_state_variable_value>: Add argument.
9817 (target_get_trace_state_variable_value): Add argument.
9818 * target.c (update_current_target): Update.
9819 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9821 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9825 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9826 * target.h (struct target_ops) <to_trace_find>: Add argument.
9827 (target_trace_find): Add argument.
9828 * target.c (update_current_target): Update.
9829 * remote.c (remote_trace_find): Add 'self' argument.
9830 * ctf.c (ctf_trace_find): Add 'self' argument.
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9834 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9835 (target_trace_stop): Add argument.
9836 * target.c (update_current_target): Update.
9837 * remote.c (remote_trace_stop): Add 'self' argument.
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9841 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9842 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9844 (target_get_tracepoint_status): Add argument.
9845 * target.c (update_current_target): Update.
9846 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9848 2014-02-19 Tom Tromey <tromey@redhat.com>
9850 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9851 * target.h (struct target_ops) <to_get_trace_status>: Add
9853 (target_get_trace_status): Add argument.
9854 * target.c (update_current_target): Update.
9855 * remote.c (remote_get_trace_status): Add 'self' argument.
9856 (remote_start_remote, remote_can_download_tracepoint): Update.
9857 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9861 * target.h (struct target_ops) <to_trace_start>: Add argument.
9862 (target_trace_start): Add argument.
9863 * target.c (update_current_target): Update.
9864 * remote.c (remote_trace_start): Add 'self' argument.
9866 2014-02-19 Tom Tromey <tromey@redhat.com>
9868 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9870 (target_trace_set_readonly_regions): Add argument.
9871 * target.c (update_current_target): Update.
9872 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9877 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9879 (target_disable_tracepoint): Add argument.
9880 * target.c (update_current_target): Update.
9881 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9885 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9887 (target_enable_tracepoint): Add argument.
9888 * target.c (update_current_target): Update.
9889 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * target.h (struct target_ops) <to_download_trace_state_variable>:
9895 (target_download_trace_state_variable): Add argument.
9896 * target.c (update_current_target): Update.
9897 * remote.c (remote_download_trace_state_variable): Add 'self'
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9902 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9904 (target_can_download_tracepoint): Add argument.
9905 * target.c (update_current_target): Update.
9906 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * target.h (struct target_ops) <to_download_tracepoint>: Add
9912 (target_download_tracepoint): Add argument.
9913 * target.c (update_current_target): Update.
9914 * remote.c (remote_download_tracepoint): Add 'self' argument.
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9918 * target.h (struct target_ops) <to_trace_init>: Add argument.
9919 (target_trace_init): Add argument.
9920 * target.c (update_current_target): Update.
9921 * remote.c (remote_trace_init): Add 'self' argument.
9923 2014-02-19 Tom Tromey <tromey@redhat.com>
9925 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9926 * target.c (target_fileio_readlink): Add argument.
9927 * remote.c (remote_hostio_readlink): Add 'self' argument.
9928 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9930 2014-02-19 Tom Tromey <tromey@redhat.com>
9932 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9933 * target.c (target_fileio_unlink): Add argument.
9934 * remote.c (remote_hostio_unlink): Add 'self' argument.
9935 (remote_file_delete): Update.
9936 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9938 2014-02-19 Tom Tromey <tromey@redhat.com>
9940 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9941 * target.c (target_fileio_close): Add argument.
9942 * remote.c (remote_hostio_close): Add 'self' argument.
9943 (remote_hostio_close_cleanup): Update.
9944 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9946 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9950 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9951 * target.c (target_fileio_pread): Add argument.
9952 * remote.c (remote_hostio_pread): Add 'self' argument.
9953 (remote_bfd_iovec_pread, remote_file_get): Update.
9954 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9958 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9959 * target.c (target_fileio_pwrite): Add argument.
9960 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9961 (remote_file_put): Update.
9962 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9964 2014-02-19 Tom Tromey <tromey@redhat.com>
9966 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9967 * target.c (target_fileio_open): Add argument.
9968 * remote.c (remote_hostio_open): Add 'self' argument.
9969 (remote_bfd_iovec_open): Add 'self' argument.
9970 (remote_file_put): Add 'self' argument.
9971 (remote_file_get): Add 'self' argument.
9972 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9976 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9978 (target_can_run_breakpoint_commands): Add argument.
9979 * target.c (update_current_target): Update.
9980 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9982 (remote_insert_breakpoint): Add 'self' argument.
9983 (remote_insert_hw_breakpoint): Add 'self' argument.
9984 (remote_can_run_breakpoint_commands): Add 'self' argument.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target.h (struct target_ops)
9989 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9990 (target_supports_evaluation_of_breakpoint_conditions): Add
9992 * target.c (update_current_target): Update.
9993 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9995 (remote_insert_breakpoint): Add 'self' argument.
9996 (remote_insert_hw_breakpoint): Add 'self' argument.
9997 (remote_supports_cond_breakpoints): Add 'self' argument.
9999 2014-02-19 Tom Tromey <tromey@redhat.com>
10001 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10003 (target_supports_string_tracing): Add argument.
10004 * target.c (update_current_target): Update.
10005 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10007 2014-02-19 Tom Tromey <tromey@redhat.com>
10009 * target.h (struct target_ops)
10010 <to_supports_disable_randomization>: Add argument.
10011 * target.c (find_default_supports_disable_randomization): Add
10013 (target_supports_disable_randomization): Add argument.
10014 (find_default_supports_disable_randomization): Add 'self'
10016 * remote.c (extended_remote_supports_disable_randomization): Add
10018 (remote_supports_disable_randomization): Add 'self' argument.
10019 (extended_remote_create_inferior): Update.
10020 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * target.h (struct target_ops)
10026 <to_supports_enable_disable_tracepoint>: Add argument.
10027 (target_supports_enable_disable_tracepoint): Add argument.
10028 * target.c (update_current_target): Update.
10029 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10034 * target.h (struct target_ops) <to_supports_multi_process>: Add
10036 (target_supports_multi_process): Add argument.
10037 * target.c (update_current_target): Update.
10038 * remote.c (remote_supports_multi_process): Add 'self' argument.
10039 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10041 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target.h (struct target_ops) <to_execution_direction>: Add
10048 (target_execution_direction): Add argument.
10049 * target.c (default_execution_direction): Add 'self' argument.
10050 * record-full.c (record_full_execution_direction): Add 'self'
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10055 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10057 (target_can_execute_reverse): Add argument.
10058 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10059 * record-full.c (record_full_can_execute_reverse): Add 'self'
10061 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10067 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10069 (target_get_ada_task_ptid): Add argument.
10070 * target.c (update_current_target): Update.
10071 (default_get_ada_task_ptid): Add 'self' argument.
10072 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10073 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10074 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10076 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10078 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10080 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10082 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10083 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10089 (target_goto_bookmark): Add argument.
10090 * target.c (dummy_goto_bookmark): Add 'self' argument.
10091 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10096 (target_get_bookmark): Add argument.
10097 * target.c (dummy_get_bookmark): Add 'self' argument.
10098 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10100 2014-02-19 Tom Tromey <tromey@redhat.com>
10102 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10104 (target_make_corefile_notes): Add argument.
10105 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10106 * procfs.c (procfs_make_note_section): Add 'self' argument.
10107 (procfs_make_note_section): Add 'self' argument.
10108 (procfs_make_note_section): Add 'self' argument.
10109 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10111 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10112 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10113 * exec.c (exec_make_note_section): Add 'self' argument.
10114 (exec_make_note_section): Add 'self' argument.
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10118 * target.h (struct target_ops) <to_find_memory_regions>: Add
10120 (target_find_memory_regions): Add argument.
10121 * target.c (dummy_find_memory_regions): Add 'self' argument.
10122 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10123 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10124 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10125 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10126 * exec. (exec_do_find_memory_regions): New global.
10127 (exec_set_find_memory_regions): Rewrite.
10128 (exec_find_memory_regions): New function.
10129 (init_exec_ops): Use exec_find_memory_regions.
10131 2014-02-19 Tom Tromey <tromey@redhat.com>
10133 * target.h (struct target_ops) <to_supports_non_stop>: Add
10135 * target.c (find_default_supports_non_stop): Add argument.
10136 (target_supports_non_stop): Add argument.
10137 (find_default_supports_non_stop): Add 'self' argument.
10138 * remote.c (remote_supports_non_stop): Add 'self' argument.
10139 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10141 2014-02-19 Tom Tromey <tromey@redhat.com>
10143 * target.h (struct target_ops) <to_log_command>: Add argument.
10144 (target_log_command): Add argument.
10145 * serial.h (serial_log_command): Add 'self' argument.
10146 * serial.c (serial_log_command): Add 'self' argument.
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10150 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10151 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10153 (target_pid_to_exec_file): Add argument.
10154 * target.c (debug_to_pid_to_exec_file): Add argument.
10155 (update_current_target): Update.
10156 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10157 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10158 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10159 (linux_handle_extended_wait): Update.
10160 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10161 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10162 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10163 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10167 * target.h (struct target_ops) <to_rcmd>: Add argument.
10168 (target_rcmd): Add argument.
10169 * target.c (debug_to_rcmd): Add argument.
10170 (update_current_target, do_monitor_command): Update.
10171 * remote.c (remote_rcmd): Add 'self' argument.
10172 * monitor.c (monitor_rcmd): Add 'self' argument.
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10176 * windows-nat.c (windows_stop): Add 'self' argument.
10177 * target.h (struct target_ops) <to_stop>: Add argument.
10178 * target.c (target_stop): Add argument.
10179 (debug_to_stop): Add argument.
10180 (update_current_target): Update.
10181 * remote.c (remote_stop): Add 'self' argument.
10182 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10183 (gdbsim_cntrl_c): Update.
10184 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10185 * procfs.c (procfs_stop): Add 'self' argument.
10186 * nto-procfs.c (procfs_stop): Add 'self' argument.
10187 * monitor.c (monitor_stop): Add 'self' argument.
10188 (monitor_open): Update.
10189 * linux-nat.c (linux_nat_stop): Add argument.
10190 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10191 * gnu-nat.c (gnu_stop): Add 'self' argument.
10192 * darwin-nat.c (darwin_stop): Add 'self' argument.
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target.h (struct target_ops) <to_thread_name>: Add argument.
10197 * target.c (target_thread_name): Add argument.
10198 (update_current_target): Update.
10199 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10203 * target.h (struct target_ops) <to_extra_thread_info>: Add
10205 (target_extra_thread_info): Add argument.
10206 * target.c (update_current_target): Update.
10207 * remote.c (remote_threads_extra_info): Add 'self' argument.
10208 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10210 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10211 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10212 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10214 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10216 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10218 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10221 2014-02-19 Tom Tromey <tromey@redhat.com>
10223 * target.h (struct target_ops) <to_program_signals>: Add argument.
10224 * target.c (target_program_signals): Add argument.
10225 * remote.c (remote_program_signals): Add 'self' argument.
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10229 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10230 * target.c (target_pass_signals): Add argument.
10231 * remote.c (remote_pass_signals): Add 'self' argument.
10232 (remote_start_remote): Update.
10233 * procfs.c (procfs_pass_signals): Add 'self' argument.
10234 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10235 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10236 (linux_nat_create_inferior, linux_nat_attach): Update.
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10240 * windows-nat.c (windows_can_run): Add 'self' argument.
10241 * target.h (struct target_ops) <to_can_run>: Add argument.
10242 (target_can_run): Add argument.
10243 * target.c (debug_to_can_run): Add argument.
10244 (update_current_target): Update.
10245 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10246 * inf-child.c (inf_child_can_run): Add 'self' argument.
10247 * go32-nat.c (go32_can_run): Add 'self' argument.
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10251 * target.h (struct target_ops) <to_has_exited>: Add argument.
10252 (target_has_exited): Add argument.
10253 * target.c (debug_to_has_exited): Add argument.
10254 (update_current_target): Update.
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10258 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10260 (target_set_syscall_catchpoint): Add argument.
10261 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10263 * target.c (update_current_target): Update.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10269 (target_remove_exec_catchpoint): Add argument.
10270 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10271 (update_current_target): Update.
10272 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10275 2014-02-19 Tom Tromey <tromey@redhat.com>
10277 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10279 (target_insert_exec_catchpoint): Add argument.
10280 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10281 (update_current_target): Update.
10282 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10287 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10289 (target_remove_vfork_catchpoint): Add argument.
10290 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10291 (update_current_target): Update.
10292 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10299 (target_insert_vfork_catchpoint): Add argument.
10300 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10301 (update_current_target): Update.
10302 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10305 2014-02-19 Tom Tromey <tromey@redhat.com>
10307 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10309 (target_remove_fork_catchpoint): Add argument.
10310 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10311 (update_current_target): Update.
10312 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10315 2014-02-19 Tom Tromey <tromey@redhat.com>
10317 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10319 (target_insert_fork_catchpoint): Add argument.
10320 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10321 (update_current_target): Update.
10322 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10327 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10329 (target_post_startup_inferior): Add argument.
10330 * target.c (debug_to_post_startup_inferior): Add argument.
10331 (update_current_target): Update.
10332 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10334 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10336 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10338 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10340 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10342 (super_post_startup_inferior): Likewise.
10343 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10345 (super_post_startup_inferior): Likewise.
10346 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10347 Add 'self' argument.
10348 (super_post_startup_inferior): Likewise.
10350 2014-02-19 Tom Tromey <tromey@redhat.com>
10352 * target.h (struct target_ops) <to_load>: Add argument.
10353 * target.c (target_load): Add argument.
10354 (debug_to_load): Add argument.
10355 (update_current_target): Update.
10356 * remote.c (remote_load): Add 'self' argument.
10357 * remote-sim.c (gdbsim_load): Add 'self' argument.
10358 * remote-mips.c (mips_load): Add 'self' argument.
10359 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10360 * monitor.c (monitor_load): Add 'self' argument.
10361 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10365 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10366 (target_terminal_info): Add argument.
10367 * target.c (debug_to_terminal_info): Add argument.
10368 (default_terminal_info): Likewise.
10369 * inflow.c (child_terminal_info): Add 'self' argument.
10370 * inferior.h (child_terminal_info): Add 'self' argument.
10371 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10373 2014-02-19 Tom Tromey <tromey@redhat.com>
10375 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10377 (target_terminal_save_ours): Add argument.
10378 * target.c (debug_to_terminal_save_ours): Add argument.
10379 (update_current_target): Update.
10380 * inflow.c (terminal_save_ours): Add 'self' argument.
10381 * inferior.h (terminal_save_ours): Add 'self' argument.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10386 (target_terminal_ours): Add argument.
10387 * target.c (debug_to_terminal_ours): Add argument.
10388 (update_current_target): Update.
10389 * remote.c (remote_terminal_ours): Add 'self' argument.
10390 (remote_close): Update.
10391 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10392 * inflow.c (terminal_ours): Add 'self' argument.
10393 * inferior.h (terminal_ours): Add 'self' argument.
10394 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10396 2014-02-19 Pedro Alves <palves@redhat.com>
10397 Tom Tromey <tromey@redhat.com>
10399 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10401 (target_terminal_ours_for_output): Add argument.
10402 * target.c (debug_to_terminal_ours_for_output): Add argument.
10403 (update_current_target): Update.
10404 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10405 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10406 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10408 2014-02-19 Tom Tromey <tromey@redhat.com>
10410 * target.h (struct target_ops) <to_terminal_inferior>: Add
10412 * target.c (target_terminal_inferior): Add argument.
10413 (update_current_target): Update.
10414 * remote.c (remote_terminal_inferior): Add 'self' argument.
10415 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10416 * inflow.c (terminal_inferior): Add 'self' argument.
10417 * inferior.h (terminal_inferior): Add 'self' argument.
10418 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10419 (go32_terminal_inferior): Add 'self' argument.
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10423 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10424 (target_terminal_init): Add argument.
10425 * target.c (debug_to_terminal_init): Add argument.
10426 (update_current_target): Update.
10427 * inflow.c (terminal_init_inferior): Add 'self' argument.
10428 * inferior.h (terminal_init_inferior): Add 'self' argument.
10429 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10430 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10432 2014-02-19 Tom Tromey <tromey@redhat.com>
10434 * target.h (struct target_ops)
10435 <to_can_accel_watchpoint_condition>: Add argument.
10436 (target_can_accel_watchpoint_condition): Add argument.
10437 * target.c (debug_to_can_accel_watchpoint_condition): Add
10439 (update_current_target): Update.
10440 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10445 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10447 (target_region_ok_for_hw_watchpoint): Add argument.
10448 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10449 (default_region_ok_for_hw_watchpoint): Add argument.
10450 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10451 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10453 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10455 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10457 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10459 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10461 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10463 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10464 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10466 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10467 Add 'self' argument.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10473 (target_insert_watchpoint): Add argument.
10474 * target.c (debug_to_insert_watchpoint): Add argument.
10475 (update_current_target): Update.
10476 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10477 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10478 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10479 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10480 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10481 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10483 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10484 (procfs_insert_hw_watchpoint): Add 'self' argument.
10485 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10487 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10489 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10491 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10492 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10494 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10499 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10501 (target_remove_watchpoint): Add argument.
10502 * target.c (debug_to_remove_watchpoint): Add argument.
10503 (update_current_target): Update.
10504 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10505 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10506 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10507 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10508 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10509 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10511 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10512 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10514 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10516 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10518 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10519 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10521 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10528 (target_remove_hw_breakpoint): Add argument.
10529 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10530 (update_current_target): Update.
10531 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10532 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10534 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10535 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10537 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10540 2014-02-19 Tom Tromey <tromey@redhat.com>
10542 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10544 (target_insert_hw_breakpoint): Add argument.
10545 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10546 (update_current_target): Update.
10547 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10548 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10550 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10551 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10552 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10554 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10557 2014-02-19 Tom Tromey <tromey@redhat.com>
10559 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10561 (target_can_use_hardware_watchpoint): Add argument.
10562 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10563 (update_current_target): Update.
10564 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10566 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10568 * remote.c (remote_check_watch_resources): Add 'self' argument.
10569 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10570 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10572 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10573 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10575 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10577 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10579 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10581 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10583 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10585 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10586 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10588 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10591 2014-02-19 Tom Tromey <tromey@redhat.com>
10593 * target.h (struct target_ops) <to_post_attach>: Add argument.
10594 (target_post_attach): Add argument.
10595 * target.c (debug_to_post_attach): Add argument.
10596 (update_current_target): Update.
10597 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10598 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10599 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10600 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10601 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10603 2014-02-19 Tom Tromey <tromey@redhat.com>
10605 * windows-nat.c (windows_close): Add 'self' argument.
10606 * tracepoint.c (tfile_close): Add 'self' argument.
10607 * target.h (struct target_ops) <to_close>: Add argument.
10608 * target.c (target_close): Add argument.
10609 (update_current_target): Update.
10610 * remote.c (remote_close): Add 'self' argument.
10611 * remote-sim.c (gdbsim_close): Add 'self' argument.
10612 * remote-mips.c (mips_close): Add 'self' argument.
10613 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10614 * record-full.c (record_full_close): Add 'self' argument.
10615 * record-btrace.c (record_btrace_close): Add 'self' argument.
10616 * monitor.h (monitor_close): Add 'self' argument.
10617 * monitor.c (monitor_close): Add 'self' argument.
10618 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10619 * linux-nat.c (linux_nat_close): Add argument.
10620 * go32-nat.c (go32_close): Add 'self' argument.
10621 * exec.c (exec_close_1): Add 'self' argument.
10622 * ctf.c (ctf_close): Add 'self' argument.
10623 * corelow.c (core_close): Add 'self' argument.
10624 (core_close_cleanup): Update.
10625 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10626 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10628 2014-02-19 Tom Tromey <tromey@redhat.com>
10630 * remote.c (remote_load): New function.
10631 (init_remote_ops): Use it.
10633 2014-02-19 Tom Tromey <tromey@redhat.com>
10635 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10637 * common/linux-btrace.h (linux_supports_btrace): Update.
10638 * remote.c (remote_supports_btrace): Add "self" argument.
10639 * target-delegates.c: Rebuild.
10640 * target.c (target_supports_btrace): Remove.
10641 * target.h (struct target_ops) <to_supports_btrace>: Add
10642 target_ops argument.
10643 (target_supports_btrace): New define.
10645 2014-02-19 Tom Tromey <tromey@redhat.com>
10647 * record-full.c (record_full_beneath_to_resume_ops)
10648 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10649 (record_full_beneath_to_wait)
10650 (record_full_beneath_to_store_registers_ops)
10651 (record_full_beneath_to_store_registers)
10652 (record_full_beneath_to_xfer_partial_ops)
10653 (record_full_beneath_to_xfer_partial)
10654 (record_full_beneath_to_insert_breakpoint_ops)
10655 (record_full_beneath_to_insert_breakpoint)
10656 (record_full_beneath_to_remove_breakpoint_ops)
10657 (record_full_beneath_to_remove_breakpoint)
10658 (record_full_beneath_to_stopped_by_watchpoint)
10659 (record_full_beneath_to_stopped_data_address)
10660 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10661 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10662 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10663 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10664 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10665 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10666 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10667 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10668 (record_full_resume, record_full_wait_1)
10669 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10670 (record_full_store_registers, record_full_xfer_partial)
10671 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10672 (record_full_async, record_full_core_xfer_partial): Use target
10674 * target-delegates.c: Rebuild.
10675 * target.c (current_xfer_partial): Remove.
10676 (update_current_target): Do not INHERIT or de_fault
10677 to_insert_breakpoint, to_remove_breakpoint,
10678 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10679 to_is_async_p, to_async. Do not set to_xfer_partial field.
10680 (default_xfer_partial): Simplify.
10681 (current_xfer_partial): Remove.
10682 (target_wait, target_resume): Simplify.
10683 (find_default_can_async_p, find_default_is_async_p): Update.
10684 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10685 to_xfer_partial, to_stopped_by_watchpoint,
10686 to_stopped_data_address.
10687 (target_store_registers): Simplify.
10688 (forward_target_remove_breakpoint)
10689 (forward_target_insert_breakpoint): Remove.
10690 (target_remove_breakpoint, target_insert_breakpoint)
10691 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10692 * target.h (struct target_ops) <to_resume, to_wait,
10693 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10694 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10695 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10697 (forward_target_remove_breakpoint)
10698 (forward_target_insert_breakpoint): Remove.
10699 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10701 (record_btrace_insert_breakpoint): Delegate directly.
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * target-delegates.c: New file.
10707 * target.c: Include target-delegates.c.
10708 (init_dummy_target): Call install_dummy_methods.
10709 (complete_target_initialization): Call install_delegators.
10710 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10711 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10712 * make-target-delegates: New file.
10714 2014-02-19 Tom Tromey <tromey@redhat.com>
10716 * record.c (find_record_target): Use find_target_at.
10717 * target.c (find_target_at): New function.
10718 * target.h (find_target_at): Declare.
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10722 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10723 Add 'ops' argument.
10724 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10726 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10727 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10729 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10731 * linux-nat.c (save_sigtrap): Update.
10732 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10733 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10734 (linux_nat_close): Update.
10735 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10737 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10739 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10740 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10741 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10742 (tmp_to_async): Add 'ops' argument.
10743 (record_full_stopped_by_watchpoint, record_full_async)
10744 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10746 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10747 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10748 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10749 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10750 (remote_is_async_p, remote_async): Add 'ops' argument.
10751 (remote_stopped_data_address): Update.
10752 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10753 * target.c (update_current_target)
10754 (find_default_can_async_p, find_default_is_async_p): Update.
10755 (init_dummy_target): Update.
10756 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10757 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10758 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10759 (target_can_async_p, target_is_async_p, target_async)
10760 (target_stopped_by_watchpoint): Update.
10762 2014-02-19 Yao Qi <yao@codesourcery.com>
10765 * gdbarch.sh: Remove startup_gdbarch.
10766 * gdbarch.c: Regenerated.
10767 * gdbarch.h: Likewise.
10769 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10771 * rl78-tdep.c (rl78_g10_register_name): New function.
10772 (rl78_return_value): Add g10 support.
10773 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10776 2014-02-17 Doug Evans <xdje42@gmail.com>
10778 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10779 (SUBDIR_GUILE_SRCS): Ditto.
10780 (scm-gsmob.o): Ditto.
10782 2014-02-17 Yao Qi <yao@codesourcery.com>
10784 * gnu-nat.c (ILL_RPC): Declare defined function.
10786 2014-02-17 Yao Qi <yao@codesourcery.com>
10788 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10789 mach_msg_type_number_t.
10790 (gnu_write_inferior): Likewise.
10792 2014-02-17 Yao Qi <yao@codesourcery.com>
10794 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10796 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10797 (inf_validate_procs, inf_signal): Likewise.
10798 (S_exception_raise_request): Likewise.
10799 (do_mach_notify_dead_name): Likewise.
10800 (steal_exc_port): Likewise.
10801 (gnu_read_inferior): Change 'copy_count''s type to
10802 mach_msg_type_number_t.
10803 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10806 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10808 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10809 flag. Adjust all users; in particular...
10810 (gnu_wait): ..., don't decrement its value in here...
10811 (gnu_create_inferior): ..., and instead set the flag in here,
10812 around the startup_inferior call, and call that one with
10813 START_INFERIOR_TRAPS_EXPECTED.
10815 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10816 (ILL_RPC): ... new macro.
10817 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10818 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10819 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10820 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10821 functions with ILL_RPC macro.
10822 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10823 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10824 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10825 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10826 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10827 (S_proc_getlogin_reply, S_proc_getsid_reply)
10828 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10829 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10830 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10831 (S_proc_getnports_reply, S_proc_is_important_reply)
10832 (S_proc_get_code_reply): New stub functions, generated with
10835 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10836 collected the type check structures.
10838 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10840 2014-02-14 Doug Evans <dje@google.com>
10842 * target.c (target_write_partial): Fix result type.
10844 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10846 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10847 the proper offsets to access fpregset_t.
10849 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10851 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10852 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10853 * h8300-tdep.c (setmachinelist): Remove global.
10854 * hppa-tdep.c (hppa_sigtramp): Remove global.
10855 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10856 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10857 * ravenscar-thread.c (update_target_observer): Remove global.
10858 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10860 2014-02-12 Tom Tromey <tromey@redhat.com>
10862 * common/rsp-low.c: Update comments.
10863 * common/rsp-low.h: Update comments.
10865 2014-02-12 Tom Tromey <tromey@redhat.com>
10867 * common/rsp-low.c (convert_ascii_to_int): Remove.
10868 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10870 2014-02-12 Tom Tromey <tromey@redhat.com>
10872 * common/rsp-low.h (unhexify): Don't declare.
10873 * common/rsp-low.c (unhexify): Remove.
10875 2014-02-12 Tom Tromey <tromey@redhat.com>
10877 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10878 * common/rsp-low.c (convert_int_to_ascii): Remove.
10880 2014-02-12 Tom Tromey <tromey@redhat.com>
10882 * common/rsp-low.h (hexify): Don't declare.
10883 * common/rsp-low.c (hexify): Remove.
10885 2014-02-12 Tom Tromey <tromey@redhat.com>
10887 * common/rsp-low.c (hexify): Never take strlen of argument.
10889 2014-02-12 Tom Tromey <tromey@redhat.com>
10891 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10892 * remote.c (extended_remote_run, remote_rcmd)
10893 (remote_download_trace_state_variable, remote_save_trace_data)
10894 (remote_set_trace_notes): Update.
10895 * tracepoint.c (encode_source_string, tfile_write_status)
10896 (tfile_write_uploaded_tsv): Update.
10898 2014-02-12 Tom Tromey <tromey@redhat.com>
10900 * tracepoint.c: Include rsp-low.h.
10901 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10902 * remote.c: Include rsp-low.h.
10903 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10904 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10905 (remote_unescape_input): Move to common/rsp-low.c.
10906 * common/rsp-low.h: New file.
10907 * common/rsp-low.c: New file.
10908 * Makefile.in (SFILES): Add common/rsp-low.c.
10909 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10910 (COMMON_OBS): Add rsp-low.o.
10911 (rsp-low.o): New target.
10913 2014-02-12 Tom Tromey <tromey@redhat.com>
10915 * utils.h: Include print-utils.h.
10916 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10917 (int_string, core_addr_to_string, core_addr_to_string_nz)
10918 (hex_string, hex_string_custom): Don't declare.
10919 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10920 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10921 (hex_string_custom, int_string, core_addr_to_string)
10922 (core_addr_to_string_nz, host_address_to_string): Move to
10923 common/print-utils.c.
10924 * common/print-utils.h: New file.
10925 * common/print-utils.c: New file
10926 * Makefile.in (SFILES): Add common/print-utils.c.
10927 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10928 (COMMON_OBS): Add print-utils.o.
10929 (print-utils.o): New target.
10931 2014-02-12 Tom Tromey <tromey@redhat.com>
10933 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10935 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10937 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10939 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10941 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10942 if a PT_IO ptrace request returns sucessfully but indicates that 0
10943 bytes were transferred.
10945 2014-02-12 Pedro Alves <palves@redhat.com>
10946 Kevin Buettner <kevinb@redhat.com>
10948 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10949 TYPE_INSTANCE_FLAG_CODE_SPACE.
10951 2014-02-12 Pedro Alves <palves@redhat.com>
10953 * h8300-tdep.c (pseudo_from_raw_register)
10954 (raw_from_pseudo_register): New functions.
10955 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10958 2014-02-12 Pedro Alves <palves@redhat.com>
10960 * h8300-tdep.c (h8300_register_sim_regno): New function.
10961 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10962 gdbarch_register_sim_regno hook.
10964 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10966 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10968 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10970 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10972 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10974 * obsd-tdep.h (obsd_init_abi): New prototype.
10975 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10976 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10977 (obsd_init_abi): New functions.
10978 * i386obsd-tdep.c: Include "obsd-tdep.h".
10979 (i386obsd_init_abi): Call obsd_init_abi.
10980 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10981 (amd64obsd_init_abi): Call obsd_init_abi.
10982 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10983 obsd-tdep.c to gdb_target_obs.
10985 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10987 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10988 double float arguments to 16-byte in the argument slots.
10990 2014-02-11 Doug Evans <xdje42@gmail.com>
10992 * configure.ac: Don't crash if pkg-config is not found and guile
10993 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10995 * configure: Regenerate.
10997 2014-02-11 Yao Qi <yao@codesourcery.com>
10999 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11000 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11001 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11002 * gnu-nat.c (gnu_xfer_memory): Likewise.
11003 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11004 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11005 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11006 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11008 2014-02-11 Yao Qi <yao@codesourcery.com>
11010 * target.h (enum target_xfer_error): Rename to ...
11011 (enum target_xfer_status): ... it. New. All users updated.
11012 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11014 (TARGET_XFER_STATUS_ERROR_P): New macro.
11015 (target_xfer_error_to_string): Remove declaration.
11016 (target_xfer_status_to_string): Declare.
11017 (target_xfer_partial_ftype): Adjust it.
11018 (struct target_ops) <to_xfer_partial>: Return
11019 target_xfer_status. Add argument xfered_len. Update
11021 * target.c (target_xfer_error_to_string): Rename to ...
11022 (target_xfer_status_to_string): ... it. New. All callers
11024 (target_read_live_memory): Likewise. Call target_xfer_partial
11025 instead of target_read.
11026 (memory_xfer_live_readonly_partial): Return
11027 target_xfer_status. Add argument xfered_len.
11028 (raw_memory_xfer_partial): Likewise.
11029 (memory_xfer_partial_1): Likewise.
11030 (memory_xfer_partial): Likewise.
11031 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11032 properly. Update debug message.
11033 (default_xfer_partial, current_xfer_partial): Likewise.
11034 (target_write_partial): Likewise.
11035 (target_read_partial): Likewise. All callers updated.
11036 (read_whatever_is_readable): Likewise.
11037 (target_write_with_progress): Likewise.
11038 (target_read_alloc_1): Likewise.
11040 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11041 * auxv.c (procfs_xfer_auxv): Likewise.
11042 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11043 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11044 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11045 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11046 * corefile.c (read_memory): Adjust.
11047 * corelow.c (core_xfer_partial): Likewise.
11048 * ctf.c (ctf_xfer_partial): Likewise.
11049 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11051 (darwin_xfer_partial): Likewise.
11052 * exec.c (section_table_xfer_memory_partial): Likewise. All
11054 (exec_xfer_partial): Likewise.
11055 * exec.h (section_table_xfer_memory_partial): Update
11057 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11059 (gnu_xfer_partial): Likewise.
11060 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11061 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11062 (ia64_hpux_xfer_solib_got): Likewise.
11063 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11064 type of 'partial_len' to ULONGEST.
11065 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11066 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11067 (linux_nat_xfer_partial): Likewise.
11068 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11069 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11070 * monitor.c (monitor_xfer_memory): Likewise.
11071 (monitor_xfer_partial): Likewise.
11072 * procfs.c (procfs_xfer_partial): Likewise.
11073 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11074 * record-full.c (record_full_xfer_partial): Likewise.
11075 (record_full_core_xfer_partial): Likewise.
11076 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11077 (gdbsim_xfer_partial): Likewise.
11078 * remote.c (remote_write_bytes_aux): Likewise. All callers
11080 (remote_write_bytes, remote_read_bytes): Likewise. All
11082 (remote_flash_erase): Likewise. All callers updated.
11083 (remote_write_qxfer): Likewise. All callers updated.
11084 (remote_read_qxfer): Likewise. All callers updated.
11085 (remote_xfer_partial): Likewise.
11086 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11087 (rs6000_xfer_shared_libraries): Likewise.
11088 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11089 (sol_thread_xfer_partial): Likewise.
11090 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11091 (sparc_xfer_partial): Likewise.
11092 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11094 (spu_xfer_partial): Likewise.
11095 * spu-multiarch.c (spu_xfer_partial): Likewise.
11096 * tracepoint.c (tfile_xfer_partial): Likewise.
11097 * windows-nat.c (windows_xfer_memory): Likewise.
11098 (windows_xfer_shared_libraries): Likewise.
11099 (windows_xfer_partial): Likewise.
11100 * valprint.c: Replace 'target_xfer_error' with
11101 'target_xfer_status' in comments.
11103 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11105 Checked in by Joel Brobecker <brobecker@adacore.com>.
11106 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11108 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11110 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11111 function parameters.
11113 2014-02-10 Will Newton <will.newton@linaro.org>
11115 * elfread.c (elf_rel_plt_read): Look for a .got section if
11116 looking up .got.plt fails.
11117 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11118 on address passed to elf_gnu_ifunc_record_cache.
11119 (elf_gnu_ifunc_resolve_addr): Likewise.
11120 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11122 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11124 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11125 (X_RETTURN): New macro.
11126 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11128 * sparc64-tdep.c (sparc64_init_abi): Hook
11129 sparc_in_function_epilogue_p.
11131 2014-02-10 Gary Benson <gbenson@redhat.com>
11133 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11134 Rename name_matcher to symbol_matcher.
11136 2014-02-10 Gary Benson <gbenson@redhat.com>
11138 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11139 Use expand_symtabs_file_matcher_ftype and
11140 expand_symtabs_symbol_matcher_ftype.
11142 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11144 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11145 (struct ada_symbol_cache): New.
11146 (ada_free_symbol_cache): Forward declare.
11147 (struct ada_pspace_data): New.
11148 (ada_pspace_data_handle): New static global.
11149 (get_ada_pspace_data, ada_pspace_data_cleanup)
11150 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11151 (cache_space, cache): Delete, now folded inside struct
11153 (ada_get_symbol_cache): New function.
11154 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11156 (_initialize_ada_language): Remove initialization of cache_space.
11157 Move call to observer_attach_inferior_exit up, grouping it
11158 with the other observer registrations inside this function.
11159 Rename command to be more general. Add call to
11160 register_program_space_data_with_cleanup.
11162 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11164 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11165 ada_new_objfile_observer.
11166 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11167 (_initialize_tasks): Update uses of ada_new_objfile_observer
11168 and ada_tasks_normal_stop_observer.
11170 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11172 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11173 returned by the 'Length attribute to integer.
11175 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11177 * ada-lang.c (_initialize_ada_language): Initialize
11178 cache_space obstack.
11180 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11182 * ada-lang.c (HASH_SIZE): New macro.
11183 (struct cache_entry): New type.
11184 (cache_space, cache): New static globals.
11185 (ada_clear_symbol_cache, find_entry): New functions.
11186 (lookup_cached_symbol, cache_symbol): Implement.
11187 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11188 (_initialize_ada_language): Attach ada_new_objfile_observer
11189 and ada_free_objfile_observer.
11191 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11193 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11194 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11195 struct block * parameter.
11196 (ada_lookup_symbol_list_worker): Constify local variable "block".
11197 Remove cast which is no longer necessary.
11199 2014-02-10 Doug Evans <xdje42@gmail.com>
11201 Add Guile as an extension language.
11202 * NEWS: Mention Guile scripting.
11203 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11204 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11205 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11206 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11207 (CLIBS): Add GUILE_LIBS.
11208 (install-guile): New rule.
11209 (guile.o): New rule.
11210 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11211 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11212 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11213 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11214 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11215 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11216 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11217 * configure.ac: New option --with-guile.
11218 * configure: Regenerate.
11219 * config.in: Regenerate.
11220 * auto-load.c: Remove #include "python/python.h". Add #include
11221 "gdb/section-scripts.h".
11222 (source_section_scripts): Handle Guile scripts.
11223 (_initialize_auto_load): Add name of Guile objfile script to
11224 scripts-directory help text.
11225 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11226 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11227 (struct breakpoint): New member scm_bp_object.
11228 * defs.h (enum command_control_type): New value guile_control.
11229 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11231 (show_user): Update comment.
11232 (_initialize_cli_cmds): Update help text for "show user". Update help
11233 text for max-user-call-depth.
11234 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11236 (multi_line_command_p): Add guile_control.
11237 (print_command_lines): Handle guile_control.
11238 (execute_control_command, recurse_read_control_structure): Ditto.
11239 (process_next_line): Recognize "guile" commands.
11240 * disasm.c (gdb_disassemble_info): Make non-static.
11241 * disasm.h: #include "dis-asm.h".
11242 (struct gdbarch): Add forward decl.
11243 (gdb_disassemble_info): Declare.
11244 * extension.c: #include "guile/guile.h".
11245 (extension_languages): Add guile.
11246 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11247 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11248 * gdbtypes.c (get_unsigned_type_max): New function.
11249 (get_signed_type_minmax): New function.
11250 * gdbtypes.h (get_unsigned_type_max): Declare.
11251 (get_signed_type_minmax): Declare.
11252 * guile/README: New file.
11253 * guile/guile-internal.h: New file.
11254 * guile/guile.c: New file.
11255 * guile/guile.h: New file.
11256 * guile/scm-arch.c: New file.
11257 * guile/scm-auto-load.c: New file.
11258 * guile/scm-block.c: New file.
11259 * guile/scm-breakpoint.c: New file.
11260 * guile/scm-disasm.c: New file.
11261 * guile/scm-exception.c: New file.
11262 * guile/scm-frame.c: New file.
11263 * guile/scm-gsmob.c: New file.
11264 * guile/scm-iterator.c: New file.
11265 * guile/scm-lazy-string.c: New file.
11266 * guile/scm-math.c: New file.
11267 * guile/scm-objfile.c: New file.
11268 * guile/scm-ports.c: New file.
11269 * guile/scm-pretty-print.c: New file.
11270 * guile/scm-safe-call.c: New file.
11271 * guile/scm-string.c: New file.
11272 * guile/scm-symbol.c: New file.
11273 * guile/scm-symtab.c: New file.
11274 * guile/scm-type.c: New file.
11275 * guile/scm-utils.c: New file.
11276 * guile/scm-value.c: New file.
11277 * guile/lib/gdb.scm: New file.
11278 * guile/lib/gdb/boot.scm: New file.
11279 * guile/lib/gdb/experimental.scm: New file.
11280 * guile/lib/gdb/init.scm: New file.
11281 * guile/lib/gdb/iterator.scm: New file.
11282 * guile/lib/gdb/printing.scm: New file.
11283 * guile/lib/gdb/types.scm: New file.
11284 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11285 (VPATH): Add $(GUILE_SRCDIR).
11286 (GUILE_DIR): New variable.
11287 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11288 (all): Add stamp-guile dependency.
11289 (stamp-guile): New rule.
11290 (clean-guile, install-guile, uninstall-guile): New rules.
11291 (install-only): Add install-guile dependency.
11292 (uninstall): Add uninstall-guile dependency.
11293 (clean): Add clean-guile dependency.
11295 2014-02-09 Doug Evans <xdje42@gmail.com>
11297 Revert this patch (which I approved, mea culpa).
11299 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11301 * Makefile.in (all-lib): Remove.
11302 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11304 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11306 Fix Python stack corruption.
11307 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11310 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11312 * Makefile.in (all-lib): Remove.
11313 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11315 2014-02-07 Doug Evans <dje@google.com>
11317 * extension-priv.h (extension_language_script_ops): Add comment.
11318 (extension_language_ops): Add comment.
11319 (active_ext_lang_state): Fix typo in comment.
11321 2014-02-07 Pedro Alves <palves@redhat.com>
11323 PR breakpoints/16292
11324 * infrun.c (handle_signal_stop) <signal arrives while stepping
11325 over a breakpoint>: Switch back to the stepping thread.
11327 2014-02-07 Yao Qi <yao@codesourcery.com>
11329 * target.c (target_xfer_partial): Return zero if LEN is zero.
11331 2014-02-07 Yao Qi <yao@codesourcery.com>
11333 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11334 (ld_so_xfer_auxv): Likewise.
11335 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11336 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11337 * corelow.c (core_xfer_partial): Likewise.
11338 * ctf.c (ctf_xfer_partial): Likewise.
11339 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11340 (darwin_xfer_partial): Likewise.
11341 * exec.c (exec_xfer_partial): Likewise.
11342 * gnu-nat.c (gnu_xfer_partial): Likewise.
11343 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11344 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11345 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11346 * linux-nat.c (linux_xfer_siginfo): Likewise.
11347 (linux_proc_xfer_spu): Likewise.
11348 * procfs.c (procfs_xfer_partial): Likewise.
11349 * record-full.c (record_full_xfer_partial): Likewise.
11350 (record_full_core_xfer_partial): Likewise.
11351 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11352 * remote.c (remote_write_qxfer): Likewise.
11353 (remote_write_qxfer, remote_read_qxfer): Likewise.
11354 (remote_xfer_partial): Likewise.
11355 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11356 (rs6000_xfer_shared_libraries): Likewise.
11357 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11358 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11359 (spu_xfer_partial): Likewise.
11360 * target.c (memory_xfer_partial_1): Likewise.
11361 * tracepoint.c (tfile_xfer_partial): Likewise.
11362 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11363 (windows_xfer_partial): Likewise.
11365 2014-02-07 Yao Qi <yao@codesourcery.com>
11367 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11369 (core_xfer_shared_libraries_aix): Likewise.
11370 * gdbarch.c, gdbarch.h: Regenerated.
11371 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11372 ULONGEST. Change 'len_avail' type to ULONGEST.
11373 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11374 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11376 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11378 2014-02-07 Yao Qi <yao@codesourcery.com>
11380 * corefile.c (memory_error): Get 'exception' from ERR and pass
11381 'exception' to throw_error.
11383 2014-02-06 Doug Evans <xdje42@gmail.com>
11385 * configure.ac (libpython checking): Remove all but python.o from
11386 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11387 * configure: Regenerate.
11389 * Makefile.in (SFILES): Add extension.c.
11390 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11391 (COMMON_OBS): Add extension.o.
11392 * extension.h: New file.
11393 * extension-priv.h: New file.
11394 * extension.c: New file.
11396 * python/python-internal.h: #include "extension.h".
11397 (gdbpy_auto_load_enabled): Declare.
11398 (gdbpy_apply_val_pretty_printer): Declare.
11399 (gdbpy_apply_frame_filter): Declare.
11400 (gdbpy_preserve_values): Declare.
11401 (gdbpy_breakpoint_cond_says_stop): Declare.
11402 (gdbpy_breakpoint_has_cond): Declare.
11403 (void source_python_script_for_objfile): Delete.
11404 * python/python.c: #include "extension-priv.h".
11405 Delete inclusion of "observer.h".
11406 (extension_language_python): Moved here and renamed from
11407 script_language_python in py-auto-load.c.
11408 Redefined to be of type extension_language_defn.
11409 (python_extension_script_ops): New global.
11410 (python_extension_ops): New global.
11411 (struct python_env): New member previous_active.
11412 (restore_python_env): Call restore_active_ext_lang.
11413 (ensure_python_env): Call set_active_ext_lang.
11414 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11416 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11418 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11420 (gdbpy_eval_from_control_command): Renamed from
11421 eval_python_from_control_command, made static. New arg extlang.
11422 (gdbpy_source_script) Renamed from source_python_script, made static.
11424 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11425 result to int. New arg extlang.
11426 (gdbpy_source_objfile_script): Renamed from
11427 source_python_script_for_objfile, made static. New arg extlang.
11428 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11429 static. New args extlang, extlang_printers. Change result type to
11431 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11432 static. New arg extlang. Rename arg printers to extlang_printers
11433 and change type to ext_lang_type_printers *.
11434 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11435 static. Replace argument arg with extlang, extlang_printers.
11436 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11437 (!HAVE_PYTHON, source_python_script): Delete.
11438 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11439 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11440 (!HAVE_PYTHON, start_type_printers): Delete.
11441 (!HAVE_PYTHON, apply_type_printers): Delete.
11442 (!HAVE_PYTHON, free_type_printers): Delete.
11443 (_initialize_python): Delete call to observer_attach_before_prompt.
11444 (finalize_python): Set/restore active extension language.
11445 (gdbpy_finish_initialization) Renamed from
11446 finish_python_initialization, made static. New arg extlang.
11447 (gdbpy_initialized): New function.
11448 * python/python.h: #include "extension.h". Delete #include
11449 "value.h", "mi/mi-cmds.h".
11450 (extension_language_python): Declare.
11451 (GDBPY_AUTO_FILE_NAME): Delete.
11452 (enum py_bt_status): Moved to extension.h and renamed to
11453 ext_lang_bt_status.
11454 (enum frame_filter_flags): Moved to extension.h.
11455 (enum py_frame_args): Moved to extension.h and renamed to
11456 ext_lang_frame_args.
11457 (finish_python_initialization): Delete.
11458 (eval_python_from_control_command): Delete.
11459 (source_python_script): Delete.
11460 (apply_val_pretty_printer): Delete.
11461 (apply_frame_filter): Delete.
11462 (preserve_python_values): Delete.
11463 (gdbpy_script_language_defn): Delete.
11464 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11465 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11467 * auto-load.c: #include "extension.h".
11468 (GDB_AUTO_FILE_NAME): Delete.
11469 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11470 (script_language_gdb): Delete, moved to extension.c and renamed to
11471 extension_language_gdb.
11472 (source_gdb_script_for_objfile): Delete.
11473 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11474 (loaded_script): Change type of language member to
11475 struct extension_language_defn *.
11476 (init_loaded_scripts_info): Initialize
11477 unsupported_script_warning_printed.
11478 (maybe_add_script): Make static. Change type of language arg to
11479 struct extension_language_defn *.
11480 (clear_section_scripts): Reset unsupported_script_warning_printed.
11481 (auto_load_objfile_script_1): Rewrite to use extension language API.
11482 (auto_load_objfile_script): Make public. Remove support-compiled-in
11483 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11484 (source_section_scripts): Rewrite to use extension language API.
11485 (load_auto_scripts_for_objfile): Rewrite to use
11486 auto_load_scripts_for_objfile.
11487 (collect_matching_scripts_data): Change type of language member to
11488 struct extension_language_defn *.
11489 (auto_load_info_scripts): Change type of language arg to
11490 struct extension_language_defn *.
11491 (unsupported_script_warning_print): New function.
11492 (script_not_found_warning_print): Make static.
11493 (_initialize_auto_load): Rewrite construction of scripts-directory
11495 * auto-load.h (struct objfile): Add forward decl.
11496 (struct script_language): Delete.
11497 (struct auto_load_pspace_info): Add forward decl.
11498 (struct extension_language_defn): Add forward decl.
11499 (maybe_add_script): Delete.
11500 (auto_load_objfile_script): Declare.
11501 (script_not_found_warning_print): Delete.
11502 (auto_load_info_scripts): Update prototype.
11503 (auto_load_gdb_scripts_enabled): Declare.
11504 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11505 auto_load_python_scripts_enabled and made public.
11506 (script_language_python): Delete, moved to python.c.
11507 (gdbpy_script_language_defn): Delete.
11508 (info_auto_load_python_scripts): Update to use
11509 extension_language_python.
11511 * breakpoint.c (condition_command): Replace call to
11512 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11513 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11514 with call to breakpoint_ext_lang_cond_says_stop.
11515 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11516 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11517 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11518 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11520 (local_setattro): Print name of extension language with existing
11523 * valprint.c (val_print, value_print): Update to call
11524 apply_ext_lang_val_pretty_printer.
11525 * cp-valprint.c (cp_print_value): Update call to
11526 apply_ext_lang_val_pretty_printer.
11527 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11528 (gdbpy_apply_val_pretty_printer): Renamed from
11529 apply_val_pretty_printer. New arg extlang.
11530 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11532 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11533 extension language API.
11534 * cli/cli-script.c (execute_control_command): Update to call
11535 eval_ext_lang_from_control_command.
11537 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11538 enum ext_lang_bt_status values. Update call to
11539 apply_ext_lang_frame_filter.
11540 (mi_cmd_stack_list_locals): Ditto.
11541 (mi_cmd_stack_list_args): Ditto.
11542 (mi_cmd_stack_list_variables): Ditto.
11543 * mi/mi-main.c: Delete #include "python/python-internal.h".
11544 Add #include "extension.h".
11545 (mi_cmd_list_features): Replace reference to python internal variable
11546 gdb_python_initialized with call to ext_lang_initialized_p.
11548 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11549 Update to use enum ext_lang_frame_args. Update to call
11550 apply_ext_lang_frame_filter.
11551 * python/py-framefilter.c (extract_sym): Update to use enum
11552 ext_lang_bt_status.
11553 (extract_value, py_print_type, py_print_value): Ditto.
11554 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11555 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11556 (py_print_frame): Ditto.
11557 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11558 New arg extlang. Update to use enum ext_lang_bt_status.
11560 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11561 finish_python_initialization. Replace with call to
11562 finish_ext_lang_initialization.
11564 * typeprint.c (do_free_global_table): Update to call
11565 free_ext_lang_type_printers.
11566 (create_global_typedef_table): Update to call
11567 start_ext_lang_type_printers.
11568 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11569 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11570 (type_print_options): Change type of global_printers from "void *"
11571 to "struct ext_lang_type_printers *".
11573 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11574 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11575 (gdbpy_preserve_values): Renamed from preserve_python_values.
11577 (!HAVE_PYTHON, preserve_python_values): Delete.
11579 * utils.c (quit_flag): Delete, moved to extension.c.
11580 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11583 * eval.c: Delete #include "python/python.h".
11584 * main.c: Delete #include "python/python.h".
11586 * defs.h: Update comment.
11588 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11592 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11594 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11597 2014-02-05 Yao Qi <yao@codesourcery.com>
11599 * remote.c (remote_pass_signals): Remove local 'buf' and use
11601 (remote_program_signals): Likewise.
11603 2014-02-05 Yao Qi <yao@codesourcery.com>
11605 * ctf.c: Include "inferior.h" and "gdbthread.h".
11606 (CTF_PID): A new macro.
11607 (ctf_open): Call inferior_appeared and add_thread_silent.
11608 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11609 (ctf_thread_alive): New function.
11610 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11612 2014-02-05 Yao Qi <yao@codesourcery.com>
11616 2013-05-24 Yao Qi <yao@codesourcery.com>
11618 * tracepoint.c (TFILE_PID): Remove.
11619 (tfile_open): Don't add thread and inferior.
11620 (tfile_close): Don't set 'inferior_ptid'. Don't call
11621 exit_inferior_silent.
11622 (tfile_thread_alive): Remove.
11623 (init_tfile_ops): Don't set field 'to_thread_alive' of
11626 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11628 * remote.c (remote_start_remote): Call remote_check_symbols even
11629 if only symbol-file (not file) has been given.
11631 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11633 * gdbarch.sh (skip_entrypoint): New callback.
11634 * gdbarch.c, gdbarch.h: Regenerate.
11635 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11636 * infrun.c (fill_in_stop_func): Likewise.
11637 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11638 (ppc_elfv2_elf_make_msymbol_special): New function.
11639 (ppc_elfv2_skip_entrypoint): Likewise.
11640 (ppc_linux_init_abi): Install them for ELFv2.
11642 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11644 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11645 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11646 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11647 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11648 structures returned in GPRs.
11650 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11652 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11653 offset to the stack parameter list for the ELFv2 ABI.
11655 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11657 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11658 set_gdbarch_convert_from_func_ptr_addr and
11659 set_gdbarch_elf_make_msymbol_special for ELFv1.
11660 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11661 function descriptors on ELFv1.
11662 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11663 set up r12 at function entry.
11665 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11667 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11668 (struct gdbarch_tdep): New member elf_abi.
11670 * rs6000-tdep.c: Include "elf/ppc64.h".
11671 (rs6000_gdbarch_init): Detect ELF ABI version.
11673 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11675 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11676 within a register pair holding a DFP 128-bit value on little-endian.
11677 (ppc64_sysv_abi_return_value_base): Likewise.
11678 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11679 (dfp_pseudo_register_write): Likewise.
11681 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11683 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11684 offset on little-endian when passing _Decimal32.
11685 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11687 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11689 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11690 of the overlapped FP register within the VSX register on little-
11692 (efpr_pseudo_register_write): Likewise.
11694 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11696 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11697 offset on little-endian when passing small structures.
11699 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11701 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11702 (struct ppc64_sysv_argpos): New data structure.
11703 (ppc64_sysv_abi_push_float): Remove.
11704 (ppc64_sysv_abi_push_val): New function.
11705 (ppc64_sysv_abi_push_integer): Likewise.
11706 (ppc64_sysv_abi_push_freg): Likewise.
11707 (ppc64_sysv_abi_push_vreg): Likewise.
11708 (ppc64_sysv_abi_push_param): Likewise.
11709 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11710 (ppc64_sysv_abi_return_value_base): New function.
11711 (ppc64_sysv_abi_return_value): Refactor to use it.
11713 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11715 * NEWS: Document new target powerpc64le-*-linux*.
11717 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11719 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11720 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11722 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11723 register set used in ELF core dumps. Add floating-point register set.
11725 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11727 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11728 dwarf2_to_gdb[] table using symbolic constants. Adjust
11729 penultimate entry from number representing the PC register
11730 to symbolic constant representing the MDR register. Add
11731 constant for the PC register to the end of the table.
11733 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11735 * bsd-kvm.c: Include <sys/param.h>
11737 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11739 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11741 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11743 * ada-lang.h (clear_ada_sym_cache): Delete.
11745 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11747 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11749 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11751 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11752 the sigreturn register save area only if the syscall is
11755 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11757 * valops.c (value_slice): Minor reformatting.
11759 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11761 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11763 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11765 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11766 New static globals.
11767 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11768 (ada_ignore_descriptive_types_p): New static global.
11769 (find_parallel_type_by_descriptive_type): Return immediately
11770 if ada_ignore_descriptive_types_p is set.
11771 (_initialize_ada_language): Register new commands "maintenance
11772 set ada", "maintenance show ada", "maintenance set ada
11773 ignore-descriptive-types" and "maintenance show ada
11774 ignore-descriptive-types".
11775 * NEWS: Add entry for new "maint ada set/show
11776 ignore-descriptive-types" commands.
11778 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11780 * record-btrace.c (record_btrace_close): Call btrace_teardown
11783 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11785 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11788 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11790 * ada-typeprint (type_is_full_subrange_of_target_type):
11792 (print_range): Add parameter bounds_prefered_p. If not set,
11793 try printing range types using the name of their base type.
11794 (print_range_type): Add parameter bounds_prefered_p.
11795 Use it in call to print_range.
11796 (print_array_type, ada_print_type): Update calls to print_range
11797 and print_range_type.
11799 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11801 * ada-typeprint.c (print_array_type, print_choices, print_range)
11802 (print_range_bound, print_dynamic_range_bound, print_range_type):
11803 Remove declaration.
11805 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11807 * ada-typeprint.c (print_range): Add missing empty line
11808 after local declaration.
11810 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11812 * ada-valprint.c (print_optional_low_bound): Get index_type's
11813 target type for as long as it is a TYPE_CODE_RANGE.
11815 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11817 * procfs.c (procfs_make_note_section): Remove assertion and
11818 associated comment.
11820 2014-01-24 Yao Qi <yao@codesourcery.com>
11822 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11823 * corelow.c (get_core_siginfo): Likewise.
11825 2014-01-24 Yao Qi <yao@codesourcery.com>
11827 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11828 ULONGEST. Don't check 'len' is negative.
11829 (remote_write_bytes): Change type of 'len' to ULONGEST.
11831 2014-01-23 Tom Tromey <tromey@redhat.com>
11834 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11835 Handle exception from frame.block.
11836 (FrameVars.fetch_frame_locals): Likewise.
11838 2014-01-23 Tom Tromey <tromey@redhat.com>
11841 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11842 on a NULL pointer. Move "goto error" to correct place.
11844 2014-01-23 Tom Tromey <tromey@redhat.com>
11847 * python/py-framefilter.c (apply_frame_filter): Call
11848 ensure_python_env after computing gdbarch.
11850 2014-01-23 Yao Qi <yao@codesourcery.com>
11852 * target.c (raw_memory_xfer_partial): Change argument type
11853 from void * to gdb_byte *.
11854 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11856 2014-01-22 Doug Evans <dje@google.com>
11858 New gdbserver option --debug-format=timestamp.
11859 * NEWS: Mention it.
11861 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11863 * syscalls/s390x-linux.xml: New file.
11864 * syscalls/s390-linux.xml: New file.
11865 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11866 (XML_SYSCALL_FILENAME_S390X): Likewise.
11867 (op_svc): New enum value for SVC opcode.
11868 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11869 (s390_linux_get_syscall_number): New function.
11870 (s390_gdbarch_init): Register '*get_syscall_number' and the
11871 syscall xml file name.
11872 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11873 "s390-linux.xml" and "s390x-linux.xml".
11874 * NEWS: Announce new feature.
11876 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11878 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11880 2014-01-22 Pedro Alves <palves@redhat.com>
11882 * xtensa-config.c: Include defs.h.
11884 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11886 * common/common-utils.h: Add "ARI:" comment beside __func__
11889 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11891 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11892 documentation a bit.
11894 2014-01-21 Roland McGrath <mcgrathr@google.com>
11896 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11897 * configure: Regenerate.
11898 * aclocal.m4: Regenerate.
11899 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11900 New substituted variables.
11901 (install-strip): New target.
11902 (INSTALL_SCRIPT): New substituted variable.
11903 (FLAGS_TO_PASS): Add it.
11904 (install-only): Use $(INSTALL_SCRIPT) rather than
11905 $(INSTALL_PROGRAM) for gcore.
11907 2014-01-20 Tom Tromey <tromey@redhat.com>
11909 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11912 2014-01-20 Tom Tromey <tromey@redhat.com>
11914 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11915 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11916 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11917 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11918 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11919 (struct cmd_list_element) <flags>: Remove.
11920 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11921 doc_allocated>: New fields.
11922 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11924 * maint.c (maintenance_do_deprecate): Update.
11925 * top.c (execute_command): Update.
11927 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11929 * xtensa-linux-nat.c: Include asm/ptrace.h.
11931 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11933 * Makefile.in (SFILES): Add d-support.c.
11934 (COMMON_OBS): Add d-support.o.
11935 * d-lang.h (d_parse_symbol): Add comment, now defined in
11937 * d-lang.c (parse_call_convention)
11938 (parse_attributes, parse_function_types)
11939 (parse_function_args, parse_type, parse_identifier)
11940 (call_convention_p, d_parse_symbol): Move functions to ...
11941 * d-support.c: ... New file.
11943 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11945 * d-lang.h (d_parse_symbol): Add declaration.
11946 * d-lang.c (extract_identifiers)
11947 (extract_type_info): Remove functions.
11948 (parse_call_convention, parse_attributes)
11949 (parse_function_types, parse_function_args)
11950 (parse_type, parse_identifier, call_convention_p)
11951 (d_parse_symbol): New functions.
11952 (d_demangle): Use d_parse_symbol to demangle D symbols.
11954 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11956 * d-lang.h (struct builtin_d_type): New data type.
11957 (builtin_d_type): Add declaration.
11958 * d-lang.c (d_language_arch_info, build_d_types)
11959 (builtin_d_type): New functions.
11960 (enum d_primitive_types): New data type.
11961 (d_language_defn): Change c_language_arch_info to
11962 d_language_arch_info.
11963 (d_type_data): New static variable.
11964 (_initialize_d_language): Initialize d_type_data.
11966 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11968 * d-lang.h (d_main_name): Add declaration.
11969 * d-lang.c (d_main_name): New function.
11970 * symtab.c (find_main_name): Add call to d_main_name.
11972 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11974 * d-lang.c (d_language_defn): Change macro_expansion_c to
11975 macro_expansion_no.
11977 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11979 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11981 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11983 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11984 gdb_exception" declaration.
11985 * remote.c (getpkt_or_notif_sane): Likewise.
11987 2014-01-17 Doug Evans <dje@google.com>
11989 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11990 function, contents of dirnames_to_char_ptr_vec_append moved here.
11991 (delim_string_to_char_ptr_vec): New function.
11992 (dirnames_to_char_ptr_vec_append): Rewrite.
11993 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11995 2014-01-17 Doug Evans <dje@google.com>
11997 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11999 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12000 #include "common-utils.h".
12001 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12002 * common/vec.h (VEC_ASSERT_PASS): Update.
12003 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12004 (MACH_CHECK_ERROR): Update.
12006 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12008 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12010 * gdbarch.h: Regenerate.
12012 2014-01-16 Tom Tromey <tromey@redhat.com>
12014 * value.c (struct value) <regnum>: Move earlier.
12016 2014-01-16 Tom Tromey <tromey@redhat.com>
12018 * remote.c (extended_remote_create_inferior): Rename from
12019 extended_remote_create_inferior_1. Add "ops" argument. Remove
12020 old implementation.
12022 2014-01-16 Pedro Alves <palves@redhat.com>
12024 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12025 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12028 2014-01-16 Doug Evans <dje@google.com>
12030 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12032 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12034 * btrace.h (btrace_thread_flag): New.
12035 (struct btrace_thread_info) <flags>: New.
12036 * record-btrace.c (record_btrace_resume_thread)
12037 (record_btrace_find_thread_to_move, btrace_step_no_history)
12038 (btrace_step_stopped, record_btrace_start_replaying)
12039 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12040 (record_btrace_find_resume_thread): New.
12041 (record_btrace_resume, record_btrace_wait): Extend.
12042 (record_btrace_can_execute_reverse): New.
12043 (record_btrace_open): Fail in non-stop mode.
12044 (record_btrace_set_replay): Split into this, ...
12045 (record_btrace_stop_replaying): ... this, ...
12046 (record_btrace_clear_histories): ... and this.
12047 (init_record_btrace_ops): Init to_can_execute_reverse.
12048 * NEWS: Announce it.
12050 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12052 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12053 (forward_target_decr_pc_after_break)
12054 (target_decr_pc_after_break): New.
12055 * target.c (forward_target_decr_pc_after_break)
12056 (target_decr_pc_after_break): New.
12057 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12058 instead of gdbarch_decr_pc_after_break.
12059 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12060 instead of gdbarch_decr_pc_after_break.
12061 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12062 instead of gdbarch_decr_pc_after_break.
12063 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12064 instead of gdbarch_decr_pc_after_break.
12065 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12066 instead of gdbarch_decr_pc_after_break.
12067 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12068 instead of gdbarch_decr_pc_after_break.
12070 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12072 * btrace.c: Include regcache.h.
12073 (btrace_add_pc): New.
12074 (btrace_enable): Call btrace_add_pc.
12075 (btrace_is_empty): New.
12076 * btrace.h (btrace_is_empty): New.
12077 * record-btrace.c (require_btrace, record_btrace_info): Call
12080 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12082 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12083 Support delta reads.
12084 (linux_disable_btrace): Change return type.
12085 * common/linux-btrace.h (linux_read_btrace): Change parameters
12086 and return type to allow error reporting. Update users.
12087 (linux_disable_btrace): Change return type. Update users.
12088 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12090 (btrace_error): New.
12091 (btrace_block) <begin>: Comment on BEGIN == 0.
12092 * btrace.c (btrace_compute_ftrace): Start from the end of
12094 (btrace_stitch_trace, btrace_clear_history): New.
12095 (btrace_fetch): Read delta trace, return if replaying.
12096 (btrace_clear): Move clear history code to btrace_clear_history.
12097 (parse_xml_btrace): Throw an error if parsing failed.
12098 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12099 and return type to allow error reporting.
12100 (target_read_btrace): Change parameters and return type to allow
12102 * target.c (target_read_btrace): Update.
12103 * remote.c (remote_read_btrace): Support delta reads. Pass
12105 * NEWS: Announce it.
12107 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12109 * record.h (record_btrace_frame_unwind)
12110 (record_btrace_tailcall_frame_unwind): New declarations.
12111 * dwarf2-frame: Include record.h
12112 (dwarf2_frame_cfa): Throw an error for btrace frames.
12113 * record-btrace.c: Include hashtab.h.
12114 (btrace_get_bfun_name): New.
12115 (btrace_call_history): Call btrace_get_bfun_name.
12116 (struct btrace_frame_cache): New.
12118 (bfcache_hash, bfcache_eq, bfcache_new): New.
12119 (btrace_get_frame_function): New.
12120 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12121 (record_btrace_frame_this_id): Compute own id.
12122 (record_btrace_frame_prev_register): Provide PC, throw_error
12123 for all other registers.
12124 (record_btrace_frame_sniffer): Detect btrace frames.
12125 (record_btrace_tailcall_frame_sniffer): New.
12126 (record_btrace_frame_dealloc_cache): New.
12127 (record_btrace_frame_unwind): Add new functions.
12128 (record_btrace_tailcall_frame_unwind): New.
12129 (_initialize_record_btrace): Allocate cache.
12130 * btrace.c (btrace_clear): Call reinit_frame_cache.
12131 * NEWS: Announce it.
12133 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12135 * record-btrace.c (record_btrace_set_replay)
12136 (record_btrace_goto_begin, record_btrace_goto_end)
12137 (record_btrace_goto): New.
12138 (init_record_btrace_ops): Initialize them.
12139 * NEWS: Announce it.
12141 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12143 * record-btrace.c (record_btrace_find_new_threads)
12144 (record_btrace_thread_alive): New.
12145 (init_record_btrace_ops): Initialize to_find_new_threads and
12148 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12150 * record-btrace.c (record_btrace_resume): New.
12151 (record_btrace_wait): New.
12152 (init_record_btrace_ops): Initialize to_wait and to_resume.
12154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12156 * record-btrace.c (record_btrace_xfer_partial)
12157 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12158 (record_btrace_allow_memory_access): New.
12159 (init_record_btrace_ops): Initialize new methods.
12160 * target.c (raw_memory_xfer_partial): Bail out if target reports
12161 that this memory is not available.
12163 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12165 * target.h (target_ops) <to_insert_breakpoint>
12166 <to_remove_breakpoint>: Add target_ops parameter.
12167 (forward_target_insert_breakpoint): New.
12168 (forward_target_remove_breakpoint): New.
12169 (memory_remove_breakpoint, memory_insert_breakpoint):
12170 Add target_ops parameter.
12171 * target.c (target_insert_breakpoint): Split into this and ...
12172 (forward_target_insert_breakpoint): ... this.
12173 (target_remove_breakpoint): Split into this and ...
12174 (forward_target_remove_breakpoint): ... this.
12175 (debug_to_insert_breakpoint): Add target_ops parameter.
12176 Call forward_target_insert_breakpoint.
12177 (debug_to_remove_breakpoint): Add target_ops parameter.
12178 Call forward_target_remove_breakpoint.
12179 (update_current_target): Do not inherit or default to_insert_breakpoint
12180 and to_remove_breakpoint.
12181 * corelow.c (ignore): Add target_ops parameter.
12182 * exec.c (ignore): Add target_ops parameter.
12183 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12184 Add target_ops parameter.
12185 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12186 Add target_ops parameter.
12187 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12188 Add target_ops parameter.
12189 * record-full.c (record_full_beneath_to_insert_breakpoint)
12190 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12191 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12192 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12193 (record_full_core_remove_breakpoint): Add target_ops parameter.
12195 (record_full_beneath_to_insert_breakpoint_ops)
12196 (record_full_beneath_to_remove_breakpoint_ops)
12197 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12198 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12199 tmp_to_remove_breakpoint_ops,
12200 record_full_beneath_to_insert_breakpoint_ops, and
12201 record_full_beneath_to_remove_breakpoint_ops.
12202 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12203 (m32r_remove_breakpoint): Add target_ops parameter.
12204 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12205 Add target_ops parameter.
12206 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12207 Add target_ops parameter.
12209 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12210 Markus Metzger <markus.t.metzger@intel.com>
12212 * record-btrace.c: Include frame-unwind.h.
12213 (record_btrace_frame_unwind_stop_reason)
12214 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12215 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12217 (init_record_btrace_ops): Install it.
12219 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12221 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12224 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12226 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12229 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12231 * frame-unwind.c: Include target.h.
12232 (frame_unwind_try_unwinder): New function with code from ...
12233 (frame_unwind_find_by_frame): ... here. New variable
12234 unwinder_from_target, call also target_get_unwinder)
12235 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12236 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12237 * target.h (struct target_ops): New fields to_get_unwinder and
12238 to_get_tailcall_unwinder.
12239 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12241 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12243 * record-btrace.c (record_btrace_fetch_registers)
12244 (record_btrace_store_registers)
12245 (record_btrace_to_prepare_to_store): New.
12246 (init_record_btrace_ops): Add the above.
12248 2014-01-16 Tom Tromey <tromey@redhat.com>
12250 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12251 * target.h (struct target_ops) <to_prepare_to_store>: Add
12253 (target_prepare_to_store): Add argument.
12254 * target.c (debug_to_prepare_to_store): Add argument.
12255 (update_current_target): Update.
12256 * remote.c (remote_prepare_to_store): Add 'self' argument.
12257 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12258 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12259 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12260 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12262 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12263 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12264 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12265 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12266 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12268 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12270 * btrace.h (replay) <replay>: New.
12271 (btrace_is_replaying): New.
12272 * btrace.c (btrace_clear): Free replay iterator.
12273 (btrace_is_replaying): New.
12274 * record-btrace.c (record_btrace_is_replaying): New.
12275 (record_btrace_info): Print insn number if replaying.
12276 (record_btrace_insn_history): Start at replay position.
12277 (record_btrace_call_history): Start at replay position.
12278 (init_record_btrace_ops): Init to_record_is_replaying.
12280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12282 * record-btrace.c (record_btrace_insn_history_range): Include
12284 (record_btrace_insn_history_from): Adjust range.
12285 (record_btrace_call_history_range): Include
12287 (record_btrace_call_history_from): Adjust range.
12288 * NEWS: Announce changes.
12290 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12292 * record.h (enum record_print_flag)
12293 <record_print_indent_calls>: New.
12294 * record.c (get_call_history_modifiers): Recognize /c modifier.
12295 (_initialize_record): Document /c modifier.
12296 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12297 Reorder fields. Optionally indent the function name. Update
12299 * NEWS: Announce changes.
12301 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12303 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12307 * btrace.c (ftrace_new_function): Start counting at one.
12308 * record-btrace.c (record_btrace_info): Adjust number of calls
12310 * NEWS: Announce it.
12312 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12314 * record-btrace.c (btrace_call_history_insn_range): Print
12315 insn range as [begin, end].
12317 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12319 * btrace.h (struct btrace_func_link): New.
12320 (enum btrace_function_flag): New.
12321 (struct btrace_inst): Rename to ...
12322 (struct btrace_insn): ...this. Update all users.
12323 (struct btrace_func) <ibegin, iend>: Remove.
12324 (struct btrace_func_link): New.
12325 (struct btrace_func): Rename to ...
12326 (struct btrace_function): ...this. Update all users.
12327 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12328 (number, level, flags>: New.
12329 (struct btrace_insn_iterator): Rename to ...
12330 (struct btrace_insn_history): ...this.
12332 (struct btrace_insn_iterator, btrace_call_iterator): New.
12333 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12334 (struct btrace_target_info) <begin, end, level>
12335 <insn_history, call_history>: New.
12336 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12337 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12338 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12339 (btrace_call_number, btrace_call_begin, btrace_call_end)
12340 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12341 (btrace_find_function_by_number, btrace_set_insn_history)
12342 (btrace_set_call_history): New.
12343 * btrace.c (btrace_init_insn_iterator)
12344 (btrace_init_func_iterator, compute_itrace): Remove.
12345 (ftrace_print_function_name, ftrace_print_filename)
12346 (ftrace_skip_file): Change
12347 parameter to const.
12348 (ftrace_init_func): Remove.
12349 (ftrace_debug): Use new btrace_function fields.
12350 (ftrace_function_switched): Also consider gaining and
12351 losing symbol information).
12352 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12353 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12354 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12356 (ftrace_new_function): Move. Remove debug print.
12357 (ftrace_update_lines, ftrace_update_insns): New.
12358 (ftrace_update_function): Check for call, ret, and jump.
12359 (compute_ftrace): Renamed to ...
12360 (btrace_compute_ftrace): ...this. Rewritten to compute call
12362 (btrace_fetch, btrace_clear): Updated.
12363 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12364 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12365 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12366 (btrace_call_number, btrace_call_begin, btrace_call_end)
12367 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12368 (btrace_find_function_by_number, btrace_set_insn_history)
12369 (btrace_set_call_history): New.
12370 * record-btrace.c (require_btrace): Use new btrace thread
12372 (record_btrace_info, btrace_insn_history)
12373 (record_btrace_insn_history, record_btrace_insn_history_range):
12374 Use new btrace thread info fields and new iterator.
12375 (btrace_func_history_src_line): Rename to ...
12376 (btrace_call_history_src_line): ...this. Use new btrace
12377 thread info fields.
12378 (btrace_func_history): Rename to ...
12379 (btrace_call_history): ...this. Use new btrace thread info
12380 fields and new iterator.
12381 (record_btrace_call_history, record_btrace_call_history_range):
12382 Use new btrace thread info fields and new iterator.
12384 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12386 * frame.h (frame_id_build_unavailable_stack_special): New.
12387 * frame.c (frame_id_build_unavailable_stack_special): New.
12389 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12391 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12392 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12393 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12395 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12396 (i386_insn_is_jump, i386_jmp_p): New.
12397 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12398 insn_is_jump to gdbarch.
12399 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12400 * gdbarch.h: Regenerated.
12401 * gdbarch.c: Regenerated.
12402 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12403 (default_insn_is_jump): New.
12404 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12405 (default_insn_is_jump): New.
12407 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12409 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12411 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12412 (btrace_read_type) <btrace_read_new>: Change to ...
12413 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12415 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12417 * common/linux-btrace.c (linux_read_btrace): Free trace from
12418 previous iteration.
12420 2014-01-15 Doug Evans <dje@google.com>
12422 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12425 2014-01-15 Tom Tromey <tromey@redhat.com>
12427 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12428 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12429 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12430 (set_objfile_main_name): New function.
12431 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12432 language_of_main>: New fields.
12433 (set_objfile_main_name): Declare.
12434 * symtab.c (find_main_name): Loop over objfiles to find the main
12436 (set_main_name): Now static.
12437 (get_main_info): Add comment.
12438 * symtab.h (set_main_name): Don't declare.
12440 2014-01-15 Tom Tromey <tromey@redhat.com>
12442 * symtab.c (main_progspace_key): New global.
12443 (struct main_info): New.
12444 (name_of_main, language_of_main): Remove.
12445 (get_main_info, main_info_cleanup): New function.
12446 (set_main_name, main_name, main_language): Use get_main_info.
12447 (_initialize_symtab): Initialize main_progspace_key.
12449 2014-01-15 Tom Tromey <tromey@redhat.com>
12451 * dbxread.c (process_one_symbol): Update.
12452 * dwarf2read.c (read_partial_die): Update.
12453 * symfile.c (set_initial_language): Call main_language.
12454 * symtab.c (language_of_main): Now static.
12455 (set_main_name): Add 'lang' parameter.
12456 (find_main_name): Update.
12457 (main_language): New function.
12458 (symtab_observer_executable_changed): Update.
12459 * symtab.h (set_main_name): Update.
12460 (language_of_main): Remove.
12461 (main_language): Declare.
12463 2014-01-15 Tom Tromey <tromey@redhat.com>
12465 * symfile.c (init_entry_point_info): Use new "initialized" field.
12467 * objfiles.h (struct entry_point) <initialized>: New field.
12468 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12469 (struct objfile) <ei>: ...here. Remove.
12470 * objfiles.c (entry_point_address_query): Update.
12472 2014-01-15 Tom Tromey <tromey@redhat.com>
12474 * objfiles.c (entry_point_address_query): Relocate entry point
12476 (objfile_relocate1): Do not relocate entry point address.
12477 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12478 <the_bfd_section_index>: New field.
12479 * symfile.c (init_entry_point_info): Find the entry point's
12482 2014-01-15 Tom Tromey <tromey@redhat.com>
12484 * solib-frv.c (enable_break): Use entry_point_address_query.
12486 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12488 * NEWS: Add note on improved process record-replay on
12489 arm*-linux* targets.
12491 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12493 * arm-tdep.c (enum arm_record_result): New enum.
12494 (arm_record_unsupported_insn): New function.
12495 (arm_record_coproc_data_proc): Removed.
12496 (thumb2_record_ld_st_multiple): New function.
12497 (thumb2_record_ld_st_dual_ex_tbb): New function.
12498 (thumb2_record_data_proc_sreg_mimm): New function.
12499 (thumb2_record_ps_dest_generic): New function.
12500 (thumb2_record_branch_misc_cntrl): New function.
12501 (thumb2_record_str_single_data): New function.
12502 (thumb2_record_ld_mem_hints): New function.
12503 (thumb2_record_ld_word): New function.
12504 (thumb2_record_lmul_lmla_div): New function.
12505 (thumb2_record_decode_insn_handler): New function.
12506 (decode_insn): Add thumb32 instruction handlers.
12508 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12510 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12511 (struct arm_linux_record_tdep): Declare.
12512 (arm_canonicalize_syscall): New function.
12513 (arm_all_but_pc_registers_record): New function.
12514 (arm_linux_syscall_record): New function.
12515 (arm_linux_init_abi): Add syscall recording constructs.
12516 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12517 decoding. (arm_record_coproc_data_proc): Update arm syscall
12519 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12520 <arm_syscall_record>: New field.
12521 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12524 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12526 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12527 register for push instruction recording.
12529 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12531 * arm-tdep.c (thumb_record_misc): Update to correct logical
12532 error while recording ldm, ldmia and pop instructions.
12534 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12536 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12538 2014-01-15 Pedro Alves <palves@redhat.com>
12540 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12541 (go32_resume, go32_fetch_registers, store_register)
12542 (go32_store_registers, go32_prepare_to_store)
12543 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12544 (go32_create_inferior, go32_can_run, go32_terminal_init)
12545 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12548 2014-01-15 Tom Tromey <tromey@redhat.com>
12550 * target.h (async_callback_ftype): New typedef.
12551 (struct target_ops) <to_async>: Use it.
12553 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12555 * python/py-value.c (get_field_type): Remove unnecessary curly
12556 braces for single-statement if block.
12558 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12560 * python/py-type.c (convert_field): Add missing empty line
12561 after declarations.
12563 2014-01-14 Doug Evans <dje@google.com>
12565 * symfile.h (expand_symtabs_matching): Renamed from
12566 expand_partial_symbol_names. Update prototype.
12567 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12568 * symfile.c (expand_symtabs_matching): Renamed from
12569 expand_partial_symbol_names. New args file_matcher, kind.
12570 Rename arg fun to symbol_matcher.
12571 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12572 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12573 ada_expand_partial_symbol_name.
12574 (ada_make_symbol_completion_list): Update to call
12575 expand_symtabs_matching.
12576 (ada_add_global_exceptions): Call expand_symtabs_matching.
12577 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12578 call map_symbol_filenames.
12579 * symtab.c (sources_info): Update to call map_symbol_filenames.
12580 (search_symbols): Call expand_symtabs_matching.
12581 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12582 (default_make_symbol_completion_list_break_on): Update to call
12583 expand_symtabs_matching.
12584 (make_source_files_completion_list): Update to call
12585 map_symbol_filenames.
12587 2014-01-14 Doug Evans <dje@google.com>
12589 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12590 (expand_symtabs_symbol_matcher_ftype): New typedef.
12591 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12592 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12593 * symfile.c (expand_partial_symbol_names): Update to use
12594 expand_symtabs_symbol_matcher_ftype.
12595 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12596 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12597 Arg name_matcher renamed to symbol_matcher.
12598 * psymtab.c (recursively_search_psymtabs): Update to use
12599 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12601 (expand_symtabs_matching_via_partial): Update to use
12602 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12603 Arg name_matcher renamed to symbol_matcher.
12605 2014-01-14 Doug Evans <dje@google.com>
12607 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12608 (map_partial_symbol_filenames): Ditto.
12609 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12610 (map_partial_symbol_filenames): Ditto.
12611 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12612 (map_partial_symbol_filenames): Ditto.
12613 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12614 (map_partial_symbol_filenames): Ditto.
12615 * symtab.c: Delete #include "psymtab.h".
12617 2014-01-14 Pedro Alves <palves@redhat.com>
12618 Tom Tromey <tromey@redhat.com>
12620 * infrun.c (use_displaced_stepping): Use find_record_target
12621 instead of RECORD_IS_USED.
12622 (adjust_pc_after_break): Use record_full_is_used instead of
12624 * record-btrace.c (record_btrace_open): Call record_preopen
12625 instead of checking RECORD_IS_USED.
12626 * record-full.c (record_full_shortname)
12627 (record_full_core_shortname): New globals.
12628 (record_full_is_used): New function.
12629 (find_full_open): Call record_preopen instead of checking
12631 (init_record_full_ops): Set the target's shortname to
12632 record_full_shortname.
12633 (init_record_full_core_ops): Set the target's shortname to
12634 record_full_core_shortname.
12635 * record-full.h (record_full_is_used): Declare.
12636 * record.c (find_record_target): Make extern.
12637 (record_preopen): New function.
12638 * record.h (RECORD_IS_USED): Delete macro.
12639 (find_record_target, record_preopen): Declare functions.
12641 2014-01-14 Yao Qi <yao@codesourcery.com>
12643 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12644 'len''s type to ULONGEST.
12645 (core_xfer_shared_libraries_aix): Likewise.
12646 * gdbarch.c, gdbarch.h: Regenerated.
12647 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12648 Change type of 'len' to ULONGEST.
12649 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12650 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12652 2014-01-14 Yao Qi <yao@codesourcery.com>
12654 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12655 type of 'len' to ULONGEST.
12656 (linux_xfer_osdata_processgroups): Likewise.
12657 (linux_xfer_osdata_threads): Likewise.
12658 (linux_xfer_osdata_fds): Likewise.
12659 (linux_xfer_osdata_isockets): Likewise.
12660 (linux_xfer_osdata_shm): Likewise.
12661 (linux_xfer_osdata_sem): Likewise.
12662 (linux_xfer_osdata_msg): Likewise.
12663 (linux_common_xfer_osdata): Likewise.
12664 (struct osdata_type) <getter>: Likewise.
12665 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12668 2014-01-14 Yao Qi <yao@codesourcery.com>
12670 * target.h (target_xfer_partial_ftype): Update.
12671 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12673 * aix-thread.c (aix_thread_xfer_partial): Change type of
12674 argument 'len' to ULONGEST.
12675 * auxv.c (procfs_xfer_auxv): Likewise.
12676 (ld_so_xfer_auxv): Likewise.
12677 (memory_xfer_auxv): Likewise.
12678 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12679 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12680 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12681 * corelow.c (core_xfer_partial): Likewise.
12682 * ctf.c (ctf_xfer_partial): Likewise.
12683 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12685 (darwin_read_dyld_info): Likewise.
12686 (darwin_xfer_partial): Likewise.
12687 * exec.c (section_table_xfer_memory_partial): Likewise.
12688 (exec_xfer_partial): Likewise.
12689 * exec.h (section_table_xfer_memory_partial): Update
12691 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12692 instead of plongest.
12693 (gnu_xfer_partial): Likewise.
12694 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12695 (ia64_hpux_xfer_solib_got): Likewise.
12696 (ia64_hpux_xfer_partial): Likewise.
12697 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12698 * inf-ptrace.c (inf_ptrace_xfer_partial):
12699 * inf-ttrace.c (inf_ttrace_xfer_partial):
12700 * linux-nat.c (linux_xfer_siginfo): Likewise.
12701 (linux_nat_xfer_partial): Likewise.
12702 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12703 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12704 * monitor.c (monitor_xfer_memory): Likewise.
12705 (monitor_xfer_partial): Likewise.
12706 * procfs.c (procfs_xfer_partial): Likewise.
12707 * record-full.c (record_full_xfer_partial): Likewise.
12708 (record_full_core_xfer_partial): Likewise.
12709 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12710 instead of plongest.
12711 (gdbsim_xfer_partial): Likewise.
12712 * remote.c (remote_xfer_partial): Likewise.
12713 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12714 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12716 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12717 (rs6000_xfer_shared_libraries): Likewise.
12718 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12719 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12720 (sparc_xfer_partial): Likewise.
12721 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12722 (spu_xfer_partial): Likewise.
12723 * spu-multiarch.c (spu_xfer_partial): Likewise.
12724 * target.c (target_read_live_memory): Likewise.
12725 (memory_xfer_live_readonly_partial): Likewise.
12726 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12727 (target_xfer_partial, default_xfer_partial): Likewise.
12728 (current_xfer_partial): Likewise.
12729 * tracepoint.c (tfile_xfer_partial): Likewise.
12730 * windows-nat.c (windows_xfer_memory): Likewise. Call
12731 pulongest instead of plongest.
12732 (windows_xfer_partial): Likewise.
12733 (windows_xfer_shared_libraries): Likewise.
12735 2014-01-14 Yao Qi <yao@codesourcery.com>
12737 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12738 target_xfer_partial_ftype.
12740 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12744 * valops.c (value_struct_elt_bitpos): New function
12745 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12746 object to 'None' if the field name is an empty string ("").
12747 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12748 attribute to look for a field when 'name' is 'None'.
12749 (get_field_type): New function
12751 2014-01-13 Doug Evans <dje@google.com>
12754 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12755 (try_open_dwop_file): Ditto.
12756 * gdb_bfd.c: #include "vec.h".
12757 (bfdp): New typedef.
12758 (struct gdb_bfd_data): New member included_bfds.
12759 (gdb_bfd_unref): Unref all included bfds.
12760 (gdb_bfd_record_inclusion): New function.
12761 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12763 2014-01-13 Tom Tromey <tromey@redhat.com>
12765 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12767 2014-01-13 Tom Tromey <tromey@redhat.com>
12769 * defs.h (use_windows): Remove.
12770 * gdb.c (main): Update.
12771 * main.c (captured_main, gdb_main): Update.
12772 * main.h (struct captured_main_args) <use_windows>: Remove.
12773 * top.c (use_windows): Remove.
12775 2014-01-13 Tom Tromey <tromey@redhat.com>
12777 * defs.h (deprecated_flush_hook): Remove.
12779 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12782 * linux-thread-db.c (try_thread_db_load): Add parameter
12783 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12784 (try_thread_db_load_from_pdir_1): Move it there from here.
12785 (try_thread_db_load_from_sdir): Update caller.
12786 (try_thread_db_load_from_dir): Move it there from here.
12788 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12790 * regformats/regdat.sh: Always rewrite the register file.
12792 2014-01-13 Pedro Alves <palves@redhat.com>
12794 * Makefile.in (CHECK_HEADERS): New variable.
12795 (check-headers:): New rule.
12797 2014-01-13 Tom Tromey <tromey@redhat.com>
12799 * cli/cli-setshow.c (do_set_command): Update.
12800 * defs.h (deprecated_set_hook): Remove.
12801 * top.c (deprecated_set_hook): Remove.
12803 2014-01-13 Pedro Alves <palves@redhat.com>
12805 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12806 the tracepoint if the PC is a pseudo-register.
12808 2014-01-13 Tom Tromey <tromey@redhat.com>
12810 * defs.h (XCALLOC): Remove.
12811 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12812 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12813 * dwarf2loc.c (allocate_piece_closure): Likewise.
12814 * elfread.c (elf_symfile_segments): Likewise.
12815 (elf_symfile_segments): Likewise.
12816 * gdbtypes.c (copy_type_recursive): Likewise.
12817 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12818 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12819 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12821 * mt-tdep.c (mt_gdbarch_init): Likewise.
12822 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12824 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12825 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12826 * registry.c (registry_alloc_data): Likewise.
12827 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12828 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12829 * serial.c (serial_fdopen_ops): Likewise.
12830 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12832 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12833 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12836 2014-01-13 Tom Tromey <tromey@redhat.com>
12838 * defs.h (XMALLOC): Remove.
12839 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12840 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12841 * cli-out.c (struct ui_out *): Likewise.
12842 * cli/cli-dump.c (add_dump_command): Likewise.
12843 (add_dump_command): Likewise.
12844 * complaints.c (get_complaints): Likewise.
12845 (find_complaint): Likewise.
12846 * dwarf2-frame.c (execute_cfa_program): Likewise.
12847 * dwarf2read.c (abbrev_table_read_table): Likewise.
12848 * gdbarch.sh: Likewise.
12849 * gdbarch.c: Rebuild.
12850 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12851 * interps.c (interp_new): Likewise.
12852 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12853 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12854 * mi/mi-console.c (mi_console_file_new): Likewise.
12855 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12856 * mi/mi-out.c (mi_out_new): Likewise.
12857 * mi/mi-parse.c (mi_parse): Likewise.
12858 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12859 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12860 * observer.c (xalloc_observer_list_node): Likewise.
12861 * regcache.c (regcache_xmalloc_1): Likewise.
12862 * reggroups.c (reggroup_new): Likewise.
12863 (_initialize_reggroup): Likewise.
12864 * registry.c (register_data_with_cleanup): Likewise.
12865 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12866 * ser-base.c (serial_ttystate): Likewise.
12867 * ser-mingw.c (make_pipe_state): Likewise.
12868 * ser-pipe.c (pipe_open): Likewise.
12869 * serial.c (serial_open): Likewise.
12870 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12871 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12872 (tui_alloc_win_info): Likewise.
12873 (tui_add_content_elements): Likewise.
12874 * tui/tui-file.c (tui_file_new): Likewise.
12875 * tui/tui-out.c (tui_out_new): Likewise.
12876 * ui-file.c (mem_file_new): Likewise.
12877 * ui-out.c (push_level): Likewise.
12878 (make_cleanup_ui_out_end): Likewise.
12879 (append_header_to_list): Likewise.
12880 (ui_out_new): Likewise.
12881 * user-regs.c (user_reg_add_builtin): Likewise.
12883 2014-01-13 Tom Tromey <tromey@redhat.com>
12885 * defs.h (XZALLOC): Remove.
12886 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12887 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12888 (get_ada_tasks_inferior_data): Likewise.
12889 * auto-load.c (get_auto_load_pspace_data): Likewise.
12890 * auxv.c (get_auxv_inferior_data): Likewise.
12891 * bfd-target.c (target_bfd_reopen): Likewise.
12892 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12893 (deprecated_insert_raw_breakpoint): Likewise.
12894 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12895 * corelow.c (core_open): Likewise.
12896 * darwin-nat.c (darwin_check_new_threads): Likewise.
12897 (darwin_attach_pid): Likewise.
12898 * dummy-frame.c (dummy_frame_push): Likewise.
12899 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12900 * dwarf2loc.c (allocate_piece_closure): Likewise.
12901 * elfread.c (elf_symfile_segments): Likewise.
12902 * eval.c (ptrmath_type_p): Likewise.
12903 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12904 * gdbtypes.c (alloc_type_arch): Likewise.
12905 (alloc_type_instance): Likewise.
12906 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12907 * inf-child.c (inf_child_can_use_agent): Likewise.
12908 * inflow.c (get_inflow_inferior_data): Likewise.
12909 * infrun.c (save_infcall_suspend_state): Likewise.
12910 * jit.c (jit_reader_load): Likewise.
12911 (get_jit_objfile_data): Likewise.
12912 (get_jit_program_space_data): Likewise.
12913 (jit_object_open_impl): Likewise.
12914 (jit_symtab_open_impl): Likewise.
12915 (jit_block_open_impl): Likewise.
12916 (jit_frame_sniffer): Likewise.
12917 * linux-fork.c (add_fork): Likewise.
12918 * maint.c (make_command_stats_cleanup): Likewise.
12919 * objfiles.c (get_objfile_pspace_data): Likewise.
12920 * opencl-lang.c (struct lval_closure): Likewise.
12921 * osdata.c (osdata_start_osdata): Likewise.
12922 * progspace.c (new_address_space): Likewise.
12923 (add_program_space): Likewise.
12924 * remote-sim.c (get_sim_inferior_data): Likewise.
12925 * sh-tdep.c (sh_gdbarch_init): Likewise.
12926 * skip.c (Ignore): Likewise.
12927 (skip_delete_command): Likewise.
12928 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12929 (library_list_start_library): Likewise.
12930 (solib_aix_current_sos): Likewise.
12931 * solib-darwin.c (get_darwin_info): Likewise.
12932 (darwin_current_sos): Likewise.
12933 * solib-dsbt.c (get_dsbt_info): Likewise.
12934 * solib-ia64-hpux.c (new_so_list): Likewise.
12935 (ia64_hpux_get_solib_linkage_addr): Likewise.
12936 * solib-spu.c (append_ocl_sos): Likewise.
12937 (spu_current_sos): Likewise.
12938 * solib-svr4.c (get_svr4_info): Likewise.
12939 (svr4_keep_data_in_core): Likewise.
12940 (library_list_start_library): Likewise.
12941 (svr4_default_sos): Likewise.
12942 (svr4_read_so_list): Likewise.
12943 * solib-target.c (library_list_start_library): Likewise.
12944 (solib_target_current_sos): Likewise.
12945 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12946 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12947 * symfile.c (default_symfile_segments): Likewise.
12948 * target-descriptions.c (tdesc_data_init): Likewise.
12949 (tdesc_create_reg): Likewise.
12950 (struct tdesc_type *): Likewise.
12951 (tdesc_create_vector): Likewise.
12952 (tdesc_set_struct_size): Likewise.
12953 (struct tdesc_type *): Likewise.
12954 (tdesc_free_feature): Likewise.
12955 (tdesc_create_feature): Likewise.
12956 * windows-nat.c (windows_add_thread): Likewise.
12957 (windows_make_so): Likewise.
12958 * xml-support.c (gdb_xml_body_text): Likewise.
12959 (gdb_xml_create_parser_and_cleanup): Likewise.
12960 (xml_process_xincludes): Likewise.
12961 * xml-syscall.c (allocate_syscalls_info): Likewise.
12962 (syscall_create_syscall_desc): Likewise.
12964 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12966 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12967 function, with code from i386_stap_parse_special_token.
12968 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12969 (i386_stap_parse_special_token): Move code to the two functions
12970 above; simplify it.
12972 2014-01-09 Pedro Alves <palves@redhat.com>
12973 Hui Zhu <hui@codesourcery.com>
12976 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12977 bp_err_string. Don't mark the location shlib_disabled if the
12978 error thrown wasn't a generic or memory error. Catch errors
12979 thrown while inserting breakpoints in overlayed code. Output
12980 error message of software breakpoints.
12981 * remote.c (remote_insert_breakpoint): If this breakpoint has
12982 target-side commands but this stub doesn't support Z0 packets,
12983 throw NOT_SUPPORTED_ERROR error.
12984 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12985 * target.h (target_insert_breakpoint): Extend comment.
12986 (target_insert_hw_breakpoint): Add comment.
12988 2014-01-08 Pedro Alves <palves@redhat.com>
12990 * remote.c (remote_add_thread): Add threads silently if starting
12992 (remote_notice_new_inferior): If in all-stop, and starting up,
12993 don't call notice_new_inferior.
12994 (get_current_thread): New function, factored out from ...
12995 (add_current_inferior_and_thread): ... this. Adjust.
12996 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12997 found any thread, then select the remote's current thread as GDB's
12998 current thread too.
13000 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13002 * NEWS: Create a new section for the next release branch.
13003 Rename the section of the current branch, now that it has
13006 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13008 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13009 * version.in: Bump version to 7.7.50.DATE-cvs.
13011 2014-01-08 Yao Qi <yao@codesourcery.com>
13013 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13014 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13015 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13017 2014-01-08 Yao Qi <yao@codesourcery.com>
13019 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13020 return value of bfd_get_filename to symbol_file_add_from_bfd.
13022 2014-01-08 Pierre Muller <muller@sourceware.org>
13025 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13026 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13027 to prim_record_mininal_symbol_and_info.
13028 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13029 in call to prim_record_minimal_symbol_and_info.
13030 (read_pe_exported_syms): Set index field of section_data.
13032 2014-01-07 Andrew Pinski <apinski@cavium.com>
13034 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13035 * features/aarch64.c: Regenerate.
13037 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13039 * target.c (return_null): Define.
13040 (update_current_target): Use it instead of return_zero for
13041 functions that return a pointer.
13043 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13045 * source.c (add_path): Fix check for duplicated paths in the previously
13048 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13050 * ada-lang.c: Remove duplicated include statements.
13051 * alphabsd-nat.c: Ditto.
13052 * amd64-darwin-tdep.c: Ditto.
13053 * amd64fbsd-nat.c: Ditto.
13054 * auto-load.c: Ditto.
13056 * breakpoint.c: Ditto.
13057 * dbxread.c: Ditto.
13058 * fork-child.c: Ditto.
13059 * gdb_usleep.c: Ditto.
13060 * i386-darwin-tdep.c: Ditto.
13061 * i386fbsd-nat.c: Ditto.
13063 * inferior.c: Ditto.
13064 * jv-lang.c: Ditto.
13065 * linux-nat.c: Ditto.
13066 * linux-tdep.c: Ditto.
13067 * m68kbsd-nat.c: Ditto.
13068 * m68klinux-nat.c: Ditto.
13069 * microblaze-tdep.c: Ditto.
13070 * mips-linux-tdep.c: Ditto.
13071 * mn10300-tdep.c: Ditto.
13072 * nto-tdep.c: Ditto.
13073 * opencl-lang.c: Ditto.
13075 * printcmd.c: Ditto.
13076 * regcache.c: Ditto.
13077 * remote-m32r-sdi.c: Ditto.
13079 * symfile.c: Ditto.
13081 * tilegx-linux-nat.c: Ditto.
13082 * tilegx-tdep.c: Ditto.
13083 * tracepoint.c: Ditto.
13085 * vaxbsd-nat.c: Ditto.
13086 * windows-nat.c: Ditto.
13087 * xtensa-tdep.c: Ditto.
13089 2014-01-07 Yao Qi <yao@codesourcery.com>
13091 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13093 2014-01-07 Yao Qi <yao@codesourcery.com>
13094 Joel Brobecker <brobecker@adacore.com>
13096 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13097 (pdc_write_regs): Likewise.
13098 (fetch_regs_kernel_thread): Likewise.
13099 (store_regs_kernel_thread): Likewise.
13101 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13103 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13104 tagged type objects to their actual type.
13106 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13108 * ada-valprint.c (print_field_values): Add "language" parameter.
13109 Update calls to print_field_values and print_variant_part.
13110 Pass new parameter "language" in call to val_print instead
13111 of "current_language". Replace call to ada_val_print by call
13113 (print_variant_part): Add "language" parameter.
13114 (ada_val_print_struct_union): Update call to print_field_values.
13116 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13118 * ada-valprint.c (ui_memcpy): Delete.
13119 (ada_print_floating): Update documentation. Add empty line
13120 between between function documentation and implementation.
13121 Delete variable "buffer". Use ui_file_xstrdup in place of
13122 ui_file_put. Minor adjustments following this change.
13124 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13126 * ada-valprint.c (ada_val_print_string): New function,
13127 extracted from ada_val_print_array.
13128 (ada_val_print_array): Replace extracted code by call
13129 to ada_val_print_string followed by a return. Move
13130 "else" branch to the function's top block.
13132 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13134 * ada-valprint.c (ada_val_print_array): Move implementation
13135 down. Rename parameter "offset" and "val" into "offset_aligned"
13136 and "original_value" respectively. Add parameter "offset".
13138 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13140 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13141 re-organizing the code. Change the "???" message printed
13142 when target type is a TYPE_CODE_UNDEF into
13143 "<ref to undefined type>".
13145 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13147 * ada-valprint.c (print_record): Delete, implementation inlined...
13148 (ada_val_print_struct_union): ... here. Remove call to
13149 ada_check_typedef in inlined implementation.
13151 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13153 * ada-valprint.c (ada_val_print_gnat_array): New function,
13154 extracted from ada_val_print_1;
13155 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13156 (ada_val_print_flt, ada_val_print_struct_union)
13157 (ada_val_print_ref): Likewise.
13158 (ada_val_print_1): Delete variables i and elttype.
13159 Replace extracted-out code by call to corresponding
13162 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13164 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13166 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13168 * ada-valprint.c (ada_val_print_1): Replace calls to
13169 ada_val_print_1 by calls to val_print.
13171 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13173 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13174 Update calls to self accordingly. Replace calls to c_val_print
13175 by calls to val_print.
13177 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13179 * ada-valprint.c (print_record): Delete declaration.
13180 (adjust_type_signedness, ada_val_print_1): Likewise.
13181 (ada_val_print): Move function implementation down.
13182 (print_variant_part, print_field_values, print_record):
13183 Move function implementation up.
13185 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13187 * python/py-type.c (typy_get_name): New function.
13188 (type_object_getset): Add entry for attribute "name".
13189 * NEWS: Add entry mentioning this new attribute.
13191 2014-01-07 Yao Qi <yao@codesourcery.com>
13193 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13196 2014-01-07 Yao Qi <yao@codesourcery.com>
13198 * gnu-nat.c (info_port_rights): Add qualifier const to
13201 2014-01-07 Yao Qi <yao@codesourcery.com>
13203 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13205 2014-01-07 Yao Qi <yao@codesourcery.com>
13207 * gnu-nat.c (make_inf) Update declaration.
13208 (make_inf): Make it static.
13209 (inf_set_traced): Likewise.
13210 (inf_port_to_thread, inf_task_died_status): Likewise.
13212 2014-01-07 Yao Qi <yao@codesourcery.com>
13214 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13216 2014-01-07 Yao Qi <yao@codesourcery.com>
13218 * gnu-nat.c (_initialize_gnu_nat): Declare.
13220 2014-01-07 Yao Qi <yao@codesourcery.com>
13222 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13224 (struct gdbarch_info) <byte_order>: Change type to
13226 <byte_order_for_code>: Likewise.
13227 * gdbarch.c, gdbarch.h: Regenerated.
13229 2014-01-06 Sasha Smundak <asmundak@google.com>
13231 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13233 2014-01-06 Tom Tromey <tromey@redhat.com>
13235 * doublest.c (convert_doublest_to_floatformat): Use const, not
13237 * somread.c (som_symtab_read): Likewise.
13239 2014-01-07 Hui Zhu <hui@codesourcery.com>
13241 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13242 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13243 (gdb_bfd_fopen): Ditto.
13244 (gdb_bfd_openr): Ditto.
13245 (gdb_bfd_openw): Ditto.
13246 (gdb_bfd_openr_iovec): Ditto.
13247 (gdb_bfd_fdopenr): Ditto.
13248 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13249 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13251 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13253 * symfile-mem.c (symbol_file_add_from_memory): Removed
13254 gdb_bfd_stash_filename.
13256 2014-01-03 Doug Evans <dje@google.com>
13258 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13261 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13263 Update year range in copyright notice of all files.
13265 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13267 * top.c (print_gdb_version): Set copyright year to 2014.
13269 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13271 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13273 For older changes see ChangeLog-2013.
13279 version-control: never